@niibase/uniwind 1.1.3 → 1.1.4
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/metro/index.cjs +0 -3
- package/dist/metro/index.mjs +0 -3
- package/package.json +1 -3
- package/src/metro/resolvers.ts +0 -4
- package/types.d.ts +0 -6
- package/dist/common/components/native/react-native-svg.js +0 -16
- package/dist/common/components/react-native-svg/index.js +0 -14
- package/dist/common/components/react-native-svg/native/Svg.js +0 -18
- package/dist/common/components/react-native-svg/web/Svg.js +0 -17
- package/dist/module/components/native/react-native-svg.d.ts +0 -1
- package/dist/module/components/native/react-native-svg.js +0 -1
- package/dist/module/components/react-native-svg/index.d.ts +0 -1
- package/dist/module/components/react-native-svg/index.js +0 -10
- package/dist/module/components/react-native-svg/native/Svg.d.ts +0 -3
- package/dist/module/components/react-native-svg/native/Svg.js +0 -15
- package/dist/module/components/react-native-svg/web/Svg.d.ts +0 -3
- package/dist/module/components/react-native-svg/web/Svg.js +0 -14
- package/src/components/native/react-native-svg.tsx +0 -1
- package/src/components/react-native-svg/index.ts +0 -12
- package/src/components/react-native-svg/native/Svg.tsx +0 -16
- package/src/components/react-native-svg/web/Svg.tsx +0 -14
package/dist/metro/index.cjs
CHANGED
|
@@ -91,9 +91,6 @@ const nativeResolver = (extraComponents) => ({
|
|
|
91
91
|
if (moduleName === "react-native-gesture-handler") {
|
|
92
92
|
return resolver(context, `${common.name}/components/react-native-gesture-handler`, platform);
|
|
93
93
|
}
|
|
94
|
-
if (moduleName === "react-native-svg") {
|
|
95
|
-
return resolver(context, `${common.name}/components/react-native-svg`, platform);
|
|
96
|
-
}
|
|
97
94
|
if (resolution.filePath.includes(`${node_path.sep}react-native${node_path.sep}Libraries${node_path.sep}`)) {
|
|
98
95
|
const filename = node_path.basename(resolution.filePath.split(node_path.sep).at(-1) ?? "");
|
|
99
96
|
const module = filename.split(".").at(0);
|
package/dist/metro/index.mjs
CHANGED
|
@@ -83,9 +83,6 @@ const nativeResolver = (extraComponents) => ({
|
|
|
83
83
|
if (moduleName === "react-native-gesture-handler") {
|
|
84
84
|
return resolver(context, `${name}/components/react-native-gesture-handler`, platform);
|
|
85
85
|
}
|
|
86
|
-
if (moduleName === "react-native-svg") {
|
|
87
|
-
return resolver(context, `${name}/components/react-native-svg`, platform);
|
|
88
|
-
}
|
|
89
86
|
if (resolution.filePath.includes(`${sep}react-native${sep}Libraries${sep}`)) {
|
|
90
87
|
const filename = basename(resolution.filePath.split(sep).at(-1) ?? "");
|
|
91
88
|
const module = filename.split(".").at(0);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@niibase/uniwind",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"description": "The fastest Tailwind bindings for React Native",
|
|
6
6
|
"homepage": "https://uniwind.dev",
|
|
7
7
|
"author": "Unistack",
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"react": ">=19.0.0",
|
|
88
88
|
"react-native": ">=0.81.0",
|
|
89
89
|
"react-native-gesture-handler": ">=2.28.0",
|
|
90
|
-
"react-native-svg": ">=15.15.1",
|
|
91
90
|
"tailwindcss": ">=4"
|
|
92
91
|
},
|
|
93
92
|
"devDependencies": {
|
|
@@ -102,7 +101,6 @@
|
|
|
102
101
|
"jest": "30.2.0",
|
|
103
102
|
"react-native-gesture-handler": "2.28.0",
|
|
104
103
|
"react-native-safe-area-context": "5.6.0",
|
|
105
|
-
"react-native-svg": "15.15.1",
|
|
106
104
|
"react-test-renderer": "19.1.0",
|
|
107
105
|
"@react-native/babel-preset": "0.83.0",
|
|
108
106
|
"@testing-library/jest-native": "5.4.3",
|
package/src/metro/resolvers.ts
CHANGED
|
@@ -64,10 +64,6 @@ export const nativeResolver = (extraComponents: Record<string, string>) =>
|
|
|
64
64
|
return resolver(context, `${name}/components/react-native-gesture-handler`, platform)
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if (moduleName === 'react-native-svg') {
|
|
68
|
-
return resolver(context, `${name}/components/react-native-svg`, platform)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
67
|
if (
|
|
72
68
|
resolution.filePath.includes(`${sep}react-native${sep}Libraries${sep}`)
|
|
73
69
|
) {
|
package/types.d.ts
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _reactNativeSvg = require("../react-native-svg");
|
|
7
|
-
Object.keys(_reactNativeSvg).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _reactNativeSvg[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _reactNativeSvg[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var Svg = _interopRequireWildcard(require("react-native-svg"));
|
|
4
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
5
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
6
|
-
module.exports = {
|
|
7
|
-
...Svg,
|
|
8
|
-
get Svg() {
|
|
9
|
-
return require("./native/Svg").Svg;
|
|
10
|
-
},
|
|
11
|
-
get default() {
|
|
12
|
-
return require("./native/Svg").default;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
module.exports = exports.Svg = void 0;
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
-
var _useStyle = require("../../native/useStyle");
|
|
10
|
-
var _utils = require("../../utils");
|
|
11
|
-
const Svg = exports.Svg = (0, _utils.copyComponentProperties)(_reactNativeSvg.Svg, props => {
|
|
12
|
-
const style = (0, _useStyle.useStyle)(props.className);
|
|
13
|
-
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNativeSvg.Svg, {
|
|
14
|
-
...props,
|
|
15
|
-
style: [style, props.style]
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
module.exports = Svg;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
module.exports = exports.Svg = void 0;
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _reactNativeSvg = require("react-native-svg");
|
|
9
|
-
var _utils = require("../../utils");
|
|
10
|
-
var _rnw = require("../../web/rnw");
|
|
11
|
-
const Svg = exports.Svg = (0, _utils.copyComponentProperties)(_reactNativeSvg.Svg, props => {
|
|
12
|
-
return /* @__PURE__ */(0, _jsxRuntime.jsx)(_reactNativeSvg.Svg, {
|
|
13
|
-
...props,
|
|
14
|
-
style: [(0, _rnw.toRNWClassName)(props.className), props.style]
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
module.exports = Svg;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../react-native-svg';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../react-native-svg/index.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Svg as RNSvg } from "react-native-svg";
|
|
3
|
-
import { useStyle } from "../../native/useStyle.js";
|
|
4
|
-
import { copyComponentProperties } from "../../utils.js";
|
|
5
|
-
export const Svg = copyComponentProperties(RNSvg, (props) => {
|
|
6
|
-
const style = useStyle(props.className);
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
RNSvg,
|
|
9
|
-
{
|
|
10
|
-
...props,
|
|
11
|
-
style: [style, props.style]
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
});
|
|
15
|
-
export default Svg;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Svg as RNSvg } from "react-native-svg";
|
|
3
|
-
import { copyComponentProperties } from "../../utils.js";
|
|
4
|
-
import { toRNWClassName } from "../../web/rnw.js";
|
|
5
|
-
export const Svg = copyComponentProperties(RNSvg, (props) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
RNSvg,
|
|
8
|
-
{
|
|
9
|
-
...props,
|
|
10
|
-
style: [toRNWClassName(props.className), props.style]
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
});
|
|
14
|
-
export default Svg;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../react-native-svg'
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Svg as RNSvg, SvgProps } from 'react-native-svg'
|
|
2
|
-
import { useStyle } from '../../native/useStyle'
|
|
3
|
-
import { copyComponentProperties } from '../../utils'
|
|
4
|
-
|
|
5
|
-
export const Svg = copyComponentProperties(RNSvg, (props: SvgProps) => {
|
|
6
|
-
const style = useStyle(props.className)
|
|
7
|
-
|
|
8
|
-
return (
|
|
9
|
-
<RNSvg
|
|
10
|
-
{...props}
|
|
11
|
-
style={[style, props.style]}
|
|
12
|
-
/>
|
|
13
|
-
)
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
export default Svg
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Svg as RNSvg, SvgProps } from 'react-native-svg'
|
|
2
|
-
import { copyComponentProperties } from '../../utils'
|
|
3
|
-
import { toRNWClassName } from '../../web/rnw'
|
|
4
|
-
|
|
5
|
-
export const Svg = copyComponentProperties(RNSvg, (props: SvgProps) => {
|
|
6
|
-
return (
|
|
7
|
-
<RNSvg
|
|
8
|
-
{...props}
|
|
9
|
-
style={[toRNWClassName(props.className), props.style]}
|
|
10
|
-
/>
|
|
11
|
-
)
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
export default Svg
|