@wavelengthusaf/components 1.0.5 → 1.0.7

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/dist/index.d.mts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { ReactNode } from 'react';
3
+ import { TextFieldVariants } from '@mui/material';
3
4
 
4
5
  /**
5
6
  * Helper Functions
@@ -20,20 +21,183 @@ declare function concat(a: string, b: string): string;
20
21
  interface OutlinedButtonProps {
21
22
  id?: string;
22
23
  variant: "outlined" | "contained" | "text";
24
+ colorOne?: string;
25
+ colorTwo?: string;
23
26
  onClick?: any;
24
27
  margin?: string;
25
28
  padding?: string;
26
29
  autoFocus?: boolean;
27
30
  disabled?: boolean;
28
31
  children?: ReactNode;
32
+ data_test?: string;
33
+ borderRadius?: string;
29
34
  }
30
- declare function WavelengthButton({ id, variant, margin, padding, autoFocus, disabled, onClick, children }: OutlinedButtonProps): React__default.JSX.Element;
35
+ declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius }: OutlinedButtonProps): React__default.JSX.Element;
31
36
 
32
- interface MyComponentProps {
37
+ interface ButtonProps {
38
+ onClick?: any;
39
+ children?: ReactNode;
40
+ }
41
+ interface IconProps {
42
+ text: string;
43
+ numIcon: string;
44
+ children: ReactNode;
45
+ active: boolean;
46
+ }
47
+ declare function ButtonIcon({ text, numIcon, children, active }: IconProps): React__default.JSX.Element;
48
+ interface ButtonMenuProps {
49
+ children: ReactNode;
50
+ }
51
+ declare function ButtonMenu({ children }: ButtonMenuProps): React__default.JSX.Element;
52
+ declare function WavelengthDropdownButton({ children, onClick }: ButtonProps): React__default.JSX.Element;
53
+
54
+ interface WavelengthAutocompleteProps {
55
+ label: string;
56
+ items?: any;
57
+ variant?: TextFieldVariants;
58
+ width?: number;
59
+ onChange?: (selectedValue: string) => void;
60
+ }
61
+ /**
62
+ * Returns the Best Matching String from a List; Defaults to the first item if no good match is found
63
+ * @param searchString - the string we want to look for
64
+ * @param choices - the list of strings we get to choose from (must be greater than 0)
65
+ * @returns - a string with the "best" match, or "" if no match is found
66
+ */
67
+ declare function findBestStringMatch(searchString: string, choices: string[]): string;
68
+ declare function WavelengthAutocomplete({ label, width, variant, items, onChange }: WavelengthAutocompleteProps): React__default.JSX.Element;
69
+
70
+ interface WavelengthBoxProps {
71
+ width?: number;
72
+ height?: number;
73
+ children: ReactNode;
74
+ }
75
+ declare function WavelengthBox({ width, height, children }: WavelengthBoxProps): React__default.JSX.Element;
76
+
77
+ interface WavelengthContentPlaceholderProps {
78
+ type?: "circle" | "rectangle";
79
+ width?: string | number;
80
+ height?: string | number;
81
+ txtcolor?: string;
82
+ bgcolor?: string;
83
+ children: ReactNode;
84
+ id?: string;
85
+ }
86
+ declare function WavelengthContentPlaceholder({ type, width, height, txtcolor, bgcolor, children, id }: WavelengthContentPlaceholderProps): React__default.JSX.Element;
87
+
88
+ interface WavelengthExampleComponentProps {
89
+ width?: number;
90
+ height?: number;
91
+ }
92
+ declare function WavelengthExampleComponent({ width, height }: WavelengthExampleComponentProps): React__default.JSX.Element;
93
+
94
+ interface SearchResult {
95
+ id: number | string;
96
+ title: string;
97
+ subtitle?: string;
98
+ }
99
+ interface SearchProps {
100
+ id?: string;
101
+ mode: "automatic" | "manual";
102
+ borderRadius?: number | string;
103
+ label?: string;
104
+ width?: string;
105
+ height?: string;
106
+ children?: ReactNode;
107
+ searchFunction: (value: string) => SearchResult[];
108
+ onSearchItemSelected: (selectedItem: SearchResult | string) => void;
109
+ }
110
+ declare function WavelengthSearch({ id, mode, width, height, label, borderRadius, children, searchFunction, onSearchItemSelected }: SearchProps): React__default.JSX.Element | undefined;
111
+
112
+ declare function SearchTextField(): React__default.JSX.Element;
113
+
114
+ declare function WavelengthFooter(): React__default.JSX.Element;
115
+
116
+ declare function WavelengthTitleBar(): React__default.JSX.Element;
117
+
118
+ interface WavelengthBannerHeaderProps {
119
+ classification?: "unclassified" | "controlled" | "controlled unclassified information" | "cui" | "u" | "confidential" | "c" | "secret" | "s" | "top secret" | "ts" | string;
120
+ control?: ("cui" | "sci" | "fouo" | "nf" | "propin" | "frd" | "gbr s" | "si" | "si-g" | "tk" | "relido" | "rd" | "rd-n" | "rel" | "fvey" | "hcs" | string)[];
121
+ headerColor?: string;
122
+ textColor?: string;
123
+ }
124
+ declare function WavelengthBannerHeader({ classification, control, headerColor, textColor }: WavelengthBannerHeaderProps): React__default.JSX.Element;
125
+
126
+ interface bee {
127
+ width?: number;
128
+ height?: number;
129
+ }
130
+ declare function BomberBeeIcon({ width, height }: bee): React__default.JSX.Element;
131
+
132
+ interface Old563EWSLogoProps {
133
+ width?: number;
134
+ height?: number;
135
+ }
136
+ declare function Old563EWSLogo({ width, height }: Old563EWSLogoProps): React__default.JSX.Element;
137
+
138
+ interface AceOfSpadesProps {
139
+ width?: string;
140
+ height?: string;
141
+ }
142
+ declare function AceOfSpadesComponent({ width, height }: AceOfSpadesProps): React__default.JSX.Element;
143
+
144
+ interface ArrowProps {
145
+ width?: number;
146
+ height?: number;
147
+ }
148
+ declare function ArrowIcon({ width, height }: ArrowProps): React__default.JSX.Element;
149
+
150
+ interface PortalProps {
151
+ width?: number;
152
+ height?: number;
153
+ }
154
+ declare function PortalIcon({ width, height }: PortalProps): React__default.JSX.Element;
155
+
156
+ interface SwarmProps {
157
+ width?: number;
158
+ height?: number;
159
+ }
160
+ declare function SwarmIcon({ width, height }: SwarmProps): React__default.JSX.Element;
161
+
162
+ declare function RapidrefIcon(): React__default.JSX.Element;
163
+
164
+ interface SquadronProps {
165
+ width?: number;
166
+ height?: number;
167
+ }
168
+ declare function SquadronIcon({ width, height }: SquadronProps): React__default.JSX.Element;
169
+
170
+ interface WavelengthProps {
33
171
  width?: number;
34
172
  height?: number;
35
173
  }
