@plexui/react-native 0.2.19 → 0.2.21

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.
@@ -178,10 +178,14 @@ function IOSMenuSurface({ open, anchor, onClose, align = "start", width, check =
178
178
  const [subHeight, setSubHeight] = useState(null);
179
179
  const [step] = useState(() => new Animated.Value(0));
180
180
  const [wasOpen, setWasOpen] = useState(open);
181
+ // Each opening lays the panel out anew: a menu opened again while it still leaves keeps its view, whose size does
182
+ // not change, so it would report no layout and stay where it is measured, off the screen
183
+ const [openings, setOpenings] = useState(0);
181
184
  if (wasOpen !== open) {
182
185
  setWasOpen(open);
183
186
  // Each opening measures again: its items may have changed, and it opens at the menu, not at a submenu
184
187
  if (open) {
188
+ setOpenings((count) => count + 1);
185
189
  setSize(null);
186
190
  setSub(null);
187
191
  // A menu closed over its submenu comes back whole
@@ -334,7 +338,7 @@ function IOSMenuSurface({ open, anchor, onClose, align = "start", width, check =
334
338
  // With reduced motion it fades in place
335
339
  transform: scale ? [{ scale: progress.interpolate({ inputRange: [0, 1], outputRange: [0.8, 1] }) }] : undefined,
336
340
  },
337
- ], children: _jsxs(Animated.View, { style: [styles.shrink, scale ? stepBack : null], children: [_jsx(Glass, { ...glass, style: [styles.shrink, { padding: gutter }, !scale && web && !theme.reducedMotion ? stepBack : null], children: _jsx(ScrollView, { style: styles.scroll, bounces: false, children: _jsx(Animated.View, { pointerEvents: sub ? "none" : "auto", style: { opacity: step.interpolate({ inputRange: [0, 1], outputRange: [1, 0.5] }) }, children: content }) }) }), sub ? _jsx(View, { style: StyleSheet.absoluteFill, onStartShouldSetResponder: () => true, onResponderRelease: collapse }) : null] }) }), sub ? (_jsx(Animated.View, { ref: subPanel, ...(web ? { tabIndex: -1 } : null), accessibilityRole: "menu", "aria-label": textOf(sub.label) || undefined, ...keysOf(subPanel), onLayout: (event) => setSubHeight(event.nativeEvent.layout.height), style: [
341
+ ], children: _jsxs(Animated.View, { style: [styles.shrink, scale ? stepBack : null], children: [_jsx(Glass, { ...glass, style: [styles.shrink, { padding: gutter }, !scale && web && !theme.reducedMotion ? stepBack : null], children: _jsx(ScrollView, { style: styles.scroll, bounces: false, children: _jsx(Animated.View, { pointerEvents: sub ? "none" : "auto", style: { opacity: step.interpolate({ inputRange: [0, 1], outputRange: [1, 0.5] }) }, children: content }) }) }), sub ? _jsx(View, { style: StyleSheet.absoluteFill, onStartShouldSetResponder: () => true, onResponderRelease: collapse }) : null] }) }, openings), sub ? (_jsx(Animated.View, { ref: subPanel, ...(web ? { tabIndex: -1 } : null), accessibilityRole: "menu", "aria-label": textOf(sub.label) || undefined, ...keysOf(subPanel), onLayout: (event) => setSubHeight(event.nativeEvent.layout.height), style: [
338
342
  styles.surface,
339
343
  horizontal,
340
344
  {
@@ -456,11 +460,14 @@ function AndroidMenuSurface({ open, anchor, row, header = false, onClose, align
456
460
  const [clock] = useState(() => new Animated.Value(0));
457
461
  const [revealed, setRevealed] = useState(false);
458
462
  const pending = useRef(false);
463
+ const [openings, setOpenings] = useState(0);
459
464
  const [wasOpen, setWasOpen] = useState(open);
460
465
  if (wasOpen !== open) {
461
466
  setWasOpen(open);
462
- // Each opening measures again and opens at the menu
467
+ // Each opening measures again and opens at the menu, its page laid out anew (a page kept from a menu that still
468
+ // leaves would report no layout)
463
469
  if (open) {
470
+ setOpenings((count) => count + 1);
464
471
  setSize(null);
465
472
  setSub(null);
466
473
  setSubSize(null);
@@ -694,7 +701,7 @@ function AndroidMenuSurface({ open, anchor, row, header = false, onClose, align
694
701
  ? [{ translateY: Animated.multiply(drop, -1) }]
695
702
  : undefined,
696
703
  },
697
- ], children: [_jsx(CascadeContext.Provider, { value: cascade, children: _jsx(AndroidPage, { width: morphing ? size.width : width, minWidth: minWidth, maxWidth: maxWidth, maxHeight: maxHeight, onSize: (measured) => setSize(sameSize(measured)), style: header ? styles.androidHeaderPage : undefined, children: _jsx(SurfaceContext.Provider, { value: surface, children: children }) }) }), sub ? _jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { backgroundColor: "#000000", opacity: swipe.interpolate({ inputRange: [0, 1], outputRange: [0, 0.25] }) }] }) : null] }), sub ? (
704
+ ], children: [_jsx(CascadeContext.Provider, { value: cascade, children: _jsx(AndroidPage, { width: morphing ? size.width : width, minWidth: minWidth, maxWidth: maxWidth, maxHeight: maxHeight, onSize: (measured) => setSize(sameSize(measured)), style: header ? styles.androidHeaderPage : undefined, children: _jsx(SurfaceContext.Provider, { value: surface, children: children }) }, openings) }), sub ? _jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { backgroundColor: "#000000", opacity: swipe.interpolate({ inputRange: [0, 1], outputRange: [0, 0.25] }) }] }) : null] }), sub ? (
698
705
  // As wide as the widest page may be, so the submenu takes its own width, not the menu's
699
706
  _jsx(Animated.View, { ref: subPage, ...swipeBack.responder.panHandlers, pointerEvents: "box-none", style: [styles.androidSubPage, startEdge, { width: maxWidth, transform: [{ translateX: swipe.interpolate({ inputRange: [0, 1], outputRange: [span || window.width, 0] }) }] }], children: _jsx(AndroidPage, { width: width, minWidth: minWidth, maxWidth: maxWidth, maxHeight: maxHeight, onSize: onSubSize, style: [{ backgroundColor: background }, header ? styles.androidHeaderPage : null], children: subItems }) })) : null] })] })] }));
