Переглянути джерело

Merge branch 'release/1.1.0-alpha.3'

lfabl 2 тижнів тому
батько
коміт
8349dbc5c7

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "ncore-ui-kit",
-    "version": "1.1.0-alpha.2",
+    "version": "1.1.0-alpha.3",
     "description": "NİBGAT® | NCore - UI Kit for React-Native Mobile Apps.",
     "main": "./lib/module/index.js",
     "types": "./lib/typescript/src/index.d.ts",

+ 2 - 1
src/components/highlightButton/index.tsx

@@ -43,6 +43,7 @@ const HighlightButton: FC<IHighlightButtonProps> = ({
     customTheme,
     titleStyle,
     isLoading,
+    iconSize,
     onPress,
     title,
     style,
@@ -98,7 +99,7 @@ const HighlightButton: FC<IHighlightButtonProps> = ({
     };
 
     const iconProps: NCoreUIKit.IconCallbackProps = {
-        size: Number(typography[currentSize.fontSize].fontSize),
+        size: iconSize ? iconSize : Number(typography[currentSize.fontSize].fontSize),
         color: currentType.iconColor
     };
 

+ 1 - 0
src/components/highlightButton/type.ts

@@ -97,6 +97,7 @@ interface IHighlightButtonProps extends Omit<ButtonProps, "title" | "disabled">
     isDisabled?: boolean;
     onPress: () => void;
     isLoading?: boolean;
+    iconSize?: number;
     title?: string;
 }
 export type {