tamagui 1.125.35 → 1.126.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/helpers/inputHelpers.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/lib/linear-gradient.native.js.map +1 -1
- package/dist/cjs/linear-gradient.native.js.map +1 -1
- package/dist/cjs/react-native-web/Dimensions.native.js.map +1 -1
- package/dist/cjs/setup.native.js.map +1 -1
- package/dist/cjs/viewTypes.native.js.map +1 -1
- package/dist/cjs/views/Anchor.native.js.map +1 -1
- package/dist/cjs/views/EnsureFlexed.native.js.map +1 -1
- package/dist/cjs/views/Fieldset.native.js.map +1 -1
- package/dist/cjs/views/Input.native.js.map +1 -1
- package/dist/cjs/views/Spinner.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.server.native.js.map +1 -1
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/TextArea.native.js.map +1 -1
- package/dist/cjs/views/VisuallyHidden.native.js.map +1 -1
- package/dist/esm/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/createTamagui.native.js.map +1 -1
- package/dist/jsx/helpers/inputHelpers.native.js.map +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/linear-gradient.native.js.map +1 -1
- package/dist/jsx/react-native-web/Dimensions.native.js.map +1 -1
- package/dist/jsx/setup.native.js.map +1 -1
- package/dist/jsx/views/Anchor.native.js.map +1 -1
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -1
- package/dist/jsx/views/Fieldset.native.js.map +1 -1
- package/dist/jsx/views/Input.native.js.map +1 -1
- package/dist/jsx/views/Spinner.native.js.map +1 -1
- package/dist/jsx/views/TamaguiProvider.native.js.map +1 -1
- package/dist/jsx/views/TamaguiProvider.server.native.js.map +1 -1
- package/dist/jsx/views/Text.native.js.map +1 -1
- package/dist/jsx/views/TextArea.native.js.map +1 -1
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -1
- package/dist/native.js +413 -203
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +413 -203
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -3922,6 +3922,73 @@ var require_getShorthandValue_native = __commonJS({
|
|
|
3922
3922
|
}
|
|
3923
3923
|
});
|
|
3924
3924
|
|
|
3925
|
+
// ../../core/web/dist/cjs/helpers/getDynamicVal.native.js
|
|
3926
|
+
var require_getDynamicVal_native = __commonJS({
|
|
3927
|
+
"../../core/web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
3928
|
+
"use strict";
|
|
3929
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3930
|
+
for (var name in all) __defProp2(target, name, {
|
|
3931
|
+
get: all[name],
|
|
3932
|
+
enumerable: !0
|
|
3933
|
+
});
|
|
3934
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3935
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3936
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3937
|
+
for (var _loop = function() {
|
|
3938
|
+
var key = _step.value;
|
|
3939
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3940
|
+
get: function() {
|
|
3941
|
+
return from[key];
|
|
3942
|
+
},
|
|
3943
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3944
|
+
});
|
|
3945
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3946
|
+
} catch (err) {
|
|
3947
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3948
|
+
} finally {
|
|
3949
|
+
try {
|
|
3950
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3951
|
+
} finally {
|
|
3952
|
+
if (_didIteratorError)
|
|
3953
|
+
throw _iteratorError;
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
return to;
|
|
3957
|
+
}, __toCommonJS2 = function(mod) {
|
|
3958
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3959
|
+
value: !0
|
|
3960
|
+
}), mod);
|
|
3961
|
+
}, getDynamicVal_exports = {};
|
|
3962
|
+
__export2(getDynamicVal_exports, {
|
|
3963
|
+
extractValueFromDynamic: function() {
|
|
3964
|
+
return extractValueFromDynamic;
|
|
3965
|
+
},
|
|
3966
|
+
getDynamicVal: function() {
|
|
3967
|
+
return getDynamicVal;
|
|
3968
|
+
},
|
|
3969
|
+
getOppositeScheme: function() {
|
|
3970
|
+
return getOppositeScheme;
|
|
3971
|
+
}
|
|
3972
|
+
});
|
|
3973
|
+
module2.exports = __toCommonJS2(getDynamicVal_exports);
|
|
3974
|
+
function getOppositeScheme(scheme) {
|
|
3975
|
+
return scheme === "dark" ? "light" : "dark";
|
|
3976
|
+
}
|
|
3977
|
+
function getDynamicVal(param) {
|
|
3978
|
+
var { scheme, val, oppositeVal } = param, oppositeScheme = getOppositeScheme(scheme);
|
|
3979
|
+
return {
|
|
3980
|
+
dynamic: {
|
|
3981
|
+
[scheme]: val,
|
|
3982
|
+
[oppositeScheme]: oppositeVal
|
|
3983
|
+
}
|
|
3984
|
+
};
|
|
3985
|
+
}
|
|
3986
|
+
function extractValueFromDynamic(val, scheme) {
|
|
3987
|
+
return val != null && val.dynamic ? val.dynamic[scheme] : val;
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3925
3992
|
// ../../core/web/dist/cjs/constants/accessibilityDirectMap.native.js
|
|
3926
3993
|
var require_accessibilityDirectMap_native = __commonJS({
|
|
3927
3994
|
"../../core/web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports2, module2) {
|
|
@@ -6336,7 +6403,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6336
6403
|
}
|
|
6337
6404
|
});
|
|
6338
6405
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6339
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
6406
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react3 = __toESM2(require("react")), import_getDynamicVal = require_getDynamicVal_native(), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_consoleLog = require_consoleLog_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getCSSStylesAtomic = require_getCSSStylesAtomic_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_insertStyleRule = require_insertStyleRule_native(), import_isActivePlatform = require_isActivePlatform_native(), import_isActiveTheme = require_isActiveTheme_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), import_sortString = require_sortString_native(), import_transformsToString = require_transformsToString_native(), conf, PROP_SPLIT = "-";
|
|
6340
6407
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6341
6408
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6342
6409
|
}
|
|
@@ -6534,8 +6601,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6534
6601
|
}
|
|
6535
6602
|
} else {
|
|
6536
6603
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
6537
|
-
var
|
|
6538
|
-
(
|
|
6604
|
+
var _styleState4;
|
|
6605
|
+
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
6539
6606
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState3[mediaKeyShort], importanceBump, debug);
|
|
6540
6607
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
6541
6608
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -6548,7 +6615,19 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6548
6615
|
}
|
|
6549
6616
|
var mediaStyle1 = getSubStyle(styleState, key4, val2, !0), importanceBump = 0;
|
|
6550
6617
|
if (isThemeMedia) {
|
|
6551
|
-
if (dynamicThemeAccess = !0,
|
|
6618
|
+
if (dynamicThemeAccess = !0, import_constants4.isIos && (0, import_config.getSetting)("fastSchemeChange")) {
|
|
6619
|
+
var _styleState3;
|
|
6620
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
6621
|
+
var scheme = mediaKeyShort, oppositeScheme = (0, import_getDynamicVal.getOppositeScheme)(mediaKeyShort);
|
|
6622
|
+
for (var subKey1 in mediaStyle1) {
|
|
6623
|
+
var _$val1 = (0, import_getDynamicVal.extractValueFromDynamic)(mediaStyle1[subKey1], scheme), oppositeVal = (0, import_getDynamicVal.extractValueFromDynamic)(styleState.style[subKey1], oppositeScheme);
|
|
6624
|
+
mediaStyle1[subKey1] = (0, import_getDynamicVal.getDynamicVal)({
|
|
6625
|
+
scheme,
|
|
6626
|
+
val: _$val1,
|
|
6627
|
+
oppositeVal
|
|
6628
|
+
}), mergeStyle(styleState, subKey1, mediaStyle1[subKey1]);
|
|
6629
|
+
}
|
|
6630
|
+
} else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
|
|
6552
6631
|
} else if (isGroupMedia) {
|
|
6553
6632
|
var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = context == null ? void 0 : context.groups.state[groupName];
|
|
6554
6633
|
if (!groupContext) {
|
|
@@ -6576,15 +6655,15 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6576
6655
|
importanceBump = priority1;
|
|
6577
6656
|
}
|
|
6578
6657
|
}
|
|
6579
|
-
for (var
|
|
6580
|
-
if (
|
|
6658
|
+
for (var subKey2 in mediaStyle1) {
|
|
6659
|
+
if (subKey2 === "space") {
|
|
6581
6660
|
space = valInit.space;
|
|
6582
6661
|
continue;
|
|
6583
6662
|
}
|
|
6584
|
-
if (
|
|
6585
|
-
if (!(0, import_isActivePlatform.isActivePlatform)(
|
|
6586
|
-
for (var subSubKey in mediaStyle1[
|
|
6587
|
-
} else mergeMediaStyle2(
|
|
6663
|
+
if (subKey2[0] === "$") {
|
|
6664
|
+
if (!(0, import_isActivePlatform.isActivePlatform)(subKey2) || !(0, import_isActiveTheme.isActiveTheme)(subKey2, themeName)) continue;
|
|
6665
|
+
for (var subSubKey in mediaStyle1[subKey2]) mergeMediaStyle2(subSubKey, mediaStyle1[subKey2][subSubKey]);
|
|
6666
|
+
} else mergeMediaStyle2(subKey2, mediaStyle1[subKey2]);
|
|
6588
6667
|
}
|
|
6589
6668
|
}
|
|
6590
6669
|
return;
|
|
@@ -7505,7 +7584,7 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7505
7584
|
}
|
|
7506
7585
|
});
|
|
7507
7586
|
module2.exports = __toCommonJS2(getThemeProxied_exports);
|
|
7508
|
-
var import_constants4 = require_index_native6(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_doesRootSchemeMatchSystem = require_doesRootSchemeMatchSystem_native(), cache = /* @__PURE__ */ new Map(), curKeys, curProps, curState, emptyObject = {};
|
|
7587
|
+
var import_constants4 = require_index_native6(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_doesRootSchemeMatchSystem = require_doesRootSchemeMatchSystem_native(), import_getDynamicVal = require_getDynamicVal_native(), cache = /* @__PURE__ */ new Map(), curKeys, curProps, curState, emptyObject = {};
|
|
7509
7588
|
function getThemeProxied(_props, _state, _keys) {
|
|
7510
7589
|
if (!(_state != null && _state.theme)) return emptyObject;
|
|
7511
7590
|
if (curKeys = _keys, curProps = _props, curState = _state, cache.has(curState.theme)) {
|
|
@@ -7526,12 +7605,11 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7526
7605
|
if (curState) {
|
|
7527
7606
|
var outVal = (0, import_createVariable.getVariable)(value), { name, scheme, inverses } = curState, shouldOptimize = scheme && platform2 !== "web" && import_constants4.isIos && !curProps.deopt && (0, import_config.getSetting)("fastSchemeChange") && inverses === 0 && (0, import_doesRootSchemeMatchSystem.doesRootSchemeMatchSystem)();
|
|
7528
7607
|
if (shouldOptimize) {
|
|
7529
|
-
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = {
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
};
|
|
7608
|
+
var _config_themes_name, _config_themes_oppositeName, oppositeScheme = scheme === "dark" ? "light" : "dark", oppositeName = name.replace(scheme, oppositeScheme), color = (0, import_createVariable.getVariable)((_config_themes_name = config.themes[name]) === null || _config_themes_name === void 0 ? void 0 : _config_themes_name[key]), oppositeColor = (0, import_createVariable.getVariable)((_config_themes_oppositeName = config.themes[oppositeName]) === null || _config_themes_oppositeName === void 0 ? void 0 : _config_themes_oppositeName[key]), dynamicVal = (0, import_getDynamicVal.getDynamicVal)({
|
|
7609
|
+
scheme,
|
|
7610
|
+
val: color,
|
|
7611
|
+
oppositeVal: oppositeColor
|
|
7612
|
+
});
|
|
7535
7613
|
return dynamicVal;
|
|
7536
7614
|
}
|
|
7537
7615
|
return process.env.NODE_ENV === "development" && curProps.debug && console.info(` \u{1F3A8} useTheme() tracking new key because of:
|
|
@@ -8093,7 +8171,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
8093
8171
|
...states[0],
|
|
8094
8172
|
[props.forceStyle]: !0
|
|
8095
8173
|
} : states[0], setState = states[1], isAnimated = willBeAnimated;
|
|
8096
|
-
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (
|
|
8174
|
+
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
|
|
8097
8175
|
...state
|
|
8098
8176
|
}));
|
|
8099
8177
|
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
@@ -8648,7 +8726,16 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8648
8726
|
});
|
|
8649
8727
|
return;
|
|
8650
8728
|
}
|
|
8729
|
+
var tm;
|
|
8651
8730
|
if (state.unmounted) {
|
|
8731
|
+
var _config_animations2, _animationDriver_supportsCSSVars;
|
|
8732
|
+
if ((_animationDriver_supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars) !== null && _animationDriver_supportsCSSVars !== void 0 ? _animationDriver_supportsCSSVars : !(config == null || (_config_animations2 = config.animations) === null || _config_animations2 === void 0) && _config_animations2.supportsCSSVars) return tm = setTimeout(function() {
|
|
8733
|
+
setStateShallow({
|
|
8734
|
+
unmounted: !1
|
|
8735
|
+
});
|
|
8736
|
+
}), function() {
|
|
8737
|
+
return clearTimeout(tm);
|
|
8738
|
+
};
|
|
8652
8739
|
setStateShallow({
|
|
8653
8740
|
unmounted: !1
|
|
8654
8741
|
});
|
|
@@ -19680,7 +19767,8 @@ var require_Dialog_native = __commonJS({
|
|
|
19680
19767
|
// @ts-ignore
|
|
19681
19768
|
ref: composedRefs,
|
|
19682
19769
|
onDismiss: function() {
|
|
19683
|
-
|
|
19770
|
+
var _context_onOpenChange;
|
|
19771
|
+
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1);
|
|
19684
19772
|
},
|
|
19685
19773
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_focus_scope.FocusScope, {
|
|
19686
19774
|
loop: !0,
|
|
@@ -25793,7 +25881,8 @@ var require_Popover_native = __commonJS({
|
|
|
25793
25881
|
ref: forwardedRef,
|
|
25794
25882
|
componentName: "PopoverClose",
|
|
25795
25883
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function() {
|
|
25796
|
-
|
|
25884
|
+
var _context_onOpenChange;
|
|
25885
|
+
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1, "press");
|
|
25797
25886
|
})
|
|
25798
25887
|
});
|
|
25799
25888
|
}), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
|
|
@@ -29926,7 +30015,7 @@ var require_index_native68 = __commonJS({
|
|
|
29926
30015
|
var require_Tabs_native = __commonJS({
|
|
29927
30016
|
"../tabs/dist/cjs/Tabs.native.js"(exports2, module2) {
|
|
29928
30017
|
"use strict";
|
|
29929
|
-
var
|
|
30018
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
29930
30019
|
for (var name in all) __defProp2(target, name, {
|
|
29931
30020
|
get: all[name],
|
|
29932
30021
|
enumerable: !0
|
|
@@ -29954,53 +30043,26 @@ var require_Tabs_native = __commonJS({
|
|
|
29954
30043
|
}
|
|
29955
30044
|
}
|
|
29956
30045
|
return to;
|
|
29957
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
29958
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
29959
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
29960
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
29961
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29962
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29963
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
29964
|
-
value: mod,
|
|
29965
|
-
enumerable: !0
|
|
29966
|
-
}) : target,
|
|
29967
|
-
mod
|
|
29968
|
-
);
|
|
29969
30046
|
}, __toCommonJS2 = function(mod) {
|
|
29970
30047
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
29971
30048
|
value: !0
|
|
29972
30049
|
}), mod);
|
|
29973
30050
|
}, Tabs_exports = {};
|
|
29974
30051
|
__export2(Tabs_exports, {
|
|
29975
|
-
|
|
29976
|
-
return
|
|
30052
|
+
DefaultTabsContentFrame: function() {
|
|
30053
|
+
return DefaultTabsContentFrame;
|
|
29977
30054
|
},
|
|
29978
|
-
|
|
29979
|
-
return
|
|
30055
|
+
DefaultTabsFrame: function() {
|
|
30056
|
+
return DefaultTabsFrame;
|
|
30057
|
+
},
|
|
30058
|
+
DefaultTabsTabFrame: function() {
|
|
30059
|
+
return DefaultTabsTabFrame;
|
|
29980
30060
|
}
|
|
29981
30061
|
});
|
|
29982
30062
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29983
|
-
var
|
|
29984
|
-
|
|
29985
|
-
|
|
29986
|
-
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
29987
|
-
orientation: context.orientation,
|
|
29988
|
-
dir: context.dir,
|
|
29989
|
-
loop,
|
|
29990
|
-
asChild: !0,
|
|
29991
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_group.Group, {
|
|
29992
|
-
role: "tablist",
|
|
29993
|
-
componentName: TAB_LIST_NAME,
|
|
29994
|
-
"aria-orientation": context.orientation,
|
|
29995
|
-
ref: forwardedRef,
|
|
29996
|
-
orientation: context.orientation,
|
|
29997
|
-
...listProps,
|
|
29998
|
-
children
|
|
29999
|
-
})
|
|
30000
|
-
});
|
|
30001
|
-
});
|
|
30002
|
-
TabsList.displayName = TAB_LIST_NAME;
|
|
30003
|
-
var TRIGGER_NAME = "TabsTrigger", TabsTriggerFrame = (0, import_web.styled)(import_stacks3.ThemeableStack, {
|
|
30063
|
+
var import_core12 = require_index_native18(), import_stacks3 = require_index_native22(), import_get_button_sized2 = require_index_native21(), TABS_NAME = "Tabs", DefaultTabsFrame = (0, import_core12.styled)(import_stacks3.SizableStack, {
|
|
30064
|
+
name: TABS_NAME
|
|
30065
|
+
}), TRIGGER_NAME = "TabsTrigger", DefaultTabsTabFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
30004
30066
|
name: TRIGGER_NAME,
|
|
30005
30067
|
tag: "button",
|
|
30006
30068
|
variants: {
|
|
@@ -30047,160 +30109,291 @@ var require_Tabs_native = __commonJS({
|
|
|
30047
30109
|
defaultVariants: {
|
|
30048
30110
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
30049
30111
|
}
|
|
30050
|
-
}),
|
|
30051
|
-
|
|
30052
|
-
|
|
30112
|
+
}), CONTENT_NAME = "TabsContent", DefaultTabsContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
30113
|
+
name: CONTENT_NAME
|
|
30114
|
+
});
|
|
30115
|
+
}
|
|
30116
|
+
});
|
|
30117
|
+
|
|
30118
|
+
// ../tabs/dist/cjs/StyledContext.native.js
|
|
30119
|
+
var require_StyledContext_native2 = __commonJS({
|
|
30120
|
+
"../tabs/dist/cjs/StyledContext.native.js"(exports2, module2) {
|
|
30121
|
+
"use strict";
|
|
30122
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30123
|
+
for (var name in all) __defProp2(target, name, {
|
|
30124
|
+
get: all[name],
|
|
30125
|
+
enumerable: !0
|
|
30053
30126
|
});
|
|
30054
|
-
|
|
30055
|
-
|
|
30056
|
-
|
|
30057
|
-
|
|
30058
|
-
|
|
30059
|
-
|
|
30060
|
-
|
|
30061
|
-
|
|
30062
|
-
|
|
30063
|
-
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
|
|
30067
|
-
|
|
30068
|
-
|
|
30069
|
-
|
|
30070
|
-
|
|
30071
|
-
|
|
30072
|
-
|
|
30073
|
-
|
|
30074
|
-
|
|
30075
|
-
|
|
30076
|
-
|
|
30077
|
-
|
|
30078
|
-
|
|
30079
|
-
value
|
|
30080
|
-
|
|
30081
|
-
|
|
30082
|
-
|
|
30083
|
-
|
|
30084
|
-
|
|
30085
|
-
|
|
30127
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30128
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30129
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30130
|
+
for (var _loop = function() {
|
|
30131
|
+
var key = _step.value;
|
|
30132
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30133
|
+
get: function() {
|
|
30134
|
+
return from[key];
|
|
30135
|
+
},
|
|
30136
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30137
|
+
});
|
|
30138
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30139
|
+
} catch (err) {
|
|
30140
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30141
|
+
} finally {
|
|
30142
|
+
try {
|
|
30143
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30144
|
+
} finally {
|
|
30145
|
+
if (_didIteratorError)
|
|
30146
|
+
throw _iteratorError;
|
|
30147
|
+
}
|
|
30148
|
+
}
|
|
30149
|
+
return to;
|
|
30150
|
+
}, __toCommonJS2 = function(mod) {
|
|
30151
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30152
|
+
value: !0
|
|
30153
|
+
}), mod);
|
|
30154
|
+
}, StyledContext_exports = {};
|
|
30155
|
+
__export2(StyledContext_exports, {
|
|
30156
|
+
TabsProvider: function() {
|
|
30157
|
+
return TabsProvider;
|
|
30158
|
+
},
|
|
30159
|
+
useTabsContext: function() {
|
|
30160
|
+
return useTabsContext;
|
|
30161
|
+
}
|
|
30162
|
+
});
|
|
30163
|
+
module2.exports = __toCommonJS2(StyledContext_exports);
|
|
30164
|
+
var import_core12 = require_index_native18(), { Provider: TabsProvider, useStyledContext: useTabsContext } = (0, import_core12.createStyledContext)();
|
|
30165
|
+
}
|
|
30166
|
+
});
|
|
30167
|
+
|
|
30168
|
+
// ../tabs/dist/cjs/createTabs.native.js
|
|
30169
|
+
var require_createTabs_native = __commonJS({
|
|
30170
|
+
"../tabs/dist/cjs/createTabs.native.js"(exports2, module2) {
|
|
30171
|
+
"use strict";
|
|
30172
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30173
|
+
for (var name in all) __defProp2(target, name, {
|
|
30174
|
+
get: all[name],
|
|
30175
|
+
enumerable: !0
|
|
30176
|
+
});
|
|
30177
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30178
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30179
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30180
|
+
for (var _loop = function() {
|
|
30181
|
+
var key = _step.value;
|
|
30182
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
30183
|
+
get: function() {
|
|
30184
|
+
return from[key];
|
|
30185
|
+
},
|
|
30186
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
30187
|
+
});
|
|
30188
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
30189
|
+
} catch (err) {
|
|
30190
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
30191
|
+
} finally {
|
|
30192
|
+
try {
|
|
30193
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
30194
|
+
} finally {
|
|
30195
|
+
if (_didIteratorError)
|
|
30196
|
+
throw _iteratorError;
|
|
30197
|
+
}
|
|
30198
|
+
}
|
|
30199
|
+
return to;
|
|
30200
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
30201
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
30202
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30203
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30204
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30205
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30206
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
30207
|
+
value: mod,
|
|
30208
|
+
enumerable: !0
|
|
30209
|
+
}) : target,
|
|
30210
|
+
mod
|
|
30211
|
+
);
|
|
30212
|
+
}, __toCommonJS2 = function(mod) {
|
|
30213
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
30214
|
+
value: !0
|
|
30215
|
+
}), mod);
|
|
30216
|
+
}, createTabs_exports = {};
|
|
30217
|
+
__export2(createTabs_exports, {
|
|
30218
|
+
createTabs: function() {
|
|
30219
|
+
return createTabs;
|
|
30220
|
+
}
|
|
30221
|
+
});
|
|
30222
|
+
module2.exports = __toCommonJS2(createTabs_exports);
|
|
30223
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native11(), import_constants4 = require_index_native6(), import_group = require_index_native52(), import_helpers = require_index_native7(), import_roving_focus = require_index_native61(), import_use_controllable_state = require_index_native10(), import_use_direction = require_index_native25(), import_web = require_index_native14(), React4 = __toESM2(require("react")), import_Tabs = require_Tabs_native(), import_StyledContext = require_StyledContext_native2();
|
|
30224
|
+
function createTabs(createProps) {
|
|
30225
|
+
var { ContentFrame = import_Tabs.DefaultTabsContentFrame, TabFrame = import_Tabs.DefaultTabsTabFrame, TabsFrame = import_Tabs.DefaultTabsFrame } = createProps, TABS_CONTEXT = "TabsContext", TAB_LIST_NAME = "TabsList", TabsList = /* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|
|
30226
|
+
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
30227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
30086
30228
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
30229
|
+
orientation: context.orientation,
|
|
30230
|
+
dir: context.dir,
|
|
30231
|
+
loop,
|
|
30087
30232
|
asChild: !0,
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30093
|
-
|
|
30094
|
-
|
|
30095
|
-
|
|
30096
|
-
|
|
30097
|
-
|
|
30098
|
-
|
|
30099
|
-
|
|
30100
|
-
|
|
30101
|
-
|
|
30102
|
-
|
|
30103
|
-
|
|
30104
|
-
|
|
30105
|
-
|
|
30106
|
-
|
|
30107
|
-
|
|
30108
|
-
|
|
30109
|
-
|
|
30110
|
-
|
|
30111
|
-
|
|
30112
|
-
|
|
30113
|
-
|
|
30114
|
-
|
|
30115
|
-
|
|
30116
|
-
|
|
30117
|
-
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30123
|
-
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_group.Group, {
|
|
30234
|
+
role: "tablist",
|
|
30235
|
+
componentName: TAB_LIST_NAME,
|
|
30236
|
+
"aria-orientation": context.orientation,
|
|
30237
|
+
ref: forwardedRef,
|
|
30238
|
+
orientation: context.orientation,
|
|
30239
|
+
...listProps,
|
|
30240
|
+
children
|
|
30241
|
+
})
|
|
30242
|
+
});
|
|
30243
|
+
});
|
|
30244
|
+
TabsList.displayName = TAB_LIST_NAME;
|
|
30245
|
+
var TRIGGER_NAME = "TabsTrigger", TabsTrigger = TabFrame.styleable(function(props, forwardedRef) {
|
|
30246
|
+
var { __scopeTabs, value, disabled = !1, onInteraction, disableActiveTheme, ...triggerProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), triggerId = makeTriggerId(context.baseId, value), contentId = makeContentId(context.baseId, value), isSelected = value === context.value, [layout, setLayout] = React4.useState(null), triggerRef = React4.useRef(null), groupItemProps = (0, import_group.useGroupItem)({
|
|
30247
|
+
disabled: !!disabled
|
|
30248
|
+
});
|
|
30249
|
+
React4.useEffect(function() {
|
|
30250
|
+
return context.registerTrigger(), function() {
|
|
30251
|
+
return context.unregisterTrigger();
|
|
30252
|
+
};
|
|
30253
|
+
}, []), React4.useEffect(function() {
|
|
30254
|
+
if (!triggerRef.current || !import_constants4.isWeb) return;
|
|
30255
|
+
function getTriggerSize() {
|
|
30256
|
+
triggerRef.current && setLayout({
|
|
30257
|
+
width: triggerRef.current.offsetWidth,
|
|
30258
|
+
height: triggerRef.current.offsetHeight,
|
|
30259
|
+
x: triggerRef.current.offsetLeft,
|
|
30260
|
+
y: triggerRef.current.offsetTop
|
|
30261
|
+
});
|
|
30262
|
+
}
|
|
30263
|
+
getTriggerSize();
|
|
30264
|
+
var observer = new ResizeObserver(getTriggerSize);
|
|
30265
|
+
return observer.observe(triggerRef.current), function() {
|
|
30266
|
+
triggerRef.current && observer.unobserve(triggerRef.current);
|
|
30267
|
+
};
|
|
30268
|
+
}, [
|
|
30269
|
+
context.triggersCount
|
|
30270
|
+
]), React4.useEffect(function() {
|
|
30271
|
+
isSelected && layout && (onInteraction == null || onInteraction("select", layout));
|
|
30272
|
+
}, [
|
|
30273
|
+
isSelected,
|
|
30274
|
+
value,
|
|
30275
|
+
layout
|
|
30276
|
+
]);
|
|
30277
|
+
var _props_onPress;
|
|
30278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.Theme, {
|
|
30279
|
+
name: isSelected && !disableActiveTheme ? "active" : null,
|
|
30280
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, {
|
|
30281
|
+
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
30282
|
+
asChild: !0,
|
|
30283
|
+
focusable: !disabled,
|
|
30284
|
+
active: isSelected,
|
|
30285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabFrame, {
|
|
30286
|
+
onLayout: function(event) {
|
|
30287
|
+
import_constants4.isWeb || setLayout(event.nativeEvent.layout);
|
|
30288
|
+
},
|
|
30289
|
+
onHoverIn: (0, import_helpers.composeEventHandlers)(props.onHoverIn, function() {
|
|
30290
|
+
layout && (onInteraction == null || onInteraction("hover", layout));
|
|
30127
30291
|
}),
|
|
30128
|
-
|
|
30129
|
-
|
|
30130
|
-
var isAutomaticActivation = context.activationMode !== "manual";
|
|
30131
|
-
!isSelected && !disabled && isAutomaticActivation && context.onChange(value);
|
|
30292
|
+
onHoverOut: (0, import_helpers.composeEventHandlers)(props.onHoverOut, function() {
|
|
30293
|
+
onInteraction == null || onInteraction("hover", null);
|
|
30132
30294
|
}),
|
|
30133
|
-
|
|
30134
|
-
|
|
30135
|
-
|
|
30136
|
-
|
|
30295
|
+
role: "tab",
|
|
30296
|
+
"aria-selected": isSelected,
|
|
30297
|
+
"aria-controls": contentId,
|
|
30298
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
30299
|
+
"data-disabled": disabled ? "" : void 0,
|
|
30300
|
+
disabled,
|
|
30301
|
+
id: triggerId,
|
|
30302
|
+
...!props.unstyled && {
|
|
30303
|
+
size: context.size
|
|
30304
|
+
},
|
|
30305
|
+
...isSelected && {
|
|
30306
|
+
forceStyle: "focus"
|
|
30307
|
+
},
|
|
30308
|
+
...groupItemProps,
|
|
30309
|
+
...triggerProps,
|
|
30310
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, triggerRef),
|
|
30311
|
+
onPress: (0, import_helpers.composeEventHandlers)((_props_onPress = props.onPress) !== null && _props_onPress !== void 0 ? _props_onPress : void 0, function(event) {
|
|
30312
|
+
var webChecks = !import_constants4.isWeb || event.button === 0 && event.ctrlKey === !1;
|
|
30313
|
+
!disabled && !isSelected && webChecks ? context.onChange(value) : event.preventDefault();
|
|
30314
|
+
}),
|
|
30315
|
+
...import_constants4.isWeb && {
|
|
30316
|
+
type: "button",
|
|
30317
|
+
onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {
|
|
30318
|
+
[
|
|
30319
|
+
" ",
|
|
30320
|
+
"Enter"
|
|
30321
|
+
].includes(event.key) && (context.onChange(value), event.preventDefault());
|
|
30322
|
+
}),
|
|
30323
|
+
onFocus: (0, import_helpers.composeEventHandlers)(props.onFocus, function(event) {
|
|
30324
|
+
layout && (onInteraction == null || onInteraction("focus", layout));
|
|
30325
|
+
var isAutomaticActivation = context.activationMode !== "manual";
|
|
30326
|
+
!isSelected && !disabled && isAutomaticActivation && context.onChange(value);
|
|
30327
|
+
}),
|
|
30328
|
+
onBlur: (0, import_helpers.composeEventHandlers)(props.onFocus, function() {
|
|
30329
|
+
onInteraction == null || onInteraction("focus", null);
|
|
30330
|
+
})
|
|
30331
|
+
}
|
|
30332
|
+
})
|
|
30137
30333
|
})
|
|
30138
|
-
})
|
|
30334
|
+
});
|
|
30139
30335
|
});
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30156
|
-
|
|
30157
|
-
|
|
30158
|
-
|
|
30159
|
-
|
|
30160
|
-
|
|
30161
|
-
|
|
30162
|
-
|
|
30163
|
-
|
|
30164
|
-
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30336
|
+
TabsTrigger.displayName = TRIGGER_NAME;
|
|
30337
|
+
var TabsContent = ContentFrame.styleable(function(props, forwardedRef) {
|
|
30338
|
+
var { __scopeTabs, value, forceMount, children, ...contentProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs), isSelected = value === context.value, show = forceMount || isSelected, triggerId = makeTriggerId(context.baseId, value), contentId = makeContentId(context.baseId, value);
|
|
30339
|
+
return show ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ContentFrame, {
|
|
30340
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
30341
|
+
"data-orientation": context.orientation,
|
|
30342
|
+
role: "tabpanel",
|
|
30343
|
+
"aria-labelledby": triggerId,
|
|
30344
|
+
// @ts-ignore
|
|
30345
|
+
hidden: !show,
|
|
30346
|
+
id: contentId,
|
|
30347
|
+
tabIndex: 0,
|
|
30348
|
+
...contentProps,
|
|
30349
|
+
ref: forwardedRef,
|
|
30350
|
+
children
|
|
30351
|
+
}, value) : null;
|
|
30352
|
+
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
30353
|
+
var { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", size: size4 = "$true", ...tabsProps } = props, direction = (0, import_use_direction.useDirection)(dir), [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
30354
|
+
prop: valueProp,
|
|
30355
|
+
onChange: onValueChange,
|
|
30356
|
+
defaultProp: defaultValue ?? ""
|
|
30357
|
+
}), [triggersCount, setTriggersCount] = React4.useState(0), registerTrigger = (0, import_web.useEvent)(function() {
|
|
30358
|
+
return setTriggersCount(function(v) {
|
|
30359
|
+
return v + 1;
|
|
30360
|
+
});
|
|
30361
|
+
}), unregisterTrigger = (0, import_web.useEvent)(function() {
|
|
30362
|
+
return setTriggersCount(function(v) {
|
|
30363
|
+
return v - 1;
|
|
30364
|
+
});
|
|
30169
30365
|
});
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_StyledContext.TabsProvider, {
|
|
30367
|
+
scope: __scopeTabs,
|
|
30368
|
+
baseId: React4.useId(),
|
|
30369
|
+
value,
|
|
30370
|
+
onChange: setValue,
|
|
30371
|
+
orientation,
|
|
30372
|
+
dir: direction,
|
|
30373
|
+
activationMode,
|
|
30374
|
+
size: size4,
|
|
30375
|
+
registerTrigger,
|
|
30376
|
+
triggersCount,
|
|
30377
|
+
unregisterTrigger,
|
|
30378
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsFrame, {
|
|
30379
|
+
direction,
|
|
30380
|
+
// dir={direction}
|
|
30381
|
+
"data-orientation": orientation,
|
|
30382
|
+
...tabsProps,
|
|
30383
|
+
ref: forwardedRef
|
|
30384
|
+
})
|
|
30173
30385
|
});
|
|
30174
30386
|
});
|
|
30175
|
-
return
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30180
|
-
|
|
30181
|
-
|
|
30182
|
-
|
|
30183
|
-
size: size4,
|
|
30184
|
-
registerTrigger,
|
|
30185
|
-
triggersCount,
|
|
30186
|
-
unregisterTrigger,
|
|
30187
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsFrame, {
|
|
30188
|
-
direction,
|
|
30189
|
-
// dir={direction}
|
|
30190
|
-
"data-orientation": orientation,
|
|
30191
|
-
...tabsProps,
|
|
30192
|
-
ref: forwardedRef
|
|
30193
|
-
})
|
|
30387
|
+
return (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
30388
|
+
List: TabsList,
|
|
30389
|
+
/**
|
|
30390
|
+
* @deprecated Use Tabs.Tab instead
|
|
30391
|
+
*/
|
|
30392
|
+
Trigger: TabsTrigger,
|
|
30393
|
+
Tab: TabsTrigger,
|
|
30394
|
+
Content: TabsContent
|
|
30194
30395
|
});
|
|
30195
|
-
}
|
|
30196
|
-
List: TabsList,
|
|
30197
|
-
/**
|
|
30198
|
-
* @deprecated Use Tabs.Tab instead
|
|
30199
|
-
*/
|
|
30200
|
-
Trigger: TabsTrigger,
|
|
30201
|
-
Tab: TabsTrigger,
|
|
30202
|
-
Content: TabsContent
|
|
30203
|
-
});
|
|
30396
|
+
}
|
|
30204
30397
|
function makeTriggerId(baseId, value) {
|
|
30205
30398
|
return `${baseId}-trigger-${value}`;
|
|
30206
30399
|
}
|
|
@@ -30214,7 +30407,12 @@ var require_Tabs_native = __commonJS({
|
|
|
30214
30407
|
var require_index_native69 = __commonJS({
|
|
30215
30408
|
"../tabs/dist/cjs/index.native.js"(exports2, module2) {
|
|
30216
30409
|
"use strict";
|
|
30217
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty,
|
|
30410
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
30411
|
+
for (var name in all) __defProp2(target, name, {
|
|
30412
|
+
get: all[name],
|
|
30413
|
+
enumerable: !0
|
|
30414
|
+
});
|
|
30415
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
30218
30416
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30219
30417
|
if (from && typeof from == "object" || typeof from == "function") try {
|
|
30220
30418
|
for (var _loop = function() {
|
|
@@ -30244,8 +30442,20 @@ var require_index_native69 = __commonJS({
|
|
|
30244
30442
|
value: !0
|
|
30245
30443
|
}), mod);
|
|
30246
30444
|
}, index_exports2 = {};
|
|
30445
|
+
__export2(index_exports2, {
|
|
30446
|
+
Tabs: function() {
|
|
30447
|
+
return Tabs;
|
|
30448
|
+
}
|
|
30449
|
+
});
|
|
30247
30450
|
module2.exports = __toCommonJS2(index_exports2);
|
|
30248
|
-
|
|
30451
|
+
var import_createTabs = require_createTabs_native(), import_Tabs = require_Tabs_native();
|
|
30452
|
+
__reExport2(index_exports2, require_createTabs_native(), module2.exports);
|
|
30453
|
+
__reExport2(index_exports2, require_StyledContext_native2(), module2.exports);
|
|
30454
|
+
var Tabs = (0, import_createTabs.createTabs)({
|
|
30455
|
+
ContentFrame: import_Tabs.DefaultTabsContentFrame,
|
|
30456
|
+
TabFrame: import_Tabs.DefaultTabsTabFrame,
|
|
30457
|
+
TabsFrame: import_Tabs.DefaultTabsFrame
|
|
30458
|
+
});
|
|
30249
30459
|
}
|
|
30250
30460
|
});
|
|
30251
30461
|
|