From fbadadb949bdc4816e4553eff0cea95403cc6444 Mon Sep 17 00:00:00 2001 From: Arno V Date: Tue, 5 Mar 2024 07:56:05 -0500 Subject: [PATCH 1/2] feat(Modal): adding prop className to ModalClose (#372) ## Summary by CodeRabbit - **Style** - Enhanced the styling capability of the modal close component by introducing a class name property. --- packages/ui-private/src/components/Modal/Modal.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui-private/src/components/Modal/Modal.tsx b/packages/ui-private/src/components/Modal/Modal.tsx index 10ad0844..1b03e771 100644 --- a/packages/ui-private/src/components/Modal/Modal.tsx +++ b/packages/ui-private/src/components/Modal/Modal.tsx @@ -107,18 +107,19 @@ export const ModalClose = React.forwardRef< HTMLButtonElement, { trigger: React.ReactElement; + className?: string; } >(function ModalClose(props, ref) { const { setOpen } = useModalContext(); - const { trigger, ...rest } = props; + const { trigger, className, ...rest } = props; const handleClose = React.useCallback(() => setOpen(false), [setOpen]); return ( - <> +
{React.cloneElement(trigger, { ref, onClick: handleClose, ...rest, })} - +
); }); From a411cbba49011179aa3e4b94b60b94200df28602 Mon Sep 17 00:00:00 2001 From: Arno V Date: Tue, 5 Mar 2024 08:02:45 -0500 Subject: [PATCH 2/2] chore: release main (#373) :robot: I have created a release *beep* *boop* ---
ui-private: 1.2.0 ## [1.2.0](https://github.com/aversini/ui-components/compare/ui-private-v1.1.0...ui-private-v1.2.0) (2024-03-05) ### Features * **Modal:** adding prop className to ModalClose ([#372](https://github.com/aversini/ui-components/issues/372)) ([fbadadb](https://github.com/aversini/ui-components/commit/fbadadb949bdc4816e4553eff0cea95403cc6444))
--- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- .release-please-manifest.json | 2 +- packages/ui-private/CHANGELOG.md | 7 +++++++ packages/ui-private/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 00cb025c..248424f0 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -3,7 +3,7 @@ "packages/ui-components": "5.3.0", "packages/ui-hooks": "2.2.0", "packages/ui-system": "1.0.1", - "packages/ui-private": "1.1.0", + "packages/ui-private": "1.2.0", "packages/ui-icons": "1.1.0", "packages/ui-plugins": "1.0.0" } diff --git a/packages/ui-private/CHANGELOG.md b/packages/ui-private/CHANGELOG.md index 0160b5ce..ff19eff2 100644 --- a/packages/ui-private/CHANGELOG.md +++ b/packages/ui-private/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.2.0](https://github.com/aversini/ui-components/compare/ui-private-v1.1.0...ui-private-v1.2.0) (2024-03-05) + + +### Features + +* **Modal:** adding prop className to ModalClose ([#372](https://github.com/aversini/ui-components/issues/372)) ([fbadadb](https://github.com/aversini/ui-components/commit/fbadadb949bdc4816e4553eff0cea95403cc6444)) + ## [1.1.0](https://github.com/aversini/ui-components/compare/ui-private-v1.0.0...ui-private-v1.1.0) (2024-02-26) diff --git a/packages/ui-private/package.json b/packages/ui-private/package.json index 16de736c..7efcc4ee 100644 --- a/packages/ui-private/package.json +++ b/packages/ui-private/package.json @@ -1,6 +1,6 @@ { "name": "@versini/ui-private", - "version": "1.1.0", + "version": "1.2.0", "license": "MIT", "author": "Arno Versini", "publishConfig": {