@meith/plugin-kit 0.25.0 → 0.26.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/package.json +3 -3
- package/src/hooks.ts +1 -1
- package/src/index.ts +1 -0
- package/src/ui.ts +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/plugin-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "The SDK for writing a Meith plugin: typed manifests, hooks, routes, pages and migrations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@meith/core": "^0.
|
|
24
|
-
"@meith/theme-kit": "^0.
|
|
23
|
+
"@meith/core": "^0.26.0",
|
|
24
|
+
"@meith/theme-kit": "^0.26.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.0"
|
package/src/hooks.ts
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* between the dev server, a serverless bundle and the worker.
|
|
31
31
|
*
|
|
32
32
|
* So ordering is **(priority, plugin key)**, both total and both declared: never
|
|
33
|
-
* registration order, never the order `
|
|
33
|
+
* registration order, never the order `meith.config.ts` happens to list plugins
|
|
34
34
|
* in, and never `Object.keys`. See `host.ts`.
|
|
35
35
|
*
|
|
36
36
|
* ## What is deliberately not here
|
package/src/index.ts
CHANGED
package/src/ui.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const PLUGIN_CARD =
|
|
2
|
+
'flex flex-col gap-3 rounded-lg border border-border bg-card p-4 text-card-foreground shadow-elevation'
|
|
3
|
+
|
|
4
|
+
export const PLUGIN_NOTE =
|
|
5
|
+
'rounded-lg border border-border bg-card p-4 text-sm text-muted-foreground'
|
|
6
|
+
|
|
7
|
+
export const PLUGIN_TAB_LIST =
|
|
8
|
+
'inline-flex max-w-full items-center gap-1 overflow-x-auto rounded-lg border border-border bg-surface p-1'
|
|
9
|
+
|
|
10
|
+
const PLUGIN_TAB_BASE =
|
|
11
|
+
'inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-sm whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring'
|
|
12
|
+
|
|
13
|
+
export function pluginTabClass(active: boolean): string {
|
|
14
|
+
return active
|
|
15
|
+
? `${PLUGIN_TAB_BASE} bg-card font-semibold text-foreground shadow-sm`
|
|
16
|
+
: `${PLUGIN_TAB_BASE} font-medium text-muted-foreground hover:text-foreground`
|
|
17
|
+
}
|