36
- declare function MyComponent({ width, height }: MyComponentProps): React__default.JSX.Element;
174
+ declare function WavelengthIcon({ width, height }: WavelengthProps): React__default.JSX.Element;
175
+
176
+ interface DefaultProps {
177
+ width?: string;
178
+ height?: number;
179
+ }
180
+ declare function DefaultIcon({ width, height }: DefaultProps): React__default.JSX.Element;
181
+
182
+ interface AppLogoProps {
183
+ width?: number;
184
+ height?: number;
185
+ name?: string;
186
+ grayscale?: boolean;
187
+ }
188
+ declare function AppLogo({ width, height, name, grayscale }: AppLogoProps): React__default.JSX.Element;
189
+
190
+ interface HeaderProps {
191
+ numberOfPlanes?: number;
192
+ trailDir?: "right" | "left";
193
+ color?: string;
194
+ }
195
+ declare function ManyPlanesComponent({ numberOfPlanes, trailDir, color }: HeaderProps): React__default.JSX.Element;
196
+
197
+ interface WavelengthPlaneTrailProps {
198
+ trailDir?: "right" | "left";
199
+ }
200
+ declare function WavelengthPlaneTrail({ trailDir }: WavelengthPlaneTrailProps): React__default.JSX.Element;
37
201
 
38
202
  type ThemeProperties = {
39
203
  name?: string;
@@ -41,4 +205,34 @@ type ThemeProperties = {
41
205
  declare const WavelengthAppTheme: React.Context<ThemeProperties>;
42
206
  declare const useThemeContext: () => ThemeProperties;
43
207
 
44
- export { MyComponent, type ThemeProperties, WavelengthAppTheme, WavelengthButton, add, concat, useThemeContext };
208
+ interface WavelengthConfirmationModalProps {
209
+ show: boolean;
210
+ setShow: (show: boolean) => void;
211
+ textObj: Record<string, string>;
212
+ handleConfirmationModalOnConfirmProp: () => void;
213
+ }
214
+ declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): React__default.JSX.Element;
215
+
216
+ interface WavelengthContentModalProps {
217
+ show: boolean;
218
+ setShow: (show: boolean) => void;
219
+ textObj: Record<string, string>;
220
+ handleContentModalOnConfirmProp: () => void;
221
+ }
222
+ declare function WavelengthContentModal(props: WavelengthContentModalProps): React__default.JSX.Element;
223
+
224
+ interface menuItemProps {
225
+ itemType: "header" | "link" | "footer" | string;
226
+ label: string | number;
227
+ link?: string;
228
+ end?: boolean;
229
+ }
230
+ interface PopUPMenuProps {
231
+ menuItems: menuItemProps[];
232
+ customIcon?: React__default.ReactNode;
233
+ width?: string;
234
+ menuDirection?: "top" | "bottom";
235
+ }
236
+ declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection }: PopUPMenuProps): React__default.JSX.Element;
237
+
238
+ export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useThemeContext };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { ReactNode } from 'react';
3
+ import { TextFieldVariants } from '@mui/material';
3
4
 
