@multiplatform.one/theme 11.0.0 → 11.1.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.
@@ -33,48 +33,46 @@ export declare const sheetGrabberZone: {
33
33
  readonly alignItems: "center";
34
34
  readonly height: 21;
35
35
  };
36
- /** The share of the sheet's width its handle spans, tamagui's `marginHorizontal: "35%"`. */
36
+ /** Legacy proportional width; the house handle now uses the fixed 36pt recipe. */
37
37
  export declare const sheetHandleWidthRatio = 0.3;
38
38
  /**
39
- * A sheet's handle (FZ-11418), tamagui's `Sheet.Handle`: a 10pt pill 30% of
40
- * the sheet's width, detached ABOVE the frame on the scrim with 8pt between
41
- * them. tamagui's v3 Sheet on tamagui.dev measures 10pt tall, 30% wide and
42
- * 8pt above a 16pt top corner. Every sheet but FloatingPanel's draws it:
39
+ * A sheet's handle (FZ-13310), a 36×5 capsule 5pt inside the frame's edge.
40
+ * Its margins net to no height, placing the following frame behind the
41
+ * grabber instead of leaving a detached gap. Every sheet draws it:
43
42
  * SheetModal on both platforms, AdaptivePopup's sheet and the house Dialog's
44
43
  * phone sheet. Spread it, then `sheetHandleTone(scheme)`, on `Sheet.Handle`
45
- * (web) or inside `sheetHandleZone` (native); a regular-width
46
- * panel narrower than its band sets a width of `sheetHandleWidthRatio` of
47
- * the panel.
44
+ * (web) or inside `sheetHandleZone` (native), at the same fixed width on
45
+ * a phone and a regular-width panel.
48
46
  */
49
47
  export declare const sheetHandle: {
50
- readonly width: "30%";
51
- readonly height: 10;
48
+ readonly width: 36;
49
+ readonly height: 5;
52
50
  readonly borderRadius: 100;
53
- readonly backgroundColor: "$color-5";
54
- readonly opacity: 1;
51
+ readonly backgroundColor: "$color-12";
52
+ readonly opacity: 0.3;
55
53
  readonly alignSelf: "center";
56
54
  readonly marginHorizontal: 0;
57
- readonly marginTop: 0;
58
- readonly marginBottom: 8;
55
+ readonly marginTop: 5;
56
+ readonly marginBottom: -10;
59
57
  readonly zIndex: 10;
60
58
  };
61
59
  /**
62
- * A native sheet's grab zone around `sheetHandle`: the row above the frame,
63
- * with room over the pill so a finger finds it.
60
+ * A native sheet's grab zone around `sheetHandle`, inside the frame,
61
+ * with room around the pill so a finger finds it.
64
62
  */
65
63
  export declare const sheetHandleZone: {
66
64
  readonly alignSelf: "stretch";
67
65
  readonly alignItems: "center";
68
- readonly paddingTop: 8;
66
+ readonly paddingTop: 0;
67
+ readonly height: 21;
69
68
  };
70
69
  /**
71
- * The handle's tone per scheme (FZ-11418), spread after `sheetHandle`. Both
72
- * schemes take tamagui v3's open-sheet skin, `$color5` at full strength;
73
- * tamagui.dev's dark handle measures that same #333 grey.
70
+ * The handle's tone per scheme (FZ-13310), spread after `sheetHandle`. Both
71
+ * schemes take the shared capsule's theme-relative ink at 30% opacity.
74
72
  */
75
73
  export declare function sheetHandleTone(_scheme: "light" | "dark"): {
76
- readonly backgroundColor: "$color-5";
77
- readonly opacity: 1;
74
+ readonly backgroundColor: "$color-12";
75
+ readonly opacity: 0.3;
78
76
  };
79
77
  export type OpenFocusDetails = TamaguiChangeEventDetails<"trigger-focus", Event>;
80
78
  export type OpenAutoFocus = (details: OpenFocusDetails) => void;
@@ -90,6 +88,8 @@ export interface DialogRegionContextValue {
90
88
  export declare const DialogRegionContext: import("react").Context<DialogRegionContextValue>;
91
89
  export declare function useDialogRegionContext(): DialogRegionContextValue;
92
90
  export declare function useIsInDialogRegion(): boolean;
91
+ export declare const SheetBodyInsetProvider: import("react").Provider<string | number>;
92
+ export declare function useSheetBodyInset(): string | number;
93
93
  /**
94
94
  * Marks a subtree as a sheet's body (FZ-11418): SheetModal on both platforms
95
95
  * and AdaptivePopup's sheet provide it. A sheet has no header bar and no ✕,
@@ -1 +1 @@
1
- {"version":3,"file":"overlaySurfaces.d.ts","sourceRoot":"","sources":["../../src/theme/overlaySurfaces.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,K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