authscape 1.0.34 → 1.0.38

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.
@@ -62,67 +62,65 @@ export default function PaymentModal({title, description, amount, priceId, setIs
62
62
  };
63
63
  }
64
64
 
65
- const PaymentMethod = ({id, last4, clicked}) => {
66
- return (
67
- <>
68
- <Box fullWidth={true} sx={{height: 160, width:"100%", marginTop:2, backgroundColor:"#2196F3", position:"relative", border: "1px solid #2196F3", borderRadius: 1, display:"flex", flexDirection:"column", justifyContent:"center", textAlign:"center", cursor:"pointer"}}
69
- onClick={() => {
70
- clicked(id);
71
- }}>
72
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:14, position:"absolute", left:15, top:10, color:"white"}}>
73
- Visa
74
- </Typography>
75
- {/* <Box sx={{position:"absolute", top:10, right:10, color:"#e9e9e9"}}>
76
- <DeleteRoundedIcon onClick={deleteClicked} />
77
- </Box> */}
78
- <Typography gutterBottom variant="body" component="div" sx={{verticalAlign:"middle", fontSize:18, color:"white"}}>
79
- * * * * &nbsp; * * * * &nbsp; * * * * &nbsp; {last4}
80
- </Typography>
81
-
82
- <Grid container spacing={1} sx={{position:"absolute", bottom:8, marginLeft:0, width: "100%"}}>
83
- <Grid item xs={6} sx={{paddingLeft:2}}>
84
- <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:1, paddingLeft:1, color:"#e9e9e9"}}>
85
- CARD HOLDER
86
- </Typography>
87
-
88
- <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:"-9px", paddingLeft:1, color:"white" }}>
89
- Brandon Zuech
90
- </Typography>
91
- </Grid>
92
- <Grid item xs={6} sx={{textAlign:"right", paddingRight:2}}>
93
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:1, color:"#e9e9e9"}}>
94
- EXPIRES
95
- </Typography>
96
-
97
- <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:"-9px", color:"white"}}>
98
- 08/21
99
- </Typography>
100
- </Grid>
101
- </Grid>
102
- </Box>
103
- </>
104
- );
105
- };
106
-
107
- function TabPanel(props) {
108
- const { children, value, index, ...other } = props;
65
+ // const PaymentMethod = ({id, last4, clicked}) => {
66
+ // return (
67
+ // <Box fullWidth={true} sx={{height: 160, width:"100%", marginTop:2, backgroundColor:"#2196F3", position:"relative", border: "1px solid #2196F3", borderRadius: 1, display:"flex", flexDirection:"column", justifyContent:"center", textAlign:"center", cursor:"pointer"}}
68
+ // onClick={() => {
69
+ // clicked(id);
70
+ // }}>
71
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:14, position:"absolute", left:15, top:10, color:"white"}}>
72
+ // Visa
73
+ // </Typography>
74
+ // {/* <Box sx={{position:"absolute", top:10, right:10, color:"#e9e9e9"}}>
75
+ // <DeleteRoundedIcon onClick={deleteClicked} />
76
+ // </Box> */}
77
+ // <Typography gutterBottom variant="body" component="div" sx={{verticalAlign:"middle", fontSize:18, color:"white"}}>
78
+ // * * * * &nbsp; * * * * &nbsp; * * * * &nbsp; {last4}
79
+ // </Typography>
80
+
81
+ // <Grid container spacing={1} sx={{position:"absolute", bottom:8, marginLeft:0, width: "100%"}}>
82
+ // <Grid item xs={6} sx={{paddingLeft:2}}>
83
+ // <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:1, paddingLeft:1, color:"#e9e9e9"}}>
84
+ // CARD HOLDER
85
+ // </Typography>
86
+
87
+ // <Typography gutterBottom variant="body" component="div" sx={{textAlign:"left", fontSize:12, marginTop:"-9px", paddingLeft:1, color:"white" }}>
88
+ // Brandon Zuech
89
+ // </Typography>
90
+ // </Grid>
91
+ // <Grid item xs={6} sx={{textAlign:"right", paddingRight:2}}>
92
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:1, color:"#e9e9e9"}}>
93
+ // EXPIRES
94
+ // </Typography>
95
+
96
+ // <Typography gutterBottom variant="body" component="div" sx={{fontSize:12, marginLeft:2, marginTop:"-9px", color:"white"}}>
97
+ // 08/21
98
+ // </Typography>
99
+ // </Grid>
100
+ // </Grid>
101
+ // </Box>
102
+ // );
103
+ // };
104
+
105
+ // function TabPanel(props) {
106
+ // const { children, value, index, ...other } = props;
109
107
 
