react-core-ts 1.8.5 → 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/dist/ReactCheckbox.js +1 -1
- package/dist/ReactCheckbox.js.map +1 -1
- package/dist/styles/components/autocomplete.css +3 -3
- package/dist/styles/styles/components/autocomplete.css +688 -0
- package/dist/styles/styles/components/selectedautocomplete.css +130 -0
- package/dist/styles/styles/components/tooltip.css +497 -0
- package/dist/styles/styles/components/treedropdown.css +97 -0
- package/dist/styles/styles/global.css +8 -0
- package/package.json +1 -1
- package/src/ReactCheckbox.tsx +11 -13
- package/src/styles/components/autocomplete.css +3 -3
package/package.json
CHANGED
package/src/ReactCheckbox.tsx
CHANGED
|
@@ -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}
|
|
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;
|
|
@@ -655,13 +655,13 @@ span.dropdown-search-icon {
|
|
|
655
655
|
cursor: pointer;
|
|
656
656
|
outline: none;
|
|
657
657
|
box-shadow: none;
|
|
658
|
+
word-break: break-all;
|
|
659
|
+
word-wrap: break-word;
|
|
660
|
+
width: auto;
|
|
658
661
|
}
|
|
659
662
|
|
|
660
663
|
.qbs-autocomplete-suggections-items.is-selected {
|
|
661
664
|
background-color: #f1f5f9;
|
|
662
|
-
word-break: break-all;
|
|
663
|
-
word-wrap: break-word;
|
|
664
|
-
width: auto;
|
|
665
665
|
/* width: max-content; */
|
|
666
666
|
}
|
|
667
667
|
|