ikualo-ui-kit-mobile 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "ikualo-app-2.0",
4
4
  "slug": "ikualo-app-20",
5
5
  "owner": "ikualo",
6
- "version": "2.1.1",
6
+ "version": "2.1.2",
7
7
  "orientation": "portrait",
8
8
  "icon": "./assets/icon.png",
9
9
  "userInterfaceStyle": "automatic",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -11,7 +11,7 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
11
11
  const theme = useStore().theme;
12
12
  const stylesBtnLightSmall = getStylesBtnLightSmall(theme);
13
13
 
14
- const { onPress, icon, disabled = false, active, isLoading, text, transparent, maxWidth } = props;
14
+ const { onPress, icon, disabled = false, active, isLoading, text, transparent, maxWidth, iconSize } = props;
15
15
  const color = active
16
16
  ? stylesBtnLightSmall['btn-light-small--active'].borderColor
17
17
  : disabled
@@ -43,7 +43,7 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
43
43
  {!isLoading ? (
44
44
  <View style={stylesBtnLightSmall['btn-light-small-icon']}>
45
45
  {cloneElement(icon, {
46
- size: 21,
46
+ size: iconSize || 21,
47
47
  color: color,
48
48
  style: stylesBtnLightSmall['btn-light-small-icon--cloned'],
49
49
  })}
@@ -51,6 +51,7 @@ export interface IBtnContained {
51
51
  export interface IBtnLightSmall {
52
52
  onPress: () => void;
53
53
  icon: JSX.Element;
54
+ iconSize?: number;
54
55
  disabled?: boolean;
55
56
  isLoading?: boolean;
56
57
  active?: boolean;