@vxrn/safe-area 1.1.136 → 1.1.138
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/package.json +1 -1
- package/dist/cjs/SafeArea.types.js +0 -14
- package/dist/cjs/SafeArea.types.js.map +0 -6
- package/dist/cjs/SafeArea.types.native.js +0 -15
- package/dist/cjs/SafeArea.types.native.js.map +0 -6
- package/dist/esm/SafeArea.types.js +0 -1
- package/dist/esm/SafeArea.types.js.map +0 -6
- package/dist/esm/SafeArea.types.mjs +0 -0
- package/dist/esm/SafeArea.types.native.js +0 -1
- package/dist/esm/SafeArea.types.native.js.map +0 -6
- package/types/SafeArea.types.d.ts +0 -35
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
};
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var SafeArea_types_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(SafeArea_types_exports);
|
|
14
|
-
//# sourceMappingURL=SafeArea.types.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
return to;
|
|
11
|
-
};
|
|
12
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
13
|
-
var SafeArea_types_exports = {};
|
|
14
|
-
module.exports = __toCommonJS(SafeArea_types_exports);
|
|
15
|
-
//# sourceMappingURL=SafeArea.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=SafeArea.types.js.map
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=SafeArea.types.js.map
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
import type { NativeSyntheticEvent, ViewProps } from 'react-native';
|
|
3
|
-
export type Edge = 'top' | 'right' | 'bottom' | 'left';
|
|
4
|
-
export type EdgeMode = 'off' | 'additive' | 'maximum';
|
|
5
|
-
export type EdgeRecord = Partial<Record<Edge, EdgeMode>>;
|
|
6
|
-
export type Edges = readonly Edge[] | Readonly<EdgeRecord>;
|
|
7
|
-
export interface EdgeInsets {
|
|
8
|
-
top: number;
|
|
9
|
-
right: number;
|
|
10
|
-
bottom: number;
|
|
11
|
-
left: number;
|
|
12
|
-
}
|
|
13
|
-
export interface Rect {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
}
|
|
19
|
-
export interface Metrics {
|
|
20
|
-
insets: EdgeInsets;
|
|
21
|
-
frame: Rect;
|
|
22
|
-
}
|
|
23
|
-
export type InsetChangedEvent = NativeSyntheticEvent<Metrics>;
|
|
24
|
-
export type InsetChangeNativeCallback = (event: InsetChangedEvent) => void;
|
|
25
|
-
export interface NativeSafeAreaProviderProps extends ViewProps {
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
onInsetsChange: InsetChangeNativeCallback;
|
|
28
|
-
}
|
|
29
|
-
export interface NativeSafeAreaViewProps extends ViewProps {
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
mode?: 'padding' | 'margin';
|
|
32
|
-
edges?: Edges;
|
|
33
|
-
}
|
|
34
|
-
export type NativeSafeAreaViewInstance = any;
|
|
35
|
-
//# sourceMappingURL=SafeArea.types.d.ts.map
|