700
707
  } }));
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon";
3
+ export default createIcon("Android", "0 0 24 24", [["path", { "d": "M 7.9296875 2.0019531 A 1 1 0 0 0 7.5527344 2.1054688 A 1 1 0 0 0 7.1054688 3.4472656 L 7.7167969 4.6699219 C 6.6752684 5.6871056 6 7.1864755 6 9 L 6 17 C 6 18.092725 6.9072751 19 8 19 L 8 21 A 1 1 0 0 0 9 22 A 1 1 0 0 0 10 21 L 10 19 L 14 19 L 14 21 A 1 1 0 0 0 15 22 A 1 1 0 0 0 16 21 L 16 19 C 17.092725 19 18 18.092725 18 17 L 18 9 C 18 7.1864756 17.324732 5.6871056 16.283203 4.6699219 L 16.894531 3.4472656 A 1 1 0 0 0 16.447266 2.1054688 A 1 1 0 0 0 15.105469 2.5527344 L 14.609375 3.5429688 C 13.787069 3.1769755 12.891329 3 12 3 C 11.108671 3 10.212931 3.1769756 9.390625 3.5429688 L 8.8945312 2.5527344 A 1 1 0 0 0 8.3164062 2.0507812 A 1 1 0 0 0 7.9296875 2.0019531 z M 12 5 C 12.771225 5 13.535546 5.1958755 14.177734 5.5683594 A 1 1 0 0 0 14.552734 5.8945312 A 1 1 0 0 0 14.734375 5.9648438 C 14.747268 5.9759697 14.760715 5.9867378 14.773438 5.9980469 C 15.300388 6.4664477 15.6256 7.161876 15.810547 8 L 8.1894531 8 C 8.3743998 7.161876 8.6996114 6.4664477 9.2265625 5.9980469 C 9.2392854 5.9867377 9.2527322 5.9759699 9.265625 5.9648438 A 1 1 0 0 0 9.4472656 5.8945312 A 1 1 0 0 0 9.8222656 5.5683594 C 10.464454 5.1958754 11.228775 5 12 5 z M 4 9 A 1 1 0 0 0 3 10 L 3 16 A 1 1 0 0 0 4 17 A 1 1 0 0 0 5 16 L 5 10 A 1 1 0 0 0 4 9 z M 20 9 A 1 1 0 0 0 19 10 L 19 16 A 1 1 0 0 0 20 17 A 1 1 0 0 0 21 16 L 21 10 A 1 1 0 0 0 20 9 z M 8 10 L 16 10 L 16 17 L 15 17 L 8 17 L 8 10 z", "fill": 0 }]]);
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon";
3
+ export default createIcon("Apple", "0 0 24 24", [["path", { "d": "M 14 1 C 12.35499 1 11 2.3549904 11 4 A 1 1 0 0 0 12 5 C 13.64501 5 15 3.6450096 15 2 A 1.0001 1.0001 0 0 0 14 1 z M 14.939453 6 C 14.054078 6.0164983 13.286046 6.3178084 12.671875 6.5839844 C 12.121436 6.8225391 11.592494 6.9949369 11.484375 7.0585938 C 11.364264 7.0019627 10.940472 6.8581138 10.492188 6.6445312 C 9.9038525 6.3642232 9.1789101 6.0078125 8.2851562 6.0078125 C 6.3423717 6.0078125 4.875047 7.0850187 4.0742188 8.453125 C 3.2733906 9.8212313 3 11.450145 3 12.927734 C 3 14.763459 3.5705956 16.867828 4.4433594 18.621094 C 4.8797412 19.497726 5.3918886 20.283716 6.0039062 20.898438 C 6.615924 21.51316 7.3727535 22 8.2851562 22 A 1.0001 1.0001 0 0 0 8.328125 22 C 9.0421041 21.96936 9.5938728 21.801123 10.056641 21.677734 C 10.519408 21.554346 10.907459 21.462891 11.5 21.462891 C 12.075451 21.462891 12.292867 21.547671 12.730469 21.685547 C 13.16807 21.823427 13.799749 22 14.714844 22 C 15.451483 22 16.063409 21.684809 16.638672 21.279297 C 17.213935 20.873785 17.751743 20.345128 18.236328 19.746094 C 19.205498 18.548025 20 17.110103 20 15.619141 A 1.0001 1.0001 0 0 0 19.34375 14.679688 C 19.343281 14.679516 19.22472 14.645208 19.212891 14.642578 C 19.201061 14.639978 19.197809 14.637719 19.193359 14.636719 C 19.184459 14.634919 19.178905 14.634312 19.171875 14.632812 C 19.157815 14.629812 19.138611 14.625311 19.113281 14.619141 C 19.062611 14.606851 18.986898 14.587981 18.894531 14.556641 C 18.709798 14.493971 18.461868 14.385507 18.228516 14.224609 C 17.761812 13.902815 17.331969 13.465269 17.320312 12.378906 C 17.314312 11.586158 17.716646 11.105099 18.228516 10.710938 C 18.484687 10.513673 18.759281 10.360565 18.970703 10.259766 C 19.076414 10.209366 19.165311 10.171676 19.232422 10.144531 C 19.265972 10.130961 19.294142 10.121598 19.320312 10.111328 C 19.321948 10.110686 19.325087 10.109675 19.326172 10.109375 L 19.328125 10.109375 L 19.330078 10.109375 L 19.332031 10.111328 L 19.333984 10.111328 L 19.335938 10.111328 C 19.345609 10.10951 19.373652 10.096151 19.478516 10.039062 A 1.0001 1.0001 0 0 0 19.826172 8.5976562 C 19.140879 7.5934768 18.191582 6.9729745 17.349609 6.5878906 C 16.511594 6.2046169 15.827858 6.0467596 15.328125 6.0117188 L 15.326172 6.0117188 C 15.195014 6.0015389 15.065935 5.9976431 14.939453 6 z M 14.984375 8.0019531 C 15.048664 7.9999269 15.111282 8.0011224 15.171875 8.0058594 A 1.0001 1.0001 0 0 0 15.181641 8.0058594 C 15.269331 8.0118294 15.907504 8.1263338 16.519531 8.40625 C 16.786935 8.5285493 16.987132 8.7996549 17.242188 8.9824219 C 17.158207 9.0399689 17.095493 9.0589859 17.009766 9.125 C 16.200109 9.7484721 15.307113 10.857498 15.320312 12.398438 A 1.0001 1.0001 0 0 0 15.320312 12.400391 C 15.338653 14.110027 16.235954 15.279639 17.09375 15.871094 C 17.331641 16.035121 17.52177 16.092546 17.736328 16.191406 C 17.572161 16.881284 17.299652 17.724307 16.681641 18.488281 C 16.2956 18.965497 15.865346 19.377355 15.486328 19.644531 C 15.107276 19.91166 14.781705 20 14.714844 20 C 14.022939 20 13.748179 19.908464 13.332031 19.777344 C 12.915883 19.646224 12.330549 19.462891 11.5 19.462891 C 10.677541 19.462891 10.040248 19.612982 9.5410156 19.746094 C 9.0544997 19.875814 8.7099808 19.971185 8.2753906 19.994141 C 8.1146482 19.991469 7.8079929 19.876113 7.4199219 19.486328 C 7.0274083 19.092081 6.6016181 18.466258 6.234375 17.728516 C 5.4998887 16.253031 5 14.32101 5 12.927734 C 5 11.715324 5.2626094 10.384237 5.8007812 9.4648438 C 6.3389532 8.54545 7.0119407 8.0078125 8.2851562 8.0078125 C 8.5694024 8.0078125 9.0889439 8.1910267 9.6308594 8.4492188 C 10.172775 8.7074106 10.643045 9.0859375 11.5 9.0859375 C 12.41471 9.0859375 12.85745 8.6840068 13.466797 8.4199219 C 13.999975 8.1888475 14.534355 8.0161367 14.984375 8.0019531 z", "fill": 0 }]]);
@@ -0,0 +1,3 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon";
3
+ export default createIcon("DeviceDesktop", "0 0 24 24", [["path", { "d": "M 4 3 C 2.9072751 3 2 3.9072751 2 5 L 2 15 C 2 16.092725 2.9072751 17 4 17 L 8 17 L 8 19 L 7 19 A 1 1 0 0 0 6 20 A 1 1 0 0 0 7 21 L 15 21 L 17 21 A 1 1 0 0 0 18 20 A 1 1 0 0 0 17 19 L 16 19 L 16 17 L 20 17 C 21.092725 17 22 16.092725 22 15 L 22 5 C 22 3.9072751 21.092725 3 20 3 L 4 3 z M 4 5 L 20 5 L 20 15 L 15 15 L 4 15 L 4 5 z M 10 17 L 14 17 L 14 19 L 10 19 L 10 17 z", "fill": 0 }]]);
@@ -10,6 +10,7 @@ export { default as AllGizmos } from "./AllGizmos";
10
10
  export { default as AllProductsExplore } from "./AllProductsExplore";
