framework7-react 9.1.3 → 9.3.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/components/chip.js +1 -0
- package/components/link.d.ts +1 -0
- package/components/link.js +9 -0
- package/framework7-react.js +2 -2
- package/package.json +2 -2
package/components/chip.js
CHANGED
package/components/link.d.ts
CHANGED
package/components/link.js
CHANGED
|
@@ -18,6 +18,7 @@ const Link = props => {
|
|
|
18
18
|
className,
|
|
19
19
|
id,
|
|
20
20
|
style,
|
|
21
|
+
disabled,
|
|
21
22
|
children,
|
|
22
23
|
noLinkClass,
|
|
23
24
|
text,
|
|
@@ -39,6 +40,11 @@ const Link = props => {
|
|
|
39
40
|
const extraAttrs = getExtraAttrs(props);
|
|
40
41
|
const elRef = useRef(null);
|
|
41
42
|
const onClick = e => {
|
|
43
|
+
if (disabled) {
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
42
48
|
emit(props, 'click', e);
|
|
43
49
|
};
|
|
44
50
|
useTooltip(elRef, props);
|
|
@@ -64,6 +70,7 @@ const Link = props => {
|
|
|
64
70
|
iconOnlyComputed = false;
|
|
65
71
|
}
|
|
66
72
|
const classes = classNames(className, {
|
|
73
|
+
disabled,
|
|
67
74
|
link: !(noLinkClass || isTabbarIcons),
|
|
68
75
|
'icon-only': iconOnlyComputed,
|
|
69
76
|
'tab-link': tabLink || tabLink === '',
|
|
@@ -76,6 +83,8 @@ const Link = props => {
|
|
|
76
83
|
const attrs = {
|
|
77
84
|
href: hrefComputed,
|
|
78
85
|
target,
|
|
86
|
+
'aria-disabled': disabled || undefined,
|
|
87
|
+
tabIndex: disabled ? -1 : undefined,
|
|
79
88
|
'data-tab': isStringProp(tabLink) && tabLink || undefined,
|
|
80
89
|
...routerAttrs(props),
|
|
81
90
|
...actionsAttrs(props)
|
package/framework7-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 React 9.
|
|
2
|
+
* Framework7 React 9.3.0
|
|
3
3
|
* Build full featured iOS & Android apps using Framework7 & React
|
|
4
4
|
* https://framework7.io/react/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: October 30, 2026
|
|
11
11
|
*/
|
|
12
12
|
import Framework7React from './shared/plugin.js';
|
|
13
13
|
import { f7, f7ready, theme } from './shared/f7.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framework7-react",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0",
|
|
4
4
|
"description": "Build full featured iOS & Android apps using Framework7 & React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"type": "patreon",
|
|
51
51
|
"url": "https://www.patreon.com/framework7"
|
|
52
52
|
},
|
|
53
|
-
"releaseDate": "
|
|
53
|
+
"releaseDate": "October 30, 2026"
|
|
54
54
|
}
|