mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Enforce node: schema for builtins, import extensions
This commit is contained in:
@@ -4,9 +4,9 @@ import type { ReactNode } from 'react';
|
||||
import React, { useId } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { AriaClickable } from './AriaClickable';
|
||||
import { AxoButton } from './AxoButton';
|
||||
import { tw } from './tw';
|
||||
import { AriaClickable } from './AriaClickable.js';
|
||||
import { AxoButton } from './AxoButton.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AriaClickable',
|
||||
|
||||
@@ -10,8 +10,8 @@ import React, {
|
||||
} from 'react';
|
||||
import type { ReactNode, MouseEvent, FC } from 'react';
|
||||
import { useLayoutEffect } from '@react-aria/utils';
|
||||
import { tw } from './tw';
|
||||
import { assert } from './_internal/assert';
|
||||
import { tw } from './tw.js';
|
||||
import { assert } from './_internal/assert.js';
|
||||
|
||||
const Namespace = 'AriaClickable';
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
_getAllAxoButtonVariants,
|
||||
_getAllAxoButtonSizes,
|
||||
AxoButton,
|
||||
} from './AxoButton';
|
||||
import { tw } from './tw';
|
||||
} from './AxoButton.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoButton',
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { memo, forwardRef } from 'react';
|
||||
import type { ButtonHTMLAttributes, FC, ForwardedRef, ReactNode } from 'react';
|
||||
import type { TailwindStyles } from './tw';
|
||||
import { tw } from './tw';
|
||||
import { AxoSymbol, type AxoSymbolName } from './AxoSymbol';
|
||||
import { assert } from './_internal/assert';
|
||||
import type { TailwindStyles } from './tw.js';
|
||||
import { tw } from './tw.js';
|
||||
import { AxoSymbol, type AxoSymbolName } from './AxoSymbol.js';
|
||||
import { assert } from './_internal/assert.js';
|
||||
|
||||
const Namespace = 'AxoButton';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { AxoCheckbox } from './AxoCheckbox';
|
||||
import { tw } from './tw';
|
||||
import { AxoCheckbox } from './AxoCheckbox.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoCheckbox',
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { memo } from 'react';
|
||||
import { Checkbox } from 'radix-ui';
|
||||
import { AxoSymbol } from './AxoSymbol';
|
||||
import { tw } from './tw';
|
||||
import { AxoSymbol } from './AxoSymbol.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
const Namespace = 'AxoCheckbox';
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import React, { useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { AxoContextMenu } from './AxoContextMenu';
|
||||
import { tw } from './tw';
|
||||
import { AxoContextMenu } from './AxoContextMenu.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoContextMenu',
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
import React, { memo } from 'react';
|
||||
import { ContextMenu } from 'radix-ui';
|
||||
import type { FC } from 'react';
|
||||
import { AxoSymbol } from './AxoSymbol';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu';
|
||||
import { tw } from './tw';
|
||||
import { AxoSymbol } from './AxoSymbol.js';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
const Namespace = 'AxoContextMenu';
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
import React, { useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
import { AxoDropdownMenu } from './AxoDropdownMenu';
|
||||
import { AxoButton } from './AxoButton';
|
||||
import { tw } from './tw';
|
||||
import { AxoDropdownMenu } from './AxoDropdownMenu.js';
|
||||
import { AxoButton } from './AxoButton.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoDropdownMenu',
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
import React, { memo } from 'react';
|
||||
import { DropdownMenu } from 'radix-ui';
|
||||
import type { FC } from 'react';
|
||||
import { AxoSymbol } from './AxoSymbol';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu';
|
||||
import { tw } from './tw';
|
||||
import { AxoSymbol } from './AxoSymbol.js';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
const Namespace = 'AxoDropdownMenu';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { AxoSelect } from './AxoSelect';
|
||||
import { tw } from './tw';
|
||||
import { AxoSelect } from './AxoSelect.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoSelect',
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
import React, { memo } from 'react';
|
||||
import type { FC, ReactNode } from 'react';
|
||||
import { Select } from 'radix-ui';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu';
|
||||
import { AxoSymbol } from './AxoSymbol';
|
||||
import type { TailwindStyles } from './tw';
|
||||
import { tw } from './tw';
|
||||
import { AxoBaseMenu } from './_internal/AxoBaseMenu.js';
|
||||
import { AxoSymbol } from './AxoSymbol.js';
|
||||
import type { TailwindStyles } from './tw.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
const Namespace = 'AxoSelect';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { AxoSwitch } from './AxoSwitch';
|
||||
import { tw } from './tw';
|
||||
import { AxoSwitch } from './AxoSwitch.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoSwitch',
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { memo } from 'react';
|
||||
import { Switch } from 'radix-ui';
|
||||
import { tw } from './tw';
|
||||
import { AxoSymbol } from './AxoSymbol';
|
||||
import { tw } from './tw.js';
|
||||
import { AxoSymbol } from './AxoSymbol.js';
|
||||
|
||||
const Namespace = 'AxoSwitch';
|
||||
|
||||
|
||||
@@ -4,9 +4,13 @@ import React, { memo, useMemo, useState } from 'react';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { Direction } from 'radix-ui';
|
||||
import Fuse from 'fuse.js';
|
||||
import type { AxoSymbolName } from './AxoSymbol';
|
||||
import { AxoSymbol, _getAllAxoSymbolNames, _getAxoSymbol } from './AxoSymbol';
|
||||
import { tw } from './tw';
|
||||
import type { AxoSymbolName } from './AxoSymbol.js';
|
||||
import {
|
||||
AxoSymbol,
|
||||
_getAllAxoSymbolNames,
|
||||
_getAxoSymbol,
|
||||
} from './AxoSymbol.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
export default {
|
||||
title: 'Axo/AxoSymbol',
|
||||
|
||||
@@ -4,8 +4,8 @@ import type { FC } from 'react';
|
||||
import React, { memo } from 'react';
|
||||
import { Direction } from 'radix-ui';
|
||||
import { VisuallyHidden } from 'react-aria';
|
||||
import { assert } from './_internal/assert';
|
||||
import { tw } from './tw';
|
||||
import { assert } from './_internal/assert.js';
|
||||
import { tw } from './tw.js';
|
||||
|
||||
const { useDirection } = Direction;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import { tw } from '../tw';
|
||||
import { AxoSymbol, type AxoSymbolName } from '../AxoSymbol';
|
||||
import { tw } from '../tw.js';
|
||||
import { AxoSymbol, type AxoSymbolName } from '../AxoSymbol.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
export namespace AxoBaseMenu {
|
||||
|
||||
Reference in New Issue
Block a user