4
5
  /**
5
6
  * Helper Functions
@@ -20,20 +21,183 @@ declare function concat(a: string, b: string): string;
20
21
  interface OutlinedButtonProps {
21
22
  id?: string;
22
23
  variant: "outlined" | "contained" | "text";
24
+ colorOne?: string;
25
+ colorTwo?: string;
23
26
  onClick?: any;
24
27
  margin?: string;
25
28
  padding?: string;
26
29
  autoFocus?: boolean;
27
30
  disabled?: boolean;
28
31
  children?: ReactNode;
32
+ data_test?: string;
33
+ borderRadius?: string;
29
34
  }
30
- declare function WavelengthButton({ id, variant, margin, padding, autoFocus, disabled, onClick, children }: OutlinedButtonProps): React__default.JSX.Element;
35
+ declare function WavelengthButton({ id, variant, colorOne, colorTwo, margin, padding, autoFocus, disabled, onClick, children, borderRadius }: OutlinedButtonProps): React__default.JSX.Element;
31
36
 
32
- interface MyComponentProps {
37
+ interface ButtonProps {
38
+ onClick?: any;
39
+ children?: ReactNode;
40
+ }
41
+ interface IconProps {
42
+ text: string;
43
+ numIcon: string;
44
+ children: ReactNode;
45
+ active: boolean;
46
+ }
47
+ declare function ButtonIcon({ text, numIcon, children, active }: IconProps): React__default.JSX.Element;
48
+ interface ButtonMenuProps {
49
+ children: ReactNode;
50
+ }
51
+ declare function ButtonMenu({ children }: ButtonMenuProps): React__default.JSX.Element;
52
+ declare function WavelengthDropdownButton({ children, onClick }: ButtonProps): React__default.JSX.Element;
53
+
54
+ interface WavelengthAutocompleteProps {
55
+ label: string;
56
+ items?: any;
57
+ variant?: TextFieldVariants;
58
+ width?: number;
59
+ onChange?: (selectedValue: string) => void;
60
+ }
61
+ /**
62
+ * Returns the Best Matching String from a List; Defaults to the first item if no good match is found
63
+ * @param searchString - the string we want to look for
64
+ * @param choices - the list of strings we get to choose from (must be greater than 0)
65
+ * @returns - a string with the "best" match, or "" if no match is found
66
+ */
67
+ declare function findBestStringMatch(searchString: string, choices: string[]): string;
68
+ declare function WavelengthAutocomplete({ label, width, variant, items, onChange }: WavelengthAutocompleteProps): React__default.JSX.Element;
69
+
70
+ interface WavelengthBoxProps {
71
+ width?: number;
72
+ height?: number;
73
+ children: ReactNode;
74
+ }
75
+ declare function WavelengthBox({ width, height, children }: WavelengthBoxProps): React__default.JSX.Element;
76
+
77
+ interface WavelengthContentPlaceholderProps {
78
+ type?: "circle" | "rectangle";
79
+ width?: string | number;
80
+ height?: string | number;
81
+ txtcolor?: string;
82
+ bgcolor?: string;
83
+ children: ReactNode;
84
+ id?: string;
85
+ }
86
+ declare function WavelengthContentPlaceholder({ type, width, height, txtcolor, bgcolor, children, id }: WavelengthContentPlaceholderProps): React__default.JSX.Element;
87
+
88
+ interface WavelengthExampleComponentProps {
89
+ width?: number;
90
+ height?: number;
91
+ }
92
+ declare function WavelengthExampleComponent({ width, height }: WavelengthExampleComponentProps): React__default.JSX.Element;
93
+
94
+ interface SearchResult {
95
+ id: number | string;
96
+ title: string;
97
+ subtitle?: string;
98
+ }
99
+ interface SearchProps {
100
+ id?: string;
101
+ mode: "automatic" | "manual";
102
+ borderRadius?: number | string;
103
+ label?: string;
104
+ width?: string;
105
+ height?: string;
106
+ children?: ReactNode;
107
+ searchFunction: (value: string) => SearchResult[];
108
+ onSearchItemSelected: (selectedItem: SearchResult | string) => void;
109
+ }
110
+ declare function WavelengthSearch({ id, mode, width, height, label, borderRadius, children, searchFunction, onSearchItemSelected }: SearchProps): React__default.JSX.Element | undefined;
111
+
112
+ declare function SearchTextField(): React__default.JSX.Element;
113
+
114
+ declare function WavelengthFooter(): React__default.JSX.Element;
115
+
116
+ declare function WavelengthTitleBar(): React__default.JSX.Element;
117
+
118
+ interface WavelengthBannerHeaderProps {
119
+ classification?: "unclassified" | "controlled" | "controlled unclassified information" | "cui" | "u" | "confidential" | "c" | "secret" | "s" | "top secret" | "ts" | string;
120
+ control?: ("cui" | "sci" | "fouo" | "nf" | "propin" | "frd" | "gbr s" | "si" | "si-g" | "tk" | "relido" | "rd" | "rd-n" | "rel" | "fvey" | "hcs" | string)[];
121
+ headerColor?: string;
122
+ textColor?: string;
123
+ }
124
+ declare function WavelengthBannerHeader({ classification, control, headerColor, textColor }: WavelengthBannerHeaderProps): React__default.JSX.Element;
125
+
126
+ interface bee {
127
+ width?: number;
128
+ height?: number;
129
+ }
130
+ declare function BomberBeeIcon({ width, height }: bee): React__default.JSX.Element;
131
+
132
+ interface Old563EWSLogoProps {
133
+ width?: number;
134
+ height?: number;
135
+ }
136
+ declare function Old563EWSLogo({ width, height }: Old563EWSLogoProps): React__default.JSX.Element;
137
+
138
+ interface AceOfSpadesProps {
139
+ width?: string;
140
+ height?: string;
141
+ }
142
+ declare function AceOfSpadesComponent({ width, height }: AceOfSpadesProps): React__default.JSX.Element;
143
+
144
+ interface ArrowProps {
145
+ width?: number;
146
+ height?: number;
147
+ }
148
+ declare function ArrowIcon({ width, height }: ArrowProps): React__default.JSX.Element;
149
+
150
+ interface PortalProps {
151
+ width?: number;
152
+ height?: number;
153
+ }
154
+ declare function PortalIcon({ width, height }: PortalProps): React__default.JSX.Element;
155
+
156
+ interface SwarmProps {
157
+ width?: number;
158
+ height?: number;
159
+ }
160
+ declare function SwarmIcon({ width, height }: SwarmProps): React__default.JSX.Element;
161
+
162
+ declare function RapidrefIcon(): React__default.JSX.Element;
163
+
164
+ interface SquadronProps {
165
+ width?: number;
166
+ height?: number;
167
+ }
168
+ declare function SquadronIcon({ width, height }: SquadronProps): React__default.JSX.Element;
169
+
170
+ interface WavelengthProps {
33
171
  width?: number;
34
172
  height?: number;
35
173
  }
