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

Add "use client" to all potentially interactive components to enable support for Server Components #222

Merged
merged 31 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bc69f1a
Testing combobox with Radix UI
ohp-inmeta Jan 24, 2025
17b52a3
combobox testing
ohp-inmeta Jan 27, 2025
18ef340
Set portal width based on trigger
ohp-inmeta Jan 27, 2025
0ac66db
Radix UI combobox testing
ohp-inmeta Jan 28, 2025
3f2155d
Test ariakit for combobox
ohp-inmeta Jan 30, 2025
275ba4e
Working Comboxbox using Ariakit
ohp-inmeta Jan 31, 2025
2b50141
Update combobox based on feedback
ohp-inmeta Feb 1, 2025
ac24a2f
Tabindex on selectboxes in list
ohp-inmeta Feb 3, 2025
f84b1b8
autofocus
ohp-inmeta Feb 3, 2025
7126581
FIx focus shift
ohp-inmeta Feb 5, 2025
54cc905
Merge branch 'main' into feature/181-radix-ui-combobox
ohp-inmeta Feb 5, 2025
9681fa6
use outline in place of border
ohp-inmeta Feb 5, 2025
90dbc39
Add font size to combobox input to follow design system
aurorascharff Feb 5, 2025
76cf975
Add animation to combobox open/close
ohp-inmeta Feb 11, 2025
52be33c
Update nvmrc to v20
ohp-inmeta Feb 11, 2025
d51387b
Added deprecation warning in console
ohp-inmeta Feb 11, 2025
741ea8d
Add max height and scroll behaviour
ohp-inmeta Feb 12, 2025
563d04c
Add deprecation warning to mullti autocomplete
ohp-inmeta Feb 13, 2025
9ac7dbb
Adjustments after testing
ohp-inmeta Feb 14, 2025
d29565f
Add "use client" to all potentially interactive components to enable …
aurorascharff Feb 14, 2025
03840d7
Merge branch 'feature/181-radix-ui-combobox' of https://github.com/mi…
aurorascharff Feb 14, 2025
d3672c9
Add note on server components i README
aurorascharff Feb 14, 2025
9697351
Flag for hidePrefixIcon
ohp-inmeta Feb 14, 2025
50972ba
Merge branch 'feature/181-radix-ui-combobox' of https://github.com/mi…
aurorascharff Feb 18, 2025
b977c5d
Add "use client" to MdCombobox
aurorascharff Feb 18, 2025
892a774
Update README.md
aurorascharff Feb 18, 2025
5f45871
Remove combobox stuff
aurorascharff Feb 18, 2025
84f7758
Remove combobox stuff
aurorascharff Feb 18, 2025
f93746a
Remove combobox stuff
aurorascharff Feb 18, 2025
5e1c268
Update package-lock
aurorascharff Feb 18, 2025
8b87e99
Merge branch 'main' of https://github.com/miljodir/md-components into…
aurorascharff Feb 18, 2025
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ Disse kan legges i `package.json` til eget prosjekt slik:
Alle pull requests krever nå at de legges på en label (`major`, `minor` eller `patch`). Disse vil brukes for å automatisk bumpe pakke versjonene før de publiseres til npm.
Labels er fortsatt påkrevd selv om pakkene ikke berøres (f.eks. bare storybook endringer), men dette vil heller ikke kjøre workflowene som bumper pakker og dytter til npm.

### Støtte for rammeverk som bruker React Server Components

For å støtte rammeverk som bruker Server Components, som f.eks. Next.js, legges en `use client` på toppen av alle komponentfiler som kan inneholde interaktiv JavaScript som kun kan kjøre på klienten. Typisk er dette event handlers som `onClick`, React Hooks som `useState` og `useEffect`, samt browser-APIer som `window`. Les mer på [React sin dokumentasjon](https://react.dev/reference/rsc/use-client).

### Releases

Når prosjektet har fått relevante endringer, eks. en major med breaking changes, eller nye komponenter, eller viktige endringer i eksisterende komponenter, kan det gjøres en release.
Expand Down
Loading
Loading