@pandacss/studio 0.0.0-dev-20231025190231 → 0.0.0-dev-20231027102248

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.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- type BuildOpts = {
1
+ interface BuildOpts {
2
2
  outDir: string;
3
3
  configPath: string;
4
4
  port?: string;
5
5
  host?: boolean;
6
- };
6
+ }
7
7
  declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
8
8
  declare function serveStudio({ configPath, port, host }: BuildOpts): Promise<void>;
9
9
  declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
package/dist/studio.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- type BuildOpts = {
1
+ interface BuildOpts {
2
2
  outDir: string;
3
3
  configPath: string;
4
4
  port?: string;
5
5
  host?: boolean;
6
- };
6
+ }
7
7
  declare function buildStudio({ outDir, configPath }: BuildOpts): Promise<void>;
8
8
  declare function serveStudio({ configPath, port, host }: BuildOpts): Promise<void>;
9
9
  declare function previewStudio({ outDir }: BuildOpts): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.0.0-dev-20231025190231",
3
+ "version": "0.0.0-dev-20231027102248",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -9,6 +9,16 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/studio.d.ts",
15
+ "require": "./dist/studio.js",
16
+ "import": {
17
+ "types": "./dist/studio.d.mts",
18
+ "default": "./dist/studio.mjs"
19
+ }
20
+ }
21
+ },
12
22
  "files": [
13
23
  "dist",
14
24
  "src",
@@ -33,12 +43,12 @@
33
43
  "react": "18.2.0",
34
44
  "react-dom": "18.2.0",
35
45
  "vite": "4.4.11",
36
- "@pandacss/config": "0.0.0-dev-20231025190231",
37
- "@pandacss/logger": "0.0.0-dev-20231025190231",
38
- "@pandacss/node": "0.0.0-dev-20231025190231",
39
- "@pandacss/shared": "0.0.0-dev-20231025190231",
40
- "@pandacss/token-dictionary": "0.0.0-dev-20231025190231",
41
- "@pandacss/types": "0.0.0-dev-20231025190231"
46
+ "@pandacss/config": "0.0.0-dev-20231027102248",
47
+ "@pandacss/logger": "0.0.0-dev-20231027102248",
48
+ "@pandacss/node": "0.0.0-dev-20231027102248",
49
+ "@pandacss/shared": "0.0.0-dev-20231027102248",
50
+ "@pandacss/token-dictionary": "0.0.0-dev-20231027102248",
51
+ "@pandacss/types": "0.0.0-dev-20231027102248"
42
52
  },
43
53
  "devDependencies": {
44
54
  "@types/react": "18.2.22",
@@ -1,6 +1,6 @@
1
1
  import { panda, Stack } from '../../styled-system/jsx'
2
2
 
3
- type EmptyStateProps = {
3
+ interface EmptyStateProps {
4
4
  title: string
5
5
  children: React.ReactNode
6
6
  icon: React.ReactElement
@@ -4,7 +4,7 @@ import { TokenContent } from '../components/token-content'
4
4
  import { TokenGroup } from '../components/token-group'
5
5
  import { Input, Textarea } from './input'
6
6
 
7
- type FontTokensProps = {
7
+ interface FontTokensProps {
8
8
  text?: string
9
9
  largeText?: boolean
10
10
  token: string
@@ -3,7 +3,9 @@ import { Grid, panda } from '../../styled-system/jsx'
3
3
  import { getSortedSizes } from '../lib/sizes-sort'
4
4
  import { TokenGroup } from './token-group'
5
5
 
6
- export type SizesProps = { sizes: Map<string, any> }
6
+ export interface SizesProps {
7
+ sizes: Map<string, any>
8
+ }
7
9
 
8
10
  const contentRegex = /^(min|max|fit)-content$/
9
11
  const unitRegex = /(ch|%)$/
@@ -1,7 +1,15 @@
1
1
  // Credits: https://github.com/bbc/color-contrast-checker
2
2
 
3
- type Pair = { colorA: string; colorB: string; fontSize: number }
4
- type Rgb = { r: number; g: number; b: number }
3
+ interface Pair {
4
+ colorA: string
5
+ colorB: string
6
+ fontSize: number
7
+ }
8
+ interface Rgb {
9
+ r: number
10
+ g: number
11
+ b: number
12
+ }
5
13
 
6
14
  class RgbClass {
7
15
  r = 0
@@ -30,7 +30,7 @@ export enum NavKeys {
30
30
  CONTRAST_CHECKER = 'playground/contrast-checker',
31
31
  }
32
32
 
33
- export type NavItemData = {
33
+ export interface NavItemData {
34
34
  label: string
35
35
  id: NavKeys
36
36
  description: string
@@ -2,7 +2,7 @@ import type { Token } from '@pandacss/types'
2
2
  import { useState } from 'react'
3
3
  import context from './panda.context'
4
4
 
5
- type Color = {
5
+ interface Color {
6
6
  isConditional?: boolean
7
7
  isReference?: boolean
8
8
  name: string
@@ -91,6 +91,14 @@
91
91
  background-image: none;
92
92
  }
93
93
 
94
+ button,
95
+ input,
96
+ optgroup,
97
+ select,
98
+ textarea {
99
+ color: inherit;
100
+ }
101
+
94
102
  button,
95
103
  select {
96
104
  text-transform: none;
@@ -3,4 +3,6 @@ export interface Part {
3
3
  selector: string
4
4
  }
5
5
 
6
- export type Parts = Record<string, Part>
6
+ export interface Parts {
7
+ [key: string]: Part
8
+ }
@@ -15,7 +15,9 @@ export interface PatternHelpers {
15
15
  map: (value: any, fn: (value: string) => string | undefined) => any
16
16
  }
17
17
 
18
- export type PatternProperties = Record<string, PatternProperty>
18
+ export interface PatternProperties {
19
+ [key: string]: PatternProperty
20
+ }
19
21
 
20
22
  type Props<T> = Record<LiteralUnion<keyof T>, any>
21
23