@monimesl/dot-renderer-react 0.1.0-alpha.3 → 0.1.0-alpha.5
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/LICENSE-PHOSPHOR +21 -0
- package/dist/garra-versions.json +7 -0
- package/dist/index.d.ts +19 -3
- package/dist/index.js +22408 -1107
- package/dist/react-host/19.3.0/react-dom.js +3 -0
- package/dist/react-host/19.3.0/react-host.js +6 -6
- package/dist/styles.css +1 -0
- package/package.json +19 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Phosphor Icons
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinComponents, ColorScheme, ComponentManifest, PropsOf, Theme } from "@monimesl/dot-core";
|
|
1
|
+
import { BuiltinComponents, ColorScheme, ComponentManifest, PropsOf, Theme, ThemeShape } from "@monimesl/dot-core";
|
|
2
2
|
import { ComponentType, JSXElementConstructor, ReactNode } from "react";
|
|
3
3
|
import { Renderer } from "@monimesl/dot-webview";
|
|
4
4
|
//#region src/root.d.ts
|
|
@@ -22,6 +22,20 @@ interface ReactRendererOptions {
|
|
|
22
22
|
}
|
|
23
23
|
declare function reactRenderer({ components, wrapper }?: ReactRendererOptions): Renderer;
|
|
24
24
|
//#endregion
|
|
25
|
+
//#region ../../../node_modules/.pnpm/@monime-lab+garra-style-system@0.1.1-alpha.7_@pandacss+dev@1.12.1_jsdom@30.1.1_typescript@5.9.3_/node_modules/@monime-lab/garra-style-system/dist/runtime/types.d.mts
|
|
26
|
+
//#region src/runtime/types.d.ts
|
|
27
|
+
type Appearance = "light" | "dark";
|
|
28
|
+
type RuntimeDensity = "dense" | "compact" | "comfortable";
|
|
29
|
+
type RuntimeShape = "square" | "subtle" | "soft" | "rounded";
|
|
30
|
+
type RuntimeVariables = Record<`--garra-${string}`, string>;
|
|
31
|
+
/** Plain data: safe to serialize across a server/client boundary. */
|
|
32
|
+
interface RuntimeTheme {
|
|
33
|
+
readonly styles: Readonly<Record<Appearance, Readonly<RuntimeVariables>>>;
|
|
34
|
+
readonly density?: RuntimeDensity;
|
|
35
|
+
readonly shape?: RuntimeShape;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#endregion
|
|
25
39
|
//#region src/theme.d.ts
|
|
26
40
|
interface ResolvedColors {
|
|
27
41
|
primary: string;
|
|
@@ -39,10 +53,12 @@ interface ResolvedColors {
|
|
|
39
53
|
interface ResolvedTheme {
|
|
40
54
|
scheme: ColorScheme;
|
|
41
55
|
colors: ResolvedColors;
|
|
56
|
+
shape: ThemeShape;
|
|
42
57
|
radius: number;
|
|
43
58
|
}
|
|
44
59
|
export declare function resolveTheme(theme: Theme, systemScheme: ColorScheme): ResolvedTheme;
|
|
60
|
+
/** Translate Dot's public theme vocabulary into Garra's runtime contract. */
|
|
61
|
+
export declare function createDotRuntimeTheme(theme: Theme): RuntimeTheme;
|
|
45
62
|
export declare function useTheme(): ResolvedTheme;
|
|
46
63
|
//#endregion
|
|
47
|
-
export { type BuiltinReactComponents, type ReactComponent, type ReactComponents, type ReactRendererOptions, type ResolvedColors, type ResolvedTheme, type Wrapper, reactRenderer as default };
|
|
48
|
-
//# sourceMappingURL=index.d.ts.map
|
|
64
|
+
export { type BuiltinReactComponents, type ReactComponent, type ReactComponents, type ReactRendererOptions, type ResolvedColors, type ResolvedTheme, type Wrapper, reactRenderer as default };
|