@vxrn/safe-area 1.25.5 → 1.25.7

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.
Files changed (61) hide show
  1. package/.turbo/turbo-build.log +2 -0
  2. package/dist/cjs/InitialWindow.cjs +30 -0
  3. package/dist/cjs/InitialWindow.native.js +33 -0
  4. package/dist/cjs/InitialWindow.native.js.map +1 -0
  5. package/dist/cjs/NativeSafeAreaProvider.cjs +162 -0
  6. package/dist/cjs/NativeSafeAreaProvider.native.js +173 -0
  7. package/dist/cjs/NativeSafeAreaProvider.native.js.map +1 -0
  8. package/dist/cjs/SafeArea-types.cjs +18 -0
  9. package/dist/cjs/SafeArea-types.native.js +21 -0
  10. package/dist/cjs/SafeArea-types.native.js.map +1 -0
  11. package/dist/cjs/SafeAreaContext.cjs +149 -0
  12. package/dist/cjs/SafeAreaContext.native.js +154 -0
  13. package/dist/cjs/SafeAreaContext.native.js.map +1 -0
  14. package/dist/cjs/SafeAreaView.cjs +123 -0
  15. package/dist/cjs/SafeAreaView.native.js +133 -0
  16. package/dist/cjs/SafeAreaView.native.js.map +1 -0
  17. package/dist/cjs/getWindowFrame.cjs +35 -0
  18. package/dist/cjs/getWindowFrame.native.js +43 -0
  19. package/dist/cjs/getWindowFrame.native.js.map +1 -0
  20. package/dist/cjs/index.cjs +22 -0
  21. package/dist/cjs/index.native.js +25 -0
  22. package/dist/cjs/index.native.js.map +1 -0
  23. package/dist/esm/InitialWindow.mjs +4 -0
  24. package/dist/esm/InitialWindow.mjs.map +1 -0
  25. package/dist/esm/InitialWindow.native.js +4 -0
  26. package/dist/esm/InitialWindow.native.js.map +1 -0
  27. package/dist/esm/NativeSafeAreaProvider.mjs +126 -0
  28. package/dist/esm/NativeSafeAreaProvider.mjs.map +1 -0
  29. package/dist/esm/NativeSafeAreaProvider.native.js +134 -0
  30. package/dist/esm/NativeSafeAreaProvider.native.js.map +1 -0
  31. package/dist/esm/SafeArea-types.mjs +2 -0
  32. package/dist/esm/SafeArea-types.mjs.map +1 -0
  33. package/dist/esm/SafeArea-types.native.js +2 -0
  34. package/dist/esm/SafeArea-types.native.js.map +1 -0
  35. package/dist/esm/SafeAreaContext.mjs +105 -0
  36. package/dist/esm/SafeAreaContext.mjs.map +1 -0
  37. package/dist/esm/SafeAreaContext.native.js +107 -0
  38. package/dist/esm/SafeAreaContext.native.js.map +1 -0
  39. package/dist/esm/SafeAreaView.mjs +87 -0
  40. package/dist/esm/SafeAreaView.mjs.map +1 -0
  41. package/dist/esm/SafeAreaView.native.js +94 -0
  42. package/dist/esm/SafeAreaView.native.js.map +1 -0
  43. package/dist/esm/getWindowFrame.mjs +10 -0
  44. package/dist/esm/getWindowFrame.mjs.map +1 -0
  45. package/dist/esm/getWindowFrame.native.js +15 -0
  46. package/dist/esm/getWindowFrame.native.js.map +1 -0
  47. package/dist/esm/index.js +4 -0
  48. package/dist/esm/index.js.map +1 -0
  49. package/dist/esm/index.mjs +4 -0
  50. package/dist/esm/index.mjs.map +1 -0
  51. package/dist/esm/index.native.js +4 -0
  52. package/dist/esm/index.native.js.map +1 -0
  53. package/package.json +1 -1
  54. package/types/InitialWindow.d.ts.map +1 -0
  55. package/types/NativeSafeAreaProvider.d.ts.map +1 -0
  56. package/types/SafeArea-types.d.ts.map +1 -0
  57. package/types/SafeAreaContext.d.ts.map +1 -0
  58. package/types/SafeAreaView.d.ts.map +1 -0
  59. package/types/getWindowFrame.d.ts.map +1 -0
  60. package/types/getWindowFrame.native.d.ts.map +1 -0
  61. package/types/index.d.ts.map +1 -0
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
36
+ var SafeAreaContext_exports = {};
37
+ __export(SafeAreaContext_exports, {
38
+ SafeAreaConsumer: () => SafeAreaConsumer,
39
+ SafeAreaContext: () => SafeAreaContext,
40
+ SafeAreaFrameContext: () => SafeAreaFrameContext,
41
+ SafeAreaInsetsContext: () => SafeAreaInsetsContext,
42
+ SafeAreaProvider: () => SafeAreaProvider,
43
+ useSafeArea: () => useSafeArea,
44
+ useSafeAreaFrame: () => useSafeAreaFrame,
45
+ useSafeAreaInsets: () => useSafeAreaInsets,
46
+ withSafeAreaInsets: () => withSafeAreaInsets
47
+ });
48
+ module.exports = __toCommonJS(SafeAreaContext_exports);
49
+ var import_jsx_runtime = require("react/jsx-runtime");
50
+ var React = __toESM(require("react"), 1);
51
+ var import_NativeSafeAreaProvider = require("./NativeSafeAreaProvider.native.js");
52
+ var import_getWindowFrame = require("./getWindowFrame.native.js");
53
+ var isDev = process.env.NODE_ENV !== "production";
54
+ var SafeAreaInsetsContext = /* @__PURE__ */React.createContext(null);
55
+ if (isDev) {
56
+ SafeAreaInsetsContext.displayName = "SafeAreaInsetsContext";
57
+ }
58
+ var SafeAreaFrameContext = /* @__PURE__ */React.createContext(null);
59
+ if (isDev) {
60
+ SafeAreaFrameContext.displayName = "SafeAreaFrameContext";
61
+ }
62
+ var ZERO_INSETS = {
63
+ top: 0,
64
+ bottom: 0,
65
+ left: 0,
66
+ right: 0
67
+ };
68
+ function SafeAreaProvider(param) {
69
+ var {
70
+ children,
71
+ initialMetrics,
72
+ initialSafeAreaInsets,
73
+ ...others
74
+ } = param;
75
+ var _ref, _ref1, _ref2, _ref3, _ref4;
76
+ var parentInsets = useParentSafeAreaInsets();
77
+ var parentFrame = useParentSafeAreaFrame();
78
+ var [insets, setInsets] = React.useState((_ref = (_ref1 = (_ref2 = initialMetrics === null || initialMetrics === void 0 ? void 0 : initialMetrics.insets) !== null && _ref2 !== void 0 ? _ref2 : initialSafeAreaInsets) !== null && _ref1 !== void 0 ? _ref1 : parentInsets) !== null && _ref !== void 0 ? _ref : ZERO_INSETS);
79
+ var [frame, setFrame] = React.useState((_ref3 = (_ref4 = initialMetrics === null || initialMetrics === void 0 ? void 0 : initialMetrics.frame) !== null && _ref4 !== void 0 ? _ref4 : parentFrame) !== null && _ref3 !== void 0 ? _ref3 :
80
+ // backwards compat so we render anyway if we don't have frame.
81
+ (0, import_getWindowFrame.getWindowFrame)());
82
+ var onInsetsChange = React.useCallback(function (event) {
83
+ var {
84
+ nativeEvent: {
85
+ frame: nextFrame,
86
+ insets: nextInsets
87
+ }
88
+ } = event;
89
+ React.startTransition(function () {
90
+ setFrame(function (curFrame) {
91
+ if (
92
+ // Backwards compat with old native code that won't send frame.
93
+ nextFrame && (nextFrame.height !== curFrame.height || nextFrame.width !== curFrame.width || nextFrame.x !== curFrame.x || nextFrame.y !== curFrame.y)) {
94
+ return nextFrame;
95
+ }
96
+ return curFrame;
97
+ });
98
+ setInsets(function (curInsets) {
99
+ if (!curInsets || nextInsets.bottom !== curInsets.bottom || nextInsets.left !== curInsets.left || nextInsets.right !== curInsets.right || nextInsets.top !== curInsets.top) {
100
+ return nextInsets;
101
+ }
102
+ return curInsets;
103
+ });
104
+ });
105
+ }, []);
106
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_NativeSafeAreaProvider.NativeSafeAreaProvider, {
107
+ onInsetsChange,
108
+ ...others,
109
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SafeAreaFrameContext.Provider, {
110
+ value: frame,
111
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(SafeAreaInsetsContext.Provider, {
112
+ value: insets,
113
+ children
114
+ })
115
+ })
116
+ });
117
+ }
118
+ function useParentSafeAreaInsets() {
119
+ return React.useContext(SafeAreaInsetsContext);
120
+ }
121
+ function useParentSafeAreaFrame() {
122
+ return React.useContext(SafeAreaFrameContext);
123
+ }
124
+ var NO_INSETS_ERROR = "No safe area value available. Make sure you are rendering `<SafeAreaProvider>` at the top of your app.";
125
+ function useSafeAreaInsets() {
126
+ var insets = React.useContext(SafeAreaInsetsContext);
127
+ if (insets == null) {
128
+ throw new Error(NO_INSETS_ERROR);
129
+ }
130
+ return insets;
131
+ }
132
+ function useSafeAreaFrame() {
133
+ var frame = React.useContext(SafeAreaFrameContext);
134
+ if (frame == null) {
135
+ throw new Error(NO_INSETS_ERROR);
136
+ }
137
+ return frame;
138
+ }
139
+ function withSafeAreaInsets(WrappedComponent) {
140
+ return /* @__PURE__ */React.forwardRef(function (props, ref) {
141
+ var insets = useSafeAreaInsets();
142
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(WrappedComponent, {
143
+ ...props,
144
+ insets,
145
+ ref
146
+ });
147
+ });
148
+ }
149
+ function useSafeArea() {
150
+ return useSafeAreaInsets();
151
+ }
152
+ var SafeAreaConsumer = SafeAreaInsetsContext.Consumer;
153
+ var SafeAreaContext = SafeAreaInsetsContext;
154
+ //# sourceMappingURL=SafeAreaContext.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SafeAreaContext_exports","__export","SafeAreaConsumer","SafeAreaContext","SafeAreaFrameContext","SafeAreaInsetsContext","SafeAreaProvider","useSafeArea","useSafeAreaFrame","useSafeAreaInsets","withSafeAreaInsets","module","exports","import_jsx_runtime","require","React","__toESM","import_NativeSafeAreaProvider","import_getWindowFrame","isDev","process","env","NODE_ENV","createContext","displayName","ZERO_INSETS","top","bottom","left","right","param","children","initialMetrics","initialSafeAreaInsets","others","_ref","_ref1","_ref2","_ref3","_ref4","parentInsets","useParentSafeAreaInsets","parentFrame","useParentSafeAreaFrame","insets","setInsets","useState","frame","setFrame","getWindowFrame","onInsetsChange","useCallback","event","nativeEvent","nextFrame","nextInsets","startTransition","curFrame","height","width","x","y","curInsets","jsx","NativeSafeAreaProvider","Provider","useContext","NO_INSETS_ERROR","Error","WrappedComponent","forwardRef","props","ref"],"sources":["../../src/SafeAreaContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA,qBAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA,iBAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAuB,GAAAjB,YAAA,CAAAK,uBAAA;AACvB,IAAAa,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A6C,MAAA;QACPb;MACF;IAEA;EAGO;AACL;AACA,SAAIU,uBAAgBA,CAAA;EAClB,OAAA1B,KAAU,CAAAmD,UAAM,CAAA7D,qBAAe;AAAA;AAEjC,SAAOsC,uBAAA;EACT,OAAA5B,KAAA,CAAAmD,UAAA,CAAA9D,oBAAA;AAEO;AACL,IAAA+D,eAAc,GAAM,wGAA+B;AACnD,SAAI1D,iBAAeA,CAAA;EACjB,IAAAmC,MAAM,GAAI7B,KAAM,CAAAmD,UAAA,CAAA7D,qBAAe;EACjC,IAAAuC,MAAA;IACA,MAAO,IAAAwB,KAAA,CAAAD,eAAA;EACT;EAMO,OAASvB,MAAA;AAKd;AACE,SAAApC,gBAAeA,CAAA;EAEf,IAAAuC,KAAO,GAAAhC,KAAA,CAAAmD,UAAA,CAAA9D,oBAAA;EACT,IAAC2C,KAAA;IACH,UAAAqB,KAAA,CAAAD,eAAA;EAKO;EACL,OAAOpB,KAAA;AACT;AAKO,SAAMrC,kBAAmBA,CAAA2D,gBAAA;EAKzB,OAAM,eAAkBtD,KAAA,CAAAuD,UAAA,WAAAC,KAAA,EAAAC,GAAA","ignoreList":[]}
@@ -0,0 +1,123 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
34
+ var SafeAreaView_exports = {};
35
+ __export(SafeAreaView_exports, {
36
+ SafeAreaView: () => SafeAreaView
37
+ });
38
+ module.exports = __toCommonJS(SafeAreaView_exports);
39
+ var React = __toESM(require("react"), 1);
40
+ var import_SafeAreaContext = require("./SafeAreaContext.cjs");
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ const TOP = 8;
43
+ const RIGHT = 4;
44
+ const BOTTOM = 2;
45
+ const LEFT = 1;
46
+ const ALL = 15;
47
+ const edgeBitmaskMap = {
48
+ top: TOP,
49
+ right: RIGHT,
50
+ bottom: BOTTOM,
51
+ left: LEFT
52
+ };
53
+ const SafeAreaView = React.forwardRef(({
54
+ style = {},
55
+ mode,
56
+ edges,
57
+ ...rest
58
+ }, ref) => {
59
+ const insets = (0, import_SafeAreaContext.useSafeAreaInsets)();
60
+ const edgeBitmask = edges != null ? Array.isArray(edges) ? edges.reduce((acc, edge) => acc | edgeBitmaskMap[edge], 0) : Object.keys(edges).reduce((acc, edge) => acc | edgeBitmaskMap[edge], 0) : ALL;
61
+ const appliedStyle = React.useMemo(() => {
62
+ const insetTop = edgeBitmask & TOP ? insets.top : 0;
63
+ const insetRight = edgeBitmask & RIGHT ? insets.right : 0;
64
+ const insetBottom = edgeBitmask & BOTTOM ? insets.bottom : 0;
65
+ const insetLeft = edgeBitmask & LEFT ? insets.left : 0;
66
+ const flatStyle = (Array.isArray(style) ? style.flat(Number.POSITIVE_INFINITY) : [style]).reduce((result, value) => value ? Object.assign(result, value) : result, {});
67
+ if (mode === "margin") {
68
+ const {
69
+ margin = 0,
70
+ marginVertical = margin,
71
+ marginHorizontal = margin,
72
+ marginTop = marginVertical,
73
+ marginRight = marginHorizontal,
74
+ marginBottom = marginVertical,
75
+ marginLeft = marginHorizontal
76
+ } = flatStyle;
77
+ const marginStyle = {
78
+ marginTop: marginTop + insetTop,
79
+ marginRight: marginRight + insetRight,
80
+ marginBottom: marginBottom + insetBottom,
81
+ marginLeft: marginLeft + insetLeft
82
+ };
83
+ const {
84
+ marginVertical: _marginVertical,
85
+ marginHorizontal: _marginHorizontal,
86
+ ...domStyle2
87
+ } = flatStyle;
88
+ return {
89
+ ...domStyle2,
90
+ ...marginStyle
91
+ };
92
+ }
93
+ const {
94
+ padding = 0,
95
+ paddingVertical = padding,
96
+ paddingHorizontal = padding,
97
+ paddingTop = paddingVertical,
98
+ paddingRight = paddingHorizontal,
99
+ paddingBottom = paddingVertical,
100
+ paddingLeft = paddingHorizontal
101
+ } = flatStyle;
102
+ const paddingStyle = {
103
+ paddingTop: paddingTop + insetTop,
104
+ paddingRight: paddingRight + insetRight,
105
+ paddingBottom: paddingBottom + insetBottom,
106
+ paddingLeft: paddingLeft + insetLeft
107
+ };
108
+ const {
109
+ paddingVertical: _paddingVertical,
110
+ paddingHorizontal: _paddingHorizontal,
111
+ ...domStyle
112
+ } = flatStyle;
113
+ return {
114
+ ...domStyle,
115
+ ...paddingStyle
116
+ };
117
+ }, [style, insets, mode, edgeBitmask]);
118
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
119
+ ...rest,
120
+ style: appliedStyle,
121
+ ref
122
+ });
123
+ });
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
36
+ var SafeAreaView_exports = {};
37
+ __export(SafeAreaView_exports, {
38
+ SafeAreaView: () => SafeAreaView
39
+ });
40
+ module.exports = __toCommonJS(SafeAreaView_exports);
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var React = __toESM(require("react"), 1);
43
+ var import_SafeAreaContext = require("./SafeAreaContext.native.js");
44
+ var TOP = 8;
45
+ var RIGHT = 4;
46
+ var BOTTOM = 2;
47
+ var LEFT = 1;
48
+ var ALL = 15;
49
+ var edgeBitmaskMap = {
50
+ top: TOP,
51
+ right: RIGHT,
52
+ bottom: BOTTOM,
53
+ left: LEFT
54
+ };
55
+ var SafeAreaView = /* @__PURE__ */React.forwardRef(function (param, ref) {
56
+ var {
57
+ style = {},
58
+ mode,
59
+ edges,
60
+ ...rest
61
+ } = param;
62
+ var insets = (0, import_SafeAreaContext.useSafeAreaInsets)();
63
+ var edgeBitmask = edges != null ? Array.isArray(edges) ? edges.reduce(function (acc, edge) {
64
+ return acc | edgeBitmaskMap[edge];
65
+ }, 0) : Object.keys(edges).reduce(function (acc, edge) {
66
+ return acc | edgeBitmaskMap[edge];
67
+ }, 0) : ALL;
68
+ var appliedStyle = React.useMemo(function () {
69
+ var insetTop = edgeBitmask & TOP ? insets.top : 0;
70
+ var insetRight = edgeBitmask & RIGHT ? insets.right : 0;
71
+ var insetBottom = edgeBitmask & BOTTOM ? insets.bottom : 0;
72
+ var insetLeft = edgeBitmask & LEFT ? insets.left : 0;
73
+ var flatStyle = (Array.isArray(style) ? style.flat(Number.POSITIVE_INFINITY) : [style]).reduce(function (result, value) {
74
+ return value ? Object.assign(result, value) : result;
75
+ }, {});
76
+ if (mode === "margin") {
77
+ var {
78
+ margin = 0,
79
+ marginVertical = margin,
80
+ marginHorizontal = margin,
81
+ marginTop = marginVertical,
82
+ marginRight = marginHorizontal,
83
+ marginBottom = marginVertical,
84
+ marginLeft = marginHorizontal
85
+ } = flatStyle;
86
+ var marginStyle = {
87
+ marginTop: marginTop + insetTop,
88
+ marginRight: marginRight + insetRight,
89
+ marginBottom: marginBottom + insetBottom,
90
+ marginLeft: marginLeft + insetLeft
91
+ };
92
+ var {
93
+ marginVertical: _marginVertical,
94
+ marginHorizontal: _marginHorizontal,
95
+ ...domStyle
96
+ } = flatStyle;
97
+ return {
98
+ ...domStyle,
99
+ ...marginStyle
100
+ };
101
+ }
102
+ var {
103
+ padding = 0,
104
+ paddingVertical = padding,
105
+ paddingHorizontal = padding,
106
+ paddingTop = paddingVertical,
107
+ paddingRight = paddingHorizontal,
108
+ paddingBottom = paddingVertical,
109
+ paddingLeft = paddingHorizontal
110
+ } = flatStyle;
111
+ var paddingStyle = {
112
+ paddingTop: paddingTop + insetTop,
113
+ paddingRight: paddingRight + insetRight,
114
+ paddingBottom: paddingBottom + insetBottom,
115
+ paddingLeft: paddingLeft + insetLeft
116
+ };
117
+ var {
118
+ paddingVertical: _paddingVertical,
119
+ paddingHorizontal: _paddingHorizontal,
120
+ ...domStyle1
121
+ } = flatStyle;
122
+ return {
123
+ ...domStyle1,
124
+ ...paddingStyle
125
+ };
126
+ }, [style, insets, mode, edgeBitmask]);
127
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)("div", {
128
+ ...rest,
129
+ style: appliedStyle,
130
+ ref
131
+ });
132
+ });
133
+ //# sourceMappingURL=SafeAreaView.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SafeAreaView_exports","__export","SafeAreaView","module","exports","import_jsx_runtime","require","React","__toESM","import_SafeAreaContext","TOP","RIGHT","BOTTOM","LEFT","ALL","edgeBitmaskMap","top","right","bottom","left","forwardRef","param","ref","style","mode","edges","rest","insets","useSafeAreaInsets","edgeBitmask","Array","isArray","reduce","acc","edge","Object","keys","appliedStyle","useMemo","insetTop","insetRight","insetBottom","insetLeft","flatStyle","flat","Number","POSITIVE_INFINITY","result","assign","margin","marginVertical","marginHorizontal","marginTop","marginRight","marginBottom","marginLeft","marginStyle","_marginVertical","_marginHorizontal","domStyle","padding","paddingVertical","paddingHorizontal","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingStyle","_paddingVertical","_paddingHorizontal","domStyle1","jsx"],"sources":["../../src/SafeAreaView.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAuB,GAAAT,YAAA,CAAAK,oBAAA;AACvB,IAAAK,kBAAA,GAAAC,OAAkC;AAsG9B,IAAAC,KAAA,GAAAC,OAAA,CAAAF,OA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BAAA;MAAA,GAAAC;IAAA,IAAA3B,SAAA;IAAA,OACf;MACA,GAAA2B,SAAA;MACF,GAAIH;IAEJ;EAAqB,IACM5C,KACzB,EAA6BI,MAC7B,EAA+BH,IAC/B,EACFK,WAAA,CAEA;EAAM,OACJ,eAAiB,IAAAxB,kBAAA,CAAAkE,GAAA;IAAA,GACjB7C,IAAA;IAAmBH,KAChB,EAAAc,YAAA;IACLf;EACA;AAAsC,EACxC","ignoreList":[]}
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var getWindowFrame_exports = {};
24
+ __export(getWindowFrame_exports, {
25
+ getWindowFrame: () => getWindowFrame
26
+ });
27
+ module.exports = __toCommonJS(getWindowFrame_exports);
28
+ function getWindowFrame() {
29
+ return {
30
+ x: 0,
31
+ y: 0,
32
+ width: typeof window === "undefined" ? 0 : window.innerWidth,
33
+ height: typeof window === "undefined" ? 0 : window.innerHeight
34
+ };
35
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var getWindowFrame_native_exports = {};
26
+ __export(getWindowFrame_native_exports, {
27
+ getWindowFrame: () => getWindowFrame
28
+ });
29
+ module.exports = __toCommonJS(getWindowFrame_native_exports);
30
+ var import_react_native = require("react-native");
31
+ function getWindowFrame() {
32
+ var {
33
+ width,
34
+ height
35
+ } = import_react_native.Dimensions.get("window");
36
+ return {
37
+ x: 0,
38
+ y: 0,
39
+ width,
40
+ height
41
+ };
42
+ }
43
+ //# sourceMappingURL=getWindowFrame.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getWindowFrame_native_exports","__export","getWindowFrame","module","exports","__toCommonJS","import_react_native","require","width","height","Dimensions","get","x","y"],"sources":["../../src/getWindowFrame.native.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,6BAAA;AAAAC,QAAA,CAAAD,6BAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,6BAAA;AAAA,IAAAM,mBAAA,GAA2BC,OAAA;AACpB,SAASL,eAAA,EAAiB;EAC7B,IAAI;IAAEM,KAAA;IAAOC;EAAO,IAAIH,mBAAA,CAAAI,UAAA,CAAWC,GAAA,CAAI,QAAQ;EAC/C,OAAO;IACHC,CAAA,EAAG;IACHC,CAAA,EAAG;IACHL,KAAA;IACAC;EACJ;AACJ","ignoreList":[]}
@@ -0,0 +1,22 @@
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)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
+ value: true
17
+ }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./SafeAreaContext.cjs"), module.exports);
21
+ __reExport(index_exports, require("./SafeAreaView.cjs"), module.exports);
22
+ __reExport(index_exports, require("./InitialWindow.cjs"), module.exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __copyProps = (to, from, except, desc) => {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
+ value: true
19
+ }), mod);
20
+ var index_exports = {};
21
+ module.exports = __toCommonJS(index_exports);
22
+ __reExport(index_exports, require("./SafeAreaContext.native.js"), module.exports);
23
+ __reExport(index_exports, require("./SafeAreaView.native.js"), module.exports);
24
+ __reExport(index_exports, require("./InitialWindow.native.js"), module.exports);
25
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,8BADd,GAAAH,MAAA,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,8BAAAH,MAFd,CAAAC,OAAA","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ const initialWindowMetrics = null;
2
+ const initialWindowSafeAreaInsets = null;
3
+ export { initialWindowMetrics, initialWindowSafeAreaInsets };
4
+ //# sourceMappingURL=InitialWindow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["initialWindowMetrics","initialWindowSafeAreaInsets"],"sources":["../../src/InitialWindow.ts"],"sourcesContent":[null],"mappings":"AAEO,MAAMA,oBAAA,GAAuC;AAK7C,MAAMC,2BAAA,GAAiD","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ var initialWindowMetrics = null;
2
+ var initialWindowSafeAreaInsets = null;
3
+ export { initialWindowMetrics, initialWindowSafeAreaInsets };
4
+ //# sourceMappingURL=InitialWindow.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["initialWindowMetrics","initialWindowSafeAreaInsets"],"sources":["../../src/InitialWindow.ts"],"sourcesContent":[null],"mappings":"AAEO,IAAAA,oBAAM,OAAuC;AAK7C,IAAAC,2BAAM,OAAiD","ignoreList":[]}