@worldcoin/idkit 0.4.8 → 0.5.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/build/index.css +2000 -2
- package/package.json +138 -137
- package/build/idkit-js.js +0 -152
- package/build/index.cjs +0 -9
- package/build/index.cjs.map +0 -7
- package/build/index.js +0 -9
- package/build/index.js.map +0 -7
- package/build/jest.config.d.ts +0 -21
- package/build/jest.setup.d.ts +0 -1
- package/build/src/components/AboutWorldID.d.ts +0 -6
- package/build/src/components/Button.d.ts +0 -3
- package/build/src/components/Frame.d.ts +0 -4
- package/build/src/components/IDKitWidget/BaseWidget.d.ts +0 -4
- package/build/src/components/IDKitWidget/States/ErrorState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/HostAppVerificationState.d.ts +0 -7
- package/build/src/components/IDKitWidget/States/PrivacyState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/SuccessState.d.ts +0 -3
- package/build/src/components/IDKitWidget/States/WorldID/QRState.d.ts +0 -11
- package/build/src/components/IDKitWidget/States/WorldIDState.d.ts +0 -3
- package/build/src/components/IDKitWidget/index.d.ts +0 -3
- package/build/src/components/Icons/ArrowLongLeftIcon.d.ts +0 -3
- package/build/src/components/Icons/CheckIcon.d.ts +0 -3
- package/build/src/components/Icons/ChevronDownIcon.d.ts +0 -3
- package/build/src/components/Icons/HumanIcon.d.ts +0 -3
- package/build/src/components/Icons/InfoIcon.d.ts +0 -3
- package/build/src/components/Icons/LoadingIcon.d.ts +0 -5
- package/build/src/components/Icons/LockIcon.d.ts +0 -3
- package/build/src/components/Icons/QuestionMarkIcon.d.ts +0 -5
- package/build/src/components/Icons/WorldIDWordmark.d.ts +0 -3
- package/build/src/components/Icons/WorldcoinIcon.d.ts +0 -3
- package/build/src/components/Icons/XMarkIcon.d.ts +0 -3
- package/build/src/components/QRCode.d.ts +0 -7
- package/build/src/components/SignInButton.d.ts +0 -7
- package/build/src/components/SignInWithWorldID.d.ts +0 -11
- package/build/src/components/WorldIDIcon.d.ts +0 -7
- package/build/src/hooks/useIDKit.d.ts +0 -7
- package/build/src/hooks/useMedia.d.ts +0 -2
- package/build/src/index.d.ts +0 -33
- package/build/src/lib/consts.d.ts +0 -1
- package/build/src/lib/hashing.d.ts +0 -22
- package/build/src/lib/qr.d.ts +0 -4
- package/build/src/lib/telemetry.d.ts +0 -3
- package/build/src/lib/utils.d.ts +0 -2
- package/build/src/services/walletconnect.d.ts +0 -15
- package/build/src/store/idkit.d.ts +0 -37
- package/build/src/types/app.d.ts +0 -21
- package/build/src/types/config.d.ts +0 -34
- package/build/src/types/index.d.ts +0 -36
- package/build/src/vanilla.d.ts +0 -12
- package/build/stitches.config.d.ts +0 -45
- package/build/tests/lib/hashing.test.d.ts +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
qrData: {
|
|
4
|
-
default: string;
|
|
5
|
-
mobile: string;
|
|
6
|
-
} | null;
|
|
7
|
-
showQR: boolean;
|
|
8
|
-
setShowQR: (show: boolean | ((state: boolean) => boolean)) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const QRState: FC<Props>;
|
|
11
|
-
export default QRState;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { MotionProps } from 'framer-motion';
|
|
2
|
-
import type { ButtonHTMLAttributes, FC } from 'react';
|
|
3
|
-
type Props = ButtonHTMLAttributes<HTMLButtonElement> & MotionProps & {
|
|
4
|
-
theme?: 'dark' | 'light';
|
|
5
|
-
};
|
|
6
|
-
declare const SignInButton: FC<Props>;
|
|
7
|
-
export default SignInButton;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import type { IDKitConfig, WidgetConfig } from '../types/config';
|
|
3
|
-
type Props = Omit<WidgetConfig, 'autoClose'> & Pick<IDKitConfig, 'app_id' | 'walletConnectProjectId'> & {
|
|
4
|
-
nonce?: string;
|
|
5
|
-
onSuccess: (jwt: string) => void;
|
|
6
|
-
children?: ({ open }: {
|
|
7
|
-
open: () => void;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
declare const SignInWithWorldID: FC<Props>;
|
|
11
|
-
export default SignInWithWorldID;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
|
|
2
|
-
type Props = Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> & {
|
|
3
|
-
border?: string;
|
|
4
|
-
size?: 'md' | 'sm';
|
|
5
|
-
}, 'height' | 'src' | 'width'>;
|
|
6
|
-
declare const WorldIDIcon: ({ border, size, ...props }: Props) => JSX.Element;
|
|
7
|
-
export default WorldIDIcon;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../types/config';
|
|
2
|
-
type HookConfig = Pick<Config, 'handleVerify' | 'onSuccess'>;
|
|
3
|
-
declare const useIDKit: ({ handleVerify, onSuccess }?: HookConfig) => {
|
|
4
|
-
open: boolean;
|
|
5
|
-
setOpen: (open: boolean) => void;
|
|
6
|
-
};
|
|
7
|
-
export default useIDKit;
|
package/build/src/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import useIDKit from './hooks/useIDKit';
|
|
3
|
-
import { CredentialType } from './types';
|
|
4
|
-
import type { ISuccessResult } from './types';
|
|
5
|
-
import { solidityEncode } from './lib/hashing';
|
|
6
|
-
import IDKitWidget from './components/IDKitWidget';
|
|
7
|
-
import type { WidgetProps, Config } from './types/config';
|
|
8
|
-
import { VerificationState, AppErrorCodes } from './types/app';
|
|
9
|
-
import SignInWithWorldID from './components/SignInWithWorldID';
|
|
10
|
-
import { hashToField } from './lib/hashing';
|
|
11
|
-
declare const internal: {
|
|
12
|
-
hashToField: typeof hashToField;
|
|
13
|
-
validateABILikeEncoding: (value: string) => boolean;
|
|
14
|
-
generateExternalNullifier: (app_id: string, action: string | import("./types").AbiEncodedValue | undefined) => import("./lib/hashing").HashFunctionOutput;
|
|
15
|
-
QRCode: import("react").MemoExoticComponent<({ data, size }: {
|
|
16
|
-
data: string;
|
|
17
|
-
size?: number | undefined;
|
|
18
|
-
}) => JSX.Element>;
|
|
19
|
-
useAppConnection: (app_id: string, action: string | import("./types").AbiEncodedValue | undefined, signal?: string | import("./types").AbiEncodedValue | undefined, credential_types?: CredentialType[] | undefined, action_description?: string | undefined, walletConnectProjectId?: string | undefined) => {
|
|
20
|
-
reset: () => void;
|
|
21
|
-
result: ISuccessResult | null;
|
|
22
|
-
errorCode: AppErrorCodes | null;
|
|
23
|
-
verificationState: VerificationState;
|
|
24
|
-
qrData: {
|
|
25
|
-
default: string;
|
|
26
|
-
mobile: string;
|
|
27
|
-
} | null;
|
|
28
|
-
};
|
|
29
|
-
VerificationState: typeof VerificationState;
|
|
30
|
-
AppErrorCodes: typeof AppErrorCodes;
|
|
31
|
-
};
|
|
32
|
-
export { IDKitWidget, useIDKit, solidityEncode, internal, SignInWithWorldID, CredentialType };
|
|
33
|
-
export type { ISuccessResult, Config, WidgetProps };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WC_PROJECT_ID = "c3e6053f10efbb423808783ee874cf6a";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { AbiEncodedValue } from '../types';
|
|
3
|
-
import type { IDKitConfig } from '../types/config';
|
|
4
|
-
import type { BytesLike } from '@ethersproject/bytes';
|
|
5
|
-
export interface HashFunctionOutput {
|
|
6
|
-
hash: BigInt;
|
|
7
|
-
digest: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hashes an input using the `keccak256` hashing function used across the World ID protocol, to be used as
|
|
11
|
-
* a ZKP input. The function will try to determine the best hashing mechanism, if the string already looks like hex-encoded
|
|
12
|
-
* bytes (e.g. `0x0000000000000000000000000000000000000000`), it will be hashed directly.
|
|
13
|
-
* @param input Any string, hex-like string, bytes represented as a hex string.
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
export declare function hashToField(input: Buffer | BytesLike): HashFunctionOutput;
|
|
17
|
-
export declare function packAndEncode(input: [string, unknown][]): HashFunctionOutput;
|
|
18
|
-
export declare const validateABILikeEncoding: (value: string) => boolean;
|
|
19
|
-
export declare const solidityEncode: (types: string[], values: unknown[]) => AbiEncodedValue;
|
|
20
|
-
export declare const generateSignal: (signal: IDKitConfig['signal']) => HashFunctionOutput;
|
|
21
|
-
export declare const generateExternalNullifier: (app_id: IDKitConfig['app_id'], action: IDKitConfig['action']) => HashFunctionOutput;
|
|
22
|
-
export declare const encodeAction: (action: IDKitConfig['action']) => string;
|
package/build/src/lib/qr.d.ts
DELETED
package/build/src/lib/utils.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { IDKitConfig } from '../types/config';
|
|
2
|
-
import { AppErrorCodes, VerificationState } from '../types/app';
|
|
3
|
-
import type { ISuccessResult } from '../types';
|
|
4
|
-
type UseAppConnectionResponse = {
|
|
5
|
-
reset: () => void;
|
|
6
|
-
result: ISuccessResult | null;
|
|
7
|
-
errorCode: AppErrorCodes | null;
|
|
8
|
-
verificationState: VerificationState;
|
|
9
|
-
qrData: {
|
|
10
|
-
default: string;
|
|
11
|
-
mobile: string;
|
|
12
|
-
} | null;
|
|
13
|
-
};
|
|
14
|
-
declare const useAppConnection: (app_id: IDKitConfig['app_id'], action: IDKitConfig['action'], signal?: IDKitConfig['signal'], credential_types?: IDKitConfig['credential_types'], action_description?: IDKitConfig['action_description'], walletConnectProjectId?: IDKitConfig['walletConnectProjectId']) => UseAppConnectionResponse;
|
|
15
|
-
export default useAppConnection;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IDKITStage } from '../types';
|
|
2
|
-
import type { CallbackFn, IErrorState, ISuccessResult } from '../types';
|
|
3
|
-
import type { Config, ConfigSource, IDKitConfig } from '../types/config';
|
|
4
|
-
export type IDKitStore = {
|
|
5
|
-
app_id: IDKitConfig['app_id'];
|
|
6
|
-
action: IDKitConfig['action'];
|
|
7
|
-
signal: IDKitConfig['signal'];
|
|
8
|
-
action_description?: IDKitConfig['action_description'];
|
|
9
|
-
walletConnectProjectId?: IDKitConfig['walletConnectProjectId'];
|
|
10
|
-
credential_types?: IDKitConfig['credential_types'];
|
|
11
|
-
code: string;
|
|
12
|
-
open: boolean;
|
|
13
|
-
stage: IDKITStage;
|
|
14
|
-
autoClose: boolean;
|
|
15
|
-
processing: boolean;
|
|
16
|
-
copy: Config['copy'];
|
|
17
|
-
theme: Config['theme'];
|
|
18
|
-
result: ISuccessResult | null;
|
|
19
|
-
errorState: IErrorState | null;
|
|
20
|
-
verifyCallbacks: Record<ConfigSource, CallbackFn | undefined> | Record<string, never>;
|
|
21
|
-
successCallbacks: Record<ConfigSource, CallbackFn | undefined> | Record<string, never>;
|
|
22
|
-
computed: {
|
|
23
|
-
canGoBack: (stage: IDKITStage) => boolean;
|
|
24
|
-
};
|
|
25
|
-
retryFlow: () => void;
|
|
26
|
-
setCode: (code: string) => void;
|
|
27
|
-
setStage: (stage: IDKITStage) => void;
|
|
28
|
-
onOpenChange: (open: boolean) => void;
|
|
29
|
-
setProcessing: (processing: boolean) => void;
|
|
30
|
-
handleVerify: (result: ISuccessResult) => void;
|
|
31
|
-
setErrorState: (state: IErrorState | null) => void;
|
|
32
|
-
setOptions: (options: Config, source: ConfigSource) => void;
|
|
33
|
-
addSuccessCallback: (cb: CallbackFn, source: ConfigSource) => void;
|
|
34
|
-
addVerificationCallback: (cb: CallbackFn, source: ConfigSource) => void;
|
|
35
|
-
};
|
|
36
|
-
declare const useIDKitStore: import("zustand").UseBoundStore<import("zustand").StoreApi<IDKitStore>>;
|
|
37
|
-
export default useIDKitStore;
|
package/build/src/types/app.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare enum AppErrorCodes {
|
|
2
|
-
ConnectionFailed = "connection_failed",
|
|
3
|
-
VerificationRejected = "verification_rejected",
|
|
4
|
-
MaxVerificationsReached = "max_verifications_reached",
|
|
5
|
-
AlreadySigned = "already_signed",
|
|
6
|
-
CredentialUnavailable = "credential_unavailable",
|
|
7
|
-
MalformedRequest = "malformed_request",
|
|
8
|
-
InvalidNetwork = "invalid_network",
|
|
9
|
-
InclusionProofFailed = "inclusion_proof_failed",
|
|
10
|
-
InclusionProofPending = "inclusion_proof_pending",
|
|
11
|
-
UnexpectedResponse = "unexpected_response",
|
|
12
|
-
FailedByHostApp = "failed_by_host_app",
|
|
13
|
-
GenericError = "generic_error"
|
|
14
|
-
}
|
|
15
|
-
export declare enum VerificationState {
|
|
16
|
-
LoadingWidget = "loading_widget",
|
|
17
|
-
AwaitingConnection = "awaiting_connection",
|
|
18
|
-
AwaitingVerification = "awaiting_verification",
|
|
19
|
-
Confirmed = "confirmed",
|
|
20
|
-
Failed = "failed"
|
|
21
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { AbiEncodedValue, CallbackFn, CredentialType } from '.';
|
|
3
|
-
export declare enum ConfigSource {
|
|
4
|
-
HOOK = "hook",
|
|
5
|
-
PROPS = "props",
|
|
6
|
-
MANUAL = "manual"
|
|
7
|
-
}
|
|
8
|
-
export type IDKitConfig = {
|
|
9
|
-
app_id: string;
|
|
10
|
-
action_description?: string;
|
|
11
|
-
walletConnectProjectId?: string;
|
|
12
|
-
signal?: AbiEncodedValue | string;
|
|
13
|
-
action?: AbiEncodedValue | string;
|
|
14
|
-
credential_types?: CredentialType[];
|
|
15
|
-
};
|
|
16
|
-
export type WidgetConfig = {
|
|
17
|
-
autoClose?: boolean;
|
|
18
|
-
onSuccess?: CallbackFn;
|
|
19
|
-
theme?: 'dark' | 'light';
|
|
20
|
-
enableTelemetry?: boolean;
|
|
21
|
-
handleVerify?: CallbackFn;
|
|
22
|
-
copy?: {
|
|
23
|
-
title?: string;
|
|
24
|
-
heading?: string;
|
|
25
|
-
subheading?: string;
|
|
26
|
-
success?: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export type Config = IDKitConfig & Required<Pick<IDKitConfig, 'action'>> & WidgetConfig;
|
|
30
|
-
export type WidgetProps = Config & {
|
|
31
|
-
children?: ({ open }: {
|
|
32
|
-
open: () => void;
|
|
33
|
-
}) => JSX.Element;
|
|
34
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { AppErrorCodes } from './app';
|
|
2
|
-
declare const brand: unique symbol;
|
|
3
|
-
type Brand<T, TBrand extends string> = T & {
|
|
4
|
-
[brand]: TBrand;
|
|
5
|
-
};
|
|
6
|
-
export type AbiEncodedValue = Brand<{
|
|
7
|
-
types: string[];
|
|
8
|
-
values: unknown[];
|
|
9
|
-
}, 'AbiEncodedValue'>;
|
|
10
|
-
export declare enum IDKITStage {
|
|
11
|
-
WORLD_ID = "WORLD_ID",
|
|
12
|
-
PRIVACY = "PRIVACY",
|
|
13
|
-
SUCCESS = "SUCCESS",
|
|
14
|
-
ERROR = "ERROR",
|
|
15
|
-
HOST_APP_VERIFICATION = "HOST_APP_VERIFICATION"
|
|
16
|
-
}
|
|
17
|
-
export declare enum CredentialType {
|
|
18
|
-
Orb = "orb",
|
|
19
|
-
Phone = "phone"
|
|
20
|
-
}
|
|
21
|
-
export interface ISuccessResult {
|
|
22
|
-
proof: string;
|
|
23
|
-
merkle_root: string;
|
|
24
|
-
nullifier_hash: string;
|
|
25
|
-
credential_type: CredentialType;
|
|
26
|
-
}
|
|
27
|
-
export type CallbackFn = (result: ISuccessResult) => Promise<void> | void;
|
|
28
|
-
export interface ExpectedErrorResponse {
|
|
29
|
-
message: string;
|
|
30
|
-
stack: string;
|
|
31
|
-
}
|
|
32
|
-
export interface IErrorState {
|
|
33
|
-
code: AppErrorCodes;
|
|
34
|
-
message?: string;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
package/build/src/vanilla.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Config } from './types/config';
|
|
2
|
-
/**
|
|
3
|
-
* Initializes IDKitWidget, should only be called once per app. Note that nothing will be shown until you call `open()`
|
|
4
|
-
* @param config The IDKit configuration object
|
|
5
|
-
*/
|
|
6
|
-
export declare const init: (config: Config) => void;
|
|
7
|
-
export declare const update: (config: Config) => void;
|
|
8
|
-
export declare const open: () => Promise<unknown>;
|
|
9
|
-
/**
|
|
10
|
-
* Reset internal state. Useful for unit-testing
|
|
11
|
-
*/
|
|
12
|
-
export declare const reset: () => void;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type { CSS } from '@stitches/react/types/css-util';
|
|
3
|
-
export declare const stitches: import("@stitches/react/types/stitches").default<"", {}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
|
4
|
-
export declare const css: <Composers extends (string | import("@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | {
|
|
5
|
-
[name: string]: unknown;
|
|
6
|
-
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
7
|
-
variants?: {
|
|
8
|
-
[x: string]: {
|
|
9
|
-
[x: string]: CSS;
|
|
10
|
-
[x: number]: CSS;
|
|
11
|
-
};
|
|
12
|
-
} | undefined;
|
|
13
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & {
|
|
14
|
-
css: CSS;
|
|
15
|
-
})[] | undefined;
|
|
16
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
17
|
-
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "variants" | "compoundVariants" | "defaultVariants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, CSS>, styled: <Type extends import("@stitches/react/types/util").Function | import("react").ComponentType<any> | keyof JSX.IntrinsicElements, Composers extends (string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> | {
|
|
18
|
-
[name: string]: unknown;
|
|
19
|
-
})[], CSS = import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>>(type: Type, ...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | import("@stitches/react/types/util").Function | import("react").ComponentType<any> ? Composers[K] : import("@stitches/react/types/stitches").RemoveIndex<CSS> & {
|
|
20
|
-
variants?: {
|
|
21
|
-
[x: string]: {
|
|
22
|
-
[x: string]: CSS;
|
|
23
|
-
[x: number]: CSS;
|
|
24
|
-
};
|
|
25
|
-
} | undefined;
|
|
26
|
-
compoundVariants?: (("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T ? { [Name in keyof T]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name]> | undefined; } : never : import("@stitches/react/types/util").WideObject) & {
|
|
27
|
-
css: CSS;
|
|
28
|
-
})[] | undefined;
|
|
29
|
-
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
30
|
-
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "variants" | "compoundVariants" | "defaultVariants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {}, import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>>, globalCss: <Styles extends {
|
|
31
|
-
[K: string]: any;
|
|
32
|
-
}>(...styles: ({
|
|
33
|
-
'@import'?: unknown;
|
|
34
|
-
'@font-face'?: unknown;
|
|
35
|
-
} & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("@stitches/react/types/css").AtRule.FontFace | import("@stitches/react/types/css").AtRule.FontFace[] : K extends `@keyframes ${string}` ? {
|
|
36
|
-
[x: string]: import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
|
37
|
-
} : K extends `@property ${string}` ? import("@stitches/react/types/css").AtRule.Property : import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>; })[]) => () => string, theme: string & {
|
|
38
|
-
className: string;
|
|
39
|
-
selector: string;
|
|
40
|
-
} & {}, keyframes: (style: {
|
|
41
|
-
[offset: string]: import("@stitches/react/types/css-util").CSS<{}, {}, import("@stitches/react/types/config").DefaultThemeMap, {}>;
|
|
42
|
-
}) => {
|
|
43
|
-
(): string;
|
|
44
|
-
name: string;
|
|
45
|
-
}, getCssText: () => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|