@bluxcc/react 0.1.12 → 0.1.14

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 CHANGED
@@ -7,7 +7,7 @@ Blux is a **comprehensive authentication and wallet connect kit** designed for S
7
7
  - **Multi-Wallet Support**: Easily integrate Stellar wallets such as **Rabet, xBull, Lobstr, Freighter, and Albedo**.
8
8
  - **OAuth & Social Login** _(Coming Soon)_: Support for **Apple, Meta, Google, and more**.
9
9
  - **Email & Phone Authentication** _(Coming Soon)_: Securely onboard users with non-crypto credentials.
10
- - **Customizable UI**: Adjust themes, fonts, backgrounds, logos, corner radius, and text colors.
10
+ - **Customizable UI**: Adjust themes, fonts, backgrounds, logos, border radius, and text colors.
11
11
  - **Configurable Networks**: Set up and modify network preferences via API keys.
12
12
  - **Future-Proof**: More wallets and authentication methods will be added based on community feedback.
13
13
 
@@ -54,7 +54,7 @@ Developers can customize various UI elements:
54
54
 
55
55
  - **Themes & Fonts**
56
56
  - **Backgrounds, Logos**
57
- - **Corner Radius & Text Colors**
57
+ - **Border Radius & Text Colors**
58
58
  - **Authentication Limits** (Free tier supports 500-1000 accounts per auth method)
59
59
 
60
60
  Configuration options can be set via the `BluxProvider` config or environment variables.
@@ -15,8 +15,12 @@ export declare const Loading: ({ fill }: {
15
15
  fill?: string;
16
16
  }) => React.JSX.Element;
17
17
  export declare const GreenCheck: () => React.JSX.Element;
18
- export declare const LogOut: () => React.JSX.Element;
19
- export declare const Copy: () => React.JSX.Element;
18
+ export declare const LogOut: ({ fill }: {
19
+ fill?: string;
20
+ }) => React.JSX.Element;
21
+ export declare const Copy: ({ fill }: {
22
+ fill?: string;
23
+ }) => React.JSX.Element;
20
24
  export declare const History: ({ fill }: {
21
25
  fill?: string;
22
26
  }) => React.JSX.Element;
@@ -1,10 +1,20 @@
1
1
  import React from 'react';
2
2
  export declare const AlbedoLogo: () => React.JSX.Element;
3
- export declare const HanaLogo: () => React.JSX.Element;
4
- export declare const RabetLogo: () => React.JSX.Element;
5
- export declare const FreighterLogo: () => React.JSX.Element;
6
- export declare const XBullLogo: () => React.JSX.Element;
7
- export declare const LobstrLogo: () => React.JSX.Element;
3
+ export declare const HanaLogo: ({ fill }: {
4
+ fill?: string;
5
+ }) => React.JSX.Element;
6
+ export declare const RabetLogo: ({ fill }: {
7
+ fill?: string;
8
+ }) => React.JSX.Element;
9
+ export declare const FreighterLogo: ({ fill }: {
10
+ fill?: string;
11
+ }) => React.JSX.Element;
12
+ export declare const XBullLogo: ({ fill }: {
13
+ fill?: string;
14
+ }) => React.JSX.Element;
15
+ export declare const LobstrLogo: ({ fill }: {
16
+ fill?: string;
17
+ }) => React.JSX.Element;
8
18
  export declare const StellarLogo: ({ fill }: {
9
19
  fill?: string;
10
20
  }) => React.JSX.Element;
@@ -3,6 +3,7 @@ type CardItemProps = {
3
3
  variant?: 'social' | 'default' | 'input';
4
4
  startIcon: React.ReactNode;
5
5
  endArrow?: boolean;
6
+ isRecent?: boolean;
6
7
  label?: string;
7
8
  onClick?: () => void;
8
9
  onChange?: (value: string) => void;
@@ -10,5 +11,5 @@ type CardItemProps = {
10
11
  onSubmit?: (value: string) => void;
11
12
  inputType?: 'text' | 'password' | 'number' | 'email' | string;
12
13
  };
13
- declare const CardItem: ({ variant, startIcon, endArrow, label, onClick, onChange, onEnter, onSubmit, inputType, }: CardItemProps) => React.JSX.Element;
14
+ declare const CardItem: ({ variant, startIcon, endArrow, isRecent, label, onClick, onChange, onEnter, onSubmit, inputType, }: CardItemProps) => React.JSX.Element;
14
15
  export default CardItem;
@@ -9,8 +9,10 @@ type InputFieldProps = {
9
9
  button?: string | React.ReactNode;
10
10
  onButtonClick?: () => void;
11
11
  value?: string;
12
+ autoFocus?: boolean;
12
13
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
13
14
  customLabel?: React.ReactNode;
15
+ className?: string;
14
16
  };
15
- declare const InputField: ({ label, type, placeholder, error, iconRight, iconLeft, button, onButtonClick, customLabel, value, onChange, }: InputFieldProps) => React.JSX.Element;
17
+ declare const InputField: ({ label, autoFocus, type, placeholder, error, iconRight, iconLeft, button, onButtonClick, customLabel, value, className, onChange, }: InputFieldProps) => React.JSX.Element;
16
18
  export default InputField;
@@ -0,0 +1 @@
1
+ export declare const RECENT_CONNECTION_METHOD = "__BLUX__RECENT_CONNECTION_METHOD";