Skip to content

Commit

Permalink
zIndex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin committed Nov 26, 2024
1 parent 7348164 commit 6f09521
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/components/portal.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// <reference types="react" />
type Props = {
children: React.ReactNode;
open: boolean;
style?: React.CSSProperties;
};
export declare const Portal: ({ children, open, style }: Props) => import("react/jsx-runtime").JSX.Element;
export {};
2 changes: 1 addition & 1 deletion src/components/portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Portal = ({ children, open, style }: Props) => {
style={{
position: "absolute",
display: open ? "block" : "none",
zIndex: 1301,
zIndex: 1310,
bottom: 0,
left: 0,
width: "100vw",
Expand Down
3 changes: 2 additions & 1 deletion src/keyboard/keyboard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export type KeyboardProps = {
onHideKeyboard?: () => void;
lang: Langs;
parenthesisShouldNotProduceLeftRight?: boolean;
tabShouldSkipKeys?: boolean;
};
export declare const Keyboard: ({ numericToolbarKeys, numericToolbarTabs, alphabeticToolbarKeys, divisionFormat, allowAlphabeticKeyboard, onHideKeyboard, lang, parenthesisShouldNotProduceLeftRight, }: KeyboardProps) => import("react/jsx-runtime").JSX.Element;
export declare const Keyboard: ({ numericToolbarKeys, numericToolbarTabs, alphabeticToolbarKeys, divisionFormat, allowAlphabeticKeyboard, onHideKeyboard, lang, parenthesisShouldNotProduceLeftRight, tabShouldSkipKeys, }: KeyboardProps) => import("react/jsx-runtime").JSX.Element;
3 changes: 2 additions & 1 deletion src/keyboard/keys/key.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export type KeyProps = {
groups?: KeyGroupIds[];
postKeystrokes?: string[];
keypressId?: string;
tabShouldSkipKeys?: boolean;
};
export declare const Key: ({ id, formatedId, label, labelType, onClick, mathfieldInstructions, fullWidth, isUtilityKey, postKeystrokes, }: KeyProps) => import("react/jsx-runtime").JSX.Element;
export declare const Key: ({ id, formatedId, label, labelType, onClick, mathfieldInstructions, fullWidth, isUtilityKey, postKeystrokes, tabShouldSkipKeys, }: KeyProps) => import("react/jsx-runtime").JSX.Element;
3 changes: 2 additions & 1 deletion src/keyboard/keys/letterKey.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export type LetterKeyProps = {
letter: KeyId;
isMaj?: boolean;
isInMathMode?: boolean;
tabShouldSkipKeys?: boolean;
};
export declare const LetterKey: ({ letter, isMaj, isInMathMode, }: LetterKeyProps) => import("react/jsx-runtime").JSX.Element;
export declare const LetterKey: ({ letter, isMaj, isInMathMode, tabShouldSkipKeys, }: LetterKeyProps) => import("react/jsx-runtime").JSX.Element;
3 changes: 2 additions & 1 deletion src/keyboard/layout/alphabetLayout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export type AlphabetLayoutProps = {
toolbarKeys?: (KeyId | KeyProps)[];
onSwitch?: () => void;
lang: Langs;
tabShouldSkipKeys?: boolean;
};
export declare const AlphabetLayout: ({ toolbarKeys, onSwitch, lang, }: AlphabetLayoutProps) => import("react/jsx-runtime").JSX.Element;
export declare const AlphabetLayout: ({ toolbarKeys, onSwitch, lang, tabShouldSkipKeys, }: AlphabetLayoutProps) => import("react/jsx-runtime").JSX.Element;
3 changes: 2 additions & 1 deletion src/keyboard/layout/numericLayout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export type NumericLayoutProps = {
allowAlphabeticKeyboard: boolean;
lang: Langs;
parenthesisShouldNotProduceLeftRight?: boolean;
tabShouldSkipKeys?: boolean;
};
export declare const NumericLayout: ({ toolbarKeys, toolbarTabs, onSwitch, divisionFormat, allowAlphabeticKeyboard, onHideKeyboard, lang, parenthesisShouldNotProduceLeftRight, }: NumericLayoutProps) => import("react/jsx-runtime").JSX.Element;
export declare const NumericLayout: ({ toolbarKeys, toolbarTabs, onSwitch, divisionFormat, allowAlphabeticKeyboard, onHideKeyboard, lang, parenthesisShouldNotProduceLeftRight, tabShouldSkipKeys, }: NumericLayoutProps) => import("react/jsx-runtime").JSX.Element;
3 changes: 2 additions & 1 deletion src/keyboard/toolbar/toolbar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export type ToolbarProps = {
keys?: (KeyId | KeyProps)[];
tabs?: ToolbarTabIds[];
lang: Langs;
tabShouldSkipKeys?: boolean;
};
export declare const Toolbar: ({ keys, tabs, lang }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
export declare const Toolbar: ({ keys, tabs, lang, tabShouldSkipKeys, }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
4 changes: 3 additions & 1 deletion src/mathInput/mathInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ export type MathInputProps = {
text: string;
latex: string;
}[];
tabShouldSkipKeys?: boolean;
forbidPaste?: boolean;
};
export declare const MathInput: ({ numericToolbarKeys, numericToolbarTabs, alphabeticToolbarKeys, setValue, setMathfieldRef, setClearRef, style, initialLatex, rootElementId, divisionFormat, parenthesisShouldNotProduceLeftRight, color, size, fullWidth, allowAlphabeticKeyboard, scrollType, lang, forbidOtherKeyboardKeys, registerEmbedObjects, }: MathInputProps) => import("react/jsx-runtime").JSX.Element;
export declare const MathInput: ({ numericToolbarKeys, numericToolbarTabs, alphabeticToolbarKeys, setValue, setMathfieldRef, setClearRef, style, initialLatex, rootElementId, divisionFormat, parenthesisShouldNotProduceLeftRight, color, size, fullWidth, allowAlphabeticKeyboard, scrollType, lang, forbidOtherKeyboardKeys, registerEmbedObjects, tabShouldSkipKeys, forbidPaste, }: MathInputProps) => import("react/jsx-runtime").JSX.Element;

0 comments on commit 6f09521

Please sign in to comment.