@jaw.id/ui 1.1.0 → 1.1.1
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/components/IdentityAvatar.d.ts +1 -1
- package/dist/components/OnboardingDialog/types.d.ts +1 -1
- package/dist/components/TransactionDialog/ClearSignedView.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/form.d.ts +4 -4
- package/dist/hooks/useClearSigningTypedData.d.ts +1 -1
- package/dist/hooks/useDecodedCalldata.d.ts +1 -1
- package/dist/hooks/useGasEstimation.d.ts +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -2
- package/dist/react/ReactUIHandler.d.ts +2 -1
- package/dist/theme/apply-theme.d.ts +6 -0
- package/dist/theme/constants.d.ts +4 -1
- package/dist/theme/resolve-theme.d.ts +7 -1
- package/dist/utils/clearSigning.d.ts +1 -1
- package/dist/utils/erc8213.d.ts +1 -1
- package/package.json +30 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
2
|
-
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
3
1
|
import * as React from 'react';
|
|
4
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
|
-
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
4
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
5
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
6
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const useFormField: () => {
|
|
8
8
|
invalid: boolean;
|
|
9
9
|
isDirty: boolean;
|
|
10
10
|
isTouched: boolean;
|
|
11
11
|
isValidating: boolean;
|
|
12
|
-
error?: import(
|
|
12
|
+
error?: import("react-hook-form").FieldError;
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
formItemId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Address, Hex } from 'viem';
|
|
2
|
-
import { Account, TokenEstimate, TransactionCall } from '
|
|
3
|
-
import { FeeTokenOption } from '../components/FeeTokenSelector';
|
|
4
|
-
export type { TransactionCall } from '
|
|
1
|
+
import type { Address, Hex } from 'viem';
|
|
2
|
+
import type { Account, TokenEstimate, TransactionCall } from '@jaw.id/core';
|
|
3
|
+
import type { FeeTokenOption } from '../components/FeeTokenSelector';
|
|
4
|
+
export type { TransactionCall } from '@jaw.id/core';
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for gas estimation
|
|
7
7
|
*/
|
package/dist/index.d.ts
CHANGED
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
1
|
+
import { type ClassValue } from 'clsx';
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
3
|
/**
|
|
4
4
|
* Context for passing the portal container element to Radix UI Dialog.
|
|
5
5
|
* This ensures Radix portals render inside the SDK's container div,
|
|
6
6
|
* preventing consumer app CSS from leaking into SDK modals.
|
|
7
7
|
*/
|
|
8
|
-
export declare const PortalContainerContext: import(
|
|
8
|
+
export declare const PortalContainerContext: import("react").Context<HTMLElement | null>;
|
|
9
9
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { UIHandler, UIHandlerConfig, UIRequest, UIResponse
|
|
1
|
+
import { UIHandler, UIHandlerConfig, UIRequest, UIResponse } from '@jaw.id/core';
|
|
2
|
+
import type { JawTheme } from '@jaw.id/core';
|
|
2
3
|
/**
|
|
3
4
|
* Options for ReactUIHandler constructor.
|
|
4
5
|
*/
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM application of a resolved theme.
|
|
3
|
+
*
|
|
4
|
+
* Sets CSS custom properties on a container element and manages
|
|
5
|
+
* the `dark` class / `color-scheme` property.
|
|
6
|
+
*/
|
|
1
7
|
import { ResolvedTheme } from './resolve-theme.js';
|
|
2
8
|
/**
|
|
3
9
|
* Apply resolved theme variables to an HTML element.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Default palettes and mapping tables for the JAW UI theme system.
|
|
3
|
+
*/
|
|
4
|
+
import { JawBorderRadius, JawFontStack } from '@jaw.id/core';
|
|
2
5
|
export declare const DEFAULT_LIGHT_PALETTE: Readonly<Record<string, string>>;
|
|
3
6
|
export declare const DEFAULT_DARK_PALETTE: Readonly<Record<string, string>>;
|
|
4
7
|
export declare const BORDER_RADIUS_MAP: Readonly<Record<JawBorderRadius, string>>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Theme resolution pipeline.
|
|
3
|
+
*
|
|
4
|
+
* Merges base palette, accent overrides, preset maps, and user CSS variables
|
|
5
|
+
* into a single frozen record of CSS custom properties.
|
|
6
|
+
*/
|
|
7
|
+
import { JawTheme } from '@jaw.id/core';
|
|
2
8
|
export interface ResolvedTheme {
|
|
3
9
|
readonly variables: Readonly<Record<string, string>>;
|
|
4
10
|
readonly colorScheme: 'light' | 'dark';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbiFunction, Hex } from 'viem';
|
|
1
|
+
import { type AbiFunction, type Hex } from 'viem';
|
|
2
2
|
export type FieldFormatKind = 'raw' | 'addressName' | 'tokenAmount' | 'amount' | 'date' | 'unit' | 'nftName' | 'duration' | 'enum' | 'calldata';
|
|
3
3
|
export interface FieldFormatParams {
|
|
4
4
|
tokenPath?: string;
|
package/dist/utils/erc8213.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaw.id/ui",
|
|
3
3
|
"description": "Pre-built React dialogs for JAW.id",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -37,6 +37,34 @@
|
|
|
37
37
|
},
|
|
38
38
|
"nx": {
|
|
39
39
|
"targets": {
|
|
40
|
+
"build": {
|
|
41
|
+
"executor": "nx:run-commands",
|
|
42
|
+
"dependsOn": [
|
|
43
|
+
"^build"
|
|
44
|
+
],
|
|
45
|
+
"cache": true,
|
|
46
|
+
"inputs": [
|
|
47
|
+
"production",
|
|
48
|
+
"^production",
|
|
49
|
+
{
|
|
50
|
+
"externalDependencies": [
|
|
51
|
+
"vite",
|
|
52
|
+
"typescript"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"outputs": [
|
|
57
|
+
"{projectRoot}/dist"
|
|
58
|
+
],
|
|
59
|
+
"options": {
|
|
60
|
+
"cwd": "{projectRoot}",
|
|
61
|
+
"commands": [
|
|
62
|
+
"vite build",
|
|
63
|
+
"tsc --build tsconfig.lib.json"
|
|
64
|
+
],
|
|
65
|
+
"parallel": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
40
68
|
"test": {
|
|
41
69
|
"cache": true,
|
|
42
70
|
"inputs": [
|
|
@@ -57,7 +85,7 @@
|
|
|
57
85
|
"react-dom": ">=18.0.0"
|
|
58
86
|
},
|
|
59
87
|
"dependencies": {
|
|
60
|
-
"@jaw.id/core": "1.0.
|
|
88
|
+
"@jaw.id/core": "1.0.3",
|
|
61
89
|
"@hookform/resolvers": "^5.2.2",
|
|
62
90
|
"@justaname.id/sdk": "^0.2.204",
|
|
63
91
|
"@radix-ui/react-accordion": "^1.2.12",
|