Skip to content

Commit 8cfe70a

Browse files
chore: add display names on components (#3072)
1 parent d38e1ad commit 8cfe70a

File tree

101 files changed

+245
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+245
-2
lines changed

lib/src/components/Accordion/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ export const Accordion = forwardRef<HTMLDivElement, AccordionProps>(
3838
}
3939
)
4040

41+
Accordion.displayName = 'Accordion'
42+
4143
export { useDisclosureStore as useAccordion } from '@ariakit/react'

lib/src/components/Alert/components/Buttons.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ export const AlertButton = forwardRef<HTMLButtonElement, Omit<ButtonProps, 'size
99
<Button className="shrink-0 w-fit" ref={ref} variant={variant} {...props} />
1010
)
1111
)
12+
13+
AlertButton.displayName = 'Alert.Button'
14+
1215
export const AlertSecondaryButton = forwardRef<HTMLButtonElement, Omit<ButtonProps, 'size'>>(
1316
({ variant = 'secondary', ...props }, ref) => (
1417
<Button className="shrink-0 w-fit" ref={ref} variant={variant} {...props} />
1518
)
1619
)
20+
21+
AlertSecondaryButton.displayName = 'Alert.SecondaryButton'

lib/src/components/Alert/components/Title.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ export const AlertTitle = ({ children, hasCloseButton, ...rest }: AlertTitleProp
1313
</Text>
1414
)
1515
}
16+
17+
AlertTitle.displayName = 'Alert.Title'

lib/src/components/Alert/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ const AlertComponent = forwardRef<HTMLDivElement, AlertProps>(
113113
}
114114
)
115115

116+
AlertComponent.displayName = 'Alert'
117+
116118
export const Alert = Object.assign(AlertComponent, {
117119
Button: AlertButton,
118120
SecondaryButton: AlertSecondaryButton,

lib/src/components/Avatar/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ export const Avatar = forwardRef<HTMLDivElement, AvatarProps>(
6060
)
6161
}
6262
)
63+
64+
Avatar.displayName = 'Avatar'

lib/src/components/Breadcrumb/Item.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ export const Item = forwardRef<HTMLAnchorElement, BreadcrumbItemProps>(
5959
)
6060
}
6161
)
62+
63+
Item.displayName = 'Breadcrumb.Item'

lib/src/components/Breadcrumb/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export const BreadcrumbComponent = forwardRef<HTMLDivElement, BreadcrumbProps>(
6767
}
6868
)
6969

70+
BreadcrumbComponent.displayName = 'Breadcrumb'
71+
7072
// Nested exports
7173
export const Breadcrumb = Object.assign(BreadcrumbComponent, {
7274
Item,

lib/src/components/Button/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ export const Button = forwardRefWithAs<ButtonProps, 'button'>(
5959
)
6060
}
6161
)
62+
63+
Button.displayName = 'Button'

lib/src/components/ButtonGroup/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ export const ButtonGroup = forwardRefWithAs<ButtonGroupProps, 'div'>(
3838
)
3939
}
4040
)
41+
42+
ButtonGroup.displayName = 'ButtonGroup'

lib/src/components/Checkbox/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ export const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(
6060
)
6161
}
6262
)
63+
64+
Checkbox.displayName = 'Checkbox'

0 commit comments

Comments
 (0)