@pandacss/types 0.0.0-dev-20231020171339 → 0.0.0-dev-20231020173315

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/shared.d.ts CHANGED
@@ -14,10 +14,12 @@ export type AnyFunction<T = any> = (...args: T[]) => any
14
14
 
15
15
  type Nullable<T> = T | null | undefined
16
16
 
17
+ export interface ArtifactContent {
18
+ file: string
19
+ code: string | undefined
20
+ }
21
+
17
22
  export type Artifact = Nullable<{
18
23
  dir?: string[]
19
- files: Array<{
20
- file: string
21
- code: string | undefined
22
- }>
24
+ files: ArtifactContent[]
23
25
  }>
@@ -5,6 +5,18 @@ import type { SystemProperties, CssVarProperties } from './style-props'
5
5
  type String = string & {}
6
6
  type Number = number & {}
7
7
 
8
+ export type Pretty<T> = { [K in keyof T]: T[K] } & {}
9
+
10
+ export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
11
+
12
+ export type DistributiveUnion<T, U> = {
13
+ [K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
14
+ } & DistributiveOmit<U, keyof T>
15
+
16
+ export type Assign<T, U> = {
17
+ [K in keyof T]: K extends keyof U ? U[K] : T[K]
18
+ } & U
19
+
8
20
  /* -----------------------------------------------------------------------------
9
21
  * Native css properties
10
22
  * -----------------------------------------------------------------------------*/
@@ -61,12 +73,6 @@ type StyleProps = SystemProperties & MinimalNested<SystemStyleObject>
61
73
 
62
74
  export type JsxStyleProps = StyleProps & WithCss
63
75
 
64
- export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
65
-
66
- export type Assign<T, U> = {
67
- [K in keyof T]: K extends keyof U ? U[K] : T[K]
68
- } & U
69
-
70
76
  export interface PatchedHTMLProps {
71
77
  htmlWidth?: string | number
72
78
  htmlHeight?: string | number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20231020171339",
3
+ "version": "0.0.0-dev-20231020173315",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -17,7 +17,7 @@
17
17
  "hookable": "5.5.3",
18
18
  "ncp": "^2.0.0",
19
19
  "pkg-types": "1.0.3",
20
- "@pandacss/extractor": "0.0.0-dev-20231020171339"
20
+ "@pandacss/extractor": "0.0.0-dev-20231020173315"
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsx scripts/build.ts",