@pandacss/studio 0.21.0 → 0.22.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/astro.config.mjs +3 -9
- package/dist/studio.d.mts +1 -1
- package/dist/studio.d.ts +1 -1
- package/dist/studio.js +38 -2050
- package/dist/studio.mjs +42 -2080
- package/package.json +11 -14
- package/src/components/sizes.tsx +4 -3
- package/styled-system/helpers.mjs +2 -0
- package/styled-system/jsx/aspect-ratio.mjs +2 -5
- package/styled-system/jsx/bleed.mjs +2 -5
- package/styled-system/jsx/box.mjs +3 -7
- package/styled-system/jsx/center.mjs +2 -5
- package/styled-system/jsx/circle.mjs +2 -5
- package/styled-system/jsx/container.mjs +3 -7
- package/styled-system/jsx/divider.mjs +2 -5
- package/styled-system/jsx/factory.mjs +1 -2
- package/styled-system/jsx/flex.mjs +2 -5
- package/styled-system/jsx/float.mjs +2 -5
- package/styled-system/jsx/grid-item.mjs +2 -5
- package/styled-system/jsx/grid.mjs +2 -5
- package/styled-system/jsx/hstack.mjs +2 -5
- package/styled-system/jsx/index.d.ts +0 -3
- package/styled-system/jsx/link-box.mjs +3 -7
- package/styled-system/jsx/link-overlay.mjs +3 -7
- package/styled-system/jsx/spacer.mjs +2 -5
- package/styled-system/jsx/square.mjs +2 -5
- package/styled-system/jsx/stack.mjs +2 -5
- package/styled-system/jsx/styled-link.mjs +3 -7
- package/styled-system/jsx/visually-hidden.mjs +3 -7
- package/styled-system/jsx/vstack.mjs +2 -5
- package/styled-system/jsx/wrap.mjs +2 -5
- package/styled-system/styles.css +1277 -542
- package/styled-system/types/conditions.d.ts +1 -1
- package/styled-system/types/csstype.d.ts +1270 -721
- package/styled-system/types/recipe.d.ts +5 -0
- package/styled-system/types/static-css.d.ts +39 -0
- package/styled-system/chunks/src__components__color-constrast.css +0 -106
- package/styled-system/chunks/src__components__color-wrapper.css +0 -58
- package/styled-system/chunks/src__components__colors.css +0 -106
- package/styled-system/chunks/src__components__empty-state.css +0 -46
- package/styled-system/chunks/src__components__font-family.css +0 -86
- package/styled-system/chunks/src__components__font-tokens.css +0 -62
- package/styled-system/chunks/src__components__input.css +0 -58
- package/styled-system/chunks/src__components__layer-styles.css +0 -63
- package/styled-system/chunks/src__components__nav-item.css +0 -57
- package/styled-system/chunks/src__components__overview.css +0 -122
- package/styled-system/chunks/src__components__radii.css +0 -50
- package/styled-system/chunks/src__components__semantic-color.css +0 -70
- package/styled-system/chunks/src__components__side-nav-item.css +0 -30
- package/styled-system/chunks/src__components__side-nav.css +0 -50
- package/styled-system/chunks/src__components__sizes.css +0 -42
- package/styled-system/chunks/src__components__text-styles.css +0 -32
- package/styled-system/chunks/src__components__theme-toggle.css +0 -62
- package/styled-system/chunks/src__components__token-content.css +0 -14
- package/styled-system/chunks/src__components__token-group.css +0 -22
- package/styled-system/chunks/src__components__typography-playground.css +0 -62
- package/styled-system/chunks/src__layouts__Sidebar.css +0 -114
- package/styled-system/global.css +0 -58
- package/styled-system/reset.css +0 -214
- package/styled-system/static.css +0 -5
- package/styled-system/tokens/index.css +0 -437
- package/styled-system/tokens/keyframes.css +0 -28
- package/styled-system/types/helpers.d.ts +0 -2
- package/virtual-panda.ts +0 -62
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@layer tokens {
|
|
2
|
-
@keyframes spin {
|
|
3
|
-
to {
|
|
4
|
-
transform: rotate(360deg)
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
@keyframes ping {
|
|
8
|
-
75%, 100% {
|
|
9
|
-
transform: scale(2);
|
|
10
|
-
opacity: 0
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@keyframes pulse {
|
|
14
|
-
50% {
|
|
15
|
-
opacity: .5
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
@keyframes bounce {
|
|
19
|
-
0%, 100% {
|
|
20
|
-
transform: translateY(-25%);
|
|
21
|
-
animation-timing-function: cubic-bezier(0.8,0,1,1)
|
|
22
|
-
}
|
|
23
|
-
50% {
|
|
24
|
-
transform: none;
|
|
25
|
-
animation-timing-function: cubic-bezier(0,0,0.2,1)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
package/virtual-panda.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { loadConfigAndCreateContext, type PandaContext } from '@pandacss/node'
|
|
2
|
-
import type { AstroIntegration } from 'astro'
|
|
3
|
-
import { stringify } from 'javascript-stringify'
|
|
4
|
-
import type { PluginOption } from 'vite'
|
|
5
|
-
|
|
6
|
-
const virtualModuleId = 'virtual:panda'
|
|
7
|
-
const resolvedVirtualModuleId = '\0' + virtualModuleId
|
|
8
|
-
|
|
9
|
-
function vitePlugin(configPath: string): PluginOption {
|
|
10
|
-
let config: PandaContext['config']
|
|
11
|
-
|
|
12
|
-
async function loadPandaConfig() {
|
|
13
|
-
const ctx = await loadConfigAndCreateContext({ configPath })
|
|
14
|
-
config = ctx.config
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
return {
|
|
18
|
-
name: 'vite:panda',
|
|
19
|
-
|
|
20
|
-
async configureServer(server) {
|
|
21
|
-
server.watcher.add(configPath).on('change', async (path) => {
|
|
22
|
-
if (path !== configPath) return
|
|
23
|
-
await loadPandaConfig()
|
|
24
|
-
const module = server.moduleGraph.getModuleById(resolvedVirtualModuleId)
|
|
25
|
-
if (module) await server.reloadModule(module)
|
|
26
|
-
})
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
resolveId(id) {
|
|
30
|
-
if (id === virtualModuleId) {
|
|
31
|
-
return resolvedVirtualModuleId
|
|
32
|
-
}
|
|
33
|
-
return null
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
async load(id) {
|
|
37
|
-
if (id === resolvedVirtualModuleId) {
|
|
38
|
-
await loadPandaConfig()
|
|
39
|
-
return {
|
|
40
|
-
code: `export const config = ${stringify(config)}`,
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const virtualPanda = (): AstroIntegration => ({
|
|
48
|
-
name: 'virtual:panda',
|
|
49
|
-
hooks: {
|
|
50
|
-
'astro:config:setup': ({ updateConfig }) => {
|
|
51
|
-
const configPath = process.env.PUBLIC_CONFIG_PATH
|
|
52
|
-
|
|
53
|
-
updateConfig({
|
|
54
|
-
vite: {
|
|
55
|
-
plugins: [vitePlugin(configPath!)],
|
|
56
|
-
},
|
|
57
|
-
})
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
export default virtualPanda
|