36
- declare function MyComponent({ width, height }: MyComponentProps): React__default.JSX.Element;
174
+ declare function WavelengthIcon({ width, height }: WavelengthProps): React__default.JSX.Element;
175
+
176
+ interface DefaultProps {
177
+ width?: string;
178
+ height?: number;
179
+ }
180
+ declare function DefaultIcon({ width, height }: DefaultProps): React__default.JSX.Element;
181
+
182
+ interface AppLogoProps {
183
+ width?: number;
184
+ height?: number;
185
+ name?: string;
186
+ grayscale?: boolean;
187
+ }
188
+ declare function AppLogo({ width, height, name, grayscale }: AppLogoProps): React__default.JSX.Element;
189
+
190
+ interface HeaderProps {
191
+ numberOfPlanes?: number;
192
+ trailDir?: "right" | "left";
193
+ color?: string;
194
+ }
195
+ declare function ManyPlanesComponent({ numberOfPlanes, trailDir, color }: HeaderProps): React__default.JSX.Element;
196
+
197
+ interface WavelengthPlaneTrailProps {
198
+ trailDir?: "right" | "left";
199
+ }
200
+ declare function WavelengthPlaneTrail({ trailDir }: WavelengthPlaneTrailProps): React__default.JSX.Element;
37
201
 
38
202
  type ThemeProperties = {
39
203
  name?: string;
@@ -41,4 +205,34 @@ type ThemeProperties = {
41
205
  declare const WavelengthAppTheme: React.Context<ThemeProperties>;
42
206
  declare const useThemeContext: () => ThemeProperties;
43
207
 
44
- export { MyComponent, type ThemeProperties, WavelengthAppTheme, WavelengthButton, add, concat, useThemeContext };
208
+ interface WavelengthConfirmationModalProps {
209
+ show: boolean;
210
+ setShow: (show: boolean) => void;
211
+ textObj: Record<string, string>;
212
+ handleConfirmationModalOnConfirmProp: () => void;
213
+ }
214
+ declare function WavelengthConfirmationModal(props: WavelengthConfirmationModalProps): React__default.JSX.Element;
215
+
216
+ interface WavelengthContentModalProps {
217
+ show: boolean;
218
+ setShow: (show: boolean) => void;
219
+ textObj: Record<string, string>;
220
+ handleContentModalOnConfirmProp: () => void;
221
+ }
222
+ declare function WavelengthContentModal(props: WavelengthContentModalProps): React__default.JSX.Element;
223
+
224
+ interface menuItemProps {
225
+ itemType: "header" | "link" | "footer" | string;
226
+ label: string | number;
227
+ link?: string;
228
+ end?: boolean;
229
+ }
230
+ interface PopUPMenuProps {
231
+ menuItems: menuItemProps[];
232
+ customIcon?: React__default.ReactNode;
233
+ width?: string;
234
+ menuDirection?: "top" | "bottom";
235
+ }
236
+ declare function WavelengthPopUpMenu({ menuItems, customIcon, width, menuDirection }: PopUPMenuProps): React__default.JSX.Element;
237
+
238
+ export { AceOfSpadesComponent, AppLogo, ArrowIcon, BomberBeeIcon, ButtonIcon, ButtonMenu, DefaultIcon, ManyPlanesComponent, Old563EWSLogo, PortalIcon, RapidrefIcon, type SearchResult, SearchTextField, SquadronIcon, SwarmIcon, type ThemeProperties, WavelengthAppTheme, WavelengthAutocomplete, WavelengthBannerHeader, WavelengthBox, WavelengthButton, WavelengthConfirmationModal, WavelengthContentModal, WavelengthContentPlaceholder, WavelengthDropdownButton, WavelengthExampleComponent, WavelengthFooter, WavelengthIcon, WavelengthPlaneTrail, WavelengthPopUpMenu, WavelengthSearch, WavelengthTitleBar, add, concat, findBestStringMatch, type menuItemProps, useThemeContext };