Open
Conversation
…components with preset color variants and documentation updates.
There was a problem hiding this comment.
Pull Request Overview
Adds new drawer-related components (BNDialogTitle, BNDrawer) to the design system, updates exports and changelog, and introduces a Storybook story; version bumped to 1.2.0.
- Introduces BNDialogTitle with variant-based theming and optional close button.
- Wraps MUI Drawer with BNDrawer to inject optional BNDialogTitle via titleProps.
- Adds Storybook example and updates changelog and package version.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/drawer/BNDialogTitle.tsx | New configurable dialog/drawer title component with theming and close control. |
| src/components/drawer/BNDrawer.tsx | Wrapper component integrating BNDialogTitle into MUI Drawer. |
| src/components/index.ts | Exports new drawer components and their prop types. |
| src/stories/BNDrawer.stories.tsx | Story demonstrating BNDrawer and BNDialogTitle usage. |
| src/stories/CHANGELOG.mdx | Changelog entry for new components and version 1.2.0. |
| package.json | Version bump to 1.2.0. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…or title content and add heading prop to BNDrawer. Update stories to reflect changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new drawer components to the BetaNXT design system and updates the package version to 1.2.0. The main changes include the addition of a customizable dialog title component with preset color variants and close functionality, a drawer wrapper component that integrates this title, and corresponding Storybook documentation. The changelog and exports have also been updated to reflect these additions.
New Drawer Components:
BNDialogTitlecomponent with preset-based color variants, close icon support, and customizable background/text tokens. Integrates withBNDrawerviatitleProps. (src/components/drawer/BNDialogTitle.tsx, src/components/drawer/BNDialogTitle.tsxR1-R77)BNDrawercomponent as a wrapper for MUI'sDrawer, exposingtitlePropsto renderBNDialogTitleand forwarding all Drawer props. (src/components/drawer/BNDrawer.tsx, src/components/drawer/BNDrawer.tsxR1-R16)Documentation & Exports:
BNDrawer, demonstrating title styling, close handling, and content composition. (src/stories/BNDrawer.stories.tsx, src/stories/BNDrawer.stories.tsxR1-R83)src/components/index.ts, src/components/index.tsR28-R33)src/stories/CHANGELOG.mdx, src/stories/CHANGELOG.mdxR8-R22)Build/Versioning:
1.2.0to reflect new features. (package.json, package.jsonL3-R3)