@zag-js/anatomy
Advanced tools
Comparing version 0.0.0-dev-20221205175201 to 0.0.0-dev-20221215092235
@@ -1,8 +0,8 @@ | ||
declare type Part = { | ||
type Part = { | ||
selector: string; | ||
attrs: Record<"data-scope" | "data-part", string>; | ||
}; | ||
declare type Anatomy<T extends string> = { | ||
type Anatomy<T extends string> = { | ||
parts: <U extends string>(...parts: U[]) => Omit<Anatomy<U>, "parts">; | ||
extend: <V extends string>(...parts: V[]) => Omit<Anatomy<T | V>, "parts">; | ||
extendWith: <V extends string>(...parts: V[]) => Omit<Anatomy<T | V>, "parts">; | ||
build: () => Record<T, Part>; | ||
@@ -9,0 +9,0 @@ }; |
@@ -35,3 +35,3 @@ "use strict"; | ||
}, | ||
extend: (...values) => createAnatomy(name, [...parts, ...values]), | ||
extendWith: (...values) => createAnatomy(name, [...parts, ...values]), | ||
build: () => [...new Set(parts)].reduce( | ||
@@ -38,0 +38,0 @@ (prev, part) => Object.assign(prev, { |
{ | ||
"name": "@zag-js/anatomy", | ||
"version": "0.0.0-dev-20221205175201", | ||
"version": "0.0.0-dev-20221215092235", | ||
"main": "dist/index.js", | ||
@@ -29,4 +29,2 @@ "module": "dist/index.mjs", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
@@ -33,0 +31,0 @@ "build-fast": "tsup src/index.ts --format=esm,cjs", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5371