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 relevant index files #3716

Closed
wants to merge 2 commits into from
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
2 changes: 1 addition & 1 deletion packages/eds-core-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/eds-core-react",
"version": "0.42.5",
"version": "0.43.0-dev-01062025",
"description": "The React implementation of the Equinor Design System",
"sideEffects": [
"**/*.css"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Accordion as BaseAccordion } from './Accordion'
import { AccordionItem, AccordionItemProps } from './AccordionItem'
import { AccordionHeader, AccordionHeaderProps } from './AccordionHeader'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Banner/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Banner as BaseBanner, BannerProps } from './Banner'
import { BannerIcon, BannerIconProps } from './BannerIcon'
import { BannerMessage, BannerMessageProps } from './BannerMessage'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Breadcrumbs as BaseComponent, BreadcrumbsProps } from './Breadcrumbs'
import { Breadcrumb, BreadcrumbProps } from './Breadcrumb'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Button as ButtonWrapper, ButtonProps } from './Button'
import { ButtonGroup, ButtonGroupProps } from './ButtonGroup/ButtonGroup'
import { ToggleButton, ToggleButtonProps } from './ToggleButton/ToggleButton'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Card/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Card as CardWrapper, CardProps } from './Card'
import { CardActions, CardActionsProps } from './CardActions'
import { CardContent, CardContentProps } from './CardContent'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
export * from './DatePicker'
export * from './DateRangePicker'
export * from './props'
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Dialog/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Dialog as BaseComponent, DialogProps } from './Dialog'
import { DialogActions, DialogActionsProps } from './DialogActions'
import { DialogTitle, DialogTitleProps } from './DialogTitle'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/List/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { List as BaseComponent, ListProps } from './List'
import { ListItem, ListItemProps } from './ListItem'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Menu as BaseMenu, MenuProps } from './Menu'
import { MenuItem, MenuItemProps } from './MenuItem'
import { MenuSection, MenuSectionProps } from './MenuSection'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Popover/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Popover as BaseComponent, PopoverProps } from './Popover'
import { PopoverTitle, PopoverTitleProps } from './PopoverTitle'
import { PopoverContent, PopoverContentProps } from './PopoverContent'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/SideBar/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { SideBar as BaseSideBar } from './SideBar'
import { useSideBar } from './SideBar.context'
import { SidebarLink, SidebarLinkProps } from './SidebarLink'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Snackbar/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { SnackbarAction, SnackbarActionProps } from './SnackbarAction'
import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Table/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Table as BaseTable, TableProps } from './Table'
import { Body, BodyProps } from './Body'
import { Cell, CellProps } from './Cell'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import {
TableOfContents as BaseComponent,
TableOfContentsProps,
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Tabs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Tabs as BaseComponent, TabsProps } from './Tabs'
import { TabList, TabListProps } from './TabList'
import { Tab, TabProps } from './Tab'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/TopBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { TopBar as BaseComponent, TopbarProps } from './TopBar'
import { Actions, TopbarActionsProps } from './Actions'
import { Header, TopbarHeaderProps } from './Header'
Expand Down
Loading