@likec4/diagram 1.42.0 → 1.42.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.
@@ -1,12 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export type ControlsCustomLayoutProps = {
3
- burgerMenu: ReactNode;
4
- navigationButtons: ReactNode;
5
- search: ReactNode;
6
- actionsGroup: ReactNode;
7
- };
8
- export type ControlsCustomLayout = (props: ControlsCustomLayoutProps) => ReactNode;
9
- export declare const ControlsCustomLayoutProvider: ({ children, value }: {
10
- value: ControlsCustomLayout | null;
11
- children: React.ReactNode;
12
- }) => import("react/jsx-runtime").JSX.Element, useControlsCustomLayout: () => ControlsCustomLayout | null;
@@ -1,8 +0,0 @@
1
- import { createOptionalContext } from '@mantine/core';
2
-
3
- const [
4
- ControlsCustomLayoutProvider,
5
- useControlsCustomLayout
6
- ] = createOptionalContext(null);
7
-
8
- export { ControlsCustomLayoutProvider, useControlsCustomLayout };
@@ -1,12 +0,0 @@
1
- import { WritableAtom } from 'nanostores';
2
- import { PropsWithChildren } from 'react';
3
- /**
4
- * Hook to determine if reduced graphics mode is enabled.
5
- */
6
- export declare function useIsReducedGraphics(): boolean;
7
- declare const usePanningAtom: () => WritableAtom<boolean>;
8
- export { usePanningAtom, };
9
- export declare function ReduceGraphicsContext({ reduceGraphics, children }: PropsWithChildren<{
10
- reduceGraphics: boolean;
11
- }>): import("react/jsx-runtime").JSX.Element;
12
- export declare function useIsPanning(): boolean;
@@ -1,26 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { createSafeContext } from '@mantine/core';
3
- import '@nanostores/react';
4
- import { atom } from 'nanostores';
5
- import { useRef, createContext, useContext } from 'react';
6
-
7
- const ReduceGraphicsModeCtx = createContext(null);
8
- function useIsReducedGraphics() {
9
- const isReduced = useContext(ReduceGraphicsModeCtx);
10
- if (isReduced === null) {
11
- console.warn("ReduceGraphicsMode is not provided");
12
- }
13
- return isReduced ?? false;
14
- }
15
- const [PanningAtomSafeCtx, usePanningAtom] = createSafeContext(
16
- "PanningAtomSafeCtx is not provided"
17
- );
18
- function ReduceGraphicsContext({ reduceGraphics, children }) {
19
- const $isPanningRef = useRef(null);
20
- if (!$isPanningRef.current) {
21
- $isPanningRef.current = atom(reduceGraphics);
22
- }
23
- return /* @__PURE__ */ jsx(PanningAtomSafeCtx, { value: $isPanningRef.current, children: /* @__PURE__ */ jsx(ReduceGraphicsModeCtx.Provider, { value: reduceGraphics, children }) });
24
- }
25
-
26
- export { ReduceGraphicsContext, useIsReducedGraphics, usePanningAtom };
@@ -1,14 +0,0 @@
1
- import createReactComponent from '../createReactComponent.js';
2
-
3
- /**
4
- * @license @tabler/icons-react v3.35.0 - MIT
5
- *
6
- * This source code is licensed under the MIT license.
7
- * See the LICENSE file in the root directory of this source tree.
8
- */
9
-
10
-
11
- const __iconNode = [["path", { "d": "M4 6l16 0", "key": "svg-0" }], ["path", { "d": "M4 12l16 0", "key": "svg-1" }], ["path", { "d": "M4 18l16 0", "key": "svg-2" }]];
12
- const IconMenu2 = createReactComponent("outline", "menu-2", "Menu2", __iconNode);
13
-
14
- export { __iconNode, IconMenu2 as default };