@pandacss/generator 0.0.0-dev-20230720173817 → 0.0.0-dev-20230722111409

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/index.js CHANGED
@@ -1751,12 +1751,16 @@ import { ${upperName} } from '../types/jsx'
1751
1751
  export declare const ${factoryName}: ${upperName}
1752
1752
  `,
1753
1753
  jsxType: import_outdent25.outdent`
1754
- import type { ComponentProps, ElementType } from 'react'
1754
+ import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
1755
1755
  import type { Assign, JsxStyleProps, JsxHTMLProps } from './system-types'
1756
1756
  import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe'
1757
1757
 
1758
1758
  type Dict = Record<string, unknown>
1759
1759
 
1760
+ type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
1761
+ ref?: Ref<ElementRef<T>>
1762
+ }
1763
+
1760
1764
  export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
1761
1765
  (props: JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>): JSX.Element
1762
1766
  displayName?: string
@@ -1842,10 +1846,14 @@ import { ${upperName} } from '../types/jsx'
1842
1846
  export declare const ${factoryName}: ${upperName}
1843
1847
  `,
1844
1848
  jsxType: import_outdent27.outdent`
1845
- import type { ComponentProps, ElementType } from 'react'
1849
+ import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
1846
1850
 
1847
1851
  type Dict = Record<string, unknown>
1848
1852
 
1853
+ type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
1854
+ ref?: Ref<ElementRef<T>>
1855
+ }
1856
+
1849
1857
  export type ${componentName}<T extends ElementType> = {
1850
1858
  (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1851
1859
  displayName?: string
package/dist/index.mjs CHANGED
@@ -1720,12 +1720,16 @@ import { ${upperName} } from '../types/jsx'
1720
1720
  export declare const ${factoryName}: ${upperName}
1721
1721
  `,
1722
1722
  jsxType: outdent25`
1723
- import type { ComponentProps, ElementType } from 'react'
1723
+ import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
1724
1724
  import type { Assign, JsxStyleProps, JsxHTMLProps } from './system-types'
1725
1725
  import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe'
1726
1726
 
1727
1727
  type Dict = Record<string, unknown>
1728
1728
 
1729
+ type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
1730
+ ref?: Ref<ElementRef<T>>
1731
+ }
1732
+
1729
1733
  export type ${componentName}<T extends ElementType, P extends Dict = {}> = {
1730
1734
  (props: JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>): JSX.Element
1731
1735
  displayName?: string
@@ -1811,10 +1815,14 @@ import { ${upperName} } from '../types/jsx'
1811
1815
  export declare const ${factoryName}: ${upperName}
1812
1816
  `,
1813
1817
  jsxType: outdent27`
1814
- import type { ComponentProps, ElementType } from 'react'
1818
+ import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
1815
1819
 
1816
1820
  type Dict = Record<string, unknown>
1817
1821
 
1822
+ type ComponentProps<T extends ElementType> = Omit<ComponentPropsWithoutRef<T>, 'ref'> & {
1823
+ ref?: Ref<ElementRef<T>>
1824
+ }
1825
+
1818
1826
  export type ${componentName}<T extends ElementType> = {
1819
1827
  (args: { raw: readonly string[] | ArrayLike<string> }): (props: ComponentProps<T>) => JSX.Element
1820
1828
  displayName?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/generator",
3
- "version": "0.0.0-dev-20230720173817",
3
+ "version": "0.0.0-dev-20230722111409",
4
4
  "description": "The css generator for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,17 +20,17 @@
20
20
  "pluralize": "8.0.0",
21
21
  "postcss": "8.4.25",
22
22
  "ts-pattern": "5.0.1",
23
- "@pandacss/core": "0.0.0-dev-20230720173817",
24
- "@pandacss/is-valid-prop": "0.0.0-dev-20230720173817",
25
- "@pandacss/logger": "0.0.0-dev-20230720173817",
26
- "@pandacss/shared": "0.0.0-dev-20230720173817",
27
- "@pandacss/token-dictionary": "0.0.0-dev-20230720173817",
28
- "@pandacss/types": "0.0.0-dev-20230720173817"
23
+ "@pandacss/core": "0.0.0-dev-20230722111409",
24
+ "@pandacss/is-valid-prop": "0.0.0-dev-20230722111409",
25
+ "@pandacss/logger": "0.0.0-dev-20230722111409",
26
+ "@pandacss/shared": "0.0.0-dev-20230722111409",
27
+ "@pandacss/token-dictionary": "0.0.0-dev-20230722111409",
28
+ "@pandacss/types": "0.0.0-dev-20230722111409"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pluralize": "0.0.30",
32
32
  "hookable": "5.5.3",
33
- "@pandacss/fixture": "0.0.0-dev-20230720173817"
33
+ "@pandacss/fixture": "0.0.0-dev-20230722111409"
34
34
  },
35
35
  "scripts": {
36
36
  "prebuild": "tsx scripts/prebuild.ts",