@tamagui/react-native-media-driver 2.7.7 → 3.0.0-beta.637.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/dist/cjs/index.cjs +10 -12
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -11
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/matchMedia.cjs +15 -18
- package/dist/cjs/matchMedia.native.cjs +30 -0
- package/dist/cjs/matchMedia.native.js +17 -19
- package/dist/cjs/matchMedia.native.js.map +1 -1
- package/dist/cjs/matchQuery.cjs +115 -132
- package/dist/cjs/matchQuery.native.cjs +145 -0
- package/dist/cjs/matchQuery.native.js +117 -133
- package/dist/cjs/matchQuery.native.js.map +1 -1
- package/dist/cjs/mediaQueryList.cjs +102 -66
- package/dist/cjs/mediaQueryList.native.cjs +180 -0
- package/dist/cjs/mediaQueryList.native.js +158 -110
- package/dist/cjs/mediaQueryList.native.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.mjs +1 -3
- package/dist/esm/index.native.js +1 -3
- package/dist/esm/matchMedia.mjs +1 -0
- package/dist/esm/matchMedia.mjs.map +1 -1
- package/dist/esm/matchMedia.native.js +4 -2
- package/dist/esm/matchMedia.native.js.map +1 -1
- package/dist/esm/matchQuery.mjs +100 -115
- package/dist/esm/matchQuery.mjs.map +1 -1
- package/dist/esm/matchQuery.native.js +102 -117
- package/dist/esm/matchQuery.native.js.map +1 -1
- package/dist/esm/mediaQueryList.mjs +90 -49
- package/dist/esm/mediaQueryList.mjs.map +1 -1
- package/dist/esm/mediaQueryList.native.js +146 -94
- package/dist/esm/mediaQueryList.native.js.map +1 -1
- package/package.json +7 -4
- package/src/index.ts +0 -1
- package/src/mediaQueryList.ts +58 -3
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +2 -2
- package/types/mediaQueryList.d.ts +2 -2
- package/types/mediaQueryList.d.ts.map +2 -2
- package/dist/cjs/createMedia.cjs +0 -33
- package/dist/cjs/createMedia.native.js +0 -36
- package/dist/cjs/createMedia.native.js.map +0 -1
- package/dist/esm/createMedia.mjs +0 -8
- package/dist/esm/createMedia.mjs.map +0 -1
- package/dist/esm/createMedia.native.js +0 -8
- package/dist/esm/createMedia.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/src/createMedia.ts +0 -19
- package/types/createMedia.d.ts +0 -10
- package/types/createMedia.d.ts.map +0 -11
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var mediaQueryList_exports = {};
|
|
25
|
+
__export(mediaQueryList_exports, { NativeMediaQueryList: () => NativeMediaQueryList });
|
|
26
|
+
module.exports = __toCommonJS(mediaQueryList_exports);
|
|
27
|
+
var import_react_native = require("react-native");
|
|
28
|
+
var import_matchQuery = require("./matchQuery.native.js");
|
|
29
|
+
function _class_call_check(instance, Constructor) {
|
|
30
|
+
if (!(instance instanceof Constructor)) {
|
|
31
|
+
throw new TypeError("Cannot call a class as a function");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function _defineProperties(target, props) {
|
|
35
|
+
for (var i = 0; i < props.length; i++) {
|
|
36
|
+
var descriptor = props[i];
|
|
37
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
38
|
+
descriptor.configurable = true;
|
|
39
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
40
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
44
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
45
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
46
|
+
return Constructor;
|
|
47
|
+
}
|
|
48
|
+
function _define_property(obj, key, value) {
|
|
49
|
+
if (key in obj) {
|
|
50
|
+
Object.defineProperty(obj, key, {
|
|
51
|
+
value,
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
obj[key] = value;
|
|
58
|
+
}
|
|
59
|
+
return obj;
|
|
60
|
+
}
|
|
61
|
+
var REDUCED_MOTION_RE = /\(\s*prefers-reduced-motion\s*:\s*([a-z-]+)\s*\)/i;
|
|
62
|
+
var reducedMotionEnabled = false;
|
|
63
|
+
var reducedMotionInitialized = false;
|
|
64
|
+
var reducedMotionListeners = /* @__PURE__ */ new Set();
|
|
65
|
+
function ensureReducedMotionSubscription() {
|
|
66
|
+
var _AccessibilityInfo_isReduceMotionEnabled, _AccessibilityInfo_addEventListener;
|
|
67
|
+
if (reducedMotionInitialized) return;
|
|
68
|
+
reducedMotionInitialized = true;
|
|
69
|
+
(_AccessibilityInfo_isReduceMotionEnabled = import_react_native.AccessibilityInfo.isReduceMotionEnabled) === null || _AccessibilityInfo_isReduceMotionEnabled === void 0 ? void 0 : _AccessibilityInfo_isReduceMotionEnabled.call(import_react_native.AccessibilityInfo).then(function(value) {
|
|
70
|
+
if (value !== reducedMotionEnabled) {
|
|
71
|
+
reducedMotionEnabled = value;
|
|
72
|
+
reducedMotionListeners.forEach(function(cb) {
|
|
73
|
+
return cb();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}).catch(function() {});
|
|
77
|
+
(_AccessibilityInfo_addEventListener = import_react_native.AccessibilityInfo.addEventListener) === null || _AccessibilityInfo_addEventListener === void 0 ? void 0 : _AccessibilityInfo_addEventListener.call(import_react_native.AccessibilityInfo, "reduceMotionChanged", function(value) {
|
|
78
|
+
if (value === reducedMotionEnabled) return;
|
|
79
|
+
reducedMotionEnabled = value;
|
|
80
|
+
reducedMotionListeners.forEach(function(cb) {
|
|
81
|
+
return cb();
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
var NativeMediaQueryList = /* @__PURE__ */ (function() {
|
|
86
|
+
"use strict";
|
|
87
|
+
function NativeMediaQueryList2(query) {
|
|
88
|
+
var _this = this;
|
|
89
|
+
_class_call_check(this, NativeMediaQueryList2);
|
|
90
|
+
_define_property(this, "query", void 0);
|
|
91
|
+
_define_property(this, "listeners", void 0);
|
|
92
|
+
_define_property(this, "reducedMotionExpected", void 0);
|
|
93
|
+
this.query = query;
|
|
94
|
+
this.listeners = [];
|
|
95
|
+
this.reducedMotionExpected = null;
|
|
96
|
+
var reducedMotionMatch = query.match(REDUCED_MOTION_RE);
|
|
97
|
+
if (reducedMotionMatch) {
|
|
98
|
+
this.reducedMotionExpected = reducedMotionMatch[1];
|
|
99
|
+
ensureReducedMotionSubscription();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.notify();
|
|
103
|
+
import_react_native.Dimensions.addEventListener("change", function() {
|
|
104
|
+
_this.notify();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
_create_class(NativeMediaQueryList2, [
|
|
108
|
+
{
|
|
109
|
+
key: "orientation",
|
|
110
|
+
get: function get() {
|
|
111
|
+
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
112
|
+
return windowDimensions.height > windowDimensions.width ? "portrait" : "landscape";
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "notify",
|
|
117
|
+
value: function notify() {
|
|
118
|
+
this.listeners.forEach(function(listener) {
|
|
119
|
+
listener();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "addListener",
|
|
125
|
+
value: function addListener(listener) {
|
|
126
|
+
if (this.reducedMotionExpected) {
|
|
127
|
+
reducedMotionListeners.add(listener);
|
|
128
|
+
this.listeners.push(listener);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
this.listeners.push(listener);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: "removeListener",
|
|
136
|
+
value: function removeListener(listener) {
|
|
137
|
+
if (this.reducedMotionExpected) {
|
|
138
|
+
reducedMotionListeners.delete(listener);
|
|
139
|
+
}
|
|
140
|
+
var index = this.listeners.indexOf(listener);
|
|
141
|
+
if (index !== -1) this.listeners.splice(index, 1);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: "match",
|
|
146
|
+
value: function match(query, param) {
|
|
147
|
+
var { width, height } = param;
|
|
148
|
+
var reducedMotionMatch = query.match(REDUCED_MOTION_RE);
|
|
149
|
+
if (reducedMotionMatch) {
|
|
150
|
+
var expected = reducedMotionMatch[1];
|
|
151
|
+
return expected === "reduce" ? reducedMotionEnabled : !reducedMotionEnabled;
|
|
152
|
+
}
|
|
153
|
+
return (0, import_matchQuery.matchQuery)(query, {
|
|
154
|
+
type: "screen",
|
|
155
|
+
orientation: height > width ? "portrait" : "landscape",
|
|
156
|
+
"device-width": width,
|
|
157
|
+
"device-height": height
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "matches",
|
|
163
|
+
get: function get() {
|
|
164
|
+
if (this.reducedMotionExpected) {
|
|
165
|
+
return this.reducedMotionExpected === "reduce" ? reducedMotionEnabled : !reducedMotionEnabled;
|
|
166
|
+
}
|
|
167
|
+
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
168
|
+
var matches = (0, import_matchQuery.matchQuery)(this.query, {
|
|
169
|
+
type: "screen",
|
|
170
|
+
orientation: this.orientation,
|
|
171
|
+
...windowDimensions,
|
|
172
|
+
"device-width": windowDimensions.width,
|
|
173
|
+
"device-height": windowDimensions.height
|
|
174
|
+
});
|
|
175
|
+
return matches;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]);
|
|
179
|
+
return NativeMediaQueryList2;
|
|
180
|
+
})();
|
|
@@ -1,134 +1,182 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var mediaQueryList_exports = {};
|
|
26
|
-
__export(mediaQueryList_exports, {
|
|
27
|
-
NativeMediaQueryList: () => NativeMediaQueryList
|
|
28
|
-
});
|
|
25
|
+
__export(mediaQueryList_exports, { NativeMediaQueryList: () => NativeMediaQueryList });
|
|
29
26
|
module.exports = __toCommonJS(mediaQueryList_exports);
|
|
30
27
|
var import_react_native = require("react-native");
|
|
31
28
|
var import_matchQuery = require("./matchQuery.native.js");
|
|
32
29
|
function _class_call_check(instance, Constructor) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
if (!(instance instanceof Constructor)) {
|
|
31
|
+
throw new TypeError("Cannot call a class as a function");
|
|
32
|
+
}
|
|
36
33
|
}
|
|
37
34
|
function _defineProperties(target, props) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
for (var i = 0; i < props.length; i++) {
|
|
36
|
+
var descriptor = props[i];
|
|
37
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
38
|
+
descriptor.configurable = true;
|
|
39
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
40
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
41
|
+
}
|
|
45
42
|
}
|
|
46
43
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
45
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
46
|
+
return Constructor;
|
|
50
47
|
}
|
|
51
48
|
function _define_property(obj, key, value) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
49
|
+
if (key in obj) {
|
|
50
|
+
Object.defineProperty(obj, key, {
|
|
51
|
+
value,
|
|
52
|
+
enumerable: true,
|
|
53
|
+
configurable: true,
|
|
54
|
+
writable: true
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
obj[key] = value;
|
|
58
|
+
}
|
|
59
|
+
return obj;
|
|
60
|
+
}
|
|
61
|
+
var REDUCED_MOTION_RE = /\(\s*prefers-reduced-motion\s*:\s*([a-z-]+)\s*\)/i;
|
|
62
|
+
var reducedMotionEnabled = false;
|
|
63
|
+
var reducedMotionInitialized = false;
|
|
64
|
+
var reducedMotionListeners = /* @__PURE__ */ new Set();
|
|
65
|
+
function ensureReducedMotionSubscription() {
|
|
66
|
+
var _AccessibilityInfo_isReduceMotionEnabled, _AccessibilityInfo_addEventListener;
|
|
67
|
+
if (reducedMotionInitialized) return;
|
|
68
|
+
reducedMotionInitialized = true;
|
|
69
|
+
(_AccessibilityInfo_isReduceMotionEnabled = import_react_native.AccessibilityInfo.isReduceMotionEnabled) === null || _AccessibilityInfo_isReduceMotionEnabled === void 0 ? void 0 : _AccessibilityInfo_isReduceMotionEnabled.call(import_react_native.AccessibilityInfo).then(function(value) {
|
|
70
|
+
if (value !== reducedMotionEnabled) {
|
|
71
|
+
reducedMotionEnabled = value;
|
|
72
|
+
reducedMotionListeners.forEach(function(cb) {
|
|
73
|
+
return cb();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}).catch(function() {});
|
|
77
|
+
(_AccessibilityInfo_addEventListener = import_react_native.AccessibilityInfo.addEventListener) === null || _AccessibilityInfo_addEventListener === void 0 ? void 0 : _AccessibilityInfo_addEventListener.call(import_react_native.AccessibilityInfo, "reduceMotionChanged", function(value) {
|
|
78
|
+
if (value === reducedMotionEnabled) return;
|
|
79
|
+
reducedMotionEnabled = value;
|
|
80
|
+
reducedMotionListeners.forEach(function(cb) {
|
|
81
|
+
return cb();
|
|
82
|
+
});
|
|
83
|
+
});
|
|
63
84
|
}
|
|
64
|
-
var NativeMediaQueryList = /* @__PURE__ */
|
|
65
|
-
|
|
85
|
+
var NativeMediaQueryList = /* @__PURE__ */ (function() {
|
|
86
|
+
"use strict";
|
|
87
|
+
function NativeMediaQueryList2(query) {
|
|
88
|
+
var _this = this;
|
|
89
|
+
_class_call_check(this, NativeMediaQueryList2);
|
|
90
|
+
_define_property(this, "query", void 0);
|
|
91
|
+
_define_property(this, "listeners", void 0);
|
|
92
|
+
_define_property(this, "reducedMotionExpected", void 0);
|
|
93
|
+
this.query = query;
|
|
94
|
+
this.listeners = [];
|
|
95
|
+
this.reducedMotionExpected = null;
|
|
96
|
+
var reducedMotionMatch = query.match(REDUCED_MOTION_RE);
|
|
97
|
+
if (reducedMotionMatch) {
|
|
98
|
+
this.reducedMotionExpected = reducedMotionMatch[1];
|
|
99
|
+
ensureReducedMotionSubscription();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.notify();
|
|
103
|
+
import_react_native.Dimensions.addEventListener("change", function() {
|
|
104
|
+
_this.notify();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
_create_class(NativeMediaQueryList2, [
|
|
108
|
+
{
|
|
109
|
+
key: "orientation",
|
|
110
|
+
get: function get() {
|
|
111
|
+
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
112
|
+
return windowDimensions.height > windowDimensions.width ? "portrait" : "landscape";
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "notify",
|
|
117
|
+
value: function notify() {
|
|
118
|
+
this.listeners.forEach(function(listener) {
|
|
119
|
+
listener();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
key: "addListener",
|
|
125
|
+
value: function addListener(listener) {
|
|
126
|
+
if (this.reducedMotionExpected) {
|
|
127
|
+
reducedMotionListeners.add(listener);
|
|
128
|
+
this.listeners.push(listener);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
this.listeners.push(listener);
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: "removeListener",
|
|
136
|
+
value: function removeListener(listener) {
|
|
137
|
+
if (this.reducedMotionExpected) {
|
|
138
|
+
reducedMotionListeners.delete(listener);
|
|
139
|
+
}
|
|
140
|
+
var index = this.listeners.indexOf(listener);
|
|
141
|
+
if (index !== -1) this.listeners.splice(index, 1);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: "match",
|
|
146
|
+
value: function match(query, param) {
|
|
147
|
+
var { width, height } = param;
|
|
148
|
+
var reducedMotionMatch = query.match(REDUCED_MOTION_RE);
|
|
149
|
+
if (reducedMotionMatch) {
|
|
150
|
+
var expected = reducedMotionMatch[1];
|
|
151
|
+
return expected === "reduce" ? reducedMotionEnabled : !reducedMotionEnabled;
|
|
152
|
+
}
|
|
153
|
+
return (0, import_matchQuery.matchQuery)(query, {
|
|
154
|
+
type: "screen",
|
|
155
|
+
orientation: height > width ? "portrait" : "landscape",
|
|
156
|
+
"device-width": width,
|
|
157
|
+
"device-height": height
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "matches",
|
|
163
|
+
get: function get() {
|
|
164
|
+
if (this.reducedMotionExpected) {
|
|
165
|
+
return this.reducedMotionExpected === "reduce" ? reducedMotionEnabled : !reducedMotionEnabled;
|
|
166
|
+
}
|
|
167
|
+
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
168
|
+
var matches = (0, import_matchQuery.matchQuery)(this.query, {
|
|
169
|
+
type: "screen",
|
|
170
|
+
orientation: this.orientation,
|
|
171
|
+
...windowDimensions,
|
|
172
|
+
"device-width": windowDimensions.width,
|
|
173
|
+
"device-height": windowDimensions.height
|
|
174
|
+
});
|
|
175
|
+
return matches;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]);
|
|
179
|
+
return NativeMediaQueryList2;
|
|
180
|
+
})();
|
|
66
181
|
|
|
67
|
-
function NativeMediaQueryList2(query) {
|
|
68
|
-
var _this = this;
|
|
69
|
-
_class_call_check(this, NativeMediaQueryList2);
|
|
70
|
-
_define_property(this, "query", void 0);
|
|
71
|
-
_define_property(this, "listeners", void 0);
|
|
72
|
-
this.query = query;
|
|
73
|
-
this.listeners = [];
|
|
74
|
-
this.notify();
|
|
75
|
-
import_react_native.Dimensions.addEventListener("change", function () {
|
|
76
|
-
_this.notify();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
_create_class(NativeMediaQueryList2, [{
|
|
80
|
-
key: "orientation",
|
|
81
|
-
get: function get() {
|
|
82
|
-
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
83
|
-
return windowDimensions.height > windowDimensions.width ? "portrait" : "landscape";
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
key: "notify",
|
|
87
|
-
value: function notify() {
|
|
88
|
-
var _this = this;
|
|
89
|
-
this.listeners.forEach(function (listener) {
|
|
90
|
-
listener(_this.orientation);
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
key: "addListener",
|
|
95
|
-
value: function addListener(listener) {
|
|
96
|
-
this.listeners.push(listener);
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "removeListener",
|
|
100
|
-
value: function removeListener(listener) {
|
|
101
|
-
var index = this.listeners.indexOf(listener);
|
|
102
|
-
if (index !== -1) this.listeners.splice(index, 1);
|
|
103
|
-
}
|
|
104
|
-
}, {
|
|
105
|
-
key: "match",
|
|
106
|
-
value: function match(query, param) {
|
|
107
|
-
var {
|
|
108
|
-
width,
|
|
109
|
-
height
|
|
110
|
-
} = param;
|
|
111
|
-
return (0, import_matchQuery.matchQuery)(query, {
|
|
112
|
-
type: "screen",
|
|
113
|
-
orientation: height > width ? "portrait" : "landscape",
|
|
114
|
-
"device-width": width,
|
|
115
|
-
"device-height": height
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "matches",
|
|
120
|
-
get: function get() {
|
|
121
|
-
var windowDimensions = import_react_native.Dimensions.get("window");
|
|
122
|
-
var matches = (0, import_matchQuery.matchQuery)(this.query, {
|
|
123
|
-
type: "screen",
|
|
124
|
-
orientation: this.orientation,
|
|
125
|
-
...windowDimensions,
|
|
126
|
-
"device-width": windowDimensions.width,
|
|
127
|
-
"device-height": windowDimensions.height
|
|
128
|
-
});
|
|
129
|
-
return matches;
|
|
130
|
-
}
|
|
131
|
-
}]);
|
|
132
|
-
return NativeMediaQueryList2;
|
|
133
|
-
}();
|
|
134
182
|
//# sourceMappingURL=mediaQueryList.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","mediaQueryList_exports","__export","NativeMediaQueryList","module","exports","import_react_native","require","import_matchQuery","_class_call_check","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_create_class","protoProps","staticProps","prototype","_define_property","obj","NativeMediaQueryList2","query","_this","listeners","notify","Dimensions","addEventListener"],"sources":["../../src/mediaQueryList.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA2B,CAAAK,sBAAA;AAE3B,IAA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A;IAAAF,gBACO,KAAK;IAAAA,gBACf;IAAA,IACH,CAAAG,KAAA,GAAAA,KAAgB;IAAiB,IACjC,CAAAE,SAAA,KAAiB;IACnB,IAAC,CAAAC,MAAA;IACD7B,mBAAO,CAAA8B,UAAA,CAAAC,gBAAA;MACTJ,KAAA,CAAAE,MAAA;IACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"mediaQueryList.native.js","names":[],"sources":["cjs/mediaQueryList.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar mediaQueryList_exports = {};\n__export(mediaQueryList_exports, {\n NativeMediaQueryList: () => NativeMediaQueryList\n});\nmodule.exports = __toCommonJS(mediaQueryList_exports);\nvar import_react_native = require(\"react-native\");\nvar import_matchQuery = require(\"./matchQuery\");\nfunction _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar REDUCED_MOTION_RE = /\\(\\s*prefers-reduced-motion\\s*:\\s*([a-z-]+)\\s*\\)/i;\nvar reducedMotionEnabled = false;\nvar reducedMotionInitialized = false;\nvar reducedMotionListeners = /* @__PURE__ */ new Set();\nfunction ensureReducedMotionSubscription() {\n var _AccessibilityInfo_isReduceMotionEnabled, _AccessibilityInfo_addEventListener;\n if (reducedMotionInitialized) return;\n reducedMotionInitialized = true;\n (_AccessibilityInfo_isReduceMotionEnabled = import_react_native.AccessibilityInfo.isReduceMotionEnabled) === null || _AccessibilityInfo_isReduceMotionEnabled === void 0 ? void 0 : _AccessibilityInfo_isReduceMotionEnabled.call(import_react_native.AccessibilityInfo).then(function(value) {\n if (value !== reducedMotionEnabled) {\n reducedMotionEnabled = value;\n reducedMotionListeners.forEach(function(cb) {\n return cb();\n });\n }\n }).catch(function() {\n });\n (_AccessibilityInfo_addEventListener = import_react_native.AccessibilityInfo.addEventListener) === null || _AccessibilityInfo_addEventListener === void 0 ? void 0 : _AccessibilityInfo_addEventListener.call(import_react_native.AccessibilityInfo, \"reduceMotionChanged\", function(value) {\n if (value === reducedMotionEnabled) return;\n reducedMotionEnabled = value;\n reducedMotionListeners.forEach(function(cb) {\n return cb();\n });\n });\n}\nvar NativeMediaQueryList = /* @__PURE__ */ (function() {\n \"use strict\";\n function NativeMediaQueryList2(query) {\n var _this = this;\n _class_call_check(this, NativeMediaQueryList2);\n _define_property(this, \"query\", void 0);\n _define_property(this, \"listeners\", void 0);\n _define_property(this, \"reducedMotionExpected\", void 0);\n this.query = query;\n this.listeners = [];\n this.reducedMotionExpected = null;\n var reducedMotionMatch = query.match(REDUCED_MOTION_RE);\n if (reducedMotionMatch) {\n this.reducedMotionExpected = reducedMotionMatch[1];\n ensureReducedMotionSubscription();\n return;\n }\n this.notify();\n import_react_native.Dimensions.addEventListener(\"change\", function() {\n _this.notify();\n });\n }\n _create_class(NativeMediaQueryList2, [\n {\n key: \"orientation\",\n get: function get() {\n var windowDimensions = import_react_native.Dimensions.get(\"window\");\n return windowDimensions.height > windowDimensions.width ? \"portrait\" : \"landscape\";\n }\n },\n {\n key: \"notify\",\n value: function notify() {\n this.listeners.forEach(function(listener) {\n listener();\n });\n }\n },\n {\n key: \"addListener\",\n value: function addListener(listener) {\n if (this.reducedMotionExpected) {\n reducedMotionListeners.add(listener);\n this.listeners.push(listener);\n return;\n }\n this.listeners.push(listener);\n }\n },\n {\n key: \"removeListener\",\n value: function removeListener(listener) {\n if (this.reducedMotionExpected) {\n reducedMotionListeners.delete(listener);\n }\n var index = this.listeners.indexOf(listener);\n if (index !== -1) this.listeners.splice(index, 1);\n }\n },\n {\n key: \"match\",\n value: function match(query, param) {\n var { width, height } = param;\n var reducedMotionMatch = query.match(REDUCED_MOTION_RE);\n if (reducedMotionMatch) {\n var expected = reducedMotionMatch[1];\n return expected === \"reduce\" ? reducedMotionEnabled : !reducedMotionEnabled;\n }\n return (0, import_matchQuery.matchQuery)(query, {\n type: \"screen\",\n orientation: height > width ? \"portrait\" : \"landscape\",\n \"device-width\": width,\n \"device-height\": height\n });\n }\n },\n {\n key: \"matches\",\n get: function get() {\n if (this.reducedMotionExpected) {\n return this.reducedMotionExpected === \"reduce\" ? reducedMotionEnabled : !reducedMotionEnabled;\n }\n var windowDimensions = import_react_native.Dimensions.get(\"window\");\n var matches = (0, import_matchQuery.matchQuery)(this.query, {\n type: \"screen\",\n orientation: this.orientation,\n ...windowDimensions,\n \"device-width\": windowDimensions.width,\n \"device-height\": windowDimensions.height\n });\n return matches;\n }\n }\n ]);\n return NativeMediaQueryList2;\n})();\n//# sourceMappingURL=mediaQueryList.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OA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AAgB;KAChB,iBAAiB;IACnB,CAAC;GACH;EACF;EACA;GACE,KAAK;GACL,KAAK,SAAS,MAAM;IAClB,IAAI,KAAK,uBAAuB;KAC9B,OAAO,KAAK,0BAA0B,WAAW,uBAAuB,CAAC;IAC3E;IACA,IAAI,mBAAmB,oBAAoB,WAAW,IAAI,QAAQ;IAClE,IAAI,WAAW,GAAG,kBAAkB,YAAY,KAAK,OAAO;KAC1D,MAAM;KACN,aAAa,KAAK;KAClB,GAAG;KACH,gBAAgB,iBAAiB;KACjC,iBAAiB,iBAAiB;IACpC,CAAC;IACD,OAAO;GACT;EACF;CACF,CAAC;CACD,OAAO;AACT,GAAG"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/index.native.js
CHANGED
package/dist/esm/matchMedia.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"matchMedia.js","names":[],"sources":["esm/matchMedia.js"],"sourcesContent":["const matchMedia = globalThis[\"matchMedia\"];\nexport {\n matchMedia\n};\n//# sourceMappingURL=matchMedia.js.map\n"],"mappings":";AAAA,MAAM,aAAa,WAAW"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NativeMediaQueryList } from "./mediaQueryList.native.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
var matchMedia = function(query) {
|
|
4
|
+
return new NativeMediaQueryList(query);
|
|
4
5
|
};
|
|
6
|
+
|
|
5
7
|
export { matchMedia };
|
|
6
8
|
//# sourceMappingURL=matchMedia.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"matchMedia.native.js","names":[],"sources":["esm/matchMedia.native.js"],"sourcesContent":["import { NativeMediaQueryList } from \"./mediaQueryList\";\nvar matchMedia = function(query) {\n return new NativeMediaQueryList(query);\n};\nexport {\n matchMedia\n};\n//# sourceMappingURL=matchMedia.native.js.map\n"],"mappings":";;;AACA,IAAI,aAAa,SAAS,OAAO;CAC/B,OAAO,IAAI,qBAAqB,KAAK;AACvC"}
|