@sphereon/ui-components.ssi-react-native 0.2.1-unstable.4 → 0.2.1-unstable.5

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { fontColors, gradientsColors, OpacityStyleEnum } from '@sphereon/ui-components.core';
3
- import { SSITouchableOpacityButtonFlexRowStyled as Button, SSITextH2LightStyled as Caption, SSIRoundedCenteredLinearGradientStyled as LinearGradient, } from '../../../styles';
3
+ import { SSITouchableOpacityButtonFlexRowStyled as Button, SSITextH2LightStyled as ButtonCaption, SSIRoundedCenteredLinearGradientStyled as LinearGradient, } from '../../../styles';
4
4
  const PrimaryButton = (props) => {
5
5
  const { captionColor = fontColors.light, backgroundColors = [gradientsColors['100'].secondaryColor, gradientsColors['100'].primaryColor], onPress, style, caption, } = props;
6
6
  const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
@@ -11,7 +11,7 @@ const PrimaryButton = (props) => {
11
11
  ...(disabled && { opacity: OpacityStyleEnum.DISABLED }),
12
12
  }}>
13
13
  <LinearGradient style={{ ...style }} colors={backgroundColors}>
14
- <Caption style={{ color: captionColor }}>{caption}</Caption>
14
+ <ButtonCaption style={{ color: captionColor }}>{caption}</ButtonCaption>
15
15
  </LinearGradient>
16
16
  </Button>);
17
17
  };
@@ -12,8 +12,7 @@ const SecondaryButton = (props) => {
12
12
  ...(disabled && { opacity: OpacityStyleEnum.DISABLED }),
13
13
  }}>
14
14
  <MaskedView maskElement={<MaskContainer>
15
- {caption &&
16
- <ButtonCaption>{caption}</ButtonCaption>}
15
+ <ButtonCaption>{caption}</ButtonCaption>
17
16
  </MaskContainer>}>
18
17
  <LinearGradient style={style} colors={borderColors}>
19
18
  <ButtonCaption style={{ color: captionColor }}>{caption}</ButtonCaption>
@@ -7,6 +7,4 @@ export const SSITouchableOpacityButtonFlexRowStyled = styled(TouchableOpacity) `
7
7
  export const SSIRoundedCenteredLinearGradientStyled = styled(SSIRoundedLinearGradient) `
8
8
  align-items: center;
9
9
  justify-content: center;
10
- padding: 9px;
11
- width: 180px;
12
10
  `;
@@ -11,6 +11,4 @@ export const SecondaryButtonMaskContainerStyled = styled.View `
11
11
  export const SecondaryButtonLinearGradientStyled = styled(SSILinearGradientStyled) `
12
12
  align-items: center;
13
13
  justify-content: center;
14
- padding: 9px;
15
- width: 180px;
16
14
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react-native",
3
3
  "private": false,
4
- "version": "0.2.1-unstable.4+0c3e560",
4
+ "version": "0.2.1-unstable.5+5c9a628",
5
5
  "description": "SSI UI components for React-Native",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@react-native-community/blur": "^4.4.0",
32
32
  "@react-native-masked-view/masked-view": "0.3.1",
33
- "@sphereon/ui-components.core": "0.2.1-unstable.4+0c3e560",
33
+ "@sphereon/ui-components.core": "0.2.1-unstable.5+5c9a628",
34
34
  "expo-linear-gradient": "~12.7.2",
35
35
  "react-native-fast-image": "^8.6.3",
36
36
  "react-native-size-matters": "^0.4.0",
@@ -48,5 +48,5 @@
48
48
  "react": ">= 18",
49
49
  "react-native": "~0.73.6"
50
50
  },
51
- "gitHead": "0c3e560dd1878d1aa7a6074a7d2838816569a296"
51
+ "gitHead": "5c9a628778acb42f1d54fd23fafc187ea7d08eca"
52
52
  }