@jaw.id/ui 1.1.0 → 1.1.2

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,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface IdentityAvatarProps {
3
3
  src?: string;
4
4
  /** Defaults to the wallet icon; pass `null` to render nothing when there's no avatar. */
@@ -1,4 +1,4 @@
1
- import { SubnameTextRecordCapabilityRequest } from '../../../../core/src/index.ts';
1
+ import type { SubnameTextRecordCapabilityRequest } from '@jaw.id/core';
2
2
  export interface LocalStorageAccount {
3
3
  username: string;
4
4
  creationDate: Date;
@@ -1,4 +1,4 @@
1
- import { ClearSigningDisplay } from '../../utils/clearSigning';
1
+ import type { ClearSigningDisplay } from '../../utils/clearSigning';
2
2
  interface ClearSignedViewProps {
3
3
  display: ClearSigningDisplay;
4
4
  chainId: number;
@@ -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('class-variance-authority/types').ClassProp) | undefined) => string;
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
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
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('react-hook-form').FieldError;
12
+ error?: import("react-hook-form").FieldError;
13
13
  id: string;
14
14
  name: string;
15
15
  formItemId: string;
@@ -1,4 +1,4 @@
1
- import { ClearSigningDisplay } from '../utils/clearSigning';
1
+ import { type ClearSigningDisplay } from '../utils/clearSigning';
2
2
  interface UseClearSigningTypedDataResult {
3
3
  display: ClearSigningDisplay | null;
4
4
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
- import { ClearSigningDisplay } from '../utils/clearSigning';
1
+ import { type ClearSigningDisplay } from '../utils/clearSigning';
2
2
  export interface DecodedParam {
3
3
  name: string;
4
4
  type: string;
@@ -1,7 +1,7 @@
1
- import { Address, Hex } from 'viem';
2
- import { Account, TokenEstimate, TransactionCall } from '../../../core/src/index.ts';
3
- import { FeeTokenOption } from '../components/FeeTokenSelector';
4
- export type { TransactionCall } from '../../../core/src/index.ts';
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
  */