@rific/auto-paper 0.10.0 → 0.10.2
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +13 -16
- package/src/components/Dialog.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -789,7 +789,7 @@ function DialogComponent({ animatedStyle, blur: blurProp, dismissable = true, di
|
|
|
789
789
|
if (!mounted) return null;
|
|
790
790
|
const content = import_react9.default.Children.toArray(children).filter((child) => child != null && typeof child !== "boolean").map((child, i) => {
|
|
791
791
|
if (isV3) {
|
|
792
|
-
if (i === 0 && import_react9.default.isValidElement(child)) {
|
|
792
|
+
if (i === 0 && import_react9.default.isValidElement(child) && child.type === import_react_native_paper6.Dialog.Content) {
|
|
793
793
|
return import_react9.default.cloneElement(child, { style: [{ marginTop: 24 }, child.props.style] });
|
|
794
794
|
}
|
|
795
795
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -707,7 +707,7 @@ function DialogComponent({ animatedStyle, blur: blurProp, dismissable = true, di
|
|
|
707
707
|
if (!mounted) return null;
|
|
708
708
|
const content = React.Children.toArray(children).filter((child) => child != null && typeof child !== "boolean").map((child, i) => {
|
|
709
709
|
if (isV3) {
|
|
710
|
-
if (i === 0 && React.isValidElement(child)) {
|
|
710
|
+
if (i === 0 && React.isValidElement(child) && child.type === PaperDialog.Content) {
|
|
711
711
|
return React.cloneElement(child, { style: [{ marginTop: 24 }, child.props.style] });
|
|
712
712
|
}
|
|
713
713
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rific/auto-paper",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Adaptive react-native-paper theming: triadic palette from a seed color + system/light/dark appearance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -48,37 +48,37 @@
|
|
|
48
48
|
"!src/__mocks__"
|
|
49
49
|
],
|
|
50
50
|
"scripts": {
|
|
51
|
-
"build": "tsup
|
|
52
|
-
"build:watch": "tsup
|
|
51
|
+
"build": "tsup",
|
|
52
|
+
"build:watch": "tsup --watch",
|
|
53
53
|
"fix": "eslint --fix",
|
|
54
54
|
"lint": "eslint",
|
|
55
55
|
"prepublishOnly": "npm run build",
|
|
56
56
|
"release": "git push --follow-tags",
|
|
57
|
-
"release:major": "npm version major &&
|
|
58
|
-
"release:minor": "npm version minor &&
|
|
59
|
-
"release:patch": "npm version patch &&
|
|
57
|
+
"release:major": "npm version major && npm run release",
|
|
58
|
+
"release:minor": "npm version minor && npm run release",
|
|
59
|
+
"release:patch": "npm version patch && npm run release",
|
|
60
60
|
"test": "jest",
|
|
61
61
|
"test:watch": "jest --watchAll",
|
|
62
62
|
"typecheck": "tsc --noEmit",
|
|
63
|
-
"
|
|
63
|
+
"verify": "npm run lint && npm test && npm run typecheck && npm run build",
|
|
64
|
+
"preversion": "npm run verify"
|
|
64
65
|
},
|
|
66
|
+
"prettier": "@infinitetoken/eslint-config/prettier",
|
|
65
67
|
"overrides": {
|
|
66
68
|
"esbuild": "0.28.1"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
71
|
+
"@infinitetoken/eslint-config": "^0.1.7",
|
|
72
|
+
"@infinitetoken/jest-config": "^0.1.6",
|
|
73
|
+
"@infinitetoken/tsconfig": "^0.3.0",
|
|
69
74
|
"@reduxjs/toolkit": "^2.0.0",
|
|
70
75
|
"@testing-library/dom": "^10.4.1",
|
|
71
76
|
"@testing-library/react": "^16.0.0",
|
|
72
77
|
"@types/jest": "^30.0.0",
|
|
73
78
|
"@types/react": "^19.0.0",
|
|
74
|
-
"@typescript-eslint/parser": "^8.59.3",
|
|
75
79
|
"eslint": "^9.39.4",
|
|
76
|
-
"eslint-config-prettier": "^10.1.8",
|
|
77
|
-
"eslint-plugin-package-json": "^1.0.0",
|
|
78
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
79
80
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
80
81
|
"eslint-plugin-react-native": "^5.0.0",
|
|
81
|
-
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
82
82
|
"expo-blur": "^56.0.3",
|
|
83
83
|
"expo-navigation-bar": "^56.0.3",
|
|
84
84
|
"jest": "^30.0.0",
|
|
@@ -89,11 +89,8 @@
|
|
|
89
89
|
"react-native": "^0.76.0",
|
|
90
90
|
"react-native-paper": "^5.12.0",
|
|
91
91
|
"react-native-safe-area-context": "^5.5.2",
|
|
92
|
-
"ts-jest": "^29.4.9",
|
|
93
|
-
"ts-node": "^10.9.2",
|
|
94
92
|
"tsup": "^8.0.0",
|
|
95
|
-
"typescript": "^6.0.3"
|
|
96
|
-
"typescript-eslint": "^8.59.3"
|
|
93
|
+
"typescript": "^6.0.3"
|
|
97
94
|
},
|
|
98
95
|
"peerDependencies": {
|
|
99
96
|
"expo-blur": ">=56.0.0",
|
|
@@ -81,7 +81,7 @@ function DialogComponent({ animatedStyle, blur: blurProp, dismissable = true, di
|
|
|
81
81
|
.filter((child) => child != null && typeof child !== 'boolean')
|
|
82
82
|
.map((child, i) => {
|
|
83
83
|
if (isV3) {
|
|
84
|
-
if (i === 0 && React.isValidElement<DialogContentProps>(child)) {
|
|
84
|
+
if (i === 0 && React.isValidElement<DialogContentProps>(child) && child.type === PaperDialog.Content) {
|
|
85
85
|
return React.cloneElement(child, { style: [{ marginTop: 24 }, child.props.style] })
|
|
86
86
|
}
|
|
87
87
|
}
|