@wavelengthusaf/components 1.0.2 → 1.0.4
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 +3 -1
- package/dist/index.d.mts +21 -8
- package/dist/index.d.ts +21 -8
- package/dist/index.js +2935 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2945 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -254
package/README.md
CHANGED
|
@@ -6,13 +6,15 @@ This module was created to share common components across Wavelength product tea
|
|
|
6
6
|
|
|
7
7
|
## Getting started
|
|
8
8
|
|
|
9
|
+
You can install this package the same way that you install everything else
|
|
10
|
+
|
|
9
11
|
```
|
|
10
12
|
npm install @wavelengthusaf/components
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
## Release Notes
|
|
14
16
|
|
|
15
|
-
### 1.0.2
|
|
17
|
+
### 1.0.2 - 1.0.3
|
|
16
18
|
|
|
17
19
|
- Updated dependencies
|
|
18
20
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Helper Functions
|
|
3
6
|
* @param a
|
|
@@ -14,12 +17,22 @@ declare function add(a: number, b: number): number;
|
|
|
14
17
|
*/
|
|
15
18
|
declare function concat(a: string, b: string): string;
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
interface OutlinedButtonProps {
|
|
21
|
+
id?: string;
|
|
22
|
+
variant: "outlined" | "contained" | "text";
|
|
23
|
+
onClick?: any;
|
|
24
|
+
margin?: string;
|
|
25
|
+
padding?: string;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare function WLButton({ id, variant, margin, padding, autoFocus, disabled, onClick, children }: OutlinedButtonProps): React__default.JSX.Element;
|
|
31
|
+
|
|
32
|
+
type ThemeProperties = {
|
|
33
|
+
name?: string;
|
|
34
|
+
};
|
|
35
|
+
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
36
|
+
declare const useThemeContext: () => ThemeProperties;
|
|
24
37
|
|
|
25
|
-
export { add, concat,
|
|
38
|
+
export { type ThemeProperties, WLButton, WavelengthAppTheme, add, concat, useThemeContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Helper Functions
|
|
3
6
|
* @param a
|
|
@@ -14,12 +17,22 @@ declare function add(a: number, b: number): number;
|
|
|
14
17
|
*/
|
|
15
18
|
declare function concat(a: string, b: string): string;
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
interface OutlinedButtonProps {
|
|
21
|
+
id?: string;
|
|
22
|
+
variant: "outlined" | "contained" | "text";
|
|
23
|
+
onClick?: any;
|
|
24
|
+
margin?: string;
|
|
25
|
+
padding?: string;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare function WLButton({ id, variant, margin, padding, autoFocus, disabled, onClick, children }: OutlinedButtonProps): React__default.JSX.Element;
|
|
31
|
+
|
|
32
|
+
type ThemeProperties = {
|
|
33
|
+
name?: string;
|
|
34
|
+
};
|
|
35
|
+
declare const WavelengthAppTheme: React.Context<ThemeProperties>;
|
|
36
|
+
declare const useThemeContext: () => ThemeProperties;
|
|
24
37
|
|
|
25
|
-
export { add, concat,
|
|
38
|
+
export { type ThemeProperties, WLButton, WavelengthAppTheme, add, concat, useThemeContext };
|