@pandacss/types 2.0.0-beta.15 → 2.0.0-beta.16

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/dist/config.d.ts CHANGED
@@ -9,7 +9,6 @@ import type {
9
9
  ExtendableGlobalStyleObject,
10
10
  GlobalFontface,
11
11
  GlobalStyleObject,
12
- SystemStyleObject,
13
12
  } from './system-types'
14
13
  import type { ExtendableTheme, Theme } from './theme'
15
14
  import type { CssPropertyDefinition, GlobalVarsDefinition } from './global-vars'
@@ -40,10 +39,6 @@ export interface PresetCore {
40
39
  * The global fontface for your project.
41
40
  */
42
41
  globalFontface?: GlobalFontface
43
- /**
44
- * The global custom position try fallback option
45
- */
46
- globalPositionTry?: GlobalPositionTry
47
42
  /**
48
43
  * Used to generate css utility classes for your project.
49
44
  */
@@ -82,15 +77,6 @@ interface ExtendableGlobalVars {
82
77
  extend?: GlobalVarsDefinition
83
78
  }
84
79
 
85
- export interface GlobalPositionTry {
86
- [key: string]: SystemStyleObject
87
- }
88
-
89
- interface ExtendableGlobalPositionTry {
90
- [key: string]: SystemStyleObject | GlobalPositionTry | undefined
91
- extend?: GlobalPositionTry | undefined
92
- }
93
-
94
80
  export interface ThemeVariant extends Pick<Theme, 'tokens' | 'semanticTokens'> {}
95
81
 
96
82
  export interface ThemeVariantsMap {
@@ -119,7 +105,6 @@ export interface ExtendableOptions {
119
105
  /**
120
106
  * The global custom position try fallback option
121
107
  */
122
- globalPositionTry?: ExtendableGlobalPositionTry
123
108
  /**
124
109
  * Used to generate css utility classes for your project.
125
110
  */
@@ -280,11 +265,6 @@ interface CssgenOptions {
280
265
  * @default ':where(:host, :root)'
281
266
  */
282
267
  cssVarRoot?: string
283
- /**
284
- * The css syntax kind to use
285
- * @default 'object-literal'
286
- */
287
- syntax?: 'template-literal' | 'object-literal'
288
268
  /**
289
269
  * Layer mappings used in the generated css.
290
270
  * @default 'true'
@@ -100,6 +100,14 @@ export type ViewTransitions = Record<string, ViewTransitionStyleObject>
100
100
 
101
101
  export type ViewTransitionFn = (options: ViewTransitionStyleObject | string) => string
102
102
 
103
+ /** Named `@position-try` fallback bags. Referenced by `positionTry('name')`. */
104
+ export type PositionTry = Record<string, SystemStyleObject>
105
+
106
+ export type PositionTryFn = (options: SystemStyleObject | string) => string
107
+
108
+ /** Inline `@keyframes` factory: `keyframes({...})` returns the animation name. Object form only. */
109
+ export type KeyframesFn = (keyframe: CssKeyframes[string]) => string
110
+
103
111
  export interface GlobalStyleObject {
104
112
  [selector: string]: SystemStyleObject
105
113
  }
package/dist/theme.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { AnimationStyles, LayerStyles, TextStyles } from './composition'
2
2
  import type { RecipeConfig, SlotRecipeConfig } from './recipe'
3
- import type { CssKeyframes, ViewTransitions } from './system-types'
3
+ import type { CssKeyframes, PositionTry, ViewTransitions } from './system-types'
4
4
  import type { SemanticTokens, Tokens } from './tokens'
5
5
 
6
6
  export interface ColorPaletteOptions {
@@ -56,6 +56,11 @@ export interface Theme {
56
56
  * `view-transition-name` values at runtime.
57
57
  */
58
58
  viewTransitions?: ViewTransitions
59
+ /**
60
+ * Named `@position-try` anchor-positioning fallbacks. Call `positionTry('bottom')`
61
+ * to get the dashed-ident for `positionTryFallbacks`. Emitted only when used.
62
+ */
63
+ positionTry?: PositionTry
59
64
  /**
60
65
  * Multi-variant style definitions for your project.
61
66
  * Useful for defining component styles.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "2.0.0-beta.15",
3
+ "version": "2.0.0-beta.16",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -27,6 +27,7 @@
27
27
  "dist"
28
28
  ],
29
29
  "devDependencies": {
30
+ "@parcel/watcher": "2.5.6",
30
31
  "csstype": "3.2.3",
31
32
  "ncp": "2.0.0",
32
33
  "pkg-types": "2.3.0"