Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"www.designsystemet.no",
"@web/www",
"@web/storybook",
"@internal/components",
"@plugin/figma",
"theme",
"storefront",
"@repo/components",
"@designsystemet/storybook",
"figma-plugin"
"storefront"
]
}
2 changes: 2 additions & 0 deletions .changeset/curly-maps-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- 'apps/**'
- 'plugins/**'
- 'biome.jsonc'
- 'internal/**'
jobs:
checks:
name: Checks
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/app/(frontpage)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Heading } from '@digdir/designsystemet-react';
import { Container } from '@internal/components';
import { ComponentIcon, PaletteIcon, WrenchIcon } from '@navikt/aksel-icons';
import { Container } from '@repo/components';
import cn from 'clsx/lite';
import type React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/app/bloggen/(frontpage)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from '@internal/components';
import { PencilIcon } from '@navikt/aksel-icons';
import { Container } from '@repo/components';
import type { Metadata } from 'next';

import { Banner, BannerHeading, BannerIcon } from 'components/Banner/Banner';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Heading, Link, Paragraph } from '@digdir/designsystemet-react';
import { Container } from '@repo/components';
import { Container } from '@internal/components';
import type * as React from 'react';

import { Image, MdxContent } from '../../../../components';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/app/komponenter/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from '@internal/components';
import { ComponentFillIcon } from '@navikt/aksel-icons';
import { Container } from '@repo/components';

import {
Banner,
Expand Down
3 changes: 1 addition & 2 deletions apps/storefront/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import '@digdir/designsystemet-css';
import '@digdir/designsystemet-theme';

import { SkipLink } from '@digdir/designsystemet-react';
import { Figma, Footer, Github, Header, Slack } from '@internal/components';
import { EnvelopeClosedIcon } from '@navikt/aksel-icons';
import { Figma, Github, Header, Slack } from '@repo/components';
import { Footer } from '@repo/components';
import type { Metadata } from 'next';
import Script from 'next/script';
import { isProduction } from '../utils/is-production';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Heading, Link, Paragraph } from '@digdir/designsystemet-react';
import { Container } from '@repo/components';
import { Container } from '@internal/components';
import type { Metadata } from 'next';
import Image from 'next/image';
import NextLink from 'next/link';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/components/GithubLink/GithubLink.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { Link } from '@digdir/designsystemet-react';
import { Github } from '@repo/components';
import { Github } from '@internal/components';
import { usePathname } from 'next/navigation';
import type { HTMLAttributes } from 'react';

Expand Down
4 changes: 2 additions & 2 deletions apps/storefront/components/ImageBanner/ImageBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import type { ButtonProps } from '@digdir/designsystemet-react';
import { Button, Heading, Link, Paragraph } from '@digdir/designsystemet-react';
import { Container } from '@repo/components';
import type { ButtonProps } from '@digdir/designsystemet-react';
import { Container } from '@internal/components';
import cl from 'clsx/lite';
import NextLink from 'next/link';
import type React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/components/Section/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Heading } from '@digdir/designsystemet-react';
import { Container } from '@repo/components';
import { Container } from '@internal/components';
import cl from 'clsx/lite';
import Image from 'next/image';
import type * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getColorMetadataByNumber } from '@digdir/designsystemet/color';
import { ColorModal } from '@repo/components';
import { ColorModal } from '@internal/components';
import cl from 'clsx/lite';
import { useRef } from 'react';
import type { TransformedToken } from 'style-dictionary';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { Dropdown, Heading, Table } from '@digdir/designsystemet-react';
import { ClipboardButton } from '@repo/components';
import { ClipboardButton } from '@internal/components';
import cl from 'clsx/lite';
import type { HTMLAttributes } from 'react';
import { useEffect, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';
import { Heading } from '@digdir/designsystemet-react';
import { Container } from '@internal/components';
import { ComponentIcon } from '@navikt/aksel-icons';
import { Slot } from '@radix-ui/react-slot';
import { Container } from '@repo/components';
import cn from 'clsx/lite';
import { usePathname } from 'next/navigation';
import type * as React from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { Container } from '@repo/components';
import { Container } from '@internal/components';
import { usePathname } from 'next/navigation';
import type * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/layouts/NavPageLayout/NavPageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Container } from '@repo/components';
import { Container } from '@internal/components';
import type * as React from 'react';

