Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into oa/jm/AR-update-typog…
Browse files Browse the repository at this point in the history
…raphy
  • Loading branch information
jamesmockett committed May 23, 2024
2 parents ae19881 + ffe2eb9 commit 1c75476
Show file tree
Hide file tree
Showing 610 changed files with 922 additions and 1,074 deletions.
2 changes: 1 addition & 1 deletion .vscode/dcr.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// }
"Import neutral": {
"prefix": "neutral",
"body": ["import { neutral } from '@guardian/source-foundations';"],
"body": ["import { neutral } from '@guardian/source/foundations';"],
"description": "Import for neutral"
},
"React wrapper component": {
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import isChromatic from 'chromatic/isChromatic';
import MockDate from 'mockdate';

import { getFontsCss } from './fonts-css';
import { resets } from '@guardian/source-foundations';
import { resets } from '@guardian/source/foundations';

if (isChromatic()) {
// Fix the date to prevent false negatives
Expand Down
1 change: 0 additions & 1 deletion apps-rendering/config/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'@guardian/eslint-config-typescript',
'plugin:@guardian/source-react-components/recommended',
],
parserOptions: {
// Allows for the parsing of modern ECMAScript features
Expand Down
6 changes: 2 additions & 4 deletions apps-rendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@
"@guardian/content-atom-model": "4.0.1",
"@guardian/eslint-config": "7.0.1",
"@guardian/eslint-config-typescript": "9.0.1",
"@guardian/eslint-plugin-source-react-components": "24.0.0",
"@guardian/libs": "16.1.0",
"@guardian/renditions": "0.2.0",
"@guardian/source-foundations": "14.2.2",
"@guardian/source-react-components": "22.1.0",
"@guardian/source-react-components-development-kitchen": "19.0.0",
"@guardian/source": "1.0.0",
"@guardian/source-development-kitchen": "1.0.0",
"@smithy/property-provider": "2.0.16",
"@storybook/addon-essentials": "7.6.18",
"@storybook/addons": "7.6.18",
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/adSlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
remSpace,
textSans14,
until,
} from '@guardian/source-foundations';
import { Button, buttonThemeBrandAlt } from '@guardian/source-react-components';
} from '@guardian/source/foundations';
import { Button, buttonThemeBrandAlt } from '@guardian/source/react-components';
import { background, text } from 'palette';
import type { FC, ReactElement } from 'react';
import { darkModeCss, wideContentWidth } from 'styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
from,
neutral,
space,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import type { FC } from 'react';
import { darkModeCss } from 'styles';
import Accordion from '.';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/Accordion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import {
line,
neutral,
remSpace,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import {
SvgChevronDownSingle,
SvgChevronUpSingle,
} from '@guardian/source-react-components';
} from '@guardian/source/react-components';
import type { FC, ReactNode } from 'react';
import { darkModeCss } from 'styles';

Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Anchor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { ArticleDesign, ArticleSpecial } from '@guardian/libs';
import { labs, neutral } from '@guardian/source-foundations';
import { labs, neutral } from '@guardian/source/foundations';
import { text } from 'palette';
import type { FC, ReactNode } from 'react';
import { darkModeCss } from 'styles';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/ArticleBody/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { palette, remSpace } from '@guardian/source-foundations';
import { palette, remSpace } from '@guardian/source/foundations';
import type { BodyElement } from 'bodyElement';
import { background } from 'palette';
import type { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { remSpace } from '@guardian/source-foundations';
import { remSpace } from '@guardian/source/foundations';
import { map, withDefault } from '../../../vendor/@guardian/types/index';
import Img from 'components/Img';
import { isSingleContributor } from 'contributor';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Blockquote/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { remSpace } from '@guardian/source-foundations';
import { remSpace } from '@guardian/source/foundations';
import { fill } from 'palette';
import type { FC, ReactNode } from 'react';
import { darkModeCss } from 'styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import { ArticleElementRole } from '@guardian/libs';
import type { ArticleFormat } from '@guardian/libs';
import { from, remSpace } from '@guardian/source-foundations';
import type { Breakpoint } from '@guardian/source-foundations';
import { from, remSpace } from '@guardian/source/foundations';
import type { Breakpoint } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { none, some, withDefault } from '../../../vendor/@guardian/types/index';
import { CaptionIconVariant } from 'components/CaptionIcon';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
from,
headlineMedium17,
textSans14,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import { CaptionIconVariant } from 'components/CaptionIcon';
import FigCaption from 'components/FigCaption';
import Img from 'components/ImgAlt';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/BodyImage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ----- Imports ----- //
import { ArticleDesign } from '@guardian/libs';
import type { Breakpoint } from '@guardian/source-foundations';
import type { Breakpoint } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { none } from '../../../vendor/@guardian/types/index';
import type { FC } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/AnalysisByline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
headlineLightItalic34,
remSpace,
until,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { text } from 'palette';
import { darkModeCss } from 'styles';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/Byline.defaults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ArticleFormat } from '@guardian/libs';
import {
headlineBold17,
headlineMediumItalic17,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import { withDefault } from '../../../vendor/@guardian/types/index';
import type { Option } from '../../../vendor/@guardian/types/index';
import { maybeRender } from 'lib';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/CommentByline.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { between, headlineLightItalic34 } from '@guardian/source-foundations';
import { between, headlineLightItalic34 } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { text } from 'palette';
import { darkModeCss } from 'styles';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/DeadBlogByline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ArticleFormat } from '@guardian/libs';
import {
headlineBold17,
headlineMediumItalic17,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { DefaultByline } from './Byline.defaults';
import { blogColor } from './LiveBlogByline';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/GalleryByline.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { headlineMediumItalic17, remSpace } from '@guardian/source-foundations';
import { headlineMediumItalic17, remSpace } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { grid } from 'grid/grid';
import { border, text } from 'palette';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/LabsByline.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { labs, textSansItalic17 } from '@guardian/source-foundations';
import { labs, textSansItalic17 } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { darkModeCss } from 'styles';
import { DefaultByline } from './Byline.defaults';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Byline/LiveBlogByline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
from,
headlineBold17,
headlineMediumItalic17,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { text } from 'palette';
import { darkModeCss } from 'styles';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/BylineCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
headlineMedium20,
remSpace,
textSans15,
} from '@guardian/source-foundations';
import { SvgQuote } from '@guardian/source-react-components';
} from '@guardian/source/foundations';
import { SvgQuote } from '@guardian/source/react-components';
import type { Option } from '../../../vendor/@guardian/types/index';
import {
fromNullable,
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Callout/calloutBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Contact } from '@guardian/apps-rendering-api-models/contact';
import type { FormField } from '@guardian/apps-rendering-api-models/formField';
import type { ArticleFormat } from '@guardian/libs';
import { Tabs } from '@guardian/source-react-components-development-kitchen';
import { Tabs } from '@guardian/source-development-kitchen/react-components';
import { useState } from 'react';
import type { FC, ReactElement } from 'react';
import { renderCalloutDescriptionText } from 'renderer';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Callout/calloutContact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SvgSignalBrand,
SvgTelegramBrand,
SvgWhatsAppBrand,
} from '@guardian/source-react-components';
} from '@guardian/source/react-components';
import type { FC, ReactElement } from 'react';
import { calloutLinkContainer, calloutPrimaryButton, info } from './styles';

Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Callout/calloutForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
InlineError,
Link,
SvgTickRound,
} from '@guardian/source-react-components';
} from '@guardian/source/react-components';
import { useState } from 'react';
import type { FC } from 'react';
import { ContactText, Disclaimer } from './calloutComponents';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/Callout/formFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
Select,
TextArea,
TextInput,
} from '@guardian/source-react-components';
import { FileInput } from '@guardian/source-react-components-development-kitchen';
} from '@guardian/source/react-components';
import { FileInput } from '@guardian/source-development-kitchen/react-components';
import CheckboxInput from 'components/CheckboxInput';
import RadioInput from 'components/RadioInput';
import type { FC } from 'react';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/Callout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { css, ThemeProvider } from '@emotion/react';
import type { Contact } from '@guardian/apps-rendering-api-models/contact';
import type { FormField } from '@guardian/apps-rendering-api-models/formField';
import type { ArticleFormat } from '@guardian/libs';
import { remSpace } from '@guardian/source-foundations';
import { ExpandingWrapper } from '@guardian/source-react-components-development-kitchen';
import { remSpace } from '@guardian/source/foundations';
import { ExpandingWrapper } from '@guardian/source-development-kitchen/react-components';
import { isElement } from 'lib';
import type { FC, ReactElement } from 'react';
import { createElement as h } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Callout/shareLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Button,
SvgShare,
SvgTickRound,
} from '@guardian/source-react-components';
} from '@guardian/source/react-components';
import { useState } from 'react';
import type { FC } from 'react';
import {
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Callout/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
textSans14,
textSans15,
textSans17,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import { darkModeCss } from 'styles';

// Callout block styles
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/Callout/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {
focus,
neutral,
success,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import {
expandingWrapperDarkTheme,
fileInputDarkTheme,
tabsDarkTheme,
} from '@guardian/source-react-components-development-kitchen';
} from '@guardian/source-development-kitchen/react-components';

const labelDarkTheme = {
textLabel: neutral[97],
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/CaptionIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { ArticleDesign } from '@guardian/libs';
import { remSpace } from '@guardian/source-foundations';
import { SvgCamera, SvgVideo } from '@guardian/source-react-components';
import { remSpace } from '@guardian/source/foundations';
import { SvgCamera, SvgVideo } from '@guardian/source/react-components';
import { fill } from 'palette';
import type { FC } from 'react';
import { darkModeCss } from 'styles';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import {
textSans15,
textSans17,
textSans20,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import {
SvgAudio,
SvgCamera,
SvgQuote,
SvgVideo,
} from '@guardian/source-react-components';
} from '@guardian/source/react-components';
import {
fromNullable,
map,
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/CheckboxInput/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { SerializedStyles } from '@emotion/react';
import type { FormField } from '@guardian/apps-rendering-api-models/formField';
import { Checkbox, CheckboxGroup } from '@guardian/source-react-components';
import { Checkbox, CheckboxGroup } from '@guardian/source/react-components';
import type { ReactElement } from 'react';

interface CheckboxInputProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@guardian/source-react-components';
import { Button } from '@guardian/source/react-components';
import { none, some } from '../../../vendor/@guardian/types/index';
import renderer from 'react-test-renderer';
import ClickToView from './';
Expand Down
4 changes: 2 additions & 2 deletions apps-rendering/src/components/ClickToView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
textSans17,
textSansBold17,
textSansBold20,
} from '@guardian/source-foundations';
import { Button, SvgCheckmark } from '@guardian/source-react-components';
} from '@guardian/source/foundations';
import { Button, SvgCheckmark } from '@guardian/source/react-components';
import type { Option } from '../../../vendor/@guardian/types/index';
import { OptionKind, withDefault } from '../../../vendor/@guardian/types/index';
import { fold } from 'lib';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ----- Imports ----- //

import { ArticleDesign, ArticleDisplay, ArticlePillar } from '@guardian/libs';
import { breakpoints } from '@guardian/source-foundations';
import { breakpoints } from '@guardian/source/foundations';
import { some } from '../../../vendor/@guardian/types/index';
import { getAllThemes, getThemeNameAsString } from 'fixtures/article';
import type { FC, ReactElement } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/CommentCount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { ArticleDesign } from '@guardian/libs';
import { from, remSpace, textSansBold17 } from '@guardian/source-foundations';
import { from, remSpace, textSansBold17 } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { map, withDefault } from '../../../vendor/@guardian/types/index';
import { pipe } from 'lib';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Credit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import { ArticleDesign } from '@guardian/libs';
import { remSpace, textSans14 } from '@guardian/source-foundations';
import { remSpace, textSans14 } from '@guardian/source/foundations';
import type { Option } from '../../../vendor/@guardian/types/index';
import { map, withDefault } from '../../../vendor/@guardian/types/index';
import { pipe } from 'lib';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Dateline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
neutral,
textSans12,
textSans14,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import { map, withDefault } from '../../../vendor/@guardian/types/index';
import type { Option } from '../../../vendor/@guardian/types/index';
import { datetimeFormat } from 'datetime';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Deadline/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SvgClock } from '@guardian/source-react-components';
import { SvgClock } from '@guardian/source/react-components';
import { isValidDate } from 'date';
import type { FC } from 'react';
import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps-rendering/src/components/Deadline/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
neutral,
remSpace,
textSans14,
} from '@guardian/source-foundations';
} from '@guardian/source/foundations';
import { darkModeCss } from 'styles';

export const highlight = css`
Expand Down

0 comments on commit 1c75476

Please sign in to comment.