@dicebear/core 11.0.0-rc.1 → 11.0.0-rc.3

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.
@@ -43,8 +43,10 @@ export interface StyleOptionsBase {
43
43
  readonly translateX?: number | readonly [number, number];
44
44
  readonly translateY?: number | readonly [number, number];
45
45
  readonly tags?: string | readonly string[];
46
- readonly animation?: boolean | string | readonly string[];
46
+ readonly animation?: boolean;
47
47
  readonly animationSpeed?: number | readonly [number, number];
48
+ readonly animationDelay?: number | readonly [number, number];
49
+ readonly animationMotionQuery?: boolean;
48
50
  }
49
51
  type ComponentVariantOption<D, K extends string> = VariantNames<D, K> | readonly VariantNames<D, K>[] | Readonly<Partial<Record<VariantNames<D, K>, number>>>;
50
52
  type IsAlias<D, C extends string> = D extends {
@@ -68,7 +70,12 @@ type ColorOptions<C extends string> = [C] extends [never] ? unknown : {
68
70
  } & {
69
71
  readonly [K in C as `${K}ColorOrder`]?: StyleOptionsColorOrderValue;
70
72
  };
71
- export type StyleOptions<D = unknown> = StyleOptionsBase & ComponentOptions<D, ComponentNames<D>> & ColorOptions<AllColorNames<D>> & (HasSpecificKeys<D> extends true ? unknown : {
73
+ type AnimationOptions = {
74
+ readonly [key: `${string}Animation`]: boolean | undefined;
75
+ readonly [key: `${string}AnimationSpeed`]: number | readonly [number, number] | undefined;
76
+ readonly [key: `${string}AnimationDelay`]: number | readonly [number, number] | undefined;
77
+ };
78
+ export type StyleOptions<D = unknown> = StyleOptionsBase & ComponentOptions<D, ComponentNames<D>> & ColorOptions<AllColorNames<D>> & (HasSpecificKeys<D> extends true ? AnimationOptions : {
72
79
  readonly [key: string]: unknown;
73
80
  });
74
81
  export {};