asma-ui-richeditor 0.4.1 → 0.5.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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** One entry of the toolbar's overflow ("more") menu. */
|
|
3
|
+
export declare const ToolbarOverflowItem: ({ title, selected, disabled, onSelect, children, }: {
|
|
4
|
+
title: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}) => import("node_modules/@types/react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Below this width the overflow ("more") menu is shown at all. */
|
|
2
|
+
export declare const getOverflowMenuBreakpoint: (isNorsk: boolean) => number;
|
|
3
|
+
/** How many of the nine toolbar buttons fit at the given width. */
|
|
4
|
+
export declare const getVisibleButtonCount: (width: number, isNorsk: boolean) => number;
|