@thenamespace/ens-components 0.2.0 → 0.4.0
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.css +121 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +49 -35
- package/dist/index.js +250 -119
- package/dist/index.js.map +1 -1
- package/dist/types/components/atoms/icon/Icon.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/atoms/textarea/Textarea.d.ts +13 -0
- package/dist/types/constants/records/contenthashConstants.d.ts +1 -0
- package/dist/types/hooks/useWeb3Clients.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./Icon.css";
|
|
3
|
-
export type IconName = "person" | "x" | "search" | "square-user" | "globe" | "pin" | "box" | "book" | "map-pin" | "mail" | "discord" | "github" | "telegram" | "youtube" | "image" | "circle-person" | "twitter" | "circle-alert" | "check-circle" | "alert-triangle" | "info" | "x-circle" | "rotate-circle" | "logout" | "edit" | "copy" | "clock";
|
|
3
|
+
export type IconName = "person" | "x" | "search" | "square-user" | "globe" | "pin" | "box" | "book" | "map-pin" | "mail" | "discord" | "github" | "telegram" | "youtube" | "image" | "circle-person" | "twitter" | "circle-alert" | "check-circle" | "alert-triangle" | "info" | "x-circle" | "rotate-circle" | "logout" | "edit" | "copy" | "clock" | "image" | "xSocial";
|
|
4
4
|
export interface IconProps {
|
|
5
5
|
name: IconName;
|
|
6
6
|
color?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./Textarea.css";
|
|
2
|
+
export type TextareaSize = "sm" | "md" | "lg";
|
|
3
|
+
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "prefix"> {
|
|
4
|
+
size?: TextareaSize;
|
|
5
|
+
prefix?: React.ReactNode;
|
|
6
|
+
suffix?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
dataTestId?: string;
|
|
10
|
+
rows?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
13
|
+
export default Textarea;
|
|
@@ -2,6 +2,7 @@ import { ContenthashProtocol } from "@/types";
|
|
|
2
2
|
export interface SupportedContenthashRecord {
|
|
3
3
|
protocol: ContenthashProtocol;
|
|
4
4
|
label: string;
|
|
5
|
+
protocolPrefix: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const supportedContenthashRecords: SupportedContenthashRecord[];
|
|
7
8
|
export declare const getSupportedChashByProtocol: (protocol: ContenthashProtocol) => SupportedContenthashRecord | undefined;
|
|
@@ -4197,6 +4197,7 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4197
4197
|
[x: `bytes3[${string}]`]: undefined;
|
|
4198
4198
|
[x: `bytes32[${string}]`]: undefined;
|
|
4199
4199
|
[x: `bytes1[${string}]`]: undefined;
|
|
4200
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
4200
4201
|
[x: `bytes24[${string}]`]: undefined;
|
|
4201
4202
|
[x: `bytes20[${string}]`]: undefined;
|
|
4202
4203
|
[x: `bytes8[${string}]`]: undefined;
|
|
@@ -4209,7 +4210,6 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4209
4210
|
[x: `bytes30[${string}]`]: undefined;
|
|
4210
4211
|
[x: `bytes25[${string}]`]: undefined;
|
|
4211
4212
|
[x: `bytes14[${string}]`]: undefined;
|
|
4212
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
4213
4213
|
[x: `bytes5[${string}]`]: undefined;
|
|
4214
4214
|
[x: `bytes6[${string}]`]: undefined;
|
|
4215
4215
|
[x: `bytes7[${string}]`]: undefined;
|
|
@@ -4297,6 +4297,7 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4297
4297
|
bytes3?: undefined;
|
|
4298
4298
|
bytes32?: undefined;
|
|
4299
4299
|
bytes1?: undefined;
|
|
4300
|
+
bytes4?: undefined;
|
|
4300
4301
|
bytes24?: undefined;
|
|
4301
4302
|
bytes20?: undefined;
|
|
4302
4303
|
bytes8?: undefined;
|
|
@@ -4309,7 +4310,6 @@ export declare const useWeb3Client: ({ chainId }: {
|
|
|
4309
4310
|
bytes30?: undefined;
|
|
4310
4311
|
bytes25?: undefined;
|
|
4311
4312
|
bytes14?: undefined;
|
|
4312
|
-
bytes4?: undefined;
|
|
4313
4313
|
bytes5?: undefined;
|
|
4314
4314
|
bytes6?: undefined;
|
|
4315
4315
|
bytes7?: undefined;
|