@scania/tegel-react 1.43.0 → 1.44.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.
|
@@ -9,7 +9,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
import React from 'react';
|
|
14
13
|
import ReactDOM from 'react-dom';
|
|
15
14
|
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
|
@@ -91,6 +90,6 @@ export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
92
|
return React.forwardRef((props, ref) => {
|
|
94
|
-
return
|
|
93
|
+
return React.createElement(Overlay, Object.assign({}, props, { forwardedRef: ref }));
|
|
95
94
|
});
|
|
96
95
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import React from 'react';
|
|
3
2
|
export const setRef = (ref, value) => {
|
|
4
3
|
if (typeof ref === 'function') {
|
|
@@ -18,7 +17,7 @@ export const mergeRefs = (...refs) => {
|
|
|
18
17
|
};
|
|
19
18
|
export const createForwardRef = (ReactComponent, displayName) => {
|
|
20
19
|
const forwardRef = (props, ref) => {
|
|
21
|
-
return
|
|
20
|
+
return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));
|
|
22
21
|
};
|
|
23
22
|
forwardRef.displayName = displayName;
|
|
24
23
|
return React.forwardRef(forwardRef);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "React wrappers for Tegel package",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/scania-digital-design-system/tegel#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@scania/tegel": "^1.
|
|
30
|
+
"@scania/tegel": "^1.44.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.10.7",
|