@dgui/react-web-shared 0.3.1 → 1.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.
|
@@ -36,7 +36,7 @@ const WebBaseCarousel = ({ children, onSelectTab, swipe = true, tabIndex = 0 })
|
|
|
36
36
|
}, [
|
|
37
37
|
tabIndex
|
|
38
38
|
]);
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(react_2.Swiper,
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)(react_2.Swiper, { allowTouchMove: swipe, initialSlide: tabIndex, modules: modules, onSlideChange: handleSlideChange, onSwiper: handleSwiper, slidesPerView: SLIDES_PER_VIEW, spaceBetween: SPACE_BETWEEN, style: styles.slideContainer, children: children }));
|
|
40
40
|
};
|
|
41
41
|
WebBaseCarousel.displayName = 'WebBaseCarousel';
|
|
42
42
|
exports.default = WebBaseCarousel;
|
|
@@ -2,5 +2,5 @@ import { type FunctionComponent, type PropsWithChildren } from 'react';
|
|
|
2
2
|
declare const WebBaseHorse: FunctionComponent<WebBaseHorseProps>;
|
|
3
3
|
export default WebBaseHorse;
|
|
4
4
|
export type WebBaseHorseProps = PropsWithChildren<{
|
|
5
|
-
swipe?: boolean;
|
|
5
|
+
readonly swipe?: boolean;
|
|
6
6
|
}>;
|
|
@@ -10,9 +10,9 @@ const styles = {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
const WebBaseHorse = ({ children, swipe = true }) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)(react_1.SwiperSlide,
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(react_1.SwiperSlide, { className: swipe ?
|
|
14
14
|
undefined :
|
|
15
|
-
'swiper-no-swiping', style: styles.horse
|
|
15
|
+
'swiper-no-swiping', style: styles.horse, children: children }));
|
|
16
16
|
};
|
|
17
17
|
WebBaseHorse.displayName = 'WebBaseHorse';
|
|
18
18
|
exports.default = WebBaseHorse;
|
|
@@ -41,7 +41,7 @@ const WebBaseGatewayProvider = ({ children }) => {
|
|
|
41
41
|
refs,
|
|
42
42
|
removeRef
|
|
43
43
|
]);
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(WebBaseGatewayContext_1.default.Provider,
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(WebBaseGatewayContext_1.default.Provider, { value: value, children: children }));
|
|
45
45
|
};
|
|
46
46
|
WebBaseGatewayProvider.displayName = 'WebBaseGatewayProvider';
|
|
47
47
|
exports.default = WebBaseGatewayProvider;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-web-shared",
|
|
3
3
|
"title": "Digested React GUI Shared Web Components",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Shared Web Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -43,30 +43,30 @@
|
|
|
43
43
|
"set:version": "npm version --allow-same-version --no-commit-hooks --no-git-tag-version --no-workspaces-update $(npm --silent view $(node -p \"require('./package.json').name\") version)"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@digest/eslint-config-jest": "^4.2.
|
|
47
|
-
"@digest/eslint-config-react": "^4.2.
|
|
48
|
-
"@digest/eslint-config-typescript": "^4.2.
|
|
49
|
-
"@digest/jest-junit": "^4.2.
|
|
50
|
-
"@digest/jest-react": "^4.2.
|
|
51
|
-
"@digest/jest-typescript": "^4.2.
|
|
52
|
-
"@digest/typescript": "^4.2.
|
|
53
|
-
"@types/jest": "^29.5.
|
|
46
|
+
"@digest/eslint-config-jest": "^4.2.5",
|
|
47
|
+
"@digest/eslint-config-react": "^4.2.5",
|
|
48
|
+
"@digest/eslint-config-typescript": "^4.2.5",
|
|
49
|
+
"@digest/jest-junit": "^4.2.5",
|
|
50
|
+
"@digest/jest-react": "^4.2.5",
|
|
51
|
+
"@digest/jest-typescript": "^4.2.5",
|
|
52
|
+
"@digest/typescript": "^4.2.5",
|
|
53
|
+
"@types/jest": "^29.5.3",
|
|
54
54
|
"@types/lodash.debounce": "^4.0.7",
|
|
55
|
-
"@types/react": "^18.
|
|
56
|
-
"@types/react-dom": "^18.
|
|
55
|
+
"@types/react": "^18.2.17",
|
|
56
|
+
"@types/react-dom": "^18.2.7",
|
|
57
57
|
"@types/react-test-renderer": "^18.0.0",
|
|
58
58
|
"cross-env": "^7.0.3",
|
|
59
|
-
"jest-environment-jsdom": "^29.
|
|
59
|
+
"jest-environment-jsdom": "^29.6.2",
|
|
60
60
|
"jest-environment-jsdom-global": "^4.0.0",
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-test-renderer": "^18.2.0",
|
|
65
|
-
"rimraf": "^5.0.
|
|
66
|
-
"swiper": "^9.
|
|
65
|
+
"rimraf": "^5.0.1",
|
|
66
|
+
"swiper": "^9.4.1"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@dgui/react-shared": "^0.0
|
|
69
|
+
"@dgui/react-shared": "^1.0.0",
|
|
70
70
|
"lodash.debounce": "^4.0.8"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"react-dom",
|
|
83
83
|
"typescript"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "ac0d0964d66c9c11f50b625d5ca5aec4e20bb72a"
|
|
86
86
|
}
|