ikualo-ui-kit-mobile 0.8.2 → 0.8.3

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.
@@ -128,6 +128,10 @@ const getStylesBtnLightSmall = (theme: ITheme) => StyleSheet.create({
128
128
  'btn-light-small--primary': {
129
129
  backgroundColor: theme.colors.background_focus,
130
130
  borderColor: theme.colors.icon,
131
+ },
132
+ 'btn-light-small--transparent': {
133
+ backgroundColor: theme.colors.transparent,
134
+ borderColor: theme.colors.icon,
131
135
  }
132
136
  ,
133
137
  'btn-light-small-content': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikualo-ui-kit-mobile",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "main": "src/index.ts",
5
5
  "scripts": {
6
6
  "start": "expo start",
@@ -12,7 +12,7 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
12
12
  const theme = useStore().theme;
13
13
  const stylesBtnLightSmall = getStylesBtnLightSmall(theme);
14
14
 
15
- const { onPress, icon, disabled = false, active, isLoading, text } = props;
15
+ const { onPress, icon, disabled = false, active, isLoading, text, transparent } = props;
16
16
  const color = active ?
17
17
  stylesBtnLightSmall['btn-light-small--active'].borderColor :
18
18
  disabled ? theme.colors.border_disabled : stylesBtnLightSmall['btn-light-small--primary'].borderColor
@@ -24,7 +24,7 @@ export const BtnLightSmall = (props: IBtnLightSmall) => {
24
24
  stylesBtnLightSmall['btn-light-small'],
25
25
  active && stylesBtnLightSmall['btn-light-small--active'],
26
26
  disabled && stylesBtnLightSmall['btn-light-small--disabled'],
27
- !active && !disabled && stylesBtnLightSmall['btn-light-small--primary'],
27
+ !active && !disabled && stylesBtnLightSmall[`btn-light-small--${transparent ? 'transparent' : 'primary'}`],
28
28
  ]}
29
29
  contentStyle={stylesBtnLightSmall['btn-light-small-content']}
30
30
  labelStyle={[
@@ -51,6 +51,7 @@ export interface IBtnLightSmall {
51
51
  isLoading?: boolean;
52
52
  active?: boolean;
53
53
  text?: string;
54
+ transparent?: boolean;
54
55
  }
55
56
  export interface IBtnOutlined {
56
57
  color?: TypeBtnColors;