@oxy.so/bloom 21.5.0 → 21.7.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.
- package/docs/adoption-matrix.mdx +4 -4
- package/docs/dropdown-menu.mdx +11 -0
- package/docs/platform-surface.mdx +20 -0
- package/docs/public-parts.mdx +3 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/window.mdx +30 -1
- package/lib/commonjs/dropdown-menu/DropdownMenu.js +86 -6
- package/lib/commonjs/dropdown-menu/DropdownMenu.js.map +1 -1
- package/lib/commonjs/dropdown-menu/context.js.map +1 -1
- package/lib/commonjs/floating/PopupPanel.js +17 -1
- package/lib/commonjs/floating/PopupPanel.js.map +1 -1
- package/lib/commonjs/floating/TriggerSlot.js +4 -0
- package/lib/commonjs/floating/TriggerSlot.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +21 -1
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +21 -1
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +21 -1
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +21 -1
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +21 -1
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +21 -1
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +21 -1
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +21 -1
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +21 -1
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +21 -1
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +21 -1
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +21 -1
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +21 -1
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +21 -1
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/platform-surface/context.js +16 -0
- package/lib/commonjs/platform-surface/context.js.map +1 -1
- package/lib/commonjs/window/WindowControls.js +61 -16
- package/lib/commonjs/window/WindowControls.js.map +1 -1
- package/lib/commonjs/window/WindowLayouts.js +86 -0
- package/lib/commonjs/window/WindowLayouts.js.map +1 -0
- package/lib/commonjs/window/layouts-registry.js +27 -0
- package/lib/commonjs/window/layouts-registry.js.map +1 -0
- package/lib/commonjs/window/layouts.js +27 -0
- package/lib/commonjs/window/layouts.js.map +1 -0
- package/lib/commonjs/window/messages.js +21 -1
- package/lib/commonjs/window/messages.js.map +1 -1
- package/lib/commonjs/window/use-window.js +16 -4
- package/lib/commonjs/window/use-window.js.map +1 -1
- package/lib/module/dropdown-menu/DropdownMenu.js +88 -6
- package/lib/module/dropdown-menu/DropdownMenu.js.map +1 -1
- package/lib/module/dropdown-menu/context.js.map +1 -1
- package/lib/module/floating/PopupPanel.js +17 -1
- package/lib/module/floating/PopupPanel.js.map +1 -1
- package/lib/module/floating/TriggerSlot.js +4 -0
- package/lib/module/floating/TriggerSlot.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/locale/translations/ar.js +21 -1
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +21 -1
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +21 -1
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +21 -1
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +21 -1
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +21 -1
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +21 -1
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +21 -1
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +21 -1
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +21 -1
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +21 -1
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +21 -1
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +21 -1
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +21 -1
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/platform-surface/context.js +15 -0
- package/lib/module/platform-surface/context.js.map +1 -1
- package/lib/module/window/WindowControls.js +61 -16
- package/lib/module/window/WindowControls.js.map +1 -1
- package/lib/module/window/WindowLayouts.js +82 -0
- package/lib/module/window/WindowLayouts.js.map +1 -0
- package/lib/module/window/layouts-registry.js +22 -0
- package/lib/module/window/layouts-registry.js.map +1 -0
- package/lib/module/window/layouts.js +12 -0
- package/lib/module/window/layouts.js.map +1 -0
- package/lib/module/window/messages.js +21 -1
- package/lib/module/window/messages.js.map +1 -1
- package/lib/module/window/use-window.js +17 -5
- package/lib/module/window/use-window.js.map +1 -1
- package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.d.ts +7 -1
- package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/dropdown-menu/context.d.ts +2 -0
- package/lib/typescript/commonjs/dropdown-menu/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/PopupPanel.d.ts +17 -4
- package/lib/typescript/commonjs/floating/PopupPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/TriggerSlot.d.ts +7 -1
- package/lib/typescript/commonjs/floating/TriggerSlot.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/context.d.ts +6 -0
- package/lib/typescript/commonjs/platform-surface/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/index.d.ts +1 -1
- package/lib/typescript/commonjs/platform-surface/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/types.d.ts +31 -1
- package/lib/typescript/commonjs/platform-surface/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/WindowControls.d.ts +4 -0
- package/lib/typescript/commonjs/window/WindowControls.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/WindowLayouts.d.ts +20 -0
- package/lib/typescript/commonjs/window/WindowLayouts.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/layouts-registry.d.ts +19 -0
- package/lib/typescript/commonjs/window/layouts-registry.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/layouts.d.ts +4 -0
- package/lib/typescript/commonjs/window/layouts.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/messages.d.ts +22 -0
- package/lib/typescript/commonjs/window/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/types.d.ts +15 -1
- package/lib/typescript/commonjs/window/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/use-window.d.ts.map +1 -1
- package/lib/typescript/module/dropdown-menu/DropdownMenu.d.ts +7 -1
- package/lib/typescript/module/dropdown-menu/DropdownMenu.d.ts.map +1 -1
- package/lib/typescript/module/dropdown-menu/context.d.ts +2 -0
- package/lib/typescript/module/dropdown-menu/context.d.ts.map +1 -1
- package/lib/typescript/module/floating/PopupPanel.d.ts +17 -4
- package/lib/typescript/module/floating/PopupPanel.d.ts.map +1 -1
- package/lib/typescript/module/floating/TriggerSlot.d.ts +7 -1
- package/lib/typescript/module/floating/TriggerSlot.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +1 -1
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/context.d.ts +6 -0
- package/lib/typescript/module/platform-surface/context.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/index.d.ts +1 -1
- package/lib/typescript/module/platform-surface/index.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/types.d.ts +31 -1
- package/lib/typescript/module/platform-surface/types.d.ts.map +1 -1
- package/lib/typescript/module/window/WindowControls.d.ts +4 -0
- package/lib/typescript/module/window/WindowControls.d.ts.map +1 -1
- package/lib/typescript/module/window/WindowLayouts.d.ts +20 -0
- package/lib/typescript/module/window/WindowLayouts.d.ts.map +1 -0
- package/lib/typescript/module/window/layouts-registry.d.ts +19 -0
- package/lib/typescript/module/window/layouts-registry.d.ts.map +1 -0
- package/lib/typescript/module/window/layouts.d.ts +4 -0
- package/lib/typescript/module/window/layouts.d.ts.map +1 -0
- package/lib/typescript/module/window/messages.d.ts +22 -0
- package/lib/typescript/module/window/messages.d.ts.map +1 -1
- package/lib/typescript/module/window/types.d.ts +15 -1
- package/lib/typescript/module/window/types.d.ts.map +1 -1
- package/lib/typescript/module/window/use-window.d.ts.map +1 -1
- package/package.json +20 -2
- package/src/__tests__/support/public-part-classifications.json +1 -0
- package/src/dropdown-menu/DropdownMenu.tsx +94 -6
- package/src/dropdown-menu/context.ts +2 -0
- package/src/floating/PopupPanel.tsx +41 -2
- package/src/floating/TriggerSlot.tsx +10 -0
- package/src/index.ts +1 -0
- package/src/index.web.ts +1 -0
- package/src/locale/translations/ar.ts +20 -0
- package/src/locale/translations/bn.ts +20 -0
- package/src/locale/translations/ca.ts +20 -0
- package/src/locale/translations/de.ts +20 -0
- package/src/locale/translations/es.ts +20 -0
- package/src/locale/translations/fr.ts +20 -0
- package/src/locale/translations/hi.ts +20 -0
- package/src/locale/translations/id.ts +20 -0
- package/src/locale/translations/it.ts +20 -0
- package/src/locale/translations/ja.ts +20 -0
- package/src/locale/translations/pt.ts +20 -0
- package/src/locale/translations/ru.ts +20 -0
- package/src/locale/translations/tr.ts +20 -0
- package/src/locale/translations/zh.ts +20 -0
- package/src/platform-surface/context.ts +17 -0
- package/src/platform-surface/index.ts +1 -0
- package/src/platform-surface/types.ts +45 -0
- package/src/window/WindowControls.tsx +72 -18
- package/src/window/WindowLayouts.tsx +108 -0
- package/src/window/layouts-registry.ts +26 -0
- package/src/window/layouts.ts +12 -0
- package/src/window/messages.ts +42 -0
- package/src/window/types.ts +20 -1
- package/src/window/use-window.ts +14 -4
package/docs/adoption-matrix.mdx
CHANGED
|
@@ -174,7 +174,7 @@ None.
|
|
|
174
174
|
| `directions` | `@oxy.so/bloom/directions` + barrel | universal | `directions.mdx` | yes | 3 | | | | |
|
|
175
175
|
| `divider` | `@oxy.so/bloom/divider` + barrel | universal | `divider.mdx` | yes | 3 | | | | |
|
|
176
176
|
| `drop-zone` | `@oxy.so/bloom/drop-zone` + barrel | web fork | `drop-zone.mdx` | yes | 4 | | | | |
|
|
177
|
-
| `dropdown-menu` | `@oxy.so/bloom/dropdown-menu` + barrel | web fork | `dropdown-menu.mdx` | yes |
|
|
177
|
+
| `dropdown-menu` | `@oxy.so/bloom/dropdown-menu` + barrel | web fork | `dropdown-menu.mdx` | yes | 20 | | | reads | reads |
|
|
178
178
|
| `earnings` | `@oxy.so/bloom/earnings` + barrel | universal | `earnings.mdx` | yes | 2 | | | | reads |
|
|
179
179
|
| `empty-state` | `@oxy.so/bloom/empty-state` + barrel | universal | `empty-state.mdx` | yes | 4 | | | | |
|
|
180
180
|
| `engagement-bar` | `@oxy.so/bloom/engagement-bar` + barrel | universal | `engagement-bar.mdx` | yes | 1 | | reads | | |
|
|
@@ -265,7 +265,7 @@ None.
|
|
|
265
265
|
| `place-list` | `@oxy.so/bloom/place-list` + barrel | universal | `place-list.mdx` | yes | 2 | | | | |
|
|
266
266
|
| `place-picker` | `@oxy.so/bloom/place-picker` + barrel | universal | `place-picker.mdx` | yes | 2 | reads | reads | | |
|
|
267
267
|
| `place-reviews` | `@oxy.so/bloom/place-reviews` + barrel | universal | `place-reviews.mdx` | yes | 2 | | | | reads |
|
|
268
|
-
| `platform-surface` | `@oxy.so/bloom/platform-surface` + barrel | universal | `platform-surface.mdx` | yes |
|
|
268
|
+
| `platform-surface` | `@oxy.so/bloom/platform-surface` + barrel | universal | `platform-surface.mdx` | yes | 50 | | | | |
|
|
269
269
|
| `popover` | `@oxy.so/bloom/popover` + barrel | web fork | `popover.mdx` | yes | 18 | | | reads | reads |
|
|
270
270
|
| `portal` | `@oxy.so/bloom/portal` + barrel | web fork | `portal.mdx` | yes | 73 | | | | |
|
|
271
271
|
| `preferences` | `@oxy.so/bloom/preferences` + barrel | universal | `preferences.mdx` | yes | 2 | | | | |
|
|
@@ -275,7 +275,7 @@ None.
|
|
|
275
275
|
| `project-board` | `@oxy.so/bloom/project-board` + barrel | web fork | `project-board.mdx` | yes | 8 | n/a¹ | | | |
|
|
276
276
|
| `proof-of-delivery` | `@oxy.so/bloom/proof-of-delivery` + barrel | universal | `proof-of-delivery.mdx` | yes | 1 | | | | reads |
|
|
277
277
|
| `property-insights` | `@oxy.so/bloom/property-insights` + barrel | universal | `property-insights.mdx` | yes | 5 | | reads | | reads |
|
|
278
|
-
| `provider` | `@oxy.so/bloom/provider` | universal | `provider.mdx` | yes |
|
|
278
|
+
| `provider` | `@oxy.so/bloom/provider` | universal | `provider.mdx` | yes | 24 | | | | |
|
|
279
279
|
| `questionnaire` | `@oxy.so/bloom/questionnaire` + barrel | universal | `questionnaire.mdx` | yes | 3 | reads | | | reads |
|
|
280
280
|
| `queue-panel` | `@oxy.so/bloom/queue-panel` + barrel | web fork | `queue-panel.mdx` | yes | 4 | | | | reads |
|
|
281
281
|
| `radio` | `@oxy.so/bloom/radio` + barrel | universal | `radio.mdx` | yes | 12 | reads | reads | | reads |
|
|
@@ -340,6 +340,6 @@ None.
|
|
|
340
340
|
| `viewport` | `@oxy.so/bloom/viewport` + barrel | web fork | `viewport.mdx` | yes | 2 | | | | |
|
|
341
341
|
| `voice` | `@oxy.so/bloom/voice` + barrel | universal | `voice.mdx` | yes | 4 | | reads | | reads |
|
|
342
342
|
| `web-search` | `@oxy.so/bloom/web-search` + barrel | universal | `web-search.mdx` | yes | 2 | | | | |
|
|
343
|
-
| `window` | `@oxy.so/bloom/window` + barrel | universal | `window.mdx` | yes |
|
|
343
|
+
| `window` | `@oxy.so/bloom/window` + barrel | universal | `window.mdx` | yes | 8 | | | | |
|
|
344
344
|
| `wizard` | `@oxy.so/bloom/wizard` + barrel | web fork | `wizard.mdx` | yes | 1 | | | | |
|
|
345
345
|
| `zoomable-media-gallery` | `@oxy.so/bloom/zoomable-media-gallery` | web fork | `zoomable-media-gallery.mdx` | yes | 7 | | | | |
|
package/docs/dropdown-menu.mdx
CHANGED
|
@@ -334,6 +334,17 @@ nesting interactive controls. Primary activation cancels pending/open hover and
|
|
|
334
334
|
its open popup suppresses further hover. Escape returns focus without restarting
|
|
335
335
|
the dismissed preview. Default click activation is unchanged.
|
|
336
336
|
|
|
337
|
+
**Native, in a platform's popup** (a desktop with a pointer, OxyOS: the adapter reports
|
|
338
|
+
`popup-surface`), hover opens it as on the web: the pointer resting on the trigger for
|
|
339
|
+
`openDelay` opens the menu in the popup; leaving the trigger and the panel closes it after
|
|
340
|
+
`closeDelay` unless the pointer is back on either by then. The popup goes on tracking the pointer
|
|
341
|
+
over the trigger while it holds its grab (`PopupSurfaceProps.trackingRef`), so leaving the trigger
|
|
342
|
+
is heard. A key used in the panel (its arrows, typeahead) keeps it open, as focus does on the web,
|
|
343
|
+
and a menu opened by a long press or the keyboard closes only by a choice, Escape or a press
|
|
344
|
+
outside. A touch never opens it by hover, nor does a mouse where the menu is a phone's sheet.
|
|
345
|
+
The trigger declares React Native's `longpress` accessibility action, named "Show menu" as
|
|
346
|
+
`ContextMenu`'s is: the screen reader opens a hover menu as a long press does.
|
|
347
|
+
|
|
337
348
|
Keyboard opening retains its requested first/last row while lazy content loads;
|
|
338
349
|
arrival of an enabled row completes focus, and dismissal cancels the wait. Entering
|
|
339
350
|
with arrows also cancels a pending pointer-leave close.
|
|
@@ -129,9 +129,19 @@ interface PlatformWindow {
|
|
|
129
129
|
zoom(): void; // maximize or restore
|
|
130
130
|
startMove(): void; // from the press being handled
|
|
131
131
|
setSizeLimits?(limits: { minWidth: number; minHeight: number; maxWidth: number; maxHeight: number }): void; // 0 = no bound
|
|
132
|
+
layOut?(layout: PlatformWindowLayout): void; // with `window-layout`
|
|
133
|
+
moveToDesktop?(desktop: number): void; // with `window-layout`, where it has desktops
|
|
132
134
|
}
|
|
135
|
+
type PlatformWindowLayout =
|
|
136
|
+
| 'fill' | 'center' | 'left' | 'right' | 'top' | 'bottom'
|
|
137
|
+
| 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'
|
|
138
|
+
| 'leftRight' | 'rightLeft' | 'topBottom' | 'bottomTop' | 'quarters'
|
|
139
|
+
| 'returnToPrevious';
|
|
133
140
|
```
|
|
134
141
|
|
|
142
|
+
The state may say the platform's desktops and the one the window is on, from 0
|
|
143
|
+
(`desktops?: { count: number; current: number }`).
|
|
144
|
+
|
|
135
145
|
`getState()` and `subscribe()` are an external store, read with
|
|
136
146
|
`useSyncExternalStore`; a fresh but equal state object is not a change. Bloom
|
|
137
147
|
reads it through `@oxy.so/bloom/window` ([Window](/docs/window)): `AppShell`
|
|
@@ -141,6 +151,16 @@ reported, and an adapter that reports it without a window throws.
|
|
|
141
151
|
`setSizeLimits` is optional: a platform whose windows take any size leaves it
|
|
142
152
|
out, and `useWindowSizeLimits` then asks nothing.
|
|
143
153
|
|
|
154
|
+
### `window-layout`
|
|
155
|
+
|
|
156
|
+
With `window`, the platform lays the window out on its display as a Mac tiles
|
|
157
|
+
windows since macOS 15: `layOut(layout)` (required with the capability; an
|
|
158
|
+
adapter that reports it without one throws), and `moveToDesktop(desktop)` with
|
|
159
|
+
the state's `desktops` where it has desktops. The zoom control then shows the
|
|
160
|
+
layouts on hover, long press and "Show menu" ([Window](/docs/window)), once the
|
|
161
|
+
adapter has imported `@oxy.so/bloom/window/layouts`, which registers its menu. Without
|
|
162
|
+
it the zoom control only zooms. `usePlatformWindowLayout()` returns them, or null.
|
|
163
|
+
|
|
144
164
|
## `menu-bar`
|
|
145
165
|
|
|
146
166
|
The platform shows the active window's menus in a bar of its own: OxyOS's
|
package/docs/public-parts.mdx
CHANGED
|
@@ -8,7 +8,7 @@ order: 4
|
|
|
8
8
|
|
|
9
9
|
# Public React part census
|
|
10
10
|
|
|
11
|
-
The TypeScript checker resolves **
|
|
11
|
+
The TypeScript checker resolves **1486 React part-contract identities** through **937 native** and **937 web** package entrypoints. Aliases/namespaces and wildcard subpaths are retained below; platform implementations with the same normalized source path and symbol share one contract identity, even when their implementations differ. A family count or a hook import cannot establish part adoption.
|
|
12
12
|
|
|
13
13
|
The generator follows exported value symbols, star exports, namespace exports, default exports, callable static members, object-valued parts, memo/forwardRef/factory and class signatures. Cycles terminate by symbol and type; real aliases share identity while inline members retain their lexical owner. External part declarations retain their package provenance and do not establish a Bloom-owned implementation. React-callable exports with component names (including default/underscore names), exotic markers or element-return signatures are component candidates; lower-case aliases retain their resolved identity; ambiguous any/unknown values fail the unresolved-symbol gate. Type-only exports and lower-case scalar-return hooks/utilities are not components. Size vocabularies come from resolved prop types, including aliases, unions and subsets—not spelling patterns.
|
|
14
14
|
|
|
@@ -35,7 +35,7 @@ Classification is an explicit equality-checked ledger keyed by part-contract ide
|
|
|
35
35
|
| connection-dots-art | independent-scale | 1 | ConnectionDots is a relationship illustration, not a control. dotSize and dotCount are explicit artwork dimensions, so the row and dots do not consume BloomScope control size. The left/right endpoints are rendered as supplied and preserve caller and nested child-control scopes. Evidence: `src/connection-dots/ConnectionDots.tsx`, `src/connection-dots/ConnectionDots.web.tsx`, `src/connection-dots/ConnectionDotsBase.tsx`, `src/connection-dots/types.ts`, `docs/connection-dots.mdx`, `src/__tests__/ConnectionDotsPublicPartScope.test.tsx`, `src/__tests__/ConnectionDotsPublicPartScope.web.test.tsx`. Native-renderer and DOM web checks verify default md endpoints, inherited xs, nested lg, explicit child size, and independent dot diameter/count. This family does not own portals or submenus; physical-device geometry remains unverified.. |
|
|
36
36
|
| radio-control-size | applicable | 4 | Radio, RadioGroup and its default/chip/swatch variants, RadioChip, and RadioSwatch resolve the nearest BloomScope size. An explicit size overrides that scope; the variants retain distinct indicator, pill, and disc geometry. Evidence: `src/radio/Radio.tsx`, `src/radio/RadioChip.tsx`, `src/radio/RadioSwatch.tsx`, `src/__tests__/RadioPublicPartScope.test.tsx`, `src/__tests__/RadioPublicPartScope.web.test.tsx`. Native-renderer and DOM web suites verify unscoped md, nearest xs, nested lg over xs, explicit lg over xs, ordinary wrappers and a real portal for Radio, RadioGroup default/chip/swatch variants, RadioChip and RadioSwatch. These are renderer checks; physical geometry and device accessibility remain pending. These parts own no submenu. |
|
|
37
37
|
| checkbox-switch-controls | applicable | 2 | Checkbox and Switch own interactive controls whose box, label recipe, track and thumb geometry resolve BloomScope size. Explicit size overrides the nearest scope; this is the standard control size contract, not content or artwork density. Evidence: `src/checkbox/Checkbox.tsx`, `src/switch/Switch.tsx`, `src/__tests__/CheckboxSwitchPublicPartScope.test.tsx`, `src/__tests__/CheckboxSwitchPublicPartScope.web.test.tsx`. Native-renderer and DOM web suites verify default md, nearest xs, nested lg over xs, explicit lg over xs, ordinary wrappers and an actual portal for both controls; physical geometry, assistive-technology behavior and device accessibility remain pending. These parts own no submenu. |
|
|
38
|
-
| pending | pending |
|
|
38
|
+
| pending | pending | 801 | Public React identity and prop vocabulary are enumerated, but per-part applicability/delegation and complete runtime matrix have not yet been audited. Family hook imports and transitive reachability grant no conformance. Evidence: none yet. pending; not a passing adoption verdict. |
|
|
39
39
|
| navigation-layout | independent-scale | 3 | PageHeader, TabBar and BottomBar own screen chrome, measured edge claims, safe areas and expanded/minimized navigation geometry, not a canonical control-size prop. Preserve those role-specific layout recipes; their separately exported controls/parts still need their own applicability audit. Native and web runtime tests verify the fixed header/tab/navigation dimensions remain stable under xs and lg BloomScope; fixed chrome dimensions do not establish that targets inside or surrounding controls meet touch contracts. Evidence: `src/page-header/PageHeader.tsx`, `src/tab-bar/TabBarBase.tsx`, `src/bottom-bar/BottomBarBase.tsx`, `src/__tests__/NavigationPublicPartScope.test.tsx`, `src/__tests__/NavigationPublicPartScope.web.test.tsx`. mock-rendered native styles and DOM-computed web styles compare PageHeader navigation min-height 44, TabBar pill height 58 and BottomBar height 74 under xs and lg BloomScope; physical layout, control proportions and target matrix pending. |
|
|
40
40
|
| historical-scope-regression | applicable | 9 | These are the size-consuming parts repaired in #417, not new gaps inferred from the historical family table. The existing web regression checks defaults, inherited rungs, nested scopes and explicit overrides; Tooltip content parts also cross their real web portal. Keep each existing recipe and partial mapping. Evidence: `src/__tests__/InheritedControlSize.web.test.tsx`, `src/__tests__/Voice.test.tsx`, `src/__tests__/ChatPeople.test.tsx`, `src/__tests__/CreatorStudio.test.tsx`, `src/__tests__/OfferingBadge.test.tsx`. existing web scope regressions rerun; native family regressions rerun but complete per-part native scope/portal and device matrix remains pending. |
|
|
41
41
|
| external-router-parts | pending | 6 | Expo Router Link static parts are forwarded by Object.assign in the router adapter. Their declarations and implementations belong to the external package; inclusion records the public contract, not BloomScope adoption or a Bloom-owned implementation. Each part still needs semantic and platform review. Evidence: `src/panel-routing/expo-router/PanelRouterAdapter.tsx`, `src/__tests__/public-parts.test.ts`. Type-resolved native/web routes and declaration provenance only; external runtime behavior and size semantics remain unaudited. |
|
|
@@ -1550,6 +1550,7 @@ Routes use `native:` / `web:` followed by the package subpath and export name. `
|
|
|
1550
1550
|
| `src/web-search/WebSearch.tsx#WebSearch` (`src/web-search/WebSearch.tsx`) | `native:.#WebSearch` · `native:./web-search#WebSearch` · `web:.#WebSearch` · `web:./web-search#WebSearch` | no public size prop | pending |
|
|
1551
1551
|
| `src/window/WindowControls.tsx#WindowControls` (`src/window/WindowControls.tsx`) | `native:.#WindowControls` · `native:./window#WindowControls` · `web:.#WindowControls` · `web:./window#WindowControls` | no public size prop | pending |
|
|
1552
1552
|
| `src/window/WindowDragRegion.tsx#WindowDragRegion` (`src/window/WindowDragRegion.tsx`) | `native:.#WindowDragRegion` · `native:./window#WindowDragRegion` · `web:.#WindowDragRegion` · `web:./window#WindowDragRegion` | no public size prop | pending |
|
|
1553
|
+
| `src/window/WindowLayouts.tsx#WindowLayouts` (`src/window/WindowLayouts.tsx`) | `native:./window/layouts#WindowLayouts` · `web:./window/layouts#WindowLayouts` | no public size prop | pending |
|
|
1553
1554
|
| `src/wizard/WizardFooter.tsx#WizardFooter` (`src/wizard/WizardFooter.tsx`, `src/wizard/WizardFooter.web.tsx`) | `native:.#WizardFooter` · `native:./wizard#WizardFooter` · `web:.#WizardFooter` · `web:./wizard#WizardFooter` | no public size prop | pending |
|
|
1554
1555
|
| `src/wizard/WizardProgress.tsx#WizardProgress` (`src/wizard/WizardProgress.tsx`) | `native:.#WizardProgress` · `native:./wizard#WizardProgress` · `web:.#WizardProgress` · `web:./wizard#WizardProgress` | no public size prop | pending |
|
|
1555
1556
|
| `src/zoomable-media-gallery/ZoomableMediaGallery.tsx#ZoomableMediaGallery` (`src/zoomable-media-gallery/ZoomableMediaGallery.tsx`, `src/zoomable-media-gallery/ZoomableMediaGallery.web.tsx`) | `native:./zoomable-image-gallery#ZoomableMediaGallery` · `native:./zoomable-image-gallery#default` · `native:./zoomable-media-gallery#ZoomableMediaGallery` · `native:./zoomable-media-gallery#default` · `web:./zoomable-image-gallery#ZoomableMediaGallery` · `web:./zoomable-image-gallery#default` · `web:./zoomable-media-gallery#ZoomableMediaGallery` · `web:./zoomable-media-gallery#default` | no public size prop | pending |
|
package/docs/task-catalog.json
CHANGED
package/docs/task-catalog.mdx
CHANGED
|
@@ -8,7 +8,7 @@ order: 1
|
|
|
8
8
|
|
|
9
9
|
# Choose an API by task
|
|
10
10
|
|
|
11
|
-
This guide belongs to **@oxy.so/bloom 21.
|
|
11
|
+
This guide belongs to **@oxy.so/bloom 21.7.0**. Read it from the installed package alongside [the structured index](./task-catalog.json). A source build version is not a registry-publication receipt. Use the containing package’s manifest for exact peer ranges.
|
|
12
12
|
|
|
13
13
|
Start under the application’s BloomProvider and follow [getting started](./getting-started.mdx) for CSS, fonts and platform setup. These examples accept domain content/actions and require a bounded host. They do not add a provider per route. For document scrolling, follow [the host contract](./compose-layouts.mdx); Expo’s bounded reset must not silently prevent document overflow.
|
|
14
14
|
|
package/docs/window.mdx
CHANGED
|
@@ -38,7 +38,9 @@ The window's state and the actions on it, or `null` without the capability:
|
|
|
38
38
|
platform draws its own, as a Mac does, and Bloom only keeps their room);
|
|
39
39
|
- `metrics`: the controls' box and their room, from the window's top and its
|
|
40
40
|
leading edge, and the window's corner radius;
|
|
41
|
-
- `close()`, `minimize()`, `zoom()` (maximize or restore) and `startMove()
|
|
41
|
+
- `close()`, `minimize()`, `zoom()` (maximize or restore) and `startMove()`;
|
|
42
|
+
- with the `window-layout` capability, `layOut(layout)`, and where the platform has desktops
|
|
43
|
+
`desktops` (`{ count, current }`, from 0) and `moveToDesktop(desktop)`.
|
|
42
44
|
|
|
43
45
|
## `useWindowSizeLimits({ minWidth, minHeight, maxWidth, maxHeight })`
|
|
44
46
|
|
|
@@ -99,6 +101,33 @@ from the top and the first 24 from the leading edge.
|
|
|
99
101
|
It draws nothing without the capability, where `controls` is `platform`, and
|
|
100
102
|
while the window is full screen.
|
|
101
103
|
|
|
104
|
+
### The zoom control's layouts (`window-layout`)
|
|
105
|
+
|
|
106
|
+
Where the platform lays windows out (the `window-layout` capability, OxyOS), the zoom control shows
|
|
107
|
+
the window's layouts as a Mac's green button does since macOS 15. Its press still zooms.
|
|
108
|
+
|
|
109
|
+
The platform's adapter that reports `window-layout` imports `@oxy.so/bloom/window/layouts`, which
|
|
110
|
+
registers the menu (`WindowLayouts`) for `WindowControls`. `WindowControls` never imports it
|
|
111
|
+
itself, so a window's controls everywhere else (a web page, a settings modal, a phone's screen)
|
|
112
|
+
link no `DropdownMenu` through them. Reported without the import, the zoom control only zooms, and
|
|
113
|
+
development warns once.
|
|
114
|
+
|
|
115
|
+
- **It opens** as the pointer rests on the control for half a second, on a long press, or by the
|
|
116
|
+
screen reader's "Show menu" action on it (React Native's `longpress`), in the platform's popup
|
|
117
|
+
anchored to the control. It closes as the pointer leaves the control and the menu, unless a key
|
|
118
|
+
was used in it; a choice, Escape or a press outside close it too.
|
|
119
|
+
- **Its rows**, Bloom's menu rows driven by the arrows, typeahead and Return, each named by its
|
|
120
|
+
label in the app's locale, the menu "Window layouts":
|
|
121
|
+
- *Move & Resize*: Left, Right, Top, Bottom, then Top Left, Top Right, Bottom Left, Bottom Right;
|
|
122
|
+
- *Fill & Arrange*: Fill, Center, then Left & Right, Right & Left, Top & Bottom, Bottom & Top
|
|
123
|
+
and Quarters (the window with those behind it);
|
|
124
|
+
- Return to Previous Size;
|
|
125
|
+
- where the platform has desktops, Move to Desktop *n* for each other one, numbered from 1.
|
|
126
|
+
- **A row asks the platform** (`layOut('left')`, `moveToDesktop(2)`); the platform does it as its
|
|
127
|
+
own tiling does (`PlatformWindowLayout`).
|
|
128
|
+
- **Test ids**: with `testID`, the menu is `${testID}-layouts`, its rows `${testID}-layouts-${layout}`
|
|
129
|
+
and `${testID}-layouts-desktop-${n}`.
|
|
130
|
+
|
|
102
131
|
## `WindowDragRegion`
|
|
103
132
|
|
|
104
133
|
A `View` that is the window's empty chrome: a press on it that no control
|
|
@@ -23,8 +23,12 @@ var _TriggerSlot = require("../floating/TriggerSlot.js");
|
|
|
23
23
|
var _menuKeyboard = require("../floating/menu-keyboard.js");
|
|
24
24
|
var _useSheetOpenBridge = require("../floating/use-sheet-open-bridge.js");
|
|
25
25
|
var _useControllableState = require("../hooks/use-controllable-state.js");
|
|
26
|
+
var _constants2 = require("../hover-card/constants.js");
|
|
27
|
+
var _useHoverIntent = require("../hover-card/use-hover-intent.js");
|
|
26
28
|
var _context3 = require("./context.js");
|
|
27
29
|
var _commonMessages = require("../locale/common-messages.js");
|
|
30
|
+
var _messages = require("../context-menu/messages.js");
|
|
31
|
+
var _messages2 = require("../locale/messages.js");
|
|
28
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
33
|
var cache;
|
|
30
34
|
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
@@ -46,14 +50,23 @@ function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e;
|
|
|
46
50
|
*
|
|
47
51
|
* The rows come from `floating/menu-rows`, the same set `ContextMenu` and
|
|
48
52
|
* `Menubar` publish under their own prefixes.
|
|
53
|
+
*
|
|
54
|
+
* `activation="hover"` in a platform popup (a desktop with a pointer): the pointer resting on
|
|
55
|
+
* the trigger for `openDelay` opens the menu, as a long press does; leaving the trigger and the
|
|
56
|
+
* panel closes it after `closeDelay`, unless it is back on either by then or a key was used in the
|
|
57
|
+
* panel (the keyboard then has it, as on the web). The popup goes on tracking the pointer over
|
|
58
|
+
* the trigger while it holds its grab (`trackingRef`). The trigger's own press is unchanged.
|
|
49
59
|
*/
|
|
50
60
|
|
|
61
|
+
/** React Native's standard accessibility action for a long press (TalkBack's, a reader's). */const LONG_PRESS_ACTION = 'longpress';
|
|
51
62
|
function DropdownMenu({
|
|
52
63
|
children,
|
|
53
64
|
open,
|
|
54
65
|
defaultOpen = false,
|
|
55
66
|
onOpenChange,
|
|
56
67
|
activation = 'click',
|
|
68
|
+
openDelay = _constants2.HOVER_CARD_OPEN_DELAY,
|
|
69
|
+
closeDelay = _constants2.HOVER_CARD_CLOSE_DELAY,
|
|
57
70
|
openFocus
|
|
58
71
|
}) {
|
|
59
72
|
const [isOpen, setOpen] = (0, _useControllableState.useControllableState)({
|
|
@@ -65,22 +78,54 @@ function DropdownMenu({
|
|
|
65
78
|
// An open from the owner's keys starts with a row active in a platform popup, as on a Mac.
|
|
66
79
|
const focusIntent = (0, _menuKeyboard.useMenuFocusIntent)();
|
|
67
80
|
(0, _menuKeyboard.useOpenFocus)(focusIntent, isOpen, openFocus);
|
|
81
|
+
const intent = (0, _useHoverIntent.useHoverIntent)(isOpen, setOpen, openDelay, closeDelay);
|
|
82
|
+
// Opened by the pointer resting on the trigger, and none of its keys used since: the pointer
|
|
83
|
+
// leaving closes it. Opened any other way, only a choice, Escape or a press outside does.
|
|
84
|
+
const byHover = (0, _react.useRef)(false);
|
|
85
|
+
const latestOpen = (0, _react.useRef)(isOpen);
|
|
86
|
+
latestOpen.current = isOpen;
|
|
68
87
|
const primaryOpen = (0, _react.useRef)(false);
|
|
69
88
|
const setMenuOpen = (0, _react.useCallback)(next => {
|
|
70
|
-
if (
|
|
71
|
-
|
|
89
|
+
if (next && primaryOpen.current) return;
|
|
90
|
+
intent.hold();
|
|
91
|
+
byHover.current = false;
|
|
92
|
+
setOpen(next);
|
|
93
|
+
}, [intent, setOpen]);
|
|
72
94
|
const onPrimaryOpenChange = (0, _react.useCallback)(next => {
|
|
73
95
|
primaryOpen.current = next;
|
|
74
|
-
if (next)
|
|
75
|
-
}, [
|
|
96
|
+
if (next) setMenuOpen(false);
|
|
97
|
+
}, [setMenuOpen]);
|
|
98
|
+
const hover = (0, _react.useMemo)(() => ({
|
|
99
|
+
enter: () => {
|
|
100
|
+
if (primaryOpen.current) return;
|
|
101
|
+
if (!latestOpen.current) byHover.current = true;
|
|
102
|
+
intent.show();
|
|
103
|
+
},
|
|
104
|
+
show: () => {
|
|
105
|
+
if (!primaryOpen.current) intent.show();
|
|
106
|
+
},
|
|
107
|
+
hide: () => {
|
|
108
|
+
// A pending open is dropped; an open menu closes only if hover opened it.
|
|
109
|
+
if (!latestOpen.current || byHover.current) intent.hide();
|
|
110
|
+
},
|
|
111
|
+
hold: intent.hold,
|
|
112
|
+
dismiss: () => setMenuOpen(false),
|
|
113
|
+
key: () => {
|
|
114
|
+
byHover.current = false;
|
|
115
|
+
intent.hold();
|
|
116
|
+
}
|
|
117
|
+
}), [intent, setMenuOpen]);
|
|
76
118
|
const value = (0, _react.useMemo)(() => ({
|
|
77
119
|
open: isOpen,
|
|
78
120
|
setOpen: setMenuOpen,
|
|
79
121
|
anchorRef,
|
|
80
122
|
focusIntent,
|
|
81
123
|
activation,
|
|
124
|
+
...(activation === 'hover' ? {
|
|
125
|
+
hover
|
|
126
|
+
} : null),
|
|
82
127
|
onPrimaryOpenChange
|
|
83
|
-
}), [isOpen, setMenuOpen, focusIntent, activation, onPrimaryOpenChange]);
|
|
128
|
+
}), [isOpen, setMenuOpen, focusIntent, activation, hover, onPrimaryOpenChange]);
|
|
84
129
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context3.DropdownMenuProvider, {
|
|
85
130
|
value: value,
|
|
86
131
|
children: children
|
|
@@ -98,6 +143,22 @@ function DropdownMenuTrigger({
|
|
|
98
143
|
restoreFocus
|
|
99
144
|
}) {
|
|
100
145
|
const menu = (0, _context3.useDropdownMenu)();
|
|
146
|
+
// Hover opens it only where it is a desktop's popup: never a phone's sheet.
|
|
147
|
+
const hover = (0, _context.usePopupSurface)() ? menu.hover : undefined;
|
|
148
|
+
// A menu that opens on hover opens from the screen reader as a long press opens it, by the
|
|
149
|
+
// trigger's `longpress` action ("Show menu"), as `ContextMenu`'s does.
|
|
150
|
+
const {
|
|
151
|
+
messages
|
|
152
|
+
} = (0, _messages2.useMessages)(_messages.CONTEXT_MENU_MESSAGES);
|
|
153
|
+
const showMenu = menu.activation === 'hover' && !disabled ? {
|
|
154
|
+
accessibilityActions: [{
|
|
155
|
+
name: LONG_PRESS_ACTION,
|
|
156
|
+
label: messages.showMenu
|
|
157
|
+
}],
|
|
158
|
+
onAccessibilityAction: event => {
|
|
159
|
+
if (event.nativeEvent.actionName === LONG_PRESS_ACTION) menu.setOpen(true);
|
|
160
|
+
}
|
|
161
|
+
} : null;
|
|
101
162
|
const primaryAction = pressTrigger != null || /*#__PURE__*/_react.default.isValidElement(children) && (children.props.onPress != null || children.props.href != null);
|
|
102
163
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
|
|
103
164
|
asChild: asChild,
|
|
@@ -105,12 +166,19 @@ function DropdownMenuTrigger({
|
|
|
105
166
|
onPrimaryOpenChange: menu.onPrimaryOpenChange,
|
|
106
167
|
anchorRef: menu.anchorRef,
|
|
107
168
|
restoreFocus: restoreFocus,
|
|
169
|
+
onPointerEnter: hover ? event => {
|
|
170
|
+
if (pointerTypeOf(event) !== 'touch') hover.enter();
|
|
171
|
+
} : undefined,
|
|
172
|
+
onPointerLeave: hover ? event => {
|
|
173
|
+
if (pointerTypeOf(event) !== 'touch') hover.hide();
|
|
174
|
+
} : undefined,
|
|
108
175
|
className: className,
|
|
109
176
|
style: style,
|
|
110
177
|
testID: testID,
|
|
111
178
|
handle: {
|
|
112
179
|
onPress: () => menu.setOpen(menu.activation !== 'hover' || !primaryAction),
|
|
113
180
|
onLongPress: menu.activation === 'hover' ? () => menu.setOpen(true) : undefined,
|
|
181
|
+
...showMenu,
|
|
114
182
|
disabled,
|
|
115
183
|
accessibilityLabel: label,
|
|
116
184
|
accessibilityRole: menu.activation === 'hover' && asChild ? undefined : 'button',
|
|
@@ -165,7 +233,14 @@ function DropdownMenuContent({
|
|
|
165
233
|
label: label,
|
|
166
234
|
focusIntent: menu.focusIntent,
|
|
167
235
|
onDismiss: () => menu.setOpen(false),
|
|
168
|
-
onClose: () => menu.setOpen(false)
|
|
236
|
+
onClose: () => menu.setOpen(false)
|
|
237
|
+
// Hover: the pointer over the trigger goes on reaching it while the popup is open, and
|
|
238
|
+
// the pointer on the panel or a key in it keeps the menu open.
|
|
239
|
+
,
|
|
240
|
+
trackingRef: menu.hover ? menu.anchorRef : undefined,
|
|
241
|
+
onPointerEnter: menu.hover?.hold,
|
|
242
|
+
onPointerLeave: menu.hover?.hide,
|
|
243
|
+
onKey: menu.hover?.key,
|
|
169
244
|
minWidth: minWidth,
|
|
170
245
|
maxWidth: maxWidth,
|
|
171
246
|
maxHeight: maxHeight,
|
|
@@ -204,6 +279,11 @@ function DropdownMenuContent({
|
|
|
204
279
|
})
|
|
205
280
|
});
|
|
206
281
|
}
|
|
282
|
+
|
|
283
|
+
/** A pointer event's kind (`mouse`, `pen`, `touch`). */
|
|
284
|
+
function pointerTypeOf(event) {
|
|
285
|
+
return event.nativeEvent?.pointerType;
|
|
286
|
+
}
|
|
207
287
|
const rows = (0, _menuRows.createMenuRows)('DropdownMenu', _menuSubInline.createInlineMenuSub);
|
|
208
288
|
const DropdownMenuItem = exports.DropdownMenuItem = rows.Item;
|
|
209
289
|
const DropdownMenuCheckboxItem = exports.DropdownMenuCheckboxItem = rows.CheckboxItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_useMenuDensity","require","_index","_react","_interopRequireWildcard","_SheetShell","_PopupPanel","_context","_constants","_context2","_menuRowAlignment","_menuRows","_menuSubInline","_TriggerSlot","_menuKeyboard","_useSheetOpenBridge","_useControllableState","_context3","_commonMessages","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","DropdownMenu","children","open","defaultOpen","onOpenChange","activation","openFocus","isOpen","setOpen","useControllableState","value","defaultValue","onChange","anchorRef","useRef","focusIntent","useMenuFocusIntent","useOpenFocus","primaryOpen","setMenuOpen","useCallback","next","current","onPrimaryOpenChange","useMemo","jsx","DropdownMenuProvider","DropdownMenuTrigger","asChild","disabled","label","className","style","testID","pressTrigger","restoreFocus","menu","useDropdownMenu","primaryAction","React","isValidElement","props","onPress","href","TriggerSlot","handle","onLongPress","undefined","accessibilityLabel","accessibilityRole","MENU_TRIGGER_POPUP","DropdownMenuContent","alignRows","size","labelProp","side","align","sideOffset","alignOffset","minWidth","maxWidth","maxHeight","density","useMenuDensity","common","useCommonMessages","PopupSurface","usePopupSurface","control","onSheetClose","useSheetOpenBridge","surface","close","presentation","BloomScope","PopupPanel","role","onDismiss","onClose","MenuSurfaceProvider","MenuRowAlignmentScope","enabled","SheetShell","anchored","contentClassName","contentStyle","gap","contentTestID","rows","createMenuRows","createInlineMenuSub","DropdownMenuItem","exports","Item","DropdownMenuCheckboxItem","CheckboxItem","DropdownMenuRadioGroup","RadioGroup","DropdownMenuRadioItem","RadioItem","DropdownMenuLabel","Label","DropdownMenuSeparator","Separator","DropdownMenuShortcut","Shortcut","DropdownMenuGroup","Group","DropdownMenuSwatchRow","SwatchRow","DropdownMenuSub","Sub","DropdownMenuSubTrigger","SubTrigger","DropdownMenuSubContent","SubContent"],"sourceRoot":"../../../src","sources":["dropdown-menu/DropdownMenu.tsx"],"mappings":";;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAoBA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AAGA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,aAAA,GAAAb,OAAA;AACA,IAAAc,mBAAA,GAAAd,OAAA;AACA,IAAAe,qBAAA,GAAAf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version":3,"names":["_useMenuDensity","require","_index","_react","_interopRequireWildcard","_SheetShell","_PopupPanel","_context","_constants","_context2","_menuRowAlignment","_menuRows","_menuSubInline","_TriggerSlot","_menuKeyboard","_useSheetOpenBridge","_useControllableState","_constants2","_useHoverIntent","_context3","_commonMessages","_messages","_messages2","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","LONG_PRESS_ACTION","DropdownMenu","children","open","defaultOpen","onOpenChange","activation","openDelay","HOVER_CARD_OPEN_DELAY","closeDelay","HOVER_CARD_CLOSE_DELAY","openFocus","isOpen","setOpen","useControllableState","value","defaultValue","onChange","anchorRef","useRef","focusIntent","useMenuFocusIntent","useOpenFocus","intent","useHoverIntent","byHover","latestOpen","current","primaryOpen","setMenuOpen","useCallback","next","hold","onPrimaryOpenChange","hover","useMemo","enter","show","hide","dismiss","key","jsx","DropdownMenuProvider","DropdownMenuTrigger","asChild","disabled","label","className","style","testID","pressTrigger","restoreFocus","menu","useDropdownMenu","usePopupSurface","undefined","messages","useMessages","CONTEXT_MENU_MESSAGES","showMenu","accessibilityActions","name","onAccessibilityAction","event","nativeEvent","actionName","primaryAction","React","isValidElement","props","onPress","href","TriggerSlot","onPointerEnter","pointerTypeOf","onPointerLeave","handle","onLongPress","accessibilityLabel","accessibilityRole","MENU_TRIGGER_POPUP","DropdownMenuContent","alignRows","size","labelProp","side","align","sideOffset","alignOffset","minWidth","maxWidth","maxHeight","density","useMenuDensity","common","useCommonMessages","PopupSurface","control","onSheetClose","useSheetOpenBridge","surface","close","presentation","BloomScope","PopupPanel","role","onDismiss","onClose","trackingRef","onKey","MenuSurfaceProvider","MenuRowAlignmentScope","enabled","SheetShell","anchored","contentClassName","contentStyle","gap","contentTestID","pointerType","rows","createMenuRows","createInlineMenuSub","DropdownMenuItem","exports","Item","DropdownMenuCheckboxItem","CheckboxItem","DropdownMenuRadioGroup","RadioGroup","DropdownMenuRadioItem","RadioItem","DropdownMenuLabel","Label","DropdownMenuSeparator","Separator","DropdownMenuShortcut","Shortcut","DropdownMenuGroup","Group","DropdownMenuSwatchRow","SwatchRow","DropdownMenuSub","Sub","DropdownMenuSubTrigger","SubTrigger","DropdownMenuSubContent","SubContent"],"sourceRoot":"../../../src","sources":["dropdown-menu/DropdownMenu.tsx"],"mappings":";;;;;;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA0BA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AAGA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,aAAA,GAAAb,OAAA;AACA,IAAAc,mBAAA,GAAAd,OAAA;AACA,IAAAe,qBAAA,GAAAf,OAAA;AACA,IAAAgB,WAAA,GAAAhB,OAAA;AACA,IAAAiB,eAAA,GAAAjB,OAAA;AACA,IAAAkB,SAAA,GAAAlB,OAAA;AAMA,IAAAmB,eAAA,GAAAnB,OAAA;AACA,IAAAoB,SAAA,GAAApB,OAAA;AACA,IAAAqB,UAAA,GAAArB,OAAA;AAAiD,IAAAsB,WAAA,GAAAtB,OAAA;AAAA,IAAAuB,KAAA;AAAA,SAAApB,wBAAAqB,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,M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C,IAAI,GAAG,IAAAC,wBAAc,EAAC,cAAc,EAAEC,kCAAmB,CAAC;AAEzD,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAGH,IAAI,CAACK,IAAI;AAClC,MAAMC,wBAAwB,GAAAF,OAAA,CAAAE,wBAAA,GAAGN,IAAI,CAACO,YAAY;AAClD,MAAMC,sBAAsB,GAAAJ,OAAA,CAAAI,sBAAA,GAAGR,IAAI,CAACS,UAAU;AAC9C,MAAMC,qBAAqB,GAAAN,OAAA,CAAAM,qBAAA,GAAGV,IAAI,CAACW,SAAS;AAC5C,MAAMC,iBAAiB,GAAAR,OAAA,CAAAQ,iBAAA,GAAGZ,IAAI,CAACa,KAAK;AACpC,MAAMC,qBAAqB,GAAAV,OAAA,CAAAU,qBAAA,GAAGd,IAAI,CAACe,SAAS;AAC5C,MAAMC,oBAAoB,GAAAZ,OAAA,CAAAY,oBAAA,GAAGhB,IAAI,CAACiB,QAAQ;AAC1C,MAAMC,iBAAiB,GAAAd,OAAA,CAAAc,iBAAA,GAAGlB,IAAI,CAACmB,KAAK;AACpC,MAAMC,qBAAqB,GAAAhB,OAAA,CAAAgB,qBAAA,GAAGpB,IAAI,CAACqB,SAAS;AAC5C,MAAMC,eAAe,GAAAlB,OAAA,CAAAkB,eAAA,GAAGtB,IAAI,CAACuB,GAAG;AAChC,MAAMC,sBAAsB,GAAApB,OAAA,CAAAoB,sBAAA,GAAGxB,IAAI,CAACyB,UAAU;AAC9C,MAAMC,sBAAsB,GAAAtB,OAAA,CAAAsB,sBAAA,GAAG1B,IAAI,CAAC2B,UAAU","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","DropdownMenuContext","createContext","displayName","DropdownMenuProvider","exports","Provider","useDropdownMenu","value","useContext","Error"],"sourceRoot":"../../../src","sources":["dropdown-menu/context.ts"],"mappings":";;;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_react","require","DropdownMenuContext","createContext","displayName","DropdownMenuProvider","exports","Provider","useDropdownMenu","value","useContext","Error"],"sourceRoot":"../../../src","sources":["dropdown-menu/context.ts"],"mappings":";;;;;;;AAOA,IAAAA,MAAA,GAAAC,OAAA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqBA,MAAMC,mBAAmB,gBAAG,IAAAC,oBAAa,EAAkC,IAAI,CAAC;AAChFD,mBAAmB,CAACE,WAAW,GAAG,0BAA0B;AAErD,MAAMC,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGH,mBAAmB,CAACK,QAAQ;AAEzD,SAASC,eAAeA,CAAA,EAA6B;EAC1D,MAAMC,KAAK,GAAG,IAAAC,iBAAU,EAACR,mBAAmB,CAAC;EAC7C,IAAI,CAACO,KAAK,EAAE;IACV,MAAM,IAAIE,KAAK,CAAC,8DAA8D,CAAC;EACjF;EACA,OAAOF,KAAK;AACd","ignoreList":[]}
|
|
@@ -75,6 +75,8 @@ function PopupPanelSurface({
|
|
|
75
75
|
style,
|
|
76
76
|
panelRef,
|
|
77
77
|
edge = POPUP_PANEL_BORDER,
|
|
78
|
+
onPointerEnter,
|
|
79
|
+
onPointerLeave,
|
|
78
80
|
children
|
|
79
81
|
}) {
|
|
80
82
|
const palette = (0, _menuPalette.useMenuPalette)();
|
|
@@ -83,6 +85,8 @@ function PopupPanelSurface({
|
|
|
83
85
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styledPrimitives.StyledView, {
|
|
84
86
|
ref: panelRef,
|
|
85
87
|
className: className,
|
|
88
|
+
onPointerEnter: onPointerEnter,
|
|
89
|
+
onPointerLeave: onPointerLeave,
|
|
86
90
|
style: [styles.panel, {
|
|
87
91
|
borderWidth: edge,
|
|
88
92
|
boxShadow: palette.shadow
|
|
@@ -126,11 +130,15 @@ function PopupPanelChrome({
|
|
|
126
130
|
className,
|
|
127
131
|
style,
|
|
128
132
|
panelRef,
|
|
133
|
+
onPointerEnter,
|
|
134
|
+
onPointerLeave,
|
|
129
135
|
children
|
|
130
136
|
}) {
|
|
131
137
|
const density = (0, _useMenuDensity.useMenuDensity)();
|
|
132
138
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PopupPanelSurface, {
|
|
133
139
|
panelRef: panelRef,
|
|
140
|
+
onPointerEnter: onPointerEnter,
|
|
141
|
+
onPointerLeave: onPointerLeave,
|
|
134
142
|
className: className,
|
|
135
143
|
style: [
|
|
136
144
|
// `MENU_WIDTH`, or a desktop's floor: there a menu is as wide as its widest row.
|
|
@@ -160,6 +168,9 @@ function PopupPanel({
|
|
|
160
168
|
onClose,
|
|
161
169
|
focusIntent,
|
|
162
170
|
navigationRef,
|
|
171
|
+
onPointerEnter,
|
|
172
|
+
onPointerLeave,
|
|
173
|
+
onKey,
|
|
163
174
|
minWidth,
|
|
164
175
|
maxWidth,
|
|
165
176
|
maxHeight,
|
|
@@ -200,10 +211,15 @@ function PopupPanel({
|
|
|
200
211
|
role: role,
|
|
201
212
|
label: label,
|
|
202
213
|
onDismiss: onDismiss,
|
|
203
|
-
onKey:
|
|
214
|
+
onKey: onKey ? key => {
|
|
215
|
+
onKey(key);
|
|
216
|
+
navigation.onKey(key);
|
|
217
|
+
} : navigation.onKey,
|
|
204
218
|
testID: testID,
|
|
205
219
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PopupPanelChrome, {
|
|
206
220
|
panelRef: panelRef,
|
|
221
|
+
onPointerEnter: onPointerEnter,
|
|
222
|
+
onPointerLeave: onPointerLeave,
|
|
207
223
|
minWidth: minWidth,
|
|
208
224
|
maxWidth: maxWidth,
|
|
209
225
|
maxHeight: maxHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_styledPrimitives","_SurfacePaint","_constants","_menuPalette","_useMenuDensity","_escapeStack","_popupNavigation","_useAccessibilityFocus","_jsxRuntime","PANEL_RADIUS","POPUP_PANEL_BORDER","exports","PopupSurfaceContext","createContext","usePanelPopupSurface","useContext","PopupPanelScope","PopupSurface","children","jsx","Provider","value","PopupPanelSurface","className","style","panelRef","edge","palette","useMenuPalette","radius","useMenuDensity","panelRadius","jsxs","StyledView","ref","styles","panel","borderWidth","boxShadow","shadow","borderRadius","SurfacePaint","fill","surface","outset","floating","PopupPanelRows","density","rows","gap","PopupPanelChrome","minWidth","maxWidth","maxHeight","padding","panelPadding","PopupPanel","anchorRef","point","trackingRef","side","align","sideOffset","DEFAULT_SIDE_OFFSET","alignOffset","DEFAULT_ALIGN_OFFSET","role","label","onDismiss","onClose","focusIntent","navigationRef","testID","openedOnRow","useState","current","navigation","usePopupNavigation","onCloseRef","useRef","useEffect","pushFloatingEscape","useAccessibilityFocus","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_styledPrimitives","_SurfacePaint","_constants","_menuPalette","_useMenuDensity","_escapeStack","_popupNavigation","_useAccessibilityFocus","_jsxRuntime","PANEL_RADIUS","POPUP_PANEL_BORDER","exports","PopupSurfaceContext","createContext","usePanelPopupSurface","useContext","PopupPanelScope","PopupSurface","children","jsx","Provider","value","PopupPanelSurface","className","style","panelRef","edge","onPointerEnter","onPointerLeave","palette","useMenuPalette","radius","useMenuDensity","panelRadius","jsxs","StyledView","ref","styles","panel","borderWidth","boxShadow","shadow","borderRadius","SurfacePaint","fill","surface","outset","floating","PopupPanelRows","density","rows","gap","PopupPanelChrome","minWidth","maxWidth","maxHeight","padding","panelPadding","PopupPanel","anchorRef","point","trackingRef","side","align","sideOffset","DEFAULT_SIDE_OFFSET","alignOffset","DEFAULT_ALIGN_OFFSET","role","label","onDismiss","onClose","focusIntent","navigationRef","onKey","testID","openedOnRow","useState","current","navigation","usePopupNavigation","onCloseRef","useRef","useEffect","pushFloatingEscape","useAccessibilityFocus","key","provider","StyleSheet","create","borderColor","overflow","flexShrink","minHeight"],"sourceRoot":"../../../src","sources":["floating/PopupPanel.tsx"],"mappings":";;;;;;;;;;;;AAiB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,GAAGmD,uBAAU,CAACC,MAAM,CAAC;EAC/BnD,KAAK,EAAE;IACLI,YAAY,EAAEjC,YAAY;IAC1B8B,WAAW,EAAE7B,kBAAkB;IAC/BgF,WAAW,EAAE,aAAa;IAC1BC,QAAQ,EAAE;EACZ,CAAC;EACDzC,IAAI,EAAE;IAAEyC,QAAQ,EAAE,QAAQ;IAAEC,UAAU,EAAE,CAAC;IAAEC,SAAS,EAAE;EAAE;AAC1D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -152,6 +152,8 @@ function TriggerSlot({
|
|
|
152
152
|
anchorRef,
|
|
153
153
|
onPointerDown,
|
|
154
154
|
onPointerMove,
|
|
155
|
+
onPointerEnter,
|
|
156
|
+
onPointerLeave,
|
|
155
157
|
open,
|
|
156
158
|
restoreFocus = true,
|
|
157
159
|
className,
|
|
@@ -180,6 +182,8 @@ function TriggerSlot({
|
|
|
180
182
|
collapsable: false,
|
|
181
183
|
onPointerDown: onPointerDown,
|
|
182
184
|
onPointerMove: onPointerMove,
|
|
185
|
+
onPointerEnter: onPointerEnter,
|
|
186
|
+
onPointerLeave: onPointerLeave,
|
|
183
187
|
className: className,
|
|
184
188
|
style: [styles.wrap, style],
|
|
185
189
|
testID: testID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useAccessibilityFocus","_mergeRefs","_styledPrimitives","_context","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","cloneTrigger","children","handle","child","Children","only","isValidElement","Error","type","Fragment","childProps","props","isDisabled","disabled","ownRole","accessibilityRole","undefined","_popup","_expanded","buttonless","cloneElement","onPress","event","defaultPrevented","onLongPress","composeAccessibilityActions","accessibilityLabel","accessibilityValue","own","accessibilityActions","added","filter","action","some","mine","name","length","onAccessibilityAction","nativeEvent","actionName","TriggerSlot","asChild","pressTrigger","onPrimaryOpenChange","anchorRef","onPointerDown","onPointerMove","open","restoreFocus","className","style","testID","reportPrimary","useContext","PrimaryTriggerStateContext","expanded","useEffect","ownRef","useRef","useRestoreAccessibilityFocus","control","jsx","StyledPressable","StyledView","ref","mergeRefs","collapsable","styles","wrap","Provider","value","minWidth","alignSelf","StyleSheet","create"],"sourceRoot":"../../../src","sources":["floating/TriggerSlot.tsx"],"mappings":";;;;;;AAwBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAAuD,IAAAM,WAAA,GAAAN,OAAA;AAAA,IAAAO,KAAA;AAAA,SAAAR,wBAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAE,UAAA,SAAAF,CAAA,MAAAG,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,QAAAM,MAAA,CAAAN,CAAA,MAAAA,CAAA,SAAAQ,CAAA,MAAAT,KAAA,yBAAAY,OAAA,KAAAZ,KAAA,OAAAY,OAAA,KAAAZ,KAAA,QAAAA,KAAA,CAAAa,GAAA,CAAAZ,CAAA,UAAAD,KAAA,CAAAc,GAAA,CAAAb,CAAA,GAAAD,KAAA,CAAAe,GAAA,CAAAd,CAAA,EAAAQ,CAAA,UAAAJ,CAAA,IAAAJ,CAAA,gBAAAI,CAAA,OAAAW,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAI,CAAA,OAAAD,CAAA,GAAAE,CAAA,IAAAC,MAAA,CAAAW,wBAAA,CAAAjB,CAAA,EAAAI,CAAA,OAAAD,CAAA,CAAAU,GAAA,IAAAV,CAAA,CAAAW,GAAA,IAAAT,CAAA,CAAAG,CAAA,EAAAJ,CAAA,EAAAD,CAAA,IAAAK,CAAA,CAAAJ,CAAA,IAAAJ,CAAA,CAAAI,CAAA,WAAAI,CAAA;AA9CvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useAccessibilityFocus","_mergeRefs","_styledPrimitives","_context","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","cloneTrigger","children","handle","child","Children","only","isValidElement","Error","type","Fragment","childProps","props","isDisabled","disabled","ownRole","accessibilityRole","undefined","_popup","_expanded","buttonless","cloneElement","onPress","event","defaultPrevented","onLongPress","composeAccessibilityActions","accessibilityLabel","accessibilityValue","own","accessibilityActions","added","filter","action","some","mine","name","length","onAccessibilityAction","nativeEvent","actionName","TriggerSlot","asChild","pressTrigger","onPrimaryOpenChange","anchorRef","onPointerDown","onPointerMove","onPointerEnter","onPointerLeave","open","restoreFocus","className","style","testID","reportPrimary","useContext","PrimaryTriggerStateContext","expanded","useEffect","ownRef","useRef","useRestoreAccessibilityFocus","control","jsx","StyledPressable","StyledView","ref","mergeRefs","collapsable","styles","wrap","Provider","value","minWidth","alignSelf","StyleSheet","create"],"sourceRoot":"../../../src","sources":["floating/TriggerSlot.tsx"],"mappings":";;;;;;AAwBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAUA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAAuD,IAAAM,WAAA,GAAAN,OAAA;AAAA,IAAAO,KAAA;AAAA,SAAAR,w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