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

fix(types): export IAvatarProps and ILabelProps #1215

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

mtomcal
Copy link
Contributor

@mtomcal mtomcal commented Sep 23, 2021

Description

Some developers need access to ILabelProps and IAvatarProps in order to extend them.

  • exported ILabelProps
  • exported IAvatarProps

Checklist

  • πŸ‘Œ design updates are Garden Designer approved (add the
    designer as a reviewer)
  • 🌐 demo is up-to-date (yarn start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • 🀘 renders as expected with Bedrock CSS (?bedrock)
  • β™Ώ analyzed via axe and evaluated using VoiceOver
  • πŸ’‚β€β™‚οΈ includes new unit tests
  • πŸ“ tested in Chrome, Firefox, Safari, Edge, and IE11

@@ -28,5 +28,5 @@ export { MediaItem } from './elements/Menu/Items/MediaItem';
export { NextItem } from './elements/Menu/Items/NextItem';
export { PreviousItem } from './elements/Menu/Items/PreviousItem';
export type { GARDEN_PLACEMENT, POPPER_PLACEMENT } from './utils/garden-placements';

export type { ILabelProps } from './elements/Fields/Label';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to export all interfaces from these subcomponents in Dropdown retroactively? πŸ€”

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All applicable element interfaces should be exported. See https://github.com/zendeskgarden/react-components/blob/main/packages/buttons/src/index.ts

@coveralls
Copy link

coveralls commented Sep 23, 2021

Coverage Status

Coverage remained the same at 94.837% when pulling 9c5a84f on mtomcal/export-label-avatar-types into e617463 on main.

@zendesk-garden zendesk-garden temporarily deployed to staging September 23, 2021 23:54 Inactive
@saescapa
Copy link
Contributor

+1! We are Typescriptfying some components that are wrappers for some of the Dropdown components and it would help a lot if we had these!

@mtomcal
Copy link
Contributor Author

mtomcal commented Sep 24, 2021

Added all available interfaces to the export for dropdown. For other components, we can open up new PRs for that. At present course, this will go out in next week's release on Wed 29th.

@zendesk-garden zendesk-garden temporarily deployed to staging September 24, 2021 19:05 Inactive
@mtomcal mtomcal merged commit ffa8e92 into main Sep 27, 2021
@mtomcal mtomcal deleted the mtomcal/export-label-avatar-types branch September 27, 2021 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

7 participants