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

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'
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export type * from './conditions'
3
3
  export type * from './config'
4
4
  export type * from './global-vars'
5
5
  export type * from './hooks'
6
- export type * from './parts'
7
6
  export type * from './pattern'
8
7
  export type * from './recipe'
9
8
  export type * from './shared'
@@ -87,6 +87,8 @@ interface GenericProperties {
87
87
 
88
88
  export type NestedCssProperties = Nested<CssProperties>
89
89
 
90
+ export type FirstThatWorksMember = String | Number
91
+
90
92
  export type SystemStyleObject = Nested<(SystemProperties | GenericProperties) & CssVarProperties>
91
93
 
92
94
  export interface ViewTransitionStyleObject {
@@ -100,6 +102,14 @@ export type ViewTransitions = Record<string, ViewTransitionStyleObject>
100
102
 
101
103
  export type ViewTransitionFn = (options: ViewTransitionStyleObject | string) => string
102
104
 
105
+ /** Named `@position-try` fallback bags. Referenced by `positionTry('name')`. */
106
+ export type PositionTry = Record<string, SystemStyleObject>
107
+
108
+ export type PositionTryFn = (options: SystemStyleObject | string) => string
109
+
110
+ /** Inline `@keyframes` factory: `keyframes({...})` returns the animation name. Object form only. */
111
+ export type KeyframesFn = (keyframe: CssKeyframes[string]) => string
112
+
103
113
  export interface GlobalStyleObject {
104
114
  [selector: string]: SystemStyleObject
105
115
  }
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.17",
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"
package/dist/parts.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export interface Part {
2
- selector: string
3
- }
4
-
5
- export interface Parts {
6
- [key: string]: Part
7
- }