import { MdxContent } from '../../components';
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/layouts/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Heading, Link, Paragraph } from '@digdir/designsystemet-react';
import { Container } from '@internal/components';
import { ArrowLeftIcon } from '@navikt/aksel-icons';
import { Container } from '@repo/components';
import NextLink from 'next/link';
import type * as React from 'react';

Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
TableHeaderCell,
TableRow,
} from '@digdir/designsystemet-react';
import { CodeBlock } from '@repo/components';
import { CodeBlock } from '@internal/components';
import type { MDXComponents } from 'mdx/types';

export function useMDXComponents(components: MDXComponents): MDXComponents {
Expand Down
2 changes: 1 addition & 1 deletion apps/storefront/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const nextConfig = {
'@digdir/designsystemet',
'@digdir/designsystemet-css',
'@digdir/designsystemet-theme',
'@repo/components',
'@internal/components',
],
};

Expand Down
7 changes: 5 additions & 2 deletions apps/storefront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "storefront",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=22.15.0"
},
"scripts": {
"sitemap": "next-sitemap",
"dev": "next dev",
Expand All @@ -16,12 +19,12 @@
"@digdir/designsystemet-css": "workspace:^",
"@digdir/designsystemet-react": "workspace:^",
"@digdir/designsystemet-theme": "workspace:^",
"@internal/components": "workspace:^",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@navikt/aksel-icons": "^7.18.0",
"@next/mdx": "^15.2.4",
"@radix-ui/react-slot": "^1.1.2",
"@repo/components": "workspace:^",
"@types/mdx": "^2.0.13",
"@vercel/analytics": "^1.5.0",
"clsx": "^2.1.1",
Expand All @@ -37,7 +40,7 @@
"webpack": "^5.98.0"
},
"devDependencies": {
"@types/react": "^19.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.1",
"next-sitemap": "^4.2.3"
}
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
Table,
} from '@digdir/designsystemet-react';

import { CodeBlock } from '@internal/components';
import { Children, type MouseEventHandler } from 'react';
import { CodeBlock } from '../../_components';
import { customStylesDecorator } from '../story-utils/customStylesDecorator';
import { fontsLoader } from '../story-utils/fontsLoader';
import { allModes, viewportWidths } from '../story-utils/modes';
Expand Down
9 changes: 6 additions & 3 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"name": "@designsystemet/storybook",
"version": "0.1.0",
"name": "@web/storybook",
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=22.15.0"
},
"scripts": {
"dev": "storybook dev -p 6006",
"build": "storybook build -o ./dist --stats-json",
Expand All @@ -22,7 +25,7 @@
"@digdir/designsystemet-react": "workspace:^",
"@digdir/designsystemet-theme": "workspace:^",
"@navikt/aksel-icons": "^7.18.0",
"@repo/components": "workspace:^",
"@internal/components": "workspace:^",
"@storybook/addon-a11y": "^8.6.12",
"@storybook/addon-essentials": "^8.6.12",
"@storybook/addon-links": "^8.6.12",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/showcase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryFn } from '@storybook/react';
import { useState } from 'react';

import { Fieldset, type Size, ToggleGroup } from '@digdir/designsystemet-react';
import { Showcase } from '@repo/components';
import { Showcase } from '@internal/components';

import classes from './showcase.module.css';

