fix(ui/storybook): Allow relative imports to fix storybook build (#13292)

This commit is contained in:
Andrew Sikowitz 2025-04-22 13:05:16 -07:00 committed by GitHub
parent a88e15c0d2
commit c140450a1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 29 deletions

View File

@ -78,9 +78,11 @@ module.exports = {
overrides: [
{
files: ['src/app/searchV2/**/*.tsx', 'src/app/entityV2/**/*.tsx'],
rules: {
'import/no-cycle': 'off',
},
rules: { 'import/no-cycle': 'off' },
},
{
files: ['src/alchemy-components/theme/**/*.ts'],
rules: { 'import/no-relative-packages': 'off', 'import-alias/import-alias': 'off' },
},
],
};

View File

@ -1,15 +1,15 @@
import blur from '@components/theme/foundations/blur';
import borders from '@components/theme/foundations/borders';
import breakpoints from '@components/theme/foundations/breakpoints';
import colors from '@components/theme/foundations/colors';
import radius from '@components/theme/foundations/radius';
import shadows from '@components/theme/foundations/shadows';
import sizes from '@components/theme/foundations/sizes';
import spacing from '@components/theme/foundations/spacing';
import transform from '@components/theme/foundations/transform';
import transition from '@components/theme/foundations/transition';
import typography from '@components/theme/foundations/typography';
import zIndices from '@components/theme/foundations/zIndex';
import blur from './blur';
import borders from './borders';
import breakpoints from './breakpoints';
import colors from './colors';
import radius from './radius';
import shadows from './shadows';
import sizes from './sizes';
import spacing from './spacing';
import transform from './transform';
import transition from './transition';
import typography from './typography';
import zIndices from './zIndex';
export const foundations = {
blur,

View File

@ -1,7 +1,7 @@
import * as config from '@components/theme/config';
import { foundations } from '@components/theme/foundations';
import { semanticTokens } from '@components/theme/semantic-tokens';
import * as utils from '@components/theme/utils';
import * as config from './config';
import { foundations } from './foundations';
import { semanticTokens } from './semantic-tokens';
import * as utils from './utils';
const theme = {
semanticTokens,

View File

@ -1,4 +1,4 @@
import { foundations } from '@components/theme/foundations';
import { foundations } from './foundations';
const { colors } = foundations;

View File

@ -1,15 +1,9 @@
/*
Theme Utils that can be used anywhere in the app
*/
import {
ColorOptions,
DEFAULT_VALUE,
FontSizeOptions,
MiscColorOptions,
RotationOptions,
} from '@components/theme/config';
import { foundations } from '@components/theme/foundations';
import { semanticTokens } from '@components/theme/semantic-tokens';
import { ColorOptions, DEFAULT_VALUE, FontSizeOptions, MiscColorOptions, RotationOptions } from './config';
import { foundations } from './foundations';
import { semanticTokens } from './semantic-tokens';
const { colors, typography, transform } = foundations;
/*