diff options
author | Florian Dold <florian@dold.me> | 2023-02-16 03:23:42 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-16 03:23:42 +0100 |
commit | a906263f74627dd928c581f388cf12faa3b43476 (patch) | |
tree | 1497bad4effb9298b2a08659b9b37d9fb5a3440a /packages/taler-wallet-webextension/src/mui | |
parent | 08b120bc8d4a738b80c3e0d3f1703b1320f32080 (diff) | |
download | wallet-core-a906263f74627dd928c581f388cf12faa3b43476.tar.xz |
use node16 module resolution
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui')
17 files changed, 23 insertions, 30 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/Button.tsx b/packages/taler-wallet-webextension/src/mui/Button.tsx index 31e97f008..aad8f5002 100644 --- a/packages/taler-wallet-webextension/src/mui/Button.tsx +++ b/packages/taler-wallet-webextension/src/mui/Button.tsx @@ -16,9 +16,9 @@ import { ComponentChildren, h, VNode, JSX } from "preact"; import { css } from "@linaria/core"; // eslint-disable-next-line import/extensions -import { theme, Colors, rippleEnabled, rippleEnabledOutlined } from "./style"; +import { theme, Colors, rippleEnabled, rippleEnabledOutlined } from "./style.js"; // eslint-disable-next-line import/extensions -import { alpha } from "./colors/manipulation"; +import { alpha } from "./colors/manipulation.js"; import { useState } from "preact/hooks"; import { SafeHandler } from "./handlers.js"; diff --git a/packages/taler-wallet-webextension/src/mui/Grid.tsx b/packages/taler-wallet-webextension/src/mui/Grid.tsx index e9b839b2f..2db439778 100644 --- a/packages/taler-wallet-webextension/src/mui/Grid.tsx +++ b/packages/taler-wallet-webextension/src/mui/Grid.tsx @@ -17,7 +17,7 @@ import { css } from "@linaria/core"; import { h, JSX, VNode, ComponentChildren, createContext } from "preact"; import { useContext } from "preact/hooks"; // eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { theme } from "./style.js"; type ResponsiveKeys = "xs" | "sm" | "md" | "lg" | "xl"; diff --git a/packages/taler-wallet-webextension/src/mui/Menu.stories.tsx b/packages/taler-wallet-webextension/src/mui/Menu.stories.tsx index e2bba2678..200af8f57 100644 --- a/packages/taler-wallet-webextension/src/mui/Menu.stories.tsx +++ b/packages/taler-wallet-webextension/src/mui/Menu.stories.tsx @@ -47,8 +47,7 @@ export const BasicExample = (): VNode => { }; import { styled } from "@linaria/react"; -// eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { theme } from "./style.js"; import { Typography } from "./Typography.js"; import { Divider } from "./Divider.js"; diff --git a/packages/taler-wallet-webextension/src/mui/Modal.tsx b/packages/taler-wallet-webextension/src/mui/Modal.tsx index 7b1cf3f3a..0ea1372fa 100644 --- a/packages/taler-wallet-webextension/src/mui/Modal.tsx +++ b/packages/taler-wallet-webextension/src/mui/Modal.tsx @@ -18,11 +18,11 @@ import { css } from "@linaria/core"; import { h, JSX, VNode, ComponentChildren } from "preact"; import { useCallback, useEffect, useRef, useState } from "preact/hooks"; // eslint-disable-next-line import/extensions -import { alpha } from "./colors/manipulation"; +import { alpha } from "./colors/manipulation.js"; import { ModalManager } from "./ModalManager.js"; import { Portal } from "./Portal.js"; // eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { theme } from "./style.js"; const baseStyle = css` position: fixed; diff --git a/packages/taler-wallet-webextension/src/mui/Paper.tsx b/packages/taler-wallet-webextension/src/mui/Paper.tsx index 0c805e307..a44b1be0d 100644 --- a/packages/taler-wallet-webextension/src/mui/Paper.tsx +++ b/packages/taler-wallet-webextension/src/mui/Paper.tsx @@ -16,9 +16,9 @@ import { css } from "@linaria/core"; import { h, JSX, VNode, ComponentChildren } from "preact"; // eslint-disable-next-line import/extensions -import { alpha } from "./colors/manipulation"; +import { alpha } from "./colors/manipulation.js"; // eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { theme } from "./style.js"; const borderVariant = { outlined: css` diff --git a/packages/taler-wallet-webextension/src/mui/Popover.tsx b/packages/taler-wallet-webextension/src/mui/Popover.tsx index 69e0ab10a..da551c65d 100644 --- a/packages/taler-wallet-webextension/src/mui/Popover.tsx +++ b/packages/taler-wallet-webextension/src/mui/Popover.tsx @@ -15,11 +15,7 @@ */ import { css } from "@linaria/core"; -import { h, JSX, VNode, ComponentChildren } from "preact"; -// eslint-disable-next-line import/extensions -import { alpha } from "./colors/manipulation"; -// eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { h, VNode, ComponentChildren } from "preact"; const baseStyle = css``; diff --git a/packages/taler-wallet-webextension/src/mui/Portal.tsx b/packages/taler-wallet-webextension/src/mui/Portal.tsx index 2026d7e5a..1d835abac 100644 --- a/packages/taler-wallet-webextension/src/mui/Portal.tsx +++ b/packages/taler-wallet-webextension/src/mui/Portal.tsx @@ -26,11 +26,9 @@ import { cloneElement, Fragment, } from "preact"; -import { Ref, useEffect, useMemo, useState } from "preact/hooks"; -// eslint-disable-next-line import/extensions -import { alpha } from "./colors/manipulation"; -// eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { Ref, useEffect, useState } from "preact/hooks"; + +import { theme } from "./style.js"; const baseStyle = css` position: fixed; diff --git a/packages/taler-wallet-webextension/src/mui/TextField.tsx b/packages/taler-wallet-webextension/src/mui/TextField.tsx index 42ac49a00..4d7c9a472 100644 --- a/packages/taler-wallet-webextension/src/mui/TextField.tsx +++ b/packages/taler-wallet-webextension/src/mui/TextField.tsx @@ -23,7 +23,7 @@ import { SelectFilled } from "./input/SelectFilled.js"; import { SelectOutlined } from "./input/SelectOutlined.js"; import { SelectStandard } from "./input/SelectStandard.js"; // eslint-disable-next-line import/extensions -import { Colors } from "./style"; +import { Colors } from "./style.js"; export interface Props { autoComplete?: string; diff --git a/packages/taler-wallet-webextension/src/mui/Typography.tsx b/packages/taler-wallet-webextension/src/mui/Typography.tsx index b3a9e0010..3b4357918 100644 --- a/packages/taler-wallet-webextension/src/mui/Typography.tsx +++ b/packages/taler-wallet-webextension/src/mui/Typography.tsx @@ -17,7 +17,7 @@ import { css } from "@linaria/core"; import { ComponentChildren, h, VNode } from "preact"; import { useTranslationContext } from "../context/translation.js"; // eslint-disable-next-line import/extensions -import { theme } from "./style"; +import { theme } from "./style.js"; type VariantEnum = | "body1" diff --git a/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx b/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx index e80e7f8d8..23dfcfd08 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx @@ -17,7 +17,7 @@ import { css } from "@linaria/core"; import { ComponentChildren, createContext, h, VNode } from "preact"; import { useContext, useMemo, useState } from "preact/hooks"; // eslint-disable-next-line import/extensions -import { Colors } from "../style"; +import { Colors } from "../style.js"; export interface Props { color: Colors; diff --git a/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx b/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx index 5e40ba616..5fa48a169 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx @@ -16,7 +16,7 @@ import { css } from "@linaria/core"; import { ComponentChildren, h, VNode } from "preact"; // eslint-disable-next-line import/extensions -import { theme } from "../style"; +import { theme } from "../style.js"; import { useFormControl } from "./FormControl.js"; const root = css` diff --git a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx index 11404b5c1..68fbdc38e 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx @@ -16,7 +16,7 @@ import { css } from "@linaria/core"; import { ComponentChildren, h, VNode } from "preact"; // eslint-disable-next-line import/extensions -import { Colors, theme } from "../style"; +import { Colors, theme } from "../style.js"; import { useFormControl } from "./FormControl.js"; export interface Props { diff --git a/packages/taler-wallet-webextension/src/mui/input/InputBase.tsx b/packages/taler-wallet-webextension/src/mui/input/InputBase.tsx index 94304f16b..d811a3dbb 100644 --- a/packages/taler-wallet-webextension/src/mui/input/InputBase.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/InputBase.tsx @@ -23,7 +23,7 @@ import { useState, } from "preact/hooks"; // eslint-disable-next-line import/extensions -import { theme } from "../style"; +import { theme } from "../style.js"; import { FormControlContext, useFormControl } from "./FormControl.js"; const rootStyle = css` diff --git a/packages/taler-wallet-webextension/src/mui/input/InputFilled.tsx b/packages/taler-wallet-webextension/src/mui/input/InputFilled.tsx index 9ab91e7fd..a984f8451 100644 --- a/packages/taler-wallet-webextension/src/mui/input/InputFilled.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/InputFilled.tsx @@ -16,7 +16,7 @@ import { css } from "@linaria/core"; import { h, VNode } from "preact"; // eslint-disable-next-line import/extensions -import { Colors, theme } from "../style"; +import { Colors, theme } from "../style.js"; import { useFormControl } from "./FormControl.js"; import { InputBase, InputBaseComponent, InputBaseRoot } from "./InputBase.js"; diff --git a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx index 35cbd7a41..2d4743e59 100644 --- a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx @@ -16,7 +16,7 @@ import { css } from "@linaria/core"; import { ComponentChildren, h, VNode } from "preact"; // eslint-disable-next-line import/extensions -import { Colors, theme } from "../style"; +import { Colors, theme } from "../style.js"; import { useFormControl } from "./FormControl.js"; import { FormLabel } from "./FormLabel.js"; diff --git a/packages/taler-wallet-webextension/src/mui/input/InputStandard.tsx b/packages/taler-wallet-webextension/src/mui/input/InputStandard.tsx index 45614f618..f5b70f07c 100644 --- a/packages/taler-wallet-webextension/src/mui/input/InputStandard.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/InputStandard.tsx @@ -16,7 +16,7 @@ import { css } from "@linaria/core"; import { h, VNode } from "preact"; // eslint-disable-next-line import/extensions -import { Colors, theme } from "../style"; +import { Colors, theme } from "../style.js"; import { useFormControl } from "./FormControl.js"; import { InputBase, InputBaseComponent, InputBaseRoot } from "./InputBase.js"; diff --git a/packages/taler-wallet-webextension/src/mui/style.tsx b/packages/taler-wallet-webextension/src/mui/style.tsx index c3071b314..3fcf3ac1e 100644 --- a/packages/taler-wallet-webextension/src/mui/style.tsx +++ b/packages/taler-wallet-webextension/src/mui/style.tsx @@ -26,9 +26,9 @@ import { purple, red, // eslint-disable-next-line import/extensions -} from "./colors/constants"; +} from "./colors/constants.js"; // eslint-disable-next-line import/extensions -import { getContrastRatio } from "./colors/manipulation"; +import { getContrastRatio } from "./colors/manipulation.js"; export type Colors = | "primary" |