@multiplatform.one/theme 11.0.0 → 11.1.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/dist/cjs/index.gnome.cjs +2 -0
- package/dist/cjs/index.gnome.native.cjs +2 -0
- package/dist/cjs/index.gnome.native.js +2 -0
- package/dist/cjs/index.gnome.native.js.map +1 -1
- package/dist/cjs/theme/overlaySurfaces.cjs +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.cjs +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.js +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.js.map +1 -1
- package/dist/esm/index.gnome.mjs +2 -2
- package/dist/esm/index.gnome.native.js +2 -2
- package/dist/esm/theme/overlaySurfaces.mjs +16 -10
- package/dist/esm/theme/overlaySurfaces.mjs.map +1 -1
- package/dist/esm/theme/overlaySurfaces.native.js +16 -10
- package/dist/esm/theme/overlaySurfaces.native.js.map +1 -1
- package/package.json +5 -5
- package/src/index.gnome.ts +2 -0
- package/src/theme/overlaySurfaces.tsx +25 -21
- package/src/theme/sheetFrameHandle.spec.ts +8 -0
- package/src/theme/sheetHandle.spec.ts +16 -16
- package/types/index.gnome.d.ts +1 -1
- package/types/index.gnome.d.ts.map +1 -1
- package/types/theme/overlaySurfaces.d.ts +22 -22
- package/types/theme/overlaySurfaces.d.ts.map +1 -1
|
@@ -33,48 +33,46 @@ export declare const sheetGrabberZone: {
|
|
|
33
33
|
readonly alignItems: "center";
|
|
34
34
|
readonly height: 21;
|
|
35
35
|
};
|
|
36
|
-
/**
|
|
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-
|
|
40
|
-
*
|
|
41
|
-
*
|
|
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)
|
|
46
|
-
*
|
|
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:
|
|
51
|
-
readonly height:
|
|
48
|
+
readonly width: 36;
|
|
49
|
+
readonly height: 5;
|
|
52
50
|
readonly borderRadius: 100;
|
|
53
|
-
readonly backgroundColor: "$color-
|
|
54
|
-
readonly opacity:
|
|
51
|
+
readonly backgroundColor: "$color-12";
|
|
52
|
+
readonly opacity: 0.3;
|
|
55
53
|
readonly alignSelf: "center";
|
|
56
54
|
readonly marginHorizontal: 0;
|
|
57
|
-
readonly marginTop:
|
|
58
|
-
readonly marginBottom:
|
|
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
|
|
63
|
-
* with room
|
|
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:
|
|
66
|
+
readonly paddingTop: 0;
|
|
67
|
+
readonly height: 21;
|
|
69
68
|
};
|
|
70
69
|
/**
|
|
71
|
-
* The handle's tone per scheme (FZ-
|
|
72
|
-
* schemes take
|
|
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-
|
|
77
|
-
readonly opacity:
|
|
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,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAOL,KAAK,kBAAkB,IAAI,yBAAyB,EAEpD,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,WAAW,EAAG,eAAwB,CAAC;AAEpD,eAAO,MAAM,UAAU,EAAG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