Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V6 minor] Oppdatert exports av komponenter for å støtte nextjs app router #2745

Merged
merged 56 commits into from
Feb 21, 2024

Conversation

KenAJoh
Copy link
Collaborator

@KenAJoh KenAJoh commented Feb 20, 2024

Description

nextjs støtter ikke import av client components når man er i en server components.
F.eks:

<ExpansionCard> <- Fungerer

<ExpansionCard.Content> <- Fungerer ikke

Oppdateringen eksporterer ExpansionCard.Content som ExpansionCardContent fra import @navikt/ds-react/ExpansionCard. Dette vil la alle komponenter bli konsumert i nextjs app router uten problem

Copy link

changeset-bot bot commented Feb 20, 2024

🦋 Changeset detected

Latest commit: b09fb13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@navikt/ds-react Minor
@navikt/ds-css Minor
@navikt/ds-tokens Minor
@navikt/ds-tailwind Minor
@navikt/aksel-icons Minor
@navikt/aksel Minor
@navikt/aksel-stylelint Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

.storybook/main.ts Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Feb 21, 2024

Storybook demo

978effa8a | 57 komponenter | 221 stories

HalvorHaugan
HalvorHaugan previously approved these changes Feb 21, 2024
@KenAJoh KenAJoh merged commit 884bf0c into main Feb 21, 2024
2 checks passed
@KenAJoh KenAJoh deleted the v6-dotnotation-import branch February 21, 2024 14:20
@github-actions github-actions bot mentioned this pull request Feb 21, 2024
JulianNymark pushed a commit that referenced this pull request Feb 26, 2024
…outer (#2745)

* 🚚 Oppdatert names-exports for expansioncard

* 🚚 Accordion

* 🚚 Alert

* 🚚 Button

* 🚚 Chat

* 🚚 Chips

* 🚚 CopyButton

* 🚚 Date components

* 🚚 Dropdown

* 🚚 Guidepanel

* 🚚 Helptext

* 🚚 InternalHeader

* 🚚 Primitives

* 🚚 Link

* 🚚 LinkPanel

* 🚚 List

* 🚚 Loader

* 🚚 Modal

* 🚚 Portal

* 🚚 Pagination

* 🚚 Popover

* 🚚 Provider

* 🚚 ReadMore

* 🚚 Skeleton

* 🚚 Stepper

* 🚚 Table

* 🚚 Tag

* 🚚 Timeline

* 🚚 ToggleGroup

* 🚚 Tooltip

* 🚚 Typography

* 🚚 Utils

* 🚚 Flyttet forms-komponenter inn i egne mapper

* 🚚 Oppdatert exports for alle skjemakomponenter

* 📝 Oppdatert exports av forms i package.json

* 🐛 Fikset regresjoner etter flytting av filer og exports

* 🐛 Manglet export av errorsummaryitem

* 🐛 Manglet export av search.button

* 🐛 Stories manglet riktig import

* 📝 changeset

* 🐛 Tester var ikke oppdatert med imports

* Update .storybook/main.ts

* 📝 Oppdatert package.json description

* 🎨 Oppdatert export til default-export

* 🐛 Exports av komponenter brakk for utils, combobox

* 🎨 Oppdatert eksempler for next appdir

* 🎨 Oppdatert astro-eksempel

* 📝 Client component test i use client scope

* 📝 Changelogs skrev use client feil

* 🐛 rename fieldset

* 🐛 rename Fieldset -> fieldset

* 🐛 Merge fra main brakk combobox tester og stories med feil import

* Update .changeset/silent-meals-watch-copy.md

---------

Co-authored-by: Halvor Haugan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants