@vanilla-extract/recipes
Advanced tools
Comparing version 0.5.1 to 0.5.2
import { ComplexStyleRule } from '@vanilla-extract/css'; | ||
type Resolve<T> = { | ||
[Key in keyof T]: T[Key]; | ||
} & {}; | ||
type RecipeStyleRule = ComplexStyleRule | string; | ||
@@ -25,3 +28,3 @@ type VariantDefinitions = Record<string, RecipeStyleRule>; | ||
}; | ||
type RuntimeFn<Variants extends VariantGroups> = ((options?: VariantSelection<Variants>) => string) & { | ||
type RuntimeFn<Variants extends VariantGroups> = ((options?: Resolve<VariantSelection<Variants>>) => string) & { | ||
variants: () => (keyof Variants)[]; | ||
@@ -28,0 +31,0 @@ classNames: RecipeClassNames<Variants>; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('../../dist/createRuntimeFn-ccd358b3.cjs.dev.js'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('../../dist/createRuntimeFn-2f250aaf.cjs.dev.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('../../dist/createRuntimeFn-eea83d16.cjs.prod.js'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('../../dist/createRuntimeFn-166334d7.cjs.prod.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -1,1 +0,1 @@ | ||
export { c as createRuntimeFn } from '../../dist/createRuntimeFn-f8e161c6.esm.js'; | ||
export { c as createRuntimeFn } from '../../dist/createRuntimeFn-62c9670f.esm.js'; |
@@ -32,3 +32,3 @@ import { ComplexStyleRule } from '@vanilla-extract/css'; | ||
}; | ||
type RuntimeFn<Variants extends VariantGroups> = ((options?: VariantSelection<Variants>) => string) & { | ||
type RuntimeFn<Variants extends VariantGroups> = ((options?: Resolve<VariantSelection<Variants>>) => string) & { | ||
variants: () => (keyof Variants)[]; | ||
@@ -35,0 +35,0 @@ classNames: RecipeClassNames<Variants>; |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var css = require('@vanilla-extract/css'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('./createRuntimeFn-ccd358b3.cjs.dev.js'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('./createRuntimeFn-2f250aaf.cjs.dev.js'); | ||
@@ -10,0 +10,0 @@ function recipe(options, debugId) { |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var css = require('@vanilla-extract/css'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('./createRuntimeFn-eea83d16.cjs.prod.js'); | ||
var createRuntimeFn_dist_vanillaExtractRecipesCreateRuntimeFn = require('./createRuntimeFn-166334d7.cjs.prod.js'); | ||
@@ -10,0 +10,0 @@ function recipe(options, debugId) { |
import { addRecipe } from '@vanilla-extract/css/recipe'; | ||
import { style, styleVariants } from '@vanilla-extract/css'; | ||
import { m as mapValues, c as createRuntimeFn } from './createRuntimeFn-f8e161c6.esm.js'; | ||
import { m as mapValues, c as createRuntimeFn } from './createRuntimeFn-62c9670f.esm.js'; | ||
@@ -5,0 +5,0 @@ function recipe(options, debugId) { |
{ | ||
"name": "@vanilla-extract/recipes", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Create multi-variant styles with a type-safe runtime API, heavily inspired by https://stitches.dev", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
19
535
25614
1