@june-ai/june-ui 0.1.0 → 0.1.1
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/CHANGELOG.md +22 -0
- package/README.md +46 -24
- package/dist/index.cjs +1091 -16
- package/dist/index.d.cts +250 -5
- package/dist/index.d.ts +250 -5
- package/dist/index.js +1077 -15
- package/dist/june.css +21 -0
- package/package.json +48 -11
package/dist/june.css
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.june-ui-root {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
color: var(--june-foreground);
|
|
5
|
+
background: var(--june-background);
|
|
6
|
+
font-family: var(--june-font-family);
|
|
7
|
+
border-radius: var(--june-radius);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.june-ui-root img,
|
|
11
|
+
.june-ui-root video {
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
height: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-june-error] {
|
|
17
|
+
padding: 12px 16px;
|
|
18
|
+
border: 1px solid var(--june-danger);
|
|
19
|
+
border-radius: var(--june-radius);
|
|
20
|
+
color: var(--june-danger);
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,42 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@june-ai/june-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A React Generative UI SDK powered by OpenUI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
7
10
|
"main": "./dist/index.cjs",
|
|
8
11
|
"module": "./dist/index.js",
|
|
9
12
|
"types": "./dist/index.d.ts",
|
|
10
13
|
"exports": {
|
|
11
14
|
".": {
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
"import": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"require": {
|
|
20
|
+
"types": "./dist/index.d.cts",
|
|
21
|
+
"default": "./dist/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"./core": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/entry-core.d.ts",
|
|
27
|
+
"default": "./dist/entry-core.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/entry-core.d.cts",
|
|
31
|
+
"default": "./dist/entry-core.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./styles.css": "./dist/june.css",
|
|
35
|
+
"./package.json": "./package.json"
|
|
16
36
|
},
|
|
17
37
|
"files": [
|
|
18
38
|
"dist",
|
|
19
39
|
"README.md",
|
|
40
|
+
"CHANGELOG.md",
|
|
20
41
|
"LICENSE"
|
|
21
42
|
],
|
|
22
43
|
"scripts": {
|
|
23
|
-
"build": "tsup",
|
|
44
|
+
"build": "tsup && node scripts/copy-css.mjs",
|
|
24
45
|
"typecheck": "tsc --noEmit",
|
|
25
|
-
"
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"test:watch": "vitest",
|
|
48
|
+
"pack:check": "npm pack --dry-run",
|
|
49
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
26
50
|
},
|
|
27
51
|
"peerDependencies": {
|
|
28
|
-
"react": ">=
|
|
29
|
-
"react-
|
|
52
|
+
"@openuidev/react-headless": ">=0.14.0 <0.19.0",
|
|
53
|
+
"@openuidev/react-lang": ">=1.0.0 <2.0.0",
|
|
54
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
55
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
56
|
+
"zod": "^3.25.0 || ^4.0.0",
|
|
57
|
+
"zustand": "^4.5.5"
|
|
30
58
|
},
|
|
31
59
|
"dependencies": {
|
|
32
|
-
"@openuidev/react-lang": "^1.0.0",
|
|
33
60
|
"@openuidev/react-ui": "^0.18.0"
|
|
34
61
|
},
|
|
35
62
|
"devDependencies": {
|
|
63
|
+
"@openuidev/react-headless": "^0.18.1",
|
|
64
|
+
"@openuidev/react-lang": "^1.1.0",
|
|
65
|
+
"@testing-library/dom": "^10.4.0",
|
|
66
|
+
"@testing-library/react": "^16.1.0",
|
|
36
67
|
"@types/react": "^19.0.0",
|
|
37
68
|
"@types/react-dom": "^19.0.0",
|
|
38
69
|
"@typescript/typescript6": "^6.0.2",
|
|
70
|
+
"jsdom": "^26.0.0",
|
|
71
|
+
"react": "^19.0.0",
|
|
72
|
+
"react-dom": "^19.0.0",
|
|
39
73
|
"tsup": "^8.0.0",
|
|
40
|
-
"typescript": "^5.0.0"
|
|
74
|
+
"typescript": "^5.0.0",
|
|
75
|
+
"vitest": "^3.0.0",
|
|
76
|
+
"zod": "^4.0.0",
|
|
77
|
+
"zustand": "^4.5.5"
|
|
41
78
|
}
|
|
42
79
|
}
|