@hanzo/gui 7.2.2 → 7.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +563 -342
- package/dist/test.cjs +540 -315
- package/package.json +79 -82
- 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/test.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;
|
|
@@ -4875,7 +4916,7 @@ var init_AnimatedInterpolation = __esmMin((() => {
|
|
|
4875
4916
|
_defineProperty(AnimatedInterpolation, "__createInterpolation", createInterpolation);
|
|
4876
4917
|
}));
|
|
4877
4918
|
//#endregion
|
|
4878
|
-
//#region ../../
|
|
4919
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs
|
|
4879
4920
|
function _flush(rootNode) {
|
|
4880
4921
|
const animatedStyles = /* @__PURE__ */ new Set();
|
|
4881
4922
|
function findAnimatedStyles(node) {
|
|
@@ -5054,7 +5095,7 @@ var init_AnimatedValue = __esmMin((() => {
|
|
|
5054
5095
|
};
|
|
5055
5096
|
}));
|
|
5056
5097
|
//#endregion
|
|
5057
|
-
//#region ../../
|
|
5098
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs
|
|
5058
5099
|
function attachNativeEvent(viewRef, eventName, argMapping) {
|
|
5059
5100
|
const eventMappings = [];
|
|
5060
5101
|
const traverse = (value, path) => {
|
|
@@ -5166,7 +5207,7 @@ var init_AnimatedEvent = __esmMin((() => {
|
|
|
5166
5207
|
};
|
|
5167
5208
|
}));
|
|
5168
5209
|
//#endregion
|
|
5169
|
-
//#region ../../
|
|
5210
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/Animation.mjs
|
|
5170
5211
|
var startNativeAnimationNextId, Animation;
|
|
5171
5212
|
var init_Animation = __esmMin((() => {
|
|
5172
5213
|
init_NativeAnimatedHelper();
|
|
@@ -5210,7 +5251,7 @@ var init_Animation = __esmMin((() => {
|
|
|
5210
5251
|
};
|
|
5211
5252
|
}));
|
|
5212
5253
|
//#endregion
|
|
5213
|
-
//#region ../../
|
|
5254
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.mjs
|
|
5214
5255
|
var DecayAnimation;
|
|
5215
5256
|
var init_DecayAnimation = __esmMin((() => {
|
|
5216
5257
|
init_Animation();
|
|
@@ -5272,7 +5313,7 @@ var init_DecayAnimation = __esmMin((() => {
|
|
|
5272
5313
|
};
|
|
5273
5314
|
}));
|
|
5274
5315
|
//#endregion
|
|
5275
|
-
//#region ../../
|
|
5316
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/SpringConfig.mjs
|
|
5276
5317
|
function stiffnessFromOrigamiValue(oValue) {
|
|
5277
5318
|
return (oValue - 30) * 3.62 + 194;
|
|
5278
5319
|
}
|
|
@@ -5329,7 +5370,7 @@ var init_SpringConfig = __esmMin((() => {
|
|
|
5329
5370
|
};
|
|
5330
5371
|
}));
|
|
5331
5372
|
//#endregion
|
|
5332
|
-
//#region ../../
|
|
5373
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.mjs
|
|
5333
5374
|
var SpringAnimation;
|
|
5334
5375
|
var init_SpringAnimation = __esmMin((() => {
|
|
5335
5376
|
init_Animation();
|
|
@@ -5521,7 +5562,7 @@ var init_SpringAnimation = __esmMin((() => {
|
|
|
5521
5562
|
};
|
|
5522
5563
|
}));
|
|
5523
5564
|
//#endregion
|
|
5524
|
-
//#region ../../
|
|
5565
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/bezier.mjs
|
|
5525
5566
|
function A(aA1, aA2) {
|
|
5526
5567
|
return 1 - 3 * aA2 + 3 * aA1;
|
|
5527
5568
|
}
|
|
@@ -5592,7 +5633,7 @@ var init_bezier = __esmMin((() => {
|
|
|
5592
5633
|
float32ArraySupported = typeof Float32Array === "function";
|
|
5593
5634
|
}));
|
|
5594
5635
|
//#endregion
|
|
5595
|
-
//#region ../../
|
|
5636
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/Easing.mjs
|
|
5596
5637
|
var ease, Easing, Easing_default;
|
|
5597
5638
|
var init_Easing = __esmMin((() => {
|
|
5598
5639
|
init_bezier();
|
|
@@ -5759,7 +5800,7 @@ var init_Easing = __esmMin((() => {
|
|
|
5759
5800
|
Easing_default = Easing;
|
|
5760
5801
|
}));
|
|
5761
5802
|
//#endregion
|
|
5762
|
-
//#region ../../
|
|
5803
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.mjs
|
|
5763
5804
|
function easeInOut() {
|
|
5764
5805
|
if (!_easeInOut) _easeInOut = Easing.inOut(Easing.ease);
|
|
5765
5806
|
return _easeInOut;
|
|
@@ -5847,7 +5888,7 @@ var init_TimingAnimation = __esmMin((() => {
|
|
|
5847
5888
|
};
|
|
5848
5889
|
}));
|
|
5849
5890
|
//#endregion
|
|
5850
|
-
//#region ../../
|
|
5891
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.mjs
|
|
5851
5892
|
var AnimatedAddition;
|
|
5852
5893
|
var init_AnimatedAddition = __esmMin((() => {
|
|
5853
5894
|
init_AnimatedInterpolation();
|
|
@@ -5891,7 +5932,7 @@ var init_AnimatedAddition = __esmMin((() => {
|
|
|
5891
5932
|
};
|
|
5892
5933
|
}));
|
|
5893
5934
|
//#endregion
|
|
5894
|
-
//#region ../../
|
|
5935
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.mjs
|
|
5895
5936
|
var AnimatedDiffClamp;
|
|
5896
5937
|
var init_AnimatedDiffClamp = __esmMin((() => {
|
|
5897
5938
|
init_AnimatedInterpolation();
|
|
@@ -5942,7 +5983,7 @@ var init_AnimatedDiffClamp = __esmMin((() => {
|
|
|
5942
5983
|
};
|
|
5943
5984
|
}));
|
|
5944
5985
|
//#endregion
|
|
5945
|
-
//#region ../../
|
|
5986
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.mjs
|
|
5946
5987
|
var AnimatedDivision;
|
|
5947
5988
|
var init_AnimatedDivision = __esmMin((() => {
|
|
5948
5989
|
init_AnimatedInterpolation();
|
|
@@ -5999,7 +6040,7 @@ var init_AnimatedDivision = __esmMin((() => {
|
|
|
5999
6040
|
};
|
|
6000
6041
|
}));
|
|
6001
6042
|
//#endregion
|
|
6002
|
-
//#region ../../
|
|
6043
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.mjs
|
|
6003
6044
|
var AnimatedModulo;
|
|
6004
6045
|
var init_AnimatedModulo = __esmMin((() => {
|
|
6005
6046
|
init_AnimatedInterpolation();
|
|
@@ -6040,7 +6081,7 @@ var init_AnimatedModulo = __esmMin((() => {
|
|
|
6040
6081
|
};
|
|
6041
6082
|
}));
|
|
6042
6083
|
//#endregion
|
|
6043
|
-
//#region ../../
|
|
6084
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.mjs
|
|
6044
6085
|
var AnimatedMultiplication;
|
|
6045
6086
|
var init_AnimatedMultiplication = __esmMin((() => {
|
|
6046
6087
|
init_AnimatedInterpolation();
|
|
@@ -6084,7 +6125,7 @@ var init_AnimatedMultiplication = __esmMin((() => {
|
|
|
6084
6125
|
};
|
|
6085
6126
|
}));
|
|
6086
6127
|
//#endregion
|
|
6087
|
-
//#region ../../
|
|
6128
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.mjs
|
|
6088
6129
|
var AnimatedSubtraction;
|
|
6089
6130
|
var init_AnimatedSubtraction = __esmMin((() => {
|
|
6090
6131
|
init_AnimatedInterpolation();
|
|
@@ -6128,7 +6169,7 @@ var init_AnimatedSubtraction = __esmMin((() => {
|
|
|
6128
6169
|
};
|
|
6129
6170
|
}));
|
|
6130
6171
|
//#endregion
|
|
6131
|
-
//#region ../../
|
|
6172
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.mjs
|
|
6132
6173
|
var AnimatedTracking;
|
|
6133
6174
|
var init_AnimatedTracking = __esmMin((() => {
|
|
6134
6175
|
init_AnimatedValue();
|
|
@@ -6186,7 +6227,7 @@ var init_AnimatedTracking = __esmMin((() => {
|
|
|
6186
6227
|
};
|
|
6187
6228
|
}));
|
|
6188
6229
|
//#endregion
|
|
6189
|
-
//#region ../../
|
|
6230
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs
|
|
6190
6231
|
var _uniqueId$1, AnimatedValueXY;
|
|
6191
6232
|
var init_AnimatedValueXY = __esmMin((() => {
|
|
6192
6233
|
init_AnimatedValue();
|
|
@@ -6275,7 +6316,7 @@ var init_AnimatedValueXY = __esmMin((() => {
|
|
|
6275
6316
|
};
|
|
6276
6317
|
}));
|
|
6277
6318
|
//#endregion
|
|
6278
|
-
//#region ../../
|
|
6319
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.mjs
|
|
6279
6320
|
var AnimatedTransform;
|
|
6280
6321
|
var init_AnimatedTransform = __esmMin((() => {
|
|
6281
6322
|
init_AnimatedNode();
|
|
@@ -6362,7 +6403,7 @@ var init_AnimatedTransform = __esmMin((() => {
|
|
|
6362
6403
|
};
|
|
6363
6404
|
}));
|
|
6364
6405
|
//#endregion
|
|
6365
|
-
//#region ../../
|
|
6406
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.mjs
|
|
6366
6407
|
function createAnimatedStyle(inputStyle) {
|
|
6367
6408
|
const style = flattenStyle(inputStyle);
|
|
6368
6409
|
const animatedStyles = {};
|
|
@@ -6453,7 +6494,7 @@ var init_AnimatedStyle = __esmMin((() => {
|
|
|
6453
6494
|
};
|
|
6454
6495
|
}));
|
|
6455
6496
|
//#endregion
|
|
6456
|
-
//#region ../../
|
|
6497
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.mjs
|
|
6457
6498
|
var AnimatedProps;
|
|
6458
6499
|
var init_AnimatedProps = __esmMin((() => {
|
|
6459
6500
|
init_AnimatedEvent();
|
|
@@ -6553,7 +6594,7 @@ var init_AnimatedProps = __esmMin((() => {
|
|
|
6553
6594
|
};
|
|
6554
6595
|
}));
|
|
6555
6596
|
//#endregion
|
|
6556
|
-
//#region ../../
|
|
6597
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Utilities/useRefEffect.mjs
|
|
6557
6598
|
function useRefEffect(effect) {
|
|
6558
6599
|
const cleanupRef = (0, react$1.useRef)(void 0);
|
|
6559
6600
|
return (0, react$1.useCallback)((instance) => {
|
|
@@ -6566,7 +6607,7 @@ function useRefEffect(effect) {
|
|
|
6566
6607
|
}
|
|
6567
6608
|
var init_useRefEffect = __esmMin((() => {}));
|
|
6568
6609
|
//#endregion
|
|
6569
|
-
//#region ../../
|
|
6610
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/useAnimatedProps.mjs
|
|
6570
6611
|
function useAnimatedProps(props) {
|
|
6571
6612
|
const [, scheduleUpdate] = (0, react$1.useReducer)((count) => count + 1, 0);
|
|
6572
6613
|
const onUpdateRef = (0, react$1.useRef)(null);
|
|
@@ -6637,7 +6678,7 @@ var init_useAnimatedProps = __esmMin((() => {
|
|
|
6637
6678
|
init_objectSpread2();
|
|
6638
6679
|
}));
|
|
6639
6680
|
//#endregion
|
|
6640
|
-
//#region ../../
|
|
6681
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Utilities/useMergeRefs.mjs
|
|
6641
6682
|
function useMergeRefs(...refs) {
|
|
6642
6683
|
return (0, react$1.useCallback)((current) => {
|
|
6643
6684
|
for (const ref of refs) if (ref != null) if (typeof ref === "function") ref(current);
|
|
@@ -6646,7 +6687,7 @@ function useMergeRefs(...refs) {
|
|
|
6646
6687
|
}
|
|
6647
6688
|
var init_useMergeRefs = __esmMin((() => {}));
|
|
6648
6689
|
//#endregion
|
|
6649
|
-
//#region ../../
|
|
6690
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/createAnimatedComponent.mjs
|
|
6650
6691
|
function createAnimatedComponent(Component) {
|
|
6651
6692
|
return react$1.forwardRef((props, forwardedRef) => {
|
|
6652
6693
|
const [reducedProps, callbackRef] = useAnimatedProps(props);
|
|
@@ -6669,7 +6710,7 @@ var init_createAnimatedComponent = __esmMin((() => {
|
|
|
6669
6710
|
_excluded$73 = ["style"];
|
|
6670
6711
|
}));
|
|
6671
6712
|
//#endregion
|
|
6672
|
-
//#region ../../
|
|
6713
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs
|
|
6673
6714
|
function processColor(color) {
|
|
6674
6715
|
if (color === void 0 || color === null) return null;
|
|
6675
6716
|
if (isRgbaValue(color)) return color;
|
|
@@ -6895,7 +6936,7 @@ var init_AnimatedColor = __esmMin((() => {
|
|
|
6895
6936
|
};
|
|
6896
6937
|
}));
|
|
6897
6938
|
//#endregion
|
|
6898
|
-
//#region ../../
|
|
6939
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs
|
|
6899
6940
|
function forkEvent(event2, listener) {
|
|
6900
6941
|
if (!event2) return listener;
|
|
6901
6942
|
else if (event2 instanceof AnimatedEvent) {
|
|
@@ -7205,35 +7246,172 @@ var init_AnimatedImplementation = __esmMin((() => {
|
|
|
7205
7246
|
else return animatedEvent.__getHandler();
|
|
7206
7247
|
};
|
|
7207
7248
|
AnimatedImplementationExports = {
|
|
7249
|
+
/**
|
|
7250
|
+
* Standard value class for driving animations. Typically initialized with
|
|
7251
|
+
* `new Animated.Value(0);`
|
|
7252
|
+
*
|
|
7253
|
+
* See https://reactnative.dev/docs/animated#value
|
|
7254
|
+
*/
|
|
7208
7255
|
Value: AnimatedValue,
|
|
7256
|
+
/**
|
|
7257
|
+
* 2D value class for driving 2D animations, such as pan gestures.
|
|
7258
|
+
*
|
|
7259
|
+
* See https://reactnative.dev/docs/animatedvaluexy
|
|
7260
|
+
*/
|
|
7209
7261
|
ValueXY: AnimatedValueXY,
|
|
7262
|
+
/**
|
|
7263
|
+
* Value class for driving color animations.
|
|
7264
|
+
*/
|
|
7210
7265
|
Color: AnimatedColor,
|
|
7266
|
+
/**
|
|
7267
|
+
* Exported to use the Interpolation type in flow.
|
|
7268
|
+
*
|
|
7269
|
+
* See https://reactnative.dev/docs/animated#interpolation
|
|
7270
|
+
*/
|
|
7211
7271
|
Interpolation: AnimatedInterpolation,
|
|
7272
|
+
/**
|
|
7273
|
+
* Exported for ease of type checking. All animated values derive from this
|
|
7274
|
+
* class.
|
|
7275
|
+
*
|
|
7276
|
+
* See https://reactnative.dev/docs/animated#node
|
|
7277
|
+
*/
|
|
7212
7278
|
Node: AnimatedNode,
|
|
7279
|
+
/**
|
|
7280
|
+
* Animates a value from an initial velocity to zero based on a decay
|
|
7281
|
+
* coefficient.
|
|
7282
|
+
*
|
|
7283
|
+
* See https://reactnative.dev/docs/animated#decay
|
|
7284
|
+
*/
|
|
7213
7285
|
decay: decay$1,
|
|
7286
|
+
/**
|
|
7287
|
+
* Animates a value along a timed easing curve. The Easing module has tons of
|
|
7288
|
+
* predefined curves, or you can use your own function.
|
|
7289
|
+
*
|
|
7290
|
+
* See https://reactnative.dev/docs/animated#timing
|
|
7291
|
+
*/
|
|
7214
7292
|
timing: timing$1,
|
|
7293
|
+
/**
|
|
7294
|
+
* Animates a value according to an analytical spring model based on
|
|
7295
|
+
* damped harmonic oscillation.
|
|
7296
|
+
*
|
|
7297
|
+
* See https://reactnative.dev/docs/animated#spring
|
|
7298
|
+
*/
|
|
7215
7299
|
spring: spring$1,
|
|
7300
|
+
/**
|
|
7301
|
+
* Creates a new Animated value composed from two Animated values added
|
|
7302
|
+
* together.
|
|
7303
|
+
*
|
|
7304
|
+
* See https://reactnative.dev/docs/animated#add
|
|
7305
|
+
*/
|
|
7216
7306
|
add,
|
|
7307
|
+
/**
|
|
7308
|
+
* Creates a new Animated value composed by subtracting the second Animated
|
|
7309
|
+
* value from the first Animated value.
|
|
7310
|
+
*
|
|
7311
|
+
* See https://reactnative.dev/docs/animated#subtract
|
|
7312
|
+
*/
|
|
7217
7313
|
subtract,
|
|
7314
|
+
/**
|
|
7315
|
+
* Creates a new Animated value composed by dividing the first Animated value
|
|
7316
|
+
* by the second Animated value.
|
|
7317
|
+
*
|
|
7318
|
+
* See https://reactnative.dev/docs/animated#divide
|
|
7319
|
+
*/
|
|
7218
7320
|
divide,
|
|
7321
|
+
/**
|
|
7322
|
+
* Creates a new Animated value composed from two Animated values multiplied
|
|
7323
|
+
* together.
|
|
7324
|
+
*
|
|
7325
|
+
* See https://reactnative.dev/docs/animated#multiply
|
|
7326
|
+
*/
|
|
7219
7327
|
multiply,
|
|
7328
|
+
/**
|
|
7329
|
+
* Creates a new Animated value that is the (non-negative) modulo of the
|
|
7330
|
+
* provided Animated value.
|
|
7331
|
+
*
|
|
7332
|
+
* See https://reactnative.dev/docs/animated#modulo
|
|
7333
|
+
*/
|
|
7220
7334
|
modulo,
|
|
7335
|
+
/**
|
|
7336
|
+
* Create a new Animated value that is limited between 2 values. It uses the
|
|
7337
|
+
* difference between the last value so even if the value is far from the
|
|
7338
|
+
* bounds it will start changing when the value starts getting closer again.
|
|
7339
|
+
*
|
|
7340
|
+
* See https://reactnative.dev/docs/animated#diffclamp
|
|
7341
|
+
*/
|
|
7221
7342
|
diffClamp,
|
|
7343
|
+
/**
|
|
7344
|
+
* Starts an animation after the given delay.
|
|
7345
|
+
*
|
|
7346
|
+
* See https://reactnative.dev/docs/animated#delay
|
|
7347
|
+
*/
|
|
7222
7348
|
delay: delay$1,
|
|
7349
|
+
/**
|
|
7350
|
+
* Starts an array of animations in order, waiting for each to complete
|
|
7351
|
+
* before starting the next. If the current running animation is stopped, no
|
|
7352
|
+
* following animations will be started.
|
|
7353
|
+
*
|
|
7354
|
+
* See https://reactnative.dev/docs/animated#sequence
|
|
7355
|
+
*/
|
|
7223
7356
|
sequence: sequence$1,
|
|
7357
|
+
/**
|
|
7358
|
+
* Starts an array of animations all at the same time. By default, if one
|
|
7359
|
+
* of the animations is stopped, they will all be stopped. You can override
|
|
7360
|
+
* this with the `stopTogether` flag.
|
|
7361
|
+
*
|
|
7362
|
+
* See https://reactnative.dev/docs/animated#parallel
|
|
7363
|
+
*/
|
|
7224
7364
|
parallel: parallel$1,
|
|
7365
|
+
/**
|
|
7366
|
+
* Array of animations may run in parallel (overlap), but are started in
|
|
7367
|
+
* sequence with successive delays. Nice for doing trailing effects.
|
|
7368
|
+
*
|
|
7369
|
+
* See https://reactnative.dev/docs/animated#stagger
|
|
7370
|
+
*/
|
|
7225
7371
|
stagger: stagger$1,
|
|
7372
|
+
/**
|
|
7373
|
+
* Loops a given animation continuously, so that each time it reaches the
|
|
7374
|
+
* end, it resets and begins again from the start.
|
|
7375
|
+
*
|
|
7376
|
+
* See https://reactnative.dev/docs/animated#loop
|
|
7377
|
+
*/
|
|
7226
7378
|
loop: loop$1,
|
|
7379
|
+
/**
|
|
7380
|
+
* Takes an array of mappings and extracts values from each arg accordingly,
|
|
7381
|
+
* then calls `setValue` on the mapped outputs.
|
|
7382
|
+
*
|
|
7383
|
+
* See https://reactnative.dev/docs/animated#event
|
|
7384
|
+
*/
|
|
7227
7385
|
event,
|
|
7386
|
+
/**
|
|
7387
|
+
* Make any React component Animatable. Used to create `Animated.View`, etc.
|
|
7388
|
+
*
|
|
7389
|
+
* See https://reactnative.dev/docs/animated#createanimatedcomponent
|
|
7390
|
+
*/
|
|
7228
7391
|
createAnimatedComponent,
|
|
7392
|
+
/**
|
|
7393
|
+
* Imperative API to attach an animated value to an event on a view. Prefer
|
|
7394
|
+
* using `Animated.event` with `useNativeDrive: true` if possible.
|
|
7395
|
+
*
|
|
7396
|
+
* See https://reactnative.dev/docs/animated#attachnativeevent
|
|
7397
|
+
*/
|
|
7229
7398
|
attachNativeEvent,
|
|
7399
|
+
/**
|
|
7400
|
+
* Advanced imperative API for snooping on animated events that are passed in
|
|
7401
|
+
* through props. Use values directly where possible.
|
|
7402
|
+
*
|
|
7403
|
+
* See https://reactnative.dev/docs/animated#forkevent
|
|
7404
|
+
*/
|
|
7230
7405
|
forkEvent,
|
|
7231
7406
|
unforkEvent,
|
|
7407
|
+
/**
|
|
7408
|
+
* Expose Event class, so it can be used as a type for type checkers.
|
|
7409
|
+
*/
|
|
7232
7410
|
Event: AnimatedEvent
|
|
7233
7411
|
};
|
|
7234
7412
|
}));
|
|
7235
7413
|
//#endregion
|
|
7236
|
-
//#region ../../
|
|
7414
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/AnimatedMock.mjs
|
|
7237
7415
|
function mockAnimationStart(start) {
|
|
7238
7416
|
return (callback) => {
|
|
7239
7417
|
start(callback == null ? callback : (...args) => {
|
|
@@ -7374,7 +7552,7 @@ var init_memoize_one_esm = __esmMin((() => {
|
|
|
7374
7552
|
};
|
|
7375
7553
|
}));
|
|
7376
7554
|
//#endregion
|
|
7377
|
-
//#region ../../
|
|
7555
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/deepDiffer/index.mjs
|
|
7378
7556
|
var deepDiffer;
|
|
7379
7557
|
var init_deepDiffer = __esmMin((() => {
|
|
7380
7558
|
deepDiffer = function(one, two, maxDepth = -1) {
|
|
@@ -7396,7 +7574,7 @@ var init_deepDiffer = __esmMin((() => {
|
|
|
7396
7574
|
};
|
|
7397
7575
|
}));
|
|
7398
7576
|
//#endregion
|
|
7399
|
-
//#region ../../
|
|
7577
|
+
//#region ../../react-native-web-lite/dist/esm/Dimensions/index.mjs
|
|
7400
7578
|
function update() {
|
|
7401
7579
|
if (!canUseDOM$1) return;
|
|
7402
7580
|
const win = window;
|
|
@@ -7467,7 +7645,7 @@ var init_Dimensions = __esmMin((() => {
|
|
|
7467
7645
|
if (canUseDOM$1) window.addEventListener("resize", handleResize, false);
|
|
7468
7646
|
}));
|
|
7469
7647
|
//#endregion
|
|
7470
|
-
//#region ../../
|
|
7648
|
+
//#region ../../react-native-web-lite/dist/esm/View/index.mjs
|
|
7471
7649
|
var _excluded$72, pickProps$3, View$2, styles$12;
|
|
7472
7650
|
var init_View = __esmMin((() => {
|
|
7473
7651
|
init_esm$1();
|
|
@@ -7558,7 +7736,7 @@ var init_View = __esmMin((() => {
|
|
|
7558
7736
|
};
|
|
7559
7737
|
}));
|
|
7560
7738
|
//#endregion
|
|
7561
|
-
//#region ../../
|
|
7739
|
+
//#region ../../react-native-web-lite/dist/esm/ScrollView/ScrollViewBase.mjs
|
|
7562
7740
|
function normalizeScrollEvent(e) {
|
|
7563
7741
|
return {
|
|
7564
7742
|
nativeEvent: {
|
|
@@ -7672,7 +7850,7 @@ var init_ScrollViewBase = __esmMin((() => {
|
|
|
7672
7850
|
} };
|
|
7673
7851
|
}));
|
|
7674
7852
|
//#endregion
|
|
7675
|
-
//#region ../../
|
|
7853
|
+
//#region ../../react-native-web-lite/dist/esm/ScrollView/index.mjs
|
|
7676
7854
|
var _excluded$70, emptyObject$3, IS_ANIMATING_TOUCH_START_THRESHOLD_MS, ScrollView$2, commonStyle, styles$10, ForwardedScrollView;
|
|
7677
7855
|
var init_ScrollView = __esmMin((() => {
|
|
7678
7856
|
init_esm$1();
|
|
@@ -8098,9 +8276,7 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8098
8276
|
* altogether. To improve this, find a way to disable the `UIScrollView` after
|
|
8099
8277
|
* a touch has already started.
|
|
8100
8278
|
*/
|
|
8101
|
-
scrollResponderHandleResponderReject() {
|
|
8102
|
-
warning(false, "ScrollView doesn't take rejection well - scrolls anyway");
|
|
8103
|
-
}
|
|
8279
|
+
scrollResponderHandleResponderReject() {}
|
|
8104
8280
|
/**
|
|
8105
8281
|
* We will allow the scroll view to give up its lock iff it acquired the lock
|
|
8106
8282
|
* during an animation. This is a very useful default that happens to satisfy
|
|
@@ -8125,7 +8301,8 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8125
8301
|
* @param {SyntheticEvent} e Event.
|
|
8126
8302
|
*/
|
|
8127
8303
|
scrollResponderHandleTouchEnd(e) {
|
|
8128
|
-
|
|
8304
|
+
const nativeEvent = e.nativeEvent;
|
|
8305
|
+
this.isTouching = nativeEvent.touches.length !== 0;
|
|
8129
8306
|
this.props.onTouchEnd && this.props.onTouchEnd(e);
|
|
8130
8307
|
}
|
|
8131
8308
|
/**
|
|
@@ -8266,7 +8443,7 @@ var init_ScrollView = __esmMin((() => {
|
|
|
8266
8443
|
ForwardedScrollView.displayName = "ScrollView";
|
|
8267
8444
|
}));
|
|
8268
8445
|
//#endregion
|
|
8269
|
-
//#region ../../
|
|
8446
|
+
//#region ../../react-native-web-lite/dist/esm/RefreshControl/index.mjs
|
|
8270
8447
|
function RefreshControl(props) {
|
|
8271
8448
|
const { colors, enabled, onRefresh, progressBackgroundColor, progressViewOffset, refreshing, size, tintColor, title, titleColor } = props;
|
|
8272
8449
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(View$2, _objectSpread2({}, _objectWithoutProperties(props, _excluded$69)));
|
|
@@ -8290,7 +8467,7 @@ var init_RefreshControl = __esmMin((() => {
|
|
|
8290
8467
|
];
|
|
8291
8468
|
}));
|
|
8292
8469
|
//#endregion
|
|
8293
|
-
//#region ../../
|
|
8470
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Batchinator/index.mjs
|
|
8294
8471
|
var Batchinator;
|
|
8295
8472
|
var init_Batchinator = __esmMin((() => {
|
|
8296
8473
|
init_esm$1();
|
|
@@ -8323,7 +8500,7 @@ var init_Batchinator = __esmMin((() => {
|
|
|
8323
8500
|
};
|
|
8324
8501
|
}));
|
|
8325
8502
|
//#endregion
|
|
8326
|
-
//#region ../../
|
|
8503
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs
|
|
8327
8504
|
var ChildListCollection;
|
|
8328
8505
|
var init_ChildListCollection = __esmMin((() => {
|
|
8329
8506
|
init_esm$1();
|
|
@@ -8370,7 +8547,7 @@ var init_ChildListCollection = __esmMin((() => {
|
|
|
8370
8547
|
};
|
|
8371
8548
|
}));
|
|
8372
8549
|
//#endregion
|
|
8373
|
-
//#region ../../
|
|
8550
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/FillRateHelper/index.mjs
|
|
8374
8551
|
var Info, _listeners, _minSampleCount, _sampleRate, FillRateHelper;
|
|
8375
8552
|
var init_FillRateHelper = __esmMin((() => {
|
|
8376
8553
|
init_defineProperty();
|
|
@@ -8490,7 +8667,7 @@ var init_FillRateHelper = __esmMin((() => {
|
|
|
8490
8667
|
};
|
|
8491
8668
|
}));
|
|
8492
8669
|
//#endregion
|
|
8493
|
-
//#region ../../
|
|
8670
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs
|
|
8494
8671
|
var StateSafePureComponent;
|
|
8495
8672
|
var init_StateSafePureComponent = __esmMin((() => {
|
|
8496
8673
|
init_esm$1();
|
|
@@ -8541,7 +8718,7 @@ var init_StateSafePureComponent = __esmMin((() => {
|
|
|
8541
8718
|
};
|
|
8542
8719
|
}));
|
|
8543
8720
|
//#endregion
|
|
8544
|
-
//#region ../../
|
|
8721
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/ViewabilityHelper.mjs
|
|
8545
8722
|
function _isViewable(viewAreaMode, viewablePercentThreshold, top, bottom, viewportHeight, itemLength) {
|
|
8546
8723
|
if (_isEntirelyVisible(top, bottom, viewportHeight)) return true;
|
|
8547
8724
|
else {
|
|
@@ -8657,7 +8834,7 @@ var init_ViewabilityHelper = __esmMin((() => {
|
|
|
8657
8834
|
};
|
|
8658
8835
|
}));
|
|
8659
8836
|
//#endregion
|
|
8660
|
-
//#region ../../
|
|
8837
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs
|
|
8661
8838
|
function VirtualizedListCellContextProvider({ cellKey, children }) {
|
|
8662
8839
|
const currContext = (0, react$1.useContext)(VirtualizedListContext);
|
|
8663
8840
|
const context = (0, react$1.useMemo)(() => currContext == null ? null : _objectSpread2(_objectSpread2({}, currContext), {}, { cellKey }), [currContext, cellKey]);
|
|
@@ -8674,7 +8851,7 @@ var init_VirtualizedListContext = __esmMin((() => {
|
|
|
8674
8851
|
VirtualizedListContext.displayName = "VirtualizedListContext";
|
|
8675
8852
|
}));
|
|
8676
8853
|
//#endregion
|
|
8677
|
-
//#region ../../
|
|
8854
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs
|
|
8678
8855
|
var CellRenderer, styles$9;
|
|
8679
8856
|
var init_VirtualizedListCellRenderer = __esmMin((() => {
|
|
8680
8857
|
init_View();
|
|
@@ -8763,7 +8940,7 @@ var init_VirtualizedListCellRenderer = __esmMin((() => {
|
|
|
8763
8940
|
});
|
|
8764
8941
|
}));
|
|
8765
8942
|
//#endregion
|
|
8766
|
-
//#region ../../
|
|
8943
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedList/index.mjs
|
|
8767
8944
|
function horizontalOrDefault(horizontal) {
|
|
8768
8945
|
return horizontal !== null && horizontal !== void 0 ? horizontal : false;
|
|
8769
8946
|
}
|
|
@@ -8996,7 +9173,7 @@ var init_VirtualizedList$1 = __esmMin((() => {
|
|
|
8996
9173
|
VirtualizedList_default = VirtualizedList;
|
|
8997
9174
|
}));
|
|
8998
9175
|
//#endregion
|
|
8999
|
-
//#region ../../
|
|
9176
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs
|
|
9000
9177
|
function keyExtractor(item, index) {
|
|
9001
9178
|
if (typeof item === "object" && (item === null || item === void 0 ? void 0 : item.key) != null) return item.key;
|
|
9002
9179
|
if (typeof item === "object" && (item === null || item === void 0 ? void 0 : item.id) != null) return item.id;
|
|
@@ -9004,7 +9181,7 @@ function keyExtractor(item, index) {
|
|
|
9004
9181
|
}
|
|
9005
9182
|
var init_VirtualizeUtils = __esmMin((() => {}));
|
|
9006
9183
|
//#endregion
|
|
9007
|
-
//#region ../../
|
|
9184
|
+
//#region ../../react-native-web-lite/dist/esm/FlatList.mjs
|
|
9008
9185
|
function removeClippedSubviewsOrDefault(removeClippedSubviews) {
|
|
9009
9186
|
return removeClippedSubviews !== null && removeClippedSubviews !== void 0 ? removeClippedSubviews : Platform.OS === "android";
|
|
9010
9187
|
}
|
|
@@ -9168,7 +9345,7 @@ var init_FlatList = __esmMin((() => {
|
|
|
9168
9345
|
styles$8 = { row: { flexDirection: "row" } };
|
|
9169
9346
|
}));
|
|
9170
9347
|
//#endregion
|
|
9171
|
-
//#region ../../
|
|
9348
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedFlatList.mjs
|
|
9172
9349
|
var FlatList;
|
|
9173
9350
|
var init_AnimatedFlatList = __esmMin((() => {
|
|
9174
9351
|
init_FlatList();
|
|
@@ -9177,7 +9354,7 @@ var init_AnimatedFlatList = __esmMin((() => {
|
|
|
9177
9354
|
FlatList = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FlatList$1, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9178
9355
|
}));
|
|
9179
9356
|
//#endregion
|
|
9180
|
-
//#region ../../
|
|
9357
|
+
//#region ../../react-native-web-lite/dist/esm/PixelRatio/index.mjs
|
|
9181
9358
|
var PixelRatio;
|
|
9182
9359
|
var init_PixelRatio = __esmMin((() => {
|
|
9183
9360
|
init_Dimensions();
|
|
@@ -9214,7 +9391,7 @@ var init_PixelRatio = __esmMin((() => {
|
|
|
9214
9391
|
};
|
|
9215
9392
|
}));
|
|
9216
9393
|
//#endregion
|
|
9217
|
-
//#region ../../
|
|
9394
|
+
//#region ../../react-native-web-lite/dist/esm/Image/index.mjs
|
|
9218
9395
|
function createTintColorSVG(tintColor, id) {
|
|
9219
9396
|
return tintColor && id != null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
9220
9397
|
style: {
|
|
@@ -9486,7 +9663,7 @@ var init_Image = __esmMin((() => {
|
|
|
9486
9663
|
});
|
|
9487
9664
|
}));
|
|
9488
9665
|
//#endregion
|
|
9489
|
-
//#region ../../
|
|
9666
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedImage.mjs
|
|
9490
9667
|
var AnimatedImage;
|
|
9491
9668
|
var init_AnimatedImage = __esmMin((() => {
|
|
9492
9669
|
init_Image();
|
|
@@ -9494,7 +9671,7 @@ var init_AnimatedImage = __esmMin((() => {
|
|
|
9494
9671
|
AnimatedImage = createAnimatedComponent(ImageWithStatics);
|
|
9495
9672
|
}));
|
|
9496
9673
|
//#endregion
|
|
9497
|
-
//#region ../../
|
|
9674
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.mjs
|
|
9498
9675
|
var ScrollView$1;
|
|
9499
9676
|
var init_AnimatedScrollView = __esmMin((() => {
|
|
9500
9677
|
init_ScrollView();
|
|
@@ -9503,7 +9680,7 @@ var init_AnimatedScrollView = __esmMin((() => {
|
|
|
9503
9680
|
ScrollView$1 = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardedScrollView, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9504
9681
|
}));
|
|
9505
9682
|
//#endregion
|
|
9506
|
-
//#region ../../
|
|
9683
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs
|
|
9507
9684
|
var _excluded$65, defaultProps, VirtualizedSectionList;
|
|
9508
9685
|
var init_VirtualizedSectionList = __esmMin((() => {
|
|
9509
9686
|
init_VirtualizedList$1();
|
|
@@ -9612,7 +9789,7 @@ var init_VirtualizedSectionList = __esmMin((() => {
|
|
|
9612
9789
|
VirtualizedSectionList.defaultProps = defaultProps;
|
|
9613
9790
|
}));
|
|
9614
9791
|
//#endregion
|
|
9615
|
-
//#region ../../
|
|
9792
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/SectionList/index.mjs
|
|
9616
9793
|
var _excluded$64, SectionList$1, SectionList_default;
|
|
9617
9794
|
var init_SectionList$1 = __esmMin((() => {
|
|
9618
9795
|
init_VirtualizedSectionList();
|
|
@@ -9689,12 +9866,12 @@ var init_SectionList$1 = __esmMin((() => {
|
|
|
9689
9866
|
SectionList_default = SectionList$1;
|
|
9690
9867
|
}));
|
|
9691
9868
|
//#endregion
|
|
9692
|
-
//#region ../../
|
|
9869
|
+
//#region ../../react-native-web-lite/dist/esm/SectionList.mjs
|
|
9693
9870
|
var init_SectionList = __esmMin((() => {
|
|
9694
9871
|
init_SectionList$1();
|
|
9695
9872
|
}));
|
|
9696
9873
|
//#endregion
|
|
9697
|
-
//#region ../../
|
|
9874
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedSectionList.mjs
|
|
9698
9875
|
var SectionList;
|
|
9699
9876
|
var init_AnimatedSectionList = __esmMin((() => {
|
|
9700
9877
|
init_SectionList();
|
|
@@ -9703,7 +9880,7 @@ var init_AnimatedSectionList = __esmMin((() => {
|
|
|
9703
9880
|
SectionList = createAnimatedComponent(react$1.forwardRef((props, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionList_default, _objectSpread2(_objectSpread2({ scrollEventThrottle: 1e-4 }, props), {}, { ref }))));
|
|
9704
9881
|
}));
|
|
9705
9882
|
//#endregion
|
|
9706
|
-
//#region ../../
|
|
9883
|
+
//#region ../../react-native-web-lite/dist/esm/Text/index.mjs
|
|
9707
9884
|
var _excluded$63, pickProps$2, Text$4, textStyle, styles$6;
|
|
9708
9885
|
var init_Text = __esmMin((() => {
|
|
9709
9886
|
init_esm$1();
|
|
@@ -9843,7 +10020,7 @@ var init_Text = __esmMin((() => {
|
|
|
9843
10020
|
};
|
|
9844
10021
|
}));
|
|
9845
10022
|
//#endregion
|
|
9846
|
-
//#region ../../
|
|
10023
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedText.mjs
|
|
9847
10024
|
var AnimatedText;
|
|
9848
10025
|
var init_AnimatedText = __esmMin((() => {
|
|
9849
10026
|
init_Text();
|
|
@@ -9851,7 +10028,7 @@ var init_AnimatedText = __esmMin((() => {
|
|
|
9851
10028
|
AnimatedText = createAnimatedComponent(Text$4);
|
|
9852
10029
|
}));
|
|
9853
10030
|
//#endregion
|
|
9854
|
-
//#region ../../
|
|
10031
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/components/AnimatedView.mjs
|
|
9855
10032
|
var AnimatedView;
|
|
9856
10033
|
var init_AnimatedView = __esmMin((() => {
|
|
9857
10034
|
init_View();
|
|
@@ -9859,7 +10036,7 @@ var init_AnimatedView = __esmMin((() => {
|
|
|
9859
10036
|
AnimatedView = createAnimatedComponent(View$2);
|
|
9860
10037
|
}));
|
|
9861
10038
|
//#endregion
|
|
9862
|
-
//#region ../../
|
|
10039
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/Animated/Animated.mjs
|
|
9863
10040
|
var Animated, AnimatedExports, Animated_default;
|
|
9864
10041
|
var init_Animated = __esmMin((() => {
|
|
9865
10042
|
init_esm$1();
|
|
@@ -9884,7 +10061,7 @@ var init_Animated = __esmMin((() => {
|
|
|
9884
10061
|
Animated_default = AnimatedExports;
|
|
9885
10062
|
}));
|
|
9886
10063
|
//#endregion
|
|
9887
|
-
//#region ../../
|
|
10064
|
+
//#region ../../react-native-web-lite/dist/esm/AccessibilityInfo/index.mjs
|
|
9888
10065
|
function isScreenReaderEnabled() {
|
|
9889
10066
|
return new Promise((resolve, reject) => {
|
|
9890
10067
|
resolve(true);
|
|
@@ -9907,9 +10084,27 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9907
10084
|
prefersReducedMotionMedia = canUseDOM$1 && typeof window.matchMedia === "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
|
|
9908
10085
|
handlers = {};
|
|
9909
10086
|
AccessibilityInfo = {
|
|
10087
|
+
/**
|
|
10088
|
+
* Query whether a screen reader is currently enabled.
|
|
10089
|
+
*
|
|
10090
|
+
* Returns a promise which resolves to a boolean.
|
|
10091
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
10092
|
+
*/
|
|
9910
10093
|
isScreenReaderEnabled,
|
|
10094
|
+
/**
|
|
10095
|
+
* Query whether the user prefers reduced motion.
|
|
10096
|
+
*
|
|
10097
|
+
* Returns a promise which resolves to a boolean.
|
|
10098
|
+
* The result is `true` when a screen reader is enabled and `false` otherwise.
|
|
10099
|
+
*/
|
|
9911
10100
|
isReduceMotionEnabled,
|
|
10101
|
+
/**
|
|
10102
|
+
* Deprecated
|
|
10103
|
+
*/
|
|
9912
10104
|
fetch: isScreenReaderEnabled,
|
|
10105
|
+
/**
|
|
10106
|
+
* Add an event handler. Supported events: reduceMotionChanged
|
|
10107
|
+
*/
|
|
9913
10108
|
addEventListener: function(eventName, handler) {
|
|
9914
10109
|
if (eventName === "reduceMotionChanged") {
|
|
9915
10110
|
if (!prefersReducedMotionMedia) return;
|
|
@@ -9921,8 +10116,17 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9921
10116
|
}
|
|
9922
10117
|
return { remove: () => AccessibilityInfo.removeEventListener(eventName, handler) };
|
|
9923
10118
|
},
|
|
10119
|
+
/**
|
|
10120
|
+
* Set accessibility focus to a react component.
|
|
10121
|
+
*/
|
|
9924
10122
|
setAccessibilityFocus: function(reactTag) {},
|
|
10123
|
+
/**
|
|
10124
|
+
* Post a string to be announced by the screen reader.
|
|
10125
|
+
*/
|
|
9925
10126
|
announceForAccessibility: function(announcement) {},
|
|
10127
|
+
/**
|
|
10128
|
+
* Remove an event handler.
|
|
10129
|
+
*/
|
|
9926
10130
|
removeEventListener: function(eventName, handler) {
|
|
9927
10131
|
if (eventName === "reduceMotionChanged") {
|
|
9928
10132
|
const listener = handlers[handler];
|
|
@@ -9933,7 +10137,7 @@ var init_AccessibilityInfo = __esmMin((() => {
|
|
|
9933
10137
|
};
|
|
9934
10138
|
}));
|
|
9935
10139
|
//#endregion
|
|
9936
|
-
//#region ../../
|
|
10140
|
+
//#region ../../react-native-web-lite/dist/esm/Alert/index.mjs
|
|
9937
10141
|
var Alert;
|
|
9938
10142
|
var init_Alert = __esmMin((() => {
|
|
9939
10143
|
Alert = class {
|
|
@@ -9941,7 +10145,7 @@ var init_Alert = __esmMin((() => {
|
|
|
9941
10145
|
};
|
|
9942
10146
|
}));
|
|
9943
10147
|
//#endregion
|
|
9944
|
-
//#region ../../
|
|
10148
|
+
//#region ../../react-native-web-lite/dist/esm/Appearance/index.mjs
|
|
9945
10149
|
function getQuery() {
|
|
9946
10150
|
return canUseDOM$1 && window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
9947
10151
|
}
|
|
@@ -10153,7 +10357,7 @@ var require_react_dom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10153
10357
|
module.exports = require_react_dom_development();
|
|
10154
10358
|
}));
|
|
10155
10359
|
//#endregion
|
|
10156
|
-
//#region ../../
|
|
10360
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/AppContainer.mjs
|
|
10157
10361
|
var RootTagContext$1, AppContainer, styles$5;
|
|
10158
10362
|
var init_AppContainer = __esmMin((() => {
|
|
10159
10363
|
init_esm$1();
|
|
@@ -10181,7 +10385,7 @@ var init_AppContainer = __esmMin((() => {
|
|
|
10181
10385
|
styles$5 = StyleSheet.create({ appContainer: { flex: 1 } });
|
|
10182
10386
|
}));
|
|
10183
10387
|
//#endregion
|
|
10184
|
-
//#region ../../
|
|
10388
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/renderApplication.mjs
|
|
10185
10389
|
function renderApplication(RootComponent, WrapperComponent = null, callback = () => {}, options) {
|
|
10186
10390
|
const { hydrate: shouldHydrate, initialProps, mode, rootTag } = options;
|
|
10187
10391
|
const renderFn = shouldHydrate ? mode === "concurrent" ? hydrate : hydrateLegacy : mode === "concurrent" ? render : renderLegacy;
|
|
@@ -10218,7 +10422,7 @@ var init_renderApplication = __esmMin((() => {
|
|
|
10218
10422
|
init_objectSpread2();
|
|
10219
10423
|
}));
|
|
10220
10424
|
//#endregion
|
|
10221
|
-
//#region ../../
|
|
10425
|
+
//#region ../../react-native-web-lite/dist/esm/AppRegistry/index.mjs
|
|
10222
10426
|
var import_react_dom$2, emptyObject$2, runnables, componentProviderInstrumentationHook, wrapperComponentProvider, AppRegistry;
|
|
10223
10427
|
var init_AppRegistry = __esmMin((() => {
|
|
10224
10428
|
import_react_dom$2 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
@@ -10277,7 +10481,7 @@ var init_AppRegistry = __esmMin((() => {
|
|
|
10277
10481
|
};
|
|
10278
10482
|
}));
|
|
10279
10483
|
//#endregion
|
|
10280
|
-
//#region ../../
|
|
10484
|
+
//#region ../../react-native-web-lite/dist/esm/AppState/index.mjs
|
|
10281
10485
|
var isPrefixed, EVENT_TYPES, VISIBILITY_CHANGE_EVENT, VISIBILITY_STATE_PROPERTY, AppStates, EventEmitter, hasBoundVisibilityChangeEvent, changeEmitter, AppState;
|
|
10282
10486
|
var init_AppState = __esmMin((() => {
|
|
10283
10487
|
init_esm$1();
|
|
@@ -10338,7 +10542,7 @@ var init_AppState = __esmMin((() => {
|
|
|
10338
10542
|
_defineProperty(AppState, "isAvailable", canUseDOM$1 && document[VISIBILITY_STATE_PROPERTY]);
|
|
10339
10543
|
}));
|
|
10340
10544
|
//#endregion
|
|
10341
|
-
//#region ../../
|
|
10545
|
+
//#region ../../react-native-web-lite/dist/esm/BackHandler/index.mjs
|
|
10342
10546
|
function emptyFunction$1() {}
|
|
10343
10547
|
var BackHandler;
|
|
10344
10548
|
var init_BackHandler = __esmMin((() => {
|
|
@@ -10351,7 +10555,7 @@ var init_BackHandler = __esmMin((() => {
|
|
|
10351
10555
|
};
|
|
10352
10556
|
}));
|
|
10353
10557
|
//#endregion
|
|
10354
|
-
//#region ../../
|
|
10558
|
+
//#region ../../react-native-web-lite/dist/esm/Clipboard/index.mjs
|
|
10355
10559
|
var clipboardAvailable, Clipboard;
|
|
10356
10560
|
var init_Clipboard = __esmMin((() => {
|
|
10357
10561
|
Clipboard = class {
|
|
@@ -10390,14 +10594,14 @@ var init_Clipboard = __esmMin((() => {
|
|
|
10390
10594
|
};
|
|
10391
10595
|
}));
|
|
10392
10596
|
//#endregion
|
|
10393
|
-
//#region ../../
|
|
10597
|
+
//#region ../../react-native-web-lite/dist/esm/DeviceEmitter.mjs
|
|
10394
10598
|
var DeviceEmitter;
|
|
10395
10599
|
var init_DeviceEmitter = __esmMin((() => {
|
|
10396
10600
|
init__EventEmitter();
|
|
10397
10601
|
DeviceEmitter = new EventEmitter$1();
|
|
10398
10602
|
}));
|
|
10399
10603
|
//#endregion
|
|
10400
|
-
//#region ../../
|
|
10604
|
+
//#region ../../react-native-web-lite/dist/esm/DeviceInfo/index.mjs
|
|
10401
10605
|
var DeviceInfo;
|
|
10402
10606
|
var init_DeviceInfo = __esmMin((() => {
|
|
10403
10607
|
init_esm$1();
|
|
@@ -10436,7 +10640,7 @@ var init_DeviceInfo = __esmMin((() => {
|
|
|
10436
10640
|
};
|
|
10437
10641
|
}));
|
|
10438
10642
|
//#endregion
|
|
10439
|
-
//#region ../../
|
|
10643
|
+
//#region ../../react-native-web-lite/dist/esm/I18nManager/index.mjs
|
|
10440
10644
|
var I18nManager;
|
|
10441
10645
|
var init_I18nManager = __esmMin((() => {
|
|
10442
10646
|
I18nManager = {
|
|
@@ -10448,7 +10652,7 @@ var init_I18nManager = __esmMin((() => {
|
|
|
10448
10652
|
};
|
|
10449
10653
|
}));
|
|
10450
10654
|
//#endregion
|
|
10451
|
-
//#region ../../
|
|
10655
|
+
//#region ../../react-native-web-lite/dist/esm/Keyboard/index.mjs
|
|
10452
10656
|
var Keyboard;
|
|
10453
10657
|
var init_Keyboard = __esmMin((() => {
|
|
10454
10658
|
init_esm$1();
|
|
@@ -10464,7 +10668,7 @@ var init_Keyboard = __esmMin((() => {
|
|
|
10464
10668
|
};
|
|
10465
10669
|
}));
|
|
10466
10670
|
//#endregion
|
|
10467
|
-
//#region ../../
|
|
10671
|
+
//#region ../../react-native-web-lite/dist/esm/Linking/index.mjs
|
|
10468
10672
|
var initialURL, Linking, open, LinkingInstance;
|
|
10469
10673
|
var init_Linking = __esmMin((() => {
|
|
10470
10674
|
init_esm$1();
|
|
@@ -10552,10 +10756,26 @@ var init_Linking = __esmMin((() => {
|
|
|
10552
10756
|
LinkingInstance = new Linking();
|
|
10553
10757
|
}));
|
|
10554
10758
|
//#endregion
|
|
10555
|
-
//#region ../../
|
|
10759
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/TouchHistoryMath/index.mjs
|
|
10556
10760
|
var TouchHistoryMath, TouchHistoryMath_default;
|
|
10557
10761
|
var init_TouchHistoryMath = __esmMin((() => {
|
|
10558
10762
|
TouchHistoryMath = {
|
|
10763
|
+
/**
|
|
10764
|
+
* This code is optimized and not intended to look beautiful. This allows
|
|
10765
|
+
* computing of touch centroids that have moved after `touchesChangedAfter`
|
|
10766
|
+
* timeStamp. You can compute the current centroid involving all touches
|
|
10767
|
+
* moves after `touchesChangedAfter`, or you can compute the previous
|
|
10768
|
+
* centroid of all touches that were moved after `touchesChangedAfter`.
|
|
10769
|
+
*
|
|
10770
|
+
* @param {TouchHistoryMath} touchHistory Standard Responder touch track
|
|
10771
|
+
* data.
|
|
10772
|
+
* @param {number} touchesChangedAfter timeStamp after which moved touches
|
|
10773
|
+
* are considered "actively moving" - not just "active".
|
|
10774
|
+
* @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.
|
|
10775
|
+
* @param {boolean} ofCurrent Compute current centroid for actively moving
|
|
10776
|
+
* touches vs. previous centroid of now actively moving touches.
|
|
10777
|
+
* @return {number} value of centroid in specified dimension.
|
|
10778
|
+
*/
|
|
10559
10779
|
centroidDimension: function(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) {
|
|
10560
10780
|
const touchBank = touchHistory.touchBank;
|
|
10561
10781
|
let total = 0;
|
|
@@ -10603,7 +10823,7 @@ var init_TouchHistoryMath = __esmMin((() => {
|
|
|
10603
10823
|
TouchHistoryMath_default = TouchHistoryMath;
|
|
10604
10824
|
}));
|
|
10605
10825
|
//#endregion
|
|
10606
|
-
//#region ../../
|
|
10826
|
+
//#region ../../react-native-web-lite/dist/esm/vendor/react-native/PanResponder/index.mjs
|
|
10607
10827
|
function clearInteractionHandle(interactionState, callback, event, gestureState) {
|
|
10608
10828
|
if (interactionState.handle) {
|
|
10609
10829
|
InteractionManager.clearInteractionHandle(interactionState.handle);
|
|
@@ -10755,12 +10975,12 @@ var init_PanResponder$1 = __esmMin((() => {
|
|
|
10755
10975
|
PanResponder_default = PanResponder;
|
|
10756
10976
|
}));
|
|
10757
10977
|
//#endregion
|
|
10758
|
-
//#region ../../
|
|
10978
|
+
//#region ../../react-native-web-lite/dist/esm/PanResponder/index.mjs
|
|
10759
10979
|
var init_PanResponder = __esmMin((() => {
|
|
10760
10980
|
init_PanResponder$1();
|
|
10761
10981
|
}));
|
|
10762
10982
|
//#endregion
|
|
10763
|
-
//#region ../../
|
|
10983
|
+
//#region ../../react-native-web-lite/dist/esm/Share/index.mjs
|
|
10764
10984
|
var Share;
|
|
10765
10985
|
var init_Share = __esmMin((() => {
|
|
10766
10986
|
init_esm$1();
|
|
@@ -10793,7 +11013,7 @@ var init_Share = __esmMin((() => {
|
|
|
10793
11013
|
};
|
|
10794
11014
|
}));
|
|
10795
11015
|
//#endregion
|
|
10796
|
-
//#region ../../
|
|
11016
|
+
//#region ../../react-native-web-lite/dist/esm/Vibration/index.mjs
|
|
10797
11017
|
var vibrate, Vibration;
|
|
10798
11018
|
var init_Vibration = __esmMin((() => {
|
|
10799
11019
|
vibrate = (pattern) => {
|
|
@@ -10809,12 +11029,12 @@ var init_Vibration = __esmMin((() => {
|
|
|
10809
11029
|
};
|
|
10810
11030
|
}));
|
|
10811
11031
|
//#endregion
|
|
10812
|
-
//#region ../../
|
|
11032
|
+
//#region ../../react-native-web-lite/dist/esm/VirtualizedList.mjs
|
|
10813
11033
|
var init_VirtualizedList = __esmMin((() => {
|
|
10814
11034
|
init_VirtualizedList$1();
|
|
10815
11035
|
}));
|
|
10816
11036
|
//#endregion
|
|
10817
|
-
//#region ../../
|
|
11037
|
+
//#region ../../react-native-web-lite/dist/esm/UnimplementedView.mjs
|
|
10818
11038
|
var UnimplementedView;
|
|
10819
11039
|
var init_UnimplementedView = __esmMin((() => {
|
|
10820
11040
|
init_View();
|
|
@@ -10831,12 +11051,12 @@ var init_UnimplementedView = __esmMin((() => {
|
|
|
10831
11051
|
};
|
|
10832
11052
|
}));
|
|
10833
11053
|
//#endregion
|
|
10834
|
-
//#region ../../
|
|
11054
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableNativeFeedback.mjs
|
|
10835
11055
|
var init_TouchableNativeFeedback = __esmMin((() => {
|
|
10836
11056
|
init_UnimplementedView();
|
|
10837
11057
|
}));
|
|
10838
11058
|
//#endregion
|
|
10839
|
-
//#region ../../
|
|
11059
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableOpacity.mjs
|
|
10840
11060
|
function TouchableOpacityImpl(props, forwardedRef) {
|
|
10841
11061
|
const { activeOpacity, delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, style } = props, rest = _objectWithoutProperties(props, _excluded$62);
|
|
10842
11062
|
const hostRef = (0, react$1.useRef)(null);
|
|
@@ -10931,7 +11151,7 @@ var init_TouchableOpacity = __esmMin((() => {
|
|
|
10931
11151
|
TouchableOpacity.Mixin = {};
|
|
10932
11152
|
}));
|
|
10933
11153
|
//#endregion
|
|
10934
|
-
//#region ../../
|
|
11154
|
+
//#region ../../react-native-web-lite/dist/esm/TouchableWithoutFeedback.mjs
|
|
10935
11155
|
function TouchableWithoutFeedbackImpl(props, forwardedRef) {
|
|
10936
11156
|
const { delayPressIn, delayPressOut, delayLongPress, disabled, focusable, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination } = props;
|
|
10937
11157
|
const hostRef = (0, react$1.useRef)(null);
|
|
@@ -10989,7 +11209,7 @@ var init_TouchableWithoutFeedback = __esmMin((() => {
|
|
|
10989
11209
|
TouchableWithoutFeedback.displayName = "TouchableWithoutFeedback";
|
|
10990
11210
|
}));
|
|
10991
11211
|
//#endregion
|
|
10992
|
-
//#region ../../
|
|
11212
|
+
//#region ../../react-native-web-lite/dist/esm/ActivityIndicator/index.mjs
|
|
10993
11213
|
var _excluded$61, createSvgCircle, ActivityIndicator, styles$3, indicatorSizes;
|
|
10994
11214
|
var init_ActivityIndicator = __esmMin((() => {
|
|
10995
11215
|
init_esm$1();
|
|
@@ -11076,7 +11296,7 @@ var init_ActivityIndicator = __esmMin((() => {
|
|
|
11076
11296
|
});
|
|
11077
11297
|
}));
|
|
11078
11298
|
//#endregion
|
|
11079
|
-
//#region ../../
|
|
11299
|
+
//#region ../../react-native-web-lite/dist/esm/ImageBackground/index.mjs
|
|
11080
11300
|
var _excluded$60, emptyObject$1, ImageBackground;
|
|
11081
11301
|
var init_ImageBackground = __esmMin((() => {
|
|
11082
11302
|
init_esm$1();
|
|
@@ -11114,7 +11334,7 @@ var init_ImageBackground = __esmMin((() => {
|
|
|
11114
11334
|
ImageBackground.displayName = "ImageBackground";
|
|
11115
11335
|
}));
|
|
11116
11336
|
//#endregion
|
|
11117
|
-
//#region ../../
|
|
11337
|
+
//#region ../../react-native-web-lite/dist/esm/KeyboardAvoidingView/index.mjs
|
|
11118
11338
|
var _excluded$59, KeyboardAvoidingView;
|
|
11119
11339
|
var init_KeyboardAvoidingView = __esmMin((() => {
|
|
11120
11340
|
init_View();
|
|
@@ -11148,7 +11368,7 @@ var init_KeyboardAvoidingView = __esmMin((() => {
|
|
|
11148
11368
|
};
|
|
11149
11369
|
}));
|
|
11150
11370
|
//#endregion
|
|
11151
|
-
//#region ../../
|
|
11371
|
+
//#region ../../react-native-web-lite/dist/esm/LogBox/index.mjs
|
|
11152
11372
|
var LogBox;
|
|
11153
11373
|
var init_LogBox = __esmMin((() => {
|
|
11154
11374
|
LogBox = {
|
|
@@ -11159,13 +11379,13 @@ var init_LogBox = __esmMin((() => {
|
|
|
11159
11379
|
};
|
|
11160
11380
|
}));
|
|
11161
11381
|
//#endregion
|
|
11162
|
-
//#region ../../
|
|
11382
|
+
//#region ../../react-native-web-lite/dist/esm/Modal/index.mjs
|
|
11163
11383
|
var Modal;
|
|
11164
11384
|
var init_Modal = __esmMin((() => {
|
|
11165
11385
|
Modal = () => null;
|
|
11166
11386
|
}));
|
|
11167
11387
|
//#endregion
|
|
11168
|
-
//#region ../../
|
|
11388
|
+
//#region ../../react-native-web-lite/dist/esm/Pressable/index.mjs
|
|
11169
11389
|
function Pressable(props, forwardedRef) {
|
|
11170
11390
|
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);
|
|
11171
11391
|
const [hovered, setHovered] = useForceableState(testOnly_hovered === true);
|
|
@@ -11295,7 +11515,7 @@ var init_Pressable = __esmMin((() => {
|
|
|
11295
11515
|
PressableComponent.displayName = "Pressable";
|
|
11296
11516
|
}));
|
|
11297
11517
|
//#endregion
|
|
11298
|
-
//#region ../../
|
|
11518
|
+
//#region ../../react-native-web-lite/dist/esm/SafeAreaView/index.mjs
|
|
11299
11519
|
var _excluded$57, cssFunction, SafeAreaView, styles$1;
|
|
11300
11520
|
var init_SafeAreaView = __esmMin((() => {
|
|
11301
11521
|
init_esm$1();
|
|
@@ -11323,7 +11543,7 @@ var init_SafeAreaView = __esmMin((() => {
|
|
|
11323
11543
|
} });
|
|
11324
11544
|
}));
|
|
11325
11545
|
//#endregion
|
|
11326
|
-
//#region ../../
|
|
11546
|
+
//#region ../../react-native-web-lite/dist/esm/StatusBar/index.mjs
|
|
11327
11547
|
function StatusBar() {
|
|
11328
11548
|
return null;
|
|
11329
11549
|
}
|
|
@@ -11337,7 +11557,7 @@ var init_StatusBar = __esmMin((() => {
|
|
|
11337
11557
|
StatusBar.setTranslucent = emptyFunction;
|
|
11338
11558
|
}));
|
|
11339
11559
|
//#endregion
|
|
11340
|
-
//#region ../../
|
|
11560
|
+
//#region ../../react-native-web-lite/dist/esm/TextInput/index.mjs
|
|
11341
11561
|
function isEventComposing(nativeEvent) {
|
|
11342
11562
|
return nativeEvent.isComposing || nativeEvent.keyCode === 229;
|
|
11343
11563
|
}
|
|
@@ -11579,7 +11799,7 @@ var init_TextInput = __esmMin((() => {
|
|
|
11579
11799
|
});
|
|
11580
11800
|
}));
|
|
11581
11801
|
//#endregion
|
|
11582
|
-
//#region ../../
|
|
11802
|
+
//#region ../../react-native-web-lite/dist/esm/useColorScheme/index.mjs
|
|
11583
11803
|
function useColorScheme() {
|
|
11584
11804
|
const [colorScheme, setColorScheme] = react$1.useState(Appearance.getColorScheme());
|
|
11585
11805
|
react$1.useEffect(() => {
|
|
@@ -11595,12 +11815,12 @@ var init_useColorScheme = __esmMin((() => {
|
|
|
11595
11815
|
init_Appearance();
|
|
11596
11816
|
}));
|
|
11597
11817
|
//#endregion
|
|
11598
|
-
//#region ../../
|
|
11818
|
+
//#region ../../react-native-web-lite/dist/esm/useLocaleContext/index.mjs
|
|
11599
11819
|
var init_useLocaleContext = __esmMin((() => {
|
|
11600
11820
|
init_esm$1();
|
|
11601
11821
|
}));
|
|
11602
11822
|
//#endregion
|
|
11603
|
-
//#region ../../
|
|
11823
|
+
//#region ../../react-native-web-lite/dist/esm/useWindowDimensions/index.mjs
|
|
11604
11824
|
function useWindowDimensions$1() {
|
|
11605
11825
|
const [dims, setDims] = react$1.default.useState(() => Dimensions.get("window"));
|
|
11606
11826
|
react$1.default.useEffect(() => {
|
|
@@ -11619,7 +11839,7 @@ var init_useWindowDimensions = __esmMin((() => {
|
|
|
11619
11839
|
init_Dimensions();
|
|
11620
11840
|
}));
|
|
11621
11841
|
//#endregion
|
|
11622
|
-
//#region ../../
|
|
11842
|
+
//#region ../../react-native-web-lite/dist/esm/index.mjs
|
|
11623
11843
|
var esm_exports = /* @__PURE__ */ __exportAll({
|
|
11624
11844
|
AccessibilityInfo: () => AccessibilityInfo,
|
|
11625
11845
|
AccessibilityUtil: () => AccessibilityUtil,
|
|
@@ -11804,7 +12024,7 @@ var init_config_native = __esmMin((() => {
|
|
|
11804
12024
|
init_index_native$7();
|
|
11805
12025
|
getConfigFromGlobalOrLocal = function() {
|
|
11806
12026
|
if (conf$1) return conf$1;
|
|
11807
|
-
if (globalThis.
|
|
12027
|
+
if (globalThis.__guiConfig) return globalThis.__guiConfig;
|
|
11808
12028
|
return null;
|
|
11809
12029
|
};
|
|
11810
12030
|
getSetting = function(key) {
|
|
@@ -11814,7 +12034,7 @@ var init_config_native = __esmMin((() => {
|
|
|
11814
12034
|
};
|
|
11815
12035
|
setConfig = function(next) {
|
|
11816
12036
|
conf$1 = next;
|
|
11817
|
-
globalThis.
|
|
12037
|
+
globalThis.__guiConfig = next;
|
|
11818
12038
|
};
|
|
11819
12039
|
setConfigFont = function(name, font, fontParsed) {
|
|
11820
12040
|
var config = getConfigFromGlobalOrLocal();
|
|
@@ -11823,7 +12043,7 @@ var init_config_native = __esmMin((() => {
|
|
|
11823
12043
|
};
|
|
11824
12044
|
getConfig = function() {
|
|
11825
12045
|
var config = getConfigFromGlobalOrLocal();
|
|
11826
|
-
if (!config) throw new Error(`Missing
|
|
12046
|
+
if (!config) throw new Error(`Missing gui config, you either have a duplicate config, or haven't set it up. Be sure createGui is called before rendering. Also, make sure all of your gui dependencies are on the same version (\`gui\`, \`@hanzogui/package-name\`, etc.) not just in your package.json, but in your lockfile.`);
|
|
11827
12047
|
return config;
|
|
11828
12048
|
};
|
|
11829
12049
|
getConfigMaybe = function() {
|
|
@@ -12736,7 +12956,7 @@ function _type_of$13(obj) {
|
|
|
12736
12956
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
12737
12957
|
}
|
|
12738
12958
|
function constructCSSVariableName(name) {
|
|
12739
|
-
return `var(--${process.env.
|
|
12959
|
+
return `var(--${process.env.GUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
12740
12960
|
}
|
|
12741
12961
|
function variableToString(vrble) {
|
|
12742
12962
|
arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
@@ -13216,7 +13436,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
|
|
|
13216
13436
|
var [key, value] = param;
|
|
13217
13437
|
var proxied2 = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
13218
13438
|
get val() {
|
|
13219
|
-
if (!globalThis.
|
|
13439
|
+
if (!globalThis.guiAvoidTracking) track(key, false);
|
|
13220
13440
|
return value.val;
|
|
13221
13441
|
},
|
|
13222
13442
|
get(platform) {
|
|
@@ -13343,7 +13563,7 @@ var init_index_native$4 = __esmMin((() => {
|
|
|
13343
13563
|
//#endregion
|
|
13344
13564
|
//#region ../../core/native/dist/esm/globalState.native.js
|
|
13345
13565
|
function createGlobalState(key, defaultValue) {
|
|
13346
|
-
var GLOBAL_KEY = `
|
|
13566
|
+
var GLOBAL_KEY = `__gui_${key}__`;
|
|
13347
13567
|
function getGlobalState() {
|
|
13348
13568
|
var g = globalThis;
|
|
13349
13569
|
if (!g[GLOBAL_KEY]) g[GLOBAL_KEY] = defaultValue;
|
|
@@ -13438,7 +13658,7 @@ function getGestureHandler() {
|
|
|
13438
13658
|
var didLongPress = false;
|
|
13439
13659
|
var didPressIn = false;
|
|
13440
13660
|
var pressInTimer = null;
|
|
13441
|
-
var GRACE_PERIOD_MS = process.env.
|
|
13661
|
+
var GRACE_PERIOD_MS = process.env.GUI_RNGH_PRESS_DELAY ? +process.env.GUI_RNGH_PRESS_DELAY : 24;
|
|
13442
13662
|
var tryClaimOwnership = function(e) {
|
|
13443
13663
|
var now = Date.now();
|
|
13444
13664
|
resetStaleOwner(now, config.debugName);
|
|
@@ -13713,7 +13933,7 @@ var init_burntState_native = __esmMin((() => {
|
|
|
13713
13933
|
function NativePortal(param) {
|
|
13714
13934
|
var { hostName = "root", children } = param;
|
|
13715
13935
|
if (getPortal().state.type !== "teleport") return null;
|
|
13716
|
-
var { Portal } = globalThis.
|
|
13936
|
+
var { Portal } = globalThis.__gui_teleport;
|
|
13717
13937
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Portal, {
|
|
13718
13938
|
hostName,
|
|
13719
13939
|
children
|
|
@@ -13722,13 +13942,13 @@ function NativePortal(param) {
|
|
|
13722
13942
|
function NativePortalHost(param) {
|
|
13723
13943
|
var { name } = param;
|
|
13724
13944
|
if (getPortal().state.type !== "teleport") return null;
|
|
13725
|
-
var { PortalHost } = globalThis.
|
|
13945
|
+
var { PortalHost } = globalThis.__gui_teleport;
|
|
13726
13946
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalHost, { name });
|
|
13727
13947
|
}
|
|
13728
13948
|
function NativePortalProvider(param) {
|
|
13729
13949
|
var { children } = param;
|
|
13730
13950
|
if (getPortal().state.type !== "teleport") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
|
|
13731
|
-
var { PortalProvider } = globalThis.
|
|
13951
|
+
var { PortalProvider } = globalThis.__gui_teleport;
|
|
13732
13952
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProvider, { children });
|
|
13733
13953
|
}
|
|
13734
13954
|
var init_components_native = __esmMin((() => {
|
|
@@ -14114,17 +14334,16 @@ var init_getCSSStylesAtomic_native = __esmMin((() => {
|
|
|
14114
14334
|
function scanAllSheets() {
|
|
14115
14335
|
arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
|
|
14116
14336
|
arguments.length > 1 && arguments[1];
|
|
14117
|
-
if (!process.env.
|
|
14337
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) return;
|
|
14118
14338
|
}
|
|
14119
14339
|
function stopAccumulatingRules() {
|
|
14120
14340
|
trackAllRules = false;
|
|
14121
14341
|
}
|
|
14122
|
-
function insertStyleRules(rulesToInsert) {}
|
|
14123
14342
|
var bailAfterEnv, trackAllRules;
|
|
14124
14343
|
var init_insertStyleRule_native = __esmMin((() => {
|
|
14125
|
-
bailAfterEnv = process.env.
|
|
14344
|
+
bailAfterEnv = process.env.GUI_BAIL_AFTER_SCANNING_X_CSS_RULES;
|
|
14126
14345
|
bailAfterEnv && +bailAfterEnv;
|
|
14127
|
-
process.env.
|
|
14346
|
+
process.env.GUI_INSERT_SELECTOR_TRIES && +process.env.GUI_INSERT_SELECTOR_TRIES;
|
|
14128
14347
|
}));
|
|
14129
14348
|
//#endregion
|
|
14130
14349
|
//#region ../../core/web/dist/esm/helpers/isActivePlatform.native.js
|
|
@@ -15064,7 +15283,7 @@ var init_propMapper_native = __esmMin((() => {
|
|
|
15064
15283
|
if (!variants) return;
|
|
15065
15284
|
var variantValue = getVariantDefinition(variants[key], value, conf, styleState);
|
|
15066
15285
|
if (!variantValue) {
|
|
15067
|
-
if (process.env.
|
|
15286
|
+
if (process.env.GUI_WARN_ON_MISSING_VARIANT === "1") {
|
|
15068
15287
|
if (typeof value !== "boolean") {
|
|
15069
15288
|
var name = staticConfig.componentName || "[UnnamedComponent]";
|
|
15070
15289
|
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
|
|
@@ -15242,7 +15461,6 @@ function mergeStyle(styleState, key, val, importance) {
|
|
|
15242
15461
|
}
|
|
15243
15462
|
}
|
|
15244
15463
|
}
|
|
15245
|
-
function addStyleToInsertRules(rulesToInsert, styleObject) {}
|
|
15246
15464
|
function passDownProp(viewProps, key, val) {
|
|
15247
15465
|
if (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false) {
|
|
15248
15466
|
var next = _objectSpread2(_objectSpread2({}, viewProps[key]), val);
|
|
@@ -15422,7 +15640,6 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15422
15640
|
for (var _iterator3 = pseudoStyles[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
15423
15641
|
var psuedoStyle = _step3.value;
|
|
15424
15642
|
var fullKey = `${psuedoStyle[0]}-${descriptor.name}`;
|
|
15425
|
-
addStyleToInsertRules(rulesToInsert, psuedoStyle);
|
|
15426
15643
|
classNames[fullKey] = psuedoStyle[2];
|
|
15427
15644
|
}
|
|
15428
15645
|
} catch (err) {
|
|
@@ -15487,7 +15704,6 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15487
15704
|
var out = createMediaStyle(style3, mediaKeyShort, mediaQueryConfig, isMedia, false, priority);
|
|
15488
15705
|
var subKey = isSubStyle ? style3[2] : "";
|
|
15489
15706
|
var fullKey1 = `${style3[0]}${subKey}-${mediaKeyShort}${style3[3] || ""}`;
|
|
15490
|
-
addStyleToInsertRules(rulesToInsert, out);
|
|
15491
15707
|
classNames[fullKey1] = out[2];
|
|
15492
15708
|
}
|
|
15493
15709
|
} catch (err) {
|
|
@@ -15832,7 +16048,7 @@ var init_getSplitStyles_native = __esmMin((() => {
|
|
|
15832
16048
|
"use no memo";
|
|
15833
16049
|
return getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
|
|
15834
16050
|
};
|
|
15835
|
-
defaultColor = process.env.
|
|
16051
|
+
defaultColor = process.env.GUI_DEFAULT_COLOR || "rgba(0,0,0,0)";
|
|
15836
16052
|
animatableDefaults = _objectSpread2(_objectSpread2({}, Object.fromEntries(Object.entries(tokenCategories.color).map(function(param) {
|
|
15837
16053
|
var [k, v] = param;
|
|
15838
16054
|
return [k, defaultColor];
|
|
@@ -16244,9 +16460,6 @@ var init_themeable_native = __esmMin((() => {
|
|
|
16244
16460
|
"themeReset"
|
|
16245
16461
|
];
|
|
16246
16462
|
}));
|
|
16247
|
-
//#endregion
|
|
16248
|
-
//#region ../../core/web/dist/esm/helpers/wrapStyleTags.native.js
|
|
16249
|
-
function getStyleTags(styles) {}
|
|
16250
16463
|
var init_wrapStyleTags_native = __esmMin((() => {}));
|
|
16251
16464
|
//#endregion
|
|
16252
16465
|
//#region ../../core/use-did-finish-ssr/dist/esm/ClientOnly.native.js
|
|
@@ -16677,8 +16890,8 @@ function createComponent(staticConfig) {
|
|
|
16677
16890
|
setMediaShouldUpdate(componentContext, didGetVariableValue() || hasRuntimeMediaKeys || noClass && (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.hasMedia) === true, hasRuntimeMediaKeys ? splitStyles.hasMedia : null);
|
|
16678
16891
|
var { viewProps: viewPropsIn, pseudos, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
|
|
16679
16892
|
var propsWithAnimation = props;
|
|
16680
|
-
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,
|
|
16681
|
-
var viewProps =
|
|
16893
|
+
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);
|
|
16894
|
+
var viewProps = nonGuiProps;
|
|
16682
16895
|
if (props.forceStyle) viewProps.forceStyle = props.forceStyle;
|
|
16683
16896
|
if (isHOC) {
|
|
16684
16897
|
if (typeof _themeProp !== "undefined") viewProps.theme = _themeProp;
|
|
@@ -16717,7 +16930,7 @@ function createComponent(staticConfig) {
|
|
|
16717
16930
|
}
|
|
16718
16931
|
}
|
|
16719
16932
|
}
|
|
16720
|
-
if (!isPassthrough && groupContext && props.containerType !== "normal")
|
|
16933
|
+
if (!isPassthrough && groupContext && props.containerType !== "normal") nonGuiProps.onLayout = composeEventHandlers(nonGuiProps.onLayout, function(e) {
|
|
16721
16934
|
var _stateRef_current_group;
|
|
16722
16935
|
var layout = e.nativeEvent.layout;
|
|
16723
16936
|
groupContext.state.layout = layout;
|
|
@@ -16727,7 +16940,7 @@ function createComponent(staticConfig) {
|
|
|
16727
16940
|
});
|
|
16728
16941
|
stateRef.current.hasMeasured = true;
|
|
16729
16942
|
});
|
|
16730
|
-
viewProps = ((_hooks_usePropsTransform = hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(hooks, elementType,
|
|
16943
|
+
viewProps = ((_hooks_usePropsTransform = hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(hooks, elementType, nonGuiProps, stateRef, stateRef.current.willHydrate)) || nonGuiProps;
|
|
16731
16944
|
if (!stateRef.current.composedRef) stateRef.current.composedRef = composeRefs(function(x) {
|
|
16732
16945
|
return stateRef.current.host = x;
|
|
16733
16946
|
}, forwardedRef, setElementProps, animatedRef);
|
|
@@ -16955,7 +17168,7 @@ function createComponent(staticConfig) {
|
|
|
16955
17168
|
var out = typeof Component2 === "function" && Component2.length === 1 ? Component2 : /* @__PURE__ */ react$1.default.forwardRef(Component2);
|
|
16956
17169
|
var extendedConfig = extendStyledConfig(options === null || options === void 0 ? void 0 : options.staticConfig);
|
|
16957
17170
|
out = (options === null || options === void 0 ? void 0 : options.disableTheme) ? out : themeable(out, extendedConfig, true);
|
|
16958
|
-
if (extendedConfig.memo || process.env.
|
|
17171
|
+
if (extendedConfig.memo || process.env.GUI_MEMOIZE_STYLEABLE) out = /* @__PURE__ */ react$1.default.memo(out);
|
|
16959
17172
|
out.staticConfig = extendedConfig;
|
|
16960
17173
|
out.styleable = styleable;
|
|
16961
17174
|
return out;
|
|
@@ -17085,29 +17298,29 @@ var registerCSSVariable, variableToCSS, tokensValueToVariable;
|
|
|
17085
17298
|
var init_registerCSSVariable_native = __esmMin((() => {
|
|
17086
17299
|
init_createVariable_native();
|
|
17087
17300
|
registerCSSVariable = function(v) {
|
|
17088
|
-
if (!process.env.
|
|
17301
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) tokensValueToVariable.set(getVariableValue(v), v);
|
|
17089
17302
|
};
|
|
17090
17303
|
variableToCSS = function(v) {
|
|
17091
17304
|
var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
17092
|
-
if (!process.env.
|
|
17305
|
+
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}`;
|
|
17093
17306
|
return "";
|
|
17094
17307
|
};
|
|
17095
17308
|
tokensValueToVariable = /* @__PURE__ */ new Map();
|
|
17096
17309
|
}));
|
|
17097
17310
|
//#endregion
|
|
17098
|
-
//#region ../../core/web/dist/esm/helpers/
|
|
17099
|
-
function
|
|
17311
|
+
//#region ../../core/web/dist/esm/helpers/isGuiComponent.native.js
|
|
17312
|
+
function isGuiComponent(comp, name) {
|
|
17100
17313
|
var config = comp === null || comp === void 0 ? void 0 : comp["staticConfig"];
|
|
17101
17314
|
return Boolean(config && (name ? name === config.componentName : true));
|
|
17102
17315
|
}
|
|
17103
|
-
var
|
|
17316
|
+
var init_isGuiComponent_native = __esmMin((() => {}));
|
|
17104
17317
|
//#endregion
|
|
17105
|
-
//#region ../../core/web/dist/esm/helpers/
|
|
17106
|
-
var
|
|
17107
|
-
var
|
|
17108
|
-
|
|
17109
|
-
|
|
17110
|
-
return /* @__PURE__ */ react$1.default.isValidElement(child) &&
|
|
17318
|
+
//#region ../../core/web/dist/esm/helpers/isGuiElement.native.js
|
|
17319
|
+
var isGuiElement;
|
|
17320
|
+
var init_isGuiElement_native = __esmMin((() => {
|
|
17321
|
+
init_isGuiComponent_native();
|
|
17322
|
+
isGuiElement = function(child, name) {
|
|
17323
|
+
return /* @__PURE__ */ react$1.default.isValidElement(child) && isGuiComponent(child.type, name);
|
|
17111
17324
|
};
|
|
17112
17325
|
}));
|
|
17113
17326
|
//#endregion
|
|
@@ -17328,7 +17541,7 @@ var init_createVariables_native = __esmMin((() => {
|
|
|
17328
17541
|
var noAnimationDriver, createEmptyAnimationDriver, defaultAnimationDriver;
|
|
17329
17542
|
var init_defaultAnimationDriver_native = __esmMin((() => {
|
|
17330
17543
|
noAnimationDriver = function(method) {
|
|
17331
|
-
console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to
|
|
17544
|
+
console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to createGui. See: https://gui.dev/docs/core/animations`);
|
|
17332
17545
|
};
|
|
17333
17546
|
createEmptyAnimationDriver = function() {
|
|
17334
17547
|
return {
|
|
@@ -17382,7 +17595,7 @@ function getFontPropertyDeclarations(fontParsed) {
|
|
|
17382
17595
|
return props;
|
|
17383
17596
|
}
|
|
17384
17597
|
function createTokenCSS(tokens, shouldTokenCategoryHaveUnits) {
|
|
17385
|
-
if (!process.env.
|
|
17598
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17386
17599
|
var declarations = [];
|
|
17387
17600
|
var sortedTokenKeys = Object.keys(tokens).sort();
|
|
17388
17601
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
@@ -17422,7 +17635,7 @@ function createTokenCSS(tokens, shouldTokenCategoryHaveUnits) {
|
|
|
17422
17635
|
return [];
|
|
17423
17636
|
}
|
|
17424
17637
|
function createFontCSS(fontsParsed, registerFontVariables) {
|
|
17425
|
-
if (!process.env.
|
|
17638
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17426
17639
|
var fontDeclarations = {};
|
|
17427
17640
|
if (!fontsParsed) return fontDeclarations;
|
|
17428
17641
|
var sortedFontKeys = Object.keys(fontsParsed).sort();
|
|
@@ -17456,7 +17669,7 @@ function createFontCSS(fontsParsed, registerFontVariables) {
|
|
|
17456
17669
|
}
|
|
17457
17670
|
function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
17458
17671
|
var defaultFontToken = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "$true";
|
|
17459
|
-
if (!process.env.
|
|
17672
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17460
17673
|
let declarationsToRuleSet2 = function(decs) {
|
|
17461
17674
|
return `:root${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""} {${sep}${[...decs].join(`;${sep}`)}
|
|
17462
17675
|
}`;
|
|
@@ -17499,13 +17712,13 @@ function buildCSSRuleSets(declarations, fontDeclarations) {
|
|
|
17499
17712
|
return [];
|
|
17500
17713
|
}
|
|
17501
17714
|
function createThemeCSS(dedupedThemes, configIn) {
|
|
17502
|
-
if (!process.env.
|
|
17715
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) return [];
|
|
17503
17716
|
return [];
|
|
17504
17717
|
}
|
|
17505
17718
|
function getCSS(themeConfig) {
|
|
17506
17719
|
arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
17507
17720
|
arguments.length > 2 && arguments[2];
|
|
17508
|
-
if (!process.env.
|
|
17721
|
+
if (!process.env.GUI_DID_OUTPUT_CSS && false);
|
|
17509
17722
|
return "";
|
|
17510
17723
|
}
|
|
17511
17724
|
var init_createDesignSystem_native = __esmMin((() => {
|
|
@@ -17540,7 +17753,7 @@ function parseFont(definition) {
|
|
|
17540
17753
|
return parsed;
|
|
17541
17754
|
}
|
|
17542
17755
|
function registerFontVariables(parsedFont) {
|
|
17543
|
-
if (!process.env.
|
|
17756
|
+
if (!process.env.GUI_DID_OUTPUT_CSS) {
|
|
17544
17757
|
var response = [];
|
|
17545
17758
|
for (var fkey in parsedFont) {
|
|
17546
17759
|
if (fkey === "face") continue;
|
|
@@ -17565,10 +17778,10 @@ var init_insertFont_native = __esmMin((() => {
|
|
|
17565
17778
|
init_registerCSSVariable_native();
|
|
17566
17779
|
}));
|
|
17567
17780
|
//#endregion
|
|
17568
|
-
//#region ../../core/web/dist/esm/
|
|
17569
|
-
var
|
|
17781
|
+
//#region ../../core/web/dist/esm/Gui.native.js
|
|
17782
|
+
var init_Gui_native = __esmMin((() => {}));
|
|
17570
17783
|
//#endregion
|
|
17571
|
-
//#region ../../core/web/dist/esm/
|
|
17784
|
+
//#region ../../core/web/dist/esm/createGui.native.js
|
|
17572
17785
|
function shouldTokenCategoryHaveUnits(category) {
|
|
17573
17786
|
return (/* @__PURE__ */ new Set([
|
|
17574
17787
|
"size",
|
|
@@ -17576,11 +17789,11 @@ function shouldTokenCategoryHaveUnits(category) {
|
|
|
17576
17789
|
"radius"
|
|
17577
17790
|
])).has(category);
|
|
17578
17791
|
}
|
|
17579
|
-
function
|
|
17792
|
+
function initializeGuiConfig(config) {
|
|
17580
17793
|
setConfig(config);
|
|
17581
17794
|
configureMedia(config);
|
|
17582
17795
|
}
|
|
17583
|
-
function
|
|
17796
|
+
function createGui$2(configIn) {
|
|
17584
17797
|
var _configIn_settings, _configIn_settings1;
|
|
17585
17798
|
var existingConfig = getConfigMaybe();
|
|
17586
17799
|
if (existingConfig) configIn = _objectSpread2(_objectSpread2({}, existingConfig), configIn);
|
|
@@ -17605,7 +17818,7 @@ function createHanzogui$2(configIn) {
|
|
|
17605
17818
|
var foundThemes;
|
|
17606
17819
|
if (configIn.themes) {
|
|
17607
17820
|
var noThemes = Object.keys(configIn.themes).length === 0;
|
|
17608
|
-
if (noThemes && !process.env.
|
|
17821
|
+
if (noThemes && !process.env.GUI_DID_OUTPUT_CSS) foundThemes = scanAllSheets(noThemes, tokensParsed);
|
|
17609
17822
|
}
|
|
17610
17823
|
var fontSizeTokens = null;
|
|
17611
17824
|
var fontsParsed;
|
|
@@ -17724,7 +17937,7 @@ function createHanzogui$2(configIn) {
|
|
|
17724
17937
|
specificTokens,
|
|
17725
17938
|
defaultFontToken
|
|
17726
17939
|
});
|
|
17727
|
-
|
|
17940
|
+
initializeGuiConfig(config);
|
|
17728
17941
|
return config;
|
|
17729
17942
|
}
|
|
17730
17943
|
function getThemesDeduped(themes, colorTokens) {
|
|
@@ -17764,7 +17977,7 @@ function getThemesDeduped(themes, colorTokens) {
|
|
|
17764
17977
|
return dedupedThemes;
|
|
17765
17978
|
}
|
|
17766
17979
|
var builtinShorthands;
|
|
17767
|
-
var
|
|
17980
|
+
var init_createGui_native = __esmMin((() => {
|
|
17768
17981
|
init_config_native();
|
|
17769
17982
|
init_createVariables_native();
|
|
17770
17983
|
init_defaultAnimationDriver_native();
|
|
@@ -17823,8 +18036,8 @@ var init_createHanzogui_native = __esmMin((() => {
|
|
|
17823
18036
|
//#endregion
|
|
17824
18037
|
//#region ../../core/web/dist/esm/createTokens.native.js
|
|
17825
18038
|
function createTokens(tokens) {
|
|
17826
|
-
var
|
|
17827
|
-
return createVariables(tokens, (
|
|
18039
|
+
var _process_env_GUI_TOKEN_PREFIX;
|
|
18040
|
+
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");
|
|
17828
18041
|
}
|
|
17829
18042
|
var init_createTokens_native = __esmMin((() => {
|
|
17830
18043
|
init_createVariables_native();
|
|
@@ -18151,11 +18364,11 @@ var init_Configuration_native = __esmMin((() => {
|
|
|
18151
18364
|
};
|
|
18152
18365
|
}));
|
|
18153
18366
|
//#endregion
|
|
18154
|
-
//#region ../../core/web/dist/esm/views/
|
|
18155
|
-
function
|
|
18367
|
+
//#region ../../core/web/dist/esm/views/GuiRoot.native.js
|
|
18368
|
+
function GuiRoot(props) {
|
|
18156
18369
|
return props.children;
|
|
18157
18370
|
}
|
|
18158
|
-
var
|
|
18371
|
+
var init_GuiRoot_native = __esmMin((() => {}));
|
|
18159
18372
|
//#endregion
|
|
18160
18373
|
//#region ../../core/web/dist/esm/views/FontLanguage.native.js
|
|
18161
18374
|
function FontLanguage(param) {
|
|
@@ -18195,7 +18408,7 @@ var init_ThemeProvider_native = __esmMin((() => {
|
|
|
18195
18408
|
};
|
|
18196
18409
|
}));
|
|
18197
18410
|
//#endregion
|
|
18198
|
-
//#region ../../core/web/dist/esm/views/
|
|
18411
|
+
//#region ../../core/web/dist/esm/views/GuiProvider.native.js
|
|
18199
18412
|
function firstThemeKey(config) {
|
|
18200
18413
|
if (config !== _cachedConfig) {
|
|
18201
18414
|
_cachedConfig = config;
|
|
@@ -18203,7 +18416,7 @@ function firstThemeKey(config) {
|
|
|
18203
18416
|
}
|
|
18204
18417
|
return _cachedFirstKey;
|
|
18205
18418
|
}
|
|
18206
|
-
function
|
|
18419
|
+
function GuiProvider$2(param) {
|
|
18207
18420
|
var { children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets } = param;
|
|
18208
18421
|
var defaultTheme = defaultThemeProp || firstThemeKey(config) || "light";
|
|
18209
18422
|
useIsomorphicLayoutEffect(function() {
|
|
@@ -18232,7 +18445,7 @@ function HanzoguiProvider$2(param) {
|
|
|
18232
18445
|
defaultTheme,
|
|
18233
18446
|
reset,
|
|
18234
18447
|
className,
|
|
18235
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18448
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiRoot, {
|
|
18236
18449
|
theme: defaultTheme,
|
|
18237
18450
|
isRootRoot: true,
|
|
18238
18451
|
children
|
|
@@ -18246,7 +18459,7 @@ function HanzoguiProvider$2(param) {
|
|
|
18246
18459
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [contents, false] });
|
|
18247
18460
|
}
|
|
18248
18461
|
var _cachedFirstKey, _cachedConfig;
|
|
18249
|
-
var
|
|
18462
|
+
var init_GuiProvider_native = __esmMin((() => {
|
|
18250
18463
|
init_index_native$7();
|
|
18251
18464
|
init_index_native$2();
|
|
18252
18465
|
init_config_native();
|
|
@@ -18254,7 +18467,7 @@ var init_HanzoguiProvider_native = __esmMin((() => {
|
|
|
18254
18467
|
init_insertStyleRule_native();
|
|
18255
18468
|
init_useMedia_native();
|
|
18256
18469
|
init_resolveAnimationDriver_native();
|
|
18257
|
-
|
|
18470
|
+
init_GuiRoot_native();
|
|
18258
18471
|
init_ThemeProvider_native();
|
|
18259
18472
|
}));
|
|
18260
18473
|
//#endregion
|
|
@@ -18333,8 +18546,8 @@ var init_index_native = __esmMin((() => {
|
|
|
18333
18546
|
init_getThemeCSSRules_native();
|
|
18334
18547
|
init_getVariantExtras_native();
|
|
18335
18548
|
init_insertStyleRule_native();
|
|
18336
|
-
|
|
18337
|
-
|
|
18549
|
+
init_isGuiComponent_native();
|
|
18550
|
+
init_isGuiElement_native();
|
|
18338
18551
|
init_matchMedia_native();
|
|
18339
18552
|
init_mergeProps_native();
|
|
18340
18553
|
init_mergeSlotStyleProps_native();
|
|
@@ -18353,14 +18566,14 @@ var init_index_native = __esmMin((() => {
|
|
|
18353
18566
|
init_createComponent_native();
|
|
18354
18567
|
init_createFont_native();
|
|
18355
18568
|
init_createShorthands_native();
|
|
18356
|
-
|
|
18569
|
+
init_createGui_native();
|
|
18357
18570
|
init_createTokens_native();
|
|
18358
18571
|
init_createVariable_native();
|
|
18359
18572
|
init_createVariables_native();
|
|
18360
18573
|
init_insertFont_native();
|
|
18361
18574
|
init_setupReactNative_native();
|
|
18362
18575
|
init_styled_native();
|
|
18363
|
-
|
|
18576
|
+
init_Gui_native();
|
|
18364
18577
|
init_GetRef_native();
|
|
18365
18578
|
init_config_native();
|
|
18366
18579
|
init_constants_native();
|
|
@@ -18371,10 +18584,10 @@ var init_index_native = __esmMin((() => {
|
|
|
18371
18584
|
init_useThemeName_native();
|
|
18372
18585
|
init_useThemeState_native();
|
|
18373
18586
|
init_Configuration_native();
|
|
18374
|
-
|
|
18587
|
+
init_GuiRoot_native();
|
|
18375
18588
|
init_FontLanguage_native();
|
|
18376
18589
|
init_Slot_native();
|
|
18377
|
-
|
|
18590
|
+
init_GuiProvider_native();
|
|
18378
18591
|
init_Text_native();
|
|
18379
18592
|
init_Theme_native();
|
|
18380
18593
|
init_ThemeProvider_native();
|
|
@@ -19122,15 +19335,15 @@ init_index_native();
|
|
|
19122
19335
|
init_index_native$7();
|
|
19123
19336
|
init_index_native$11();
|
|
19124
19337
|
init_index_native();
|
|
19125
|
-
var
|
|
19338
|
+
var GuiProvider$1 = function(props) {
|
|
19126
19339
|
useIsomorphicLayoutEffect(function() {
|
|
19127
19340
|
enable();
|
|
19128
19341
|
}, []);
|
|
19129
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
19342
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiProvider$2, _objectSpread2({}, props));
|
|
19130
19343
|
};
|
|
19131
|
-
var
|
|
19344
|
+
var createGui$1 = function(conf) {
|
|
19132
19345
|
if (conf.media) conf.media = createMedia(conf.media);
|
|
19133
|
-
return
|
|
19346
|
+
return createGui$2(conf);
|
|
19134
19347
|
};
|
|
19135
19348
|
getBaseViews();
|
|
19136
19349
|
setupHooks({
|
|
@@ -19516,7 +19729,7 @@ var SizableText = styledExport(Text$3, {
|
|
|
19516
19729
|
} },
|
|
19517
19730
|
size: getFontSized
|
|
19518
19731
|
},
|
|
19519
|
-
defaultVariants: { unstyled: process.env.
|
|
19732
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19520
19733
|
});
|
|
19521
19734
|
SizableText.staticConfig.variants.fontFamily = { "...": function(val, extras) {
|
|
19522
19735
|
if (val === "inherit") return { fontFamily: "inherit" };
|
|
@@ -19550,37 +19763,37 @@ var H1 = styledExport(Heading, {
|
|
|
19550
19763
|
name: "H1",
|
|
19551
19764
|
render: "h1",
|
|
19552
19765
|
variants: { unstyled: { false: { size: "$10" } } },
|
|
19553
|
-
defaultVariants: { unstyled: process.env.
|
|
19766
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19554
19767
|
});
|
|
19555
19768
|
var H2 = styledExport(Heading, {
|
|
19556
19769
|
name: "H2",
|
|
19557
19770
|
render: "h2",
|
|
19558
19771
|
variants: { unstyled: { false: { size: "$9" } } },
|
|
19559
|
-
defaultVariants: { unstyled: process.env.
|
|
19772
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19560
19773
|
});
|
|
19561
19774
|
var H3 = styledExport(Heading, {
|
|
19562
19775
|
name: "H3",
|
|
19563
19776
|
render: "h3",
|
|
19564
19777
|
variants: { unstyled: { false: { size: "$8" } } },
|
|
19565
|
-
defaultVariants: { unstyled: process.env.
|
|
19778
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19566
19779
|
});
|
|
19567
19780
|
var H4 = styledExport(Heading, {
|
|
19568
19781
|
name: "H4",
|
|
19569
19782
|
render: "h4",
|
|
19570
19783
|
variants: { unstyled: { false: { size: "$7" } } },
|
|
19571
|
-
defaultVariants: { unstyled: process.env.
|
|
19784
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19572
19785
|
});
|
|
19573
19786
|
var H5 = styledExport(Heading, {
|
|
19574
19787
|
name: "H5",
|
|
19575
19788
|
render: "h5",
|
|
19576
19789
|
variants: { unstyled: { false: { size: "$6" } } },
|
|
19577
|
-
defaultVariants: { unstyled: process.env.
|
|
19790
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19578
19791
|
});
|
|
19579
19792
|
var H6 = styledExport(Heading, {
|
|
19580
19793
|
name: "H6",
|
|
19581
19794
|
render: "h6",
|
|
19582
19795
|
variants: { unstyled: { false: { size: "$5" } } },
|
|
19583
|
-
defaultVariants: { unstyled: process.env.
|
|
19796
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" ? true : false }
|
|
19584
19797
|
});
|
|
19585
19798
|
//#endregion
|
|
19586
19799
|
//#region ../text/dist/esm/wrapChildrenInText.native.js
|
|
@@ -19834,7 +20047,7 @@ var AccordionTriggerFrame = styledExport(Collapsible.Trigger, {
|
|
|
19834
20047
|
focusStyle: { backgroundColor: "$backgroundFocus" },
|
|
19835
20048
|
pressStyle: { backgroundColor: "$backgroundPress" }
|
|
19836
20049
|
} } },
|
|
19837
|
-
defaultVariants: { unstyled: process.env.
|
|
20050
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19838
20051
|
});
|
|
19839
20052
|
var AccordionTrigger = AccordionTriggerFrame.styleable(function AccordionTrigger2(props, forwardedRef) {
|
|
19840
20053
|
var { __scopeAccordion } = props, triggerProps = _objectWithoutProperties(props, _excluded7$5);
|
|
@@ -19856,7 +20069,7 @@ var AccordionContentFrame = styledExport(Collapsible.Content, {
|
|
|
19856
20069
|
padding: "$true",
|
|
19857
20070
|
backgroundColor: "$background"
|
|
19858
20071
|
} } },
|
|
19859
|
-
defaultVariants: { unstyled: process.env.
|
|
20072
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
19860
20073
|
});
|
|
19861
20074
|
var AccordionContent = AccordionContentFrame.styleable(function AccordionContent2(props, forwardedRef) {
|
|
19862
20075
|
var { __scopeAccordion } = props, contentProps = _objectWithoutProperties(props, _excluded8$5);
|
|
@@ -19910,7 +20123,7 @@ var ZIndexHardcodedContext = (0, react$1.createContext)(void 0);
|
|
|
19910
20123
|
var ZIndicesByContext = {};
|
|
19911
20124
|
var CurrentPortalZIndices = {};
|
|
19912
20125
|
var useStackedZIndex = function(props) {
|
|
19913
|
-
if (process.env.
|
|
20126
|
+
if (process.env.GUI_STACK_Z_INDEX_GLOBAL) {
|
|
19914
20127
|
var { stackZIndex, zIndex: zIndexProp } = props;
|
|
19915
20128
|
var id = (0, react$1.useId)();
|
|
19916
20129
|
var zIndex = (0, react$1.useMemo)(function() {
|
|
@@ -20388,7 +20601,7 @@ var AdaptParent = function(param) {
|
|
|
20388
20601
|
var AdaptContents = function(param) {
|
|
20389
20602
|
var { scope } = param, rest = _objectWithoutProperties(param, _excluded2$25);
|
|
20390
20603
|
var context = useAdaptContext(scope);
|
|
20391
|
-
if (!(context === null || context === void 0 ? void 0 : context.Contents)) throw new Error(`You're rendering a
|
|
20604
|
+
if (!(context === null || context === void 0 ? void 0 : context.Contents)) throw new Error(`You're rendering a Gui <Adapt /> component without nesting it inside a parent that is able to adapt.`);
|
|
20392
20605
|
return /* @__PURE__ */ react$1.default.createElement(context.Contents, _objectSpread2(_objectSpread2({}, rest), {}, { key: `stable` }));
|
|
20393
20606
|
};
|
|
20394
20607
|
AdaptContents.shouldForwardSpace = true;
|
|
@@ -20764,7 +20977,7 @@ var DialogPortalFrame = styledExport(YStack, {
|
|
|
20764
20977
|
zIndex: 1
|
|
20765
20978
|
}
|
|
20766
20979
|
} } },
|
|
20767
|
-
defaultVariants: { unstyled: process.env.
|
|
20980
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
20768
20981
|
});
|
|
20769
20982
|
var needsRepropagation$1 = needsPortalRepropagation();
|
|
20770
20983
|
var DialogPortalItem = function(param) {
|
|
@@ -20851,7 +21064,7 @@ var DialogOverlayFrame = styledExport(YStack, {
|
|
|
20851
21064
|
pointerEvents: "auto"
|
|
20852
21065
|
} }
|
|
20853
21066
|
},
|
|
20854
|
-
defaultVariants: { unstyled: process.env.
|
|
21067
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
20855
21068
|
});
|
|
20856
21069
|
var DialogOverlay = DialogOverlayFrame.styleable(function DialogOverlay2(param, forwardedRef) {
|
|
20857
21070
|
var { scope } = param, props = _objectWithoutProperties(param, _excluded3$16);
|
|
@@ -20887,7 +21100,7 @@ var DialogContentFrame = styledExport(ThemeableStack, {
|
|
|
20887
21100
|
},
|
|
20888
21101
|
defaultVariants: {
|
|
20889
21102
|
size: "$true",
|
|
20890
|
-
unstyled: process.env.
|
|
21103
|
+
unstyled: process.env.GUI_HEADLESS === "1"
|
|
20891
21104
|
}
|
|
20892
21105
|
});
|
|
20893
21106
|
var DialogContent = DialogContentFrame.styleable(function DialogContent2(param, forwardedRef) {
|
|
@@ -21205,7 +21418,7 @@ var AlertDialogInner = function(props) {
|
|
|
21205
21418
|
var buttons = [];
|
|
21206
21419
|
forEachChildDeep(react$1.Children.toArray(props.children), function(child) {
|
|
21207
21420
|
if (!/* @__PURE__ */ react$1.isValidElement(child)) return false;
|
|
21208
|
-
var name =
|
|
21421
|
+
var name = isGuiElement(child) ? child.type.staticConfig.componentName : child.type["displayName"];
|
|
21209
21422
|
switch (name) {
|
|
21210
21423
|
case TRIGGER_NAME$1:
|
|
21211
21424
|
triggerElement = /* @__PURE__ */ react$1.cloneElement(child, { __native: true });
|
|
@@ -21649,7 +21862,7 @@ var Frame$1 = styledExport(View$1, {
|
|
|
21649
21862
|
outlineWidth: 2
|
|
21650
21863
|
}
|
|
21651
21864
|
} },
|
|
21652
|
-
variant: { outlined: process.env.
|
|
21865
|
+
variant: { outlined: process.env.GUI_HEADLESS === "1" ? {} : {
|
|
21653
21866
|
backgroundColor: "transparent",
|
|
21654
21867
|
borderWidth: 1,
|
|
21655
21868
|
borderColor: "$borderColor",
|
|
@@ -21685,7 +21898,7 @@ var Frame$1 = styledExport(View$1, {
|
|
|
21685
21898
|
"aria-disabled": true
|
|
21686
21899
|
} }
|
|
21687
21900
|
},
|
|
21688
|
-
defaultVariants: { unstyled: process.env.
|
|
21901
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21689
21902
|
});
|
|
21690
21903
|
var Text$1 = styledExport(SizableText, {
|
|
21691
21904
|
context: context$2,
|
|
@@ -21697,7 +21910,7 @@ var Text$1 = styledExport(SizableText, {
|
|
|
21697
21910
|
ellipsis: true,
|
|
21698
21911
|
color: "$color"
|
|
21699
21912
|
} } },
|
|
21700
|
-
defaultVariants: { unstyled: process.env.
|
|
21913
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21701
21914
|
});
|
|
21702
21915
|
var Icon = function(props) {
|
|
21703
21916
|
var { children, scaleIcon = 1, size } = props;
|
|
@@ -21736,7 +21949,7 @@ var Button = withStaticProperties(Frame$1.styleable(function(propsIn, ref) {
|
|
|
21736
21949
|
});
|
|
21737
21950
|
});
|
|
21738
21951
|
var wrappedChildren = wrapChildrenInText(Text$1, { children }, {
|
|
21739
|
-
unstyled: process.env.
|
|
21952
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
21740
21953
|
size: finalSize !== null && finalSize !== void 0 ? finalSize : styledContext === null || styledContext === void 0 ? void 0 : styledContext.size
|
|
21741
21954
|
});
|
|
21742
21955
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ButtonNestingContext.Provider, {
|
|
@@ -21775,7 +21988,7 @@ var CardFrame = styledExport(YStack, {
|
|
|
21775
21988
|
return { borderRadius: (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : val };
|
|
21776
21989
|
} }
|
|
21777
21990
|
},
|
|
21778
|
-
defaultVariants: { unstyled: process.env.
|
|
21991
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21779
21992
|
});
|
|
21780
21993
|
var CardHeader = styledExport(YStack, {
|
|
21781
21994
|
name: "CardHeader",
|
|
@@ -21792,7 +22005,7 @@ var CardHeader = styledExport(YStack, {
|
|
|
21792
22005
|
return { padding: (_tokens_space_val = tokens.space[val]) !== null && _tokens_space_val !== void 0 ? _tokens_space_val : val };
|
|
21793
22006
|
} }
|
|
21794
22007
|
},
|
|
21795
|
-
defaultVariants: { unstyled: process.env.
|
|
22008
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21796
22009
|
});
|
|
21797
22010
|
var CardFooter = styledExport(CardHeader, {
|
|
21798
22011
|
name: "CardFooter",
|
|
@@ -21802,7 +22015,7 @@ var CardFooter = styledExport(CardHeader, {
|
|
|
21802
22015
|
marginTop: "auto",
|
|
21803
22016
|
marginBottom: 0
|
|
21804
22017
|
} } },
|
|
21805
|
-
defaultVariants: { unstyled: process.env.
|
|
22018
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21806
22019
|
});
|
|
21807
22020
|
var CardBackground = styledExport(YStack, {
|
|
21808
22021
|
name: "CardBackground",
|
|
@@ -21813,7 +22026,7 @@ var CardBackground = styledExport(YStack, {
|
|
|
21813
22026
|
pointerEvents: "none",
|
|
21814
22027
|
padding: 0
|
|
21815
22028
|
} } },
|
|
21816
|
-
defaultVariants: { unstyled: process.env.
|
|
22029
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21817
22030
|
});
|
|
21818
22031
|
var Card = withStaticProperties(CardFrame, {
|
|
21819
22032
|
Header: CardHeader,
|
|
@@ -21825,7 +22038,7 @@ var Card = withStaticProperties(CardFrame, {
|
|
|
21825
22038
|
var CheckboxStyledContext = createStyledContext({
|
|
21826
22039
|
size: "$true",
|
|
21827
22040
|
scaleIcon: 1,
|
|
21828
|
-
unstyled: process.env.
|
|
22041
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
21829
22042
|
active: false,
|
|
21830
22043
|
disabled: false
|
|
21831
22044
|
});
|
|
@@ -21835,7 +22048,7 @@ var CheckboxIndicatorFrame = styledExport(YStack, {
|
|
|
21835
22048
|
name: "CheckboxIndicator",
|
|
21836
22049
|
context: CheckboxStyledContext,
|
|
21837
22050
|
variants: { unstyled: { false: {} } },
|
|
21838
|
-
defaultVariants: { unstyled: process.env.
|
|
22051
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21839
22052
|
}, { accept: { activeStyle: "style" } });
|
|
21840
22053
|
var CheckboxFrame = styledExport(YStack, {
|
|
21841
22054
|
name: "Checkbox",
|
|
@@ -21879,7 +22092,7 @@ var CheckboxFrame = styledExport(YStack, {
|
|
|
21879
22092
|
return { borderRadius: getVariableValue(getSize(val)) / 8 };
|
|
21880
22093
|
} }
|
|
21881
22094
|
},
|
|
21882
|
-
defaultVariants: { unstyled: process.env.
|
|
22095
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21883
22096
|
}, { accept: { activeStyle: "style" } });
|
|
21884
22097
|
//#endregion
|
|
21885
22098
|
//#region ../focusable/dist/esm/registerFocusable.native.js
|
|
@@ -21929,7 +22142,7 @@ var LabelFrame = styledExport(SizableText, {
|
|
|
21929
22142
|
return _objectSpread2(_objectSpread2({}, getFontSized(val, extras)), {}, { lineHeight: buttonHeight ? extras.tokens.size[buttonHeight] : void 0 });
|
|
21930
22143
|
} }
|
|
21931
22144
|
},
|
|
21932
|
-
defaultVariants: { unstyled: process.env.
|
|
22145
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
21933
22146
|
});
|
|
21934
22147
|
var Label = LabelFrame.styleable(function Label2(props, forwardedRef) {
|
|
21935
22148
|
var { htmlFor, id: idProp } = props, labelProps = _objectWithoutProperties(props, _excluded$38);
|
|
@@ -22287,7 +22500,7 @@ var GroupFrame = styledExport(YStack, {
|
|
|
22287
22500
|
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"] };
|
|
22288
22501
|
}
|
|
22289
22502
|
},
|
|
22290
|
-
defaultVariants: { unstyled: process.env.
|
|
22503
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22291
22504
|
});
|
|
22292
22505
|
function createGroup(verticalDefault) {
|
|
22293
22506
|
return withStaticProperties(GroupFrame.styleable(function(props, ref) {
|
|
@@ -22435,7 +22648,7 @@ var ListItemFrame = styledExport(View$1, {
|
|
|
22435
22648
|
borderColor: "$borderColorPress"
|
|
22436
22649
|
}
|
|
22437
22650
|
} },
|
|
22438
|
-
variant: { outlined: process.env.
|
|
22651
|
+
variant: { outlined: process.env.GUI_HEADLESS === "1" ? {} : {
|
|
22439
22652
|
backgroundColor: "transparent",
|
|
22440
22653
|
borderWidth: 1,
|
|
22441
22654
|
borderColor: "$borderColor",
|
|
@@ -22462,7 +22675,7 @@ var ListItemFrame = styledExport(View$1, {
|
|
|
22462
22675
|
pointerEvents: "none"
|
|
22463
22676
|
} }
|
|
22464
22677
|
},
|
|
22465
|
-
defaultVariants: { unstyled: process.env.
|
|
22678
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22466
22679
|
});
|
|
22467
22680
|
var ListItemText = styledExport(SizableText, {
|
|
22468
22681
|
context: context$1,
|
|
@@ -22475,7 +22688,7 @@ var ListItemText = styledExport(SizableText, {
|
|
|
22475
22688
|
ellipsis: true,
|
|
22476
22689
|
cursor: "inherit"
|
|
22477
22690
|
} } },
|
|
22478
|
-
defaultVariants: { unstyled: process.env.
|
|
22691
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22479
22692
|
});
|
|
22480
22693
|
var ListItemSubtitle = styledExport(ListItemText, {
|
|
22481
22694
|
name: "ListItemSubtitle",
|
|
@@ -22493,13 +22706,13 @@ var ListItemSubtitle = styledExport(ListItemText, {
|
|
|
22493
22706
|
}).key, extras);
|
|
22494
22707
|
} }
|
|
22495
22708
|
},
|
|
22496
|
-
defaultVariants: { unstyled: process.env.
|
|
22709
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22497
22710
|
});
|
|
22498
22711
|
var ListItemTitle = styledExport(ListItemText, {
|
|
22499
22712
|
name: "ListItemTitle",
|
|
22500
22713
|
context: context$1,
|
|
22501
22714
|
variants: { unstyled: { false: {} } },
|
|
22502
|
-
defaultVariants: { unstyled: process.env.
|
|
22715
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
22503
22716
|
});
|
|
22504
22717
|
var ListItemIcon = function(props) {
|
|
22505
22718
|
var { children, size, scaleIcon = 1 } = props;
|
|
@@ -22528,7 +22741,7 @@ var ListItem2 = withStaticProperties(ListItemFrame.styleable(function ListItem(p
|
|
|
22528
22741
|
});
|
|
22529
22742
|
});
|
|
22530
22743
|
var wrappedChildren = wrapChildrenInText(ListItemText, { children }, propsIn.unstyled !== true ? {
|
|
22531
|
-
unstyled: process.env.
|
|
22744
|
+
unstyled: process.env.GUI_HEADLESS === "1",
|
|
22532
22745
|
fontSize: propsIn.size
|
|
22533
22746
|
} : void 0);
|
|
22534
22747
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ListItemFrame, _objectSpread2(_objectSpread2({ ref }, rest), {}, { children: [
|
|
@@ -22989,7 +23202,7 @@ var flip$1 = function(options) {
|
|
|
22989
23202
|
}
|
|
22990
23203
|
};
|
|
22991
23204
|
};
|
|
22992
|
-
var originSides =
|
|
23205
|
+
var originSides = /*#__PURE__*/ new Set(["left", "top"]);
|
|
22993
23206
|
function convertValueToCoords(_x6, _x7) {
|
|
22994
23207
|
return _convertValueToCoords.apply(this, arguments);
|
|
22995
23208
|
}
|
|
@@ -23563,7 +23776,7 @@ var setupOptions = {};
|
|
|
23563
23776
|
function setupPopper(options) {
|
|
23564
23777
|
Object.assign(setupOptions, options);
|
|
23565
23778
|
}
|
|
23566
|
-
function
|
|
23779
|
+
function guiAutoUpdate(reference, floating, update) {
|
|
23567
23780
|
update();
|
|
23568
23781
|
var rafId = requestAnimationFrame(function() {
|
|
23569
23782
|
update();
|
|
@@ -23638,7 +23851,7 @@ function Popper(props) {
|
|
|
23638
23851
|
strategy,
|
|
23639
23852
|
placement,
|
|
23640
23853
|
sameScrollView: false,
|
|
23641
|
-
whileElementsMounted: !isOpen ? void 0 :
|
|
23854
|
+
whileElementsMounted: !isOpen ? void 0 : guiAutoUpdate,
|
|
23642
23855
|
platform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? _objectSpread2(_objectSpread2({}, null), {}, { isRTL(element) {
|
|
23643
23856
|
return false;
|
|
23644
23857
|
} }) : null,
|
|
@@ -23715,14 +23928,14 @@ var PopperAnchor = YStack.styleable(function PopperAnchor2(props, forwardedRef)
|
|
|
23715
23928
|
]);
|
|
23716
23929
|
react$1.useEffect(function() {
|
|
23717
23930
|
if (virtualRef) {
|
|
23718
|
-
refs.setReference(virtualRef.current);
|
|
23931
|
+
refs === null || refs === void 0 || refs.setReference(virtualRef.current);
|
|
23719
23932
|
update();
|
|
23720
23933
|
}
|
|
23721
23934
|
}, [virtualRef]);
|
|
23722
23935
|
var refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps(_objectSpread2(_objectSpread2({}, rest), {}, { ref }))) || null;
|
|
23723
23936
|
var safeSetReference = react$1.useCallback(function(node) {
|
|
23724
23937
|
startTransition$1(function() {
|
|
23725
|
-
refs.setReference(node);
|
|
23938
|
+
refs === null || refs === void 0 || refs.setReference(node);
|
|
23726
23939
|
});
|
|
23727
23940
|
}, [refs]);
|
|
23728
23941
|
var shouldHandleInHover = false;
|
|
@@ -23734,7 +23947,7 @@ var PopperAnchor = YStack.styleable(function PopperAnchor2(props, forwardedRef)
|
|
|
23734
23947
|
if (_instanceof$4(el, HTMLElement)) {
|
|
23735
23948
|
var _refProps_onPointerEnter, _context_onHoverReference;
|
|
23736
23949
|
(0, import_react_dom.flushSync)(function() {
|
|
23737
|
-
return refs.setReference(el);
|
|
23950
|
+
return refs === null || refs === void 0 ? void 0 : refs.setReference(el);
|
|
23738
23951
|
});
|
|
23739
23952
|
update();
|
|
23740
23953
|
if (!refProps) return;
|
|
@@ -23856,7 +24069,7 @@ var PopperArrowFrame = styledExport(YStack, {
|
|
|
23856
24069
|
backgroundColor: "$background",
|
|
23857
24070
|
position: "relative"
|
|
23858
24071
|
} } },
|
|
23859
|
-
defaultVariants: { unstyled: process.env.
|
|
24072
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23860
24073
|
});
|
|
23861
24074
|
var PopperArrowOuterFrame = styledExport(YStack, {
|
|
23862
24075
|
name: "PopperArrowOuter",
|
|
@@ -23868,7 +24081,7 @@ var PopperArrowOuterFrame = styledExport(YStack, {
|
|
|
23868
24081
|
alignItems: "center",
|
|
23869
24082
|
justifyContent: "center"
|
|
23870
24083
|
} } },
|
|
23871
|
-
defaultVariants: { unstyled: process.env.
|
|
24084
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23872
24085
|
});
|
|
23873
24086
|
var opposites = {
|
|
23874
24087
|
top: "bottom",
|
|
@@ -23971,7 +24184,7 @@ var MenuGroup = styledExport(View$1, {
|
|
|
23971
24184
|
overflow: "hidden",
|
|
23972
24185
|
backgroundColor: "$background"
|
|
23973
24186
|
} } },
|
|
23974
|
-
defaultVariants: { unstyled: process.env.
|
|
24187
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23975
24188
|
});
|
|
23976
24189
|
var MenuLabel = styledExport(SizableText, {
|
|
23977
24190
|
name: "MenuLabel",
|
|
@@ -23979,7 +24192,7 @@ var MenuLabel = styledExport(SizableText, {
|
|
|
23979
24192
|
cursor: "default",
|
|
23980
24193
|
color: "$color"
|
|
23981
24194
|
} } },
|
|
23982
|
-
defaultVariants: { unstyled: process.env.
|
|
24195
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23983
24196
|
});
|
|
23984
24197
|
var MenuSeparator = styledExport(View$1, {
|
|
23985
24198
|
name: "MenuSeparator",
|
|
@@ -23994,7 +24207,7 @@ var MenuSeparator = styledExport(View$1, {
|
|
|
23994
24207
|
marginHorizontal: 10,
|
|
23995
24208
|
backgroundColor: "$borderColor"
|
|
23996
24209
|
} } },
|
|
23997
|
-
defaultVariants: { unstyled: process.env.
|
|
24210
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
23998
24211
|
});
|
|
23999
24212
|
var MenuPredefined = {
|
|
24000
24213
|
MenuIcon: styledExport(View$1, {
|
|
@@ -24006,7 +24219,7 @@ var MenuPredefined = {
|
|
|
24006
24219
|
justifyContent: "center",
|
|
24007
24220
|
marginLeft: "auto"
|
|
24008
24221
|
} } },
|
|
24009
|
-
defaultVariants: { unstyled: process.env.
|
|
24222
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
24010
24223
|
}),
|
|
24011
24224
|
MenuImage: styledExport(Image, { name: "MenuImage" }),
|
|
24012
24225
|
MenuIndicator: styledExport(View$1, {
|
|
@@ -24016,7 +24229,7 @@ var MenuPredefined = {
|
|
|
24016
24229
|
alignItems: "center",
|
|
24017
24230
|
marginLeft: "auto"
|
|
24018
24231
|
} } },
|
|
24019
|
-
defaultVariants: { unstyled: process.env.
|
|
24232
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
24020
24233
|
}),
|
|
24021
24234
|
MenuItem: styledExport(View$1, {
|
|
24022
24235
|
name: "MenuItem",
|
|
@@ -24031,7 +24244,7 @@ var MenuPredefined = {
|
|
|
24031
24244
|
focusStyle: { backgroundColor: "$backgroundHover" },
|
|
24032
24245
|
pressStyle: { backgroundColor: "$backgroundPress" }
|
|
24033
24246
|
} } },
|
|
24034
|
-
defaultVariants: { unstyled: process.env.
|
|
24247
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
24035
24248
|
}),
|
|
24036
24249
|
Title: styledExport(SizableText, {
|
|
24037
24250
|
name: "MenuTitle",
|
|
@@ -24041,7 +24254,7 @@ var MenuPredefined = {
|
|
|
24041
24254
|
flexGrow: 1,
|
|
24042
24255
|
flexShrink: 1
|
|
24043
24256
|
} } },
|
|
24044
|
-
defaultVariants: { unstyled: process.env.
|
|
24257
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
24045
24258
|
}),
|
|
24046
24259
|
SubTitle: styledExport(SizableText, {
|
|
24047
24260
|
name: "MenuSubTitle",
|
|
@@ -24049,7 +24262,7 @@ var MenuPredefined = {
|
|
|
24049
24262
|
cursor: "default",
|
|
24050
24263
|
color: "$colorFaint"
|
|
24051
24264
|
} } },
|
|
24052
|
-
defaultVariants: { unstyled: process.env.
|
|
24265
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
24053
24266
|
}),
|
|
24054
24267
|
MenuGroup,
|
|
24055
24268
|
MenuSeparator,
|
|
@@ -24303,7 +24516,7 @@ function createBaseMenu(param) {
|
|
|
24303
24516
|
}));
|
|
24304
24517
|
});
|
|
24305
24518
|
var MenuContentImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
24306
|
-
var { scope = MENU_CONTEXT, loop = false, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEntryFocus, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, disableOutsideScroll, disableDismissOnScroll = false, unstyled = process.env.
|
|
24519
|
+
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);
|
|
24307
24520
|
var context = useMenuContext(scope);
|
|
24308
24521
|
var rootContext = useMenuRootContext(scope);
|
|
24309
24522
|
useCollection$1(scope);
|
|
@@ -24347,7 +24560,7 @@ function createBaseMenu(param) {
|
|
|
24347
24560
|
}), {}, {
|
|
24348
24561
|
"aria-orientation": "vertical",
|
|
24349
24562
|
"data-state": getOpenState(context.open),
|
|
24350
|
-
"data-
|
|
24563
|
+
"data-gui-menu-content": "",
|
|
24351
24564
|
dir: rootContext.dir,
|
|
24352
24565
|
scope: scope || MENU_CONTEXT
|
|
24353
24566
|
}, contentProps), {}, {
|
|
@@ -24380,7 +24593,7 @@ function createBaseMenu(param) {
|
|
|
24380
24593
|
trapped: trapFocus,
|
|
24381
24594
|
onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, function(event) {
|
|
24382
24595
|
event.preventDefault();
|
|
24383
|
-
var content2 = document.querySelector("[data-
|
|
24596
|
+
var content2 = document.querySelector("[data-gui-menu-content]");
|
|
24384
24597
|
content2 === null || content2 === void 0 || content2.focus({ preventScroll: true });
|
|
24385
24598
|
}),
|
|
24386
24599
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
@@ -24442,7 +24655,7 @@ function createBaseMenu(param) {
|
|
|
24442
24655
|
}, {}), {}, { children: content }));
|
|
24443
24656
|
});
|
|
24444
24657
|
var MenuItemImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
24445
|
-
var { scope = MENU_CONTEXT, disabled = false, textValue, unstyled = process.env.
|
|
24658
|
+
var { scope = MENU_CONTEXT, disabled = false, textValue, unstyled = process.env.GUI_HEADLESS === "1" } = props, itemProps = _objectWithoutProperties(props, _excluded5$7);
|
|
24446
24659
|
var contentContext = useMenuContentContext(scope);
|
|
24447
24660
|
var composedRefs = useComposedRefs(forwardedRef, react$1.useRef(null));
|
|
24448
24661
|
var [isFocused, setIsFocused] = react$1.useState(false);
|
|
@@ -24464,6 +24677,17 @@ function createBaseMenu(param) {
|
|
|
24464
24677
|
"data-disabled": disabled ? "" : void 0
|
|
24465
24678
|
}, itemProps), {}, {
|
|
24466
24679
|
ref: composedRefs,
|
|
24680
|
+
/**
|
|
24681
|
+
* We focus items on `pointerMove` to achieve the following:
|
|
24682
|
+
*
|
|
24683
|
+
* - Mouse over an item (it focuses)
|
|
24684
|
+
* - Leave mouse where it is and use keyboard to focus a different item
|
|
24685
|
+
* - Wiggle mouse without it leaving previously focused item
|
|
24686
|
+
* - Previously focused item should re-focus
|
|
24687
|
+
*
|
|
24688
|
+
* If we used `mouseOver`/`mouseEnter` it would not re-focus when the mouse
|
|
24689
|
+
* wiggles. This is to match native menu implementation.
|
|
24690
|
+
*/
|
|
24467
24691
|
onPointerMove: composeEventHandlers(props.onPointerMove, function(event) {
|
|
24468
24692
|
if (event.pointerType !== "mouse") return;
|
|
24469
24693
|
if (disabled) contentContext.onItemLeave(event);
|
|
@@ -24581,7 +24805,7 @@ function createBaseMenu(param) {
|
|
|
24581
24805
|
});
|
|
24582
24806
|
MenuItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
24583
24807
|
var MenuArrow = /* @__PURE__ */ react$1.forwardRef(function MenuArrow2(props, forwardedRef) {
|
|
24584
|
-
var { scope = MENU_CONTEXT, unstyled = process.env.
|
|
24808
|
+
var { scope = MENU_CONTEXT, unstyled = process.env.GUI_HEADLESS === "1" } = props, rest = _objectWithoutProperties(props, _excluded12$1);
|
|
24585
24809
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PopperArrow, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
24586
24810
|
scope,
|
|
24587
24811
|
componentName: "PopperArrow",
|
|
@@ -24795,7 +25019,7 @@ function createBaseMenu(param) {
|
|
|
24795
25019
|
if (rootContext.isUsingKeyboardRef.current) {
|
|
24796
25020
|
var _root_querySelector, _this;
|
|
24797
25021
|
var root = ref.current;
|
|
24798
|
-
(_this = (root === null || root === void 0 ? void 0 : (_root_querySelector = root.querySelector) === null || _root_querySelector === void 0 ? void 0 : _root_querySelector.call(root, "[data-
|
|
25022
|
+
(_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 });
|
|
24799
25023
|
}
|
|
24800
25024
|
event.preventDefault();
|
|
24801
25025
|
},
|
|
@@ -25485,7 +25709,7 @@ function createNonNativeMenu(params) {
|
|
|
25485
25709
|
alignSelf: "stretch",
|
|
25486
25710
|
showsHorizontalScrollIndicator: false,
|
|
25487
25711
|
showsVerticalScrollIndicator: false,
|
|
25488
|
-
"$platform-web": { maxHeight: "var(--
|
|
25712
|
+
"$platform-web": { maxHeight: "var(--gui-menu-content-available-height)" }
|
|
25489
25713
|
});
|
|
25490
25714
|
var Group = Menu.Group;
|
|
25491
25715
|
var Label = Menu.Label;
|
|
@@ -26648,7 +26872,7 @@ var ProgressIndicatorFrame = styledExport(YStack, {
|
|
|
26648
26872
|
width: "100%",
|
|
26649
26873
|
backgroundColor: "$background"
|
|
26650
26874
|
} } },
|
|
26651
|
-
defaultVariants: { unstyled: process.env.
|
|
26875
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26652
26876
|
});
|
|
26653
26877
|
var ProgressIndicator = ProgressIndicatorFrame.styleable(function ProgressIndicator2(props, forwardedRef) {
|
|
26654
26878
|
var { __scopeProgress, transition } = props, indicatorProps = _objectWithoutProperties(props, _excluded$24);
|
|
@@ -26703,7 +26927,7 @@ var ProgressFrame = styledExport(YStack, {
|
|
|
26703
26927
|
};
|
|
26704
26928
|
} }
|
|
26705
26929
|
},
|
|
26706
|
-
defaultVariants: { unstyled: process.env.
|
|
26930
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26707
26931
|
});
|
|
26708
26932
|
var Progress = withStaticProperties(ProgressFrame.styleable(function Progress2(props, forwardedRef) {
|
|
26709
26933
|
var { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = "$true" } = props, progressProps = _objectWithoutProperties(props, _excluded2$10);
|
|
@@ -26790,7 +27014,7 @@ var RadioGroupItemFrame = styledExport(YStack, {
|
|
|
26790
27014
|
};
|
|
26791
27015
|
} }
|
|
26792
27016
|
},
|
|
26793
|
-
defaultVariants: { unstyled: process.env.
|
|
27017
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26794
27018
|
});
|
|
26795
27019
|
var RadioGroupIndicatorFrame = styledExport(YStack, {
|
|
26796
27020
|
name: "RadioGroupIndicator",
|
|
@@ -26801,7 +27025,7 @@ var RadioGroupIndicatorFrame = styledExport(YStack, {
|
|
|
26801
27025
|
backgroundColor: "$color",
|
|
26802
27026
|
pressTheme: true
|
|
26803
27027
|
} } },
|
|
26804
|
-
defaultVariants: { unstyled: process.env.
|
|
27028
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
26805
27029
|
});
|
|
26806
27030
|
var RadioGroupFrame = styledExport(YStack, {
|
|
26807
27031
|
name: "RadioGroup",
|
|
@@ -27110,7 +27334,7 @@ var Separator = styledExport(View, {
|
|
|
27110
27334
|
borderRightWidth: 1
|
|
27111
27335
|
} }
|
|
27112
27336
|
},
|
|
27113
|
-
defaultVariants: { unstyled: process.env.
|
|
27337
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27114
27338
|
});
|
|
27115
27339
|
//#endregion
|
|
27116
27340
|
//#region ../select/dist/esm/context.native.js
|
|
@@ -27278,7 +27502,7 @@ var SelectItemTextFrame = styledExport(SizableText, {
|
|
|
27278
27502
|
color: "$color",
|
|
27279
27503
|
ellipsis: true
|
|
27280
27504
|
} } },
|
|
27281
|
-
defaultVariants: { unstyled: process.env.
|
|
27505
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27282
27506
|
});
|
|
27283
27507
|
var SelectItemText = SelectItemTextFrame.styleable(function SelectItemText2(props, forwardedRef) {
|
|
27284
27508
|
var { scope, className } = props, itemTextProps = _objectWithoutProperties(props, _excluded$19);
|
|
@@ -27455,7 +27679,7 @@ var SelectIndicatorFrame = styledExport(YStack, {
|
|
|
27455
27679
|
backgroundColor: "$background",
|
|
27456
27680
|
borderRadius: 0
|
|
27457
27681
|
} } },
|
|
27458
|
-
defaultVariants: { unstyled: process.env.
|
|
27682
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27459
27683
|
});
|
|
27460
27684
|
var SelectIndicator = SelectIndicatorFrame.styleable(function SelectIndicator2(param, forwardedRef) {
|
|
27461
27685
|
var { scope } = param, props = _objectWithoutProperties(param, _excluded3$5);
|
|
@@ -27526,7 +27750,7 @@ var NativeSelectFrame = styledExport(YStack, {
|
|
|
27526
27750
|
},
|
|
27527
27751
|
defaultVariants: {
|
|
27528
27752
|
size: "$2",
|
|
27529
|
-
unstyled: process.env.
|
|
27753
|
+
unstyled: process.env.GUI_HEADLESS === "1" ? true : false
|
|
27530
27754
|
}
|
|
27531
27755
|
});
|
|
27532
27756
|
var SelectGroup = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
@@ -27585,7 +27809,7 @@ var SelectLabelFrame = styledExport(SizableText, {
|
|
|
27585
27809
|
};
|
|
27586
27810
|
} }
|
|
27587
27811
|
},
|
|
27588
|
-
defaultVariants: { unstyled: process.env.
|
|
27812
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
27589
27813
|
});
|
|
27590
27814
|
var SelectLabel = SelectLabelFrame.styleable(function(props, forwardedRef) {
|
|
27591
27815
|
var { scope } = props, labelProps = _objectWithoutProperties(props, _excluded5$2);
|
|
@@ -27856,7 +28080,7 @@ function useSheetProviderProps(props, state) {
|
|
|
27856
28080
|
if (shouldSetPositionOpen) setPosition(0);
|
|
27857
28081
|
}, [setPosition, shouldSetPositionOpen]);
|
|
27858
28082
|
var { animationDriver } = useConfiguration();
|
|
27859
|
-
if (!animationDriver) throw new Error("Must set animations in
|
|
28083
|
+
if (!animationDriver) throw new Error("Must set animations in gui.config.ts");
|
|
27860
28084
|
var scrollBridge = useConstant(function() {
|
|
27861
28085
|
var parentDragListeners = /* @__PURE__ */ new Set();
|
|
27862
28086
|
var bridge = {
|
|
@@ -29204,7 +29428,7 @@ var Handle = styledExport(XStack, {
|
|
|
29204
29428
|
hoverStyle: { opacity: .7 }
|
|
29205
29429
|
} }
|
|
29206
29430
|
},
|
|
29207
|
-
defaultVariants: { unstyled: process.env.
|
|
29431
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29208
29432
|
});
|
|
29209
29433
|
var Overlay = styledExport(YStack, {
|
|
29210
29434
|
name: SHEET_OVERLAY_NAME,
|
|
@@ -29221,7 +29445,7 @@ var Overlay = styledExport(YStack, {
|
|
|
29221
29445
|
pointerEvents: "auto"
|
|
29222
29446
|
} }
|
|
29223
29447
|
},
|
|
29224
|
-
defaultVariants: { unstyled: process.env.
|
|
29448
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29225
29449
|
});
|
|
29226
29450
|
var Frame = styledExport(YStack, {
|
|
29227
29451
|
name: SHEET_NAME,
|
|
@@ -29234,7 +29458,7 @@ var Frame = styledExport(YStack, {
|
|
|
29234
29458
|
maxHeight: "100%",
|
|
29235
29459
|
overflow: "hidden"
|
|
29236
29460
|
} } },
|
|
29237
|
-
defaultVariants: { unstyled: process.env.
|
|
29461
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29238
29462
|
});
|
|
29239
29463
|
var Sheet = createSheet({
|
|
29240
29464
|
Frame,
|
|
@@ -29603,7 +29827,7 @@ var SliderTrackFrame = styledExport(SliderFrame, {
|
|
|
29603
29827
|
borderRadius: 1e5,
|
|
29604
29828
|
overflow: "hidden"
|
|
29605
29829
|
} } },
|
|
29606
|
-
defaultVariants: { unstyled: process.env.
|
|
29830
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29607
29831
|
});
|
|
29608
29832
|
var SliderTrack = /* @__PURE__ */ react$1.forwardRef(function SliderTrack2(props, forwardedRef) {
|
|
29609
29833
|
var { __scopeSlider } = props, trackProps = _objectWithoutProperties(props, _excluded3$3);
|
|
@@ -29623,7 +29847,7 @@ var SliderActiveFrame = styledExport(SliderFrame, {
|
|
|
29623
29847
|
backgroundColor: "$background",
|
|
29624
29848
|
borderRadius: 1e5
|
|
29625
29849
|
} } },
|
|
29626
|
-
defaultVariants: { unstyled: process.env.
|
|
29850
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29627
29851
|
});
|
|
29628
29852
|
var SliderActive = /* @__PURE__ */ react$1.forwardRef(function SliderActive2(props, forwardedRef) {
|
|
29629
29853
|
var { __scopeSlider } = props, rangeProps = _objectWithoutProperties(props, _excluded4$2);
|
|
@@ -29693,7 +29917,7 @@ var SliderThumbFrame = styledExport(ThemeableStack, {
|
|
|
29693
29917
|
}
|
|
29694
29918
|
} }
|
|
29695
29919
|
},
|
|
29696
|
-
defaultVariants: { unstyled: process.env.
|
|
29920
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29697
29921
|
});
|
|
29698
29922
|
var SliderThumb = SliderThumbFrame.styleable(function SliderThumb2(props, forwardedRef) {
|
|
29699
29923
|
var { __scopeSlider, index = 0, circular, size: sizeProp } = props, thumbProps = _objectWithoutProperties(props, _excluded5$1);
|
|
@@ -29779,11 +30003,10 @@ var Slider = withStaticProperties(/* @__PURE__ */ react$1.forwardRef(function(pr
|
|
|
29779
30003
|
defaultProp: defaultValue,
|
|
29780
30004
|
transition: true,
|
|
29781
30005
|
onChange: function(value2) {
|
|
29782
|
-
|
|
30006
|
+
valueIndexToChangeRef.current;
|
|
29783
30007
|
onValueChange(value2);
|
|
29784
30008
|
}
|
|
29785
30009
|
});
|
|
29786
|
-
function updateThumbFocus(focusIndex) {}
|
|
29787
30010
|
function handleSlideMove(value2, event) {
|
|
29788
30011
|
updateValues(value2, valueIndexToChangeRef.current);
|
|
29789
30012
|
onSlideMove === null || onSlideMove === void 0 || onSlideMove(event, value2);
|
|
@@ -29872,7 +30095,7 @@ var SwitchStyledContext = createStyledContext({
|
|
|
29872
30095
|
disabled: false,
|
|
29873
30096
|
frameWidth: void 0,
|
|
29874
30097
|
size: void 0,
|
|
29875
|
-
unstyled: process.env.
|
|
30098
|
+
unstyled: process.env.GUI_HEADLESS === "1"
|
|
29876
30099
|
});
|
|
29877
30100
|
//#endregion
|
|
29878
30101
|
//#region ../switch/dist/esm/Switch.native.js
|
|
@@ -29892,7 +30115,7 @@ var SwitchThumb = styledExport(YStack, {
|
|
|
29892
30115
|
};
|
|
29893
30116
|
} }
|
|
29894
30117
|
},
|
|
29895
|
-
defaultVariants: { unstyled: process.env.
|
|
30118
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29896
30119
|
}, { accept: { activeStyle: "style" } });
|
|
29897
30120
|
var getSwitchHeight = function(val) {
|
|
29898
30121
|
return Math.round(getVariableValue(getSize(val)) * .65);
|
|
@@ -29925,7 +30148,7 @@ var SwitchFrame = styledExport(YStack, {
|
|
|
29925
30148
|
};
|
|
29926
30149
|
} }
|
|
29927
30150
|
},
|
|
29928
|
-
defaultVariants: { unstyled: process.env.
|
|
30151
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
29929
30152
|
}, { accept: { activeStyle: "style" } });
|
|
29930
30153
|
//#endregion
|
|
29931
30154
|
//#region ../switch/dist/esm/useSwitchNative.native.js
|
|
@@ -29982,7 +30205,7 @@ function createSwitch(createProps) {
|
|
|
29982
30205
|
var { size: sizeProp, unstyled: unstyledProp, activeStyle } = props, thumbProps = _objectWithoutProperties(props, _excluded$12);
|
|
29983
30206
|
var { unstyled: unstyledContext, size: sizeContext, active, disabled, frameWidth = 0 } = SwitchStyledContext.useStyledContext();
|
|
29984
30207
|
var _ref;
|
|
29985
|
-
var unstyled = process.env.
|
|
30208
|
+
var unstyled = process.env.GUI_HEADLESS === "1" ? true : (_ref = unstyledProp !== null && unstyledProp !== void 0 ? unstyledProp : unstyledContext) !== null && _ref !== void 0 ? _ref : false;
|
|
29986
30209
|
var _ref1;
|
|
29987
30210
|
var size = (_ref1 = sizeProp !== null && sizeProp !== void 0 ? sizeProp : sizeContext) !== null && _ref1 !== void 0 ? _ref1 : "$true";
|
|
29988
30211
|
var initialChecked = react$1.useRef(active).current;
|
|
@@ -30089,7 +30312,7 @@ var DefaultTabsTabFrame = styledExport(View, {
|
|
|
30089
30312
|
}
|
|
30090
30313
|
} }
|
|
30091
30314
|
},
|
|
30092
|
-
defaultVariants: { unstyled: process.env.
|
|
30315
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30093
30316
|
}, { accept: { activeStyle: "style" } });
|
|
30094
30317
|
var DefaultTabsContentFrame = styledExport(ThemeableStack, { name: "TabsContent" });
|
|
30095
30318
|
//#endregion
|
|
@@ -30286,6 +30509,9 @@ function createTabs(createProps) {
|
|
|
30286
30509
|
});
|
|
30287
30510
|
}), {
|
|
30288
30511
|
List: TabsList,
|
|
30512
|
+
/**
|
|
30513
|
+
* @deprecated Use Tabs.Tab instead
|
|
30514
|
+
*/
|
|
30289
30515
|
Trigger: TabsTrigger,
|
|
30290
30516
|
Tab: TabsTrigger,
|
|
30291
30517
|
Content: TabsContent
|
|
@@ -30737,7 +30963,7 @@ var ToastViewportWrapperFrame = styledExport(YStack, {
|
|
|
30737
30963
|
tabIndex: 0,
|
|
30738
30964
|
zIndex: 1e5
|
|
30739
30965
|
} } },
|
|
30740
|
-
defaultVariants: { unstyled: process.env.
|
|
30966
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30741
30967
|
});
|
|
30742
30968
|
var ToastViewportFrame = styledExport(YStack, {
|
|
30743
30969
|
name: VIEWPORT_NAME,
|
|
@@ -30746,7 +30972,7 @@ var ToastViewportFrame = styledExport(YStack, {
|
|
|
30746
30972
|
position: "absolute",
|
|
30747
30973
|
maxWidth: "100%"
|
|
30748
30974
|
} } },
|
|
30749
|
-
defaultVariants: { unstyled: process.env.
|
|
30975
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30750
30976
|
});
|
|
30751
30977
|
var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
30752
30978
|
var { scope, hotkey = VIEWPORT_DEFAULT_HOTKEY, label = "Notifications ({hotkey})", name = "default", multipleToasts, zIndex, portalToRoot } = props, viewportProps = _objectWithoutProperties(props, _excluded$8);
|
|
@@ -30791,7 +31017,7 @@ var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forward
|
|
|
30791
31017
|
viewportName: name,
|
|
30792
31018
|
ref: headFocusProxyRef,
|
|
30793
31019
|
onFocusFromOutsideViewport: function() {
|
|
30794
|
-
|
|
31020
|
+
getSortedTabbableCandidates({ tabbingDirection: "forwards" });
|
|
30795
31021
|
}
|
|
30796
31022
|
}),
|
|
30797
31023
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Collection.Slot, {
|
|
@@ -30814,7 +31040,7 @@ var ToastViewport = /* @__PURE__ */ react$1.memo(/* @__PURE__ */ react$1.forward
|
|
|
30814
31040
|
viewportName: name,
|
|
30815
31041
|
ref: tailFocusProxyRef,
|
|
30816
31042
|
onFocusFromOutsideViewport: function() {
|
|
30817
|
-
|
|
31043
|
+
getSortedTabbableCandidates({ tabbingDirection: "backwards" });
|
|
30818
31044
|
}
|
|
30819
31045
|
})
|
|
30820
31046
|
]
|
|
@@ -30837,7 +31063,6 @@ var FocusProxy = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef
|
|
|
30837
31063
|
}));
|
|
30838
31064
|
});
|
|
30839
31065
|
FocusProxy.displayName = FOCUS_PROXY_NAME;
|
|
30840
|
-
function focusFirst(candidates) {}
|
|
30841
31066
|
function getTabbableCandidates(container) {
|
|
30842
31067
|
return [];
|
|
30843
31068
|
}
|
|
@@ -30883,7 +31108,7 @@ var ToastImplFrame = styledExport(YStack, {
|
|
|
30883
31108
|
marginVertical: "$1",
|
|
30884
31109
|
elevation: "$3"
|
|
30885
31110
|
} } },
|
|
30886
|
-
defaultVariants: { unstyled: process.env.
|
|
31111
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
30887
31112
|
});
|
|
30888
31113
|
var { Provider: ToastInteractiveProvider, useStyledContext: useToastInteractiveContext } = createStyledContext({ onClose() {} });
|
|
30889
31114
|
var ToastImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef) {
|
|
@@ -30950,7 +31175,7 @@ var ToastImpl = /* @__PURE__ */ react$1.forwardRef(function(props, forwardedRef)
|
|
|
30950
31175
|
"horizontal"
|
|
30951
31176
|
].includes(context.swipeDirection);
|
|
30952
31177
|
var { animationDriver } = useConfiguration();
|
|
30953
|
-
if (!animationDriver) throw new Error("Must set animations in
|
|
31178
|
+
if (!animationDriver) throw new Error("Must set animations in gui.config.ts");
|
|
30954
31179
|
var { useAnimatedNumber, useAnimatedNumberStyle } = animationDriver;
|
|
30955
31180
|
var animatedNumber = useAnimatedNumber(0);
|
|
30956
31181
|
var _animationDriver_NumberView, _ref;
|
|
@@ -31098,7 +31323,7 @@ var ToastTitle = styledExport(SizableText, {
|
|
|
31098
31323
|
color: "$color",
|
|
31099
31324
|
size: "$4"
|
|
31100
31325
|
} } },
|
|
31101
|
-
defaultVariants: { unstyled: process.env.
|
|
31326
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31102
31327
|
});
|
|
31103
31328
|
var ToastDescription = styledExport(SizableText, {
|
|
31104
31329
|
name: "ToastDescription",
|
|
@@ -31106,7 +31331,7 @@ var ToastDescription = styledExport(SizableText, {
|
|
|
31106
31331
|
color: "$color11",
|
|
31107
31332
|
size: "$1"
|
|
31108
31333
|
} } },
|
|
31109
|
-
defaultVariants: { unstyled: process.env.
|
|
31334
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31110
31335
|
});
|
|
31111
31336
|
var ACTION_NAME = "ToastAction";
|
|
31112
31337
|
var ToastAction = /* @__PURE__ */ react$1.forwardRef(function ToastAction2(props, forwardedRef) {
|
|
@@ -31247,7 +31472,7 @@ var ToggleFrame = styledExport(View$1, {
|
|
|
31247
31472
|
focusStyle: { backgroundColor: "$backgroundActive" }
|
|
31248
31473
|
} }
|
|
31249
31474
|
},
|
|
31250
|
-
defaultVariants: { unstyled: process.env.
|
|
31475
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31251
31476
|
}, { accept: { activeStyle: "style" } });
|
|
31252
31477
|
var Toggle = /* @__PURE__ */ react$1.forwardRef(function Toggle2(props, forwardedRef) {
|
|
31253
31478
|
var { active: activeProp, activeStyle, defaultActive = false, onActiveChange, activeTheme, unstyled = false } = props, buttonProps = _objectWithoutProperties(props, _excluded$5);
|
|
@@ -31521,7 +31746,7 @@ function useDebounceValue(val) {
|
|
|
31521
31746
|
return state;
|
|
31522
31747
|
}
|
|
31523
31748
|
//#endregion
|
|
31524
|
-
//#region ../../
|
|
31749
|
+
//#region ../../element/dist/esm/useNativeRef.native.js
|
|
31525
31750
|
init_index_native$4();
|
|
31526
31751
|
function useNativeRef(forwardedRef) {
|
|
31527
31752
|
var ref = react$1.useRef(null);
|
|
@@ -31538,7 +31763,7 @@ function useNativeInputRef(forwardedRef) {
|
|
|
31538
31763
|
};
|
|
31539
31764
|
}
|
|
31540
31765
|
//#endregion
|
|
31541
|
-
//#region ../../
|
|
31766
|
+
//#region ../../element/dist/esm/index.native.js
|
|
31542
31767
|
function getWebElement() {
|
|
31543
31768
|
throw new Error("getWebElement is only available on web");
|
|
31544
31769
|
}
|
|
@@ -31582,19 +31807,19 @@ function useWindowDimensions() {
|
|
|
31582
31807
|
});
|
|
31583
31808
|
}
|
|
31584
31809
|
//#endregion
|
|
31585
|
-
//#region src/
|
|
31810
|
+
//#region src/createGui.ts
|
|
31586
31811
|
/**
|
|
31587
|
-
* Adds some helpful validation at dev time only for `
|
|
31812
|
+
* Adds some helpful validation at dev time only for `gui` specifically
|
|
31588
31813
|
**/
|
|
31589
|
-
var
|
|
31814
|
+
var createGui = createGui$1;
|
|
31590
31815
|
//#endregion
|
|
31591
|
-
//#region src/views/
|
|
31816
|
+
//#region src/views/GuiProvider.tsx
|
|
31592
31817
|
init_objectWithoutProperties();
|
|
31593
31818
|
init_objectSpread2();
|
|
31594
31819
|
var _excluded$3 = ["children"];
|
|
31595
|
-
var
|
|
31820
|
+
var GuiProvider = (_ref) => {
|
|
31596
31821
|
let { children } = _ref;
|
|
31597
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
31822
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GuiProvider$1, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$3)), {}, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ZIndexStackContext.Provider, {
|
|
31598
31823
|
value: 1,
|
|
31599
31824
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PortalProvider, {
|
|
31600
31825
|
shouldAddRootHost: true,
|
|
@@ -31713,7 +31938,7 @@ var styledBody = [{
|
|
|
31713
31938
|
size: { "...size": inputSizeVariant },
|
|
31714
31939
|
disabled: { true: {} }
|
|
31715
31940
|
},
|
|
31716
|
-
defaultVariants: { unstyled: process.env.
|
|
31941
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31717
31942
|
}, {
|
|
31718
31943
|
isInput: true,
|
|
31719
31944
|
accept: {
|
|
@@ -31965,7 +32190,7 @@ var TextArea = styledExport(Input, {
|
|
|
31965
32190
|
unstyled: { false: _objectSpread2(_objectSpread2({ height: "auto" }, defaultStyles), {}, { rows: 3 }) },
|
|
31966
32191
|
size: { "...size": textAreaSizeVariant }
|
|
31967
32192
|
},
|
|
31968
|
-
defaultVariants: { unstyled: process.env.
|
|
32193
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31969
32194
|
});
|
|
31970
32195
|
//#endregion
|
|
31971
32196
|
//#region ../spinner/dist/esm/Spinner.native.js
|
|
@@ -31987,7 +32212,7 @@ var Spinner = YStack.styleable(function(props, ref) {
|
|
|
31987
32212
|
//#region src/views/Text.tsx
|
|
31988
32213
|
var Text = styledExport(Text$2, {
|
|
31989
32214
|
variants: { unstyled: { false: { color: "$color" } } },
|
|
31990
|
-
defaultVariants: { unstyled: process.env.
|
|
32215
|
+
defaultVariants: { unstyled: process.env.GUI_HEADLESS === "1" }
|
|
31991
32216
|
});
|
|
31992
32217
|
//#endregion
|
|
31993
32218
|
//#region src/index.ts
|
|
@@ -32071,6 +32296,7 @@ exports.Frame = Frame;
|
|
|
32071
32296
|
exports.Group = Group;
|
|
32072
32297
|
exports.GroupContext = GroupContext;
|
|
32073
32298
|
exports.GroupFrame = GroupFrame;
|
|
32299
|
+
exports.GuiProvider = GuiProvider;
|
|
32074
32300
|
exports.H1 = H1;
|
|
32075
32301
|
exports.H2 = H2;
|
|
32076
32302
|
exports.H3 = H3;
|
|
@@ -32078,7 +32304,6 @@ exports.H4 = H4;
|
|
|
32078
32304
|
exports.H5 = H5;
|
|
32079
32305
|
exports.H6 = H6;
|
|
32080
32306
|
exports.Handle = Handle;
|
|
32081
|
-
exports.HanzoguiProvider = HanzoguiProvider;
|
|
32082
32307
|
exports.Header = Header;
|
|
32083
32308
|
exports.Heading = Heading;
|
|
32084
32309
|
exports.INITIAL_STATE = INITIAL_STATE;
|
|
@@ -32215,7 +32440,7 @@ exports.createContext = createContext;
|
|
|
32215
32440
|
exports.createContextScope = createContextScope;
|
|
32216
32441
|
exports.createFont = createFont;
|
|
32217
32442
|
exports.createGroupScope = createGroupScope;
|
|
32218
|
-
exports.
|
|
32443
|
+
exports.createGui = createGui;
|
|
32219
32444
|
exports.createImage = createImage;
|
|
32220
32445
|
exports.createMedia = createMedia;
|
|
32221
32446
|
exports.createNativeMenu = createNativeMenu;
|
|
@@ -32257,8 +32482,8 @@ exports.insertFont = insertFont;
|
|
|
32257
32482
|
exports.isBrowser = isBrowser;
|
|
32258
32483
|
exports.isChrome = isChrome;
|
|
32259
32484
|
exports.isClient = isClient;
|
|
32260
|
-
exports.
|
|
32261
|
-
exports.
|
|
32485
|
+
exports.isGuiComponent = isGuiComponent;
|
|
32486
|
+
exports.isGuiElement = isGuiElement;
|
|
32262
32487
|
exports.isPresent = isPresent;
|
|
32263
32488
|
exports.isServer = isServer;
|
|
32264
32489
|
exports.isServerSide = isServerSide;
|