Skip to content

Commit

Permalink
refactor: no longer access component-library-react/src/ from other …
Browse files Browse the repository at this point in the history
…packages
  • Loading branch information
Robbert committed Nov 24, 2024
1 parent 772c1f7 commit 8a1f012
Show file tree
Hide file tree
Showing 48 changed files with 55 additions and 48 deletions.
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Article.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Article, Paragraph } from '@utrecht/component-library-react/src/index';
import { Article, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Blockquote.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Blockquote, Paragraph } from '@utrecht/component-library-react/src/index';
import { Blockquote, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Checkbox.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Checkbox } from '@utrecht/component-library-react/src/index';
import { Checkbox } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Code.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Code, Paragraph } from '@utrecht/component-library-react/src/index';
import { Code, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/CodeBlock.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { CodeBlock } from '@utrecht/component-library-react/src/index';
import { CodeBlock } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/ColumnLayout.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { ColumnLayout, Paragraph } from '@utrecht/component-library-react/src/index';
import { ColumnLayout, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/DataList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { DataList, DataListItem, DataListKey, DataListValue } from '@utrecht/component-library-react/src/index';
import { DataList, DataListItem, DataListKey, DataListValue } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { FormFieldCheckbox, Link, Paragraph } from '@utrecht/component-library-react/src/index';
import { FormFieldCheckbox, Link, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { FormFieldTextarea } from '@utrecht/component-library-react/src/index';
import { FormFieldTextarea } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { FormFieldTextbox } from '@utrecht/component-library-react/src/index';
import { FormFieldTextbox } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/FormLabel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { FormLabel } from '@utrecht/component-library-react/src/index';
import { FormLabel } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Heading5,
Heading6,
Paragraph,
} from '@utrecht/component-library-react/src/index';
} from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading1.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1 } from '@utrecht/component-library-react/src/index';
import { Heading1 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading2.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1, Heading2 } from '@utrecht/component-library-react/src/index';
import { Heading1, Heading2 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading3.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1, Heading2, Heading3 } from '@utrecht/component-library-react/src/index';
import { Heading1, Heading2, Heading3 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading4.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1, Heading2, Heading3, Heading4 } from '@utrecht/component-library-react/src/index';
import { Heading1, Heading2, Heading3, Heading4 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Heading5.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1, Heading2, Heading3, Heading4, Heading5 } from '@utrecht/component-library-react/src/index';
import { Heading1, Heading2, Heading3, Heading4, Heading5 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
9 changes: 8 additions & 1 deletion packages/component-library-pdf/src/Heading6.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Heading1, Heading2, Heading3, Heading4, Heading5, Heading6 } from '@utrecht/component-library-react/src/index';
import {
Heading1,
Heading2,
Heading3,
Heading4,
Heading5,
Heading6,
} from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Image.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { Image } from '@utrecht/component-library-react/src/index';
import { Image } from '@utrecht/component-library-react/dist/index';
import { readFile } from 'fs/promises';
import React from 'react';
import { renderPdf } from './lib';
Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/LangSpan.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { Paragraph } from '@utrecht/component-library-react/src/index';
import { Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Link.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Link, Paragraph } from '@utrecht/component-library-react/src/index';
import { Link, Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Logo.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Logo, LogoImage } from '@utrecht/component-library-react/src/index';
import { Logo, LogoImage } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/OrderedList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { OrderedList, OrderedListItem } from '@utrecht/component-library-react/src/index';
import { OrderedList, OrderedListItem } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable react/no-unescaped-entities */

import { describe, expect, it } from '@jest/globals';
import { Heading1 } from '@utrecht/component-library-react/src/index';
import { Heading1 } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Paragraph.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Paragraph } from '@utrecht/component-library-react/src/index';
import { Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Quote.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Paragraph } from '@utrecht/component-library-react/src/index';
import { Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/RadioButton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { RadioButton } from '@utrecht/component-library-react/src/index';
import { RadioButton } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Section.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Paragraph } from '@utrecht/component-library-react/src/index';
import { Paragraph } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TableHeader,
TableHeaderCell,
TableRow,
} from '@utrecht/component-library-react/src/index';
} from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TableOfContentsLink,
TableOfContentsList,
TableOfContentsListItem,
} from '@utrecht/component-library-react/src/index';
} from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Textarea.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Textarea } from '@utrecht/component-library-react/src/index';
import { Textarea } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/Textbox.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { describe, expect, it } from '@jest/globals';
import { Textbox } from '@utrecht/component-library-react/src/index';
import { Textbox } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/UnorderedList.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env jest */

import { beforeAll, describe, expect, it } from '@jest/globals';
import { UnorderedList, UnorderedListItem } from '@utrecht/component-library-react/src/index';
import { UnorderedList, UnorderedListItem } from '@utrecht/component-library-react/dist/index';
import React from 'react';
import { renderPdf } from './lib';

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library-pdf/src/lib.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env node */
import { Document } from '@utrecht/component-library-react/src/index';
import { Document } from '@utrecht/component-library-react/dist/index';
import { exec, execFile } from 'node:child_process';
import { createHmac } from 'node:crypto';
import { mkdir, readFile, writeFile } from 'node:fs/promises';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-css/config/FigmaBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-css/config/GitHubBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-css/config/NlDesignSystemBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-css/config/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Controls, Description, Primary, Stories } from '@storybook/blocks';
import type { Preview } from '@storybook/react';
import type { StoryContext } from '@storybook/types';
import { ButtonGroup } from '@utrecht/component-library-react/src/css-module';
import { ButtonGroup } from '@utrecht/component-library-react/dist/css-module';
import { addonStatus } from '@utrecht/storybook-helpers/dist/addon-status';
import { addonThemes } from '@utrecht/storybook-helpers/dist/addon-themes';
import { addonViewport } from '@utrecht/storybook-helpers/dist/addon-viewport';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-css/src/Listbox.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @license CC0-1.0 */

import { Listbox, ListboxOption } from '@utrecht/component-library-react/src/Listbox';
import { Listbox, ListboxOption } from '@utrecht/component-library-react/dist/index';
import clsx from 'clsx';
import React, { ReactNode } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-pdf/config/FigmaBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-pdf/config/GitHubBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-pdf/config/NlDesignSystemBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { useOf } from '@storybook/blocks';
import { StoryObj } from '@storybook/react';
import { Icon } from '@utrecht/component-library-react/src/css-module';
import { Icon } from '@utrecht/component-library-react/dist/css-module';
import { PropsWithChildren } from 'react';
import React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-pdf/src/Image.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @license CC0-1.0 */

import { Meta, StoryObj } from '@storybook/react';
import { Image } from '@utrecht/component-library-react/src/Image';
import { Image } from '@utrecht/component-library-react/dist/css-module';
import readme from '@utrecht/img-css/README.md?raw';
import pdfDocs from '@utrecht/img-css/docs/technology-pdf.nl.md?raw';
import { mergeMarkdown } from '@utrecht/storybook-helpers/src/markdown';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook-pdf/src/Logo.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @license CC0-1.0 */

import { Meta, StoryObj } from '@storybook/react';
import { Logo } from '@utrecht/component-library-react/src/Logo';
import { Logo } from '@utrecht/component-library-react/dist/css-module';
import readme from '@utrecht/logo-css/README.md?raw';
import pdfDocs from '@utrecht/logo-css/docs/technology-pdf.nl.md?raw';
import { mergeMarkdown } from '@utrecht/storybook-helpers/src/markdown';
Expand Down
Loading

0 comments on commit 8a1f012

Please sign in to comment.