@chakra-ui/anatomy
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -6,3 +6,3 @@ /** | ||
declare function anatomy<T extends string = string>(name: string, map?: Record<T, Part>): Anatomy<T>; | ||
declare type Part = { | ||
type Part = { | ||
className: string; | ||
@@ -12,3 +12,3 @@ selector: string; | ||
}; | ||
declare type Anatomy<T extends string> = { | ||
type Anatomy<T extends string> = { | ||
parts: <V extends string>(...values: V[]) => Omit<Anatomy<V>, "parts">; | ||
@@ -15,0 +15,0 @@ toPart: (part: string) => Part; |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -93,1 +94,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=anatomy.js.map |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -139,5 +140,10 @@ var __defProp = Object.defineProperty; | ||
var formErrorAnatomy = anatomy("formError").parts("text", "icon"); | ||
var inputAnatomy = anatomy("input").parts("addon", "field", "element"); | ||
var inputAnatomy = anatomy("input").parts( | ||
"addon", | ||
"field", | ||
"element", | ||
"group" | ||
); | ||
var listAnatomy = anatomy("list").parts("container", "item", "icon"); | ||
var menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"); | ||
var menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"); | ||
var modalAnatomy = anatomy("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"); | ||
@@ -242,1 +248,2 @@ var numberInputAnatomy = anatomy("numberinput").parts( | ||
}); | ||
//# sourceMappingURL=components.js.map |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -140,5 +141,10 @@ var __defProp = Object.defineProperty; | ||
var formErrorAnatomy = anatomy("formError").parts("text", "icon"); | ||
var inputAnatomy = anatomy("input").parts("addon", "field", "element"); | ||
var inputAnatomy = anatomy("input").parts( | ||
"addon", | ||
"field", | ||
"element", | ||
"group" | ||
); | ||
var listAnatomy = anatomy("list").parts("container", "item", "icon"); | ||
var menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "command", "divider"); | ||
var menuAnatomy = anatomy("menu").parts("button", "list", "item").extend("groupTitle", "icon", "command", "divider"); | ||
var modalAnatomy = anatomy("modal").parts("overlay", "dialogContainer", "dialog").extend("header", "closeButton", "body", "footer"); | ||
@@ -244,1 +250,2 @@ var numberInputAnatomy = anatomy("numberinput").parts( | ||
}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@chakra-ui/anatomy", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "The anatomy of all chakra components", | ||
@@ -31,13 +31,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"clean-package": "2.1.1" | ||
"clean-package": "2.2.0" | ||
}, | ||
"clean-package": "../../../clean-package.config.json", | ||
"tsup": { | ||
"clean": true, | ||
"target": "es2019", | ||
"format": [ | ||
"cjs", | ||
"esm" | ||
] | ||
}, | ||
"module": "dist/index.mjs", | ||
@@ -44,0 +36,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22
2879229
38296