11
11
  export { default as Analytics } from "./Analytics";
12
12
  export { default as AnalyzeData } from "./AnalyzeData";
13
+ export { default as Android } from "./Android";
13
14
  export { default as ApiKey } from "./ApiKey";
14
15
  export { default as ApiKeyAdmin } from "./ApiKeyAdmin";
15
16
  export { default as ApiKeyPlus } from "./ApiKeyPlus";
@@ -18,6 +19,7 @@ export { default as ApiKeys } from "./ApiKeys";
18
19
  export { default as AppPermission } from "./AppPermission";
19
20
  export { default as AppStore } from "./AppStore";
20
21
  export { default as AppStoreSquare } from "./AppStoreSquare";
22
+ export { default as Apple } from "./Apple";
21
23
  export { default as Archive } from "./Archive";
22
24
  export { default as Array } from "./Array";
23
25
  export { default as ArrowBottomLeftSm } from "./ArrowBottomLeftSm";
@@ -181,6 +183,7 @@ export { default as Customize } from "./Customize";
181
183
  export { default as DarkMode } from "./DarkMode";
182
184
  export { default as DataControls } from "./DataControls";
183
185
  export { default as Desktop } from "./Desktop";
186
+ export { default as DeviceDesktop } from "./DeviceDesktop";
184
187
  export { default as DiceRandomize } from "./DiceRandomize";
