@xyd-js/theme-picasso 0.1.0-xyd.2 → 0.1.0-xyd.41
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 +482 -0
- package/dist/index.css +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/index.css +1 -1
- package/src/theme.tsx +10 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/theme-picasso",
|
|
3
|
-
"version": "0.1.0-xyd.
|
|
3
|
+
"version": "0.1.0-xyd.41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"@linaria/atomic": "^6.2.0",
|
|
19
19
|
"@linaria/core": "^6.2.0",
|
|
20
20
|
"@orama/react-components": "^0.7.0",
|
|
21
|
-
"@xyd-js/atlas": "0.1.0-xyd.
|
|
22
|
-
"@xyd-js/ui": "0.1.0-xyd.
|
|
21
|
+
"@xyd-js/atlas": "0.1.0-xyd.57",
|
|
22
|
+
"@xyd-js/ui": "0.1.0-xyd.57"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"react": "^19.
|
|
26
|
-
"react-dom": "^19.
|
|
27
|
-
"react-router": "^7.
|
|
28
|
-
"@xyd-js/components": "0.1.0-xyd.
|
|
29
|
-
"@xyd-js/
|
|
30
|
-
"@xyd-js/
|
|
25
|
+
"react": "^19.1.0",
|
|
26
|
+
"react-dom": "^19.1.0",
|
|
27
|
+
"react-router": "^7.6.2",
|
|
28
|
+
"@xyd-js/components": "0.1.0-xyd.52",
|
|
29
|
+
"@xyd-js/themes": "0.1.1-xyd.44",
|
|
30
|
+
"@xyd-js/framework": "0.1.0-xyd.73"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/preset-env": "^7.26.0",
|
package/src/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
html {
|
|
2
|
-
font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
2
|
+
font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
3
3
|
font-weight: 400;
|
|
4
4
|
-webkit-font-smoothing: antialiased;
|
|
5
5
|
-moz-osx-font-smoothing: grayscale;
|
package/src/theme.tsx
CHANGED
|
@@ -2,12 +2,10 @@ import React from "react"
|
|
|
2
2
|
|
|
3
3
|
import {Hr, Heading} from "@xyd-js/components/writer"
|
|
4
4
|
import {UISidebar} from "@xyd-js/ui"
|
|
5
|
-
import {FwLogo, FwNav,
|
|
5
|
+
import {FwLogo, FwNav, useComponents} from "@xyd-js/framework/react"
|
|
6
|
+
import {SurfaceTarget} from "@xyd-js/framework"
|
|
6
7
|
import {BaseTheme} from "@xyd-js/themes"
|
|
7
8
|
|
|
8
|
-
// @ts-ignore
|
|
9
|
-
import {SearchButton} from 'virtual-component:Search'
|
|
10
|
-
|
|
11
9
|
import syntaxHighlight from "./syntaxHighlight"
|
|
12
10
|
|
|
13
11
|
import "./imports.css"
|
|
@@ -56,6 +54,13 @@ export default class ThemePicasso extends BaseTheme {
|
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
function _Search() {
|
|
57
|
+
const components = useComponents()
|
|
58
|
+
|
|
59
|
+
const SearchComponent = components?.Search
|
|
60
|
+
if (!SearchComponent) {
|
|
61
|
+
return null
|
|
62
|
+
}
|
|
63
|
+
|
|
59
64
|
return <>
|
|
60
65
|
<UISidebar.Item button anchor>
|
|
61
66
|
<a href="/">
|
|
@@ -64,7 +69,7 @@ function _Search() {
|
|
|
64
69
|
</UISidebar.Item>
|
|
65
70
|
|
|
66
71
|
<UISidebar.Item button anchor>
|
|
67
|
-
<
|
|
72
|
+
<SearchComponent/>
|
|
68
73
|
</UISidebar.Item>
|
|
69
74
|
</>
|
|
70
75
|
}
|