@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 +2 -2
- package/dist/studio.d.ts +2 -2
- package/package.json +17 -7
- package/src/components/empty-state.tsx +1 -1
- package/src/components/font-tokens.tsx +1 -1
- package/src/components/sizes.tsx +3 -1
- package/src/lib/color-contrast-checker.ts +10 -2
- package/src/lib/constants.ts +1 -1
- package/src/lib/use-color-docs.ts +1 -1
- package/styled-system/reset.css +8 -0
- package/styled-system/types/parts.d.ts +3 -1
- package/styled-system/types/pattern.d.ts +3 -1
package/dist/studio.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
37
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
38
|
-
"@pandacss/node": "0.0.0-dev-
|
|
39
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
40
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
41
|
-
"@pandacss/types": "0.0.0-dev-
|
|
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",
|
|
@@ -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
|
-
|
|
7
|
+
interface FontTokensProps {
|
|
8
8
|
text?: string
|
|
9
9
|
largeText?: boolean
|
|
10
10
|
token: string
|
package/src/components/sizes.tsx
CHANGED
|
@@ -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
|
|
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
|
-
|
|
4
|
-
|
|
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
|
package/src/lib/constants.ts
CHANGED
package/styled-system/reset.css
CHANGED
|
@@ -15,7 +15,9 @@ export interface PatternHelpers {
|
|
|
15
15
|
map: (value: any, fn: (value: string) => string | undefined) => any
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export interface PatternProperties {
|
|
19
|
+
[key: string]: PatternProperty
|
|
20
|
+
}
|
|
19
21
|
|
|
20
22
|
type Props<T> = Record<LiteralUnion<keyof T>, any>
|
|
21
23
|
|