Skip to content

Commit

Permalink
Merge branch 'APPSRN-250-agregar-escala-y-corregir-componentes' of ht…
Browse files Browse the repository at this point in the history
…tps://github.com/janis-commerce/ui-native into APPSRN-250-agregar-escala-y-corregir-componentes
  • Loading branch information
Damian Morales committed Nov 28, 2023
2 parents 6598e5d + a9d69e2 commit 32d23d2
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 83 deletions.
4 changes: 2 additions & 2 deletions src/components/CheckBox/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('CheckBox component', () => {
const {style} = ViewComponent.props.children.props;

expect(style.backgroundColor).toBe('#2979FF');
expect(style.width).toBe(16);
expect(style.width).toBe(33.5);
});

it('when is false, borderColor is #939598', () => {
Expand All @@ -26,7 +26,7 @@ describe('CheckBox component', () => {
const {style} = ViewComponent.props.children.props;

expect(style.borderColor).toBe('#939598');
expect(style.width).toBe(16);
expect(style.width).toBe(33.5);
});
});

Expand Down
70 changes: 35 additions & 35 deletions src/components/LoadingFullScreen/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ exports[`LoadingFullScreen component render correct render only the loading 1`]
Array [
Object {
"alignItems": "center",
"height": 64,
"height": 133.5,
"justifyContent": "center",
"position": "relative",
"width": 64,
"width": 133.5,
},
undefined,
]
Expand All @@ -54,10 +54,10 @@ exports[`LoadingFullScreen component render correct render only the loading 1`]
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={64}
bbWidth={64}
bbHeight={133.5}
bbWidth={133.5}
focusable={false}
height={64}
height={133.5}
meetOrSlice={0}
minX={0}
minY={0}
Expand All @@ -69,14 +69,14 @@ exports[`LoadingFullScreen component render correct render only the loading 1`]
},
Object {
"flex": 0,
"height": 64,
"width": 64,
"height": 133,
"width": 133,
},
]
}
vbHeight={163}
vbWidth={163}
width={64}
width={133.5}
x="0px"
y="0px"
>
Expand Down Expand Up @@ -121,16 +121,16 @@ exports[`LoadingFullScreen component render correct render only the loading 1`]
</View>
<View>
<View
height={25}
width={36}
height={108.5}
width={156.5}
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={25}
bbWidth={36}
bbHeight={108.5}
bbWidth={156.5}
fill="none"
focusable={false}
height={25}
height={108.5}
meetOrSlice={0}
minX={0}
minY={0}
Expand All @@ -142,14 +142,14 @@ exports[`LoadingFullScreen component render correct render only the loading 1`]
},
Object {
"flex": 0,
"height": 25,
"width": 36,
"height": 108,
"width": 156,
},
]
}
vbHeight={47}
vbWidth={65}
width={36}
width={156.5}
xmlns="http://www.w3.org/2000/svg"
>
<RNSVGGroup
Expand Down Expand Up @@ -204,10 +204,10 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
Array [
Object {
"alignItems": "center",
"height": 64,
"height": 133.5,
"justifyContent": "center",
"position": "relative",
"width": 64,
"width": 133.5,
},
undefined,
]
Expand All @@ -232,10 +232,10 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={64}
bbWidth={64}
bbHeight={133.5}
bbWidth={133.5}
focusable={false}
height={64}
height={133.5}
meetOrSlice={0}
minX={0}
minY={0}
Expand All @@ -247,14 +247,14 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
},
Object {
"flex": 0,
"height": 64,
"width": 64,
"height": 133,
"width": 133,
},
]
}
vbHeight={163}
vbWidth={163}
width={64}
width={133.5}
x="0px"
y="0px"
>
Expand Down Expand Up @@ -299,16 +299,16 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
</View>
<View>
<View
height={25}
width={36}
height={108.5}
width={156.5}
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={25}
bbWidth={36}
bbHeight={108.5}
bbWidth={156.5}
fill="none"
focusable={false}
height={25}
height={108.5}
meetOrSlice={0}
minX={0}
minY={0}
Expand All @@ -320,14 +320,14 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
},
Object {
"flex": 0,
"height": 25,
"width": 36,
"height": 108,
"width": 156,
},
]
}
vbHeight={47}
vbWidth={65}
width={36}
width={156.5}
xmlns="http://www.w3.org/2000/svg"
>
<RNSVGGroup
Expand Down Expand Up @@ -357,10 +357,10 @@ exports[`LoadingFullScreen component render correct renders well the loading nex
Object {
"color": "#585858",
"fontFamily": "Roboto",
"fontSize": 16,
"fontSize": 33.5,
"fontWeight": "500",
"lineHeight": 24,
"marginTop": 25,
"lineHeight": 50,
"marginTop": 52,
"textAlign": "center",
"width": "50%",
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ProgressBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const ProgressBar: FC<ProgressBarProps> = ({
backgroundColor: colorValue,
},
});

const animationProgress = {
width: widthAnimation.interpolate({
inputRange: [0, 100],
Expand Down
44 changes: 22 additions & 22 deletions src/components/StatusChip/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ exports[`StatusChip component render correct a valid component is passed 1`] = `
"alignItems": "center",
"backgroundColor": "#fff",
"borderColor": "#C4C6CC",
"borderRadius": 12,
"borderWidth": 1,
"borderRadius": 25,
"borderWidth": 2,
"flexDirection": "row",
"height": 24,
"paddingLeft": 12,
"paddingRight": 12,
"height": 50,
"paddingLeft": 25,
"paddingRight": 25,
}
}
>
Expand All @@ -21,7 +21,7 @@ exports[`StatusChip component render correct a valid component is passed 1`] = `
Array [
Object {
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
},
undefined,
]
Expand All @@ -40,12 +40,12 @@ exports[`StatusChip component render correct if a background is passed 1`] = `
"alignItems": "center",
"backgroundColor": "#2979FF",
"borderColor": "#2979FF",
"borderRadius": 12,
"borderWidth": 1,
"borderRadius": 25,
"borderWidth": 2,
"flexDirection": "row",
"height": 24,
"paddingLeft": 12,
"paddingRight": 12,
"height": 50,
"paddingLeft": 25,
"paddingRight": 25,
}
}
>
Expand All @@ -54,14 +54,14 @@ exports[`StatusChip component render correct if a background is passed 1`] = `
Array [
Object {
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
},
Object {
"color": "#fff",
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
"fontWeight": "900",
"lineHeight": 18,
"lineHeight": 37.5,
"textAlign": "center",
},
]
Expand All @@ -79,12 +79,12 @@ exports[`StatusChip component render correct text is passed 1`] = `
"alignItems": "center",
"backgroundColor": "#fff",
"borderColor": "#C4C6CC",
"borderRadius": 12,
"borderWidth": 1,
"borderRadius": 25,
"borderWidth": 2,
"flexDirection": "row",
"height": 24,
"paddingLeft": 12,
"paddingRight": 12,
"height": 50,
"paddingLeft": 25,
"paddingRight": 25,
}
}
>
Expand All @@ -93,14 +93,14 @@ exports[`StatusChip component render correct text is passed 1`] = `
Array [
Object {
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
},
Object {
"color": "#2979FF",
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
"fontWeight": "900",
"lineHeight": 18,
"lineHeight": 37.5,
"textAlign": "center",
},
]
Expand Down
42 changes: 20 additions & 22 deletions src/components/Svg/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,28 @@

exports[`Svg component render correct pased a valid name 1`] = `
<View>
<View>
<View
height={0}
width={0}
>
<RNSVGSvgView
align="xMidYMid"
bbHeight="100%"
bbWidth="100%"
bbHeight={0}
bbWidth={0}
focusable={false}
height={0}
meetOrSlice={0}
minX={0}
minY={0}
style={
Array [
Object {
"backgroundColor": "transparent",
"borderWidth": 0,
},
Object {
"flex": 0,
"height": "100%",
"width": "100%",
},
]
Object {
"backgroundColor": "transparent",
"borderWidth": 0,
}
}
vbHeight={36}
vbWidth={152}
width={0}
xmlns="http://www.w3.org/2000/svg"
>
<RNSVGGroup>
Expand Down Expand Up @@ -67,15 +65,15 @@ exports[`Svg component render correct pased a valid name 1`] = `
exports[`Svg component render correct pased size 1`] = `
<View>
<View
height={120}
width={120}
height={250}
width={250}
>
<RNSVGSvgView
align="xMidYMid"
bbHeight={120}
bbWidth={120}
bbHeight={250}
bbWidth={250}
focusable={false}
height={120}
height={250}
meetOrSlice={0}
minX={0}
minY={0}
Expand All @@ -87,14 +85,14 @@ exports[`Svg component render correct pased size 1`] = `
},
Object {
"flex": 0,
"height": 120,
"width": 120,
"height": 250,
"width": 250,
},
]
}
vbHeight={36}
vbWidth={152}
width={120}
width={250}
xmlns="http://www.w3.org/2000/svg"
>
<RNSVGGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Text/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`Text component render correct match snapshot 1`] = `
Array [
Object {
"fontFamily": "Roboto",
"fontSize": 13,
"fontSize": 27,
},
undefined,
]
Expand Down
Loading

0 comments on commit 32d23d2

Please sign in to comment.