-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Add ability to make payments (#84)
* (feat) Add ability to make payments * (feat) Complete the initial workflow for bill payment
- Loading branch information
1 parent
366698c
commit 6d41aff
Showing
18 changed files
with
518 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
@use '@carbon/colors'; | ||
@use '@carbon/layout'; | ||
@use '@carbon/type'; | ||
@import '~@openmrs/esm-styleguide/src/vars'; | ||
|
||
.invoiceContainer { | ||
margin: 0 layout.$spacing-05; | ||
margin: 0 layout.$spacing-05 layout.$spacing-05 layout.$spacing-05; | ||
} | ||
|
||
.tableDescription { | ||
display: flex; | ||
align-items: flex-start; | ||
margin-top: layout.$spacing-02; | ||
column-gap: layout.$spacing-01; | ||
|
||
::after { | ||
content: ''; | ||
display: block; | ||
width: 2rem; | ||
padding-top: 0.188rem; | ||
border-bottom: 0.375rem solid var(--brand-03); | ||
} | ||
|
||
& > span { | ||
@include type.type-style('body-01'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...es/esm-billing-app/src/invoice/payments/invoice-breakdown/invoice-breakdown.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import styles from './invoice-breakdown.scss'; | ||
|
||
type InvoiceBreakDownProps = { | ||
label: string; | ||
value: string; | ||
}; | ||
|
||
export const InvoiceBreakDown: React.FC<InvoiceBreakDownProps> = ({ label, value }) => { | ||
return ( | ||
<div className={styles.invoiceBreakdown}> | ||
<span className={styles.label}>{label} : </span> | ||
<span className={styles.value}>{value}</span> | ||
</div> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
packages/esm-billing-app/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@use '@carbon/colors'; | ||
@use '@carbon/layout'; | ||
@use '@carbon/type'; | ||
|
||
.invoiceBreakdown { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
align-items: flex-end; | ||
} | ||
|
||
.label { | ||
@include type.type-style('heading-02'); | ||
color: colors.$gray-70; | ||
margin: layout.$spacing-01; | ||
text-align: end; | ||
} | ||
|
||
.value { | ||
@include type.type-style('heading-02'); | ||
margin-top: layout.$spacing-04; | ||
text-align: start; | ||
margin-left: layout.$spacing-02; | ||
color: colors.$black; | ||
} |
Oops, something went wrong.