mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
fix(ui/storybook): Allow relative imports to fix storybook build (#13292)
This commit is contained in:
parent
a88e15c0d2
commit
c140450a1e
@ -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' },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { foundations } from '@components/theme/foundations';
|
||||
import { foundations } from './foundations';
|
||||
|
||||
const { colors } = foundations;
|
||||
|
||||
|
@ -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;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user