Skip to content

Commit

Permalink
organizes content guidelines utils content into a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
egoens committed Aug 27, 2024
1 parent 04cf4c4 commit d653ddf
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions next/pages/guidelines/color/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import usageContentMappings, {
emphasisContent,
interactionContent,
ContentMapping,
} from '../../../utils/color-usage-mappings';
import { Image } from '../../../utils/color-usage-types';
} from '../../../utils/guidelines/color/color-usage-mappings';
import { Image } from '../../../utils/guidelines/color/color-usage-types';
import ExampleBox from '../../../components/example-box';

import usage from '../../../images/pages/guide/product/color/overiew/usage.png';
Expand Down
4 changes: 2 additions & 2 deletions next/pages/guidelines/color/palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { Text } from '@thumbtack/thumbprint-react';
import { ContentPage } from '../../../components/mdx/mdx';
import getLayoutProps from '../../../utils/get-layout-props';
import { H2, P } from '../../../components/mdx/components';
import { paletteColortMappings } from '../../../utils/color-usage-mappings';
import { Color, Image, Usage } from '../../../utils/color-usage-types';
import { paletteColortMappings } from '../../../utils/guidelines/color/color-usage-mappings';
import { Color, Image, Usage } from '../../../utils/guidelines/color/color-usage-types';

import purple from '../../../images/pages/guide/product/color/palette/purple.png';
import yellow from '../../../images/pages/guide/product/color/palette/yellow.png';
Expand Down
6 changes: 3 additions & 3 deletions next/pages/guidelines/color/usage/background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import InlineCode from '../../../../components/inline-code/inline-code';
import getLayoutProps from '../../../../utils/get-layout-props';
import { H2, H3, LI, P, UL } from '../../../../components/mdx/components';
import ExampleBox from '../../../../components/example-box';
import UsageCategory from './usage-categories';
import ColorUsageNav from './color-usage-nav';
import { Usage, Image } from '../../../../utils/color-usage-types';
import UsageCategory from '../../../../utils/guidelines/color/color-usage-categories';
import ColorUsageNav from '../../../../utils/guidelines/color/color-usage-nav';
import { Usage, Image } from '../../../../utils/guidelines/color/color-usage-types';

import intro from '../../../../images/pages/guide/product/color/usage/background/intro.png';
import neutral from '../../../../images/pages/guide/product/color/usage/background/neutral.png';
Expand Down
6 changes: 3 additions & 3 deletions next/pages/guidelines/color/usage/borders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { ContentPage } from '../../../../components/mdx/mdx';
import { H2, H3, LI, P, UL } from '../../../../components/mdx/components';
import getLayoutProps from '../../../../utils/get-layout-props';
import ExampleBox from '../../../../components/example-box';
import UsageCategory from './usage-categories';
import ColorUsageNav from './color-usage-nav';
import { Usage, Image } from '../../../../utils/color-usage-types';
import UsageCategory from '../../../../utils/guidelines/color/color-usage-categories';
import ColorUsageNav from '../../../../utils/guidelines/color/color-usage-nav';
import { Usage, Image } from '../../../../utils/guidelines/color/color-usage-types';

import intro from '../../../../images/pages/guide/product/color/usage/borders/intro.png';
import neutral from '../../../../images/pages/guide/product/color/usage/borders/neutral.png';
Expand Down
6 changes: 3 additions & 3 deletions next/pages/guidelines/color/usage/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { ContentPage } from '../../../../components/mdx/mdx';
import { H2, H3, LI, P, UL } from '../../../../components/mdx/components';
import getLayoutProps from '../../../../utils/get-layout-props';
import ExampleBox from '../../../../components/example-box';
import UsageCategory from './usage-categories';
import ColorUsageNav from './color-usage-nav';
import { Usage, Image } from '../../../../utils/color-usage-types';
import UsageCategory from '../../../../utils/guidelines/color/color-usage-categories';
import ColorUsageNav from '../../../../utils/guidelines/color/color-usage-nav';
import { Usage, Image } from '../../../../utils/guidelines/color/color-usage-types';

import intro from '../../../../images/pages/guide/product/color/usage/icons/intro.png';
import neutral from '../../../../images/pages/guide/product/color/usage/icons/neutral.png';
Expand Down
6 changes: 3 additions & 3 deletions next/pages/guidelines/color/usage/text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { ContentPage } from '../../../../components/mdx/mdx';
import { H2, H3, LI, P, UL } from '../../../../components/mdx/components';
import getLayoutProps from '../../../../utils/get-layout-props';
import ExampleBox from '../../../../components/example-box';
import UsageCategory from './usage-categories';
import ColorUsageNav from './color-usage-nav';
import { Usage, Image } from '../../../../utils/color-usage-types';
import UsageCategory from '../../../../utils/guidelines/color/color-usage-categories';
import ColorUsageNav from '../../../../utils/guidelines/color/color-usage-nav';
import { Usage, Image } from '../../../../utils/guidelines/color/color-usage-types';

import intro from '../../../../images/pages/guide/product/color/usage/text/intro.png';
import neutral from '../../../../images/pages/guide/product/color/usage/text/neutral.png';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import usageContentMappings from '../../../../utils/color-usage-mappings';
import ExampleBox from '../../../../components/example-box';
import { H2, P } from '../../../../components/mdx/components';
import usageContentMappings from './color-usage-mappings';
import ExampleBox from '../../../components/example-box';
import { H2, P } from '../../../components/mdx/components';

function showInteractionColumn(usages) {

Check failure on line 6 in next/utils/guidelines/color/color-usage-categories.tsx

View workflow job for this annotation

GitHub Actions / ESLint

Missing return type on function
return usages.filter(item => item.values.interaction !== '').length;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import TabNav, { TabNavItem } from '../../../../components/tab-nav/tab-nav';
import TabNav, { TabNavItem } from '../../../components/tab-nav/tab-nav';

interface TabProps {
[key: string]: {
Expand Down
File renamed without changes.

0 comments on commit d653ddf

Please sign in to comment.