@plexui/react-native 0.2.6 → 0.2.7
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.
|
@@ -158,8 +158,11 @@ export function createTheme(options) {
|
|
|
158
158
|
success: color("--color-background-success-solid"),
|
|
159
159
|
onSuccess: color("--color-text-success-solid"),
|
|
160
160
|
danger: color("--color-background-danger-solid"),
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
// iOS's screens are black at night (systemBackground); Android's stay on the PlexUI canvas, as android.css
|
|
162
|
+
background: platform === "android" ? color("--gray-0", color("--color-surface")) : color("--mobile-surface-plain-primary", color("--color-surface")),
|
|
163
|
+
groupedBackground: platform === "android"
|
|
164
|
+
? color(scheme === "dark" ? "--gray-0" : "--gray-75", color("--color-surface-secondary"))
|
|
165
|
+
: color("--mobile-surface-grouped-primary", color("--color-surface-secondary")),
|
|
163
166
|
groupedSurface: color("--mobile-surface-grouped-secondary", color("--color-surface")),
|
|
164
167
|
surface: color("--color-surface"),
|
|
165
168
|
surfaceSecondary: color("--color-surface-secondary"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexui/react-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Plex UI components for React Native and Expo: iOS 26 and Material 3, on the shared @plexui/styles tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://plexui.com",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"test": "npm run typecheck && npm run lint && npm run test:web --prefix example"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@plexui/styles": "^0.17.
|
|
87
|
+
"@plexui/styles": "^0.17.3"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"expo-blur": ">=15",
|
|
@@ -220,8 +220,12 @@ export function createTheme(options: {
|
|
|
220
220
|
success: color("--color-background-success-solid"),
|
|
221
221
|
onSuccess: color("--color-text-success-solid"),
|
|
222
222
|
danger: color("--color-background-danger-solid"),
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
// iOS's screens are black at night (systemBackground); Android's stay on the PlexUI canvas, as android.css
|
|
224
|
+
background: platform === "android" ? color("--gray-0", color("--color-surface")) : color("--mobile-surface-plain-primary", color("--color-surface")),
|
|
225
|
+
groupedBackground:
|
|
226
|
+
platform === "android"
|
|
227
|
+
? color(scheme === "dark" ? "--gray-0" : "--gray-75", color("--color-surface-secondary"))
|
|
228
|
+
: color("--mobile-surface-grouped-primary", color("--color-surface-secondary")),
|
|
225
229
|
groupedSurface: color("--mobile-surface-grouped-secondary", color("--color-surface")),
|
|
226
230
|
surface: color("--color-surface"),
|
|
227
231
|
surfaceSecondary: color("--color-surface-secondary"),
|