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/test.native.js
CHANGED
|
@@ -3652,6 +3652,73 @@ var require_getShorthandValue_native = __commonJS({
|
|
|
3652
3652
|
}
|
|
3653
3653
|
});
|
|
3654
3654
|
|
|
3655
|
+
// ../../core/web/dist/cjs/helpers/getDynamicVal.native.js
|
|
3656
|
+
var require_getDynamicVal_native = __commonJS({
|
|
3657
|
+
"../../core/web/dist/cjs/helpers/getDynamicVal.native.js"(exports2, module2) {
|
|
3658
|
+
"use strict";
|
|
3659
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
3660
|
+
for (var name in all) __defProp2(target, name, {
|
|
3661
|
+
get: all[name],
|
|
3662
|
+
enumerable: !0
|
|
3663
|
+
});
|
|
3664
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
3665
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
3666
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
3667
|
+
for (var _loop = function() {
|
|
3668
|
+
var key = _step.value;
|
|
3669
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
3670
|
+
get: function() {
|
|
3671
|
+
return from[key];
|
|
3672
|
+
},
|
|
3673
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
3674
|
+
});
|
|
3675
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
3676
|
+
} catch (err) {
|
|
3677
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
3678
|
+
} finally {
|
|
3679
|
+
try {
|
|
3680
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
3681
|
+
} finally {
|
|
3682
|
+
if (_didIteratorError)
|
|
3683
|
+
throw _iteratorError;
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
return to;
|
|
3687
|
+
}, __toCommonJS2 = function(mod) {
|
|
3688
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
3689
|
+
value: !0
|
|
3690
|
+
}), mod);
|
|
3691
|
+
}, getDynamicVal_exports = {};
|
|
3692
|
+
__export2(getDynamicVal_exports, {
|
|
3693
|
+
extractValueFromDynamic: function() {
|
|
3694
|
+
return extractValueFromDynamic;
|
|
3695
|
+
},
|
|
3696
|
+
getDynamicVal: function() {
|
|
3697
|
+
return getDynamicVal;
|
|
3698
|
+
},
|
|
3699
|
+
getOppositeScheme: function() {
|
|
3700
|
+
return getOppositeScheme;
|
|
3701
|
+
}
|
|
3702
|
+
});
|
|
3703
|
+
module2.exports = __toCommonJS2(getDynamicVal_exports);
|
|
3704
|
+
function getOppositeScheme(scheme) {
|
|
3705
|
+
return scheme === "dark" ? "light" : "dark";
|
|
3706
|
+
}
|
|
3707
|
+
function getDynamicVal(param) {
|
|
3708
|
+
var { scheme, val, oppositeVal } = param, oppositeScheme = getOppositeScheme(scheme);
|
|
3709
|
+
return {
|
|
3710
|
+
dynamic: {
|
|
3711
|
+
[scheme]: val,
|
|
3712
|
+
[oppositeScheme]: oppositeVal
|
|
3713
|
+
}
|
|
3714
|
+
};
|
|
3715
|
+
}
|
|
3716
|
+
function extractValueFromDynamic(val, scheme) {
|
|
3717
|
+
return val != null && val.dynamic ? val.dynamic[scheme] : val;
|
|
3718
|
+
}
|
|
3719
|
+
}
|
|
3720
|
+
});
|
|
3721
|
+
|
|
3655
3722
|
// ../../core/web/dist/cjs/constants/accessibilityDirectMap.native.js
|
|
3656
3723
|
var require_accessibilityDirectMap_native = __commonJS({
|
|
3657
3724
|
"../../core/web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports2, module2) {
|
|
@@ -6051,7 +6118,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6051
6118
|
}
|
|
6052
6119
|
});
|
|
6053
6120
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
6054
|
-
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 = "-";
|
|
6121
|
+
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 = "-";
|
|
6055
6122
|
function isValidStyleKey(key, validStyles, accept) {
|
|
6056
6123
|
return key in validStyles ? !0 : accept && key in accept;
|
|
6057
6124
|
}
|
|
@@ -6209,8 +6276,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6209
6276
|
}
|
|
6210
6277
|
} else {
|
|
6211
6278
|
var mergeMediaStyle2 = function(key5, val3) {
|
|
6212
|
-
var
|
|
6213
|
-
(
|
|
6279
|
+
var _styleState4;
|
|
6280
|
+
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
6214
6281
|
var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key5, val3, usedKeys, mediaState3[mediaKeyShort], importanceBump, debug);
|
|
6215
6282
|
didMerge && key5 === "fontFamily" && (styleState.fontFamily = mediaStyle1.fontFamily);
|
|
6216
6283
|
}, mergeMediaStyle = mergeMediaStyle2, isThemeMedia = isMedia === "theme", isGroupMedia = isMedia === "group", isPlatformMedia = isMedia === "platform";
|
|
@@ -6218,7 +6285,19 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6218
6285
|
return;
|
|
6219
6286
|
var mediaStyle1 = getSubStyle(styleState, key4, val2, !0), importanceBump = 0;
|
|
6220
6287
|
if (isThemeMedia) {
|
|
6221
|
-
if (dynamicThemeAccess = !0,
|
|
6288
|
+
if (dynamicThemeAccess = !0, import_constants4.isIos && (0, import_config.getSetting)("fastSchemeChange")) {
|
|
6289
|
+
var _styleState3;
|
|
6290
|
+
(_styleState3 = styleState).style || (_styleState3.style = {});
|
|
6291
|
+
var scheme = mediaKeyShort, oppositeScheme = (0, import_getDynamicVal.getOppositeScheme)(mediaKeyShort);
|
|
6292
|
+
for (var subKey1 in mediaStyle1) {
|
|
6293
|
+
var _$val1 = (0, import_getDynamicVal.extractValueFromDynamic)(mediaStyle1[subKey1], scheme), oppositeVal = (0, import_getDynamicVal.extractValueFromDynamic)(styleState.style[subKey1], oppositeScheme);
|
|
6294
|
+
mediaStyle1[subKey1] = (0, import_getDynamicVal.getDynamicVal)({
|
|
6295
|
+
scheme,
|
|
6296
|
+
val: _$val1,
|
|
6297
|
+
oppositeVal
|
|
6298
|
+
}), mergeStyle(styleState, subKey1, mediaStyle1[subKey1]);
|
|
6299
|
+
}
|
|
6300
|
+
} else if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
|
|
6222
6301
|
} else if (isGroupMedia) {
|
|
6223
6302
|
var _componentState_group, groupInfo = (0, import_getGroupPropParts.getGroupPropParts)(mediaKeyShort), groupName = groupInfo.name, groupContext = context == null ? void 0 : context.groups.state[groupName];
|
|
6224
6303
|
if (!groupContext)
|
|
@@ -6244,15 +6323,15 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
6244
6323
|
importanceBump = priority1;
|
|
6245
6324
|
}
|
|
6246
6325
|
}
|
|
6247
|
-
for (var
|
|
6248
|
-
if (
|
|
6326
|
+
for (var subKey2 in mediaStyle1) {
|
|
6327
|
+
if (subKey2 === "space") {
|
|
6249
6328
|
space = valInit.space;
|
|
6250
6329
|
continue;
|
|
6251
6330
|
}
|
|
6252
|
-
if (
|
|
6253
|
-
if (!(0, import_isActivePlatform.isActivePlatform)(
|
|
6254
|
-
for (var subSubKey in mediaStyle1[
|
|
6255
|
-
} else mergeMediaStyle2(
|
|
6331
|
+
if (subKey2[0] === "$") {
|
|
6332
|
+
if (!(0, import_isActivePlatform.isActivePlatform)(subKey2) || !(0, import_isActiveTheme.isActiveTheme)(subKey2, themeName)) continue;
|
|
6333
|
+
for (var subSubKey in mediaStyle1[subKey2]) mergeMediaStyle2(subSubKey, mediaStyle1[subKey2][subSubKey]);
|
|
6334
|
+
} else mergeMediaStyle2(subKey2, mediaStyle1[subKey2]);
|
|
6256
6335
|
}
|
|
6257
6336
|
}
|
|
6258
6337
|
return;
|
|
@@ -7112,7 +7191,7 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7112
7191
|
}
|
|
7113
7192
|
});
|
|
7114
7193
|
module2.exports = __toCommonJS2(getThemeProxied_exports);
|
|
7115
|
-
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 = {};
|
|
7194
|
+
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 = {};
|
|
7116
7195
|
function getThemeProxied(_props, _state, _keys) {
|
|
7117
7196
|
if (!(_state != null && _state.theme)) return emptyObject;
|
|
7118
7197
|
if (curKeys = _keys, curProps = _props, curState = _state, cache.has(curState.theme)) {
|
|
@@ -7133,12 +7212,11 @@ var require_getThemeProxied_native = __commonJS({
|
|
|
7133
7212
|
if (curState) {
|
|
7134
7213
|
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)();
|
|
7135
7214
|
if (shouldOptimize) {
|
|
7136
|
-
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 = {
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
};
|
|
7215
|
+
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)({
|
|
7216
|
+
scheme,
|
|
7217
|
+
val: color,
|
|
7218
|
+
oppositeVal: oppositeColor
|
|
7219
|
+
});
|
|
7142
7220
|
return dynamicVal;
|
|
7143
7221
|
}
|
|
7144
7222
|
return track(key), outVal;
|
|
@@ -7681,7 +7759,7 @@ var require_useComponentState_native = __commonJS({
|
|
|
7681
7759
|
...states[0],
|
|
7682
7760
|
[props.forceStyle]: !0
|
|
7683
7761
|
} : states[0], setState = states[1], isAnimated = willBeAnimated;
|
|
7684
|
-
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (
|
|
7762
|
+
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({
|
|
7685
7763
|
...state
|
|
7686
7764
|
}));
|
|
7687
7765
|
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
|
|
@@ -8136,7 +8214,16 @@ var require_createComponent_native = __commonJS({
|
|
|
8136
8214
|
});
|
|
8137
8215
|
return;
|
|
8138
8216
|
}
|
|
8217
|
+
var tm;
|
|
8139
8218
|
if (state.unmounted) {
|
|
8219
|
+
var _config_animations2, _animationDriver_supportsCSSVars;
|
|
8220
|
+
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() {
|
|
8221
|
+
setStateShallow({
|
|
8222
|
+
unmounted: !1
|
|
8223
|
+
});
|
|
8224
|
+
}), function() {
|
|
8225
|
+
return clearTimeout(tm);
|
|
8226
|
+
};
|
|
8140
8227
|
setStateShallow({
|
|
8141
8228
|
unmounted: !1
|
|
8142
8229
|
});
|
|
@@ -19073,7 +19160,8 @@ var require_Dialog_native = __commonJS({
|
|
|
19073
19160
|
// @ts-ignore
|
|
19074
19161
|
ref: composedRefs,
|
|
19075
19162
|
onDismiss: function() {
|
|
19076
|
-
|
|
19163
|
+
var _context_onOpenChange;
|
|
19164
|
+
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1);
|
|
19077
19165
|
},
|
|
19078
19166
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_focus_scope.FocusScope, {
|
|
19079
19167
|
loop: !0,
|
|
@@ -25097,7 +25185,8 @@ var require_Popover_native = __commonJS({
|
|
|
25097
25185
|
ref: forwardedRef,
|
|
25098
25186
|
componentName: "PopoverClose",
|
|
25099
25187
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function() {
|
|
25100
|
-
|
|
25188
|
+
var _context_onOpenChange;
|
|
25189
|
+
return context == null || (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, !1, "press");
|
|
25101
25190
|
})
|
|
25102
25191
|
});
|
|
25103
25192
|
}), PopoverArrow = import_popper.PopperArrow.styleable(function(props, forwardedRef) {
|
|
@@ -29230,7 +29319,7 @@ var require_index_native68 = __commonJS({
|
|
|
29230
29319
|
var require_Tabs_native = __commonJS({
|
|
29231
29320
|
"../tabs/dist/cjs/Tabs.native.js"(exports2, module2) {
|
|
29232
29321
|
"use strict";
|
|
29233
|
-
var
|
|
29322
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
29234
29323
|
for (var name in all) __defProp2(target, name, {
|
|
29235
29324
|
get: all[name],
|
|
29236
29325
|
enumerable: !0
|
|
@@ -29258,53 +29347,26 @@ var require_Tabs_native = __commonJS({
|
|
|
29258
29347
|
}
|
|
29259
29348
|
}
|
|
29260
29349
|
return to;
|
|
29261
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
29262
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
29263
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
29264
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
29265
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29266
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29267
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
29268
|
-
value: mod,
|
|
29269
|
-
enumerable: !0
|
|
29270
|
-
}) : target,
|
|
29271
|
-
mod
|
|
29272
|
-
);
|
|
29273
29350
|
}, __toCommonJS2 = function(mod) {
|
|
29274
29351
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
29275
29352
|
value: !0
|
|
29276
29353
|
}), mod);
|
|
29277
29354
|
}, Tabs_exports = {};
|
|
29278
29355
|
__export2(Tabs_exports, {
|
|
29279
|
-
|
|
29280
|
-
return
|
|
29356
|
+
DefaultTabsContentFrame: function() {
|
|
29357
|
+
return DefaultTabsContentFrame;
|
|
29281
29358
|
},
|
|
29282
|
-
|
|
29283
|
-
return
|
|
29359
|
+
DefaultTabsFrame: function() {
|
|
29360
|
+
return DefaultTabsFrame;
|
|
29361
|
+
},
|
|
29362
|
+
DefaultTabsTabFrame: function() {
|
|
29363
|
+
return DefaultTabsTabFrame;
|
|
29284
29364
|
}
|
|
29285
29365
|
});
|
|
29286
29366
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
29287
|
-
var
|
|
29288
|
-
|
|
29289
|
-
|
|
29290
|
-
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
29291
|
-
orientation: context.orientation,
|
|
29292
|
-
dir: context.dir,
|
|
29293
|
-
loop,
|
|
29294
|
-
asChild: !0,
|
|
29295
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_group.Group, {
|
|
29296
|
-
role: "tablist",
|
|
29297
|
-
componentName: TAB_LIST_NAME,
|
|
29298
|
-
"aria-orientation": context.orientation,
|
|
29299
|
-
ref: forwardedRef,
|
|
29300
|
-
orientation: context.orientation,
|
|
29301
|
-
...listProps,
|
|
29302
|
-
children
|
|
29303
|
-
})
|
|
29304
|
-
});
|
|
29305
|
-
});
|
|
29306
|
-
TabsList.displayName = TAB_LIST_NAME;
|
|
29307
|
-
var TRIGGER_NAME = "TabsTrigger", TabsTriggerFrame = (0, import_web.styled)(import_stacks3.ThemeableStack, {
|
|
29367
|
+
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, {
|
|
29368
|
+
name: TABS_NAME
|
|
29369
|
+
}), TRIGGER_NAME = "TabsTrigger", DefaultTabsTabFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
29308
29370
|
name: TRIGGER_NAME,
|
|
29309
29371
|
tag: "button",
|
|
29310
29372
|
variants: {
|
|
@@ -29351,160 +29413,291 @@ var require_Tabs_native = __commonJS({
|
|
|
29351
29413
|
defaultVariants: {
|
|
29352
29414
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
29353
29415
|
}
|
|
29354
|
-
}),
|
|
29355
|
-
|
|
29356
|
-
|
|
29416
|
+
}), CONTENT_NAME = "TabsContent", DefaultTabsContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
29417
|
+
name: CONTENT_NAME
|
|
29418
|
+
});
|
|
29419
|
+
}
|
|
29420
|
+
});
|
|
29421
|
+
|
|
29422
|
+
// ../tabs/dist/cjs/StyledContext.native.js
|
|
29423
|
+
var require_StyledContext_native2 = __commonJS({
|
|
29424
|
+
"../tabs/dist/cjs/StyledContext.native.js"(exports2, module2) {
|
|
29425
|
+
"use strict";
|
|
29426
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
29427
|
+
for (var name in all) __defProp2(target, name, {
|
|
29428
|
+
get: all[name],
|
|
29429
|
+
enumerable: !0
|
|
29357
29430
|
});
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
value
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29431
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
29432
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
29433
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
29434
|
+
for (var _loop = function() {
|
|
29435
|
+
var key = _step.value;
|
|
29436
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
29437
|
+
get: function() {
|
|
29438
|
+
return from[key];
|
|
29439
|
+
},
|
|
29440
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
29441
|
+
});
|
|
29442
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
29443
|
+
} catch (err) {
|
|
29444
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
29445
|
+
} finally {
|
|
29446
|
+
try {
|
|
29447
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
29448
|
+
} finally {
|
|
29449
|
+
if (_didIteratorError)
|
|
29450
|
+
throw _iteratorError;
|
|
29451
|
+
}
|
|
29452
|
+
}
|
|
29453
|
+
return to;
|
|
29454
|
+
}, __toCommonJS2 = function(mod) {
|
|
29455
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
29456
|
+
value: !0
|
|
29457
|
+
}), mod);
|
|
29458
|
+
}, StyledContext_exports = {};
|
|
29459
|
+
__export2(StyledContext_exports, {
|
|
29460
|
+
TabsProvider: function() {
|
|
29461
|
+
return TabsProvider;
|
|
29462
|
+
},
|
|
29463
|
+
useTabsContext: function() {
|
|
29464
|
+
return useTabsContext;
|
|
29465
|
+
}
|
|
29466
|
+
});
|
|
29467
|
+
module2.exports = __toCommonJS2(StyledContext_exports);
|
|
29468
|
+
var import_core12 = require_index_native18(), { Provider: TabsProvider, useStyledContext: useTabsContext } = (0, import_core12.createStyledContext)();
|
|
29469
|
+
}
|
|
29470
|
+
});
|
|
29471
|
+
|
|
29472
|
+
// ../tabs/dist/cjs/createTabs.native.js
|
|
29473
|
+
var require_createTabs_native = __commonJS({
|
|
29474
|
+
"../tabs/dist/cjs/createTabs.native.js"(exports2, module2) {
|
|
29475
|
+
"use strict";
|
|
29476
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
29477
|
+
for (var name in all) __defProp2(target, name, {
|
|
29478
|
+
get: all[name],
|
|
29479
|
+
enumerable: !0
|
|
29480
|
+
});
|
|
29481
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
29482
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
29483
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
29484
|
+
for (var _loop = function() {
|
|
29485
|
+
var key = _step.value;
|
|
29486
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
29487
|
+
get: function() {
|
|
29488
|
+
return from[key];
|
|
29489
|
+
},
|
|
29490
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
29491
|
+
});
|
|
29492
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
29493
|
+
} catch (err) {
|
|
29494
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
29495
|
+
} finally {
|
|
29496
|
+
try {
|
|
29497
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
29498
|
+
} finally {
|
|
29499
|
+
if (_didIteratorError)
|
|
29500
|
+
throw _iteratorError;
|
|
29501
|
+
}
|
|
29502
|
+
}
|
|
29503
|
+
return to;
|
|
29504
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
29505
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
29506
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29507
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29508
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29509
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29510
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
29511
|
+
value: mod,
|
|
29512
|
+
enumerable: !0
|
|
29513
|
+
}) : target,
|
|
29514
|
+
mod
|
|
29515
|
+
);
|
|
29516
|
+
}, __toCommonJS2 = function(mod) {
|
|
29517
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
29518
|
+
value: !0
|
|
29519
|
+
}), mod);
|
|
29520
|
+
}, createTabs_exports = {};
|
|
29521
|
+
__export2(createTabs_exports, {
|
|
29522
|
+
createTabs: function() {
|
|
29523
|
+
return createTabs;
|
|
29524
|
+
}
|
|
29525
|
+
});
|
|
29526
|
+
module2.exports = __toCommonJS2(createTabs_exports);
|
|
29527
|
+
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();
|
|
29528
|
+
function createTabs(createProps) {
|
|
29529
|
+
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) {
|
|
29530
|
+
var { __scopeTabs, loop = !0, children, ...listProps } = props, context = (0, import_StyledContext.useTabsContext)(__scopeTabs);
|
|
29531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
29390
29532
|
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
29533
|
+
orientation: context.orientation,
|
|
29534
|
+
dir: context.dir,
|
|
29535
|
+
loop,
|
|
29391
29536
|
asChild: !0,
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29395
|
-
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
|
|
29423
|
-
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
|
|
29427
|
-
|
|
29428
|
-
|
|
29429
|
-
|
|
29430
|
-
|
|
29537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_group.Group, {
|
|
29538
|
+
role: "tablist",
|
|
29539
|
+
componentName: TAB_LIST_NAME,
|
|
29540
|
+
"aria-orientation": context.orientation,
|
|
29541
|
+
ref: forwardedRef,
|
|
29542
|
+
orientation: context.orientation,
|
|
29543
|
+
...listProps,
|
|
29544
|
+
children
|
|
29545
|
+
})
|
|
29546
|
+
});
|
|
29547
|
+
});
|
|
29548
|
+
TabsList.displayName = TAB_LIST_NAME;
|
|
29549
|
+
var TRIGGER_NAME = "TabsTrigger", TabsTrigger = TabFrame.styleable(function(props, forwardedRef) {
|
|
29550
|
+
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)({
|
|
29551
|
+
disabled: !!disabled
|
|
29552
|
+
});
|
|
29553
|
+
React4.useEffect(function() {
|
|
29554
|
+
return context.registerTrigger(), function() {
|
|
29555
|
+
return context.unregisterTrigger();
|
|
29556
|
+
};
|
|
29557
|
+
}, []), React4.useEffect(function() {
|
|
29558
|
+
if (!triggerRef.current || !import_constants4.isWeb) return;
|
|
29559
|
+
function getTriggerSize() {
|
|
29560
|
+
triggerRef.current && setLayout({
|
|
29561
|
+
width: triggerRef.current.offsetWidth,
|
|
29562
|
+
height: triggerRef.current.offsetHeight,
|
|
29563
|
+
x: triggerRef.current.offsetLeft,
|
|
29564
|
+
y: triggerRef.current.offsetTop
|
|
29565
|
+
});
|
|
29566
|
+
}
|
|
29567
|
+
getTriggerSize();
|
|
29568
|
+
var observer = new ResizeObserver(getTriggerSize);
|
|
29569
|
+
return observer.observe(triggerRef.current), function() {
|
|
29570
|
+
triggerRef.current && observer.unobserve(triggerRef.current);
|
|
29571
|
+
};
|
|
29572
|
+
}, [
|
|
29573
|
+
context.triggersCount
|
|
29574
|
+
]), React4.useEffect(function() {
|
|
29575
|
+
isSelected && layout && (onInteraction == null || onInteraction("select", layout));
|
|
29576
|
+
}, [
|
|
29577
|
+
isSelected,
|
|
29578
|
+
value,
|
|
29579
|
+
layout
|
|
29580
|
+
]);
|
|
29581
|
+
var _props_onPress;
|
|
29582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.Theme, {
|
|
29583
|
+
name: isSelected && !disableActiveTheme ? "active" : null,
|
|
29584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, {
|
|
29585
|
+
__scopeRovingFocusGroup: __scopeTabs || TABS_CONTEXT,
|
|
29586
|
+
asChild: !0,
|
|
29587
|
+
focusable: !disabled,
|
|
29588
|
+
active: isSelected,
|
|
29589
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabFrame, {
|
|
29590
|
+
onLayout: function(event) {
|
|
29591
|
+
import_constants4.isWeb || setLayout(event.nativeEvent.layout);
|
|
29592
|
+
},
|
|
29593
|
+
onHoverIn: (0, import_helpers.composeEventHandlers)(props.onHoverIn, function() {
|
|
29594
|
+
layout && (onInteraction == null || onInteraction("hover", layout));
|
|
29431
29595
|
}),
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
var isAutomaticActivation = context.activationMode !== "manual";
|
|
29435
|
-
!isSelected && !disabled && isAutomaticActivation && context.onChange(value);
|
|
29596
|
+
onHoverOut: (0, import_helpers.composeEventHandlers)(props.onHoverOut, function() {
|
|
29597
|
+
onInteraction == null || onInteraction("hover", null);
|
|
29436
29598
|
}),
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29599
|
+
role: "tab",
|
|
29600
|
+
"aria-selected": isSelected,
|
|
29601
|
+
"aria-controls": contentId,
|
|
29602
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
29603
|
+
"data-disabled": disabled ? "" : void 0,
|
|
29604
|
+
disabled,
|
|
29605
|
+
id: triggerId,
|
|
29606
|
+
...!props.unstyled && {
|
|
29607
|
+
size: context.size
|
|
29608
|
+
},
|
|
29609
|
+
...isSelected && {
|
|
29610
|
+
forceStyle: "focus"
|
|
29611
|
+
},
|
|
29612
|
+
...groupItemProps,
|
|
29613
|
+
...triggerProps,
|
|
29614
|
+
ref: (0, import_compose_refs.composeRefs)(forwardedRef, triggerRef),
|
|
29615
|
+
onPress: (0, import_helpers.composeEventHandlers)((_props_onPress = props.onPress) !== null && _props_onPress !== void 0 ? _props_onPress : void 0, function(event) {
|
|
29616
|
+
var webChecks = !import_constants4.isWeb || event.button === 0 && event.ctrlKey === !1;
|
|
29617
|
+
!disabled && !isSelected && webChecks ? context.onChange(value) : event.preventDefault();
|
|
29618
|
+
}),
|
|
29619
|
+
...import_constants4.isWeb && {
|
|
29620
|
+
type: "button",
|
|
29621
|
+
onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {
|
|
29622
|
+
[
|
|
29623
|
+
" ",
|
|
29624
|
+
"Enter"
|
|
29625
|
+
].includes(event.key) && (context.onChange(value), event.preventDefault());
|
|
29626
|
+
}),
|
|
29627
|
+
onFocus: (0, import_helpers.composeEventHandlers)(props.onFocus, function(event) {
|
|
29628
|
+
layout && (onInteraction == null || onInteraction("focus", layout));
|
|
29629
|
+
var isAutomaticActivation = context.activationMode !== "manual";
|
|
29630
|
+
!isSelected && !disabled && isAutomaticActivation && context.onChange(value);
|
|
29631
|
+
}),
|
|
29632
|
+
onBlur: (0, import_helpers.composeEventHandlers)(props.onFocus, function() {
|
|
29633
|
+
onInteraction == null || onInteraction("focus", null);
|
|
29634
|
+
})
|
|
29635
|
+
}
|
|
29636
|
+
})
|
|
29441
29637
|
})
|
|
29442
|
-
})
|
|
29638
|
+
});
|
|
29443
29639
|
});
|
|
29444
|
-
|
|
29445
|
-
|
|
29446
|
-
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29453
|
-
|
|
29454
|
-
|
|
29455
|
-
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29459
|
-
|
|
29460
|
-
|
|
29461
|
-
|
|
29462
|
-
|
|
29463
|
-
|
|
29464
|
-
|
|
29465
|
-
|
|
29466
|
-
|
|
29467
|
-
|
|
29468
|
-
|
|
29469
|
-
|
|
29470
|
-
|
|
29471
|
-
|
|
29472
|
-
|
|
29640
|
+
TabsTrigger.displayName = TRIGGER_NAME;
|
|
29641
|
+
var TabsContent = ContentFrame.styleable(function(props, forwardedRef) {
|
|
29642
|
+
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);
|
|
29643
|
+
return show ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ContentFrame, {
|
|
29644
|
+
"data-state": isSelected ? "active" : "inactive",
|
|
29645
|
+
"data-orientation": context.orientation,
|
|
29646
|
+
role: "tabpanel",
|
|
29647
|
+
"aria-labelledby": triggerId,
|
|
29648
|
+
// @ts-ignore
|
|
29649
|
+
hidden: !show,
|
|
29650
|
+
id: contentId,
|
|
29651
|
+
tabIndex: 0,
|
|
29652
|
+
...contentProps,
|
|
29653
|
+
ref: forwardedRef,
|
|
29654
|
+
children
|
|
29655
|
+
}, value) : null;
|
|
29656
|
+
}), TabsComponent = TabsFrame.styleable(function(props, forwardedRef) {
|
|
29657
|
+
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)({
|
|
29658
|
+
prop: valueProp,
|
|
29659
|
+
onChange: onValueChange,
|
|
29660
|
+
defaultProp: defaultValue ?? ""
|
|
29661
|
+
}), [triggersCount, setTriggersCount] = React4.useState(0), registerTrigger = (0, import_web.useEvent)(function() {
|
|
29662
|
+
return setTriggersCount(function(v) {
|
|
29663
|
+
return v + 1;
|
|
29664
|
+
});
|
|
29665
|
+
}), unregisterTrigger = (0, import_web.useEvent)(function() {
|
|
29666
|
+
return setTriggersCount(function(v) {
|
|
29667
|
+
return v - 1;
|
|
29668
|
+
});
|
|
29473
29669
|
});
|
|
29474
|
-
|
|
29475
|
-
|
|
29476
|
-
|
|
29670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_StyledContext.TabsProvider, {
|
|
29671
|
+
scope: __scopeTabs,
|
|
29672
|
+
baseId: React4.useId(),
|
|
29673
|
+
value,
|
|
29674
|
+
onChange: setValue,
|
|
29675
|
+
orientation,
|
|
29676
|
+
dir: direction,
|
|
29677
|
+
activationMode,
|
|
29678
|
+
size: size4,
|
|
29679
|
+
registerTrigger,
|
|
29680
|
+
triggersCount,
|
|
29681
|
+
unregisterTrigger,
|
|
29682
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsFrame, {
|
|
29683
|
+
direction,
|
|
29684
|
+
// dir={direction}
|
|
29685
|
+
"data-orientation": orientation,
|
|
29686
|
+
...tabsProps,
|
|
29687
|
+
ref: forwardedRef
|
|
29688
|
+
})
|
|
29477
29689
|
});
|
|
29478
29690
|
});
|
|
29479
|
-
return
|
|
29480
|
-
|
|
29481
|
-
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
29485
|
-
|
|
29486
|
-
|
|
29487
|
-
size: size4,
|
|
29488
|
-
registerTrigger,
|
|
29489
|
-
triggersCount,
|
|
29490
|
-
unregisterTrigger,
|
|
29491
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TabsFrame, {
|
|
29492
|
-
direction,
|
|
29493
|
-
// dir={direction}
|
|
29494
|
-
"data-orientation": orientation,
|
|
29495
|
-
...tabsProps,
|
|
29496
|
-
ref: forwardedRef
|
|
29497
|
-
})
|
|
29691
|
+
return (0, import_helpers.withStaticProperties)(TabsComponent, {
|
|
29692
|
+
List: TabsList,
|
|
29693
|
+
/**
|
|
29694
|
+
* @deprecated Use Tabs.Tab instead
|
|
29695
|
+
*/
|
|
29696
|
+
Trigger: TabsTrigger,
|
|
29697
|
+
Tab: TabsTrigger,
|
|
29698
|
+
Content: TabsContent
|
|
29498
29699
|
});
|
|
29499
|
-
}
|
|
29500
|
-
List: TabsList,
|
|
29501
|
-
/**
|
|
29502
|
-
* @deprecated Use Tabs.Tab instead
|
|
29503
|
-
*/
|
|
29504
|
-
Trigger: TabsTrigger,
|
|
29505
|
-
Tab: TabsTrigger,
|
|
29506
|
-
Content: TabsContent
|
|
29507
|
-
});
|
|
29700
|
+
}
|
|
29508
29701
|
function makeTriggerId(baseId, value) {
|
|
29509
29702
|
return `${baseId}-trigger-${value}`;
|
|
29510
29703
|
}
|
|
@@ -29518,7 +29711,12 @@ var require_Tabs_native = __commonJS({
|
|
|
29518
29711
|
var require_index_native69 = __commonJS({
|
|
29519
29712
|
"../tabs/dist/cjs/index.native.js"(exports2, module2) {
|
|
29520
29713
|
"use strict";
|
|
29521
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty,
|
|
29714
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
29715
|
+
for (var name in all) __defProp2(target, name, {
|
|
29716
|
+
get: all[name],
|
|
29717
|
+
enumerable: !0
|
|
29718
|
+
});
|
|
29719
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
29522
29720
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
29523
29721
|
if (from && typeof from == "object" || typeof from == "function") try {
|
|
29524
29722
|
for (var _loop = function() {
|
|
@@ -29548,8 +29746,20 @@ var require_index_native69 = __commonJS({
|
|
|
29548
29746
|
value: !0
|
|
29549
29747
|
}), mod);
|
|
29550
29748
|
}, index_exports2 = {};
|
|
29749
|
+
__export2(index_exports2, {
|
|
29750
|
+
Tabs: function() {
|
|
29751
|
+
return Tabs;
|
|
29752
|
+
}
|
|
29753
|
+
});
|
|
29551
29754
|
module2.exports = __toCommonJS2(index_exports2);
|
|
29552
|
-
|
|
29755
|
+
var import_createTabs = require_createTabs_native(), import_Tabs = require_Tabs_native();
|
|
29756
|
+
__reExport2(index_exports2, require_createTabs_native(), module2.exports);
|
|
29757
|
+
__reExport2(index_exports2, require_StyledContext_native2(), module2.exports);
|
|
29758
|
+
var Tabs = (0, import_createTabs.createTabs)({
|
|
29759
|
+
ContentFrame: import_Tabs.DefaultTabsContentFrame,
|
|
29760
|
+
TabFrame: import_Tabs.DefaultTabsTabFrame,
|
|
29761
|
+
TabsFrame: import_Tabs.DefaultTabsFrame
|
|
29762
|
+
});
|
|
29553
29763
|
}
|
|
29554
29764
|
});
|
|
29555
29765
|
|