likec4 1.0.1 → 1.1.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/react/styles.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { type MantineTheme } from '@mantine/core';
2
2
  export declare const useCreateStyleSheet: (injectFontCss?: boolean) => () => CSSStyleSheet;
3
- export declare const useColorScheme: (explicit: 'light' | 'dark' | undefined) => "dark" | "light";
3
+ type ColorScheme = 'light' | 'dark' | undefined;
4
+ export declare const useColorScheme: (explicit?: ColorScheme) => ColorScheme;
4
5
  export declare const theme: MantineTheme;
6
+ export {};
package/react/types.d.ts CHANGED
@@ -5,7 +5,15 @@ export type DiagramView<ViewId extends string> = {
5
5
  height: number;
6
6
  };
7
7
  export type LikeC4ViewBaseProps<ViewId extends string> = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
8
+ /**
9
+ * View to display.
10
+ */
8
11
  viewId: ViewId;
12
+ /**
13
+ * Background pattern
14
+ * @default 'transparent'
15
+ */
16
+ background?: 'dots' | 'lines' | 'cross' | 'transparent' | 'solid' | undefined;
9
17
  /**
10
18
  * Click on the view opens a modal with browser.
11
19
  *
@@ -24,4 +32,8 @@ export type LikeC4ViewBaseProps<ViewId extends string> = Omit<HTMLAttributes<HTM
24
32
  * @default true
25
33
  */
26
34
  injectFontCss?: boolean | undefined;
35
+ overlay?: {
36
+ blur?: number;
37
+ opacity?: number;
38
+ } | undefined;
27
39
  };