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

feat: exporting typescript props for various components - 1 #16447

Merged
merged 4 commits into from
May 21, 2024

Conversation

Gururajj77
Copy link
Contributor

@Gururajj77 Gururajj77 commented May 13, 2024

Main issue #16154

Closes #16373 - InlineLoadingProps
Closes #16374 - LoadingProps
Closes #16375 - ModalProps
Closes #16376 - NumberInputProps
Closes #16377 - ProgressBar and ProgressIndicator

Exporting the typescript props for the above mentioned components as part of typescript adoption
(This PR is mentioned as 1, as we have more components where props needs to be exported so there will be more PRs regarding this)

Changelog

Changed

  • exporting interfaces from the .tsx files if not done
  • Importing them to index.ts and exporting them explicitly so that users can import them directly with the component.
  • converted Label in the NumberInput as FC component as typescript wasn't recognising it as component and due to this, propTypes was throwing error while build.

Testing / Reviewing

No changes to the component, so new testing observations.

@Gururajj77 Gururajj77 requested a review from a team as a code owner May 13, 2024 08:19
@Gururajj77 Gururajj77 changed the title feat: exporting typescript props for various components feat: exporting typescript props for various components - 1 May 13, 2024
Copy link

netlify bot commented May 13, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 00a7107
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664cf2adbdd9e40008cb437e
😎 Deploy Preview https://deploy-preview-16447--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@riddhybansal riddhybansal left a comment

Choose a reason for hiding this comment

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

LGTM!!

Copy link

netlify bot commented May 17, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 00a7107
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/664cf2ad3cb63d0008caa765
😎 Deploy Preview https://deploy-preview-16447--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guidari guidari added this pull request to the merge queue May 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a manual request May 21, 2024
@guidari
Copy link
Contributor

guidari commented May 21, 2024

@Gururajj77 Looks like the PR got closed for some reason. I'm gonna re-open and try to merge it again

@guidari guidari reopened this May 21, 2024
@guidari guidari enabled auto-merge May 21, 2024 19:14
@guidari guidari added this pull request to the merge queue May 21, 2024
Merged via the queue into carbon-design-system:main with commit 111db86 May 21, 2024
21 checks passed
@carbon-automation
Copy link
Contributor

Hey there! v11.58.0 was just released that references this issue/PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants