@yourself_id/siwys-react-js 0.0.18-switch-to-npm.22

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 ADDED
@@ -0,0 +1,19 @@
1
+ # SIWYS JS
2
+
3
+ TODO: Update me.
4
+
5
+ # Local Development
6
+
7
+ Uses [Vite](https://vite.dev/) for testing components locally.
8
+
9
+ 1. Render the component(s) you want to test inside `src/demo/demo.tsx`
10
+ 2. Run `yarn dev`
11
+ 3. Test at http://localhost:5173
12
+
13
+ # Importing Icons as SVGs
14
+
15
+ Uses [SVGR](https://react-svgr.com/) to transform SVGs into React components.
16
+
17
+ 1. Save the SVG in the `icons/` folder
18
+ 2. Run `yarn generate-icons`
19
+ 3. The associated React components will be generated inside `src/icons`
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ type ColorTheme = "light" | "dark" | "blue";
4
+ interface ButtonProps {
5
+ onClick: () => void;
6
+ className?: string;
7
+ colorTheme?: ColorTheme;
8
+ glow?: boolean;
9
+ }
10
+
11
+ declare const ConnectButton: React.FC<ButtonProps>;
12
+ declare const SignInButton: React.FC<ButtonProps>;
13
+
14
+ interface SignInProps {
15
+ createChallengeUrl: string;
16
+ checkAuthUrl: string;
17
+ }
18
+ declare const SignInWithYourSelf: React.FC<SignInProps>;
19
+
20
+ export { ConnectButton, SignInButton, SignInWithYourSelf as SignInWithYouSelf };
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ type ColorTheme = "light" | "dark" | "blue";
4
+ interface ButtonProps {
5
+ onClick: () => void;
6
+ className?: string;
7
+ colorTheme?: ColorTheme;
8
+ glow?: boolean;
9
+ }
10
+
11
+ declare const ConnectButton: React.FC<ButtonProps>;
12
+ declare const SignInButton: React.FC<ButtonProps>;
13
+
14
+ interface SignInProps {
15
+ createChallengeUrl: string;
16
+ checkAuthUrl: string;
17
+ }
18
+ declare const SignInWithYourSelf: React.FC<SignInProps>;
19
+
20
+ export { ConnectButton, SignInButton, SignInWithYourSelf as SignInWithYouSelf };