@yamada-ui/utils 1.3.0-dev-20240619213931 → 1.3.0-dev-20240620144457

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { Dict, Length, Merge, Path, Primitive, StringLiteral, Union } from './index.types.mjs';
1
+ export { Dict, Length, Merge, ObjectLiteral, Path, Primitive, StringLiteral, Union } from './index.types.mjs';
2
2
  export { cast, is, isArray, isBoolean, isEmpty, isFunction, isNotNumber, isNull, isNumber, isNumeric, isObject, isString, isUndefined, isUnit } from './assertion.mjs';
3
3
  export { assignAfter, filterObject, filterUndefined, flattenObject, getMemoizedObject, getObject, keysFormObject, memoizeObject, merge, objectFromEntries, omitObject, pickObject, replaceObject, splitObject } from './object.mjs';
4
4
  export { funcAll, handlerAll, noop, runIfFunc } from './function.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Dict, Length, Merge, Path, Primitive, StringLiteral, Union } from './index.types.js';
1
+ export { Dict, Length, Merge, ObjectLiteral, Path, Primitive, StringLiteral, Union } from './index.types.js';
2
2
  export { cast, is, isArray, isBoolean, isEmpty, isFunction, isNotNumber, isNull, isNumber, isNumeric, isObject, isString, isUndefined, isUnit } from './assertion.js';
3
3
  export { assignAfter, filterObject, filterUndefined, flattenObject, getMemoizedObject, getObject, keysFormObject, memoizeObject, merge, objectFromEntries, omitObject, pickObject, replaceObject, splitObject } from './object.js';
4
4
  export { funcAll, handlerAll, noop, runIfFunc } from './function.js';
@@ -4,9 +4,10 @@ type Path<T> = {
4
4
  [K in keyof T]-?: PathImpl<K, T[K]>;
5
5
  }[keyof T];
6
6
  type Dict<T = any> = Record<string, T>;
7
- type StringLiteral = string & {};
7
+ type ObjectLiteral = {};
8
+ type StringLiteral = string & ObjectLiteral;
8
9
  type Union<T> = T | StringLiteral;
9
10
  type Length = string | 0 | number;
10
11
  type Merge<Y, M> = M extends undefined ? Y : Omit<Y, keyof M> & M;
11
12
 
12
- export type { Dict, Length, Merge, Path, Primitive, StringLiteral, Union };
13
+ export type { Dict, Length, Merge, ObjectLiteral, Path, Primitive, StringLiteral, Union };
@@ -4,9 +4,10 @@ type Path<T> = {
4
4
  [K in keyof T]-?: PathImpl<K, T[K]>;
5
5
  }[keyof T];
6
6
  type Dict<T = any> = Record<string, T>;
7
- type StringLiteral = string & {};
7
+ type ObjectLiteral = {};
8
+ type StringLiteral = string & ObjectLiteral;
8
9
  type Union<T> = T | StringLiteral;
9
10
  type Length = string | 0 | number;
10
11
  type Merge<Y, M> = M extends undefined ? Y : Omit<Y, keyof M> & M;
11
12
 
12
- export type { Dict, Length, Merge, Path, Primitive, StringLiteral, Union };
13
+ export type { Dict, Length, Merge, ObjectLiteral, Path, Primitive, StringLiteral, Union };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.types.ts"],"sourcesContent":["export type Primitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | symbol\n | bigint\n\ntype PathImpl<K extends string | number | symbol, V> = K extends string | number\n ? V extends Primitive\n ? `${K}`\n : `${K}.${Path<V>}`\n : ``\n\nexport type Path<T> = {\n [K in keyof T]-?: PathImpl<K, T[K]>\n}[keyof T]\n\nexport type Dict<T = any> = Record<string, T>\n\nexport type StringLiteral = string & {}\n\nexport type Union<T> = T | StringLiteral\n\nexport type Length = string | 0 | number\n\nexport type Merge<Y, M> = M extends undefined ? Y : Omit<Y, keyof M> & M\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/index.types.ts"],"sourcesContent":["export type Primitive =\n | null\n | undefined\n | string\n | number\n | boolean\n | symbol\n | bigint\n\ntype PathImpl<K extends string | number | symbol, V> = K extends string | number\n ? V extends Primitive\n ? `${K}`\n : `${K}.${Path<V>}`\n : ``\n\nexport type Path<T> = {\n [K in keyof T]-?: PathImpl<K, T[K]>\n}[keyof T]\n\nexport type Dict<T = any> = Record<string, T>\n\nexport type ObjectLiteral = {}\n\nexport type StringLiteral = string & ObjectLiteral\n\nexport type Union<T> = T | StringLiteral\n\nexport type Length = string | 0 | number\n\nexport type Merge<Y, M> = M extends undefined ? Y : Omit<Y, keyof M> & M\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/utils",
3
- "version": "1.3.0-dev-20240619213931",
3
+ "version": "1.3.0-dev-20240620144457",
4
4
  "description": "Yamada UI utils",
5
5
  "keywords": [
6
6
  "utils",