@pandacss/studio 1.4.2 → 1.5.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/dist/studio.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.3_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
1
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.4.2_postcss@8.5.6_tsx@4.20.6_typescript@5.8.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
2
2
  import path from "path";
3
3
  import { fileURLToPath } from "url";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -48,16 +48,16 @@
48
48
  "react": "19.1.1",
49
49
  "react-dom": "19.1.1",
50
50
  "vite": "7.0.6",
51
- "@pandacss/config": "1.4.2",
52
- "@pandacss/logger": "1.4.2",
53
- "@pandacss/shared": "1.4.2",
54
- "@pandacss/token-dictionary": "1.4.2",
55
- "@pandacss/types": "1.4.2",
56
- "@pandacss/astro-plugin-studio": "1.4.2"
51
+ "@pandacss/config": "1.5.0",
52
+ "@pandacss/logger": "1.5.0",
53
+ "@pandacss/shared": "1.5.0",
54
+ "@pandacss/token-dictionary": "1.5.0",
55
+ "@pandacss/types": "1.5.0",
56
+ "@pandacss/astro-plugin-studio": "1.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/react": "18.2.55",
60
- "@types/react-dom": "18.2.19",
59
+ "@types/react": "19.2.2",
60
+ "@types/react-dom": "19.2.2",
61
61
  "@testing-library/react": "16.3.0"
62
62
  },
63
63
  "scripts": {
@@ -1,4 +1,4 @@
1
- import type { Token, TokenExtensions } from '@pandacss/token-dictionary'
1
+ import type { Token } from '@pandacss/token-dictionary'
2
2
  import * as React from 'react'
3
3
  import { Grid, HStack, Stack, panda } from '../../styled-system/jsx'
4
4
  import { ColorWrapper } from '../components/color-wrapper'
@@ -6,7 +6,7 @@ import { TokenGroup } from '../components/token-group'
6
6
  import { Input, Textarea } from './input'
7
7
  import { StickyTop } from './sticky-top'
8
8
  import { EmptyState } from './empty-state'
9
- import { TypographyIcon, XMarkIcon } from './icons'
9
+ import { TypographyIcon } from './icons'
10
10
 
11
11
  interface FontTokensProps {
12
12
  text?: string
package/src/lib/color.ts CHANGED
@@ -16,7 +16,7 @@ export const getContrastPairs = (colorA: string, colorB: string) => {
16
16
  fontSize: 18,
17
17
  },
18
18
  ])
19
- } catch (error) {
19
+ } catch {
20
20
  //
21
21
  }
22
22
 
@@ -32,7 +32,7 @@ export const getContrastRatio = (colorA: string, colorB: string) => {
32
32
  luminanceA = contrastChecker.hexToLuminance(colorA)
33
33
  luminanceB = contrastChecker.hexToLuminance(colorB)
34
34
  ratio = contrastChecker.getContrastRatio(luminanceA, luminanceB)
35
- } catch (error) {
35
+ } catch {
36
36
  //
37
37
  }
38
38
 
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SlotRecipeRuntimeFn, RecipeVariantProps } from '../types/recipe';
3
3
  import type { JsxHTMLProps, JsxStyleProps, Assign } from '../types/system-types';
4
- import type { JsxFactoryOptions, ComponentProps } from '../types/jsx';
4
+ import type { JsxFactoryOptions, ComponentProps, DataAttrs } from '../types/jsx';
5
5
  import type { ComponentType, ElementType } from 'react'
6
6
 
7
7
  interface UnstyledProps {
@@ -19,7 +19,7 @@ type SlotRecipe = SvaFn | SlotRecipeFn
19
19
  type InferSlot<R extends SlotRecipe> = R extends SlotRecipeFn ? R['__slot'] : R extends SvaFn<infer S> ? S : never
20
20
 
21
21
  interface WithProviderOptions<P = {}> {
22
- defaultProps?: Partial<P> | undefined
22
+ defaultProps?: (Partial<P> & DataAttrs) | undefined
23
23
  }
24
24
 
25
25
  type StyleContextProvider<T extends ElementType, R extends SlotRecipe> = ComponentType<
@@ -7,6 +7,8 @@ interface Dict {
7
7
  [k: string]: unknown
8
8
  }
9
9
 
10
+ export type DataAttrs = Record<`data-${string}`, unknown>
11
+
10
12
  export interface UnstyledProps {
11
13
  /**
12
14
  * Whether to remove recipe styles
@@ -36,7 +38,7 @@ interface RecipeFn {
36
38
 
37
39
  export interface JsxFactoryOptions<TProps extends Dict> {
38
40
  dataAttr?: boolean
39
- defaultProps?: Partial<TProps>
41
+ defaultProps?: Partial<TProps> & DataAttrs
40
42
  shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
41
43
  forwardProps?: string[]
42
44
  }