@oxy.so/bloom 19.8.0 → 19.8.1
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 +6 -6
- package/docs/public-parts.mdx +4 -3
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/dialog/SheetShell.js +10 -3
- package/lib/commonjs/dialog/SheetShell.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +8 -1
- package/lib/module/dialog/SheetShell.js.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +12 -2
- package/src/dialog/SheetShell.tsx +8 -1
package/docs/adoption-matrix.mdx
CHANGED
|
@@ -115,7 +115,7 @@ None.
|
|
|
115
115
|
| `animated-check` | `@oxy.so/bloom/animated-check` + barrel | universal | `animated-check.mdx` | yes | 2 | | | | |
|
|
116
116
|
| `announcement` | `@oxy.so/bloom/announcement` + barrel | universal | `announcement.mdx` | yes | 5 | | | | |
|
|
117
117
|
| `app-shell` | `@oxy.so/bloom/app-shell` + barrel | web fork | `app-shell.mdx` | yes | 57 | | | | reads |
|
|
118
|
-
| `appearance` | `@oxy.so/bloom/appearance` + barrel | universal | `composition.mdx` | yes |
|
|
118
|
+
| `appearance` | `@oxy.so/bloom/appearance` + barrel | universal | `composition.mdx` | yes | 80 | | reads | | |
|
|
119
119
|
| `aspect-ratio` | `@oxy.so/bloom/aspect-ratio` + barrel | universal | `aspect-ratio.mdx` | yes | 1 | | | | |
|
|
120
120
|
| `auth-card` | `@oxy.so/bloom/auth-card` + barrel | universal | `auth-card.mdx` | yes | 2 | | | | |
|
|
121
121
|
| `avatar` | `@oxy.so/bloom/avatar` + barrel | universal | `avatar.mdx` | yes | 13 | | reads | | |
|
|
@@ -145,7 +145,7 @@ None.
|
|
|
145
145
|
| `chat-list` | `@oxy.so/bloom/chat-list` + barrel | universal | `chat-list.mdx` | yes | 5 | n/a¹ | | | reads |
|
|
146
146
|
| `chat-people` | `@oxy.so/bloom/chat-people` + barrel | universal | `chat-people.mdx` | yes | 4 | n/a¹ | reads | | |
|
|
147
147
|
| `chat-screen` | `@oxy.so/bloom/chat-screen` + barrel | web fork | `chat-screen.mdx` | yes | 5 | | reads | | reads |
|
|
148
|
-
| `checkbox` | `@oxy.so/bloom/checkbox` + barrel | universal | `checkbox.mdx` | yes |
|
|
148
|
+
| `checkbox` | `@oxy.so/bloom/checkbox` + barrel | universal | `checkbox.mdx` | yes | 13 | reads | reads | | reads |
|
|
149
149
|
| `checkout-sheet` | `@oxy.so/bloom/checkout-sheet` + barrel | universal | `checkout-sheet.mdx` | yes | 3 | | | | |
|
|
150
150
|
| `checkout-summary` | `@oxy.so/bloom/checkout-summary` + barrel | universal | `checkout-summary.mdx` | yes | 2 | | | | |
|
|
151
151
|
| `chip` | `@oxy.so/bloom/chip` + barrel | universal | `chip.mdx` | yes | 14 | | reads | | |
|
|
@@ -265,9 +265,9 @@ 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 | 45 | | | | |
|
|
269
269
|
| `popover` | `@oxy.so/bloom/popover` + barrel | web fork | `popover.mdx` | yes | 18 | | | reads | reads |
|
|
270
|
-
| `portal` | `@oxy.so/bloom/portal` + barrel | web fork | `portal.mdx` | yes |
|
|
270
|
+
| `portal` | `@oxy.so/bloom/portal` + barrel | web fork | `portal.mdx` | yes | 70 | | | | |
|
|
271
271
|
| `preferences` | `@oxy.so/bloom/preferences` + barrel | universal | `preferences.mdx` | yes | 2 | | | | |
|
|
272
272
|
| `pressable-scale` | `@oxy.so/bloom/pressable-scale` + barrel | universal | `pressable-scale.mdx` | yes | 1 | | | | |
|
|
273
273
|
| `price-breakdown` | `@oxy.so/bloom/price-breakdown` + barrel | universal | `price-breakdown.mdx` | yes | 3 | | | | reads |
|
|
@@ -314,7 +314,7 @@ None.
|
|
|
314
314
|
| `surface` | `@oxy.so/bloom/surface` + barrel | web fork | `surface.mdx` | yes | 66 | | | | |
|
|
315
315
|
| `surfaces` | `@oxy.so/bloom/surfaces` + barrel | web fork | `alert.mdx` | yes | 12 | | | | |
|
|
316
316
|
| `swipe-row` | `@oxy.so/bloom/swipe-row` + barrel | universal | `swipe-row.mdx` | yes | 2 | | | | |
|
|
317
|
-
| `switch` | `@oxy.so/bloom/switch` + barrel | universal | `switch.mdx` | yes |
|
|
317
|
+
| `switch` | `@oxy.so/bloom/switch` + barrel | universal | `switch.mdx` | yes | 13 | reads | reads | | reads |
|
|
318
318
|
| `tab-bar` | `@oxy.so/bloom/tab-bar` | web fork | `tab-bar.mdx` | yes | 21 | | | reads | |
|
|
319
319
|
| `tab-pager` | `@oxy.so/bloom/tab-pager` + barrel | universal | `tab-pager.mdx` | yes | 7 | | | | |
|
|
320
320
|
| `table` | `@oxy.so/bloom/table` + barrel | universal | `table.mdx` | yes | 2 | | reads | | |
|
|
@@ -325,7 +325,7 @@ None.
|
|
|
325
325
|
| `tenancy` | `@oxy.so/bloom/tenancy` + barrel | universal | `tenancy.mdx` | yes | 5 | | reads | | |
|
|
326
326
|
| `text-field` | `@oxy.so/bloom/text-field` + barrel | universal | `text-field.mdx` | yes | 27 | reads | reads | | |
|
|
327
327
|
| `textarea` | `@oxy.so/bloom/textarea` + barrel | universal | `textarea.mdx` | yes | 6 | reads | reads | | n/a¹ |
|
|
328
|
-
| `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes |
|
|
328
|
+
| `theme` | `@oxy.so/bloom/theme` + barrel | web fork | `theme.mdx` | yes | 689 | | | n/a¹ | reads |
|
|
329
329
|
| `theme-toggle` | `@oxy.so/bloom/theme-toggle` + barrel | universal | `theme-toggle.mdx` | yes | 2 | n/a¹ | | | |
|
|
330
330
|
| `toast` | `@oxy.so/bloom/toast` + barrel | universal | `toast.mdx` | yes | 21 | | | | |
|
|
331
331
|
| `tooltip` | `@oxy.so/bloom/tooltip` + barrel | web fork | `tooltip.mdx` | yes | 7 | | reads | | |
|
package/docs/public-parts.mdx
CHANGED
|
@@ -34,7 +34,8 @@ Classification is an explicit equality-checked ledger keyed by part-contract ide
|
|
|
34
34
|
| text-field-core | applicable | 2 | TextField owns the shared field shell and propagates its resolved size to TextFieldInput; standalone TextFieldInput owns its own standard control geometry. Both participate in BloomScope sizing, with explicit size taking precedence. Adornments and hosted parts remain separately classified. Evidence: `src/text-field/TextField.tsx`, `src/text-field/shared.ts`, `src/__tests__/TextFieldPublicPartScope.test.tsx`, `src/__tests__/TextFieldPublicPartScope.web.test.tsx`. native renderer and RNW DOM verify default md (36px), inherited xs (28px), inherited lg (44px), explicit field lg and standalone input md overrides inside xs, nested xs/lg, and actual native/web portals; physical-device layout and accessibility remain pending. |
|
|
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 | 800 | 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. |
|
|
38
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. |
|
|
39
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. |
|
|
40
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. |
|
|
@@ -311,7 +312,7 @@ Routes use `native:` / `web:` followed by the package subpath and export name. `
|
|
|
311
312
|
| `src/chat-screen/PinnedMessageBar.tsx#PinnedMessageBar` (`src/chat-screen/PinnedMessageBar.tsx`) | `native:.#PinnedMessageBar` · `native:./chat-screen#PinnedMessageBar` · `web:.#PinnedMessageBar` · `web:./chat-screen#PinnedMessageBar` | no public size prop | pending |
|
|
312
313
|
| `src/chat-screen/ScrollToBottomButton.tsx#JumpToMentionButton` (`src/chat-screen/ScrollToBottomButton.tsx`) | `native:.#JumpToMentionButton` · `native:./chat-screen#JumpToMentionButton` · `web:.#JumpToMentionButton` · `web:./chat-screen#JumpToMentionButton` | native:size: number \| undefined; web:size: number \| undefined | pending |
|
|
313
314
|
| `src/chat-screen/ScrollToBottomButton.tsx#ScrollToBottomButton` (`src/chat-screen/ScrollToBottomButton.tsx`) | `native:.#ScrollToBottomButton` · `native:./chat-screen#ScrollToBottomButton` · `web:.#ScrollToBottomButton` · `web:./chat-screen#ScrollToBottomButton` | native:size: number \| undefined; web:size: number \| undefined | pending |
|
|
314
|
-
| `src/checkbox/Checkbox.tsx#Checkbox` (`src/checkbox/Checkbox.tsx`) | `native:.#Checkbox` · `native:./checkbox#Checkbox` · `web:.#Checkbox` · `web:./checkbox#Checkbox` | native:size: lg/md/sm/xs; web:size: lg/md/sm/xs |
|
|
315
|
+
| `src/checkbox/Checkbox.tsx#Checkbox` (`src/checkbox/Checkbox.tsx`) | `native:.#Checkbox` · `native:./checkbox#Checkbox` · `web:.#Checkbox` · `web:./checkbox#Checkbox` | native:size: lg/md/sm/xs; web:size: lg/md/sm/xs | checkbox-switch-controls |
|
|
315
316
|
| `src/checkbox/CheckboxCard.tsx#CheckboxCard` (`src/checkbox/CheckboxCard.tsx`) | `native:.#CheckboxCard` · `native:./checkbox#CheckboxCard` · `web:.#CheckboxCard` · `web:./checkbox#CheckboxCard` | no public size prop | pending |
|
|
316
317
|
| `src/checkout-sheet/CheckoutSheet.tsx#CheckoutSheet` (`src/checkout-sheet/CheckoutSheet.tsx`) | `native:.#CheckoutSheet` · `native:./checkout-sheet#CheckoutSheet` · `web:.#CheckoutSheet` · `web:./checkout-sheet#CheckoutSheet` | no public size prop | pending |
|
|
317
318
|
| `src/checkout-summary/CheckoutConfirm.tsx#CheckoutConfirm` (`src/checkout-summary/CheckoutConfirm.tsx`) | `native:.#CheckoutConfirm` · `native:./checkout-summary#CheckoutConfirm` · `web:.#CheckoutConfirm` · `web:./checkout-summary#CheckoutConfirm` | no public size prop | pending |
|
|
@@ -1460,7 +1461,7 @@ Routes use `native:` / `web:` followed by the package subpath and export name. `
|
|
|
1460
1461
|
| `src/surfaces/index.ts#SurfaceHost` (`src/surfaces/index.ts`, `src/surfaces/index.web.ts`) | `native:.#SurfaceHost` · `native:./surfaces#SurfaceHost` · `web:.#SurfaceHost` · `web:./surfaces#SurfaceHost` | no public size prop | pending |
|
|
1461
1462
|
| `src/surfaces/index.ts#SurfaceProvider` (`src/surfaces/index.ts`, `src/surfaces/index.web.ts`) | `native:.#SurfaceProvider` · `native:./surfaces#SurfaceProvider` · `web:.#SurfaceProvider` · `web:./surfaces#SurfaceProvider` | no public size prop | pending |
|
|
1462
1463
|
| `src/swipe-row/SwipeRow.tsx#SwipeRow` (`src/swipe-row/SwipeRow.tsx`) | `native:.#SwipeRow` · `native:./swipe-row#SwipeRow` · `web:.#SwipeRow` · `web:./swipe-row#SwipeRow` | no public size prop | pending |
|
|
1463
|
-
| `src/switch/Switch.tsx#Switch` (`src/switch/Switch.tsx`) | `native:.#Switch` · `native:./switch#Switch` · `web:.#Switch` · `web:./switch#Switch` | native:size: lg/md/sm/xs; web:size: lg/md/sm/xs |
|
|
1464
|
+
| `src/switch/Switch.tsx#Switch` (`src/switch/Switch.tsx`) | `native:.#Switch` · `native:./switch#Switch` · `web:.#Switch` · `web:./switch#Switch` | native:size: lg/md/sm/xs; web:size: lg/md/sm/xs | checkbox-switch-controls |
|
|
1464
1465
|
| `src/tab-bar/context.tsx#TabBarMinimizeProvider` (`src/tab-bar/context.tsx`) | `native:./tab-bar#TabBarMinimizeProvider` · `web:./tab-bar#TabBarMinimizeProvider` | no public size prop | pending |
|
|
1465
1466
|
| `src/tab-bar/expo-router/RouterTabBar.tsx#RouterTabBar` (`src/tab-bar/expo-router/RouterTabBar.tsx`) | `native:./tab-bar/expo-router#RouterTabBar` · `web:./tab-bar/expo-router#RouterTabBar` | no public size prop | pending |
|
|
1466
1467
|
| `src/tab-bar/expo-router/RouterTabBar.tsx#RouterTabBarButton` (`src/tab-bar/expo-router/RouterTabBar.tsx`) | `native:./tab-bar/expo-router#RouterTabBarButton` · `web:./tab-bar/expo-router#RouterTabBarButton` | 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 19.8.
|
|
11
|
+
This guide belongs to **@oxy.so/bloom 19.8.1**. 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
|
|
|
@@ -10,11 +10,12 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactNative = require("react-native");
|
|
11
11
|
var _bottomSheet = require("../bottom-sheet");
|
|
12
12
|
var _useAccessibilityFocus = require("../hooks/use-accessibility-focus.js");
|
|
13
|
+
var _context = require("../platform-surface/context.js");
|
|
13
14
|
var _styledPrimitives = require("../styles/styled-primitives.js");
|
|
14
15
|
var _zIndex = require("../styles/z-index.js");
|
|
15
16
|
var _useTheme = require("../theme/use-theme.js");
|
|
16
17
|
var _CenteredCard = require("./CenteredCard.js");
|
|
17
|
-
var
|
|
18
|
+
var _context2 = require("./context.js");
|
|
18
19
|
var _usePresentationSession = require("./use-presentation-session.js");
|
|
19
20
|
var _commonMessages = require("../locale/common-messages.js");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -59,7 +60,13 @@ function SheetShell({
|
|
|
59
60
|
// screen-reader focus move here is what gets it right for every one of them
|
|
60
61
|
// instead of four times.
|
|
61
62
|
const [presented, setPresented] = (0, _react.useState)(false);
|
|
62
|
-
|
|
63
|
+
// A platform that gives Bloom the window's keys (OxyOS) moves its keyboard,
|
|
64
|
+
// and its screen reader with it, onto the sheet's first control as the sheet
|
|
65
|
+
// comes (a picker's chosen option): a focus moved here after the settle,
|
|
66
|
+
// later, would take the reader back off that control onto the sheet itself,
|
|
67
|
+
// and the option would never be said. There the platform's move is the one.
|
|
68
|
+
const platformKeys = (0, _context.usePlatformKeyboard)() !== null;
|
|
69
|
+
const bodyRef = (0, _useAccessibilityFocus.useAccessibilityFocus)(presented && !platformKeys);
|
|
63
70
|
// A desktop window presents a picker (Select) as the web presents a dialog:
|
|
64
71
|
// a centred card, with no drag handle, Escape closing it. Anchored content
|
|
65
72
|
// keeps the sheet.
|
|
@@ -112,7 +119,7 @@ function SheetShell({
|
|
|
112
119
|
backgroundColor: 'transparent',
|
|
113
120
|
...(0, _surfaceStyle.surfaceStyle)(_shapes.SURFACE_SHAPES.panel)
|
|
114
121
|
}), [theme.colors.background]);
|
|
115
|
-
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
122
|
+
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_context2.Context.Provider, {
|
|
116
123
|
value: context,
|
|
117
124
|
children: [desktop ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(SheetHandle, {
|
|
118
125
|
onPress: () => close()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_surfaceStyle","require","_shapes","_react","_interopRequireWildcard","_reactNative","_bottomSheet","_useAccessibilityFocus","_styledPrimitives","_zIndex","_useTheme","_CenteredCard","
|
|
1
|
+
{"version":3,"names":["_surfaceStyle","require","_shapes","_react","_interopRequireWildcard","_reactNative","_bottomSheet","_useAccessibilityFocus","_context","_styledPrimitives","_zIndex","_useTheme","_CenteredCard","_context2","_usePresentationSession","_commonMessages","_jsxRuntime","cache","e","t","__esModule","r","c","a","Object","defineProperty","n","__proto__","default","WeakMap","has","get","set","hasOwnProperty","call","getOwnPropertyDescriptor","SheetShell","material","control","label","header","onClose","contentClassName","contentStyle","contentTestID","anchored","children","theme","useTheme","ref","useRef","closeCallbacks","presented","setPresented","useState","platformKeys","usePlatformKeyboard","bodyRef","useAccessibilityFocus","desktopSession","useDesktopPresentationSession","hold","holdDesktop","release","releaseDesktop","desktop","callQueuedCallbacks","useCallback","queued","current","cb","console","error","open","present","close","push","dismiss","handleDismiss","useImperativeHandle","context","useMemo","isWithinDialog","sheetStyle","maxWidth","backgroundColor","surfaceStyle","SURFACE_SHAPES","panel","colors","background","content","jsxs","Context","Provider","value","jsx","SheetHandle","onPress","StyledView","onAccessibilityEscape","accessibilityLabel","className","testID","style","styles","body","CenteredCard","backgroundFill","String","StyleSheet","flatten","onDismiss","BottomSheet","enablePanDownToClose","detached","backdropOpacity","showHandle","common","useCommonMessages","View","handleContainer","Pressable","accessibilityHint","tapToClose","hitSlop","top","bottom","left","right","handleBar","text","create","position","width","alignItems","zIndex","Z_INDEX","floating","height","borderRadius","alignSelf","opacity","paddingTop","paddingHorizontal","paddingBottom"],"sourceRoot":"../../../src","sources":["dialog/SheetShell.tsx"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAaA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AAQA,IAAAI,YAAA,GAAAJ,OAAA;AAEA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,uBAAA,GAAAb,OAAA;AAEA,IAAAc,eAAA,GAAAd,OAAA;AAA8D,IAAAe,WAAA,GAAAf,OAAA;AAAA,IAAAgB,KAAA;AAAA,SAAAb,wBAAAc,CAAA,EAAAC,CAAA,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AAO,EAAE;EACX,CAAC;EACDpC,IAAI,EAAE;IACJqC,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE,EAAE;IACrBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -18,6 +18,7 @@ import React, { useCallback, useImperativeHandle, useMemo, useRef, useState } fr
|
|
|
18
18
|
import { Pressable, StyleSheet, View } from 'react-native';
|
|
19
19
|
import { BottomSheet } from '../bottom-sheet';
|
|
20
20
|
import { useAccessibilityFocus } from "../hooks/use-accessibility-focus.js";
|
|
21
|
+
import { usePlatformKeyboard } from "../platform-surface/context.js";
|
|
21
22
|
import { StyledView } from "../styles/styled-primitives.js";
|
|
22
23
|
import { Z_INDEX } from "../styles/z-index.js";
|
|
23
24
|
import { useTheme } from "../theme/use-theme.js";
|
|
@@ -52,7 +53,13 @@ export function SheetShell({
|
|
|
52
53
|
// screen-reader focus move here is what gets it right for every one of them
|
|
53
54
|
// instead of four times.
|
|
54
55
|
const [presented, setPresented] = useState(false);
|
|
55
|
-
|
|
56
|
+
// A platform that gives Bloom the window's keys (OxyOS) moves its keyboard,
|
|
57
|
+
// and its screen reader with it, onto the sheet's first control as the sheet
|
|
58
|
+
// comes (a picker's chosen option): a focus moved here after the settle,
|
|
59
|
+
// later, would take the reader back off that control onto the sheet itself,
|
|
60
|
+
// and the option would never be said. There the platform's move is the one.
|
|
61
|
+
const platformKeys = usePlatformKeyboard() !== null;
|
|
62
|
+
const bodyRef = useAccessibilityFocus(presented && !platformKeys);
|
|
56
63
|
// A desktop window presents a picker (Select) as the web presents a dialog:
|
|
57
64
|
// a centred card, with no drag handle, Escape closing it. Anchored content
|
|
58
65
|
// keeps the sheet.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["surfaceStyle","SURFACE_SHAPES","React","useCallback","useImperativeHandle","useMemo","useRef","useState","Pressable","StyleSheet","View","BottomSheet","useAccessibilityFocus","StyledView","Z_INDEX","useTheme","CenteredCard","Context","useDesktopPresentationSession","useCommonMessages","jsx","_jsx","jsxs","_jsxs","SheetShell","material","control","label","header","onClose","contentClassName","contentStyle","contentTestID","anchored","children","theme","ref","closeCallbacks","presented","setPresented","bodyRef","desktopSession","hold","holdDesktop","release","releaseDesktop","desktop","callQueuedCallbacks","queued","current","cb","e","console","error","open","present","close","push","dismiss","handleDismiss","context","isWithinDialog","sheetStyle","maxWidth","backgroundColor","panel","colors","background","content","Provider","value","SheetHandle","onPress","onAccessibilityEscape","accessibilityLabel","className","testID","style","styles","body","backgroundFill","String","flatten","onDismiss","enablePanDownToClose","detached","backdropOpacity","showHandle","common","handleContainer","accessibilityHint","tapToClose","hitSlop","top","bottom","left","right","handleBar","text","create","position","width","alignItems","zIndex","floating","height","borderRadius","alignSelf","opacity","paddingTop","paddingHorizontal","paddingBottom"],"sourceRoot":"../../../src","sources":["dialog/SheetShell.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAAyB;AACtD,SAASC,cAAc,QAAQ,4BAAyB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOC,KAAK,IAEVC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAwC,cAAc;AAE1F,SAASC,WAAW,QAA6B,iBAAiB;AAClE,SAASC,qBAAqB,QAAQ,qCAAkC;AACxE,SAASC,UAAU,QAAQ,gCAA6B;AACxD,SAASC,OAAO,QAAQ,sBAAmB;AAC3C,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,OAAO,QAAQ,cAAW;AACnC,SAASC,6BAA6B,QAAQ,+BAA4B;AAE1E,SAASC,iBAAiB,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAuB9D;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAC;EACzBC,QAAQ,GAAG,SAAS;EACpBC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,OAAO;EACPC,gBAAgB;EAChBC,YAAY;EACZC,aAAa;EACbC,QAAQ,GAAG,KAAK;EAChBC;AACe,CAAC,EAAE;EAClB,MAAMC,KAAK,GAAGpB,QAAQ,CAAC,CAAC;EACxB,MAAMqB,GAAG,
|
|
1
|
+
{"version":3,"names":["surfaceStyle","SURFACE_SHAPES","React","useCallback","useImperativeHandle","useMemo","useRef","useState","Pressable","StyleSheet","View","BottomSheet","useAccessibilityFocus","usePlatformKeyboard","StyledView","Z_INDEX","useTheme","CenteredCard","Context","useDesktopPresentationSession","useCommonMessages","jsx","_jsx","jsxs","_jsxs","SheetShell","material","control","label","header","onClose","contentClassName","contentStyle","contentTestID","anchored","children","theme","ref","closeCallbacks","presented","setPresented","platformKeys","bodyRef","desktopSession","hold","holdDesktop","release","releaseDesktop","desktop","callQueuedCallbacks","queued","current","cb","e","console","error","open","present","close","push","dismiss","handleDismiss","context","isWithinDialog","sheetStyle","maxWidth","backgroundColor","panel","colors","background","content","Provider","value","SheetHandle","onPress","onAccessibilityEscape","accessibilityLabel","className","testID","style","styles","body","backgroundFill","String","flatten","onDismiss","enablePanDownToClose","detached","backdropOpacity","showHandle","common","handleContainer","accessibilityHint","tapToClose","hitSlop","top","bottom","left","right","handleBar","text","create","position","width","alignItems","zIndex","floating","height","borderRadius","alignSelf","opacity","paddingTop","paddingHorizontal","paddingBottom"],"sourceRoot":"../../../src","sources":["dialog/SheetShell.tsx"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAAyB;AACtD,SAASC,cAAc,QAAQ,4BAAyB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOC,KAAK,IAEVC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,S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AAK,CAACgC,MAAM,CAACgC;QAAK,CAAC;MAAE,CAAE;IAAC,CAClE;EAAC,CACR,CAAC;AAEX;AAEA,MAAMpB,MAAM,GAAGvE,UAAU,CAAC4F,MAAM,CAAC;EAC/BV,eAAe,EAAE;IACfW,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,UAAU,EAAE,QAAQ;IACpBC,MAAM,EAAE1F,OAAO,CAAC2F,QAAQ;IACxBC,MAAM,EAAE;EACV,CAAC;EACDR,SAAS,EAAE;IACTJ,GAAG,EAAE,CAAC;IACNQ,KAAK,EAAE,EAAE;IACTI,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,QAAQ;IACnBC,OAAO,EAAE;EACX,CAAC;EACD7B,IAAI,EAAE;IACJ8B,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE,EAAE;IACrBC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetShell.d.ts","sourceRoot":"","sources":["../../../../src/dialog/SheetShell.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SheetShell.d.ts","sourceRoot":"","sources":["../../../../src/dialog/SheetShell.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAW3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAoB,EACpB,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAgB,EAChB,QAAQ,GACT,EAAE,eAAe,qBAwIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetShell.d.ts","sourceRoot":"","sources":["../../../../src/dialog/SheetShell.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SheetShell.d.ts","sourceRoot":"","sources":["../../../../src/dialog/SheetShell.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAW3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAS,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6DAA6D;IAC7D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAoB,EACpB,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAgB,EAChB,QAAQ,GACT,EAAE,eAAe,qBAwIjB"}
|
package/package.json
CHANGED
|
@@ -813,6 +813,18 @@
|
|
|
813
813
|
"src/radio/RadioSwatch.tsx#RadioSwatch"
|
|
814
814
|
]
|
|
815
815
|
},
|
|
816
|
+
"checkbox-switch-controls": {
|
|
817
|
+
"status": "applicable",
|
|
818
|
+
"reason": "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.",
|
|
819
|
+
"evidence": [
|
|
820
|
+
"src/checkbox/Checkbox.tsx",
|
|
821
|
+
"src/switch/Switch.tsx",
|
|
822
|
+
"src/__tests__/CheckboxSwitchPublicPartScope.test.tsx",
|
|
823
|
+
"src/__tests__/CheckboxSwitchPublicPartScope.web.test.tsx"
|
|
824
|
+
],
|
|
825
|
+
"verification": "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",
|
|
826
|
+
"parts": ["src/checkbox/Checkbox.tsx#Checkbox", "src/switch/Switch.tsx#Switch"]
|
|
827
|
+
},
|
|
816
828
|
"pending": {
|
|
817
829
|
"status": "pending",
|
|
818
830
|
"reason": "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.",
|
|
@@ -1016,7 +1028,6 @@
|
|
|
1016
1028
|
"src/chat-screen/PinnedMessageBar.tsx#PinnedMessageBar",
|
|
1017
1029
|
"src/chat-screen/ScrollToBottomButton.tsx#JumpToMentionButton",
|
|
1018
1030
|
"src/chat-screen/ScrollToBottomButton.tsx#ScrollToBottomButton",
|
|
1019
|
-
"src/checkbox/Checkbox.tsx#Checkbox",
|
|
1020
1031
|
"src/checkbox/CheckboxCard.tsx#CheckboxCard",
|
|
1021
1032
|
"src/checkout-sheet/CheckoutSheet.tsx#CheckoutSheet",
|
|
1022
1033
|
"src/checkout-summary/CheckoutConfirm.tsx#CheckoutConfirm",
|
|
@@ -1552,7 +1563,6 @@
|
|
|
1552
1563
|
"src/surfaces/index.ts#SurfaceHost",
|
|
1553
1564
|
"src/surfaces/index.ts#SurfaceProvider",
|
|
1554
1565
|
"src/swipe-row/SwipeRow.tsx#SwipeRow",
|
|
1555
|
-
"src/switch/Switch.tsx#Switch",
|
|
1556
1566
|
"src/tab-bar/context.tsx#TabBarMinimizeProvider",
|
|
1557
1567
|
"src/tab-bar/expo-router/RouterTabBar.tsx#RouterTabBar",
|
|
1558
1568
|
"src/tab-bar/expo-router/RouterTabBar.tsx#RouterTabBarButton",
|
|
@@ -24,6 +24,7 @@ import { Pressable, StyleSheet, View, type StyleProp, type ViewStyle } from 'rea
|
|
|
24
24
|
|
|
25
25
|
import { BottomSheet, type BottomSheetRef } from '../bottom-sheet';
|
|
26
26
|
import { useAccessibilityFocus } from '../hooks/use-accessibility-focus';
|
|
27
|
+
import { usePlatformKeyboard } from '../platform-surface/context';
|
|
27
28
|
import { StyledView } from '../styles/styled-primitives';
|
|
28
29
|
import { Z_INDEX } from '../styles/z-index';
|
|
29
30
|
import { useTheme } from '../theme/use-theme';
|
|
@@ -80,7 +81,13 @@ export function SheetShell({
|
|
|
80
81
|
// screen-reader focus move here is what gets it right for every one of them
|
|
81
82
|
// instead of four times.
|
|
82
83
|
const [presented, setPresented] = useState(false);
|
|
83
|
-
|
|
84
|
+
// A platform that gives Bloom the window's keys (OxyOS) moves its keyboard,
|
|
85
|
+
// and its screen reader with it, onto the sheet's first control as the sheet
|
|
86
|
+
// comes (a picker's chosen option): a focus moved here after the settle,
|
|
87
|
+
// later, would take the reader back off that control onto the sheet itself,
|
|
88
|
+
// and the option would never be said. There the platform's move is the one.
|
|
89
|
+
const platformKeys = usePlatformKeyboard() !== null;
|
|
90
|
+
const bodyRef = useAccessibilityFocus<ComponentRef<typeof View>>(presented && !platformKeys);
|
|
84
91
|
// A desktop window presents a picker (Select) as the web presents a dialog:
|
|
85
92
|
// a centred card, with no drag handle, Escape closing it. Anchored content
|
|
86
93
|
// keeps the sheet.
|