185
188
  export { default as DiningEvents } from "./DiningEvents";
186
189
  export { default as DisabledCursor } from "./DisabledCursor";
@@ -195,9 +195,14 @@ export function Overlay({ open, onDismiss, scrim = "transparent", dismissible =
195
195
  // action (Android's `setCancelable(false)`)
196
196
  _jsx(Modal, { visible: mounted, transparent: true, animationType: "none", onRequestClose: dismissible ? onDismiss : ignore, onDismiss: ios ? () => setPresented(false) : undefined, statusBarTranslucent: true, navigationBarTranslucent: true, supportedOrientations: ORIENTATIONS, children: mounted ? (
197
197
  // A closing overlay takes no more touches: an action cannot run twice while it fades
198
- _jsxs(View, { style: StyleSheet.absoluteFill, pointerEvents: show ? "box-none" : "none", onAccessibilityEscape: dismissible && show ? onDismiss : undefined, testID: testID, children: [_jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { backgroundColor: scrim, opacity: scrimOpacity ? scrimOpacity(progress, show) : progress }] }), _jsx(View, { importantForAccessibility: "no", "aria-hidden": true, style: StyleSheet.absoluteFill, onStartShouldSetResponder: dismissible && show ? yes : undefined, onResponderRelease: dismissible && show ? onDismiss : undefined, testID: testID ? `${testID}-scrim` : undefined }), children(progress, show, focus)] })) : null }));
198
+ _jsxs(View, { style: StyleSheet.absoluteFill, pointerEvents: show ? "box-none" : "none", onAccessibilityEscape: dismissible && show ? onDismiss : undefined, ...(Platform.OS === "web" ? { onClick: stopClick } : null), testID: testID, children: [_jsx(Animated.View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { backgroundColor: scrim, opacity: scrimOpacity ? scrimOpacity(progress, show) : progress }] }), _jsx(View, { importantForAccessibility: "no", "aria-hidden": true, style: StyleSheet.absoluteFill, onStartShouldSetResponder: dismissible && show ? yes : undefined, onResponderRelease: dismissible && show ? onDismiss : undefined, ...(Platform.OS === "web" ? { onTouchEnd: endTouch } : null), testID: testID ? `${testID}-scrim` : undefined }), children(progress, show, focus)] })) : null }));
199
199
  }