110
- return (
111
- <div
112
- role="tabpanel"
113
- hidden={value !== index}
114
- id={`simple-tabpanel-${index}`}
115
- aria-labelledby={`simple-tab-${index}`}
116
- {...other}
117
- >
118
- {value === index && (
119
- <Box sx={{ p: 3 }}>
120
- <Typography>{children}</Typography>
121
- </Box>
122
- )}
123
- </div>
124
- );
125
- }
108
+ // return (
109
+ // <div
110
+ // role="tabpanel"
111
+ // hidden={value !== index}
112
+ // id={`simple-tabpanel-${index}`}
113
+ // aria-labelledby={`simple-tab-${index}`}
114
+ // {...other}
115
+ // >
116
+ // {value === index && (
117
+ // <Box sx={{ p: 3 }}>
118
+ // <Typography>{children}</Typography>
119
+ // </Box>
120
+ // )}
121
+ // </div>
122
+ // );
123
+ // }
126
124
 
127
125
  return (
128
126
  <Dialog
@@ -150,7 +148,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
150
148
  <DialogContent>
151
149
  {description}
152
150
 
153
- <Box sx={{ width: '100%' }}>
151
+ {/* <Box sx={{ width: '100%' }}>
154
152
  <Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
155
153
  <Tabs value={value} onChange={handleChange} aria-label="basic tabs example">
156
154
  <Tab label="Existing Payment Method" {...a11yProps(0)} />
@@ -162,47 +160,16 @@ export default function PaymentModal({title, description, amount, priceId, setIs
162
160
  <Select
163
161
  sx={{marginTop:4}}
164
162
  fullWidth={true}
165
- //placeholder={"Select a payment type"}
166
- //labelId="demo-simple-select-label"
167
163
  id="demo-simple-select"
168
164
  value={paymentMethod}
169
- //label="Payment Type"
170
165
  onChange={(val) => {
171
166
  setPaymentMethod(val.target.value);
172
167
  }}>
173
168
  {paymentMethods != null && paymentMethods.map((paymentMethod) => {
174
169
  return (
175
170
  <MenuItem value={paymentMethod.id} fullWidth={true} sx={{width:"100%"}}>
176
-
177
-
178
-
179
171
  <PaymentMethod id={paymentMethod.id} last4={paymentMethod.last4} clicked={() => {
180
-
181
172
  }} />
182
-
183
-
184
- {/* <Box elevation={0} sx={{backgroundColor:"white"}}>
185
- <Stack direction="row" spacing={2}>
186
- <Box sx={{paddingTop:2}}>
187
- <img
188
- style={{marginTop:"9px"}}
189
- loading="lazy"
190
- width="50"
191
- src={'/images/cardType/' + paymentMethod.brand + ".png"}
192
- srcSet={'/images/cardType/' + paymentMethod.brand + ".png"}
193
- />
194
- </Box>
195
- <Box>
196
- <Box>
197
- {paymentMethod.funding.toUpperCase()}
198
- </Box>
199
- <Box>
200
- **** **** <small>{paymentMethod.last4}</small> &nbsp; <small>Expire: ({paymentMethod.expMonth}/{paymentMethod.expYear})</small>
201
- </Box>
202
- </Box>
203
- </Stack>
204
- </Box> */}
205
-
206
173
  </MenuItem>)
207
174
  })}
208
175
  </Select>
@@ -240,7 +207,7 @@ export default function PaymentModal({title, description, amount, priceId, setIs
240
207
  </Box>
241
208
  </div>
242
209
  </TabPanel>
243
- </Box>
210
+ </Box> */}
244
211
 
245
212
  </DialogContent>
246
213
  <DialogActions>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.34",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.js",