Skip to content

Commit

Permalink
refactor: fixtures (#1862)
Browse files Browse the repository at this point in the history
* refactor: fixtures as dev alias only / rm from deps
feat: RuleProcessor

* wip: change imports and use fixtureConfig/Defaults

* test: update snapshot + use `styled` and `styled-system`

* chore: fix d.ts generation
  • Loading branch information
astahmer authored Dec 22, 2023
1 parent bd552b1 commit a7fd22c
Show file tree
Hide file tree
Showing 87 changed files with 1,379 additions and 1,481 deletions.
5 changes: 1 addition & 4 deletions packages/astro-plugin-studio/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts"],
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo"
}
"include": ["src", "index.ts"]
}
5 changes: 1 addition & 4 deletions packages/astro/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts"],
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo"
}
"include": ["src", "index.ts"]
}
5 changes: 1 addition & 4 deletions packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "index.ts"],
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/.tsbuildinfo"
}
"include": ["src", "index.ts"]
}
13 changes: 5 additions & 8 deletions packages/core/__tests__/atomic-recipe.test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import type { Dict } from '@pandacss/types'
import type { RecipeDefinition } from '@pandacss/types'
import { describe, expect, test } from 'vitest'
import { Stylesheet } from '../src'
import { createContext } from './fixture'
import { createRuleProcessor } from './fixture'

function recipe(values: Dict) {
const sheet = new Stylesheet(createContext())
sheet.processAtomicRecipe(values)
return sheet.toCss({ optimize: true })
function processAtomicRule(config: RecipeDefinition<any>) {
return createRuleProcessor().cva(config).toCss()
}

describe('Atomic recipe', () => {
test('should work', () => {
const sheet = recipe({
const sheet = processAtomicRule({
base: {
fontSize: 'lg',
},
Expand Down
Loading

3 comments on commit a7fd22c

@vercel
Copy link

@vercel vercel bot commented on a7fd22c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a7fd22c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

panda-docs – ./website

panda-css.com
panda-docs.vercel.app
panda-docs-git-main-chakra-ui.vercel.app
panda-docs-chakra-ui.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a7fd22c Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

panda-studio – ./

panda-studio-chakra-ui.vercel.app
panda-app.vercel.app
panda-studio-git-main-chakra-ui.vercel.app

Please sign in to comment.