@db-ux/react-core-components 2.0.4 → 2.0.6
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/button/button.js +1 -0
- package/dist/components/card/card.js +1 -0
- package/dist/components/checkbox/checkbox.js +3 -0
- package/dist/components/input/input.js +4 -0
- package/dist/components/link/link.js +1 -0
- package/dist/components/navigation-item/navigation-item.js +1 -0
- package/dist/components/notification/notification.js +1 -0
- package/dist/components/radio/radio.js +3 -0
- package/dist/components/select/select.js +5 -0
- package/dist/components/switch/switch.js +3 -0
- package/dist/components/tab-item/tab-item.js +1 -0
- package/dist/components/tabs/tabs.js +1 -0
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/textarea/textarea.js +4 -0
- package/package.json +3 -3
|
@@ -6,6 +6,7 @@ import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
|
|
|
6
6
|
function DBButtonFn(props, component) {
|
|
7
7
|
const _ref = component || useRef(component);
|
|
8
8
|
function handleClick(event) {
|
|
9
|
+
event.stopPropagation();
|
|
9
10
|
if (props.onClick) {
|
|
10
11
|
props.onClick(event);
|
|
11
12
|
}
|
|
@@ -49,17 +49,20 @@ function DBCheckboxFn(props, component) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
function handleChange(event) {
|
|
52
|
+
event.stopPropagation();
|
|
52
53
|
if (props.onChange) {
|
|
53
54
|
props.onChange(event);
|
|
54
55
|
}
|
|
55
56
|
handleValidation();
|
|
56
57
|
}
|
|
57
58
|
function handleBlur(event) {
|
|
59
|
+
event.stopPropagation();
|
|
58
60
|
if (props.onBlur) {
|
|
59
61
|
props.onBlur(event);
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
function handleFocus(event) {
|
|
65
|
+
event.stopPropagation();
|
|
63
66
|
if (props.onFocus) {
|
|
64
67
|
props.onFocus(event);
|
|
65
68
|
}
|
|
@@ -51,23 +51,27 @@ function DBInputFn(props, component) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function handleInput(event) {
|
|
54
|
+
event.stopPropagation();
|
|
54
55
|
if (props.onInput) {
|
|
55
56
|
props.onInput(event);
|
|
56
57
|
}
|
|
57
58
|
handleValidation();
|
|
58
59
|
}
|
|
59
60
|
function handleChange(event) {
|
|
61
|
+
event.stopPropagation();
|
|
60
62
|
if (props.onChange) {
|
|
61
63
|
props.onChange(event);
|
|
62
64
|
}
|
|
63
65
|
handleValidation();
|
|
64
66
|
}
|
|
65
67
|
function handleBlur(event) {
|
|
68
|
+
event.stopPropagation();
|
|
66
69
|
if (props.onBlur) {
|
|
67
70
|
props.onBlur(event);
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
function handleFocus(event) {
|
|
74
|
+
event.stopPropagation();
|
|
71
75
|
if (props.onFocus) {
|
|
72
76
|
props.onFocus(event);
|
|
73
77
|
}
|
|
@@ -8,16 +8,19 @@ function DBRadioFn(props, component) {
|
|
|
8
8
|
const [initialized, setInitialized] = useState(() => false);
|
|
9
9
|
const [_id, set_id] = useState(() => undefined);
|
|
10
10
|
function handleChange(event) {
|
|
11
|
+
event.stopPropagation();
|
|
11
12
|
if (props.onChange) {
|
|
12
13
|
props.onChange(event);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
function handleBlur(event) {
|
|
17
|
+
event.stopPropagation();
|
|
16
18
|
if (props.onBlur) {
|
|
17
19
|
props.onBlur(event);
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
function handleFocus(event) {
|
|
23
|
+
event.stopPropagation();
|
|
21
24
|
if (props.onFocus) {
|
|
22
25
|
props.onFocus(event);
|
|
23
26
|
}
|
|
@@ -52,28 +52,33 @@ function DBSelectFn(props, component) {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function handleClick(event) {
|
|
55
|
+
event.stopPropagation();
|
|
55
56
|
if (props.onClick) {
|
|
56
57
|
props.onClick(event);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
function handleInput(event) {
|
|
61
|
+
event.stopPropagation();
|
|
60
62
|
if (props.onInput) {
|
|
61
63
|
props.onInput(event);
|
|
62
64
|
}
|
|
63
65
|
handleValidation();
|
|
64
66
|
}
|
|
65
67
|
function handleChange(event) {
|
|
68
|
+
event.stopPropagation();
|
|
66
69
|
if (props.onChange) {
|
|
67
70
|
props.onChange(event);
|
|
68
71
|
}
|
|
69
72
|
handleValidation();
|
|
70
73
|
}
|
|
71
74
|
function handleBlur(event) {
|
|
75
|
+
event.stopPropagation();
|
|
72
76
|
if (props.onBlur) {
|
|
73
77
|
props.onBlur(event);
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
80
|
function handleFocus(event) {
|
|
81
|
+
event.stopPropagation();
|
|
77
82
|
if (props.onFocus) {
|
|
78
83
|
props.onFocus(event);
|
|
79
84
|
}
|
|
@@ -9,6 +9,7 @@ function DBSwitchFn(props, component) {
|
|
|
9
9
|
const [_checked, set_checked] = useState(() => { var _a; return (_a = props["defaultChecked"]) !== null && _a !== void 0 ? _a : false; });
|
|
10
10
|
function handleChange(event) {
|
|
11
11
|
var _a;
|
|
12
|
+
event.stopPropagation();
|
|
12
13
|
if (props.onChange) {
|
|
13
14
|
props.onChange(event);
|
|
14
15
|
}
|
|
@@ -16,11 +17,13 @@ function DBSwitchFn(props, component) {
|
|
|
16
17
|
set_checked((_a = event.target) === null || _a === void 0 ? void 0 : _a["checked"]);
|
|
17
18
|
}
|
|
18
19
|
function handleBlur(event) {
|
|
20
|
+
event.stopPropagation();
|
|
19
21
|
if (props.onBlur) {
|
|
20
22
|
props.onBlur(event);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
function handleFocus(event) {
|
|
26
|
+
event.stopPropagation();
|
|
24
27
|
if (props.onFocus) {
|
|
25
28
|
props.onFocus(event);
|
|
26
29
|
}
|
|
@@ -101,6 +101,7 @@ function DBTabsFn(props, component) {
|
|
|
101
101
|
}
|
|
102
102
|
function handleChange(event) {
|
|
103
103
|
var _a, _b;
|
|
104
|
+
event.stopPropagation();
|
|
104
105
|
const list = (_a = event.target) === null || _a === void 0 ? void 0 : _a.closest("ul");
|
|
105
106
|
const listItem =
|
|
106
107
|
// db-tab-item for angular and stencil wrapping elements
|
|
@@ -9,6 +9,7 @@ function DBTagFn(props, component) {
|
|
|
9
9
|
const _ref = component || useRef(component);
|
|
10
10
|
const [initialized, setInitialized] = useState(() => false);
|
|
11
11
|
function handleRemove(event) {
|
|
12
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
12
13
|
if (props.onRemove) {
|
|
13
14
|
props.onRemove(event);
|
|
14
15
|
}
|
|
@@ -50,23 +50,27 @@ function DBTextareaFn(props, component) {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
function handleInput(event) {
|
|
53
|
+
event.stopPropagation();
|
|
53
54
|
if (props.onInput) {
|
|
54
55
|
props.onInput(event);
|
|
55
56
|
}
|
|
56
57
|
handleValidation();
|
|
57
58
|
}
|
|
58
59
|
function handleChange(event) {
|
|
60
|
+
event.stopPropagation();
|
|
59
61
|
if (props.onChange) {
|
|
60
62
|
props.onChange(event);
|
|
61
63
|
}
|
|
62
64
|
handleValidation();
|
|
63
65
|
}
|
|
64
66
|
function handleBlur(event) {
|
|
67
|
+
event.stopPropagation();
|
|
65
68
|
if (props.onBlur) {
|
|
66
69
|
props.onBlur(event);
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
function handleFocus(event) {
|
|
73
|
+
event.stopPropagation();
|
|
70
74
|
if (props.onFocus) {
|
|
71
75
|
props.onFocus(event);
|
|
72
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/react-core-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "React components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@db-ux/core-components": "2.0.
|
|
42
|
-
"@db-ux/core-foundations": "2.0.
|
|
41
|
+
"@db-ux/core-components": "2.0.6",
|
|
42
|
+
"@db-ux/core-foundations": "2.0.6"
|
|
43
43
|
}
|
|
44
44
|
}
|