@baseline-ui/css 0.37.1 → 0.39.0
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/Acknowledgements.md +12692 -17640
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var{base:f,variants:V,compoundVariants:S}=tokens.sprinkles,o="__@@Component_Sprinkles__";function k(e){return {[o]
|
|
10
|
+
var{base:f,variants:V,compoundVariants:S}=tokens.sprinkles,o="__@@Component_Sprinkles__";function k(e){return {[o]:true,baseSprinkles:f(e),variantSprinkles:V(e),compoundVariantSprinkles:S(e)}}function d(e){switch(e){case "base":return tokens.Layers.BASE;case "variant":return tokens.Layers.VARIANTS;case "compoundVariant":return tokens.Layers.COMPOUND_VARIANTS}}function n(e,a){return e&&(Array.isArray(e)?e.map(r=>typeof r=="object"?n(r,a):r):typeof e=="object"?o in e?e[`${a}Sprinkles`]:e["@layer"]?e:{"@layer":{[d(a)]:e}}:e)}function l(e){return e&&Object.fromEntries(Object.entries(e).map(([a,r])=>[a,Object.fromEntries(Object.entries(r).map(([t,i])=>[t,n(i,"variant")]))]))}function N(e,a){let{base:r,variants:t,compoundVariants:i,defaultVariants:c}=e;return recipes.recipe({base:n(r,"base"),compoundVariants:i?.map(p=>({...p,style:n(p.style,"compoundVariant")})),variants:l(t),defaultVariants:c},a)}exports.layeredRecipe=N;exports.recipeSprinkles=k;
|
package/dist/index.mjs
CHANGED
|
@@ -7,4 +7,4 @@ import {sprinkles,Layers}from'@baseline-ui/tokens';import {recipe}from'@vanilla-
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var{base:f,variants:V,compoundVariants:S}=sprinkles,o="__@@Component_Sprinkles__";function k(e){return {[o]
|
|
10
|
+
var{base:f,variants:V,compoundVariants:S}=sprinkles,o="__@@Component_Sprinkles__";function k(e){return {[o]:true,baseSprinkles:f(e),variantSprinkles:V(e),compoundVariantSprinkles:S(e)}}function d(e){switch(e){case "base":return Layers.BASE;case "variant":return Layers.VARIANTS;case "compoundVariant":return Layers.COMPOUND_VARIANTS}}function n(e,a){return e&&(Array.isArray(e)?e.map(r=>typeof r=="object"?n(r,a):r):typeof e=="object"?o in e?e[`${a}Sprinkles`]:e["@layer"]?e:{"@layer":{[d(a)]:e}}:e)}function l(e){return e&&Object.fromEntries(Object.entries(e).map(([a,r])=>[a,Object.fromEntries(Object.entries(r).map(([t,i])=>[t,n(i,"variant")]))]))}function N(e,a){let{base:r,variants:t,compoundVariants:i,defaultVariants:c}=e;return recipe({base:n(r,"base"),compoundVariants:i?.map(p=>({...p,style:n(p.style,"compoundVariant")})),variants:l(t),defaultVariants:c},a)}export{N as layeredRecipe,k as recipeSprinkles};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseline-ui/css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "The styling library for Baseline UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@vanilla-extract/recipes": "0.5.5",
|
|
19
19
|
"@vanilla-extract/css": "^1.17.1",
|
|
20
|
-
"@baseline-ui/tokens": "0.
|
|
20
|
+
"@baseline-ui/tokens": "0.39.0"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|