فهرست منبع

Merge branch 'release/1.0.0-pre-alpha.56'

lfabl 1 ماه پیش
والد
کامیت
bc6e429abc
3فایلهای تغییر یافته به همراه11 افزوده شده و 4 حذف شده
  1. 1 1
      package.json
  2. 6 2
      src/components/siteLogo/index.tsx
  3. 4 1
      src/components/siteLogo/type.ts

+ 1 - 1
package.json

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

+ 6 - 2
src/components/siteLogo/index.tsx

@@ -34,11 +34,13 @@ const SiteLogo = ({
     subTitleVariant,
     icon: IconProp,
     size = "large",
+    subTitleStyle,
     subTitleColor,
     titleVariant,
     imageSource,
     customTheme,
     borderColor,
+    titleStyle,
     imageSpace,
     isDisabled,
     titleColor,
@@ -196,7 +198,8 @@ const SiteLogo = ({
                 ellipsizeMode="tail"
                 numberOfLines={1}
                 style={{
-                    width: "100%"
+                    width: "100%",
+                    ...titleStyle
                 }}
             >
                 {title}
@@ -210,7 +213,8 @@ const SiteLogo = ({
                         ellipsizeMode="tail"
                         numberOfLines={1}
                         style={{
-                            width: "100%"
+                            width: "100%",
+                            ...subTitleStyle
                         }}
                     >
                         {subTitle}

+ 4 - 1
src/components/siteLogo/type.ts

@@ -5,7 +5,8 @@ import {
     type ImageURISource,
     type ImageProps,
     type StyleProp,
-    type ViewStyle
+    type ViewStyle,
+    type TextStyle
 } from "react-native";
 import type {
     NCoreUIKitIcon
@@ -74,9 +75,11 @@ interface ISiteLogoProps {
     isCustomImageSize?: boolean;
     isWorkWithAction?: boolean;
     isWorkWithFlex1?: boolean;
+    subTitleStyle?: TextStyle;
     imageProps?: ImageProps;
     size?: SiteLogoSizeType;
     isShowBorder?: boolean;
+    titleStyle?: TextStyle;
     icon?: NCoreUIKitIcon;
     isShowIcon?: boolean;
     isDisabled?: boolean;