react_hsbc_teller 0.5.7 → 0.5.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -2828,7 +2828,11 @@ class Video extends Component {
2828
2828
  {
2829
2829
  this.state.cameraList.map((item, index) => {
2830
2830
  return <div>
2831
- <input type="radio" name="camere" value={item.actionid} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br />
2831
+ <label className="radio">
2832
+ <input type="radio" name="camere" value={item.actionid} style={{float: 'left'}} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><i></i>
2833
+ {item.actionname}
2834
+ </label>
2835
+ {/* <input type="radio" name="camere" value={item.actionid} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br /> */}
2832
2836
  </div>
2833
2837
  })
2834
2838
  }
@@ -2840,7 +2844,11 @@ class Video extends Component {
2840
2844
  {
2841
2845
  this.state.microphoneList.map((item, index) => {
2842
2846
  return <div class="cameraAnMicrophone">
2843
- <input type="radio" name="microphone" value={item.actionid} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br />
2847
+ <label className="radio">
2848
+ <input type="radio" name="microphone" value={item.actionid} style={{float: 'left'}} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><i></i>
2849
+ {item.actionname}
2850
+ </label>
2851
+ {/* <input type="radio" name="microphone" value={item.actionid} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br /> */}
2844
2852
  </div>
2845
2853
  })
2846
2854
  }
@@ -363,27 +363,51 @@
363
363
 
364
364
  }
365
365
 
366
- input[type="radio"]+label::before {
367
- content: " ";
366
+ .radio {
367
+ position: relative;
368
368
  display: inline-block;
369
- vertical-align: middle;
370
- width: 13px;
371
- height: 13px;
369
+ font-weight: 400;
370
+ padding-left: 25px;
371
+ text-align: left;
372
+ width: 100%;
373
+ display: flex;
374
+ }
375
+
376
+ .radio input {
377
+ position: absolute;
378
+ left: -9999px;
379
+ }
380
+
381
+ .radio i {
382
+ display: block;
383
+ position: absolute;
384
+ top: 3px;
385
+ left: 2px;
386
+ width: 15px;
387
+ height: 15px;
388
+ outline: 0;
389
+ border: 1px solid rgb(133, 133, 133);
390
+ background: transparent;
372
391
  border-radius: 50%;
373
- border: 1px solid #999999;
374
- margin-right: 0.2rem;
375
- box-sizing: border-box;
376
- margin-top: -0.1rem;
392
+ transition: border-color .3s;
393
+ -webkit-transition: border-color .3s;
377
394
  }
378
395
 
379
- input[type="radio"]:checked+label::before {
396
+ .radio input+i:after {
397
+ position: absolute;
398
+ content: '';
399
+ top: 1.5px;
400
+ left: 1.5px;
401
+ width: 10px;
402
+ height: 10px;
403
+ border-radius: 50%;
380
404
  background-color: #269792;
381
- background-clip: content-box;
382
405
  border: 1px solid #269792;
383
- padding: 0.1rem;
384
- box-sizing: border-box;
406
+ opacity: 0;
407
+ transition: opacity .1s;
408
+ -webkit-transition: opacity .1s;
385
409
  }
386
- input[type="radio"] {
387
- position: absolute;
388
- clip: rect(0, 0, 0, 0);
410
+
411
+ .radio input:checked+i:after {
412
+ opacity: 1;
389
413
  }
package/src/index.js CHANGED
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import ReactDOM from "react-dom";
3
3
  import "./index.less";
4
4
  import '@babel/polyfill';
5
- // import { HSBC } from "../lib/hsbc";
6
- import {HSBC} from "../packages";
5
+ import { HSBC } from "../lib/hsbc";
6
+ // import {HSBC} from "../packages";
7
7
 
8
8
  ReactDOM.render(
9
9
  <div className="hsbc"><HSBC></HSBC></div>,