react-core-ts 1.8.6 → 1.8.7

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-core-ts",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
- import React from 'react'
1
+ import React from 'react';
2
2
 
3
- import { CheckboxProps } from './commontypes'
4
- import CustomIcons from './components/customIcons'
3
+ import { CheckboxProps } from './commontypes';
4
+ import CustomIcons from './components/customIcons';
5
5
 
6
6
  const Checkbox: React.FC<CheckboxProps> = ({
7
7
  name,
@@ -13,21 +13,21 @@ const Checkbox: React.FC<CheckboxProps> = ({
13
13
  checked,
14
14
  className: propsClassName,
15
15
  value,
16
- labalClass
16
+ labalClass,
17
17
  }) => {
18
18
  const getIconName = () => {
19
19
  if (checked) {
20
20
  if (disabled) {
21
21
  return intermediate
22
22
  ? 'input_intermediate_check_disabled'
23
- : 'input_checked_disabled'
23
+ : 'input_checked_disabled';
24
24
  } else {
25
- return intermediate ? 'input_intermediate_check' : 'input_checked'
25
+ return intermediate ? 'input_intermediate_check' : 'input_checked';
26
26
  }
27
27
  } else {
28
- return disabled ? 'input_unchecked_disabled' : 'input_unchecked'
28
+ return disabled ? 'input_unchecked_disabled' : 'input_unchecked';
29
29
  }
30
- }
30
+ };
31
31
 
32
32
  return (
33
33
  <div
@@ -63,11 +63,9 @@ const Checkbox: React.FC<CheckboxProps> = ({
63
63
  </div>
64
64
  </label>
65
65
  </div>
66
- <div className={labalClass} title={label}>
67
- {label}
68
- </div>
66
+ <div className={labalClass}>{label}</div>
69
67
  </div>
70
68
  );
71
- }
69
+ };
72
70
 
73
- export default Checkbox
71
+ export default Checkbox;