@hanzo/gui 7.2.2 → 7.3.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/LICENSE +40 -19
- package/dist/cjs/{createHanzogui.cjs → createGui.cjs} +14 -14
- package/dist/cjs/{createHanzogui.native.js → createGui.native.js} +15 -15
- package/dist/cjs/createGui.native.js.map +1 -0
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.native.js +4 -4
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/views/{HanzoguiProvider.cjs → GuiProvider.cjs} +6 -6
- package/dist/{jsx/views/HanzoguiProvider.native.js → cjs/views/GuiProvider.native.js} +7 -7
- package/dist/cjs/views/GuiProvider.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +1 -1
- package/dist/cjs/views/Text.native.js +1 -1
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/{jsx/createHanzogui.mjs → esm/createGui.mjs} +13 -13
- package/dist/esm/createGui.mjs.map +1 -0
- package/dist/esm/{createHanzogui.native.js → createGui.native.js} +13 -13
- package/dist/esm/createGui.native.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +4 -4
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/views/{HanzoguiProvider.mjs → GuiProvider.mjs} +4 -4
- package/dist/esm/views/GuiProvider.mjs.map +1 -0
- package/dist/esm/views/{HanzoguiProvider.native.js → GuiProvider.native.js} +4 -4
- package/dist/esm/views/GuiProvider.native.js.map +1 -0
- package/dist/esm/views/Text.mjs +3 -3
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +3 -3
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/{esm/createHanzogui.mjs → jsx/createGui.mjs} +13 -13
- package/dist/jsx/createGui.mjs.map +1 -0
- package/dist/jsx/{createHanzogui.native.js → createGui.native.js} +15 -15
- package/dist/jsx/createGui.native.js.map +1 -0
- package/dist/jsx/index.js +4 -4
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +4 -4
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +4 -4
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/views/{HanzoguiProvider.mjs → GuiProvider.mjs} +4 -4
- package/dist/jsx/views/GuiProvider.mjs.map +1 -0
- package/dist/{cjs/views/HanzoguiProvider.native.js → jsx/views/GuiProvider.native.js} +7 -7
- package/dist/jsx/views/GuiProvider.native.js.map +1 -0
- package/dist/jsx/views/Text.mjs +3 -3
- package/dist/jsx/views/Text.mjs.map +1 -1
- package/dist/jsx/views/Text.native.js +1 -1
- package/dist/jsx/views/Text.native.js.map +1 -1
- package/dist/native.cjs +560 -339
- package/dist/test.cjs +537 -312
- package/package.json +72 -80
- package/src/{createHanzogui.ts → createGui.ts} +13 -13
- package/src/index.ts +17 -17
- package/src/views/{HanzoguiProvider.tsx → GuiProvider.tsx} +3 -3
- package/src/views/Text.tsx +3 -3
- package/types/createGui.d.ts +6 -0
- package/types/createGui.d.ts.map +1 -0
- package/types/index.d.ts +4 -4
- package/types/index.d.ts.map +1 -1
- package/types/views/Anchor.d.ts +2 -2
- package/types/views/EnsureFlexed.d.ts +1 -1
- package/types/views/EnsureFlexed.d.ts.map +1 -1
- package/types/views/Fieldset.d.ts +1 -1
- package/types/views/GuiProvider.d.ts +3 -0
- package/types/views/GuiProvider.d.ts.map +1 -0
- package/types/views/Text.d.ts +1 -1
- package/types/views/VisuallyHidden.d.ts +1 -1
- package/dist/cjs/createHanzogui.native.js.map +0 -1
- package/dist/cjs/views/HanzoguiProvider.native.js.map +0 -1
- package/dist/esm/createHanzogui.mjs.map +0 -1
- package/dist/esm/createHanzogui.native.js.map +0 -1
- package/dist/esm/views/HanzoguiProvider.mjs.map +0 -1
- package/dist/esm/views/HanzoguiProvider.native.js.map +0 -1
- package/dist/jsx/createHanzogui.mjs.map +0 -1
- package/dist/jsx/createHanzogui.native.js.map +0 -1
- package/dist/jsx/views/HanzoguiProvider.mjs.map +0 -1
- package/dist/jsx/views/HanzoguiProvider.native.js.map +0 -1
- package/types/createHanzogui.d.ts +0 -6
- package/types/createHanzogui.d.ts.map +0 -1
- package/types/views/HanzoguiProvider.d.ts +0 -3
- package/types/views/HanzoguiProvider.d.ts.map +0 -1
package/dist/native.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
10
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
11
11
|
var __exportAll = (all, no_symbols) => {
|
|
12
12
|
let target = {};
|
|
13
13
|
for (var name in all) __defProp(target, name, {
|
|
@@ -37,7 +37,7 @@ let react = require("react");
|
|
|
37
37
|
let react$1 = __toESM(react, 1);
|
|
38
38
|
react = __toESM(react);
|
|
39
39
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
-
//#region \0@oxc-project+runtime@0.
|
|
40
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
41
41
|
function _typeof(o) {
|
|
42
42
|
"@babel/helpers - typeof";
|
|
43
43
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -48,7 +48,7 @@ function _typeof(o) {
|
|
|
48
48
|
}
|
|
49
49
|
var init_typeof = __esmMin((() => {}));
|
|
50
50
|
//#endregion
|
|
51
|
-
//#region \0@oxc-project+runtime@0.
|
|
51
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
52
52
|
function toPrimitive(t, r) {
|
|
53
53
|
if ("object" != _typeof(t) || !t) return t;
|
|
54
54
|
var e = t[Symbol.toPrimitive];
|
|
@@ -63,7 +63,7 @@ var init_toPrimitive = __esmMin((() => {
|
|
|
63
63
|
init_typeof();
|
|
64
64
|
}));
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region \0@oxc-project+runtime@0.
|
|
66
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
67
67
|
function toPropertyKey(t) {
|
|
68
68
|
var i = toPrimitive(t, "string");
|
|
69
69
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -73,7 +73,7 @@ var init_toPropertyKey = __esmMin((() => {
|
|
|
73
73
|
init_toPrimitive();
|
|
74
74
|
}));
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region \0@oxc-project+runtime@0.
|
|
76
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
77
77
|
function _defineProperty(e, r, t) {
|
|
78
78
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
79
79
|
value: t,
|
|
@@ -86,7 +86,7 @@ var init_defineProperty = __esmMin((() => {
|
|
|
86
86
|
init_toPropertyKey();
|
|
87
87
|
}));
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region \0@oxc-project+runtime@0.
|
|
89
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectSpread2.js
|
|
90
90
|
function ownKeys(e, r) {
|
|
91
91
|
var t = Object.keys(e);
|
|
92
92
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -244,7 +244,7 @@ var init_objectIdentityKey_native = __esmMin((() => {
|
|
|
244
244
|
cache$7 = /* @__PURE__ */ new WeakMap();
|
|
245
245
|
}));
|
|
246
246
|
//#endregion
|
|
247
|
-
//#region \0@oxc-project+runtime@0.
|
|
247
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
248
248
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
249
249
|
if (null == r) return {};
|
|
250
250
|
var t = {};
|
|
@@ -256,7 +256,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
256
256
|
}
|
|
257
257
|
var init_objectWithoutPropertiesLoose = __esmMin((() => {}));
|
|
258
258
|
//#endregion
|
|
259
|
-
//#region \0@oxc-project+runtime@0.
|
|
259
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutProperties.js
|
|
260
260
|
function _objectWithoutProperties(e, t) {
|
|
261
261
|
if (null == e) return {};
|
|
262
262
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -357,7 +357,7 @@ var init_GroupContext_native = __esmMin((() => {
|
|
|
357
357
|
GroupContext = /* @__PURE__ */ (0, react$1.createContext)(null);
|
|
358
358
|
}));
|
|
359
359
|
//#endregion
|
|
360
|
-
//#region ../../
|
|
360
|
+
//#region ../../is-equal-shallow/dist/esm/index.native.js
|
|
361
361
|
function useCreateShallowSetState(setter, debug) {
|
|
362
362
|
return (0, react$1.useCallback)(function(stateOrGetState) {
|
|
363
363
|
setter(function(prev) {
|
|
@@ -833,7 +833,7 @@ var init_useLocale = __esmMin((() => {
|
|
|
833
833
|
});
|
|
834
834
|
}));
|
|
835
835
|
//#endregion
|
|
836
|
-
//#region \0@oxc-project+runtime@0.
|
|
836
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/asyncToGenerator.js
|
|
837
837
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
838
838
|
try {
|
|
839
839
|
var i = n[a](c), u = i.value;
|
|
@@ -990,7 +990,7 @@ var init_index_native$11 = __esmMin((() => {
|
|
|
990
990
|
Nodes = /* @__PURE__ */ new Set();
|
|
991
991
|
IntersectionState = /* @__PURE__ */ new WeakMap();
|
|
992
992
|
usePretransformDimensions = function() {
|
|
993
|
-
return globalThis.
|
|
993
|
+
return globalThis.__GUI_ONLAYOUT_PRETRANSFORM === true || process.env.GUI_ONLAYOUT_PRETRANSFORM === "1";
|
|
994
994
|
};
|
|
995
995
|
DisableLayoutContextValues = {};
|
|
996
996
|
DisableLayoutContextKey = /* @__PURE__ */ (0, react$1.createContext)("");
|
|
@@ -1065,7 +1065,7 @@ var init_index_native$11 = __esmMin((() => {
|
|
|
1065
1065
|
return _updateLayoutIfChanged.apply(this, arguments);
|
|
1066
1066
|
}
|
|
1067
1067
|
rAF = typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : void 0;
|
|
1068
|
-
userSkipVal = process.env.
|
|
1068
|
+
userSkipVal = process.env.GUI_LAYOUT_FRAME_SKIP;
|
|
1069
1069
|
BASE_SKIP_FRAMES = userSkipVal ? +userSkipVal : 10;
|
|
1070
1070
|
MAX_SKIP_FRAMES = 20;
|
|
1071
1071
|
skipFrames = BASE_SKIP_FRAMES;
|
|
@@ -1417,6 +1417,9 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
},
|
|
1419
1419
|
{
|
|
1420
|
+
/**
|
|
1421
|
+
* Resets any pending timers. This should be called on unmount.
|
|
1422
|
+
*/
|
|
1420
1423
|
key: "reset",
|
|
1421
1424
|
value: function reset() {
|
|
1422
1425
|
this._cancelLongPressDelayTimeout();
|
|
@@ -1425,6 +1428,9 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
1425
1428
|
}
|
|
1426
1429
|
},
|
|
1427
1430
|
{
|
|
1431
|
+
/**
|
|
1432
|
+
* Returns a set of props to spread into the interactive element.
|
|
1433
|
+
*/
|
|
1428
1434
|
key: "getEventHandlers",
|
|
1429
1435
|
value: function getEventHandlers() {
|
|
1430
1436
|
if (this._eventHandlers == null) this._eventHandlers = this._createEventHandlers();
|
|
@@ -1541,6 +1547,10 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
1541
1547
|
}
|
|
1542
1548
|
},
|
|
1543
1549
|
{
|
|
1550
|
+
/**
|
|
1551
|
+
* Receives a state machine signal, performs side effects of the transition
|
|
1552
|
+
* and stores the new state. Validates the transition as well.
|
|
1553
|
+
*/
|
|
1544
1554
|
key: "_receiveSignal",
|
|
1545
1555
|
value: function _receiveSignal(signal, event) {
|
|
1546
1556
|
var prevState = this._touchState;
|
|
@@ -1555,6 +1565,10 @@ var init_PressResponder_native = __esmMin((() => {
|
|
|
1555
1565
|
}
|
|
1556
1566
|
},
|
|
1557
1567
|
{
|
|
1568
|
+
/**
|
|
1569
|
+
* Performs a transition between touchable states and identify any activations
|
|
1570
|
+
* or deactivations (and callback invocations).
|
|
1571
|
+
*/
|
|
1558
1572
|
key: "_performTransitionSideEffects",
|
|
1559
1573
|
value: function _performTransitionSideEffects(prevState, nextState, signal, event) {
|
|
1560
1574
|
var _this = this;
|
|
@@ -2291,7 +2305,7 @@ function attemptTransfer(responderEvent, wantsResponder) {
|
|
|
2291
2305
|
}
|
|
2292
2306
|
}
|
|
2293
2307
|
function attachListeners() {
|
|
2294
|
-
if (canUseDOM && !window[
|
|
2308
|
+
if (canUseDOM && !window[isGuiResponderActive]) {
|
|
2295
2309
|
window.addEventListener("blur", eventListener);
|
|
2296
2310
|
documentEventsBubblePhase.forEach(function(eventType) {
|
|
2297
2311
|
document.addEventListener(eventType, eventListener);
|
|
@@ -2299,7 +2313,7 @@ function attachListeners() {
|
|
|
2299
2313
|
documentEventsCapturePhase.forEach(function(eventType) {
|
|
2300
2314
|
document.addEventListener(eventType, eventListener, true);
|
|
2301
2315
|
});
|
|
2302
|
-
window[
|
|
2316
|
+
window[isGuiResponderActive] = true;
|
|
2303
2317
|
}
|
|
2304
2318
|
}
|
|
2305
2319
|
function addNode(id, node, config) {
|
|
@@ -2324,7 +2338,7 @@ function terminateResponder() {
|
|
|
2324
2338
|
isEmulatingMouseEvents = false;
|
|
2325
2339
|
trackedTouchCount = 0;
|
|
2326
2340
|
}
|
|
2327
|
-
var emptyObject$9, startRegistration, moveRegistration, shouldSetResponderEvents, emptyResponder, responderListenersMap, isEmulatingMouseEvents, trackedTouchCount, currentResponder, responderTouchHistoryStore, documentEventsCapturePhase, documentEventsBubblePhase,
|
|
2341
|
+
var emptyObject$9, startRegistration, moveRegistration, shouldSetResponderEvents, emptyResponder, responderListenersMap, isEmulatingMouseEvents, trackedTouchCount, currentResponder, responderTouchHistoryStore, documentEventsCapturePhase, documentEventsBubblePhase, isGuiResponderActive;
|
|
2328
2342
|
var init_ResponderSystem_native = __esmMin((() => {
|
|
2329
2343
|
init_createResponderEvent_native();
|
|
2330
2344
|
init_ResponderTouchHistoryStore_native();
|
|
@@ -2380,7 +2394,7 @@ var init_ResponderSystem_native = __esmMin((() => {
|
|
|
2380
2394
|
"select",
|
|
2381
2395
|
"selectionchange"
|
|
2382
2396
|
];
|
|
2383
|
-
|
|
2397
|
+
isGuiResponderActive = /* @__PURE__ */ Symbol();
|
|
2384
2398
|
}));
|
|
2385
2399
|
//#endregion
|
|
2386
2400
|
//#region ../../core/react-native-use-responder-events/dist/esm/useResponderEvents.native.js
|
|
@@ -2886,7 +2900,7 @@ var require_normalize_color = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
2886
2900
|
return Math.round(red * 255) << 24 | Math.round(green * 255) << 16 | Math.round(blue * 255) << 8;
|
|
2887
2901
|
}
|
|
2888
2902
|
var NUMBER = "[-+]?\\d*\\.?\\d+";
|
|
2889
|
-
var PERCENTAGE =
|
|
2903
|
+
var PERCENTAGE = "[-+]?\\d*\\.?\\d+%";
|
|
2890
2904
|
function call(...args) {
|
|
2891
2905
|
return "\\(\\s*(" + args.join(")\\s*,?\\s*(") + ")\\s*\\)";
|
|
2892
2906
|
}
|
|
@@ -3205,17 +3219,34 @@ var TextInputState;
|
|
|
3205
3219
|
var init_TextInputState = __esmMin((() => {
|
|
3206
3220
|
init_UIManager();
|
|
3207
3221
|
TextInputState = {
|
|
3222
|
+
/**
|
|
3223
|
+
* Internal state
|
|
3224
|
+
*/
|
|
3208
3225
|
_currentlyFocusedNode: null,
|
|
3226
|
+
/**
|
|
3227
|
+
* Returns the ID of the currently focused text field, if one exists
|
|
3228
|
+
* If no text field is focused it returns null
|
|
3229
|
+
*/
|
|
3209
3230
|
currentlyFocusedField() {
|
|
3210
3231
|
if (document.activeElement !== this._currentlyFocusedNode) this._currentlyFocusedNode = null;
|
|
3211
3232
|
return this._currentlyFocusedNode;
|
|
3212
3233
|
},
|
|
3234
|
+
/**
|
|
3235
|
+
* @param {Object} TextInputID id of the text field to focus
|
|
3236
|
+
* Focuses the specified text field
|
|
3237
|
+
* noop if the text field was already focused
|
|
3238
|
+
*/
|
|
3213
3239
|
focusTextInput(textFieldNode) {
|
|
3214
3240
|
if (textFieldNode !== null) {
|
|
3215
3241
|
this._currentlyFocusedNode = textFieldNode;
|
|
3216
3242
|
if (document.activeElement !== textFieldNode) UIManager.focus(textFieldNode);
|
|
3217
3243
|
}
|
|
3218
3244
|
},
|
|
3245
|
+
/**
|
|
3246
|
+
* @param {Object} textFieldNode id of the text field to focus
|
|
3247
|
+
* Unfocuses the specified text field
|
|
3248
|
+
* noop if it wasn't focused
|
|
3249
|
+
*/
|
|
3219
3250
|
blurTextInput(textFieldNode) {
|
|
3220
3251
|
if (textFieldNode !== null) {
|
|
3221
3252
|
this._currentlyFocusedNode = null;
|
|
@@ -3649,7 +3680,6 @@ var init_useHover = __esmMin((() => {
|
|
|
3649
3680
|
function invariant(condition, log, ...logVars) {
|
|
3650
3681
|
if (!condition) throw new Error(log);
|
|
3651
3682
|
}
|
|
3652
|
-
function warning(condition, log, ...logVars) {}
|
|
3653
3683
|
var init_invariant = __esmMin((() => {}));
|
|
3654
3684
|
//#endregion
|
|
3655
3685
|
//#region ../../core/react-native-web-internals/dist/esm/modules/InteractionManager.mjs
|
|
@@ -3783,6 +3813,9 @@ var init_InteractionManager = __esmMin((() => {
|
|
|
3783
3813
|
interactionStart: "interactionStart",
|
|
3784
3814
|
interactionComplete: "interactionComplete"
|
|
3785
3815
|
},
|
|
3816
|
+
/**
|
|
3817
|
+
* Schedule a function to run after all interactions have completed.
|
|
3818
|
+
*/
|
|
3786
3819
|
runAfterInteractions(task) {
|
|
3787
3820
|
const tasks = [];
|
|
3788
3821
|
const promise = new Promise((resolve) => {
|
|
@@ -3802,12 +3835,18 @@ var init_InteractionManager = __esmMin((() => {
|
|
|
3802
3835
|
}
|
|
3803
3836
|
};
|
|
3804
3837
|
},
|
|
3838
|
+
/**
|
|
3839
|
+
* Notify manager that an interaction has started.
|
|
3840
|
+
*/
|
|
3805
3841
|
createInteractionHandle() {
|
|
3806
3842
|
_scheduleUpdate();
|
|
3807
3843
|
const handle = ++_inc;
|
|
3808
3844
|
_addInteractionSet.add(handle);
|
|
3809
3845
|
return handle;
|
|
3810
3846
|
},
|
|
3847
|
+
/**
|
|
3848
|
+
* Notify manager that an interaction has completed.
|
|
3849
|
+
*/
|
|
3811
3850
|
clearInteractionHandle(handle) {
|
|
3812
3851
|
invariant(!!handle, "Must provide a handle to clear.");
|
|
3813
3852
|
_scheduleUpdate();
|
|
@@ -3815,6 +3854,9 @@ var init_InteractionManager = __esmMin((() => {
|
|
|
3815
3854
|
_deleteInteractionSet.add(handle);
|
|
3816
3855
|
},
|
|
3817
3856
|
addListener: _emitter.addListener.bind(_emitter),
|
|
3857
|
+
/**
|
|
3858
|
+
* Set deadline for task processing
|
|
3859
|
+
*/
|
|
3818
3860
|
setDeadline(deadline) {
|
|
3819
3861
|
_deadline = deadline;
|
|
3820
3862
|
}
|
|
@@ -3870,7 +3912,7 @@ var init_esm$1 = __esmMin((() => {
|
|
|
3870
3912
|
init_useMergeRefs$1();
|
|
3871
3913
|
}));
|
|
3872
3914
|
//#endregion
|
|
3873
|
-
//#region ../../
|
|
3915
|
+
//#region ../../react-native-web-lite/dist/esm/createElement/index.mjs
|
|
3874
3916
|
var useCreateElement, createElement, createElementAndStyles;
|
|
3875
3917
|
var init_createElement = __esmMin((() => {
|
|
3876
3918
|
init_esm$1();
|
|
@@ -3879,19 +3921,18 @@ var init_createElement = __esmMin((() => {
|
|
|
3879
3921
|
const { element, styles } = createElementAndStyles(component, props, options);
|
|
3880
3922
|
const isHydrated = useDidFinishSSR();
|
|
3881
3923
|
const styleTags = (0, react$1.useMemo)(() => {
|
|
3882
|
-
return isHydrated || !styles ? null :
|
|
3924
|
+
return isHydrated || !styles ? null : void 0;
|
|
3883
3925
|
}, []);
|
|
3884
3926
|
(0, react$1.useInsertionEffect)(() => {
|
|
3885
3927
|
if (!styles) return;
|
|
3886
3928
|
const styleObj = {};
|
|
3887
3929
|
for (const style of styles) styleObj[style[0]] = style;
|
|
3888
|
-
insertStyleRules(styleObj);
|
|
3889
3930
|
}, [styles]);
|
|
3890
3931
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [element, styleTags] });
|
|
3891
3932
|
};
|
|
3892
3933
|
createElement = (component, props, options) => {
|
|
3893
3934
|
const { element, styles } = createElementAndStyles(component, props, options);
|
|
3894
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [element, styles ?
|
|
3935
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [element, styles ? void 0 : null] });
|
|
3895
3936
|
};
|
|
3896
3937
|
createElementAndStyles = (component, props, options) => {
|
|
3897
3938
|
let accessibilityComponent;
|
|
@@ -3911,27 +3952,27 @@ var init_createElement = __esmMin((() => {
|
|
|
3911
3952
|
};
|
|
3912
3953
|
}));
|
|
3913
3954
|
//#endregion
|
|
3914
|
-
//#region ../../
|
|
3955
|
+
//#region ../../react-native-web-lite/dist/esm/NativeModules/index.mjs
|
|
3915
3956
|
var NativeModules;
|
|
3916
3957
|
var init_NativeModules = __esmMin((() => {
|
|
3917
3958
|
init_esm$1();
|
|
3918
3959
|
NativeModules = { UIManager };
|
|
3919
3960
|
}));
|
|
3920
3961
|
//#endregion
|
|
3921
|
-
//#region ../../
|
|
3962
|
+
//#region ../../react-native-web-lite/dist/esm/render/index.mjs
|
|
3922
3963
|
function hydrate(element, root) {}
|
|
3923
3964
|
function render(element, root) {}
|
|
3924
3965
|
function hydrateLegacy(element, root, callback) {}
|
|
3925
3966
|
function renderLegacy(element, root, callback) {}
|
|
3926
3967
|
var init_render = __esmMin((() => {}));
|
|
3927
3968
|
//#endregion
|
|
3928
|
-
//#region ../../
|
|
3969
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.mjs
|
|
3929
3970
|
function get(name) {
|
|
3930
3971
|
return null;
|
|
3931
3972
|
}
|
|
3932
3973
|
var init_TurboModuleRegistry = __esmMin((() => {}));
|
|
3933
3974
|
//#endregion
|
|
3934
|
-
//#region ../../
|
|
3975
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.mjs
|
|
3935
3976
|
var NativeAnimatedNonTurboModule;
|
|
3936
3977
|
var init_NativeAnimatedModule = __esmMin((() => {
|
|
3937
3978
|
init_TurboModuleRegistry();
|
|
@@ -3963,7 +4004,7 @@ var init_NativeAnimatedModule = __esmMin((() => {
|
|
|
3963
4004
|
};
|
|
3964
4005
|
}));
|
|
3965
4006
|
//#endregion
|
|
3966
|
-
//#region ../../
|
|
4007
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.mjs
|
|
3967
4008
|
var NativeAnimatedTurboModule;
|
|
3968
4009
|
var init_NativeAnimatedTurboModule = __esmMin((() => {
|
|
3969
4010
|
init_TurboModuleRegistry();
|
|
@@ -3993,7 +4034,7 @@ var init_NativeAnimatedTurboModule = __esmMin((() => {
|
|
|
3993
4034
|
};
|
|
3994
4035
|
}));
|
|
3995
4036
|
//#endregion
|
|
3996
|
-
//#region ../../
|
|
4037
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/emitter/_EventSubscription.mjs
|
|
3997
4038
|
var _EventSubscription;
|
|
3998
4039
|
var init__EventSubscription = __esmMin((() => {
|
|
3999
4040
|
_EventSubscription = class {
|
|
@@ -4013,7 +4054,7 @@ var init__EventSubscription = __esmMin((() => {
|
|
|
4013
4054
|
};
|
|
4014
4055
|
}));
|
|
4015
4056
|
//#endregion
|
|
4016
|
-
//#region ../../
|
|
4057
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/emitter/_EmitterSubscription.mjs
|
|
4017
4058
|
var EmitterSubscription;
|
|
4018
4059
|
var init__EmitterSubscription = __esmMin((() => {
|
|
4019
4060
|
init__EventSubscription();
|
|
@@ -4046,7 +4087,7 @@ var init__EmitterSubscription = __esmMin((() => {
|
|
|
4046
4087
|
};
|
|
4047
4088
|
}));
|
|
4048
4089
|
//#endregion
|
|
4049
|
-
//#region ../../
|
|
4090
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs
|
|
4050
4091
|
var EventSubscriptionVendor;
|
|
4051
4092
|
var init__EventSubscriptionVendor = __esmMin((() => {
|
|
4052
4093
|
init_esm$1();
|
|
@@ -4109,7 +4150,7 @@ var init__EventSubscriptionVendor = __esmMin((() => {
|
|
|
4109
4150
|
};
|
|
4110
4151
|
}));
|
|
4111
4152
|
//#endregion
|
|
4112
|
-
//#region ../../
|
|
4153
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs
|
|
4113
4154
|
var sparseFilterPredicate, EventEmitter$1;
|
|
4114
4155
|
var init__EventEmitter = __esmMin((() => {
|
|
4115
4156
|
init_esm$1();
|
|
@@ -4209,19 +4250,19 @@ var init__EventEmitter = __esmMin((() => {
|
|
|
4209
4250
|
};
|
|
4210
4251
|
}));
|
|
4211
4252
|
//#endregion
|
|
4212
|
-
//#region ../../
|
|
4253
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/emitter/EventEmitter.mjs
|
|
4213
4254
|
var init_EventEmitter = __esmMin((() => {
|
|
4214
4255
|
init__EventEmitter();
|
|
4215
4256
|
}));
|
|
4216
4257
|
//#endregion
|
|
4217
|
-
//#region ../../
|
|
4258
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.mjs
|
|
4218
4259
|
var RCTDeviceEventEmitter;
|
|
4219
4260
|
var init_RCTDeviceEventEmitter = __esmMin((() => {
|
|
4220
4261
|
init_EventEmitter();
|
|
4221
4262
|
RCTDeviceEventEmitter = new EventEmitter$1();
|
|
4222
4263
|
}));
|
|
4223
4264
|
//#endregion
|
|
4224
|
-
//#region ../../
|
|
4265
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/EventEmitter/NativeEventEmitter.mjs
|
|
4225
4266
|
var NativeEventEmitter, NativeEventEmitter_default;
|
|
4226
4267
|
var init_NativeEventEmitter = __esmMin((() => {
|
|
4227
4268
|
init_esm$1();
|
|
@@ -4272,12 +4313,12 @@ var init_NativeEventEmitter = __esmMin((() => {
|
|
|
4272
4313
|
NativeEventEmitter_default = NativeEventEmitter;
|
|
4273
4314
|
}));
|
|
4274
4315
|
//#endregion
|
|
4275
|
-
//#region ../../
|
|
4316
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Utilities/Platform.mjs
|
|
4276
4317
|
var init_Platform = __esmMin((() => {
|
|
4277
4318
|
init_esm$1();
|
|
4278
4319
|
}));
|
|
4279
4320
|
//#endregion
|
|
4280
|
-
//#region ../../
|
|
4321
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/ReactNative/ReactNativeFeatureFlags.mjs
|
|
4281
4322
|
var ReactNativeFeatureFlags;
|
|
4282
4323
|
var init_ReactNativeFeatureFlags = __esmMin((() => {
|
|
4283
4324
|
ReactNativeFeatureFlags = {
|
|
@@ -4289,7 +4330,7 @@ var init_ReactNativeFeatureFlags = __esmMin((() => {
|
|
|
4289
4330
|
};
|
|
4290
4331
|
}));
|
|
4291
4332
|
//#endregion
|
|
4292
|
-
//#region ../../
|
|
4333
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs
|
|
4293
4334
|
function addWhitelistedStyleProp(prop) {
|
|
4294
4335
|
SUPPORTED_STYLES[prop] = true;
|
|
4295
4336
|
}
|
|
@@ -4545,7 +4586,7 @@ var init_NativeAnimatedHelper = __esmMin((() => {
|
|
|
4545
4586
|
};
|
|
4546
4587
|
}));
|
|
4547
4588
|
//#endregion
|
|
4548
|
-
//#region ../../
|
|
4589
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs
|
|
4549
4590
|
var NativeAnimatedAPI$2, _uniqueId$2, AnimatedNode;
|
|
4550
4591
|
var init_AnimatedNode = __esmMin((() => {
|
|
4551
4592
|
init_NativeAnimatedHelper();
|
|
@@ -4672,7 +4713,7 @@ var init_AnimatedNode = __esmMin((() => {
|
|
|
4672
4713
|
};
|
|
4673
4714
|
}));
|
|
4674
4715
|
//#endregion
|
|
4675
|
-
//#region ../../
|
|
4716
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.mjs
|
|
4676
4717
|
var AnimatedWithChildren;
|
|
4677
4718
|
var init_AnimatedWithChildren = __esmMin((() => {
|
|
4678
4719
|
init_AnimatedNode();
|
|
@@ -4724,7 +4765,7 @@ var init_AnimatedWithChildren = __esmMin((() => {
|
|
|
4724
4765
|
};
|
|
4725
4766
|
}));
|
|
4726
4767
|
//#endregion
|
|
4727
|
-
//#region ../../
|
|
4768
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs
|
|
4728
4769
|
function createInterpolation(config) {
|
|
4729
4770
|
if (config.outputRange && typeof config.outputRange[0] === "string") return createInterpolationFromStringOutputRange(config);
|
|
4730
4771
|
const outputRange = config.outputRange;
|
|
@@ -4861,7 +4902,7 @@ var init_AnimatedInterpolation = __esmMin((() => {
|
|
|
4861
4902
|
_defineProperty(AnimatedInterpolation, "__createInterpolation", createInterpolation);
|
|
4862
4903
|
}));
|
|
4863
4904
|
//#endregion
|
|
4864
|
-
//#region ../../
|
|
4905
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs
|
|
4865
4906
|
function _flush(rootNode) {
|
|
4866
4907
|
const animatedStyles = /* @__PURE__ */ new Set();
|
|
4867
4908
|
function findAnimatedStyles(node) {
|
|
@@ -5040,7 +5081,7 @@ var init_AnimatedValue = __esmMin((() => {
|
|
|
5040
5081
|
};
|
|
5041
5082
|
}));
|
|
5042
5083
|
//#endregion
|
|
5043
|
-
//#region ../../
|
|
5084
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs
|
|
5044
5085
|
function attachNativeEvent(viewRef, eventName, argMapping) {
|
|
5045
5086
|
const eventMappings = [];
|
|
5046
5087
|
const traverse = (value, path) => {
|
|
@@ -5119,7 +5160,7 @@ var init_AnimatedEvent = __esmMin((() => {
|
|
|
5119
5160
|
};
|
|
5120
5161
|
}));
|
|
5121
5162
|
//#endregion
|
|
5122
|
-
//#region ../../
|
|
5163
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/Animation.mjs
|
|
5123
5164
|
var startNativeAnimationNextId, Animation;
|
|
5124
5165
|
var init_Animation = __esmMin((() => {
|
|
5125
5166
|
init_NativeAnimatedHelper();
|
|
@@ -5163,7 +5204,7 @@ var init_Animation = __esmMin((() => {
|
|
|
5163
5204
|
};
|
|
5164
5205
|
}));
|
|
5165
5206
|
//#endregion
|
|
5166
|
-
//#region ../../
|
|
5207
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs
|
|
5167
5208
|
var DecayAnimation;
|
|
5168
5209
|
var init_DecayAnimation = __esmMin((() => {
|
|
5169
5210
|
init_Animation();
|
|
@@ -5225,7 +5266,7 @@ var init_DecayAnimation = __esmMin((() => {
|
|
|
5225
5266
|
};
|
|
5226
5267
|
}));
|
|
5227
5268
|
//#endregion
|
|
5228
|
-
//#region ../../
|
|
5269
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/SpringConfig.mjs
|
|
5229
5270
|
function stiffnessFromOrigamiValue(oValue) {
|
|
5230
5271
|
return (oValue - 30) * 3.62 + 194;
|
|
5231
5272
|
}
|
|
@@ -5282,7 +5323,7 @@ var init_SpringConfig = __esmMin((() => {
|
|
|
5282
5323
|
};
|
|
5283
5324
|
}));
|
|
5284
5325
|
//#endregion
|
|
5285
|
-
//#region ../../
|
|
5326
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs
|
|
5286
5327
|
var SpringAnimation;
|
|
5287
5328
|
var init_SpringAnimation = __esmMin((() => {
|
|
5288
5329
|
init_Animation();
|
|
@@ -5474,7 +5515,7 @@ var init_SpringAnimation = __esmMin((() => {
|
|
|
5474
5515
|
};
|
|
5475
5516
|
}));
|
|
5476
5517
|
//#endregion
|
|
5477
|
-
//#region ../../
|
|
5518
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/bezier.mjs
|
|
5478
5519
|
function A(aA1, aA2) {
|
|
5479
5520
|
return 1 - 3 * aA2 + 3 * aA1;
|
|
5480
5521
|
}
|
|
@@ -5545,7 +5586,7 @@ var init_bezier = __esmMin((() => {
|
|
|
5545
5586
|
float32ArraySupported = typeof Float32Array === "function";
|
|
5546
5587
|
}));
|
|
5547
5588
|
//#endregion
|
|
5548
|
-
//#region ../../
|
|
5589
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/Easing.mjs
|
|
5549
5590
|
var ease, Easing, Easing_default;
|
|
5550
5591
|
var init_Easing = __esmMin((() => {
|
|
5551
5592
|
init_bezier();
|
|
@@ -5712,7 +5753,7 @@ var init_Easing = __esmMin((() => {
|
|
|
5712
5753
|
Easing_default = Easing;
|
|
5713
5754
|
}));
|
|
5714
5755
|
//#endregion
|
|
5715
|
-
//#region ../../
|
|
5756
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs
|
|
5716
5757
|
function easeInOut() {
|
|
5717
5758
|
if (!_easeInOut) _easeInOut = Easing.inOut(Easing.ease);
|
|
5718
5759
|
return _easeInOut;
|
|
@@ -5800,7 +5841,7 @@ var init_TimingAnimation = __esmMin((() => {
|
|
|
5800
5841
|
};
|
|
5801
5842
|
}));
|
|
5802
5843
|
//#endregion
|
|
5803
|
-
//#region ../../
|
|
5844
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs
|
|
5804
5845
|
var AnimatedAddition;
|
|
5805
5846
|
var init_AnimatedAddition = __esmMin((() => {
|
|
5806
5847
|
init_AnimatedInterpolation();
|
|
@@ -5844,7 +5885,7 @@ var init_AnimatedAddition = __esmMin((() => {
|
|
|
5844
5885
|
};
|
|
5845
5886
|
}));
|
|
5846
5887
|
//#endregion
|
|
5847
|
-
//#region ../../
|
|
5888
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs
|
|
5848
5889
|
var AnimatedDiffClamp;
|
|
5849
5890
|
var init_AnimatedDiffClamp = __esmMin((() => {
|
|
5850
5891
|
init_AnimatedInterpolation();
|
|
@@ -5895,7 +5936,7 @@ var init_AnimatedDiffClamp = __esmMin((() => {
|
|
|
5895
5936
|
};
|
|
5896
5937
|
}));
|
|
5897
5938
|
//#endregion
|
|
5898
|
-
//#region ../../
|
|
5939
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs
|
|
5899
5940
|
var AnimatedDivision;
|
|
5900
5941
|
var init_AnimatedDivision = __esmMin((() => {
|
|
5901
5942
|
init_AnimatedInterpolation();
|
|
@@ -5952,7 +5993,7 @@ var init_AnimatedDivision = __esmMin((() => {
|
|
|
5952
5993
|
};
|
|
5953
5994
|
}));
|
|
5954
5995
|
//#endregion
|
|
5955
|
-
//#region ../../
|
|
5996
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs
|
|
5956
5997
|
var AnimatedModulo;
|
|
5957
5998
|
var init_AnimatedModulo = __esmMin((() => {
|
|
5958
5999
|
init_AnimatedInterpolation();
|
|
@@ -5993,7 +6034,7 @@ var init_AnimatedModulo = __esmMin((() => {
|
|
|
5993
6034
|
};
|
|
5994
6035
|
}));
|
|
5995
6036
|
//#endregion
|
|
5996
|
-
//#region ../../
|
|
6037
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs
|
|
5997
6038
|
var AnimatedMultiplication;
|
|
5998
6039
|
var init_AnimatedMultiplication = __esmMin((() => {
|
|
5999
6040
|
init_AnimatedInterpolation();
|
|
@@ -6037,7 +6078,7 @@ var init_AnimatedMultiplication = __esmMin((() => {
|
|
|
6037
6078
|
};
|
|
6038
6079
|
}));
|
|
6039
6080
|
//#endregion
|
|
6040
|
-
//#region ../../
|
|
6081
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs
|
|
6041
6082
|
var AnimatedSubtraction;
|
|
6042
6083
|
var init_AnimatedSubtraction = __esmMin((() => {
|
|
6043
6084
|
init_AnimatedInterpolation();
|
|
@@ -6081,7 +6122,7 @@ var init_AnimatedSubtraction = __esmMin((() => {
|
|
|
6081
6122
|
};
|
|
6082
6123
|
}));
|
|
6083
6124
|
//#endregion
|
|
6084
|
-
//#region ../../
|
|
6125
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs
|
|
6085
6126
|
var AnimatedTracking;
|
|
6086
6127
|
var init_AnimatedTracking = __esmMin((() => {
|
|
6087
6128
|
init_AnimatedValue();
|
|
@@ -6139,7 +6180,7 @@ var init_AnimatedTracking = __esmMin((() => {
|
|
|
6139
6180
|
};
|
|
6140
6181
|
}));
|
|
6141
6182
|
//#endregion
|
|
6142
|
-
//#region ../../
|
|
6183
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs
|
|
6143
6184
|
var _uniqueId$1, AnimatedValueXY;
|
|
6144
6185
|
var init_AnimatedValueXY = __esmMin((() => {
|
|
6145
6186
|
init_AnimatedValue();
|
|
@@ -6228,7 +6269,7 @@ var init_AnimatedValueXY = __esmMin((() => {
|
|
|
6228
6269
|
};
|
|
6229
6270
|
}));
|
|
6230
6271
|
//#endregion
|
|
6231
|
-
//#region ../../
|
|
6272
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs
|
|
6232
6273
|
var AnimatedTransform;
|
|
6233
6274
|
var init_AnimatedTransform = __esmMin((() => {
|
|
6234
6275
|
init_AnimatedNode();
|
|
@@ -6315,7 +6356,7 @@ var init_AnimatedTransform = __esmMin((() => {
|
|
|
6315
6356
|
};
|
|
6316
6357
|
}));
|
|
6317
6358
|
//#endregion
|
|
6318
|
-
//#region ../../
|
|
6359
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs
|
|
6319
6360
|
function createAnimatedStyle(inputStyle) {
|
|
6320
6361
|
const style = flattenStyle(inputStyle);
|
|
6321
6362
|
const animatedStyles = {};
|
|
@@ -6406,7 +6447,7 @@ var init_AnimatedStyle = __esmMin((() => {
|
|
|
6406
6447
|
};
|
|
6407
6448
|
}));
|
|
6408
6449
|
//#endregion
|
|
6409
|
-
//#region ../../
|
|
6450
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs
|
|
6410
6451
|
var AnimatedProps;
|
|
6411
6452
|
var init_AnimatedProps = __esmMin((() => {
|
|
6412
6453
|
init_AnimatedEvent();
|
|
@@ -6506,7 +6547,7 @@ var init_AnimatedProps = __esmMin((() => {
|
|
|
6506
6547
|
};
|
|
6507
6548
|
}));
|
|
6508
6549
|
//#endregion
|
|
6509
|
-
//#region ../../
|
|
6550
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs
|
|
6510
6551
|
function useRefEffect(effect) {
|
|
6511
6552
|
const cleanupRef = (0, react$1.useRef)(void 0);
|
|
6512
6553
|
return (0, react$1.useCallback)((instance) => {
|
|
@@ -6519,7 +6560,7 @@ function useRefEffect(effect) {
|
|
|
6519
6560
|
}
|
|
6520
6561
|
var init_useRefEffect = __esmMin((() => {}));
|
|
6521
6562
|
//#endregion
|
|
6522
|
-
//#region ../../
|
|
6563
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs
|
|
6523
6564
|
function useAnimatedProps(props) {
|
|
6524
6565
|
const [, scheduleUpdate] = (0, react$1.useReducer)((count) => count + 1, 0);
|
|
6525
6566
|
const onUpdateRef = (0, react$1.useRef)(null);
|
|
@@ -6590,7 +6631,7 @@ var init_useAnimatedProps = __esmMin((() => {
|
|
|
6590
6631
|
init_objectSpread2();
|
|
6591
6632
|
}));
|
|
6592
6633
|
//#endregion
|
|
6593
|
-
//#region ../../
|
|
6634
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs
|
|
6594
6635
|
function useMergeRefs(...refs) {
|
|
6595
6636
|
return (0, react$1.useCallback)((current) => {
|
|
6596
6637
|
for (const ref of refs) if (ref != null) if (typeof ref === "function") ref(current);
|
|
@@ -6599,7 +6640,7 @@ function useMergeRefs(...refs) {
|
|
|
6599
6640
|
}
|
|
6600
6641
|
var init_useMergeRefs = __esmMin((() => {}));
|
|
6601
6642
|
//#endregion
|
|
6602
|
-
//#region ../../
|
|
6643
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs
|
|
6603
6644
|
function createAnimatedComponent(Component) {
|
|
6604
6645
|
return react$1.forwardRef((props, forwardedRef) => {
|
|
6605
6646
|
const [reducedProps, callbackRef] = useAnimatedProps(props);
|
|
@@ -6622,7 +6663,7 @@ var init_createAnimatedComponent = __esmMin((() => {
|
|
|
6622
6663
|
_excluded$73 = ["style"];
|
|
6623
6664
|
}));
|
|
6624
6665
|
//#endregion
|
|
6625
|
-
//#region ../../
|
|
6666
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs
|
|
6626
6667
|
function processColor(color) {
|
|
6627
6668
|
if (color === void 0 || color === null) return null;
|
|
6628
6669
|
if (isRgbaValue(color)) return color;
|
|
@@ -6848,7 +6889,7 @@ var init_AnimatedColor = __esmMin((() => {
|
|
|
6848
6889
|
};
|
|
6849
6890
|
}));
|
|
6850
6891
|
//#endregion
|
|
6851
|
-
//#region ../../
|
|
6892
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs
|
|
6852
6893
|
function forkEvent(event2, listener) {
|
|
6853
6894
|
if (!event2) return listener;
|
|
6854
6895
|
else if (event2 instanceof AnimatedEvent) {
|
|
@@ -7158,35 +7199,172 @@ var init_AnimatedImplementation = __esmMin((() => {
|
|
|
7158
7199
|
else return animatedEvent.__getHandler();
|
|
7159
7200
|
};
|
|
7160
7201
|
AnimatedImplementationExports = {
|
|
7202
|
+
/**
|
|
7203
|
+
* Standard value class for driving animations. Typically initialized with
|
|
7204
|
+
* `new Animated.Value(0);`
|
|
7205
|
+
*
|
|
7206
|
+
* See https://reactnative.dev/docs/animated#value
|
|
7207
|
+
*/
|
|
7161
7208
|
Value: AnimatedValue,
|
|
7209
|
+
/**
|
|
7210
|
+
* 2D value class for driving 2D animations, such as pan gestures.
|
|
7211
|
+
*
|
|
7212
|
+
* See https://reactnative.dev/docs/animatedvaluexy
|
|
7213
|
+
*/
|
|
7162
7214
|
ValueXY: AnimatedValueXY,
|
|
7215
|
+
/**
|
|
7216
|
+
* Value class for driving color animations.
|
|
7217
|
+
*/
|
|
7163
7218
|
Color: AnimatedColor,
|
|
7219
|
+
/**
|
|
7220
|
+
* Exported to use the Interpolation type in flow.
|
|
7221
|
+
*
|
|
7222
|
+
* See https://reactnative.dev/docs/animated#interpolation
|
|
7223
|
+
*/
|
|
7164
7224
|
Interpolation: AnimatedInterpolation,
|
|
7225
|
+
/**
|
|
7226
|
+
* Exported for ease of type checking. All animated values derive from this
|
|
7227
|
+
* class.
|
|
7228
|
+
*
|
|
7229
|
+
* See https://reactnative.dev/docs/animated#node
|
|
7230
|
+
*/
|
|
7165
7231
|
Node: AnimatedNode,
|
|
7232
|
+
/**
|
|
7233
|
+
* Animates a value from an initial velocity to zero based on a decay
|
|
7234
|
+
* coefficient.
|
|
7235
|
+
*
|
|
7236
|
+
* See https://reactnative.dev/docs/animated#decay
|
|
7237
|
+
*/
|
|
7166
7238
|
decay: decay$1,
|
|
7239
|
+
/**
|
|
7240
|
+
* Animates a value along a timed easing curve. The Easing module has tons of
|
|
7241
|
+
* predefined curves, or you can use your own function.
|
|
7242
|
+
*
|
|
7243
|
+
* See https://reactnative.dev/docs/animated#timing
|
|
7244
|
+
*/
|
|
7167
7245
|
timing: timing$1,
|
|
7246
|
+
/**
|
|
7247
|
+
* Animates a value according to an analytical spring model based on
|
|
7248
|
+
* damped harmonic oscillation.
|
|
7249
|
+
*
|
|
7250
|
+
* See https://reactnative.dev/docs/animated#spring
|
|
7251
|
+
*/
|
|
7168
7252
|
spring: spring$1,
|
|
7253
|
+
/**
|
|
7254
|
+
* Creates a new Animated value composed from two Animated values added
|
|
7255
|
+
* together.
|
|
7256
|
+
*
|
|
7257
|
+
* See https://reactnative.dev/docs/animated#add
|
|
7258
|
+
*/
|
|
7169
7259
|
add,
|
|
7260
|
+
/**
|
|
7261
|
+
* Creates a new Animated value composed by subtracting the second Animated
|
|
7262
|
+
* value from the first Animated value.
|
|
7263
|
+
*
|
|
7264
|
+
* See https://reactnative.dev/docs/animated#subtract
|
|
7265
|
+
*/
|
|
7170
7266
|
subtract,
|
|
7267
|
+
/**
|
|
7268
|
+
* Creates a new Animated value composed by dividing the first Animated value
|
|
7269
|
+
* by the second Animated value.
|
|
7270
|
+
*
|
|
7271
|
+
* See https://reactnative.dev/docs/animated#divide
|
|
7272
|
+
*/
|
|
7171
7273
|
divide,
|
|
7274
|
+
/**
|
|
7275
|
+
* Creates a new Animated value composed from two Animated values multiplied
|
|
7276
|
+
* together.
|
|
7277
|
+
*
|
|
7278
|
+
* See https://reactnative.dev/docs/animated#multiply
|
|
7279
|
+
*/
|
|
7172
7280
|
multiply,
|
|
7281
|
+
/**
|
|
7282
|
+
* Creates a new Animated value that is the (non-negative) modulo of the
|
|
7283
|
+
* provided Animated value.
|
|
7284
|
+
*
|
|
7285
|
+
* See https://reactnative.dev/docs/animated#modulo
|
|
7286
|
+
*/
|
|
7173
7287
|
modulo,
|
|
7288
|
+
/**
|
|
7289
|
+
* Create a new Animated value that is limited between 2 values. It uses the
|
|
7290
|
+
* difference between the last value so even if the value is far from the
|
|
7291
|
+
* bounds it will start changing when the value starts getting closer again.
|
|
7292
|
+
*
|
|
7293
|
+
* See https://reactnative.dev/docs/animated#diffclamp
|
|
7294
|
+
*/
|
|
7174
7295
|
diffClamp,
|
|
7296
|
+
/**
|
|
7297
|
+
* Starts an animation after the given delay.
|
|
7298
|
+
*
|
|
7299
|
+
* See https://reactnative.dev/docs/animated#delay
|
|
7300
|
+
*/
|
|
7175
7301
|
delay: delay$1,
|
|
7302
|
+
/**
|
|
7303
|
+
* Starts an array of animations in order, waiting for each to complete
|
|
7304
|
+
* before starting the next. If the current running animation is stopped, no
|
|
7305
|
+
* following animations will be started.
|
|
7306
|
+
*
|
|
7307
|
+
* See https://reactnative.dev/docs/animated#sequence
|
|
7308
|
+
*/
|
|
7176
7309
|
sequence: sequence$1,
|
|
7310
|
+
/**
|
|
7311
|
+
* Starts an array of animations all at the same time. By default, if one
|
|
7312
|
+
* of the animations is stopped, they will all be stopped. You can override
|
|
7313
|
+
* this with the `stopTogether` flag.
|
|
7314
|
+
*
|
|
7315
|
+
* See https://reactnative.dev/docs/animated#parallel
|
|
7316
|
+
*/
|
|
7177
7317
|
parallel: parallel$1,
|
|
7318
|
+
/**
|
|
7319
|
+
* Array of animations may run in parallel (overlap), but are started in
|
|
7320
|
+
* sequence with successive delays. Nice for doing trailing effects.
|
|
7321
|
+
*
|
|
7322
|
+
* See https://reactnative.dev/docs/animated#stagger
|
|
7323
|
+
*/
|
|
7178
7324
|
stagger: stagger$1,
|
|
7325
|
+
/**
|
|
7326
|
+
* Loops a given animation continuously, so that each time it reaches the
|
|
7327
|
+
* end, it resets and begins again from the start.
|
|
7328
|
+
*
|
|
7329
|
+
* See https://reactnative.dev/docs/animated#loop
|
|
7330
|
+
*/
|
|
7179
7331
|
loop: loop$1,
|
|
7332
|
+
/**
|
|
7333
|
+
* Takes an array of mappings and extracts values from each arg accordingly,
|
|
7334
|
+
* then calls `setValue` on the mapped outputs.
|
|
7335
|
+
*
|
|
7336
|
+
* See https://reactnative.dev/docs/animated#event
|
|
7337
|
+
*/
|
|
7180
7338
|
event,
|
|
7339
|
+
/**
|
|
7340
|
+
* Make any React component Animatable. Used to create `Animated.View`, etc.
|
|
7341
|
+
*
|
|
7342
|
+
* See https://reactnative.dev/docs/animated#createanimatedcomponent
|
|
7343
|
+
*/
|
|
7181
7344
|
createAnimatedComponent,
|
|
7345
|
+
/**
|
|
7346
|
+
* Imperative API to attach an animated value to an event on a view. Prefer
|
|
7347
|
+
* using `Animated.event` with `useNativeDrive: true` if possible.
|
|
7348
|
+
*
|
|
7349
|
+
* See https://reactnative.dev/docs/animated#attachnativeevent
|
|
7350
|
+
*/
|
|
7182
7351
|
attachNativeEvent,
|
|
7352
|
+
/**
|
|
7353
|
+
* Advanced imperative API for snooping on animated events that are passed in
|
|
7354
|
+
* through props. Use values directly where possible.
|
|
7355
|
+
*
|
|
7356
|
+
* See https://reactnative.dev/docs/animated#forkevent
|
|
7357
|
+
*/
|
|
7183
7358
|
forkEvent,
|
|
7184
7359
|
unforkEvent,
|
|
7360
|
+
/**
|
|
7361
|
+
* Expose Event class, so it can be used as a type for type checkers.
|
|
7362
|
+
*/
|
|
7185
7363
|
Event: AnimatedEvent
|
|
7186
7364
|
};
|
|
7187
7365
|
}));
|
|
7188
7366
|
//#endregion
|
|
7189
|
-
//#region ../../
|
|
7367
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs
|
|
7190
7368
|
function mockAnimationStart(start) {
|
|
7191
7369
|
return (callback) => {
|
|
7192
7370
|
start(callback == null ? callback : (...args) => {
|
|
@@ -7327,7 +7505,7 @@ var init_memoize_one_esm = __esmMin((() => {
|
|
|
7327
7505
|
};
|
|
7328
7506
|
}));
|
|
7329
7507
|
//#endregion
|
|
7330
|
-
//#region ../../
|
|
7508
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/deepDiffer/index.mjs
|
|
7331
7509
|
var deepDiffer;
|
|
7332
7510
|
var init_deepDiffer = __esmMin((() => {
|
|
7333
7511
|
deepDiffer = function(one, two, maxDepth = -1) {
|
|
@@ -7349,7 +7527,7 @@ var init_deepDiffer = __esmMin((() => {
|
|
|
7349
7527
|
};
|
|
7350
7528
|
}));
|
|
7351
7529
|
//#endregion
|
|
7352
|
-
//#region ../../
|
|
7530
|
+
//#region ../../react-native-web-lite/dist/esm/Dimensions/index.mjs
|
|
7353
7531
|
function update() {
|
|
7354
7532
|
if (!canUseDOM$1) return;
|
|
7355
7533
|
const win = window;
|
|
@@ -7420,7 +7598,7 @@ var init_Dimensions = __esmMin((() => {
|
|
|
7420
7598
|
if (canUseDOM$1) window.addEventListener("resize", handleResize, false);
|
|
7421
7599
|
}));
|
|
7422
7600
|
//#endregion
|
|
7423
|
-
//#region ../../
|
|
7601
|
+
//#region ../../react-native-web-lite/dist/esm/View/index.mjs
|
|
7424
7602
|
var _excluded$72, pickProps$3, View$2, styles$12;
|
|
7425
7603
|
var init_View = __esmMin((() => {
|
|
7426
7604
|
init_esm$1();
|
|
@@ -7508,7 +7686,7 @@ var init_View = __esmMin((() => {
|
|
|
7508
7686
|
};
|
|
7509
7687
|
}));
|
|
7510
7688
|
//#endregion
|
|
7511
|
-
//#region ../../
|
|
7689
|
+
//#region ../../react-native-web-lite/dist/esm/ScrollView/ScrollViewBase.mjs
|
|
7512
7690
|
function normalizeScrollEvent(e) {
|
|
7513
7691
|
return {
|
|
7514
7692
|
nativeEvent: {
|
|
@@ -7622,7 +7800,7 @@ var init_ScrollViewBase = __esmMin((() => {
|
|
|
7622
7800
|
} };
|
|
7623
7801
|
}));
|
|
7624
7802
|
//#endregion
|
|
7625
|
-
//#region ../../
|
|
7803
|
+
//#region ../../react-native-web-lite/dist/esm/ScrollView/index.mjs
|
|
7626
7804
|
var _excluded$70, emptyObject$3, IS_ANIMATING_TOUCH_START_THRESHOLD_MS, ScrollView$2, commonStyle, styles$10, ForwardedScrollView;
|
|
7627
7805
|
var init_ScrollView = __esmMin((() => {
|
|
7628
7806
|
init_esm$1();
|
|
@@ -8042,9 +8220,7 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8042
8220
|
* altogether. To improve this, find a way to disable the `UIScrollView` after
|
|
8043
8221
|
* a touch has already started.
|
|
8044
8222
|
*/
|
|
8045
|
-
scrollResponderHandleResponderReject() {
|
|
8046
|
-
warning(false, "ScrollView doesn't take rejection well - scrolls anyway");
|
|
8047
|
-
}
|
|
8223
|
+
scrollResponderHandleResponderReject() {}
|
|
8048
8224
|
/**
|
|
8049
8225
|
* We will allow the scroll view to give up its lock iff it acquired the lock
|
|
8050
8226
|
* during an animation. This is a very useful default that happens to satisfy
|
|
@@ -8069,7 +8245,8 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8069
8245
|
* @param {SyntheticEvent} e Event.
|
|
8070
8246
|
*/
|
|
8071
8247
|
scrollResponderHandleTouchEnd(e) {
|
|
8072
|
-
|
|
8248
|
+
const nativeEvent = e.nativeEvent;
|
|
8249
|
+
this.isTouching = nativeEvent.touches.length !== 0;
|
|
8073
8250
|
this.props.onTouchEnd && this.props.onTouchEnd(e);
|
|
8074
8251
|
}
|
|
8075
8252
|
/**
|
|
@@ -8210,7 +8387,7 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8210
8387
|
ForwardedScrollView.displayName = "ScrollView";
|
|
8211
8388
|
}));
|
|
8212
8389
|
//#endregion
|
|
8213
|
-
//#region ../../
|
|
8390
|
+
//#region ../../react-native-web-lite/dist/esm/RefreshControl/index.mjs
|
|
8214
8391
|
function RefreshControl(props) {
|
|
8215
8392
|
const { colors, enabled, onRefresh, progressBackgroundColor, progressViewOffset, refreshing, size, tintColor, title, titleColor } = props;
|
|
8216
8393
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(View$2, _objectSpread2({}, _objectWithoutProperties(props, _excluded$69)));
|
|
@@ -8234,7 +8411,7 @@ var init_RefreshControl = __esmMin((() => {
|
|
|
8234
8411
|
];
|
|
8235
8412
|
}));
|
|
8236
8413
|
//#endregion
|
|
8237
|
-
//#region ../../
|
|
8414
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Batchinator/index.mjs
|
|
8238
8415
|
var Batchinator;
|
|
8239
8416
|
var init_Batchinator = __esmMin((() => {
|
|
8240
8417
|
init_esm$1();
|
|
@@ -8267,7 +8444,7 @@ var init_Batchinator = __esmMin((() => {
|
|
|
8267
8444
|
};
|
|
8268
8445
|
}));
|
|
8269
8446
|
//#endregion
|
|
8270
|
-
//#region ../../
|
|
8447
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs
|
|
8271
8448
|
var ChildListCollection;
|
|
8272
8449
|
var init_ChildListCollection = __esmMin((() => {
|
|
8273
8450
|
init_esm$1();
|
|
@@ -8314,7 +8491,7 @@ var init_ChildListCollection = __esmMin((() => {
|
|
|
8314
8491
|
};
|
|
8315
8492
|
}));
|
|
8316
8493
|
//#endregion
|
|
8317
|
-
//#region ../../
|
|
8494
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/FillRateHelper/index.mjs
|
|
8318
8495
|
var Info, _listeners, _minSampleCount, _sampleRate, FillRateHelper;
|
|
8319
8496
|
var init_FillRateHelper = __esmMin((() => {
|
|
8320
8497
|
init_defineProperty();
|
|
@@ -8434,7 +8611,7 @@ var init_FillRateHelper = __esmMin((() => {
|
|
|
8434
8611
|
};
|
|
8435
8612
|
}));
|
|
8436
8613
|
//#endregion
|
|
8437
|
-
//#region ../../
|
|
8614
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs
|
|
8438
8615
|
var StateSafePureComponent;
|
|
8439
8616
|
var init_StateSafePureComponent = __esmMin((() => {
|
|
8440
8617
|
init_esm$1();
|
|
@@ -8485,7 +8662,7 @@ var init_StateSafePureComponent = __esmMin((() => {
|
|
|
8485
8662
|
};
|
|
8486
8663
|
}));
|
|
8487
8664
|
//#endregion
|
|
8488
|
-
//#region ../../
|
|
8665
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/ViewabilityHelper.mjs
|
|
8489
8666
|
function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) {
|
|
8490
8667
|
if (_isEntirelyVisible(top, bottom, viewportHeight)) return true;
|
|
8491
8668
|
else {
|
|
@@ -8601,7 +8778,7 @@ var init_ViewabilityHelper = __esmMin((() => {
|
|
|
8601
8778
|
};
|
|
8602
8779
|
}));
|
|
8603
8780
|
//#endregion
|
|
8604
|
-
//#region ../../
|
|
8781
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs
|
|
8605
8782
|
function VirtualizedListCellContextProvider({ cellKey, children }) {
|
|
8606
8783
|
const currContext = (0, react$1.useContext)(VirtualizedListContext);
|
|
8607
8784
|
const context = (0, react$1.useMemo)(() => currContext == null ? null : _objectSpread2(_objectSpread2({}, currContext), {}, { cellKey }), [currContext, cellKey]);
|
|
@@ -8617,7 +8794,7 @@ var init_VirtualizedListContext = __esmMin((() => {
|
|
|
8617
8794
|
VirtualizedListContext = react$1.createContext(null);
|
|
8618
8795
|
}));
|
|
8619
8796
|
//#endregion
|
|
8620
|
-
//#region ../../
|
|
8797
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs
|
|
8621
8798
|
var CellRenderer, styles$9;
|
|
8622
8799
|
var init_VirtualizedListCellRenderer = __esmMin((() => {
|
|
8623
8800
|
init_View();
|
|
@@ -8706,7 +8883,7 @@ var init_VirtualizedListCellRenderer = __esmMin((() => {
|
|
|
8706
8883
|
});
|
|
8707
8884
|
}));
|
|
8708
8885
|
//#endregion
|
|
8709
|
-
//#region ../../
|
|
8886
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/index.mjs
|
|
8710
8887
|
function horizontalOrDefault(horizontal) {
|
|
8711
8888
|
return horizontal !== null && horizontal !== void 0 ? horizontal : false;
|
|
8712
8889
|
}
|
|
@@ -8939,7 +9116,7 @@ var init_VirtualizedList$1 = __esmMin((() => {
|
|
|
8939
9116
|
VirtualizedList_default = VirtualizedList;
|
|
8940
9117
|
}));
|
|
8941
9118
|
//#endregion
|
|
8942
|
-
//#region ../../
|
|
9119
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs
|
|
8943
9120
|
function keyExtractor(item, index) {
|
|
8944
9121
|
if (typeof item === "object" && (item === null || item === void 0 ? void 0 : item.key) != null) return item.key;
|
|
8945
9122
|
if (typeof item === "object" && (item === null || item === void 0 ? void 0 : item.id) != null) return item.id;
|
|
@@ -8947,7 +9124,7 @@ function keyExtractor(item, index) {
|
|
|
8947
9124
|
}
|
|
8948
9125
|
var init_VirtualizeUtils = __esmMin((() => {}));
|
|
8949
9126
|
//#endregion
|
|
8950
|
-
//#region ../../
|
|
9127
|
+
//#region ../../react-native-web-lite/dist/esm/FlatList.mjs
|
|
8951
9128
|
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
8952
9129
|
return removeClippedSubviews !== null && removeClippedSubviews !== void 0 ? removeClippedSubviews : Platform.OS === "android";
|
|
8953
9130
|
}
|
|
@@ -9111,7 +9288,7 @@ var init_FlatList = __esmMin((() => {
|
|
|
9111
9288
|
styles$8 = { row: { flexDirection: "row" } };
|
|
9112
9289
|
}));
|
|
9113
9290
|
//#endregion
|
|
9114
|
-
//#region ../../
|
|
9291
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs
|
|
9115
9292
|
var FlatList;
|
|
9116
9293
|
var init_AnimatedFlatList = __esmMin((() => {
|
|
9117
9294
|
init_FlatList();
|
|
@@ -9120,7 +9297,7 @@ var init_AnimatedFlatList = __esmMin((() => {
|
|
|
9120
9297
|
FlatList = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FlatList$1, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9121
9298
|
}));
|
|
9122
9299
|
//#endregion
|
|
9123
|
-
//#region ../../
|
|
9300
|
+
//#region ../../react-native-web-lite/dist/esm/PixelRatio/index.mjs
|
|
9124
9301
|
var PixelRatio;
|
|
9125
9302
|
var init_PixelRatio = __esmMin((() => {
|
|
9126
9303
|
init_Dimensions();
|
|
@@ -9157,7 +9334,7 @@ var init_PixelRatio = __esmMin((() => {
|
|
|
9157
9334
|
};
|
|
9158
9335
|
}));
|
|
9159
9336
|
//#endregion
|
|
9160
|
-
//#region ../../
|
|
9337
|
+
//#region ../../react-native-web-lite/dist/esm/Image/index.mjs
|
|
9161
9338
|
function createTintColorSVG(tintColor, id) {
|
|
9162
9339
|
return tintColor && id != null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
9163
9340
|
style: {
|
|
@@ -9428,7 +9605,7 @@ var init_Image = __esmMin((() => {
|
|
|
9428
9605
|
});
|
|
9429
9606
|
}));
|
|
9430
9607
|
//#endregion
|
|
9431
|
-
//#region ../../
|
|
9608
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs
|
|
9432
9609
|
var AnimatedImage;
|
|
9433
9610
|
var init_AnimatedImage = __esmMin((() => {
|
|
9434
9611
|
init_Image();
|
|
@@ -9436,7 +9613,7 @@ var init_AnimatedImage = __esmMin((() => {
|
|
|
9436
9613
|
AnimatedImage = createAnimatedComponent(ImageWithStatics);
|
|
9437
9614
|
}));
|
|
9438
9615
|
//#endregion
|
|
9439
|
-
//#region ../../
|
|
9616
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs
|
|
9440
9617
|
var ScrollView$1;
|
|
9441
9618
|
var init_AnimatedScrollView = __esmMin((() => {
|
|
9442
9619
|
init_ScrollView();
|
|
@@ -9445,7 +9622,7 @@ var init_AnimatedScrollView = __esmMin((() => {
|
|
|
9445
9622
|
ScrollView$1 = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardedScrollView, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9446
9623
|
}));
|
|
9447
9624
|
//#endregion
|
|
9448
|
-
//#region ../../
|
|
9625
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs
|
|
9449
9626
|
var _excluded$65, defaultProps, VirtualizedSectionList;
|
|
9450
9627
|
var init_VirtualizedSectionList = __esmMin((() => {
|
|
9451
9628
|
init_VirtualizedList$1();
|
|
@@ -9554,7 +9731,7 @@ var init_VirtualizedSectionList = __esmMin((() => {
|
|
|
9554
9731
|
VirtualizedSectionList.defaultProps = defaultProps;
|
|
9555
9732
|
}));
|
|
9556
9733
|
//#endregion
|
|
9557
|
-
//#region ../../
|
|
9734
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/SectionList/index.mjs
|
|
9558
9735
|
var _excluded$64, SectionList$1, SectionList_default;
|
|
9559
9736
|
var init_SectionList$1 = __esmMin((() => {
|
|
9560
9737
|
init_VirtualizedSectionList();
|
|
@@ -9631,12 +9808,12 @@ var init_SectionList$1 = __esmMin((() => {
|
|
|
9631
9808
|
SectionList_default = SectionList$1;
|
|
9632
9809
|
}));
|
|
9633
9810
|
//#endregion
|
|
9634
|
-
//#region ../../
|
|
9811
|
+
//#region ../../react-native-web-lite/dist/esm/SectionList.mjs
|
|
9635
9812
|
var init_SectionList = __esmMin((() => {
|
|
9636
9813
|
init_SectionList$1();
|
|
9637
9814
|
}));
|
|
9638
9815
|
//#endregion
|
|
9639
|
-
//#region ../../
|
|
9816
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs
|
|
9640
9817
|
var SectionList;
|
|
9641
9818
|
var init_AnimatedSectionList = __esmMin((() => {
|
|
9642
9819
|
init_SectionList();
|
|
@@ -9645,7 +9822,7 @@ var init_AnimatedSectionList = __esmMin((() => {
|
|
|
9645
9822
|
SectionList = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionList_default, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9646
9823
|
}));
|
|
9647
9824
|
//#endregion
|
|
9648
|
-
//#region ../../
|
|
9825
|
+
//#region ../../react-native-web-lite/dist/esm/Text/index.mjs
|
|
9649
9826
|
var _excluded$63, pickProps$2, Text$4, textStyle, styles$6;
|
|
9650
9827
|
var init_Text = __esmMin((() => {
|
|
9651
9828
|
init_esm$1();
|
|
@@ -9785,7 +9962,7 @@ var init_Text = __esmMin((() => {
|
|
|
9785
9962
|
};
|
|
9786
9963
|
}));
|
|
9787
9964
|
//#endregion
|
|
9788
|
-
//#region ../../
|
|
9965
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs
|
|
9789
9966
|
var AnimatedText;
|
|
9790
9967
|
var init_AnimatedText = __esmMin((() => {
|
|
9791
9968
|
init_Text();
|
|
@@ -9793,7 +9970,7 @@ var init_AnimatedText = __esmMin((() => {
|
|
|
9793
9970
|
AnimatedText = createAnimatedComponent(Text$4);
|
|
9794
9971
|
}));
|
|
9795
9972
|
//#endregion
|
|
9796
|
-
//#region ../../
|
|
9973
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs
|
|
9797
9974
|
var AnimatedView;
|
|
9798
9975
|
var init_AnimatedView = __esmMin((() => {
|
|
9799
9976
|
init_View();
|
|
@@ -9801,7 +9978,7 @@ var init_AnimatedView = __esmMin((() => {
|
|
|
9801
9978
|
AnimatedView = createAnimatedComponent(View$2);
|
|
9802
9979
|
}));
|
|
9803
9980
|
//#endregion
|
|
9804
|
-
//#region ../../
|
|
9981
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/Animated.mjs
|
|
9805
9982
|
var Animated, AnimatedExports, Animated_default;
|
|
9806
9983
|
var init_Animated = __esmMin((() => {
|
|
9807
9984
|
init_esm$1();
|
|
@@ -9826,7 +10003,7 @@ var init_Animated = __esmMin((() => {
|
|
|
9826
10003
|
Animated_default = AnimatedExports;
|
|
9827
10004
|
}));
|
|
9828
10005
|
//#endregion
|
|
9829
|
-
//#region ../../
|
|
10006
|
+
//#region ../../react-native-web-lite/dist/esm/AccessibilityInfo/index.mjs
|
|
9830
10007
|
function isScreenReaderEnabled() {
|
|
9831
10008
|
return new Promise((resolve, reject) => {
|
|
9832
10009
|
resolve(true);
|
|
@@ -9849,9 +10026,27 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9849
10026
|
prefersReducedMotionMedia = canUseDOM$1 && typeof window.matchMedia === "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
9850
10027
|
handlers = {};
|
|
9851
10028
|
AccessibilityInfo = {
|
|
10029
|
+
/**
|
|
10030
|
+
* Query whether a screen reader is currently enabled.
|
|
10031
|
+
*
|
|
10032
|
+
* Returns a promise which resolves to a boolean.
|
|
10033
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
10034
|
+
*/
|
|
9852
10035
|
isScreenReaderEnabled,
|
|
10036
|
+
/**
|
|
10037
|
+
* Query whether the user prefers reduced motion.
|
|
10038
|
+
*
|
|
10039
|
+
* Returns a promise which resolves to a boolean.
|
|
10040
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
10041
|
+
*/
|
|
9853
10042
|
isReduceMotionEnabled,
|
|
10043
|
+
/**
|
|
10044
|
+
* Deprecated
|
|
10045
|
+
*/
|
|
9854
10046
|
fetch: isScreenReaderEnabled,
|
|
10047
|
+
/**
|
|
10048
|
+
* Add an event handler. Supported events: reduceMotionChanged
|
|
10049
|
+
*/
|
|
9855
10050
|
addEventListener: function(eventName, handler) {
|
|
9856
10051
|
if (eventName === "reduceMotionChanged") {
|
|
9857
10052
|
if (!prefersReducedMotionMedia) return;
|
|
@@ -9863,8 +10058,17 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9863
10058
|
}
|
|
9864
10059
|
return { remove: () => AccessibilityInfo.removeEventListener(eventName, handler) };
|
|
9865
10060
|
},
|
|
10061
|
+
/**
|
|
10062
|
+
* Set accessibility focus to a react component.
|
|
10063
|
+
*/
|
|
9866
10064
|
setAccessibilityFocus: function(reactTag) {},
|
|
10065
|
+
/**
|
|
10066
|
+
* Post a string to be announced by the screen reader.
|
|
10067
|
+
*/
|
|
9867
10068
|
announceForAccessibility: function(announcement) {},
|
|
10069
|
+
/**
|
|
10070
|
+
* Remove an event handler.
|
|
10071
|
+
*/
|
|
9868
10072
|
removeEventListener: function(eventName, handler) {
|
|
9869
10073
|
if (eventName === "reduceMotionChanged") {
|
|
9870
10074
|
const listener = handlers[handler];
|
|
@@ -9875,7 +10079,7 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9875
10079
|
};
|
|
9876
10080
|
}));
|
|
9877
10081
|
//#endregion
|
|
9878
|
-
//#region ../../
|
|
10082
|
+
//#region ../../react-native-web-lite/dist/esm/Alert/index.mjs
|
|
9879
10083
|
var Alert;
|
|
9880
10084
|
var init_Alert = __esmMin((() => {
|
|
9881
10085
|
Alert = class {
|
|
@@ -9883,7 +10087,7 @@ var init_Alert = __esmMin((() => {
|
|
|
9883
10087
|
};
|
|
9884
10088
|
}));
|
|
9885
10089
|
//#endregion
|
|
9886
|
-
//#region ../../
|
|
10090
|
+
//#region ../../react-native-web-lite/dist/esm/Appearance/index.mjs
|
|
9887
10091
|
function getQuery() {
|
|
9888
10092
|
return canUseDOM$1 && window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
9889
10093
|
}
|
|
@@ -9981,7 +10185,7 @@ var require_react_dom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9981
10185
|
module.exports = require_react_dom_production();
|
|
9982
10186
|
}));
|
|
9983
10187
|
//#endregion
|
|
9984
|
-
//#region ../../
|
|
10188
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/AppContainer.mjs
|
|
9985
10189
|
var RootTagContext$1, AppContainer, styles$5;
|
|
9986
10190
|
var init_AppContainer = __esmMin((() => {
|
|
9987
10191
|
init_esm$1();
|
|
@@ -10009,7 +10213,7 @@ var init_AppContainer = __esmMin((() => {
|
|
|
10009
10213
|
styles$5 = StyleSheet.create({ appContainer: { flex: 1 } });
|
|
10010
10214
|
}));
|
|
10011
10215
|
//#endregion
|
|
10012
|
-
//#region ../../
|
|
10216
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/renderApplication.mjs
|
|
10013
10217
|
function renderApplication(RootComponent, WrapperComponent = null, callback = () => {}, options) {
|
|
10014
10218
|
const { hydrate: shouldHydrate, initialProps, mode, rootTag } = options;
|
|
10015
10219
|
const renderFn = shouldHydrate ? mode === "concurrent" ? hydrate : hydrateLegacy : mode === "concurrent" ? render : renderLegacy;
|
|
@@ -10046,7 +10250,7 @@ var init_renderApplication = __esmMin((() => {
|
|
|
10046
10250
|
init_objectSpread2();
|
|
10047
10251
|
}));
|
|
10048
10252
|
//#endregion
|
|
10049
|
-
//#region ../../
|
|
10253
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/index.mjs
|
|
10050
10254
|
var import_react_dom$2, emptyObject$2, runnables, componentProviderInstrumentationHook, wrapperComponentProvider, AppRegistry;
|
|
10051
10255
|
var init_AppRegistry = __esmMin((() => {
|
|
10052
10256
|
import_react_dom$2 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
@@ -10105,7 +10309,7 @@ var init_AppRegistry = __esmMin((() => {
|
|
|
10105
10309
|
};
|
|
10106
10310
|
}));
|
|
10107
10311
|
//#endregion
|
|
10108
|
-
//#region ../../
|
|
10312
|
+
//#region ../../react-native-web-lite/dist/esm/AppState/index.mjs
|
|
10109
10313
|
var isPrefixed, EVENT_TYPES, VISIBILITY_CHANGE_EVENT, VISIBILITY_STATE_PROPERTY, AppStates, EventEmitter, hasBoundVisibilityChangeEvent, changeEmitter, AppState;
|
|
10110
10314
|
var init_AppState = __esmMin((() => {
|
|
10111
10315
|
init_esm$1();
|
|
@@ -10166,7 +10370,7 @@ var init_AppState = __esmMin((() => {
|
|
|
10166
10370
|
_defineProperty(AppState, "isAvailable", canUseDOM$1 && document[VISIBILITY_STATE_PROPERTY]);
|
|
10167
10371
|
}));
|
|
10168
10372
|
//#endregion
|
|
10169
|
-
//#region ../../
|
|
10373
|
+
//#region ../../react-native-web-lite/dist/esm/BackHandler/index.mjs
|
|
10170
10374
|
function emptyFunction$1() {}
|
|
10171
10375
|
var BackHandler;
|
|
10172
10376
|
var init_BackHandler = __esmMin((() => {
|
|
@@ -10179,7 +10383,7 @@ var init_BackHandler = __esmMin((() => {
|
|
|
10179
10383
|
};
|
|
10180
10384
|
}));
|
|
10181
10385
|
//#endregion
|
|
10182
|
-
//#region ../../
|
|
10386
|
+
//#region ../../react-native-web-lite/dist/esm/Clipboard/index.mjs
|
|
10183
10387
|
var clipboardAvailable, Clipboard;
|
|
10184
10388
|
var init_Clipboard = __esmMin((() => {
|
|
10185
10389
|
Clipboard = class {
|
|
@@ -10218,14 +10422,14 @@ var init_Clipboard = __esmMin((() => {
|
|
|
10218
10422
|
};
|
|
10219
10423
|
}));
|
|
10220
10424
|
//#endregion
|
|
10221
|
-
//#region ../../
|
|
10425
|
+
//#region ../../react-native-web-lite/dist/esm/DeviceEmitter.mjs
|
|
10222
10426
|
var DeviceEmitter;
|
|
10223
10427
|
var init_DeviceEmitter = __esmMin((() => {
|
|
10224
10428
|
init__EventEmitter();
|
|
10225
10429
|
DeviceEmitter = new EventEmitter$1();
|
|
10226
10430
|
}));
|
|
10227
10431
|
//#endregion
|
|
10228
|
-
//#region ../../
|
|
10432
|
+
//#region ../../react-native-web-lite/dist/esm/DeviceInfo/index.mjs
|
|
10229
10433
|
var DeviceInfo;
|
|
10230
10434
|
var init_DeviceInfo = __esmMin((() => {
|
|
10231
10435
|
init_esm$1();
|
|
@@ -10264,7 +10468,7 @@ var init_DeviceInfo = __esmMin((() => {
|
|
|
10264
10468
|
};
|
|
10265
10469
|
}));
|
|
10266
10470
|
//#endregion
|
|
10267
|
-
//#region ../../
|
|
10471
|
+
//#region ../../react-native-web-lite/dist/esm/I18nManager/index.mjs
|
|
10268
10472
|
var I18nManager;
|
|
10269
10473
|
var init_I18nManager = __esmMin((() => {
|
|
10270
10474
|
I18nManager = {
|
|
@@ -10276,7 +10480,7 @@ var init_I18nManager = __esmMin((() => {
|
|
|
10276
10480
|
};
|
|
10277
10481
|
}));
|
|
10278
10482
|
//#endregion
|
|
10279
|
-
//#region ../../
|
|
10483
|
+
//#region ../../react-native-web-lite/dist/esm/Keyboard/index.mjs
|
|
10280
10484
|
var Keyboard;
|
|
10281
10485
|
var init_Keyboard = __esmMin((() => {
|
|
10282
10486
|
init_esm$1();
|
|
@@ -10292,7 +10496,7 @@ var init_Keyboard = __esmMin((() => {
|
|
|
10292
10496
|
};
|
|
10293
10497
|
}));
|
|
10294
10498
|
//#endregion
|
|
10295
|
-
//#region ../../
|
|
10499
|
+
//#region ../../react-native-web-lite/dist/esm/Linking/index.mjs
|
|
10296
10500
|
var initialURL, Linking, open, LinkingInstance;
|
|
10297
10501
|
var init_Linking = __esmMin((() => {
|
|
10298
10502
|
init_esm$1();
|
|
@@ -10380,10 +10584,26 @@ var init_Linking = __esmMin((() => {
|
|
|
10380
10584
|
LinkingInstance = new Linking();
|
|
10381
10585
|
}));
|
|
10382
10586
|
//#endregion
|
|
10383
|
-
//#region ../../
|
|
10587
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs
|
|
10384
10588
|
var TouchHistoryMath, TouchHistoryMath_default;
|
|
10385
10589
|
var init_TouchHistoryMath = __esmMin((() => {
|
|
10386
10590
|
TouchHistoryMath = {
|
|
10591
|
+
/**
|
|
10592
|
+
* This code is optimized and not intended to look beautiful. This allows
|
|
10593
|
+
* computing of touch centroids that have moved after `touchesChangedAfter`
|
|
10594
|
+
* timeStamp. You can compute the current centroid involving all touches
|
|
10595
|
+
* moves after `touchesChangedAfter`, or you can compute the previous
|
|
10596
|
+
* centroid of all touches that were moved after `touchesChangedAfter`.
|
|
10597
|
+
*
|
|
10598
|
+
* @param {TouchHistoryMath} touchHistory Standard Responder touch track
|
|
10599
|
+
* data.
|
|
10600
|
+
* @param {number} touchesChangedAfter timeStamp after which moved touches
|
|
10601
|
+
* are considered "actively moving" - not just "active".
|
|
10602
|
+
* @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.
|
|
10603
|
+
* @param {boolean} ofCurrent Compute current centroid for actively moving
|
|
10604
|
+
* touches vs. previous centroid of now actively moving touches.
|
|
10605
|
+
* @return {number} value of centroid in specified dimension.
|
|
10606
|
+
*/
|
|
10387
10607
|
centroidDimension: function(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) {
|
|
10388
10608
|
const touchBank = touchHistory.touchBank;
|
|
10389
10609
|
let total = 0;
|
|
@@ -10431,7 +10651,7 @@ var init_TouchHistoryMath = __esmMin((() => {
|
|
|
10431
10651
|
TouchHistoryMath_default = TouchHistoryMath;
|
|
10432
10652
|
}));
|
|
10433
10653
|
//#endregion
|
|
10434
|
-
//#region ../../
|
|
10654
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/PanResponder/index.mjs
|
|
10435
10655
|
function clearInteractionHandle(interactionState, callback, event, gestureState) {
|
|
10436
10656
|
if (interactionState.handle) {
|
|
10437
10657
|
InteractionManager.clearInteractionHandle(interactionState.handle);
|
|
@@ -10583,12 +10803,12 @@ var init_PanResponder$1 = __esmMin((() => {
|
|
|
10583
10803
|
PanResponder_default = PanResponder;
|
|
10584
10804
|
}));
|
|
10585
10805
|
//#endregion
|
|
10586
|
-
//#region ../../
|
|
10806
|
+
//#region ../../react-native-web-lite/dist/esm/PanResponder/index.mjs
|
|
10587
10807
|
var init_PanResponder = __esmMin((() => {
|
|
10588
10808
|
init_PanResponder$1();
|
|
10589
10809
|
}));
|
|
10590
10810
|
//#endregion
|
|
10591
|
-
//#region ../../
|
|
10811
|
+
//#region ../../react-native-web-lite/dist/esm/Share/index.mjs
|
|
10592
10812
|
var Share;
|
|
10593
10813
|
var init_Share = __esmMin((() => {
|
|
10594
10814
|
init_esm$1();
|
|
@@ -10621,7 +10841,7 @@ var init_Share = __esmMin((() => {
|
|
|
10621
10841
|
};
|
|
10622
10842
|
}));
|
|
10623
10843
|
//#endregion
|
|
10624
|
-
//#region ../../
|
|
10844
|
+
//#region ../../react-native-web-lite/dist/esm/Vibration/index.mjs
|
|
10625
10845
|
var vibrate, Vibration;
|
|
10626
10846
|
var init_Vibration = __esmMin((() => {
|
|
10627
10847
|
vibrate = (pattern) => {
|
|
@@ -10637,12 +10857,12 @@ var init_Vibration = __esmMin((() => {
|
|
|
10637
10857
|
};
|
|
10638
10858
|
}));
|
|
10639
10859
|
//#endregion
|
|
10640
|
-
//#region ../../
|
|
10860
|
+
//#region ../../react-native-web-lite/dist/esm/VirtualizedList.mjs
|
|
10641
10861
|
var init_VirtualizedList = __esmMin((() => {
|
|
10642
10862
|
init_VirtualizedList$1();
|
|
10643
10863
|
}));
|
|
10644
10864
|
//#endregion
|
|
10645
|
-
//#region ../../
|
|
10865
|
+
//#region ../../react-native-web-lite/dist/esm/UnimplementedView.mjs
|
|
10646
10866
|
var UnimplementedView;
|
|
10647
10867
|
var init_UnimplementedView = __esmMin((() => {
|
|
10648
10868
|
init_View();
|
|
@@ -10659,12 +10879,12 @@ var init_UnimplementedView = __esmMin((() => {
|
|
|
10659
10879
|
};
|
|
10660
10880
|
}));
|
|
10661
10881
|
//#endregion
|
|
10662
|
-
//#region ../../
|
|
10882
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableNativeFeedback.mjs
|
|
10663
10883
|
var init_TouchableNativeFeedback = __esmMin((() => {
|
|
10664
10884
|
init_UnimplementedView();
|
|
10665
10885
|
}));
|
|
10666
10886
|
//#endregion
|
|
10667
|
-
//#region ../../
|
|
10887
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableOpacity.mjs
|
|
10668
10888
|
function TouchableOpacityImpl(props, forwardedRef) {
|
|
10669
10889
|
const { activeOpacity, delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, style } = props, rest = _objectWithoutProperties(props, _excluded$62);
|
|
10670
10890
|
const hostRef = (0, react$1.useRef)(null);
|
|
@@ -10759,7 +10979,7 @@ var init_TouchableOpacity = __esmMin((() => {
|
|
|
10759
10979
|
TouchableOpacity.Mixin = {};
|
|
10760
10980
|
}));
|
|
10761
10981
|
//#endregion
|
|
10762
|
-
//#region ../../
|
|
10982
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableWithoutFeedback.mjs
|
|
10763
10983
|
function TouchableWithoutFeedbackImpl(props, forwardedRef) {
|
|
10764
10984
|
const { delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination } = props;
|
|
10765
10985
|
const hostRef = (0, react$1.useRef)(null);
|
|
@@ -10817,7 +11037,7 @@ var init_TouchableWithoutFeedback = __esmMin((() => {
|
|
|
10817
11037
|
TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
|
|
10818
11038
|
}));
|
|
10819
11039
|
//#endregion
|
|
10820
|
-
//#region ../../
|
|
11040
|
+
//#region ../../react-native-web-lite/dist/esm/ActivityIndicator/index.mjs
|
|
10821
11041
|
var _excluded$61, createSvgCircle, ActivityIndicator, styles$3, indicatorSizes;
|
|
10822
11042
|
var init_ActivityIndicator = __esmMin((() => {
|
|
10823
11043
|
init_esm$1();
|
|
@@ -10904,7 +11124,7 @@ var init_ActivityIndicator = __esmMin((() => {
|
|
|
10904
11124
|
});
|
|
10905
11125
|
}));
|
|
10906
11126
|
//#endregion
|
|
10907
|
-
//#region ../../
|
|
11127
|
+
//#region ../../react-native-web-lite/dist/esm/ImageBackground/index.mjs
|
|
10908
11128
|
var _excluded$60, emptyObject$1, ImageBackground;
|
|
10909
11129
|
var init_ImageBackground = __esmMin((() => {
|
|
10910
11130
|
init_esm$1();
|
|
@@ -10942,7 +11162,7 @@ var init_ImageBackground = __esmMin((() => {
|
|
|
10942
11162
|
ImageBackground.displayName = "ImageBackground";
|
|
10943
11163
|
}));
|
|
10944
11164
|
//#endregion
|
|
10945
|
-
//#region ../../
|
|
11165
|
+
//#region ../../react-native-web-lite/dist/esm/KeyboardAvoidingView/index.mjs
|
|
10946
11166
|
var _excluded$59, KeyboardAvoidingView;
|
|
10947
11167
|
var init_KeyboardAvoidingView = __esmMin((() => {
|
|
10948
11168
|
init_View();
|
|
@@ -10976,7 +11196,7 @@ var init_KeyboardAvoidingView = __esmMin((() => {
|
|
|
10976
11196
|
};
|
|
10977
11197
|
}));
|
|
10978
11198
|
//#endregion
|
|
10979
|
-
//#region ../../
|
|
11199
|
+
//#region ../../react-native-web-lite/dist/esm/LogBox/index.mjs
|
|
10980
11200
|
var LogBox;
|
|
10981
11201
|
var init_LogBox = __esmMin((() => {
|
|
10982
11202
|
LogBox = {
|
|
@@ -10987,13 +11207,13 @@ var init_LogBox = __esmMin((() => {
|
|
|
10987
11207
|
};
|
|
10988
11208
|
}));
|
|
10989
11209
|
//#endregion
|
|
10990
|
-
//#region ../../
|
|
11210
|
+
//#region ../../react-native-web-lite/dist/esm/Modal/index.mjs
|
|
10991
11211
|
var Modal;
|
|
10992
11212
|
var init_Modal = __esmMin((() => {
|
|
10993
11213
|
Modal = () => null;
|
|
10994
11214
|
}));
|
|
10995
11215
|
//#endregion
|
|
10996
|
-
//#region ../../
|
|
11216
|
+
//#region ../../react-native-web-lite/dist/esm/Pressable/index.mjs
|
|
10997
11217
|
function Pressable(props, forwardedRef) {
|
|
10998
11218
|
const { children, delayLongPress, delayPressIn, delayPressOut, disabled, focusable, onBlur, onContextMenu, onFocus, onHoverIn, onHoverOut, onKeyDown, onLongPress, onPress, onPressMove, onPressIn, onPressOut, style, testOnly_hovered, testOnly_pressed } = props, rest = _objectWithoutProperties(props, _excluded$58);
|
|
10999
11219
|
const [hovered, setHovered] = useForceableState(testOnly_hovered === true);
|
|
@@ -11123,7 +11343,7 @@ var init_Pressable = __esmMin((() => {
|
|
|
11123
11343
|
PressableComponent.displayName = "Pressable";
|
|
11124
11344
|
}));
|
|
11125
11345
|
//#endregion
|
|
11126
|
-
//#region ../../
|
|
11346
|
+
//#region ../../react-native-web-lite/dist/esm/SafeAreaView/index.mjs
|
|
11127
11347
|
var _excluded$57, cssFunction, SafeAreaView, styles$1;
|
|
11128
11348
|
var init_SafeAreaView = __esmMin((() => {
|
|
11129
11349
|
init_esm$1();
|
|
@@ -11151,7 +11371,7 @@ var init_SafeAreaView = __esmMin((() => {
|
|
|
11151
11371
|
} });
|
|
11152
11372
|
}));
|
|
11153
11373
|
//#endregion
|
|
11154
|
-
//#region ../../
|
|
11374
|
+
//#region ../../react-native-web-lite/dist/esm/StatusBar/index.mjs
|
|
11155
11375
|
function StatusBar() {
|
|
11156
11376
|
return null;
|
|
11157
11377
|
}
|
|
@@ -11165,11 +11385,10 @@ var init_StatusBar = __esmMin((() => {
|
|
|
11165
11385
|
StatusBar.setTranslucent = emptyFunction;
|
|
11166
11386
|
}));
|
|
11167
11387
|
//#endregion
|
|
11168
|
-
//#region ../../
|
|
11388
|
+
//#region ../../react-native-web-lite/dist/esm/TextInput/index.mjs
|
|
11169
11389
|
function isEventComposing(nativeEvent) {
|
|
11170
11390
|
return nativeEvent.isComposing || nativeEvent.keyCode === 229;
|
|
11171
11391
|
}
|
|
11172
|
-
function warn(...args) {}
|
|
11173
11392
|
var isSelectionStale, setSelection, forwardPropsList, pickProps, useIsomorphicLayoutEffect$1, focusTimeout, TextInput, styles;
|
|
11174
11393
|
var init_TextInput = __esmMin((() => {
|
|
11175
11394
|
init_esm$1();
|
|
@@ -11221,31 +11440,28 @@ var init_TextInput = __esmMin((() => {
|
|
|
11221
11440
|
else if (inputMode === "search") type = "search";
|
|
11222
11441
|
else if (inputMode === "url") type = "url";
|
|
11223
11442
|
else type = "text";
|
|
11224
|
-
} else if (keyboardType != null) {
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
break;
|
|
11247
|
-
default: type = "text";
|
|
11248
|
-
}
|
|
11443
|
+
} else if (keyboardType != null) switch (keyboardType) {
|
|
11444
|
+
case "email-address":
|
|
11445
|
+
type = "email";
|
|
11446
|
+
break;
|
|
11447
|
+
case "number-pad":
|
|
11448
|
+
case "numeric":
|
|
11449
|
+
_inputMode = "numeric";
|
|
11450
|
+
break;
|
|
11451
|
+
case "decimal-pad":
|
|
11452
|
+
_inputMode = "decimal";
|
|
11453
|
+
break;
|
|
11454
|
+
case "phone-pad":
|
|
11455
|
+
type = "tel";
|
|
11456
|
+
break;
|
|
11457
|
+
case "search":
|
|
11458
|
+
case "web-search":
|
|
11459
|
+
type = "search";
|
|
11460
|
+
break;
|
|
11461
|
+
case "url":
|
|
11462
|
+
type = "url";
|
|
11463
|
+
break;
|
|
11464
|
+
default: type = "text";
|
|
11249
11465
|
}
|
|
11250
11466
|
if (secureTextEntry) type = "password";
|
|
11251
11467
|
const dimensions = react$1.useRef({
|
|
@@ -11366,7 +11582,7 @@ var init_TextInput = __esmMin((() => {
|
|
|
11366
11582
|
supportedProps.autoComplete = autoComplete || autoCompleteType || "on";
|
|
11367
11583
|
supportedProps.autoCorrect = autoCorrect ? "on" : "off";
|
|
11368
11584
|
supportedProps.dir = dir !== void 0 ? dir : "auto";
|
|
11369
|
-
if (returnKeyType != null)
|
|
11585
|
+
if (returnKeyType != null);
|
|
11370
11586
|
supportedProps.enterKeyHint = enterKeyHint || returnKeyType;
|
|
11371
11587
|
supportedProps.inputMode = _inputMode;
|
|
11372
11588
|
supportedProps.onBlur = handleBlur;
|
|
@@ -11374,9 +11590,9 @@ var init_TextInput = __esmMin((() => {
|
|
|
11374
11590
|
supportedProps.onFocus = handleFocus;
|
|
11375
11591
|
supportedProps.onKeyDown = handleKeyDown;
|
|
11376
11592
|
supportedProps.onSelect = handleSelectionChange;
|
|
11377
|
-
if (editable != null)
|
|
11593
|
+
if (editable != null);
|
|
11378
11594
|
supportedProps.readOnly = readOnly === true || editable === false;
|
|
11379
|
-
if (numberOfLines != null)
|
|
11595
|
+
if (numberOfLines != null);
|
|
11380
11596
|
supportedProps.rows = multiline ? rows != null ? rows : numberOfLines : 1;
|
|
11381
11597
|
supportedProps.spellCheck = spellCheck != null ? spellCheck : autoCorrect;
|
|
11382
11598
|
supportedProps.style = [
|
|
@@ -11405,7 +11621,7 @@ var init_TextInput = __esmMin((() => {
|
|
|
11405
11621
|
});
|
|
11406
11622
|
}));
|
|
11407
11623
|
//#endregion
|
|
11408
|
-
//#region ../../
|
|
11624
|
+
//#region ../../react-native-web-lite/dist/esm/useColorScheme/index.mjs
|
|
11409
11625
|
function useColorScheme() {
|
|
11410
11626
|
const [colorScheme, setColorScheme] = react$1.useState(Appearance.getColorScheme());
|
|
11411
11627
|
react$1.useEffect(() => {
|
|
@@ -11421,12 +11637,12 @@ var init_useColorScheme = __esmMin((() => {
|
|
|
11421
11637
|
init_Appearance();
|
|
11422
11638
|
}));
|
|
11423
11639
|
//#endregion
|
|
11424
|
-
//#region ../../
|
|
11640
|
+
//#region ../../react-native-web-lite/dist/esm/useLocaleContext/index.mjs
|
|
11425
11641
|
var init_useLocaleContext = __esmMin((() => {
|
|
11426
11642
|
init_esm$1();
|
|
11427
11643
|
}));
|
|
11428
11644
|
//#endregion
|
|
11429
|
-
//#region ../../
|
|
11645
|
+
//#region ../../react-native-web-lite/dist/esm/useWindowDimensions/index.mjs
|
|
11430
11646
|
function useWindowDimensions$1() {
|
|
11431
11647
|
const [dims, setDims] = react$1.default.useState(() => Dimensions.get("window"));
|
|
11432
11648
|
react$1.default.useEffect(() => {
|
|
@@ -11445,7 +11661,7 @@ var init_useWindowDimensions = __esmMin((() => {
|
|
|
11445
11661
|
init_Dimensions();
|
|
11446
11662
|
}));
|
|
11447
11663
|
//#endregion
|
|
11448
|
-
//#region ../../
|
|
11664
|
+
//#region ../../react-native-web-lite/dist/esm/index.mjs
|
|
11449
11665
|
var esm_exports = /* @__PURE__ */ __exportAll({
|
|
11450
11666
|
AccessibilityInfo: () => AccessibilityInfo,
|
|
11451
11667
|
AccessibilityUtil: () => AccessibilityUtil,
|
|
@@ -11630,7 +11846,7 @@ var init_config_native = __esmMin((() => {
|
|
|
11630
11846
|
init_index_native$7();
|
|
11631
11847
|
getConfigFromGlobalOrLocal = function() {
|
|
11632
11848
|
if (conf$1) return conf$1;
|
|
11633
|
-
if (globalThis.
|
|
11849
|
+
if (globalThis.__guiConfig) return globalThis.__guiConfig;
|
|
11634
11850
|
return null;
|
|
11635
11851
|
};
|
|
11636
11852
|
getSetting = function(key) {
|
|
@@ -11640,7 +11856,7 @@ var init_config_native = __esmMin((() => {
|
|
|
11640
11856
|
};
|
|
11641
11857
|
setConfig = function(next) {
|
|
11642
11858
|
conf$1 = next;
|
|
11643
|
-
globalThis.
|
|
11859
|
+
globalThis.__guiConfig = next;
|
|
11644
11860
|
};
|
|
11645
11861
|
setConfigFont = function(name, font, fontParsed) {
|
|
11646
11862
|
var config = getConfigFromGlobalOrLocal();
|
|
@@ -12562,7 +12778,7 @@ function _type_of$13(obj) {
|
|
|
12562
12778
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12563
12779
|
}
|
|
12564
12780
|
function constructCSSVariableName(name) {
|
|
12565
|
-
return `var(--${process.env.
|
|
12781
|
+
return `var(--${process.env.GUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
12566
12782
|
}
|
|
12567
12783
|
function variableToString(vrble) {
|
|
12568
12784
|
arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
@@ -13042,7 +13258,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
|
|
|
13042
13258
|
var [key, value] = param;
|
|
13043
13259
|
var proxied2 = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
13044
13260
|
get val() {
|
|
13045
|
-
if (!globalThis.
|
|
13261
|
+
if (!globalThis.guiAvoidTracking) track(key, false);
|
|
13046
13262
|
return value.val;
|
|
13047
13263
|
},
|
|
13048
13264
|
get(platform) {
|
|
@@ -13169,7 +13385,7 @@ var init_index_native$4 = __esmMin((() => {
|
|
|
13169
13385
|
//#endregion
|
|
13170
13386
|
//#region ../../core/native/dist/esm/globalState.native.js
|
|
13171
13387
|
function createGlobalState(key, defaultValue) {
|
|
13172
|
-
var GLOBAL_KEY = `
|
|
13388
|
+
var GLOBAL_KEY = `__gui_${key}__`;
|
|
13173
13389
|
function getGlobalState() {
|
|
13174
13390
|
var g = globalThis;
|
|
13175
13391
|
if (!g[GLOBAL_KEY]) g[GLOBAL_KEY] = defaultValue;
|
|
@@ -13264,7 +13480,7 @@ function getGestureHandler() {
|
|
|
13264
13480
|
var didLongPress = false;
|
|
13265
13481
|
var didPressIn = false;
|
|
13266
13482
|
var pressInTimer = null;
|
|
13267
|
-
var GRACE_PERIOD_MS = process.env.
|
|
13483
|
+
var GRACE_PERIOD_MS = process.env.GUI_RNGH_PRESS_DELAY ? +process.env.GUI_RNGH_PRESS_DELAY : 24;
|
|
13268
13484
|
var tryClaimOwnership = function(e) {
|
|
13269
13485
|
var now = Date.now();
|
|
13270
13486
|
resetStaleOwner(now, config.debugName);
|
|
@@ -13539,7 +13755,7 @@ var init_burntState_native = __esmMin((() => {
|
|
|
13539
13755
|
function NativePortal(param) {
|
|
13540
13756
|
var { hostName = "root", children } = param;
|
|
13541
13757
|
if (getPortal().state.type !== "teleport") return null;
|
|
13542
|
-
var { Portal } = globalThis.
|
|
13758
|
+
var { Portal } = globalThis.__gui_teleport;
|
|
13543
13759
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
|
|
13544
13760
|
hostName,
|
|
13545
13761
|
children
|
|
@@ -13548,13 +13764,13 @@ function NativePortal(param) {
|
|
|
13548
13764
|
function NativePortalHost(param) {
|
|
13549
13765
|
var { name } = param;
|
|
13550
13766
|
if (getPortal().state.type !== "teleport") return null;
|
|
13551
|
-
var { PortalHost } = globalThis.
|
|
13767
|
+
var { PortalHost } = globalThis.__gui_teleport;
|
|
13552
13768
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalHost, { name });
|
|
13553
13769
|
}
|
|
13554
13770
|
function NativePortalProvider(param) {
|
|
13555
13771
|
var { children } = param;
|
|
13556
13772
|
if (getPortal().state.type !== "teleport") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
13557
|
-
var { PortalProvider } = globalThis.
|
|
13773
|
+
var { PortalProvider } = globalThis.__gui_teleport;
|
|
13558
13774
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProvider, { children });
|
|
13559
13775
|
}
|
|
13560
13776
|
var init_components_native = __esmMin((() => {
|
|
@@ -13940,17 +14156,16 @@ var init_getCSSStylesAtomic_native = __esmMin((() => {
|
|
|
13940
14156
|
function scanAllSheets() {
|
|
13941
14157
|
arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
|
|
13942
14158
|
arguments.length > 1 && arguments[1];
|
|
13943
|
-
if (!process.env.
|
|
14159
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) return;
|
|
13944
14160
|
}
|
|
13945
14161
|
function stopAccumulatingRules() {
|
|
13946
14162
|
trackAllRules = false;
|
|
13947
14163
|
}
|
|
13948
|
-
function insertStyleRules(rulesToInsert) {}
|
|
13949
14164
|
var bailAfterEnv, trackAllRules;
|
|
13950
14165
|
var init_insertStyleRule_native = __esmMin((() => {
|
|
13951
|
-
bailAfterEnv = process.env.
|
|
14166
|
+
bailAfterEnv = process.env.GUI_BAIL_AFTER_SCANNING_X_CSS_RULES;
|
|
13952
14167
|
bailAfterEnv && +bailAfterEnv;
|
|
13953
|
-
process.env.
|
|
14168
|
+
process.env.GUI_INSERT_SELECTOR_TRIES && +process.env.GUI_INSERT_SELECTOR_TRIES;
|
|
13954
14169
|
}));
|
|
13955
14170
|
//#endregion
|
|
13956
14171
|
//#region ../../core/web/dist/esm/helpers/isActivePlatform.native.js
|
|
@@ -14889,7 +15104,7 @@ var init_propMapper_native = __esmMin((() => {
|
|
|
14889
15104
|
if (!variants) return;
|
|
14890
15105
|
var variantValue = getVariantDefinition(variants[key], value, conf, styleState);
|
|
14891
15106
|
if (!variantValue) {
|
|
14892
|
-
if (process.env.
|
|
15107
|
+
if (process.env.GUI_WARN_ON_MISSING_VARIANT === "1") {
|
|
14893
15108
|
if (typeof value !== "boolean") {
|
|
14894
15109
|
var name = staticConfig.componentName || "[UnnamedComponent]";
|
|
14895
15110
|
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
|
|
@@ -15067,7 +15282,6 @@ function mergeStyle(styleState, key, val, importance) {
|
|
|
15067
15282
|
}
|
|
15068
15283
|
}
|
|
15069
15284
|
}
|
|
15070
|
-
function addStyleToInsertRules(rulesToInsert, styleObject) {}
|
|
15071
15285
|
function passDownProp(viewProps, key, val) {
|
|
15072
15286
|
if (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false) {
|
|
15073
15287
|
var next = _objectSpread2(_objectSpread2({}, viewProps[key]), val);
|
|
@@ -15246,7 +15460,6 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15246
15460
|
for (var _iterator3 = pseudoStyles[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
15247
15461
|
var psuedoStyle = _step3.value;
|
|
15248
15462
|
var fullKey = `${psuedoStyle[0]}-${descriptor.name}`;
|
|
15249
|
-
addStyleToInsertRules(rulesToInsert, psuedoStyle);
|
|
15250
15463
|
classNames[fullKey] = psuedoStyle[2];
|
|
15251
15464
|
}
|
|
15252
15465
|
} catch (err) {
|
|
@@ -15311,7 +15524,6 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15311
15524
|
var out = createMediaStyle(style3, mediaKeyShort, mediaQueryConfig, isMedia, false, priority);
|
|
15312
15525
|
var subKey = isSubStyle ? style3[2] : "";
|
|
15313
15526
|
var fullKey1 = `${style3[0]}${subKey}-${mediaKeyShort}${style3[3] || ""}`;
|
|
15314
|
-
addStyleToInsertRules(rulesToInsert, out);
|
|
15315
15527
|
classNames[fullKey1] = out[2];
|
|
15316
15528
|
}
|
|
15317
15529
|
} catch (err) {
|
|
@@ -15656,7 +15868,7 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15656
15868
|
"use no memo";
|
|
15657
15869
|
return getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
|
|
15658
15870
|
};
|
|
15659
|
-
defaultColor = process.env.
|
|
15871
|
+
defaultColor = process.env.GUI_DEFAULT_COLOR || "rgba(0,0,0,0)";
|
|
15660
15872
|
animatableDefaults = _objectSpread2(_objectSpread2({}, Object.fromEntries(Object.entries(tokenCategories.color).map(function(param) {
|
|
15661
15873
|
var [k, v] = param;
|
|
15662
15874
|
return [k, defaultColor];
|
|
@@ -16068,9 +16280,6 @@ var init_themeable_native = __esmMin((() => {
|
|
|
16068
16280
|
"themeReset"
|
|
16069
16281
|
];
|
|
16070
16282
|
}));
|
|
16071
|
-
//#endregion
|
|
16072
|
-
//#region ../../core/web/dist/esm/helpers/wrapStyleTags.native.js
|
|
16073
|
-
function getStyleTags(styles) {}
|
|
16074
16283
|
var init_wrapStyleTags_native = __esmMin((() => {}));
|
|
16075
16284
|
//#endregion
|
|
16076
16285
|
//#region ../../core/use-did-finish-ssr/dist/esm/ClientOnly.native.js
|
|
@@ -16496,8 +16705,8 @@ function createComponent(staticConfig) {
|
|
|
16496
16705
|
setMediaShouldUpdate(componentContext, didGetVariableValue() || hasRuntimeMediaKeys || noClass && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasMedia) === true, hasRuntimeMediaKeys ? splitStyles.hasMedia : null);
|
|
16497
16706
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
|
|
16498
16707
|
var propsWithAnimation = props;
|
|
16499
|
-
var _ref5 = viewPropsIn || {}, { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref5,
|
|
16500
|
-
var viewProps =
|
|
16708
|
+
var _ref5 = viewPropsIn || {}, { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref5, nonGuiProps = _objectWithoutProperties(_ref5, _excluded2$29);
|
|
16709
|
+
var viewProps = nonGuiProps;
|
|
16501
16710
|
if (props.forceStyle) viewProps.forceStyle = props.forceStyle;
|
|
16502
16711
|
if (isHOC) {
|
|
16503
16712
|
if (typeof _themeProp !== "undefined") viewProps.theme = _themeProp;
|
|
@@ -16536,7 +16745,7 @@ function createComponent(staticConfig) {
|
|
|
16536
16745
|
}
|
|
16537
16746
|
}
|
|
16538
16747
|
}
|
|
16539
|
-
if (!isPassthrough && groupContext && props.containerType !== "normal")
|
|
16748
|
+
if (!isPassthrough && groupContext && props.containerType !== "normal") nonGuiProps.onLayout = composeEventHandlers(nonGuiProps.onLayout, function(e) {
|
|
16540
16749
|
var _stateRef_current_group;
|
|
16541
16750
|
var layout = e.nativeEvent.layout;
|
|
16542
16751
|
groupContext.state.layout = layout;
|
|
@@ -16546,7 +16755,7 @@ function createComponent(staticConfig) {
|
|
|
16546
16755
|
});
|
|
16547
16756
|
stateRef.current.hasMeasured = true;
|
|
16548
16757
|
});
|
|
16549
|
-
viewProps = ((_hooks_usePropsTransform = hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(hooks, elementType,
|
|
16758
|
+
viewProps = ((_hooks_usePropsTransform = hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(hooks, elementType, nonGuiProps, stateRef, stateRef.current.willHydrate)) || nonGuiProps;
|
|
16550
16759
|
if (!stateRef.current.composedRef) stateRef.current.composedRef = composeRefs(function(x) {
|
|
16551
16760
|
return stateRef.current.host = x;
|
|
16552
16761
|
}, forwardedRef, setElementProps, animatedRef);
|
|
@@ -16774,7 +16983,7 @@ function createComponent(staticConfig) {
|
|
|
16774
16983
|
var out = typeof Component2 === "function" && Component2.length === 1 ? Component2 : /* @__PURE__ */ react$1.default.forwardRef(Component2);
|
|
16775
16984
|
var extendedConfig = extendStyledConfig(options === null || options === void 0 ? void 0 : options.staticConfig);
|
|
16776
16985
|
out = (options === null || options === void 0 ? void 0 : options.disableTheme) ? out : themeable(out, extendedConfig, true);
|
|
16777
|
-
if (extendedConfig.memo || process.env.
|
|
16986
|
+
if (extendedConfig.memo || process.env.GUI_MEMOIZE_STYLEABLE) out = /* @__PURE__ */ react$1.default.memo(out);
|
|
16778
16987
|
out.staticConfig = extendedConfig;
|
|
16779
16988
|
out.styleable = styleable;
|
|
16780
16989
|
return out;
|
|
@@ -16904,29 +17113,29 @@ var registerCSSVariable, variableToCSS, tokensValueToVariable;
|
|
|
16904
17113
|
var init_registerCSSVariable_native = __esmMin((() => {
|
|
16905
17114
|
init_createVariable_native();
|
|
16906
17115
|
registerCSSVariable = function(v) {
|
|
16907
|
-
if (!process.env.
|
|
17116
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) tokensValueToVariable.set(getVariableValue(v), v);
|
|
16908
17117
|
};
|
|
16909
17118
|
variableToCSS = function(v) {
|
|
16910
17119
|
var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
16911
|
-
if (!process.env.
|
|
17120
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) return `--${process.env.GUI_CSS_VARIABLE_PREFIX || ""}${createCSSVariable(v.name, false)}:${!unitless && typeof v.val === "number" ? `${v.val}px` : v.val}`;
|
|
16912
17121
|
return "";
|
|
16913
17122
|
};
|
|
16914
17123
|
tokensValueToVariable = /* @__PURE__ */ new Map();
|
|
16915
17124
|
}));
|
|
16916
17125
|
//#endregion
|
|
16917
|
-
//#region ../../core/web/dist/esm/helpers/
|
|
16918
|
-
function
|
|
17126
|
+
//#region ../../core/web/dist/esm/helpers/isGuiComponent.native.js
|
|
17127
|
+
function isGuiComponent(comp, name) {
|
|
16919
17128
|
var config = comp === null || comp === void 0 ? void 0 : comp["staticConfig"];
|
|
16920
17129
|
return Boolean(config && (name ? name === config.componentName : true));
|
|
16921
17130
|
}
|
|
16922
|
-
var
|
|
17131
|
+
var init_isGuiComponent_native = __esmMin((() => {}));
|
|
16923
17132
|
//#endregion
|
|
16924
|
-
//#region ../../core/web/dist/esm/helpers/
|
|
16925
|
-
var
|
|
16926
|
-
var
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
return /* @__PURE__ */ react$1.default.isValidElement(child) &&
|
|
17133
|
+
//#region ../../core/web/dist/esm/helpers/isGuiElement.native.js
|
|
17134
|
+
var isGuiElement;
|
|
17135
|
+
var init_isGuiElement_native = __esmMin((() => {
|
|
17136
|
+
init_isGuiComponent_native();
|
|
17137
|
+
isGuiElement = function(child, name) {
|
|
17138
|
+
return /* @__PURE__ */ react$1.default.isValidElement(child) && isGuiComponent(child.type, name);
|
|
16930
17139
|
};
|
|
16931
17140
|
}));
|
|
16932
17141
|
//#endregion
|
|
@@ -17147,7 +17356,7 @@ var init_createVariables_native = __esmMin((() => {
|
|
|
17147
17356
|
var noAnimationDriver, createEmptyAnimationDriver, defaultAnimationDriver;
|
|
17148
17357
|
var init_defaultAnimationDriver_native = __esmMin((() => {
|
|
17149
17358
|
noAnimationDriver = function(method) {
|
|
17150
|
-
console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to
|
|
17359
|
+
console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to createGui. See: https://gui.dev/docs/core/animations`);
|
|
17151
17360
|
};
|
|
17152
17361
|
createEmptyAnimationDriver = function() {
|
|
17153
17362
|
return {
|
|
@@ -17201,7 +17410,7 @@ function getFontPropertyDeclarations(fontParsed) {
|
|
|
17201
17410
|
return props;
|
|
17202
17411
|
}
|
|
17203
17412
|
function createTokenCSS(tokens, shouldTokenCategoryHaveUnits) {
|
|
17204
|
-
if (!process.env.
|
|
17413
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17205
17414
|
var declarations = [];
|
|
17206
17415
|
var sortedTokenKeys = Object.keys(tokens).sort();
|
|
17207
17416
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
@@ -17241,7 +17450,7 @@ function createTokenCSS(tokens, shouldTokenCategoryHaveUnits) {
|
|
|
17241
17450
|
return [];
|
|
17242
17451
|
}
|
|
17243
17452
|
function createFontCSS(fontsParsed, registerFontVariables) {
|
|
17244
|
-
if (!process.env.
|
|
17453
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17245
17454
|
var fontDeclarations = {};
|
|
17246
17455
|
if (!fontsParsed) return fontDeclarations;
|
|
17247
17456
|
var sortedFontKeys = Object.keys(fontsParsed).sort();
|
|
@@ -17275,7 +17484,7 @@ function createFontCSS(fontsParsed, registerFontVariables) {
|
|
|
17275
17484
|
}
|
|
17276
17485
|
function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
17277
17486
|
var defaultFontToken = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "$true";
|
|
17278
|
-
if (!process.env.
|
|
17487
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17279
17488
|
let declarationsToRuleSet2 = function(decs) {
|
|
17280
17489
|
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""} {${sep}${[...decs].join(`;${sep}`)}
|
|
17281
17490
|
}`;
|
|
@@ -17318,13 +17527,13 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
17318
17527
|
return [];
|
|
17319
17528
|
}
|
|
17320
17529
|
function createThemeCSS(dedupedThemes, configIn) {
|
|
17321
|
-
if (!process.env.
|
|
17530
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) return [];
|
|
17322
17531
|
return [];
|
|
17323
17532
|
}
|
|
17324
17533
|
function getCSS(themeConfig) {
|
|
17325
17534
|
arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
17326
17535
|
arguments.length > 2 && arguments[2];
|
|
17327
|
-
if (!process.env.
|
|
17536
|
+
if (!process.env.GUI_DID_OUTPUT_CSS && false);
|
|
17328
17537
|
return "";
|
|
17329
17538
|
}
|
|
17330
17539
|
var init_createDesignSystem_native = __esmMin((() => {
|
|
@@ -17359,7 +17568,7 @@ function parseFont(definition) {
|
|
|
17359
17568
|
return parsed;
|
|
17360
17569
|
}
|
|
17361
17570
|
function registerFontVariables(parsedFont) {
|
|
17362
|
-
if (!process.env.
|
|
17571
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17363
17572
|
var response = [];
|
|
17364
17573
|
for (var fkey in parsedFont) {
|
|
17365
17574
|
if (fkey === "face") continue;
|
|
@@ -17384,10 +17593,10 @@ var init_insertFont_native = __esmMin((() => {
|
|
|
17384
17593
|
init_registerCSSVariable_native();
|
|
17385
17594
|
}));
|
|
17386
17595
|
//#endregion
|
|
17387
|
-
//#region ../../core/web/dist/esm/
|
|
17388
|
-
var
|
|
17596
|
+
//#region ../../core/web/dist/esm/Gui.native.js
|
|
17597
|
+
var init_Gui_native = __esmMin((() => {}));
|
|
17389
17598
|
//#endregion
|
|
17390
|
-
//#region ../../core/web/dist/esm/
|
|
17599
|
+
//#region ../../core/web/dist/esm/createGui.native.js
|
|
17391
17600
|
function shouldTokenCategoryHaveUnits(category) {
|
|
17392
17601
|
return (/* @__PURE__ */ new Set([
|
|
17393
17602
|
"size",
|
|
@@ -17395,11 +17604,11 @@ function shouldTokenCategoryHaveUnits(category) {
|
|
|
17395
17604
|
"radius"
|
|
17396
17605
|
])).has(category);
|
|
17397
17606
|
}
|
|
17398
|
-
function
|
|
17607
|
+
function initializeGuiConfig(config) {
|
|
17399
17608
|
setConfig(config);
|
|
17400
17609
|
configureMedia(config);
|
|
17401
17610
|
}
|
|
17402
|
-
function
|
|
17611
|
+
function createGui$2(configIn) {
|
|
17403
17612
|
var _configIn_settings, _configIn_settings1;
|
|
17404
17613
|
var existingConfig = getConfigMaybe();
|
|
17405
17614
|
if (existingConfig) configIn = _objectSpread2(_objectSpread2({}, existingConfig), configIn);
|
|
@@ -17424,7 +17633,7 @@ function createHanzogui$2(configIn) {
|
|
|
17424
17633
|
var foundThemes;
|
|
17425
17634
|
if (configIn.themes) {
|
|
17426
17635
|
var noThemes = Object.keys(configIn.themes).length === 0;
|
|
17427
|
-
if (noThemes && !process.env.
|
|
17636
|
+
if (noThemes && !process.env.GUI_DID_OUTPUT_CSS) foundThemes = scanAllSheets(noThemes, tokensParsed);
|
|
17428
17637
|
}
|
|
17429
17638
|
var fontSizeTokens = null;
|
|
17430
17639
|
var fontsParsed;
|
|
@@ -17543,7 +17752,7 @@ function createHanzogui$2(configIn) {
|
|
|
17543
17752
|
specificTokens,
|
|
17544
17753
|
defaultFontToken
|
|
17545
17754
|
});
|
|
17546
|
-
|
|
17755
|
+
initializeGuiConfig(config);
|
|
17547
17756
|
return config;
|
|
17548
17757
|
}
|
|
17549
17758
|
function getThemesDeduped(themes, colorTokens) {
|
|
@@ -17583,7 +17792,7 @@ function getThemesDeduped(themes, colorTokens) {
|
|
|
17583
17792
|
return dedupedThemes;
|
|
17584
17793
|
}
|
|
17585
17794
|
var builtinShorthands;
|
|
17586
|
-
var
|
|
17795
|
+
var init_createGui_native = __esmMin((() => {
|
|
17587
17796
|
init_config_native();
|
|
17588
17797
|
init_createVariables_native();
|
|
17589
17798
|
init_defaultAnimationDriver_native();
|
|
@@ -17642,8 +17851,8 @@ var init_createHanzogui_native = __esmMin((() => {
|
|
|
17642
17851
|
//#endregion
|
|
17643
17852
|
//#region ../../core/web/dist/esm/createTokens.native.js
|
|
17644
17853
|
function createTokens(tokens) {
|
|
17645
|
-
var
|
|
17646
|
-
return createVariables(tokens, (
|
|
17854
|
+
var _process_env_GUI_TOKEN_PREFIX;
|
|
17855
|
+
return createVariables(tokens, (_process_env_GUI_TOKEN_PREFIX = process.env.GUI_TOKEN_PREFIX) !== null && _process_env_GUI_TOKEN_PREFIX !== void 0 ? _process_env_GUI_TOKEN_PREFIX : "t");
|
|
17647
17856
|
}
|
|
17648
17857
|
var init_createTokens_native = __esmMin((() => {
|
|
17649
17858
|
init_createVariables_native();
|
|
@@ -17969,11 +18178,11 @@ var init_Configuration_native = __esmMin((() => {
|
|
|
17969
18178
|
};
|
|
17970
18179
|
}));
|
|
17971
18180
|
//#endregion
|
|
17972
|
-
//#region ../../core/web/dist/esm/views/
|
|
17973
|
-
function
|
|
18181
|
+
//#region ../../core/web/dist/esm/views/GuiRoot.native.js
|
|
18182
|
+
function GuiRoot(props) {
|
|
17974
18183
|
return props.children;
|
|
17975
18184
|
}
|
|
17976
|
-
var
|
|
18185
|
+
var init_GuiRoot_native = __esmMin((() => {}));
|
|
17977
18186
|
//#endregion
|
|
17978
18187
|
//#region ../../core/web/dist/esm/views/FontLanguage.native.js
|
|
17979
18188
|
function FontLanguage(param) {
|
|
@@ -18013,7 +18222,7 @@ var init_ThemeProvider_native = __esmMin((() => {
|
|
|
18013
18222
|
};
|
|
18014
18223
|
}));
|
|
18015
18224
|
//#endregion
|
|
18016
|
-
//#region ../../core/web/dist/esm/views/
|
|
18225
|
+
//#region ../../core/web/dist/esm/views/GuiProvider.native.js
|
|
18017
18226
|
function firstThemeKey(config) {
|
|
18018
18227
|
if (config !== _cachedConfig) {
|
|
18019
18228
|
_cachedConfig = config;
|
|
@@ -18021,7 +18230,7 @@ function firstThemeKey(config) {
|
|
|
18021
18230
|
}
|
|
18022
18231
|
return _cachedFirstKey;
|
|
18023
18232
|
}
|
|
18024
|
-
function
|
|
18233
|
+
function GuiProvider$2(param) {
|
|
18025
18234
|
var { children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets } = param;
|
|
18026
18235
|
var defaultTheme = defaultThemeProp || firstThemeKey(config) || "light";
|
|
18027
18236
|
useIsomorphicLayoutEffect(function() {
|
|
@@ -18050,7 +18259,7 @@ function HanzoguiProvider$2(param) {
|
|
|
18050
18259
|
defaultTheme,
|
|
18051
18260
|
reset,
|
|
18052
18261
|
className,
|
|
18053
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18262
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiRoot, {
|
|
18054
18263
|
theme: defaultTheme,
|
|
18055
18264
|
isRootRoot: true,
|
|
18056
18265
|
children
|
|
@@ -18064,7 +18273,7 @@ function HanzoguiProvider$2(param) {
|
|
|
18064
18273
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [contents, false] });
|
|
18065
18274
|
}
|
|
18066
18275
|
var _cachedFirstKey, _cachedConfig;
|
|
18067
|
-
var
|
|
18276
|
+
var init_GuiProvider_native = __esmMin((() => {
|
|
18068
18277
|
init_index_native$7();
|
|
18069
18278
|
init_index_native$2();
|
|
18070
18279
|
init_config_native();
|
|
@@ -18072,7 +18281,7 @@ var init_HanzoguiProvider_native = __esmMin((() => {
|
|
|
18072
18281
|
init_insertStyleRule_native();
|
|
18073
18282
|
init_useMedia_native();
|
|
18074
18283
|
init_resolveAnimationDriver_native();
|
|
18075
|
-
|
|
18284
|
+
init_GuiRoot_native();
|
|
18076
18285
|
init_ThemeProvider_native();
|
|
18077
18286
|
}));
|
|
18078
18287
|
//#endregion
|
|
@@ -18151,8 +18360,8 @@ var init_index_native = __esmMin((() => {
|
|
|
18151
18360
|
init_getThemeCSSRules_native();
|
|
18152
18361
|
init_getVariantExtras_native();
|
|
18153
18362
|
init_insertStyleRule_native();
|
|
18154
|
-
|
|
18155
|
-
|
|
18363
|
+
init_isGuiComponent_native();
|
|
18364
|
+
init_isGuiElement_native();
|
|
18156
18365
|
init_matchMedia_native();
|
|
18157
18366
|
init_mergeProps_native();
|
|
18158
18367
|
init_mergeSlotStyleProps_native();
|
|
@@ -18171,14 +18380,14 @@ var init_index_native = __esmMin((() => {
|
|
|
18171
18380
|
init_createComponent_native();
|
|
18172
18381
|
init_createFont_native();
|
|
18173
18382
|
init_createShorthands_native();
|
|
18174
|
-
|
|
18383
|
+
init_createGui_native();
|
|
18175
18384
|
init_createTokens_native();
|
|
18176
18385
|
init_createVariable_native();
|
|
18177
18386
|
init_createVariables_native();
|
|
18178
18387
|
init_insertFont_native();
|
|
18179
18388
|
init_setupReactNative_native();
|
|
18180
18389
|
init_styled_native();
|
|
18181
|
-
|
|
18390
|
+
init_Gui_native();
|
|
18182
18391
|
init_GetRef_native();
|
|
18183
18392
|
init_config_native();
|
|
18184
18393
|
init_constants_native();
|
|
@@ -18189,10 +18398,10 @@ var init_index_native = __esmMin((() => {
|
|
|
18189
18398
|
init_useThemeName_native();
|
|
18190
18399
|
init_useThemeState_native();
|
|
18191
18400
|
init_Configuration_native();
|
|
18192
|
-
|
|
18401
|
+
init_GuiRoot_native();
|
|
18193
18402
|
init_FontLanguage_native();
|
|
18194
18403
|
init_Slot_native();
|
|
18195
|
-
|
|
18404
|
+
init_GuiProvider_native();
|
|
18196
18405
|
init_Text_native();
|
|
18197
18406
|
init_Theme_native();
|
|
18198
18407
|
init_ThemeProvider_native();
|
|
@@ -19058,15 +19267,15 @@ init_index_native();
|
|
|
19058
19267
|
init_index_native$7();
|
|
19059
19268
|
init_index_native$11();
|
|
19060
19269
|
init_index_native();
|
|
19061
|
-
var
|
|
19270
|
+
var GuiProvider$1 = function(props) {
|
|
19062
19271
|
useIsomorphicLayoutEffect(function() {
|
|
19063
19272
|
enable();
|
|
19064
19273
|
}, []);
|
|
19065
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
19274
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiProvider$2, _objectSpread2({}, props));
|
|
19066
19275
|
};
|
|
19067
|
-
var
|
|
19276
|
+
var createGui$1 = function(conf) {
|
|
19068
19277
|
if (conf.media) conf.media = createMedia(conf.media);
|
|
19069
|
-
return
|
|
19278
|
+
return createGui$2(conf);
|
|
19070
19279
|
};
|
|
19071
19280
|
var baseViews = getBaseViews();
|
|
19072
19281
|
setupHooks({
|
|
@@ -19454,7 +19663,7 @@ var SizableText = styledExport(Text$3, {
|
|
|
19454
19663
|
} },
|
|
19455
19664
|
size: getFontSized
|
|
19456
19665
|
},
|
|
19457
|
-
defaultVariants: { unstyled: process.env.
|
|
19666
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19458
19667
|
});
|
|
19459
19668
|
SizableText.staticConfig.variants.fontFamily = { "...": function(val, extras) {
|
|
19460
19669
|
if (val === "inherit") return { fontFamily: "inherit" };
|
|
@@ -19488,37 +19697,37 @@ var H1 = styledExport(Heading, {
|
|
|
19488
19697
|
name: "H1",
|
|
19489
19698
|
render: "h1",
|
|
19490
19699
|
variants: { unstyled: { false: { size: "$10" } } },
|
|
19491
|
-
defaultVariants: { unstyled: process.env.
|
|
19700
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19492
19701
|
});
|
|
19493
19702
|
var H2 = styledExport(Heading, {
|
|
19494
19703
|
name: "H2",
|
|
19495
19704
|
render: "h2",
|
|
19496
19705
|
variants: { unstyled: { false: { size: "$9" } } },
|
|
19497
|
-
defaultVariants: { unstyled: process.env.
|
|
19706
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19498
19707
|
});
|
|
19499
19708
|
var H3 = styledExport(Heading, {
|
|
19500
19709
|
name: "H3",
|
|
19501
19710
|
render: "h3",
|
|
19502
19711
|
variants: { unstyled: { false: { size: "$8" } } },
|
|
19503
|
-
defaultVariants: { unstyled: process.env.
|
|
19712
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19504
19713
|
});
|
|
19505
19714
|
var H4 = styledExport(Heading, {
|
|
19506
19715
|
name: "H4",
|
|
19507
19716
|
render: "h4",
|
|
19508
19717
|
variants: { unstyled: { false: { size: "$7" } } },
|
|
19509
|
-
defaultVariants: { unstyled: process.env.
|
|
19718
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19510
19719
|
});
|
|
19511
19720
|
var H5 = styledExport(Heading, {
|
|
19512
19721
|
name: "H5",
|
|
19513
19722
|
render: "h5",
|
|
19514
19723
|
variants: { unstyled: { false: { size: "$6" } } },
|
|
19515
|
-
defaultVariants: { unstyled: process.env.
|
|
19724
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19516
19725
|
});
|
|
19517
19726
|
var H6 = styledExport(Heading, {
|
|
19518
19727
|
name: "H6",
|
|
19519
19728
|
render: "h6",
|
|
19520
19729
|
variants: { unstyled: { false: { size: "$5" } } },
|
|
19521
|
-
defaultVariants: { unstyled: process.env.
|
|
19730
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19522
19731
|
});
|
|
19523
19732
|
//#endregion
|
|
19524
19733
|
//#region ../text/dist/esm/wrapChildrenInText.native.js
|
|
@@ -19772,7 +19981,7 @@ var AccordionTriggerFrame = styledExport(Collapsible.Trigger, {
|
|
|
19772
19981
|
focusStyle: { backgroundColor: "$backgroundFocus" },
|
|
19773
19982
|
pressStyle: { backgroundColor: "$backgroundPress" }
|
|
19774
19983
|
} } },
|
|
19775
|
-
defaultVariants: { unstyled: process.env.
|
|
19984
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19776
19985
|
});
|
|
19777
19986
|
var AccordionTrigger = AccordionTriggerFrame.styleable(function AccordionTrigger2(props, forwardedRef) {
|
|
19778
19987
|
var { __scopeAccordion } = props, triggerProps = _objectWithoutProperties(props, _excluded7$5);
|
|
@@ -19794,7 +20003,7 @@ var AccordionContentFrame = styledExport(Collapsible.Content, {
|
|
|
19794
20003
|
padding: "$true",
|
|
19795
20004
|
backgroundColor: "$background"
|
|
19796
20005
|
} } },
|
|
19797
|
-
defaultVariants: { unstyled: process.env.
|
|
20006
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19798
20007
|
});
|
|
19799
20008
|
var AccordionContent = AccordionContentFrame.styleable(function AccordionContent2(props, forwardedRef) {
|
|
19800
20009
|
var { __scopeAccordion } = props, contentProps = _objectWithoutProperties(props, _excluded8$5);
|
|
@@ -19848,7 +20057,7 @@ var ZIndexHardcodedContext = (0, react$1.createContext)(void 0);
|
|
|
19848
20057
|
var ZIndicesByContext = {};
|
|
19849
20058
|
var CurrentPortalZIndices = {};
|
|
19850
20059
|
var useStackedZIndex = function(props) {
|
|
19851
|
-
if (process.env.
|
|
20060
|
+
if (process.env.GUI_STACK_Z_INDEX_GLOBAL) {
|
|
19852
20061
|
var { stackZIndex, zIndex: zIndexProp } = props;
|
|
19853
20062
|
var id = (0, react$1.useId)();
|
|
19854
20063
|
var zIndex = (0, react$1.useMemo)(function() {
|
|
@@ -20326,7 +20535,7 @@ var AdaptParent = function(param) {
|
|
|
20326
20535
|
var AdaptContents = function(param) {
|
|
20327
20536
|
var { scope } = param, rest = _objectWithoutProperties(param, _excluded2$25);
|
|
20328
20537
|
var context = useAdaptContext(scope);
|
|
20329
|
-
if (!(context === null || context === void 0 ? void 0 : context.Contents)) throw new Error(`
|
|
20538
|
+
if (!(context === null || context === void 0 ? void 0 : context.Contents)) throw new Error(`gui.dev/docs/intro/errors#warning-002`);
|
|
20330
20539
|
return /* @__PURE__ */ react$1.default.createElement(context.Contents, _objectSpread2(_objectSpread2({}, rest), {}, { key: `stable` }));
|
|
20331
20540
|
};
|
|
20332
20541
|
AdaptContents.shouldForwardSpace = true;
|
|
@@ -20702,7 +20911,7 @@ var DialogPortalFrame = styledExport(YStack, {
|
|
|
20702
20911
|
zIndex: 1
|
|
20703
20912
|
}
|
|
20704
20913
|
} } },
|
|
20705
|
-
defaultVariants: { unstyled: process.env.
|
|
20914
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
20706
20915
|
});
|
|
20707
20916
|
var needsRepropagation$1 = needsPortalRepropagation();
|
|
20708
20917
|
var DialogPortalItem = function(param) {
|
|
@@ -20789,7 +20998,7 @@ var DialogOverlayFrame = styledExport(YStack, {
|
|
|
20789
20998
|
pointerEvents: "auto"
|
|
20790
20999
|
} }
|
|
20791
21000
|
},
|
|
20792
|
-
defaultVariants: { unstyled: process.env.
|
|
21001
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
20793
21002
|
});
|
|
20794
21003
|
var DialogOverlay = DialogOverlayFrame.styleable(function DialogOverlay2(param, forwardedRef) {
|
|
20795
21004
|
var { scope } = param, props = _objectWithoutProperties(param, _excluded3$16);
|
|
@@ -20825,7 +21034,7 @@ var DialogContentFrame = styledExport(ThemeableStack, {
|
|
|
20825
21034
|
},
|
|
20826
21035
|
defaultVariants: {
|
|
20827
21036
|
size: "$true",
|
|
20828
|
-
unstyled: process.env.
|
|
21037
|
+
unstyled: process.env.GUI_HEADLESS === "1"
|
|
20829
21038
|
}
|
|
20830
21039
|
});
|
|
20831
21040
|
var DialogContent = DialogContentFrame.styleable(function DialogContent2(param, forwardedRef) {
|
|
@@ -21143,7 +21352,7 @@ var AlertDialogInner = function(props) {
|
|
|
21143
21352
|
var buttons = [];
|
|
21144
21353
|
forEachChildDeep(react$1.Children.toArray(props.children), function(child) {
|
|
21145
21354
|
if (!/* @__PURE__ */ react$1.isValidElement(child)) return false;
|
|
21146
|
-
var name =
|
|
21355
|
+
var name = isGuiElement(child) ? child.type.staticConfig.componentName : child.type["displayName"];
|
|
21147
21356
|
switch (name) {
|
|
21148
21357
|
case TRIGGER_NAME$1:
|
|
21149
21358
|
triggerElement = /* @__PURE__ */ react$1.cloneElement(child, { __native: true });
|
|
@@ -21587,7 +21796,7 @@ var Frame$1 = styledExport(View$1, {
|
|
|
21587
21796
|
outlineWidth: 2
|
|
21588
21797
|
}
|
|
21589
21798
|
} },
|
|
21590
|
-
variant: { outlined: process.env.
|
|
21799
|
+
variant: { outlined: process.env.GUI_HEADLESS === "1" ? {} : {
|
|
21591
21800
|
backgroundColor: "transparent",
|
|
21592
21801
|
borderWidth: 1,
|
|
21593
21802
|
borderColor: "$borderColor",
|
|
@@ -21623,7 +21832,7 @@ var Frame$1 = styledExport(View$1, {
|
|
|
21623
21832
|
"aria-disabled": true
|
|
21624
21833
|
} }
|
|
21625
21834
|
},
|
|
21626
|
-
defaultVariants: { unstyled: process.env.
|
|
21835
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21627
21836
|
});
|
|
21628
21837
|
var Text$1 = styledExport(SizableText, {
|
|
21629
21838
|
context: context$2,
|
|
@@ -21635,7 +21844,7 @@ var Text$1 = styledExport(SizableText, {
|
|
|
21635
21844
|
ellipsis: true,
|
|
21636
21845
|
color: "$color"
|
|
21637
21846
|
} } },
|
|
21638
|
-
defaultVariants: { unstyled: process.env.
|
|
21847
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21639
21848
|
});
|
|
21640
21849
|
var Icon = function(props) {
|
|
21641
21850
|
var { children, scaleIcon = 1, size } = props;
|
|
@@ -21674,7 +21883,7 @@ var Button = withStaticProperties(Frame$1.styleable(function(propsIn, ref) {
|
|
|
21674
21883
|
});
|
|
21675
21884
|
});
|
|
21676
21885
|
var wrappedChildren = wrapChildrenInText(Text$1, { children }, {
|
|
21677
|
-
unstyled: process.env.
|
|
21886
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
21678
21887
|
size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size
|
|
21679
21888
|
});
|
|
21680
21889
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonNestingContext.Provider, {
|
|
@@ -21713,7 +21922,7 @@ var CardFrame = styledExport(YStack, {
|
|
|
21713
21922
|
return { borderRadius: (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : val };
|
|
21714
21923
|
} }
|
|
21715
21924
|
},
|
|
21716
|
-
defaultVariants: { unstyled: process.env.
|
|
21925
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21717
21926
|
});
|
|
21718
21927
|
var CardHeader = styledExport(YStack, {
|
|
21719
21928
|
name: "CardHeader",
|
|
@@ -21730,7 +21939,7 @@ var CardHeader = styledExport(YStack, {
|
|
|
21730
21939
|
return { padding: (_tokens_space_val = tokens.space[val]) !== null && _tokens_space_val !== void 0 ? _tokens_space_val : val };
|
|
21731
21940
|
} }
|
|
21732
21941
|
},
|
|
21733
|
-
defaultVariants: { unstyled: process.env.
|
|
21942
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21734
21943
|
});
|
|
21735
21944
|
var CardFooter = styledExport(CardHeader, {
|
|
21736
21945
|
name: "CardFooter",
|
|
@@ -21740,7 +21949,7 @@ var CardFooter = styledExport(CardHeader, {
|
|
|
21740
21949
|
marginTop: "auto",
|
|
21741
21950
|
marginBottom: 0
|
|
21742
21951
|
} } },
|
|
21743
|
-
defaultVariants: { unstyled: process.env.
|
|
21952
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21744
21953
|
});
|
|
21745
21954
|
var CardBackground = styledExport(YStack, {
|
|
21746
21955
|
name: "CardBackground",
|
|
@@ -21751,7 +21960,7 @@ var CardBackground = styledExport(YStack, {
|
|
|
21751
21960
|
pointerEvents: "none",
|
|
21752
21961
|
padding: 0
|
|
21753
21962
|
} } },
|
|
21754
|
-
defaultVariants: { unstyled: process.env.
|
|
21963
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21755
21964
|
});
|
|
21756
21965
|
var Card = withStaticProperties(CardFrame, {
|
|
21757
21966
|
Header: CardHeader,
|
|
@@ -21763,7 +21972,7 @@ var Card = withStaticProperties(CardFrame, {
|
|
|
21763
21972
|
var CheckboxStyledContext = createStyledContext({
|
|
21764
21973
|
size: "$true",
|
|
21765
21974
|
scaleIcon: 1,
|
|
21766
|
-
unstyled: process.env.
|
|
21975
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
21767
21976
|
active: false,
|
|
21768
21977
|
disabled: false
|
|
21769
21978
|
});
|
|
@@ -21773,7 +21982,7 @@ var CheckboxIndicatorFrame = styledExport(YStack, {
|
|
|
21773
21982
|
name: "CheckboxIndicator",
|
|
21774
21983
|
context: CheckboxStyledContext,
|
|
21775
21984
|
variants: { unstyled: { false: {} } },
|
|
21776
|
-
defaultVariants: { unstyled: process.env.
|
|
21985
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21777
21986
|
}, { accept: { activeStyle: "style" } });
|
|
21778
21987
|
var CheckboxFrame = styledExport(YStack, {
|
|
21779
21988
|
name: "Checkbox",
|
|
@@ -21817,7 +22026,7 @@ var CheckboxFrame = styledExport(YStack, {
|
|
|
21817
22026
|
return { borderRadius: getVariableValue(getSize(val)) / 8 };
|
|
21818
22027
|
} }
|
|
21819
22028
|
},
|
|
21820
|
-
defaultVariants: { unstyled: process.env.
|
|
22029
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21821
22030
|
}, { accept: { activeStyle: "style" } });
|
|
21822
22031
|
//#endregion
|
|
21823
22032
|
//#region ../focusable/dist/esm/registerFocusable.native.js
|
|
@@ -21867,7 +22076,7 @@ var LabelFrame = styledExport(SizableText, {
|
|
|
21867
22076
|
return _objectSpread2(_objectSpread2({}, getFontSized(val, extras)), {}, { lineHeight: buttonHeight ? extras.tokens.size[buttonHeight] : void 0 });
|
|
21868
22077
|
} }
|
|
21869
22078
|
},
|
|
21870
|
-
defaultVariants: { unstyled: process.env.
|
|
22079
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21871
22080
|
});
|
|
21872
22081
|
var Label = LabelFrame.styleable(function Label2(props, forwardedRef) {
|
|
21873
22082
|
var { htmlFor, id: idProp } = props, labelProps = _objectWithoutProperties(props, _excluded$38);
|
|
@@ -22225,7 +22434,7 @@ var GroupFrame = styledExport(YStack, {
|
|
|
22225
22434
|
return { borderRadius: (_ref = (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : val) !== null && _ref !== void 0 ? _ref : tokens.radius["$true"] };
|
|
22226
22435
|
}
|
|
22227
22436
|
},
|
|
22228
|
-
defaultVariants: { unstyled: process.env.
|
|
22437
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22229
22438
|
});
|
|
22230
22439
|
function createGroup(verticalDefault) {
|
|
22231
22440
|
return withStaticProperties(GroupFrame.styleable(function(props, ref) {
|
|
@@ -22373,7 +22582,7 @@ var ListItemFrame = styledExport(View$1, {
|
|
|
22373
22582
|
borderColor: "$borderColorPress"
|
|
22374
22583
|
}
|
|
22375
22584
|
} },
|
|
22376
|
-
variant: { outlined: process.env.
|
|
22585
|
+
variant: { outlined: process.env.GUI_HEADLESS === "1" ? {} : {
|
|
22377
22586
|
backgroundColor: "transparent",
|
|
22378
22587
|
borderWidth: 1,
|
|
22379
22588
|
borderColor: "$borderColor",
|
|
@@ -22400,7 +22609,7 @@ var ListItemFrame = styledExport(View$1, {
|
|
|
22400
22609
|
pointerEvents: "none"
|
|
22401
22610
|
} }
|
|
22402
22611
|
},
|
|
22403
|
-
defaultVariants: { unstyled: process.env.
|
|
22612
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22404
22613
|
});
|
|
22405
22614
|
var ListItemText = styledExport(SizableText, {
|
|
22406
22615
|
context: context$1,
|
|
@@ -22413,7 +22622,7 @@ var ListItemText = styledExport(SizableText, {
|
|
|
22413
22622
|
ellipsis: true,
|
|
22414
22623
|
cursor: "inherit"
|
|
22415
22624
|
} } },
|
|
22416
|
-
defaultVariants: { unstyled: process.env.
|
|
22625
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22417
22626
|
});
|
|
22418
22627
|
var ListItemSubtitle = styledExport(ListItemText, {
|
|
22419
22628
|
name: "ListItemSubtitle",
|
|
@@ -22431,13 +22640,13 @@ var ListItemSubtitle = styledExport(ListItemText, {
|
|
|
22431
22640
|
}).key, extras);
|
|
22432
22641
|
} }
|
|
22433
22642
|
},
|
|
22434
|
-
defaultVariants: { unstyled: process.env.
|
|
22643
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22435
22644
|
});
|
|
22436
22645
|
var ListItemTitle = styledExport(ListItemText, {
|
|
22437
22646
|
name: "ListItemTitle",
|
|
22438
22647
|
context: context$1,
|
|
22439
22648
|
variants: { unstyled: { false: {} } },
|
|
22440
|
-
defaultVariants: { unstyled: process.env.
|
|
22649
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22441
22650
|
});
|
|
22442
22651
|
var ListItemIcon = function(props) {
|
|
22443
22652
|
var { children, size, scaleIcon = 1 } = props;
|
|
@@ -22466,7 +22675,7 @@ var ListItem2 = withStaticProperties(ListItemFrame.styleable(function ListItem(p
|
|
|
22466
22675
|
});
|
|
22467
22676
|
});
|
|
22468
22677
|
var wrappedChildren = wrapChildrenInText(ListItemText, { children }, propsIn.unstyled !== true ? {
|
|
22469
|
-
unstyled: process.env.
|
|
22678
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
22470
22679
|
fontSize: propsIn.size
|
|
22471
22680
|
} : void 0);
|
|
22472
22681
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ListItemFrame, _objectSpread2(_objectSpread2({ ref }, rest), {}, { children: [
|
|
@@ -22927,7 +23136,7 @@ var flip$1 = function(options) {
|
|
|
22927
23136
|
}
|
|
22928
23137
|
};
|
|
22929
23138
|
};
|
|
22930
|
-
var originSides =
|
|
23139
|
+
var originSides = /*#__PURE__*/ new Set(["left", "top"]);
|
|
22931
23140
|
function convertValueToCoords(_x6, _x7) {
|
|
22932
23141
|
return _convertValueToCoords.apply(this, arguments);
|
|
22933
23142
|
}
|
|
@@ -23501,7 +23710,7 @@ var setupOptions = {};
|
|
|
23501
23710
|
function setupPopper(options) {
|
|
23502
23711
|
Object.assign(setupOptions, options);
|
|
23503
23712
|
}
|
|
23504
|
-
function
|
|
23713
|
+
function guiAutoUpdate(reference, floating, update) {
|
|
23505
23714
|
update();
|
|
23506
23715
|
var rafId = requestAnimationFrame(function() {
|
|
23507
23716
|
update();
|
|
@@ -23576,7 +23785,7 @@ function Popper(props) {
|
|
|
23576
23785
|
strategy,
|
|
23577
23786
|
placement,
|
|
23578
23787
|
sameScrollView: false,
|
|
23579
|
-
whileElementsMounted: !isOpen ? void 0 :
|
|
23788
|
+
whileElementsMounted: !isOpen ? void 0 : guiAutoUpdate,
|
|
23580
23789
|
platform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? _objectSpread2(_objectSpread2({}, null), {}, { isRTL(element) {
|
|
23581
23790
|
return false;
|
|
23582
23791
|
} }) : null,
|
|
@@ -23794,7 +24003,7 @@ var PopperArrowFrame = styledExport(YStack, {
|
|
|
23794
24003
|
backgroundColor: "$background",
|
|
23795
24004
|
position: "relative"
|
|
23796
24005
|
} } },
|
|
23797
|
-
defaultVariants: { unstyled: process.env.
|
|
24006
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23798
24007
|
});
|
|
23799
24008
|
var PopperArrowOuterFrame = styledExport(YStack, {
|
|
23800
24009
|
name: "PopperArrowOuter",
|
|
@@ -23806,7 +24015,7 @@ var PopperArrowOuterFrame = styledExport(YStack, {
|
|
|
23806
24015
|
alignItems: "center",
|
|
23807
24016
|
justifyContent: "center"
|
|
23808
24017
|
} } },
|
|
23809
|
-
defaultVariants: { unstyled: process.env.
|
|
24018
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23810
24019
|
});
|
|
23811
24020
|
var opposites = {
|
|
23812
24021
|
top: "bottom",
|
|
@@ -23909,7 +24118,7 @@ var MenuGroup = styledExport(View$1, {
|
|
|
23909
24118
|
overflow: "hidden",
|
|
23910
24119
|
backgroundColor: "$background"
|
|
23911
24120
|
} } },
|
|
23912
|
-
defaultVariants: { unstyled: process.env.
|
|
24121
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23913
24122
|
});
|
|
23914
24123
|
var MenuLabel = styledExport(SizableText, {
|
|
23915
24124
|
name: "MenuLabel",
|
|
@@ -23917,7 +24126,7 @@ var MenuLabel = styledExport(SizableText, {
|
|
|
23917
24126
|
cursor: "default",
|
|
23918
24127
|
color: "$color"
|
|
23919
24128
|
} } },
|
|
23920
|
-
defaultVariants: { unstyled: process.env.
|
|
24129
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23921
24130
|
});
|
|
23922
24131
|
var MenuSeparator = styledExport(View$1, {
|
|
23923
24132
|
name: "MenuSeparator",
|
|
@@ -23932,7 +24141,7 @@ var MenuSeparator = styledExport(View$1, {
|
|
|
23932
24141
|
marginHorizontal: 10,
|
|
23933
24142
|
backgroundColor: "$borderColor"
|
|
23934
24143
|
} } },
|
|
23935
|
-
defaultVariants: { unstyled: process.env.
|
|
24144
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23936
24145
|
});
|
|
23937
24146
|
var MenuPredefined = {
|
|
23938
24147
|
MenuIcon: styledExport(View$1, {
|
|
@@ -23944,7 +24153,7 @@ var MenuPredefined = {
|
|
|
23944
24153
|
justifyContent: "center",
|
|
23945
24154
|
marginLeft: "auto"
|
|
23946
24155
|
} } },
|
|
23947
|
-
defaultVariants: { unstyled: process.env.
|
|
24156
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23948
24157
|
}),
|
|
23949
24158
|
MenuImage: styledExport(Image, { name: "MenuImage" }),
|
|
23950
24159
|
MenuIndicator: styledExport(View$1, {
|
|
@@ -23954,7 +24163,7 @@ var MenuPredefined = {
|
|
|
23954
24163
|
alignItems: "center",
|
|
23955
24164
|
marginLeft: "auto"
|
|
23956
24165
|
} } },
|
|
23957
|
-
defaultVariants: { unstyled: process.env.
|
|
24166
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23958
24167
|
}),
|
|
23959
24168
|
MenuItem: styledExport(View$1, {
|
|
23960
24169
|
name: "MenuItem",
|
|
@@ -23969,7 +24178,7 @@ var MenuPredefined = {
|
|
|
23969
24178
|
focusStyle: { backgroundColor: "$backgroundHover" },
|
|
23970
24179
|
pressStyle: { backgroundColor: "$backgroundPress" }
|
|
23971
24180
|
} } },
|
|
23972
|
-
defaultVariants: { unstyled: process.env.
|
|
24181
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23973
24182
|
}),
|
|
23974
24183
|
Title: styledExport(SizableText, {
|
|
23975
24184
|
name: "MenuTitle",
|
|
@@ -23979,7 +24188,7 @@ var MenuPredefined = {
|
|
|
23979
24188
|
flexGrow: 1,
|
|
23980
24189
|
flexShrink: 1
|
|
23981
24190
|
} } },
|
|
23982
|
-
defaultVariants: { unstyled: process.env.
|
|
24191
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23983
24192
|
}),
|
|
23984
24193
|
SubTitle: styledExport(SizableText, {
|
|
23985
24194
|
name: "MenuSubTitle",
|
|
@@ -23987,7 +24196,7 @@ var MenuPredefined = {
|
|
|
23987
24196
|
cursor: "default",
|
|
23988
24197
|
color: "$colorFaint"
|
|
23989
24198
|
} } },
|
|
23990
|
-
defaultVariants: { unstyled: process.env.
|
|
24199
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23991
24200
|
}),
|
|
23992
24201
|
MenuGroup,
|
|
23993
24202
|
MenuSeparator,
|
|
@@ -24241,7 +24450,7 @@ function createBaseMenu(param) {
|
|
|
24241
24450
|
}));
|
|
24242
24451
|
});
|
|
24243
24452
|
var MenuContentImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
24244
|
-
var { scope = MENU_CONTEXT, loop = false, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEntryFocus, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, disableOutsideScroll, disableDismissOnScroll = false, unstyled = process.env.
|
|
24453
|
+
var { scope = MENU_CONTEXT, loop = false, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEntryFocus, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, disableOutsideScroll, disableDismissOnScroll = false, unstyled = process.env.GUI_HEADLESS === "1" } = props, contentProps = _objectWithoutProperties(props, _excluded3$11);
|
|
24245
24454
|
var context = useMenuContext(scope);
|
|
24246
24455
|
var rootContext = useMenuRootContext(scope);
|
|
24247
24456
|
useCollection$1(scope);
|
|
@@ -24285,7 +24494,7 @@ function createBaseMenu(param) {
|
|
|
24285
24494
|
}), {}, {
|
|
24286
24495
|
"aria-orientation": "vertical",
|
|
24287
24496
|
"data-state": getOpenState(context.open),
|
|
24288
|
-
"data-
|
|
24497
|
+
"data-gui-menu-content": "",
|
|
24289
24498
|
dir: rootContext.dir,
|
|
24290
24499
|
scope: scope || MENU_CONTEXT
|
|
24291
24500
|
}, contentProps), {}, {
|
|
@@ -24318,7 +24527,7 @@ function createBaseMenu(param) {
|
|
|
24318
24527
|
trapped: trapFocus,
|
|
24319
24528
|
onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, function(event) {
|
|
24320
24529
|
event.preventDefault();
|
|
24321
|
-
var content2 = document.querySelector("[data-
|
|
24530
|
+
var content2 = document.querySelector("[data-gui-menu-content]");
|
|
24322
24531
|
content2 === null || content2 === void 0 || content2.focus({ preventScroll: true });
|
|
24323
24532
|
}),
|
|
24324
24533
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
@@ -24380,7 +24589,7 @@ function createBaseMenu(param) {
|
|
|
24380
24589
|
}, {}), {}, { children: content }));
|
|
24381
24590
|
});
|
|
24382
24591
|
var MenuItemImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
24383
|
-
var { scope = MENU_CONTEXT, disabled = false, textValue, unstyled = process.env.
|
|
24592
|
+
var { scope = MENU_CONTEXT, disabled = false, textValue, unstyled = process.env.GUI_HEADLESS === "1" } = props, itemProps = _objectWithoutProperties(props, _excluded5$7);
|
|
24384
24593
|
var contentContext = useMenuContentContext(scope);
|
|
24385
24594
|
var composedRefs = useComposedRefs(forwardedRef, react$1.useRef(null));
|
|
24386
24595
|
var [isFocused, setIsFocused] = react$1.useState(false);
|
|
@@ -24402,6 +24611,17 @@ function createBaseMenu(param) {
|
|
|
24402
24611
|
"data-disabled": disabled ? "" : void 0
|
|
24403
24612
|
}, itemProps), {}, {
|
|
24404
24613
|
ref: composedRefs,
|
|
24614
|
+
/**
|
|
24615
|
+
* We focus items on `pointerMove` to achieve the following:
|
|
24616
|
+
*
|
|
24617
|
+
* - Mouse over an item (it focuses)
|
|
24618
|
+
* - Leave mouse where it is and use keyboard to focus a different item
|
|
24619
|
+
* - Wiggle mouse without it leaving previously focused item
|
|
24620
|
+
* - Previously focused item should re-focus
|
|
24621
|
+
*
|
|
24622
|
+
* If we used `mouseOver`/`mouseEnter` it would not re-focus when the mouse
|
|
24623
|
+
* wiggles. This is to match native menu implementation.
|
|
24624
|
+
*/
|
|
24405
24625
|
onPointerMove: composeEventHandlers(props.onPointerMove, function(event) {
|
|
24406
24626
|
if (event.pointerType !== "mouse") return;
|
|
24407
24627
|
if (disabled) contentContext.onItemLeave(event);
|
|
@@ -24519,7 +24739,7 @@ function createBaseMenu(param) {
|
|
|
24519
24739
|
});
|
|
24520
24740
|
MenuItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
24521
24741
|
var MenuArrow = /* @__PURE__ */ react$1.forwardRef(function MenuArrow2(props, forwardedRef) {
|
|
24522
|
-
var { scope = MENU_CONTEXT, unstyled = process.env.
|
|
24742
|
+
var { scope = MENU_CONTEXT, unstyled = process.env.GUI_HEADLESS === "1" } = props, rest = _objectWithoutProperties(props, _excluded12$1);
|
|
24523
24743
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopperArrow, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
24524
24744
|
scope,
|
|
24525
24745
|
componentName: "PopperArrow",
|
|
@@ -24733,7 +24953,7 @@ function createBaseMenu(param) {
|
|
|
24733
24953
|
if (rootContext.isUsingKeyboardRef.current) {
|
|
24734
24954
|
var _root_querySelector, _this;
|
|
24735
24955
|
var root = ref.current;
|
|
24736
|
-
(_this = (root === null || root === void 0 ? void 0 : (_root_querySelector = root.querySelector) === null || _root_querySelector === void 0 ? void 0 : _root_querySelector.call(root, "[data-
|
|
24956
|
+
(_this = (root === null || root === void 0 ? void 0 : (_root_querySelector = root.querySelector) === null || _root_querySelector === void 0 ? void 0 : _root_querySelector.call(root, "[data-gui-menu-content]")) || root) === null || _this === void 0 || _this.focus({ preventScroll: true });
|
|
24737
24957
|
}
|
|
24738
24958
|
event.preventDefault();
|
|
24739
24959
|
},
|
|
@@ -25423,7 +25643,7 @@ function createNonNativeMenu(params) {
|
|
|
25423
25643
|
alignSelf: "stretch",
|
|
25424
25644
|
showsHorizontalScrollIndicator: false,
|
|
25425
25645
|
showsVerticalScrollIndicator: false,
|
|
25426
|
-
"$platform-web": { maxHeight: "var(--
|
|
25646
|
+
"$platform-web": { maxHeight: "var(--gui-menu-content-available-height)" }
|
|
25427
25647
|
});
|
|
25428
25648
|
var Group = Menu.Group;
|
|
25429
25649
|
var Label = Menu.Label;
|
|
@@ -26586,7 +26806,7 @@ var ProgressIndicatorFrame = styledExport(YStack, {
|
|
|
26586
26806
|
width: "100%",
|
|
26587
26807
|
backgroundColor: "$background"
|
|
26588
26808
|
} } },
|
|
26589
|
-
defaultVariants: { unstyled: process.env.
|
|
26809
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26590
26810
|
});
|
|
26591
26811
|
var ProgressIndicator = ProgressIndicatorFrame.styleable(function ProgressIndicator2(props, forwardedRef) {
|
|
26592
26812
|
var { __scopeProgress, transition } = props, indicatorProps = _objectWithoutProperties(props, _excluded$24);
|
|
@@ -26641,7 +26861,7 @@ var ProgressFrame = styledExport(YStack, {
|
|
|
26641
26861
|
};
|
|
26642
26862
|
} }
|
|
26643
26863
|
},
|
|
26644
|
-
defaultVariants: { unstyled: process.env.
|
|
26864
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26645
26865
|
});
|
|
26646
26866
|
var Progress = withStaticProperties(ProgressFrame.styleable(function Progress2(props, forwardedRef) {
|
|
26647
26867
|
var { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = "$true" } = props, progressProps = _objectWithoutProperties(props, _excluded2$10);
|
|
@@ -26728,7 +26948,7 @@ var RadioGroupItemFrame = styledExport(YStack, {
|
|
|
26728
26948
|
};
|
|
26729
26949
|
} }
|
|
26730
26950
|
},
|
|
26731
|
-
defaultVariants: { unstyled: process.env.
|
|
26951
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26732
26952
|
});
|
|
26733
26953
|
var RadioGroupIndicatorFrame = styledExport(YStack, {
|
|
26734
26954
|
name: "RadioGroupIndicator",
|
|
@@ -26739,7 +26959,7 @@ var RadioGroupIndicatorFrame = styledExport(YStack, {
|
|
|
26739
26959
|
backgroundColor: "$color",
|
|
26740
26960
|
pressTheme: true
|
|
26741
26961
|
} } },
|
|
26742
|
-
defaultVariants: { unstyled: process.env.
|
|
26962
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26743
26963
|
});
|
|
26744
26964
|
var RadioGroupFrame = styledExport(YStack, {
|
|
26745
26965
|
name: "RadioGroup",
|
|
@@ -27048,7 +27268,7 @@ var Separator = styledExport(View, {
|
|
|
27048
27268
|
borderRightWidth: 1
|
|
27049
27269
|
} }
|
|
27050
27270
|
},
|
|
27051
|
-
defaultVariants: { unstyled: process.env.
|
|
27271
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27052
27272
|
});
|
|
27053
27273
|
//#endregion
|
|
27054
27274
|
//#region ../select/dist/esm/context.native.js
|
|
@@ -27216,7 +27436,7 @@ var SelectItemTextFrame = styledExport(SizableText, {
|
|
|
27216
27436
|
color: "$color",
|
|
27217
27437
|
ellipsis: true
|
|
27218
27438
|
} } },
|
|
27219
|
-
defaultVariants: { unstyled: process.env.
|
|
27439
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27220
27440
|
});
|
|
27221
27441
|
var SelectItemText = SelectItemTextFrame.styleable(function SelectItemText2(props, forwardedRef) {
|
|
27222
27442
|
var { scope, className } = props, itemTextProps = _objectWithoutProperties(props, _excluded$19);
|
|
@@ -27393,7 +27613,7 @@ var SelectIndicatorFrame = styledExport(YStack, {
|
|
|
27393
27613
|
backgroundColor: "$background",
|
|
27394
27614
|
borderRadius: 0
|
|
27395
27615
|
} } },
|
|
27396
|
-
defaultVariants: { unstyled: process.env.
|
|
27616
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27397
27617
|
});
|
|
27398
27618
|
var SelectIndicator = SelectIndicatorFrame.styleable(function SelectIndicator2(param, forwardedRef) {
|
|
27399
27619
|
var { scope } = param, props = _objectWithoutProperties(param, _excluded3$5);
|
|
@@ -27464,7 +27684,7 @@ var NativeSelectFrame = styledExport(YStack, {
|
|
|
27464
27684
|
},
|
|
27465
27685
|
defaultVariants: {
|
|
27466
27686
|
size: "$2",
|
|
27467
|
-
unstyled: process.env.
|
|
27687
|
+
unstyled: process.env.GUI_HEADLESS === "1" ? true : false
|
|
27468
27688
|
}
|
|
27469
27689
|
});
|
|
27470
27690
|
var SelectGroup = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
@@ -27523,7 +27743,7 @@ var SelectLabelFrame = styledExport(SizableText, {
|
|
|
27523
27743
|
};
|
|
27524
27744
|
} }
|
|
27525
27745
|
},
|
|
27526
|
-
defaultVariants: { unstyled: process.env.
|
|
27746
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27527
27747
|
});
|
|
27528
27748
|
var SelectLabel = SelectLabelFrame.styleable(function(props, forwardedRef) {
|
|
27529
27749
|
var { scope } = props, labelProps = _objectWithoutProperties(props, _excluded5$2);
|
|
@@ -29142,7 +29362,7 @@ var Handle = styledExport(XStack, {
|
|
|
29142
29362
|
hoverStyle: { opacity: .7 }
|
|
29143
29363
|
} }
|
|
29144
29364
|
},
|
|
29145
|
-
defaultVariants: { unstyled: process.env.
|
|
29365
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29146
29366
|
});
|
|
29147
29367
|
var Overlay = styledExport(YStack, {
|
|
29148
29368
|
name: SHEET_OVERLAY_NAME,
|
|
@@ -29159,7 +29379,7 @@ var Overlay = styledExport(YStack, {
|
|
|
29159
29379
|
pointerEvents: "auto"
|
|
29160
29380
|
} }
|
|
29161
29381
|
},
|
|
29162
|
-
defaultVariants: { unstyled: process.env.
|
|
29382
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29163
29383
|
});
|
|
29164
29384
|
var Frame = styledExport(YStack, {
|
|
29165
29385
|
name: SHEET_NAME,
|
|
@@ -29172,7 +29392,7 @@ var Frame = styledExport(YStack, {
|
|
|
29172
29392
|
maxHeight: "100%",
|
|
29173
29393
|
overflow: "hidden"
|
|
29174
29394
|
} } },
|
|
29175
|
-
defaultVariants: { unstyled: process.env.
|
|
29395
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29176
29396
|
});
|
|
29177
29397
|
var Sheet = createSheet({
|
|
29178
29398
|
Frame,
|
|
@@ -29541,7 +29761,7 @@ var SliderTrackFrame = styledExport(SliderFrame, {
|
|
|
29541
29761
|
borderRadius: 1e5,
|
|
29542
29762
|
overflow: "hidden"
|
|
29543
29763
|
} } },
|
|
29544
|
-
defaultVariants: { unstyled: process.env.
|
|
29764
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29545
29765
|
});
|
|
29546
29766
|
var SliderTrack = /* @__PURE__ */ react$1.forwardRef(function SliderTrack2(props, forwardedRef) {
|
|
29547
29767
|
var { __scopeSlider } = props, trackProps = _objectWithoutProperties(props, _excluded3$3);
|
|
@@ -29561,7 +29781,7 @@ var SliderActiveFrame = styledExport(SliderFrame, {
|
|
|
29561
29781
|
backgroundColor: "$background",
|
|
29562
29782
|
borderRadius: 1e5
|
|
29563
29783
|
} } },
|
|
29564
|
-
defaultVariants: { unstyled: process.env.
|
|
29784
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29565
29785
|
});
|
|
29566
29786
|
var SliderActive = /* @__PURE__ */ react$1.forwardRef(function SliderActive2(props, forwardedRef) {
|
|
29567
29787
|
var { __scopeSlider } = props, rangeProps = _objectWithoutProperties(props, _excluded4$2);
|
|
@@ -29631,7 +29851,7 @@ var SliderThumbFrame = styledExport(ThemeableStack, {
|
|
|
29631
29851
|
}
|
|
29632
29852
|
} }
|
|
29633
29853
|
},
|
|
29634
|
-
defaultVariants: { unstyled: process.env.
|
|
29854
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29635
29855
|
});
|
|
29636
29856
|
var SliderThumb = SliderThumbFrame.styleable(function SliderThumb2(props, forwardedRef) {
|
|
29637
29857
|
var { __scopeSlider, index = 0, circular, size: sizeProp } = props, thumbProps = _objectWithoutProperties(props, _excluded5$1);
|
|
@@ -29717,11 +29937,10 @@ var Slider = withStaticProperties(/* @__PURE__ */ react$1.forwardRef(function(pr
|
|
|
29717
29937
|
defaultProp: defaultValue,
|
|
29718
29938
|
transition: true,
|
|
29719
29939
|
onChange: function(value2) {
|
|
29720
|
-
|
|
29940
|
+
valueIndexToChangeRef.current;
|
|
29721
29941
|
onValueChange(value2);
|
|
29722
29942
|
}
|
|
29723
29943
|
});
|
|
29724
|
-
function updateThumbFocus(focusIndex) {}
|
|
29725
29944
|
function handleSlideMove(value2, event) {
|
|
29726
29945
|
updateValues(value2, valueIndexToChangeRef.current);
|
|
29727
29946
|
onSlideMove === null || onSlideMove === void 0 || onSlideMove(event, value2);
|
|
@@ -29810,7 +30029,7 @@ var SwitchStyledContext = createStyledContext({
|
|
|
29810
30029
|
disabled: false,
|
|
29811
30030
|
frameWidth: void 0,
|
|
29812
30031
|
size: void 0,
|
|
29813
|
-
unstyled: process.env.
|
|
30032
|
+
unstyled: process.env.GUI_HEADLESS === "1"
|
|
29814
30033
|
});
|
|
29815
30034
|
//#endregion
|
|
29816
30035
|
//#region ../switch/dist/esm/Switch.native.js
|
|
@@ -29830,7 +30049,7 @@ var SwitchThumb = styledExport(YStack, {
|
|
|
29830
30049
|
};
|
|
29831
30050
|
} }
|
|
29832
30051
|
},
|
|
29833
|
-
defaultVariants: { unstyled: process.env.
|
|
30052
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29834
30053
|
}, { accept: { activeStyle: "style" } });
|
|
29835
30054
|
var getSwitchHeight = function(val) {
|
|
29836
30055
|
return Math.round(getVariableValue(getSize(val)) * .65);
|
|
@@ -29863,7 +30082,7 @@ var SwitchFrame = styledExport(YStack, {
|
|
|
29863
30082
|
};
|
|
29864
30083
|
} }
|
|
29865
30084
|
},
|
|
29866
|
-
defaultVariants: { unstyled: process.env.
|
|
30085
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29867
30086
|
}, { accept: { activeStyle: "style" } });
|
|
29868
30087
|
//#endregion
|
|
29869
30088
|
//#region ../switch/dist/esm/useSwitchNative.native.js
|
|
@@ -29920,7 +30139,7 @@ function createSwitch(createProps) {
|
|
|
29920
30139
|
var { size: sizeProp, unstyled: unstyledProp, activeStyle } = props, thumbProps = _objectWithoutProperties(props, _excluded$12);
|
|
29921
30140
|
var { unstyled: unstyledContext, size: sizeContext, active, disabled, frameWidth = 0 } = SwitchStyledContext.useStyledContext();
|
|
29922
30141
|
var _ref;
|
|
29923
|
-
var unstyled = process.env.
|
|
30142
|
+
var unstyled = process.env.GUI_HEADLESS === "1" ? true : (_ref = unstyledProp !== null && unstyledProp !== void 0 ? unstyledProp : unstyledContext) !== null && _ref !== void 0 ? _ref : false;
|
|
29924
30143
|
var _ref1;
|
|
29925
30144
|
var size = (_ref1 = sizeProp !== null && sizeProp !== void 0 ? sizeProp : sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true";
|
|
29926
30145
|
var initialChecked = react$1.useRef(active).current;
|
|
@@ -30027,7 +30246,7 @@ var DefaultTabsTabFrame = styledExport(View, {
|
|
|
30027
30246
|
}
|
|
30028
30247
|
} }
|
|
30029
30248
|
},
|
|
30030
|
-
defaultVariants: { unstyled: process.env.
|
|
30249
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30031
30250
|
}, { accept: { activeStyle: "style" } });
|
|
30032
30251
|
var DefaultTabsContentFrame = styledExport(ThemeableStack, { name: "TabsContent" });
|
|
30033
30252
|
//#endregion
|
|
@@ -30224,6 +30443,9 @@ function createTabs(createProps) {
|
|
|
30224
30443
|
});
|
|
30225
30444
|
}), {
|
|
30226
30445
|
List: TabsList,
|
|
30446
|
+
/**
|
|
30447
|
+
* @deprecated Use Tabs.Tab instead
|
|
30448
|
+
*/
|
|
30227
30449
|
Trigger: TabsTrigger,
|
|
30228
30450
|
Tab: TabsTrigger,
|
|
30229
30451
|
Content: TabsContent
|
|
@@ -30675,7 +30897,7 @@ var ToastViewportWrapperFrame = styledExport(YStack, {
|
|
|
30675
30897
|
tabIndex: 0,
|
|
30676
30898
|
zIndex: 1e5
|
|
30677
30899
|
} } },
|
|
30678
|
-
defaultVariants: { unstyled: process.env.
|
|
30900
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30679
30901
|
});
|
|
30680
30902
|
var ToastViewportFrame = styledExport(YStack, {
|
|
30681
30903
|
name: VIEWPORT_NAME,
|
|
@@ -30684,7 +30906,7 @@ var ToastViewportFrame = styledExport(YStack, {
|
|
|
30684
30906
|
position: "absolute",
|
|
30685
30907
|
maxWidth: "100%"
|
|
30686
30908
|
} } },
|
|
30687
|
-
defaultVariants: { unstyled: process.env.
|
|
30909
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30688
30910
|
});
|
|
30689
30911
|
var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
30690
30912
|
var { scope, hotkey = VIEWPORT_DEFAULT_HOTKEY, label = "Notifications ({hotkey})", name = "default", multipleToasts, zIndex, portalToRoot } = props, viewportProps = _objectWithoutProperties(props, _excluded$8);
|
|
@@ -30729,7 +30951,7 @@ var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forward
|
|
|
30729
30951
|
viewportName: name,
|
|
30730
30952
|
ref: headFocusProxyRef,
|
|
30731
30953
|
onFocusFromOutsideViewport: function() {
|
|
30732
|
-
|
|
30954
|
+
getSortedTabbableCandidates({ tabbingDirection: "forwards" });
|
|
30733
30955
|
}
|
|
30734
30956
|
}),
|
|
30735
30957
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collection.Slot, {
|
|
@@ -30752,7 +30974,7 @@ var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forward
|
|
|
30752
30974
|
viewportName: name,
|
|
30753
30975
|
ref: tailFocusProxyRef,
|
|
30754
30976
|
onFocusFromOutsideViewport: function() {
|
|
30755
|
-
|
|
30977
|
+
getSortedTabbableCandidates({ tabbingDirection: "backwards" });
|
|
30756
30978
|
}
|
|
30757
30979
|
})
|
|
30758
30980
|
]
|
|
@@ -30775,7 +30997,6 @@ var FocusProxy = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef
|
|
|
30775
30997
|
}));
|
|
30776
30998
|
});
|
|
30777
30999
|
FocusProxy.displayName = FOCUS_PROXY_NAME;
|
|
30778
|
-
function focusFirst(candidates) {}
|
|
30779
31000
|
function getTabbableCandidates(container) {
|
|
30780
31001
|
return [];
|
|
30781
31002
|
}
|
|
@@ -30821,7 +31042,7 @@ var ToastImplFrame = styledExport(YStack, {
|
|
|
30821
31042
|
marginVertical: "$1",
|
|
30822
31043
|
elevation: "$3"
|
|
30823
31044
|
} } },
|
|
30824
|
-
defaultVariants: { unstyled: process.env.
|
|
31045
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30825
31046
|
});
|
|
30826
31047
|
var { Provider: ToastInteractiveProvider, useStyledContext: useToastInteractiveContext } = createStyledContext({ onClose() {} });
|
|
30827
31048
|
var ToastImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
@@ -30888,7 +31109,7 @@ var ToastImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef)
|
|
|
30888
31109
|
"horizontal"
|
|
30889
31110
|
].includes(context.swipeDirection);
|
|
30890
31111
|
var { animationDriver } = useConfiguration();
|
|
30891
|
-
if (!animationDriver) throw new Error("Must set animations in
|
|
31112
|
+
if (!animationDriver) throw new Error("Must set animations in gui.config.ts");
|
|
30892
31113
|
var { useAnimatedNumber, useAnimatedNumberStyle } = animationDriver;
|
|
30893
31114
|
var animatedNumber = useAnimatedNumber(0);
|
|
30894
31115
|
var _animationDriver_NumberView, _ref;
|
|
@@ -31036,7 +31257,7 @@ var ToastTitle = styledExport(SizableText, {
|
|
|
31036
31257
|
color: "$color",
|
|
31037
31258
|
size: "$4"
|
|
31038
31259
|
} } },
|
|
31039
|
-
defaultVariants: { unstyled: process.env.
|
|
31260
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31040
31261
|
});
|
|
31041
31262
|
var ToastDescription = styledExport(SizableText, {
|
|
31042
31263
|
name: "ToastDescription",
|
|
@@ -31044,7 +31265,7 @@ var ToastDescription = styledExport(SizableText, {
|
|
|
31044
31265
|
color: "$color11",
|
|
31045
31266
|
size: "$1"
|
|
31046
31267
|
} } },
|
|
31047
|
-
defaultVariants: { unstyled: process.env.
|
|
31268
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31048
31269
|
});
|
|
31049
31270
|
var ACTION_NAME = "ToastAction";
|
|
31050
31271
|
var ToastAction = /* @__PURE__ */ react$1.forwardRef(function ToastAction2(props, forwardedRef) {
|
|
@@ -31185,7 +31406,7 @@ var ToggleFrame = styledExport(View$1, {
|
|
|
31185
31406
|
focusStyle: { backgroundColor: "$backgroundActive" }
|
|
31186
31407
|
} }
|
|
31187
31408
|
},
|
|
31188
|
-
defaultVariants: { unstyled: process.env.
|
|
31409
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31189
31410
|
}, { accept: { activeStyle: "style" } });
|
|
31190
31411
|
var Toggle = /* @__PURE__ */ react$1.forwardRef(function Toggle2(props, forwardedRef) {
|
|
31191
31412
|
var { active: activeProp, activeStyle, defaultActive = false, onActiveChange, activeTheme, unstyled = false } = props, buttonProps = _objectWithoutProperties(props, _excluded$5);
|
|
@@ -31459,7 +31680,7 @@ function useDebounceValue(val) {
|
|
|
31459
31680
|
return state;
|
|
31460
31681
|
}
|
|
31461
31682
|
//#endregion
|
|
31462
|
-
//#region ../../
|
|
31683
|
+
//#region ../../element/dist/esm/useNativeRef.native.js
|
|
31463
31684
|
init_index_native$4();
|
|
31464
31685
|
function useNativeRef(forwardedRef) {
|
|
31465
31686
|
var ref = react$1.useRef(null);
|
|
@@ -31476,7 +31697,7 @@ function useNativeInputRef(forwardedRef) {
|
|
|
31476
31697
|
};
|
|
31477
31698
|
}
|
|
31478
31699
|
//#endregion
|
|
31479
|
-
//#region ../../
|
|
31700
|
+
//#region ../../element/dist/esm/index.native.js
|
|
31480
31701
|
function getWebElement() {
|
|
31481
31702
|
throw new Error("getWebElement is only available on web");
|
|
31482
31703
|
}
|
|
@@ -31520,19 +31741,19 @@ function useWindowDimensions() {
|
|
|
31520
31741
|
});
|
|
31521
31742
|
}
|
|
31522
31743
|
//#endregion
|
|
31523
|
-
//#region src/
|
|
31744
|
+
//#region src/createGui.ts
|
|
31524
31745
|
/**
|
|
31525
|
-
* Adds some helpful validation at dev time only for `
|
|
31746
|
+
* Adds some helpful validation at dev time only for `gui` specifically
|
|
31526
31747
|
**/
|
|
31527
|
-
var
|
|
31748
|
+
var createGui = createGui$1;
|
|
31528
31749
|
//#endregion
|
|
31529
|
-
//#region src/views/
|
|
31750
|
+
//#region src/views/GuiProvider.tsx
|
|
31530
31751
|
init_objectWithoutProperties();
|
|
31531
31752
|
init_objectSpread2();
|
|
31532
31753
|
var _excluded$3 = ["children"];
|
|
31533
|
-
var
|
|
31754
|
+
var GuiProvider = (_ref) => {
|
|
31534
31755
|
let { children } = _ref;
|
|
31535
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
31756
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiProvider$1, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$3)), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ZIndexStackContext.Provider, {
|
|
31536
31757
|
value: 1,
|
|
31537
31758
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProvider, {
|
|
31538
31759
|
shouldAddRootHost: true,
|
|
@@ -31651,7 +31872,7 @@ var styledBody = [{
|
|
|
31651
31872
|
size: { "...size": inputSizeVariant },
|
|
31652
31873
|
disabled: { true: {} }
|
|
31653
31874
|
},
|
|
31654
|
-
defaultVariants: { unstyled: process.env.
|
|
31875
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31655
31876
|
}, {
|
|
31656
31877
|
isInput: true,
|
|
31657
31878
|
accept: {
|
|
@@ -31903,7 +32124,7 @@ var TextArea = styledExport(Input, {
|
|
|
31903
32124
|
unstyled: { false: _objectSpread2(_objectSpread2({ height: "auto" }, defaultStyles), {}, { rows: 3 }) },
|
|
31904
32125
|
size: { "...size": textAreaSizeVariant }
|
|
31905
32126
|
},
|
|
31906
|
-
defaultVariants: { unstyled: process.env.
|
|
32127
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31907
32128
|
});
|
|
31908
32129
|
//#endregion
|
|
31909
32130
|
//#region ../spinner/dist/esm/Spinner.native.js
|
|
@@ -31925,7 +32146,7 @@ var Spinner = YStack.styleable(function(props, ref) {
|
|
|
31925
32146
|
//#region src/views/Text.tsx
|
|
31926
32147
|
var Text = styledExport(Text$2, {
|
|
31927
32148
|
variants: { unstyled: { false: { color: "$color" } } },
|
|
31928
|
-
defaultVariants: { unstyled: process.env.
|
|
32149
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31929
32150
|
});
|
|
31930
32151
|
//#endregion
|
|
31931
32152
|
//#region src/index.ts
|
|
@@ -32009,6 +32230,7 @@ exports.Frame = Frame;
|
|
|
32009
32230
|
exports.Group = Group;
|
|
32010
32231
|
exports.GroupContext = GroupContext;
|
|
32011
32232
|
exports.GroupFrame = GroupFrame;
|
|
32233
|
+
exports.GuiProvider = GuiProvider;
|
|
32012
32234
|
exports.H1 = H1;
|
|
32013
32235
|
exports.H2 = H2;
|
|
32014
32236
|
exports.H3 = H3;
|
|
@@ -32016,7 +32238,6 @@ exports.H4 = H4;
|
|
|
32016
32238
|
exports.H5 = H5;
|
|
32017
32239
|
exports.H6 = H6;
|
|
32018
32240
|
exports.Handle = Handle;
|
|
32019
|
-
exports.HanzoguiProvider = HanzoguiProvider;
|
|
32020
32241
|
exports.Header = Header;
|
|
32021
32242
|
exports.Heading = Heading;
|
|
32022
32243
|
exports.INITIAL_STATE = INITIAL_STATE;
|
|
@@ -32153,7 +32374,7 @@ exports.createContext = createContext;
|
|
|
32153
32374
|
exports.createContextScope = createContextScope;
|
|
32154
32375
|
exports.createFont = createFont;
|
|
32155
32376
|
exports.createGroupScope = createGroupScope;
|
|
32156
|
-
exports.
|
|
32377
|
+
exports.createGui = createGui;
|
|
32157
32378
|
exports.createImage = createImage;
|
|
32158
32379
|
exports.createMedia = createMedia;
|
|
32159
32380
|
exports.createNativeMenu = createNativeMenu;
|
|
@@ -32195,8 +32416,8 @@ exports.insertFont = insertFont;
|
|
|
32195
32416
|
exports.isBrowser = isBrowser;
|
|
32196
32417
|
exports.isChrome = isChrome;
|
|
32197
32418
|
exports.isClient = isClient;
|
|
32198
|
-
exports.
|
|
32199
|
-
exports.
|
|
32419
|
+
exports.isGuiComponent = isGuiComponent;
|
|
32420
|
+
exports.isGuiElement = isGuiElement;
|
|
32200
32421
|
exports.isPresent = isPresent;
|
|
32201
32422
|
exports.isServer = isServer;
|
|
32202
32423
|
exports.isServerSide = isServerSide;
|