Skip to content

Add-BNDrawer#48

Open
dallasbpeters wants to merge 4 commits into
mainfrom
add-BNDrawer
Open

Add-BNDrawer#48
dallasbpeters wants to merge 4 commits into
mainfrom
add-BNDrawer

Conversation

@dallasbpeters

@dallasbpeters dallasbpeters commented Oct 14, 2025

Copy link
Copy Markdown
Member

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:

  • Added BNDialogTitle component with preset-based color variants, close icon support, and customizable background/text tokens. Integrates with BNDrawer via titleProps. (src/components/drawer/BNDialogTitle.tsx, src/components/drawer/BNDialogTitle.tsxR1-R77)
  • Added BNDrawer component as a wrapper for MUI's Drawer, exposing titleProps to render BNDialogTitle and forwarding all Drawer props. (src/components/drawer/BNDrawer.tsx, src/components/drawer/BNDrawer.tsxR1-R16)

Documentation & Exports:

Build/Versioning:

  • Bumped package version to 1.2.0 to reflect new features. (package.json, package.jsonL3-R3)
SCR-20251014-lseq-2

@dallasbpeters dallasbpeters marked this pull request as ready for review October 14, 2025 18:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread src/stories/BNDrawer.stories.tsx Outdated
Comment thread src/components/drawer/BNDialogTitle.tsx
Comment thread src/components/drawer/BNDialogTitle.tsx Outdated
Comment thread src/components/drawer/BNDialogTitle.tsx Outdated
Comment thread src/components/drawer/BNDialogTitle.tsx Outdated
…or title content and add heading prop to BNDrawer. Update stories to reflect changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants