From b40b41f7faf8f265c2bb3169f768d4013f67f7eb Mon Sep 17 00:00:00 2001 From: Ma'sum Date: Fri, 11 Jul 2025 10:14:59 +0700 Subject: [PATCH 1/2] feat(button): add ghost variant style support Add padding and height adjustments for ghost variant to match design requirements --- libs/rnc-theme/src/lib/components/ui/button/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/rnc-theme/src/lib/components/ui/button/index.tsx b/libs/rnc-theme/src/lib/components/ui/button/index.tsx index c52a6da..7cc588e 100644 --- a/libs/rnc-theme/src/lib/components/ui/button/index.tsx +++ b/libs/rnc-theme/src/lib/components/ui/button/index.tsx @@ -496,6 +496,14 @@ const Button = forwardRef( ...styles[size], borderRadius: theme.components.borderRadius[borderRadius], ...(fullWidth && { width: '100%' }), + // Tambahkan kondisi untuk ghost variant + ...(variant === 'ghost' && { + paddingHorizontal: 0, + paddingVertical: 0, + paddingTop: 0, + paddingBottom: 0, + minHeight: 0, + }), ...(style as ViewStyle), }), [ From 918b76cb9b9cf4a346e8d0f6e2c8acbbf4c4b79a Mon Sep 17 00:00:00 2001 From: Ma'sum Date: Fri, 11 Jul 2025 10:15:29 +0700 Subject: [PATCH 2/2] chore: bump rnc-theme version to 0.0.95 --- libs/rnc-theme/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/rnc-theme/package.json b/libs/rnc-theme/package.json index 0f37850..b8e28c7 100644 --- a/libs/rnc-theme/package.json +++ b/libs/rnc-theme/package.json @@ -1,6 +1,6 @@ { "name": "rnc-theme", - "version": "0.0.94", + "version": "0.0.95", "funding": { "type": "github", "url": "https://github.com/masumrpg/react-native-components"