@yamada-ui/utils 2.0.4-dev-20251027020649 → 2.0.4-dev-20251027025837

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.
@@ -2,7 +2,7 @@
2
2
  type ColorFormat = "hex" | "hexa" | "hsl" | "hsla" | "rgb" | "rgba";
3
3
  declare const SEMANTIC_COLOR_SCHEMES: readonly ["mono", "primary", "secondary", "info", "success", "warning", "danger", "error", "link"];
4
4
  declare const DEFAULT_COLOR_SCHEMES: readonly ["gray", "red", "rose", "pink", "flashy", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia"];
5
- declare const COLOR_SCHEMES: ("mono" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "error" | "link" | "gray" | "red" | "rose" | "pink" | "flashy" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia")[];
5
+ declare const COLOR_SCHEMES: ("link" | "error" | "mono" | "primary" | "secondary" | "info" | "success" | "warning" | "danger" | "gray" | "red" | "rose" | "pink" | "flashy" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia")[];
6
6
  declare const TONES: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
7
7
  declare function convertColor(color: string, fallback: string): {
8
8
  (format: ColorFormat): string;
@@ -1,35 +1,35 @@
1
1
  import { Dict } from "./index.types.js";
2
2
 
3
3
  //#region src/object.d.ts
4
- declare function omitObject<Y$1 extends Dict, M extends keyof Y$1>(obj: Y$1, keys: M[] | readonly M[]): Omit<Y$1, M>;
5
- declare function pickObject<Y$1 extends Dict, M extends keyof Y$1>(obj: Y$1, keys: M[] | readonly M[]): { [D in M]: Y$1[D] };
6
- declare function splitObject<Y$1 extends Dict, M extends keyof Y$1>(obj: Y$1, funcOrKeys?: M[] | readonly M[]): [{ [D in M]: Y$1[D] }, Omit<Y$1, M>];
7
- declare function splitObject<Y$1 extends Dict, M extends Dict>(obj: Dict, funcOrKeys?: (key: string) => boolean): [Y$1, M];
8
- declare function filterObject<Y$1 extends Dict, M extends Dict>(obj: Y$1, func: (key: keyof Y$1, value: Y$1[keyof Y$1], obj: Y$1) => boolean): M;
9
- declare function filterUndefined<Y$1 extends Dict>(obj: Y$1): Y$1;
4
+ declare function omitObject<Y extends Dict, M extends keyof Y>(obj: Y, keys: M[] | readonly M[]): Omit<Y, M>;
5
+ declare function pickObject<Y extends Dict, M extends keyof Y>(obj: Y, keys: M[] | readonly M[]): { [D in M]: Y[D] };
6
+ declare function splitObject<Y extends Dict, M extends keyof Y>(obj: Y, funcOrKeys?: M[] | readonly M[]): [{ [D in M]: Y[D] }, Omit<Y, M>];
7
+ declare function splitObject<Y extends Dict, M extends Dict>(obj: Dict, funcOrKeys?: (key: string) => boolean): [Y, M];
8
+ declare function filterObject<Y extends Dict, M extends Dict>(obj: Y, func: (key: keyof Y, value: Y[keyof Y], obj: Y) => boolean): M;
9
+ declare function filterUndefined<Y extends Dict>(obj: Y): Y;
10
10
  interface MergeOptions {
11
11
  debug?: boolean;
12
12
  mergeArray?: boolean;
13
13
  shouldProcess?: (value: any) => boolean;
14
14
  }
15
- declare function merge<Y$1 extends Dict>(target: any, source: any, options?: MergeOptions): Y$1;
15
+ declare function merge<Y extends Dict>(target: any, source: any, options?: MergeOptions): Y;
16
16
  interface FlattenObjectOptions {
17
17
  maxDepth?: number;
18
18
  separator?: string;
19
19
  shouldProcess?: (value: any) => boolean;
20
20
  }
21
- declare function flattenObject<Y$1 extends Dict>(obj: any, {
21
+ declare function flattenObject<Y extends Dict>(obj: any, {
22
22
  maxDepth,
23
23
  separator,
24
24
  shouldProcess
25
- }?: FlattenObjectOptions): Y$1;
26
- declare function objectKeys<Y$1 extends object>(obj: Y$1): (keyof Y$1)[];
27
- declare function replaceObject<Y$1 = any>(objOrArray: Y$1, callBack: (value: any) => any): Y$1;
25
+ }?: FlattenObjectOptions): Y;
26
+ declare function objectKeys<Y extends object>(obj: Y): (keyof Y)[];
27
+ declare function replaceObject<Y = any>(objOrArray: Y, callBack: (value: any) => any): Y;
28
28
  declare function getObject(obj: Dict | undefined, path: number | string, fallback?: any): any;
29
29
  declare function memoizeObject(func: typeof getObject): <Y>(obj: Dict, path: number | string, fallback?: any) => Y;
30
30
  declare const getMemoizedObject: <Y>(obj: Dict, path: number | string, fallback?: any) => Y;
31
- declare function wrapWithKey<Y$1>(obj: Y$1, key?: string): Y$1 | {
32
- [key]: Y$1;
31
+ declare function wrapWithKey<Y>(obj: Y, key?: string): Y | {
32
+ [key]: Y;
33
33
  };
34
34
  //#endregion
35
35
  export { FlattenObjectOptions, MergeOptions, filterObject, filterUndefined, flattenObject, getMemoizedObject, getObject, memoizeObject, merge, objectKeys, omitObject, pickObject, replaceObject, splitObject, wrapWithKey };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/utils",
3
3
  "type": "module",
4
- "version": "2.0.4-dev-20251027020649",
4
+ "version": "2.0.4-dev-20251027025837",
5
5
  "description": "The utilities for Yamada UI projects",
6
6
  "keywords": [
7
7
  "utils",