@oxyhq/services 0.0.6 → 0.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.
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
- interface SignInButtonProps {
3
- onClick: () => void;
4
- }
5
- declare const SignInButton: React.FC<SignInButtonProps>;
2
+ export declare const SignInButton: ({ onClick, icon, text, }: {
3
+ onClick?: () => void;
4
+ icon?: React.ReactNode;
5
+ text: string;
6
+ }) => React.JSX.Element;
6
7
  export default SignInButton;
7
8
  //# sourceMappingURL=SignInButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignInButton.d.ts","sourceRoot":"","sources":["../../../src/components/auth/SignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAM7C,CAAC;AAmCF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SignInButton.d.ts","sourceRoot":"","sources":["../../../src/components/auth/SignInButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,YAAY,6BAItB;IACD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd,sBAOA,CAAC;AAmCF,eAAe,YAAY,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
- const SignInButton = ({ onClick }) => {
3
- return (React.createElement("button", { onClick: onClick, style: styles.button }, "Sign in with Oxy"));
2
+ export const SignInButton = ({ onClick, icon, text = "Sign in with Oxy", }) => {
3
+ return (React.createElement("button", { onClick: onClick, style: styles.container },
4
+ icon && icon,
5
+ text));
4
6
  };
5
7
  const styles = {
6
- button: {
8
+ container: {
7
9
  padding: "0.7em",
8
10
  borderRadius: "100vmax",
9
11
  fontSize: "var(--fs-milli)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/services",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "homepage": "https://oxy.so/",
6
6
  "main": "./dist/index.js",