@luscii-healthtech/web-ui 1.0.0 → 2.0.0
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/components/Icons/types/IconProps.type.d.ts +2 -1
- package/dist/web-ui.cjs.development.js +13 -3
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +13 -3
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Checkbox/Checkbox.tsx +1 -0
- package/src/components/CheckboxList/CheckboxGroup.tsx +8 -2
- package/src/components/CheckboxList/CheckboxListItem.tsx +4 -1
- package/src/components/Icons/types/IconProps.type.ts +1 -1
|
@@ -1002,6 +1002,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
1002
1002
|
}, [indeterminate]);
|
|
1003
1003
|
|
|
1004
1004
|
var handleChange = function handleChange(event) {
|
|
1005
|
+
event.stopPropagation();
|
|
1005
1006
|
setIndeterminate(false);
|
|
1006
1007
|
|
|
1007
1008
|
if (onChange) {
|
|
@@ -2827,7 +2828,9 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
2827
2828
|
setChecked(isChecked || false);
|
|
2828
2829
|
}, [isChecked]);
|
|
2829
2830
|
|
|
2830
|
-
var handleItemClick = function handleItemClick() {
|
|
2831
|
+
var handleItemClick = function handleItemClick(event) {
|
|
2832
|
+
event.stopPropagation();
|
|
2833
|
+
|
|
2831
2834
|
if (onChange) {
|
|
2832
2835
|
onChange({
|
|
2833
2836
|
id: id,
|
|
@@ -2839,6 +2842,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
2839
2842
|
};
|
|
2840
2843
|
|
|
2841
2844
|
var handleCheckboxClick = function handleCheckboxClick(event) {
|
|
2845
|
+
event.stopPropagation();
|
|
2842
2846
|
var targetId = event.target.id;
|
|
2843
2847
|
var newCheckedValue = event.target.checked;
|
|
2844
2848
|
|
|
@@ -2936,7 +2940,9 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
2936
2940
|
}
|
|
2937
2941
|
}, [items]);
|
|
2938
2942
|
|
|
2939
|
-
var handleGroupClick = function handleGroupClick() {
|
|
2943
|
+
var handleGroupClick = function handleGroupClick(event) {
|
|
2944
|
+
event.stopPropagation();
|
|
2945
|
+
|
|
2940
2946
|
if ((groupCheckboxState === CheckboxState.CHECKED || groupCheckboxState === CheckboxState.INDETERMINATE) && onChange) {
|
|
2941
2947
|
//if checked or indeterminate >> make all items unchecked
|
|
2942
2948
|
items.forEach(function (item) {
|
|
@@ -2956,7 +2962,11 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
|
|
|
2956
2962
|
}
|
|
2957
2963
|
};
|
|
2958
2964
|
|
|
2959
|
-
var handleGroupCollapse = function handleGroupCollapse() {
|
|
2965
|
+
var handleGroupCollapse = function handleGroupCollapse(event) {
|
|
2966
|
+
if (event) {
|
|
2967
|
+
event.stopPropagation();
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2960
2970
|
setCollapsed(!collapsed);
|
|
2961
2971
|
};
|
|
2962
2972
|
|