From 8a1f01298db8f05235c30ee30d720c15495444e7 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Sun, 24 Nov 2024 18:05:24 +0100 Subject: [PATCH] refactor: no longer access `component-library-react/src/` from other packages --- packages/component-library-pdf/src/Article.test.tsx | 2 +- packages/component-library-pdf/src/Blockquote.test.tsx | 2 +- packages/component-library-pdf/src/Checkbox.test.tsx | 2 +- packages/component-library-pdf/src/Code.test.tsx | 2 +- packages/component-library-pdf/src/CodeBlock.test.tsx | 2 +- packages/component-library-pdf/src/ColumnLayout.test.tsx | 2 +- packages/component-library-pdf/src/DataList.test.tsx | 2 +- .../component-library-pdf/src/FormFieldCheckbox.test.tsx | 2 +- .../component-library-pdf/src/FormFieldTextarea.test.tsx | 2 +- .../component-library-pdf/src/FormFieldTextbox.test.tsx | 2 +- packages/component-library-pdf/src/FormLabel.test.tsx | 2 +- packages/component-library-pdf/src/Heading.test.tsx | 2 +- packages/component-library-pdf/src/Heading1.test.tsx | 2 +- packages/component-library-pdf/src/Heading2.test.tsx | 2 +- packages/component-library-pdf/src/Heading3.test.tsx | 2 +- packages/component-library-pdf/src/Heading4.test.tsx | 2 +- packages/component-library-pdf/src/Heading5.test.tsx | 2 +- packages/component-library-pdf/src/Heading6.test.tsx | 9 ++++++++- packages/component-library-pdf/src/Image.test.tsx | 2 +- packages/component-library-pdf/src/LangSpan.test.tsx | 2 +- packages/component-library-pdf/src/Link.test.tsx | 2 +- packages/component-library-pdf/src/Logo.test.tsx | 2 +- packages/component-library-pdf/src/OrderedList.test.tsx | 2 +- packages/component-library-pdf/src/Page.test.tsx | 2 +- packages/component-library-pdf/src/Paragraph.test.tsx | 2 +- packages/component-library-pdf/src/Quote.test.tsx | 2 +- packages/component-library-pdf/src/RadioButton.test.tsx | 2 +- packages/component-library-pdf/src/Section.test.tsx | 2 +- packages/component-library-pdf/src/Table.test.tsx | 2 +- .../component-library-pdf/src/TableOfContents.test.tsx | 2 +- packages/component-library-pdf/src/Textarea.test.tsx | 2 +- packages/component-library-pdf/src/Textbox.test.tsx | 2 +- .../component-library-pdf/src/UnorderedList.test.tsx | 2 +- packages/component-library-pdf/src/lib.tsx | 2 +- packages/storybook-css/config/FigmaBlock.tsx | 2 +- packages/storybook-css/config/GitHubBlock.tsx | 2 +- packages/storybook-css/config/NlDesignSystemBlock.tsx | 2 +- packages/storybook-css/config/preview.tsx | 2 +- packages/storybook-css/src/Listbox.tsx | 2 +- packages/storybook-pdf/config/FigmaBlock.tsx | 2 +- packages/storybook-pdf/config/GitHubBlock.tsx | 2 +- packages/storybook-pdf/config/NlDesignSystemBlock.tsx | 2 +- packages/storybook-pdf/src/Image.stories.tsx | 2 +- packages/storybook-pdf/src/Logo.stories.tsx | 2 +- packages/storybook-pdf/src/TableOfContents.stories.tsx | 2 +- packages/storybook-pdf/src/UnorderedList.stories.tsx | 2 +- packages/storybook-react/src/stories/Button.stories.tsx | 2 +- .../storybook-react/src/stories/ScrollLink.stories.tsx | 2 +- 48 files changed, 55 insertions(+), 48 deletions(-) diff --git a/packages/component-library-pdf/src/Article.test.tsx b/packages/component-library-pdf/src/Article.test.tsx index 89238824c90..a2b019cfeb8 100644 --- a/packages/component-library-pdf/src/Article.test.tsx +++ b/packages/component-library-pdf/src/Article.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Blockquote.test.tsx b/packages/component-library-pdf/src/Blockquote.test.tsx index c5bdb0d5a03..d5b3ba6c226 100644 --- a/packages/component-library-pdf/src/Blockquote.test.tsx +++ b/packages/component-library-pdf/src/Blockquote.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Checkbox.test.tsx b/packages/component-library-pdf/src/Checkbox.test.tsx index e6ef1b79206..ebaeddf9ba6 100644 --- a/packages/component-library-pdf/src/Checkbox.test.tsx +++ b/packages/component-library-pdf/src/Checkbox.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Code.test.tsx b/packages/component-library-pdf/src/Code.test.tsx index aa8102835b1..bab3236b798 100644 --- a/packages/component-library-pdf/src/Code.test.tsx +++ b/packages/component-library-pdf/src/Code.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/CodeBlock.test.tsx b/packages/component-library-pdf/src/CodeBlock.test.tsx index ad66053753b..242fffb2d3c 100644 --- a/packages/component-library-pdf/src/CodeBlock.test.tsx +++ b/packages/component-library-pdf/src/CodeBlock.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/ColumnLayout.test.tsx b/packages/component-library-pdf/src/ColumnLayout.test.tsx index 2d27933ceec..c9348b6efa7 100644 --- a/packages/component-library-pdf/src/ColumnLayout.test.tsx +++ b/packages/component-library-pdf/src/ColumnLayout.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/DataList.test.tsx b/packages/component-library-pdf/src/DataList.test.tsx index d426f1132b5..61c63f06ae3 100644 --- a/packages/component-library-pdf/src/DataList.test.tsx +++ b/packages/component-library-pdf/src/DataList.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/FormFieldCheckbox.test.tsx b/packages/component-library-pdf/src/FormFieldCheckbox.test.tsx index da90682e67f..7ac76ef0ad4 100644 --- a/packages/component-library-pdf/src/FormFieldCheckbox.test.tsx +++ b/packages/component-library-pdf/src/FormFieldCheckbox.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/FormFieldTextarea.test.tsx b/packages/component-library-pdf/src/FormFieldTextarea.test.tsx index f9d39cb79a6..bc023089844 100644 --- a/packages/component-library-pdf/src/FormFieldTextarea.test.tsx +++ b/packages/component-library-pdf/src/FormFieldTextarea.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/FormFieldTextbox.test.tsx b/packages/component-library-pdf/src/FormFieldTextbox.test.tsx index 45994017dfa..0097de597e7 100644 --- a/packages/component-library-pdf/src/FormFieldTextbox.test.tsx +++ b/packages/component-library-pdf/src/FormFieldTextbox.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/FormLabel.test.tsx b/packages/component-library-pdf/src/FormLabel.test.tsx index 168b0b13cf7..6f803261885 100644 --- a/packages/component-library-pdf/src/FormLabel.test.tsx +++ b/packages/component-library-pdf/src/FormLabel.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading.test.tsx b/packages/component-library-pdf/src/Heading.test.tsx index 0b7f09cf031..b5fb046f877 100644 --- a/packages/component-library-pdf/src/Heading.test.tsx +++ b/packages/component-library-pdf/src/Heading.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading1.test.tsx b/packages/component-library-pdf/src/Heading1.test.tsx index f51a0a3db76..3b4a731691e 100644 --- a/packages/component-library-pdf/src/Heading1.test.tsx +++ b/packages/component-library-pdf/src/Heading1.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading2.test.tsx b/packages/component-library-pdf/src/Heading2.test.tsx index 67493258af4..14370e25278 100644 --- a/packages/component-library-pdf/src/Heading2.test.tsx +++ b/packages/component-library-pdf/src/Heading2.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading3.test.tsx b/packages/component-library-pdf/src/Heading3.test.tsx index aa4961aef9d..bb501a23c75 100644 --- a/packages/component-library-pdf/src/Heading3.test.tsx +++ b/packages/component-library-pdf/src/Heading3.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading4.test.tsx b/packages/component-library-pdf/src/Heading4.test.tsx index 604ecb466ff..ec56fa5ccc9 100644 --- a/packages/component-library-pdf/src/Heading4.test.tsx +++ b/packages/component-library-pdf/src/Heading4.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading5.test.tsx b/packages/component-library-pdf/src/Heading5.test.tsx index 1ec0c3114c1..e10022b9bf5 100644 --- a/packages/component-library-pdf/src/Heading5.test.tsx +++ b/packages/component-library-pdf/src/Heading5.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Heading6.test.tsx b/packages/component-library-pdf/src/Heading6.test.tsx index dbbe2b146f2..2f4a42e39d6 100644 --- a/packages/component-library-pdf/src/Heading6.test.tsx +++ b/packages/component-library-pdf/src/Heading6.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Image.test.tsx b/packages/component-library-pdf/src/Image.test.tsx index 8907ed55d56..4ad9761349f 100644 --- a/packages/component-library-pdf/src/Image.test.tsx +++ b/packages/component-library-pdf/src/Image.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/LangSpan.test.tsx b/packages/component-library-pdf/src/LangSpan.test.tsx index 255dfd24627..2759f98d2cb 100644 --- a/packages/component-library-pdf/src/LangSpan.test.tsx +++ b/packages/component-library-pdf/src/LangSpan.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Link.test.tsx b/packages/component-library-pdf/src/Link.test.tsx index b66144460f8..8187476eb69 100644 --- a/packages/component-library-pdf/src/Link.test.tsx +++ b/packages/component-library-pdf/src/Link.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Logo.test.tsx b/packages/component-library-pdf/src/Logo.test.tsx index f14ae6810d1..50d9e0eb130 100644 --- a/packages/component-library-pdf/src/Logo.test.tsx +++ b/packages/component-library-pdf/src/Logo.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/OrderedList.test.tsx b/packages/component-library-pdf/src/OrderedList.test.tsx index ae6f60e75ae..3e8a976c0ba 100644 --- a/packages/component-library-pdf/src/OrderedList.test.tsx +++ b/packages/component-library-pdf/src/OrderedList.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Page.test.tsx b/packages/component-library-pdf/src/Page.test.tsx index 379017ffd07..dec13609ec8 100644 --- a/packages/component-library-pdf/src/Page.test.tsx +++ b/packages/component-library-pdf/src/Page.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Paragraph.test.tsx b/packages/component-library-pdf/src/Paragraph.test.tsx index 00ac86a2ed7..e512826c6c8 100644 --- a/packages/component-library-pdf/src/Paragraph.test.tsx +++ b/packages/component-library-pdf/src/Paragraph.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Quote.test.tsx b/packages/component-library-pdf/src/Quote.test.tsx index 9cd4b37513a..95154f6ab09 100644 --- a/packages/component-library-pdf/src/Quote.test.tsx +++ b/packages/component-library-pdf/src/Quote.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/RadioButton.test.tsx b/packages/component-library-pdf/src/RadioButton.test.tsx index 42f0edc003b..e753f41b04e 100644 --- a/packages/component-library-pdf/src/RadioButton.test.tsx +++ b/packages/component-library-pdf/src/RadioButton.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Section.test.tsx b/packages/component-library-pdf/src/Section.test.tsx index a9baeb381fa..2c955a0dced 100644 --- a/packages/component-library-pdf/src/Section.test.tsx +++ b/packages/component-library-pdf/src/Section.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Table.test.tsx b/packages/component-library-pdf/src/Table.test.tsx index 8f2873165ec..3413023d99f 100644 --- a/packages/component-library-pdf/src/Table.test.tsx +++ b/packages/component-library-pdf/src/Table.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/TableOfContents.test.tsx b/packages/component-library-pdf/src/TableOfContents.test.tsx index 4a5e5667378..cc1cc43e008 100644 --- a/packages/component-library-pdf/src/TableOfContents.test.tsx +++ b/packages/component-library-pdf/src/TableOfContents.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Textarea.test.tsx b/packages/component-library-pdf/src/Textarea.test.tsx index 288298249cd..88942e30b49 100644 --- a/packages/component-library-pdf/src/Textarea.test.tsx +++ b/packages/component-library-pdf/src/Textarea.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/Textbox.test.tsx b/packages/component-library-pdf/src/Textbox.test.tsx index cb35ccdca85..fab69c16ac5 100644 --- a/packages/component-library-pdf/src/Textbox.test.tsx +++ b/packages/component-library-pdf/src/Textbox.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/UnorderedList.test.tsx b/packages/component-library-pdf/src/UnorderedList.test.tsx index 445dd8313bd..76d195f2a37 100644 --- a/packages/component-library-pdf/src/UnorderedList.test.tsx +++ b/packages/component-library-pdf/src/UnorderedList.test.tsx @@ -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'; diff --git a/packages/component-library-pdf/src/lib.tsx b/packages/component-library-pdf/src/lib.tsx index ee6afb84c3b..08d7fb3367a 100644 --- a/packages/component-library-pdf/src/lib.tsx +++ b/packages/component-library-pdf/src/lib.tsx @@ -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'; diff --git a/packages/storybook-css/config/FigmaBlock.tsx b/packages/storybook-css/config/FigmaBlock.tsx index 245fdc51876..77c76013629 100644 --- a/packages/storybook-css/config/FigmaBlock.tsx +++ b/packages/storybook-css/config/FigmaBlock.tsx @@ -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'; diff --git a/packages/storybook-css/config/GitHubBlock.tsx b/packages/storybook-css/config/GitHubBlock.tsx index d9cd1ab8df9..b2cba4dafb7 100644 --- a/packages/storybook-css/config/GitHubBlock.tsx +++ b/packages/storybook-css/config/GitHubBlock.tsx @@ -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'; diff --git a/packages/storybook-css/config/NlDesignSystemBlock.tsx b/packages/storybook-css/config/NlDesignSystemBlock.tsx index dceb4b7db7e..6ae53566b15 100644 --- a/packages/storybook-css/config/NlDesignSystemBlock.tsx +++ b/packages/storybook-css/config/NlDesignSystemBlock.tsx @@ -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'; diff --git a/packages/storybook-css/config/preview.tsx b/packages/storybook-css/config/preview.tsx index c27ee4d78f2..731aa2f24f4 100644 --- a/packages/storybook-css/config/preview.tsx +++ b/packages/storybook-css/config/preview.tsx @@ -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'; diff --git a/packages/storybook-css/src/Listbox.tsx b/packages/storybook-css/src/Listbox.tsx index 718f55c6651..02b26950a1a 100644 --- a/packages/storybook-css/src/Listbox.tsx +++ b/packages/storybook-css/src/Listbox.tsx @@ -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'; diff --git a/packages/storybook-pdf/config/FigmaBlock.tsx b/packages/storybook-pdf/config/FigmaBlock.tsx index 245fdc51876..77c76013629 100644 --- a/packages/storybook-pdf/config/FigmaBlock.tsx +++ b/packages/storybook-pdf/config/FigmaBlock.tsx @@ -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'; diff --git a/packages/storybook-pdf/config/GitHubBlock.tsx b/packages/storybook-pdf/config/GitHubBlock.tsx index d9cd1ab8df9..b2cba4dafb7 100644 --- a/packages/storybook-pdf/config/GitHubBlock.tsx +++ b/packages/storybook-pdf/config/GitHubBlock.tsx @@ -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'; diff --git a/packages/storybook-pdf/config/NlDesignSystemBlock.tsx b/packages/storybook-pdf/config/NlDesignSystemBlock.tsx index dceb4b7db7e..6ae53566b15 100644 --- a/packages/storybook-pdf/config/NlDesignSystemBlock.tsx +++ b/packages/storybook-pdf/config/NlDesignSystemBlock.tsx @@ -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'; diff --git a/packages/storybook-pdf/src/Image.stories.tsx b/packages/storybook-pdf/src/Image.stories.tsx index d1a310699da..c22489a16ee 100644 --- a/packages/storybook-pdf/src/Image.stories.tsx +++ b/packages/storybook-pdf/src/Image.stories.tsx @@ -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'; diff --git a/packages/storybook-pdf/src/Logo.stories.tsx b/packages/storybook-pdf/src/Logo.stories.tsx index 24253c043bd..70033a11bcf 100644 --- a/packages/storybook-pdf/src/Logo.stories.tsx +++ b/packages/storybook-pdf/src/Logo.stories.tsx @@ -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'; diff --git a/packages/storybook-pdf/src/TableOfContents.stories.tsx b/packages/storybook-pdf/src/TableOfContents.stories.tsx index a339be245b0..0fc3d48c5b8 100644 --- a/packages/storybook-pdf/src/TableOfContents.stories.tsx +++ b/packages/storybook-pdf/src/TableOfContents.stories.tsx @@ -1,7 +1,7 @@ /* @license CC0-1.0 */ import { Meta, StoryObj } from '@storybook/react'; -import { TableOfContents } from '@utrecht/component-library-react/src/TableOfContents'; +import { TableOfContents } from '@utrecht/component-library-react/dist/css-module'; import { mergeMarkdown } from '@utrecht/storybook-helpers/src/markdown'; import readme from '@utrecht/table-of-contents-css/README.md?raw'; import pdfDocs from '@utrecht/table-of-contents-css/docs/technology-pdf.nl.md?raw'; diff --git a/packages/storybook-pdf/src/UnorderedList.stories.tsx b/packages/storybook-pdf/src/UnorderedList.stories.tsx index 3cbbcc90ca7..26b9d95fbb1 100644 --- a/packages/storybook-pdf/src/UnorderedList.stories.tsx +++ b/packages/storybook-pdf/src/UnorderedList.stories.tsx @@ -1,7 +1,7 @@ /* @license CC0-1.0 */ import { Meta, StoryObj } from '@storybook/react'; -import { UnorderedList } from '@utrecht/component-library-react/src/UnorderedList'; +import { UnorderedList } from '@utrecht/component-library-react/dist/css-module'; import { mergeMarkdown } from '@utrecht/storybook-helpers/src/markdown'; import readme from '@utrecht/unordered-list-css/README.md?raw'; import pdfDocs from '@utrecht/unordered-list-css/docs/technology-pdf.nl.md?raw'; diff --git a/packages/storybook-react/src/stories/Button.stories.tsx b/packages/storybook-react/src/stories/Button.stories.tsx index a0f19aebe55..a88d7862357 100644 --- a/packages/storybook-react/src/stories/Button.stories.tsx +++ b/packages/storybook-react/src/stories/Button.stories.tsx @@ -1,7 +1,7 @@ import { Meta, StoryObj } from '@storybook/react'; import readme from '@utrecht/button-css/README.md?raw'; import tokensDefinition from '@utrecht/button-css/src/tokens.json'; -import { Button, ButtonProps } from '@utrecht/button-react/src/css'; +import { Button, ButtonProps } from '@utrecht/button-react/dist/css'; import tokens from '@utrecht/design-tokens/dist/index.json'; import iconSet from '@utrecht/icon/dist/index.json'; import React from 'react'; diff --git a/packages/storybook-react/src/stories/ScrollLink.stories.tsx b/packages/storybook-react/src/stories/ScrollLink.stories.tsx index e0b2f39bc89..b1f3da959e5 100644 --- a/packages/storybook-react/src/stories/ScrollLink.stories.tsx +++ b/packages/storybook-react/src/stories/ScrollLink.stories.tsx @@ -7,7 +7,7 @@ import { PageContent, Paragraph, ScrollLink, -} from '@utrecht/component-library-react/src/css-module/index'; +} from '@utrecht/component-library-react/dist/css-module/index'; import tokens from '@utrecht/design-tokens/dist/index.json'; import { UtrechtIconChevronUp } from '@utrecht/web-component-library-react'; import React from 'react';