200
200
  const ignore = () => { };
201
+ const stopClick = (event) => event.stopPropagation?.();
202
+ const endTouch = (event) => {
203
+ if (event.cancelable !== false && event.nativeEvent?.cancelable !== false)
204
+ event.preventDefault?.();
205
+ };
201
206
  const yes = () => true;
202
207
  const NO_FOCUS = {};
203
208
  const styles = StyleSheet.create({
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../..").IconComponent;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../..").IconComponent;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("../..").IconComponent;
2
+ export default _default;
@@ -8,6 +8,7 @@ export { default as AllGizmos } from "./AllGizmos";
8
8
  export { default as AllProductsExplore } from "./AllProductsExplore";
9
9
  export { default as Analytics } from "./Analytics";
10
10
  export { default as AnalyzeData } from "./AnalyzeData";
11
+ export { default as Android } from "./Android";
11
12
  export { default as ApiKey } from "./ApiKey";
12
13
  export { default as ApiKeyAdmin } from "./ApiKeyAdmin";
13
14
  export { default as ApiKeyPlus } from "./ApiKeyPlus";
@@ -16,6 +17,7 @@ export { default as ApiKeys } from "./ApiKeys";
16
17
  export { default as AppPermission } from "./AppPermission";
17
18
  export { default as AppStore } from "./AppStore";
18
19
  export { default as AppStoreSquare } from "./AppStoreSquare";
20
+ export { default as Apple } from "./Apple";
19
21
  export { default as Archive } from "./Archive";
20
22
  export { default as Array } from "./Array";
21
23
  export { default as ArrowBottomLeftSm } from "./ArrowBottomLeftSm";
@@ -179,6 +181,7 @@ export { default as Customize } from "./Customize";
179
181
  export { default as DarkMode } from "./DarkMode";
180
182
  export { default as DataControls } from "./DataControls";
181
183
  export { default as Desktop } from "./Desktop";
184
+ export { default as DeviceDesktop } from "./DeviceDesktop";
182
185
  export { default as DiceRandomize } from "./DiceRandomize";
183
186
  export { default as DiningEvents } from "./DiningEvents";
184
187
  export { default as DisabledCursor } from "./DisabledCursor";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/react-native",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
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",
@@ -245,10 +245,14 @@ function IOSMenuSurface({ open, anchor, onClose, align = "start", width, check =
245
245
  const [subHeight, setSubHeight] = useState<number | null>(null)
246
246
  const [step] = useState(() => new Animated.Value(0))
247
247
  const [wasOpen, setWasOpen] = useState(open)
248
+ // Each opening lays the panel out anew: a menu opened again while it still leaves keeps its view, whose size does
249
+ // not change, so it would report no layout and stay where it is measured, off the screen
250
+ const [openings, setOpenings] = useState(0)
248
251
  if (wasOpen !== open) {
249
252
  setWasOpen(open)
250
253
  // Each opening measures again: its items may have changed, and it opens at the menu, not at a submenu
251
254
  if (open) {
255
+ setOpenings((count) => count + 1)
252
256
  setSize(null)
253
257
  setSub(null)
254
258
  // A menu closed over its submenu comes back whole
@@ -408,6 +412,7 @@ function IOSMenuSurface({ open, anchor, onClose, align = "start", width, check =
408
412
  </>
409
413
  ) : null}
410
414
  <Animated.View
415
+ key={openings}
411
416
  ref={panel as never}
412
417
  // The panel takes the focus of a menu opened by a pointer (the web), with no ring of its own
413
418
  {...(web ? { tabIndex: -1 as const } : null)}
@@ -645,11 +650,14 @@ function AndroidMenuSurface({ open, anchor, row, header = false, onClose, align
645
650
  const [clock] = useState(() => new Animated.Value(0))
646
651
  const [revealed, setRevealed] = useState(false)
647
652
  const pending = useRef(false)
653
+ const [openings, setOpenings] = useState(0)
648
654
  const [wasOpen, setWasOpen] = useState(open)
649
655
  if (wasOpen !== open) {
650
656
  setWasOpen(open)
651
- // Each opening measures again and opens at the menu
657
+ // Each opening measures again and opens at the menu, its page laid out anew (a page kept from a menu that still
658
+ // leaves would report no layout)
652
659
  if (open) {
660
+ setOpenings((count) => count + 1)
653
661
  setSize(null)
654
662
  setSub(null)
655
663
  setSubSize(null)
@@ -914,7 +922,7 @@ function AndroidMenuSurface({ open, anchor, row, header = false, onClose, align
914
922
  ]}
915
923
  >
916
924
  <CascadeContext.Provider value={cascade}>
917
- <AndroidPage width={morphing ? size.width : width} minWidth={minWidth} maxWidth={maxWidth} maxHeight={maxHeight} onSize={(measured) => setSize(sameSize(measured))} style={header ? styles.androidHeaderPage : undefined}>
925
+ <AndroidPage key={openings} width={morphing ? size.width : width} minWidth={minWidth} maxWidth={maxWidth} maxHeight={maxHeight} onSize={(measured) => setSize(sameSize(measured))} style={header ? styles.androidHeaderPage : undefined}>
918
926
  <SurfaceContext.Provider value={surface}>{children}</SurfaceContext.Provider>
919
927
  </AndroidPage>
920
928
  </CascadeContext.Provider>
@@ -0,0 +1,4 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon"
3
+
4
+ export default createIcon("Android", "0 0 24 24", [["path",{"d":"M 7.9296875 2.0019531 A 1 1 0 0 0 7.5527344 2.1054688 A 1 1 0 0 0 7.1054688 3.4472656 L 7.7167969 4.6699219 C 6.6752684 5.6871056 6 7.1864755 6 9 L 6 17 C 6 18.092725 6.9072751 19 8 19 L 8 21 A 1 1 0 0 0 9 22 A 1 1 0 0 0 10 21 L 10 19 L 14 19 L 14 21 A 1 1 0 0 0 15 22 A 1 1 0 0 0 16 21 L 16 19 C 17.092725 19 18 18.092725 18 17 L 18 9 C 18 7.1864756 17.324732 5.6871056 16.283203 4.6699219 L 16.894531 3.4472656 A 1 1 0 0 0 16.447266 2.1054688 A 1 1 0 0 0 15.105469 2.5527344 L 14.609375 3.5429688 C 13.787069 3.1769755 12.891329 3 12 3 C 11.108671 3 10.212931 3.1769756 9.390625 3.5429688 L 8.8945312 2.5527344 A 1 1 0 0 0 8.3164062 2.0507812 A 1 1 0 0 0 7.9296875 2.0019531 z M 12 5 C 12.771225 5 13.535546 5.1958755 14.177734 5.5683594 A 1 1 0 0 0 14.552734 5.8945312 A 1 1 0 0 0 14.734375 5.9648438 C 14.747268 5.9759697 14.760715 5.9867378 14.773438 5.9980469 C 15.300388 6.4664477 15.6256 7.161876 15.810547 8 L 8.1894531 8 C 8.3743998 7.161876 8.6996114 6.4664477 9.2265625 5.9980469 C 9.2392854 5.9867377 9.2527322 5.9759699 9.265625 5.9648438 A 1 1 0 0 0 9.4472656 5.8945312 A 1 1 0 0 0 9.8222656 5.5683594 C 10.464454 5.1958754 11.228775 5 12 5 z M 4 9 A 1 1 0 0 0 3 10 L 3 16 A 1 1 0 0 0 4 17 A 1 1 0 0 0 5 16 L 5 10 A 1 1 0 0 0 4 9 z M 20 9 A 1 1 0 0 0 19 10 L 19 16 A 1 1 0 0 0 20 17 A 1 1 0 0 0 21 16 L 21 10 A 1 1 0 0 0 20 9 z M 8 10 L 16 10 L 16 17 L 15 17 L 8 17 L 8 10 z","fill":0}]])
@@ -0,0 +1,4 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon"
3
+
4
+ export default createIcon("Apple", "0 0 24 24", [["path",{"d":"M 14 1 C 12.35499 1 11 2.3549904 11 4 A 1 1 0 0 0 12 5 C 13.64501 5 15 3.6450096 15 2 A 1.0001 1.0001 0 0 0 14 1 z M 14.939453 6 C 14.054078 6.0164983 13.286046 6.3178084 12.671875 6.5839844 C 12.121436 6.8225391 11.592494 6.9949369 11.484375 7.0585938 C 11.364264 7.0019627 10.940472 6.8581138 10.492188 6.6445312 C 9.9038525 6.3642232 9.1789101 6.0078125 8.2851562 6.0078125 C 6.3423717 6.0078125 4.875047 7.0850187 4.0742188 8.453125 C 3.2733906 9.8212313 3 11.450145 3 12.927734 C 3 14.763459 3.5705956 16.867828 4.4433594 18.621094 C 4.8797412 19.497726 5.3918886 20.283716 6.0039062 20.898438 C 6.615924 21.51316 7.3727535 22 8.2851562 22 A 1.0001 1.0001 0 0 0 8.328125 22 C 9.0421041 21.96936 9.5938728 21.801123 10.056641 21.677734 C 10.519408 21.554346 10.907459 21.462891 11.5 21.462891 C 12.075451 21.462891 12.292867 21.547671 12.730469 21.685547 C 13.16807 21.823427 13.799749 22 14.714844 22 C 15.451483 22 16.063409 21.684809 16.638672 21.279297 C 17.213935 20.873785 17.751743 20.345128 18.236328 19.746094 C 19.205498 18.548025 20 17.110103 20 15.619141 A 1.0001 1.0001 0 0 0 19.34375 14.679688 C 19.343281 14.679516 19.22472 14.645208 19.212891 14.642578 C 19.201061 14.639978 19.197809 14.637719 19.193359 14.636719 C 19.184459 14.634919 19.178905 14.634312 19.171875 14.632812 C 19.157815 14.629812 19.138611 14.625311 19.113281 14.619141 C 19.062611 14.606851 18.986898 14.587981 18.894531 14.556641 C 18.709798 14.493971 18.461868 14.385507 18.228516 14.224609 C 17.761812 13.902815 17.331969 13.465269 17.320312 12.378906 C 17.314312 11.586158 17.716646 11.105099 18.228516 10.710938 C 18.484687 10.513673 18.759281 10.360565 18.970703 10.259766 C 19.076414 10.209366 19.165311 10.171676 19.232422 10.144531 C 19.265972 10.130961 19.294142 10.121598 19.320312 10.111328 C 19.321948 10.110686 19.325087 10.109675 19.326172 10.109375 L 19.328125 10.109375 L 19.330078 10.109375 L 19.332031 10.111328 L 19.333984 10.111328 L 19.335938 10.111328 C 19.345609 10.10951 19.373652 10.096151 19.478516 10.039062 A 1.0001 1.0001 0 0 0 19.826172 8.5976562 C 19.140879 7.5934768 18.191582 6.9729745 17.349609 6.5878906 C 16.511594 6.2046169 15.827858 6.0467596 15.328125 6.0117188 L 15.326172 6.0117188 C 15.195014 6.0015389 15.065935 5.9976431 14.939453 6 z M 14.984375 8.0019531 C 15.048664 7.9999269 15.111282 8.0011224 15.171875 8.0058594 A 1.0001 1.0001 0 0 0 15.181641 8.0058594 C 15.269331 8.0118294 15.907504 8.1263338 16.519531 8.40625 C 16.786935 8.5285493 16.987132 8.7996549 17.242188 8.9824219 C 17.158207 9.0399689 17.095493 9.0589859 17.009766 9.125 C 16.200109 9.7484721 15.307113 10.857498 15.320312 12.398438 A 1.0001 1.0001 0 0 0 15.320312 12.400391 C 15.338653 14.110027 16.235954 15.279639 17.09375 15.871094 C 17.331641 16.035121 17.52177 16.092546 17.736328 16.191406 C 17.572161 16.881284 17.299652 17.724307 16.681641 18.488281 C 16.2956 18.965497 15.865346 19.377355 15.486328 19.644531 C 15.107276 19.91166 14.781705 20 14.714844 20 C 14.022939 20 13.748179 19.908464 13.332031 19.777344 C 12.915883 19.646224 12.330549 19.462891 11.5 19.462891 C 10.677541 19.462891 10.040248 19.612982 9.5410156 19.746094 C 9.0544997 19.875814 8.7099808 19.971185 8.2753906 19.994141 C 8.1146482 19.991469 7.8079929 19.876113 7.4199219 19.486328 C 7.0274083 19.092081 6.6016181 18.466258 6.234375 17.728516 C 5.4998887 16.253031 5 14.32101 5 12.927734 C 5 11.715324 5.2626094 10.384237 5.8007812 9.4648438 C 6.3389532 8.54545 7.0119407 8.0078125 8.2851562 8.0078125 C 8.5694024 8.0078125 9.0889439 8.1910267 9.6308594 8.4492188 C 10.172775 8.7074106 10.643045 9.0859375 11.5 9.0859375 C 12.41471 9.0859375 12.85745 8.6840068 13.466797 8.4199219 C 13.999975 8.1888475 14.534355 8.0161367 14.984375 8.0019531 z","fill":0}]])
@@ -0,0 +1,4 @@
1
+ // Generated by scripts/build-icons.mjs. Do not edit.
2
+ import { createIcon } from "../../components/Icon/createIcon"
3
+
4
+ export default createIcon("DeviceDesktop", "0 0 24 24", [["path",{"d":"M 4 3 C 2.9072751 3 2 3.9072751 2 5 L 2 15 C 2 16.092725 2.9072751 17 4 17 L 8 17 L 8 19 L 7 19 A 1 1 0 0 0 6 20 A 1 1 0 0 0 7 21 L 15 21 L 17 21 A 1 1 0 0 0 18 20 A 1 1 0 0 0 17 19 L 16 19 L 16 17 L 20 17 C 21.092725 17 22 16.092725 22 15 L 22 5 C 22 3.9072751 21.092725 3 20 3 L 4 3 z M 4 5 L 20 5 L 20 15 L 15 15 L 4 15 L 4 5 z M 10 17 L 14 17 L 14 19 L 10 19 L 10 17 z","fill":0}]])
@@ -10,6 +10,7 @@ export { default as AllGizmos } from "./AllGizmos"
10
10
  export { default as AllProductsExplore } from "./AllProductsExplore"
11
11
  export { default as Analytics } from "./Analytics"
12
12
  export { default as AnalyzeData } from "./AnalyzeData"
13
+ export { default as Android } from "./Android"
13
14
  export { default as ApiKey } from "./ApiKey"
14
15
  export { default as ApiKeyAdmin } from "./ApiKeyAdmin"
15
16
  export { default as ApiKeyPlus } from "./ApiKeyPlus"
@@ -18,6 +19,7 @@ export { default as ApiKeys } from "./ApiKeys"
18
19
  export { default as AppPermission } from "./AppPermission"
19
20
  export { default as AppStore } from "./AppStore"
20
21
  export { default as AppStoreSquare } from "./AppStoreSquare"
22
+ export { default as Apple } from "./Apple"
21
23
  export { default as Archive } from "./Archive"
22
24
  export { default as Array } from "./Array"
23
25
  export { default as ArrowBottomLeftSm } from "./ArrowBottomLeftSm"
@@ -181,6 +183,7 @@ export { default as Customize } from "./Customize"
181
183
  export { default as DarkMode } from "./DarkMode"
182
184
  export { default as DataControls } from "./DataControls"
183
185
  export { default as Desktop } from "./Desktop"
186
+ export { default as DeviceDesktop } from "./DeviceDesktop"
184
187
  export { default as DiceRandomize } from "./DiceRandomize"
185
188
  export { default as DiningEvents } from "./DiningEvents"
186
189
  export { default as DisabledCursor } from "./DisabledCursor"
@@ -258,6 +258,10 @@ export function Overlay({ open, onDismiss, scrim = "transparent", dismissible =
258
258
  style={StyleSheet.absoluteFill}
259
259
  pointerEvents={show ? "box-none" : "none"}
260
260
  onAccessibilityEscape={dismissible && show ? onDismiss : undefined}
261
+ // A web click in the overlay goes no further: React carries it from the Modal's portal up to the trigger's
262
+ // own tree, where a List row whose Select opens from the whole row took a click on the scrim and opened its
263
+ // menu again. Only the click: the responders listen on the document, and a press there is the click
264
+ {...(Platform.OS === "web" ? { onClick: stopClick } : null)}
261
265
  testID={testID}
262
266
  >
263
267
  <Animated.View pointerEvents="none" style={[StyleSheet.absoluteFill, { backgroundColor: scrim, opacity: scrimOpacity ? scrimOpacity(progress, show) : progress }]} />
@@ -269,6 +273,10 @@ export function Overlay({ open, onDismiss, scrim = "transparent", dismissible =
269
273
  style={StyleSheet.absoluteFill}
270
274
  onStartShouldSetResponder={dismissible && show ? yes : undefined}
271
275
  onResponderRelease={dismissible && show ? onDismiss : undefined}
276
+ // A tap on the web is followed by the browser's own mouse events and click at its point, which land on what
277
+ // is under the overlay once it closes (a sheet's row that opens the same menu again): the scrim's touch
278
+ // ends without them
279
+ {...(Platform.OS === "web" ? { onTouchEnd: endTouch as never } : null)}
272
280
  testID={testID ? `${testID}-scrim` : undefined}
273
281
  />
274
282
  {children(progress, show, focus)}
@@ -279,6 +287,10 @@ export function Overlay({ open, onDismiss, scrim = "transparent", dismissible =
279
287
  }
280
288
 
281
289
  const ignore = () => {}
290
+ const stopClick = (event: { stopPropagation?: () => void }) => event.stopPropagation?.()
291
+ const endTouch = (event: { cancelable?: boolean; preventDefault?: () => void; nativeEvent?: { cancelable?: boolean } }) => {
292
+ if (event.cancelable !== false && event.nativeEvent?.cancelable !== false) event.preventDefault?.()
293
+ }
282
294
  const yes = () => true
283
295
  const NO_FOCUS: OverlayFocus = {}
284
296