Expand Down
7 changes: 5 additions & 2 deletions apps/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
"compilerOptions": {
"types": ["../../packages/theme/brand/colors.d.ts"]
},
"files": ["./.storybook/componentOverrides.module.scss"],
"files": [
"./.storybook/componentOverrides.module.scss",
"./stories/showcase.module.css"
],
"include": [
".",
"**/*",
"./.storybook/**/*",
"../../packages/css/postcss.config.js",
"../../vite.config.ts"
Expand Down
2 changes: 1 addition & 1 deletion apps/theme/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import '@digdir/designsystemet-css';
import '@digdir/designsystemet-theme';
import 'react-color-palette/css';
import './globals.css';
import { Figma, Footer, Github, Header, Slack } from '@internal/components';
import { EnvelopeClosedIcon } from '@navikt/aksel-icons';
import { Figma, Footer, Github, Header, Slack } from '@repo/components';

export const metadata: Metadata = {
title: 'Temabygger - Designsystemet',
Expand Down
2 changes: 1 addition & 1 deletion apps/theme/app/om-verktoyet/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { Container } from '@repo/components';
import { Container } from '@internal/components';

import classes from './page.module.css';

Expand Down
4 changes: 1 addition & 3 deletions apps/theme/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'use client';
import { Button, Heading, Paragraph } from '@digdir/designsystemet-react';
import type {} from '@digdir/designsystemet/color';
import {} from '@digdir/designsystemet/color';
import { Container } from '@internal/components';
import { BookIcon, PaletteIcon } from '@navikt/aksel-icons';
import { Container } from '@repo/components';
import NextLink from 'next/link';
import { useSearchParams } from 'next/navigation';
import { useEffect } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion apps/theme/app/slik-bruker-du-verktoyet/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { Heading, Link, Paragraph } from '@digdir/designsystemet-react';
import { Container } from '@repo/components';
import { Container } from '@internal/components';

import classes from './page.module.css';

Expand Down
2 changes: 1 addition & 1 deletion apps/theme/app/test/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { Container } from '@repo/components';
import { Container } from '@internal/components';

import {
type ThemeInfo,
Expand Down
2 changes: 1 addition & 1 deletion apps/theme/components/Group/Group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import cl from 'clsx/lite';

import { Color as ColorPreview } from '../Color/Color';

import { ColorModal } from '@repo/components';
import { ColorModal } from '@internal/components';
import { Fragment, createRef, useRef } from 'react';
import { useThemeStore } from '../../store';
import classes from './Group.module.css';
Expand Down
2 changes: 1 addition & 1 deletion apps/theme/components/TokenModal/TokenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
cliOptions,
formatThemeCSS,
} from '@digdir/designsystemet/tokens';
import { CodeBlock } from '@internal/components';
import { InformationSquareIcon, StarIcon } from '@navikt/aksel-icons';
import { CodeBlock } from '@repo/components';
import { useRef, useState } from 'react';

import type { Color, CssColor } from '@digdir/designsystemet/color';
Expand Down
9 changes: 6 additions & 3 deletions apps/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "theme",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=22.15.0"
},
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -14,12 +17,12 @@
"@digdir/designsystemet-css": "workspace:^",
"@digdir/designsystemet-react": "workspace:^",
"@digdir/designsystemet-theme": "workspace:^",
"@internal/components": "workspace:^",
"@navikt/aksel-icons": "^7.18.0",
"@repo/components": "workspace:^",
"@radix-ui/react-slot": "^1.1.2",
"chroma-js": "^3.1.2",
"clsx": "^2.1.1",
"next": "^15.2.4",
"@radix-ui/react-slot": "^1.1.2",
"react": "^19.1.0",
"react-color-palette": "^7.3.0",
"react-dom": "^19.1.0",
Expand All @@ -28,7 +31,7 @@
},
"devDependencies": {
"@types/chroma-js": "^3.1.1",
"@types/react": "^19.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.1"
}
}
9 changes: 6 additions & 3 deletions apps/www/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "www.designsystemet.no",
"name": "@web/www",
"version": "0.0.0",
"private": true,
"engines": {
"node": ">=22.15.0"
},
"type": "module",
"scripts": {
"build": "react-router build && node scripts/copy-content.js",
Expand All @@ -17,7 +21,6 @@
"@radix-ui/react-slot": "^1.1.2",
"@react-router/node": "^7.5.2",
"@react-router/serve": "^7.5.2",
"@repo/components": "workspace:^",
"@vercel/react-router": "^1.1.0",
"clsx": "^2.1.1",
"i18next": "^25.0.1",
Expand All @@ -39,7 +42,7 @@
"devDependencies": {
"@react-router/dev": "^7.5.2",
"@types/node": "^22.14.1",
"@types/react": "^19.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.0",
"typescript": "^5.8.2",
"vite": "^6.3.2",
Expand Down
Loading
Loading