@oxy.so/bloom 19.7.0 → 19.7.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/bottom-bar.mdx +9 -0
- package/docs/collapsible.mdx +13 -4
- package/docs/composer-loader.mdx +6 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/app-shell/EdgeDock.js +7 -7
- package/lib/commonjs/app-shell/EdgeDock.js.map +1 -1
- package/lib/commonjs/bottom-bar/BottomBarBase.js +39 -7
- package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/commonjs/collapsible/Collapsible.web.js +2 -3
- package/lib/commonjs/collapsible/Collapsible.web.js.map +1 -1
- package/lib/commonjs/collapsible/CollapsibleFrame.web.js +59 -20
- package/lib/commonjs/collapsible/CollapsibleFrame.web.js.map +1 -1
- package/lib/commonjs/styles/web-view-style.js +9 -0
- package/lib/commonjs/styles/web-view-style.js.map +1 -1
- package/lib/module/app-shell/EdgeDock.js +4 -4
- package/lib/module/app-shell/EdgeDock.js.map +1 -1
- package/lib/module/bottom-bar/BottomBarBase.js +41 -9
- package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/module/collapsible/Collapsible.web.js +3 -4
- package/lib/module/collapsible/Collapsible.web.js.map +1 -1
- package/lib/module/collapsible/CollapsibleFrame.web.js +59 -18
- package/lib/module/collapsible/CollapsibleFrame.web.js.map +1 -1
- package/lib/module/styles/web-view-style.js +8 -0
- package/lib/module/styles/web-view-style.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/EdgeDock.d.ts +1 -1
- package/lib/typescript/commonjs/app-shell/EdgeDock.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/collapsible/Collapsible.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/collapsible/CollapsibleFrame.web.d.ts +2 -2
- package/lib/typescript/commonjs/collapsible/CollapsibleFrame.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles/web-view-style.d.ts +3 -0
- package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/EdgeDock.d.ts +1 -1
- package/lib/typescript/module/app-shell/EdgeDock.d.ts.map +1 -1
- package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/module/collapsible/Collapsible.web.d.ts.map +1 -1
- package/lib/typescript/module/collapsible/CollapsibleFrame.web.d.ts +2 -2
- package/lib/typescript/module/collapsible/CollapsibleFrame.web.d.ts.map +1 -1
- package/lib/typescript/module/styles/web-view-style.d.ts +3 -0
- package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app-shell/EdgeDock.tsx +4 -5
- package/src/bottom-bar/BottomBarBase.tsx +62 -12
- package/src/collapsible/Collapsible.web.tsx +2 -7
- package/src/collapsible/CollapsibleFrame.web.tsx +73 -20
- package/src/styles/web-view-style.ts +7 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WEB_POSITION_FIXED","WEB_POSITION_STICKY","WEB_SURFACE_STICKY_TOP","WEB_VIEWPORT_HEIGHT","webViewportHeightMinus","px","WEB_OVERFLOW_CLIP","webSurfaceStickyTopPlus"],"sourceRoot":"../../../src","sources":["styles/web-view-style.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,kBAAkB,GAAG,OAAgC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,QAAiC;;AAEpE;AACA,OAAO,MAAMC,sBAAsB,GAAG,oCAAwD;;AAE9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,QAA+B;AAClE,OAAO,SAASC,sBAAsBA,CAACC,EAAU,EAAuB;EACtE,OAAO,iBAAiBA,EAAE,KAAK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAA+B;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqCA;AACA,OAAO,SAASC,uBAAuBA,CAACF,EAAU,EAAoB;EACpE,OAAO,6CAA6CA,EAAE,KAAK;AAC7D","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["WEB_POSITION_FIXED","WEB_POSITION_STICKY","WEB_SURFACE_STICKY_TOP","WEB_VIEWPORT_HEIGHT","webViewportHeightMinus","px","WEB_OVERFLOW_CLIP","webSurfaceStickyTopPlus","cssLength","css"],"sourceRoot":"../../../src","sources":["styles/web-view-style.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,kBAAkB,GAAG,OAAgC;;AAElE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,QAAiC;;AAEpE;AACA,OAAO,MAAMC,sBAAsB,GAAG,oCAAwD;;AAE9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,QAA+B;AAClE,OAAO,SAASC,sBAAsBA,CAACC,EAAU,EAAuB;EACtE,OAAO,iBAAiBA,EAAE,KAAK;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAG,MAA+B;;AAEhE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAqCA;AACA,OAAO,SAASC,uBAAuBA,CAACF,EAAU,EAAoB;EACpE,OAAO,6CAA6CA,EAAE,KAAK;AAC7D;;AAEA;AACA;AACA,OAAO,SAASG,SAASA,CAACC,GAAW,EAAsB;EACzD,SAAS;;EACT,OAAOA,GAAG;AACZ","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ReactNode } from 'react';
|
|
13
13
|
import type { PanelChrome } from '../styles/panel-chrome';
|
|
14
|
-
import type
|
|
14
|
+
import { type WebCssStyle } from '../styles/web-view-style';
|
|
15
15
|
import type { EdgeDock } from './use-edge-dock';
|
|
16
16
|
export type DockAxis = 'start' | 'top';
|
|
17
17
|
/** The registered progress properties, one pair per docked edge. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeDock.d.ts","sourceRoot":"","sources":["../../../../src/app-shell/EdgeDock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"EdgeDock.d.ts","sourceRoot":"","sources":["../../../../src/app-shell/EdgeDock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAWvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAShD,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAEvC,oEAAoE;AACpE,eAAO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AC,EAAE,MAAM,CAAC;CACjB,sCAoBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomBarBase.d.ts","sourceRoot":"","sources":["../../../../src/bottom-bar/BottomBarBase.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomBarBase.d.ts","sourceRoot":"","sources":["../../../../src/bottom-bar/BottomBarBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAiCf,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAc9C,UAAU,KAAM,SAAQ,cAAc;IACpC,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC3C;AACD,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,eAAwB,EACxB,cAAuB,EACvB,oBAA+B,EAC/B,gBAAgB,EAChB,YAAY,EACZ,IAAY,EACZ,QAAc,EACd,eAAoB,EACpB,KAAK,EACL,MAAM,GACP,EAAE,KAAK,sCAuaP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/Collapsible.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Collapsible.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/Collapsible.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,+DAIrB,gBAAgB,uBAGjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { CollapsibleFrameProps } from './frame-types';
|
|
3
|
-
export declare function CollapsibleFrame({ open, hidden, settled, progress, keepMounted, transition, children, style, className, contentStyle, contentClassName, returnFocusRef, nativeID, testID, labelledBy, returnFocusId, region, }: CollapsibleFrameProps): React.JSX.Element;
|
|
3
|
+
export declare function CollapsibleFrame({ open, hidden: drivenHidden, settled: drivenSettled, progress, appear, keepMounted, transition, children, style, className, contentStyle, contentClassName, returnFocusRef, nativeID, testID, labelledBy, returnFocusId, region, }: Omit<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'> & Partial<Pick<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'>>): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=CollapsibleFrame.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleFrame.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/CollapsibleFrame.web.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapsibleFrame.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/CollapsibleFrame.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AA2B3D,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,EACtB,QAAQ,EACR,MAAM,EACN,WAAkB,EAClB,UAA2C,EAC3C,QAAQ,EACR,KAAK,EACL,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,GACP,EAAE,IAAI,CAAC,qBAAqB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,GAC/D,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC,qBAyIxE"}
|
|
@@ -117,4 +117,7 @@ export interface WebCssStyle extends ViewStyle {
|
|
|
117
117
|
}
|
|
118
118
|
/** Position a secondary sticky row below measured chrome, retaining panel inset. */
|
|
119
119
|
export declare function webSurfaceStickyTopPlus(px: number): ViewStyle['top'];
|
|
120
|
+
/** A web-only CSS length, shared by dock geometry owners. Native uses numeric values.
|
|
121
|
+
* Relocated from EdgeDock: this is the same single value-level type crossing. */
|
|
122
|
+
export declare function cssLength(css: string): ViewStyle['width'];
|
|
120
123
|
//# sourceMappingURL=web-view-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-view-style.d.ts","sourceRoot":"","sources":["../../../../src/styles/web-view-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB,EAAc,SAAS,CAAC,UAAU,CAAC,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAe,SAAS,CAAC,UAAU,CAAC,CAAC;AAErE,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAA2C,SAAS,CAAC,KAAK,CAAC,CAAC;AAE/F;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,EAAe,SAAS,CAAC,QAAQ,CAAC,CAAC;AACnE,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,CAEtE;AAED;;;;;GAKG;AACH,eAAO,MAAM,i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SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;IAC1D;;;;;;;;;OASG;IACH,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACrD;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAEpE;AAED;iFACiF;AACjF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAGzD"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ReactNode } from 'react';
|
|
13
13
|
import type { PanelChrome } from '../styles/panel-chrome.js';
|
|
14
|
-
import type
|
|
14
|
+
import { type WebCssStyle } from '../styles/web-view-style.js';
|
|
15
15
|
import type { EdgeDock } from './use-edge-dock.js';
|
|
16
16
|
export type DockAxis = 'start' | 'top';
|
|
17
17
|
/** The registered progress properties, one pair per docked edge. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeDock.d.ts","sourceRoot":"","sources":["../../../../src/app-shell/EdgeDock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAM7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAAwB,CAAC;AAC1D,OAAO,KAAK,
|
|
1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D,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,+BAgK7F;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,IAAI,EACJ,MAAM,GACP,EAAE;IACD,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,sCAoBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomBarBase.d.ts","sourceRoot":"","sources":["../../../../src/bottom-bar/BottomBarBase.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomBarBase.d.ts","sourceRoot":"","sources":["../../../../src/bottom-bar/BottomBarBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAiCf,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,qBAAkB,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAS,CAAC;AAc9C,UAAU,KAAM,SAAQ,cAAc;IACpC,UAAU,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvC,IAAI,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;CAC3C;AACD,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,eAAwB,EACxB,cAAuB,EACvB,oBAA+B,EAC/B,gBAAgB,EAChB,YAAY,EACZ,IAAY,EACZ,QAAc,EACd,eAAoB,EACpB,KAAK,EACL,MAAM,GACP,EAAE,KAAK,sCAuaP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/Collapsible.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Collapsible.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/Collapsible.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,+DAIrB,gBAAgB,uBAGjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { CollapsibleFrameProps } from './frame-types.js';
|
|
3
|
-
export declare function CollapsibleFrame({ open, hidden, settled, progress, keepMounted, transition, children, style, className, contentStyle, contentClassName, returnFocusRef, nativeID, testID, labelledBy, returnFocusId, region, }: CollapsibleFrameProps): React.JSX.Element;
|
|
3
|
+
export declare function CollapsibleFrame({ open, hidden: drivenHidden, settled: drivenSettled, progress, appear, keepMounted, transition, children, style, className, contentStyle, contentClassName, returnFocusRef, nativeID, testID, labelledBy, returnFocusId, region, }: Omit<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'> & Partial<Pick<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'>>): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=CollapsibleFrame.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleFrame.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/CollapsibleFrame.web.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapsibleFrame.web.d.ts","sourceRoot":"","sources":["../../../../src/collapsible/CollapsibleFrame.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAe,CAAC;AA2B3D,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,EACtB,QAAQ,EACR,MAAM,EACN,WAAkB,EAClB,UAA2C,EAC3C,QAAQ,EACR,KAAK,EACL,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,MAAM,EACN,UAAU,EACV,aAAa,EACb,MAAM,GACP,EAAE,IAAI,CAAC,qBAAqB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,GAC/D,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC,CAAC,qBAyIxE"}
|
|
@@ -117,4 +117,7 @@ export interface WebCssStyle extends ViewStyle {
|
|
|
117
117
|
}
|
|
118
118
|
/** Position a secondary sticky row below measured chrome, retaining panel inset. */
|
|
119
119
|
export declare function webSurfaceStickyTopPlus(px: number): ViewStyle['top'];
|
|
120
|
+
/** A web-only CSS length, shared by dock geometry owners. Native uses numeric values.
|
|
121
|
+
* Relocated from EdgeDock: this is the same single value-level type crossing. */
|
|
122
|
+
export declare function cssLength(css: string): ViewStyle['width'];
|
|
120
123
|
//# sourceMappingURL=web-view-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-view-style.d.ts","sourceRoot":"","sources":["../../../../src/styles/web-view-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;;;;;;;;;;;;;;;GAiBG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;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACnC,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;IAC1D;;;;;;;;;OASG;IACH,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;CACrD;AAED,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAEpE;AAED;iFACiF;AACjF,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAGzD"}
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ import Animated, { useAnimatedStyle } from 'react-native-reanimated';
|
|
|
16
16
|
import { motionCss, type MotionSpec } from '../motion/spec';
|
|
17
17
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
18
18
|
import type { PanelChrome } from '../styles/panel-chrome';
|
|
19
|
-
import type
|
|
19
|
+
import { cssLength, type WebCssStyle } from '../styles/web-view-style';
|
|
20
20
|
import { useIsRtl } from '../hooks/use-is-rtl';
|
|
21
21
|
import { useSurfacePresenceContent } from '../surface/use-surface-presence';
|
|
22
22
|
import {
|
|
@@ -30,11 +30,10 @@ import {
|
|
|
30
30
|
import type { EdgeDock } from './use-edge-dock';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* A VALUE-level crossing into a CSS transform written as a `calc()` of the
|
|
34
|
+
* progress property. Lengths use the shared styles adapter; native never
|
|
35
|
+
* reaches either CSS crossing.
|
|
36
36
|
*/
|
|
37
|
-
const cssLength = (css: string) => css as ViewStyle['width'];
|
|
38
37
|
const cssTransform = (css: string) => css as unknown as ViewStyle['transform'];
|
|
39
38
|
|
|
40
39
|
export type DockAxis = 'start' | 'top';
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
useState,
|
|
7
7
|
useCallback,
|
|
8
8
|
useInsertionEffect,
|
|
9
|
+
useLayoutEffect,
|
|
9
10
|
type ComponentType,
|
|
10
11
|
} from 'react';
|
|
11
12
|
import { View, Platform } from 'react-native';
|
|
@@ -18,6 +19,8 @@ import Animated, {
|
|
|
18
19
|
runOnJS,
|
|
19
20
|
useSharedValue,
|
|
20
21
|
useDerivedValue,
|
|
22
|
+
withTiming,
|
|
23
|
+
Easing,
|
|
21
24
|
} from 'react-native-reanimated';
|
|
22
25
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
23
26
|
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
@@ -47,6 +50,12 @@ import { useBorderBoxSize } from '../hooks/use-border-box-size';
|
|
|
47
50
|
import { useWindowWidthClass } from '../hooks/use-width-class';
|
|
48
51
|
import { BREAKPOINTS } from '../styles/breakpoints';
|
|
49
52
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
53
|
+
import { cssLength, type WebCssStyle } from '../styles/web-view-style';
|
|
54
|
+
import { DEFAULT_COLLAPSIBLE_TRANSITION } from '../collapsible/use-collapsible-motion';
|
|
55
|
+
import { resolveSurfaceTransition } from '../motion/surface-transition';
|
|
56
|
+
|
|
57
|
+
const DOCK_PRESENCE = '--bloom-dock-navigation-presence';
|
|
58
|
+
const DOCK_TRANSITION = resolveSurfaceTransition(DEFAULT_COLLAPSIBLE_TRANSITION);
|
|
50
59
|
|
|
51
60
|
interface Props extends BottomBarProps {
|
|
52
61
|
Navigation: ComponentType<TabBarProps>;
|
|
@@ -91,6 +100,29 @@ export function BottomBarBase({
|
|
|
91
100
|
const present = action != null || (showNavigation && items.length > 0);
|
|
92
101
|
const selected = items.some((item) => item.name === value);
|
|
93
102
|
const dockNavigation = dock && showNavigation && items.length > 0;
|
|
103
|
+
// This is semantic visibility, separate from the scroll folding signal. It
|
|
104
|
+
// releases the navigation footprint continuously while a natural-height
|
|
105
|
+
// editor expands, instead of dropping its entire reserved row in one commit.
|
|
106
|
+
const navigationPresence = useSharedValue(dockNavigation ? 1 : 0);
|
|
107
|
+
useLayoutEffect(() => {
|
|
108
|
+
if (IS_WEB) return;
|
|
109
|
+
const target = dockNavigation ? 1 : 0;
|
|
110
|
+
navigationPresence.value = reducedMotion
|
|
111
|
+
? target
|
|
112
|
+
: withTiming(target, {
|
|
113
|
+
duration: DOCK_TRANSITION.duration,
|
|
114
|
+
easing: Easing.bezier(...DOCK_TRANSITION.easing),
|
|
115
|
+
});
|
|
116
|
+
}, [dockNavigation, reducedMotion, navigationPresence]);
|
|
117
|
+
const navigationPresenceStyle: WebCssStyle | undefined =
|
|
118
|
+
dock && IS_WEB
|
|
119
|
+
? {
|
|
120
|
+
[DOCK_PRESENCE]: dockNavigation ? '1' : '0',
|
|
121
|
+
transitionProperty: DOCK_PRESENCE,
|
|
122
|
+
transitionDuration: `${reducedMotion ? 0 : DOCK_TRANSITION.duration}ms`,
|
|
123
|
+
transitionTimingFunction: DOCK_TRANSITION.cssEasing,
|
|
124
|
+
}
|
|
125
|
+
: undefined;
|
|
94
126
|
// Folding frees the horizontal lane before the editor descends into it.
|
|
95
127
|
// Both phases are reversible projections of the same scroll signal.
|
|
96
128
|
const navigationProgress = useDerivedValue(() => {
|
|
@@ -209,6 +241,11 @@ export function BottomBarBase({
|
|
|
209
241
|
}, []);
|
|
210
242
|
const rowStyle = useAnimatedStyle(
|
|
211
243
|
() => ({
|
|
244
|
+
paddingBottom: !dock
|
|
245
|
+
? 0
|
|
246
|
+
: IS_WEB
|
|
247
|
+
? cssLength(`calc(var(--bloom-dock-navigation-presence) * ${EXPANDED_HEIGHT + 10}px)`)
|
|
248
|
+
: (EXPANDED_HEIGHT + 10) * navigationPresence.value,
|
|
212
249
|
height: dock
|
|
213
250
|
? ('auto' as const)
|
|
214
251
|
: interpolate(
|
|
@@ -218,7 +255,7 @@ export function BottomBarBase({
|
|
|
218
255
|
'clamp',
|
|
219
256
|
),
|
|
220
257
|
}),
|
|
221
|
-
[progress, reducedMotion, dock, footprint],
|
|
258
|
+
[progress, reducedMotion, dock, footprint, navigationPresence],
|
|
222
259
|
);
|
|
223
260
|
// Not `items.length` in the mapper: a worklet copies `items` whole to the UI
|
|
224
261
|
// runtime, icon elements and all (`worklet-captures.test.ts`).
|
|
@@ -259,23 +296,27 @@ export function BottomBarBase({
|
|
|
259
296
|
});
|
|
260
297
|
const actionStyle = useAnimatedStyle(() => {
|
|
261
298
|
if (dock) {
|
|
262
|
-
const amount =
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
: 0;
|
|
299
|
+
const amount = selected
|
|
300
|
+
? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value))
|
|
301
|
+
: 0;
|
|
266
302
|
return {
|
|
267
303
|
width: 'auto' as const,
|
|
268
304
|
opacity: 1,
|
|
269
|
-
marginInlineStart:
|
|
305
|
+
marginInlineStart: IS_WEB
|
|
306
|
+
? cssLength(
|
|
307
|
+
`calc(var(--bloom-dock-navigation-presence) * ${(MINIMIZED_HEIGHT + 10) * navigationProgress.value}px)`,
|
|
308
|
+
)
|
|
309
|
+
: (MINIMIZED_HEIGHT + 10) * navigationProgress.value * navigationPresence.value,
|
|
270
310
|
transform: [
|
|
271
311
|
{
|
|
272
|
-
translateY:
|
|
273
|
-
? (EXPANDED_HEIGHT + 10) *
|
|
312
|
+
translateY: IS_WEB
|
|
313
|
+
? (`calc(var(--bloom-dock-navigation-presence) * ${(EXPANDED_HEIGHT + 10) * Math.min(1, Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE)))}px)` as `${number}%`)
|
|
314
|
+
: (EXPANDED_HEIGHT + 10) *
|
|
315
|
+
navigationPresence.value *
|
|
274
316
|
Math.min(
|
|
275
317
|
1,
|
|
276
318
|
Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE)),
|
|
277
|
-
)
|
|
278
|
-
: 0,
|
|
319
|
+
),
|
|
279
320
|
},
|
|
280
321
|
],
|
|
281
322
|
};
|
|
@@ -300,7 +341,7 @@ export function BottomBarBase({
|
|
|
300
341
|
hasItems,
|
|
301
342
|
above,
|
|
302
343
|
dock,
|
|
303
|
-
|
|
344
|
+
navigationPresence,
|
|
304
345
|
navigationProgress,
|
|
305
346
|
selected,
|
|
306
347
|
]);
|
|
@@ -357,10 +398,10 @@ export function BottomBarBase({
|
|
|
357
398
|
paddingRight: inset,
|
|
358
399
|
marginBottom: bottom,
|
|
359
400
|
flexDirection: dock ? 'column' : 'row',
|
|
360
|
-
paddingBottom: dockNavigation ? EXPANDED_HEIGHT + 10 : 0,
|
|
361
401
|
alignItems: dock ? 'stretch' : 'center',
|
|
362
402
|
},
|
|
363
403
|
rowStyle,
|
|
404
|
+
navigationPresenceStyle,
|
|
364
405
|
]}
|
|
365
406
|
>
|
|
366
407
|
{items.length > 0 && (
|
|
@@ -469,6 +510,15 @@ export function BottomBarBase({
|
|
|
469
510
|
const COMPACT_THRESHOLDS = [BREAKPOINTS.md] as const;
|
|
470
511
|
|
|
471
512
|
const DOCK_CSS = `
|
|
513
|
+
@property --bloom-dock-navigation-presence {
|
|
514
|
+
syntax: '<number>';
|
|
515
|
+
inherits: true;
|
|
516
|
+
initial-value: 0;
|
|
517
|
+
}
|
|
518
|
+
@media (prefers-reduced-motion: reduce) {
|
|
519
|
+
[data-bloom-bottom-bar-row] { transition-duration: 0ms !important; }
|
|
520
|
+
}
|
|
521
|
+
|
|
472
522
|
@media (min-width: ${BREAKPOINTS.md}px) {
|
|
473
523
|
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-navigation] { display: none !important; }
|
|
474
524
|
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-row] { padding-bottom: 0 !important; }
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { CollapsibleFrame } from './CollapsibleFrame.web';
|
|
3
|
-
import {
|
|
4
|
-
DEFAULT_COLLAPSIBLE_TRANSITION,
|
|
5
|
-
useAppearingOpen,
|
|
6
|
-
useCollapsibleMotion,
|
|
7
|
-
} from './use-collapsible-motion';
|
|
3
|
+
import { DEFAULT_COLLAPSIBLE_TRANSITION, useAppearingOpen } from './use-collapsible-motion';
|
|
8
4
|
import type { CollapsibleProps } from './types';
|
|
9
5
|
|
|
10
6
|
export const Collapsible = memo(function Collapsible({
|
|
@@ -13,6 +9,5 @@ export const Collapsible = memo(function Collapsible({
|
|
|
13
9
|
...props
|
|
14
10
|
}: CollapsibleProps) {
|
|
15
11
|
const open = useAppearingOpen(props.open, appear);
|
|
16
|
-
|
|
17
|
-
return <CollapsibleFrame {...props} open={open} transition={transition} {...motion} />;
|
|
12
|
+
return <CollapsibleFrame {...props} open={open} appear={appear} transition={transition} />;
|
|
18
13
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { forwardRef, useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
2
3
|
import { Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
4
|
import { resolveNativeWebStyle } from '../styles/resolve-native-web-style';
|
|
4
5
|
import { useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
5
6
|
import { CollapsibleVisibilityContext, useCollapsibleVisibility } from './context';
|
|
6
7
|
import type { CollapsibleFrameProps } from './frame-types';
|
|
8
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
7
9
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
8
10
|
import { surfacePresenceVars, useSurfacePresenceContent } from '../surface/use-surface-presence';
|
|
9
11
|
import { resolveSurfaceTransition } from '../motion/surface-transition';
|
|
@@ -11,7 +13,12 @@ import { DEFAULT_COLLAPSIBLE_TRANSITION } from './use-collapsible-motion';
|
|
|
11
13
|
|
|
12
14
|
const CSS = `@layer base {
|
|
13
15
|
.bloom-collapsible-panel,.bloom-collapsible-content { box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;min-width:0; }
|
|
14
|
-
|
|
16
|
+
.bloom-collapsible-css { display:grid;grid-template-rows:minmax(0,0fr);transition:grid-template-rows var(--bloom-collapsible-duration) var(--bloom-collapsible-easing); }
|
|
17
|
+
.bloom-collapsible-css[data-open="true"] { grid-template-rows:minmax(0,1fr); }
|
|
18
|
+
.bloom-collapsible-clip { min-height:0;overflow:hidden; }
|
|
19
|
+
.bloom-collapsible-css[data-settled="true"] > .bloom-collapsible-clip { overflow:visible; }
|
|
20
|
+
@starting-style { .bloom-collapsible-css[data-appear="true"] { grid-template-rows:minmax(0,0fr); } }
|
|
21
|
+
@media (prefers-reduced-motion:reduce) { .bloom-collapsible-css { transition-duration:0ms; } }
|
|
15
22
|
}`;
|
|
16
23
|
const PanelHost = forwardRef<
|
|
17
24
|
HTMLDivElement,
|
|
@@ -26,9 +33,10 @@ const AnimatedPanel = Animated.createAnimatedComponent(PanelHost);
|
|
|
26
33
|
|
|
27
34
|
export function CollapsibleFrame({
|
|
28
35
|
open,
|
|
29
|
-
hidden,
|
|
30
|
-
settled
|
|
36
|
+
hidden: drivenHidden,
|
|
37
|
+
settled: drivenSettled,
|
|
31
38
|
progress,
|
|
39
|
+
appear,
|
|
32
40
|
keepMounted = true,
|
|
33
41
|
transition = DEFAULT_COLLAPSIBLE_TRANSITION,
|
|
34
42
|
children,
|
|
@@ -42,8 +50,15 @@ export function CollapsibleFrame({
|
|
|
42
50
|
labelledBy,
|
|
43
51
|
returnFocusId,
|
|
44
52
|
region,
|
|
45
|
-
}: CollapsibleFrameProps
|
|
53
|
+
}: Omit<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'> &
|
|
54
|
+
Partial<Pick<CollapsibleFrameProps, 'progress' | 'hidden' | 'settled'>>) {
|
|
46
55
|
useInteractiveWebCss('bloom-collapsible', CSS);
|
|
56
|
+
const cssMotion = progress === undefined;
|
|
57
|
+
const [cssHidden, setCssHidden] = useState(!open);
|
|
58
|
+
const [cssSettled, setCssSettled] = useState(open);
|
|
59
|
+
if (cssMotion && open && cssHidden) setCssHidden(false);
|
|
60
|
+
const hidden = cssMotion ? cssHidden : drivenHidden;
|
|
61
|
+
const settled = cssMotion ? cssSettled : (drivenSettled ?? false);
|
|
47
62
|
const visible = useCollapsibleVisibility() && open;
|
|
48
63
|
const panel = useRef<HTMLDivElement>(null);
|
|
49
64
|
const focusWithin = useRef(false);
|
|
@@ -56,16 +71,16 @@ export function CollapsibleFrame({
|
|
|
56
71
|
}, []);
|
|
57
72
|
useLayoutEffect(() => {
|
|
58
73
|
const node = body.current;
|
|
59
|
-
if (!node) return;
|
|
74
|
+
if (cssMotion || !node) return;
|
|
60
75
|
const observer = new ResizeObserver(measure);
|
|
61
76
|
observer.observe(node);
|
|
62
77
|
return () => observer.disconnect();
|
|
63
|
-
}, [measure]);
|
|
78
|
+
}, [cssMotion, measure]);
|
|
64
79
|
// Children mounting again on opening are measured before paint, not a frame late.
|
|
65
80
|
const mounted = keepMounted || !hidden;
|
|
66
81
|
useLayoutEffect(() => {
|
|
67
|
-
if (mounted) measure();
|
|
68
|
-
}, [mounted, measure]);
|
|
82
|
+
if (mounted && !cssMotion) measure();
|
|
83
|
+
}, [mounted, cssMotion, measure]);
|
|
69
84
|
useLayoutEffect(() => {
|
|
70
85
|
const active = document.activeElement;
|
|
71
86
|
if (visible) {
|
|
@@ -90,15 +105,40 @@ export function CollapsibleFrame({
|
|
|
90
105
|
const reduced = usePrefersReducedMotion();
|
|
91
106
|
const fade = resolveSurfaceTransition(transition);
|
|
92
107
|
const fadeMs = reduced ? 0 : fade.duration;
|
|
93
|
-
|
|
108
|
+
const previousOpen = useRef(open);
|
|
109
|
+
useLayoutEffect(() => {
|
|
110
|
+
if (!cssMotion) return;
|
|
111
|
+
const changed = previousOpen.current !== open;
|
|
112
|
+
previousOpen.current = open;
|
|
113
|
+
if (fadeMs === 0) {
|
|
114
|
+
setCssHidden(!open);
|
|
115
|
+
setCssSettled(open);
|
|
116
|
+
} else if (changed) {
|
|
117
|
+
setCssSettled(false);
|
|
118
|
+
}
|
|
119
|
+
}, [cssMotion, open, fadeMs]);
|
|
120
|
+
useSurfacePresenceContent(cssMotion ? body : panel, {
|
|
94
121
|
presence: visible ? 1 : 0,
|
|
95
122
|
duration: fadeMs,
|
|
96
123
|
easing: fade.cssEasing,
|
|
97
124
|
});
|
|
98
|
-
const maxHeight = progress
|
|
125
|
+
const maxHeight = progress?.interpolate({
|
|
99
126
|
inputRange: [0, 1],
|
|
100
127
|
outputRange: [0, height],
|
|
101
128
|
});
|
|
129
|
+
const content = (
|
|
130
|
+
<div
|
|
131
|
+
ref={body}
|
|
132
|
+
className={['bloom-collapsible-content', contentClassName].filter(Boolean).join(' ')}
|
|
133
|
+
style={resolveNativeWebStyle(contentStyle)}
|
|
134
|
+
>
|
|
135
|
+
{mounted ? children : null}
|
|
136
|
+
</div>
|
|
137
|
+
);
|
|
138
|
+
const cssTiming: WebCssStyle = {
|
|
139
|
+
'--bloom-collapsible-duration': `${fadeMs}ms`,
|
|
140
|
+
'--bloom-collapsible-easing': fade.cssEasing,
|
|
141
|
+
};
|
|
102
142
|
return (
|
|
103
143
|
<CollapsibleVisibilityContext.Provider value={visible}>
|
|
104
144
|
<AnimatedPanel
|
|
@@ -109,29 +149,42 @@ export function CollapsibleFrame({
|
|
|
109
149
|
aria-labelledby={labelledBy}
|
|
110
150
|
aria-hidden={!visible}
|
|
111
151
|
inert={!visible}
|
|
152
|
+
data-open={open}
|
|
153
|
+
data-settled={settled}
|
|
154
|
+
data-appear={appear || undefined}
|
|
155
|
+
onTransitionEnd={
|
|
156
|
+
cssMotion
|
|
157
|
+
? (event) => {
|
|
158
|
+
if (
|
|
159
|
+
event.target !== event.currentTarget ||
|
|
160
|
+
event.propertyName !== 'grid-template-rows'
|
|
161
|
+
)
|
|
162
|
+
return;
|
|
163
|
+
setCssHidden(!open);
|
|
164
|
+
setCssSettled(open);
|
|
165
|
+
}
|
|
166
|
+
: undefined
|
|
167
|
+
}
|
|
112
168
|
onFocusCapture={() => {
|
|
113
169
|
focusWithin.current = true;
|
|
114
170
|
}}
|
|
115
171
|
onBlurCapture={() => {
|
|
116
172
|
focusWithin.current = false;
|
|
117
173
|
}}
|
|
118
|
-
className={['bloom-collapsible-panel', className]
|
|
174
|
+
className={['bloom-collapsible-panel', cssMotion && 'bloom-collapsible-css', className]
|
|
175
|
+
.filter(Boolean)
|
|
176
|
+
.join(' ')}
|
|
119
177
|
style={[
|
|
120
178
|
{
|
|
121
179
|
...surfacePresenceVars(visible ? 1 : 0, fadeMs),
|
|
122
|
-
|
|
180
|
+
...cssTiming,
|
|
181
|
+
maxHeight: cssMotion || settled || (height === 0 && open) ? undefined : maxHeight,
|
|
123
182
|
overflow: settled ? 'visible' : 'hidden',
|
|
124
183
|
},
|
|
125
184
|
style,
|
|
126
185
|
]}
|
|
127
186
|
>
|
|
128
|
-
<div
|
|
129
|
-
ref={body}
|
|
130
|
-
className={['bloom-collapsible-content', contentClassName].filter(Boolean).join(' ')}
|
|
131
|
-
style={resolveNativeWebStyle(contentStyle)}
|
|
132
|
-
>
|
|
133
|
-
{mounted ? children : null}
|
|
134
|
-
</div>
|
|
187
|
+
{cssMotion ? <div className="bloom-collapsible-clip">{content}</div> : content}
|
|
135
188
|
</AnimatedPanel>
|
|
136
189
|
</CollapsibleVisibilityContext.Provider>
|
|
137
190
|
);
|
|
@@ -128,3 +128,10 @@ export interface WebCssStyle extends ViewStyle {
|
|
|
128
128
|
export function webSurfaceStickyTopPlus(px: number): ViewStyle['top'] {
|
|
129
129
|
return `calc(var(--bloom-panel-sticky-top, 0px) + ${px}px)` as ViewStyle['top'];
|
|
130
130
|
}
|
|
131
|
+
|
|
132
|
+
/** A web-only CSS length, shared by dock geometry owners. Native uses numeric values.
|
|
133
|
+
* Relocated from EdgeDock: this is the same single value-level type crossing. */
|
|
134
|
+
export function cssLength(css: string): ViewStyle['width'] {
|
|
135
|
+
'worklet';
|
|
136
|
+
return css as ViewStyle['width'];
|
|
137
|
+
}
|