tamagui 1.88.19 → 1.88.20
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/native.js +113 -75
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +108 -70
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/dist/cjs/views/Layouts.js +0 -61
- package/dist/cjs/views/Layouts.js.map +0 -6
- package/dist/cjs/views/Layouts.native.js +0 -72
- package/dist/cjs/views/Layouts.native.js.map +0 -6
- package/dist/esm/views/Layouts.js +0 -45
- package/dist/esm/views/Layouts.js.map +0 -6
- package/dist/esm/views/Layouts.mjs +0 -43
- package/dist/esm/views/Layouts.native.js +0 -72
- package/dist/esm/views/Layouts.native.js.map +0 -6
- package/dist/jsx/views/Layouts.js +0 -45
- package/dist/jsx/views/Layouts.js.map +0 -6
- package/dist/jsx/views/Layouts.mjs +0 -43
- package/dist/jsx/views/Layouts.native.js +0 -72
- package/dist/jsx/views/Layouts.native.js.map +0 -6
package/dist/native.js
CHANGED
|
@@ -2473,6 +2473,55 @@ var require_defaultComponentState_native = __commonJS({
|
|
|
2473
2473
|
}
|
|
2474
2474
|
});
|
|
2475
2475
|
|
|
2476
|
+
// ../web/dist/cjs/helpers/skipProps.native.js
|
|
2477
|
+
var require_skipProps_native = __commonJS({
|
|
2478
|
+
"../web/dist/cjs/helpers/skipProps.native.js"(exports2, module2) {
|
|
2479
|
+
"use strict";
|
|
2480
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
2481
|
+
for (var name in all)
|
|
2482
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
2483
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
2484
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
2485
|
+
for (let key of __getOwnPropNames2(from))
|
|
2486
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
2487
|
+
return to;
|
|
2488
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), skipProps_exports = {};
|
|
2489
|
+
__export2(skipProps_exports, {
|
|
2490
|
+
skipProps: () => skipProps
|
|
2491
|
+
});
|
|
2492
|
+
module2.exports = __toCommonJS2(skipProps_exports);
|
|
2493
|
+
var skipProps = {
|
|
2494
|
+
untilMeasured: 1,
|
|
2495
|
+
animation: 1,
|
|
2496
|
+
space: 1,
|
|
2497
|
+
animateOnly: 1,
|
|
2498
|
+
disableClassName: 1,
|
|
2499
|
+
debug: 1,
|
|
2500
|
+
componentName: 1,
|
|
2501
|
+
disableOptimization: 1,
|
|
2502
|
+
tag: 1,
|
|
2503
|
+
style: 1,
|
|
2504
|
+
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
2505
|
+
group: 1
|
|
2506
|
+
};
|
|
2507
|
+
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
2508
|
+
Object.assign(skipProps, {
|
|
2509
|
+
whiteSpace: 1,
|
|
2510
|
+
wordWrap: 1,
|
|
2511
|
+
textOverflow: 1,
|
|
2512
|
+
textDecorationDistance: 1,
|
|
2513
|
+
cursor: 1,
|
|
2514
|
+
contain: 1,
|
|
2515
|
+
boxSizing: 1,
|
|
2516
|
+
boxShadow: 1,
|
|
2517
|
+
outlineStyle: 1,
|
|
2518
|
+
outlineOffset: 1,
|
|
2519
|
+
outlineWidth: 1,
|
|
2520
|
+
outlineColor: 1
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
});
|
|
2524
|
+
|
|
2476
2525
|
// ../web/dist/cjs/constants/accessibilityDirectMap.native.js
|
|
2477
2526
|
var require_accessibilityDirectMap_native = __commonJS({
|
|
2478
2527
|
"../web/dist/cjs/constants/accessibilityDirectMap.native.js"(exports2, module2) {
|
|
@@ -3577,7 +3626,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3577
3626
|
propMapper: () => propMapper
|
|
3578
3627
|
});
|
|
3579
3628
|
module2.exports = __toCommonJS2(propMapper_exports);
|
|
3580
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
|
|
3629
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_config = require_config_native(), import_createVariable = require_createVariable_native(), import_expandStyle = require_expandStyle_native(), import_normalizeStyle = require_normalizeStyle_native(), import_getVariantExtras = require_getVariantExtras_native(), import_isObj = require_isObj_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_skipProps = require_skipProps_native(), propMapper = (key, value, styleStateIn, subPropsIn) => {
|
|
3581
3630
|
var _a;
|
|
3582
3631
|
if (lastFontFamilyToken = null, !import_constants4.isAndroid && key === "elevationAndroid")
|
|
3583
3632
|
return;
|
|
@@ -3671,43 +3720,45 @@ var require_propMapper_native = __commonJS({
|
|
|
3671
3720
|
process.env.NODE_ENV === "development" && debug === "verbose" && console.info(" - resolveTokensAndVariants", key, value);
|
|
3672
3721
|
for (let _key in value) {
|
|
3673
3722
|
let subKey = conf.shorthands[_key] || _key, val = value[_key];
|
|
3674
|
-
if (styleProps.
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
if (
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3723
|
+
if (!(!styleProps.noSkip && subKey in import_skipProps.skipProps)) {
|
|
3724
|
+
if (styleProps.noExpand)
|
|
3725
|
+
res[subKey] = val;
|
|
3726
|
+
else if (variants && subKey in variants) {
|
|
3727
|
+
if (styleState.curProps[subKey] = val, parentVariantKey && parentVariantKey === key)
|
|
3728
|
+
res[subKey] = // SYNC WITH *1
|
|
3729
|
+
val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val;
|
|
3730
|
+
else {
|
|
3731
|
+
let variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
|
|
3732
|
+
if (variantOut)
|
|
3733
|
+
for (let [key2, val2] of variantOut)
|
|
3734
|
+
val2 != null && (key2 in import_pseudoDescriptors.pseudoDescriptors ? (res[key2] ?? (res[key2] = {}), Object.assign(res[key2], val2)) : res[key2] = val2);
|
|
3735
|
+
}
|
|
3736
|
+
continue;
|
|
3685
3737
|
}
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3738
|
+
if ((0, import_createVariable.isVariable)(val)) {
|
|
3739
|
+
res[subKey] = resolveVariableValue(subKey, val, styleProps.resolveValues), process.env.NODE_ENV === "development" && debug === "verbose" && console.info("variable", subKey, res[subKey]);
|
|
3740
|
+
continue;
|
|
3741
|
+
}
|
|
3742
|
+
if (typeof val == "string") {
|
|
3743
|
+
let fVal = (
|
|
3744
|
+
// SYNC WITH *1
|
|
3745
|
+
val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val
|
|
3746
|
+
);
|
|
3747
|
+
res[subKey] = fVal;
|
|
3748
|
+
continue;
|
|
3749
|
+
}
|
|
3750
|
+
if ((0, import_isObj.isObj)(val)) {
|
|
3751
|
+
let subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);
|
|
3752
|
+
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("object", subKey, subObject), res[subKey] ?? (res[subKey] = {}), Object.assign(res[subKey], subObject);
|
|
3753
|
+
} else
|
|
3754
|
+
res[subKey] = val;
|
|
3755
|
+
process.env.NODE_ENV === "development" && debug && ((_a = res[subKey]) == null ? void 0 : _a[0]) === "$" && console.warn(
|
|
3756
|
+
`\u26A0\uFE0F Missing token in theme ${theme.name}:`,
|
|
3757
|
+
subKey,
|
|
3758
|
+
res[subKey],
|
|
3759
|
+
theme
|
|
3696
3760
|
);
|
|
3697
|
-
res[subKey] = fVal;
|
|
3698
|
-
continue;
|
|
3699
3761
|
}
|
|
3700
|
-
if ((0, import_isObj.isObj)(val)) {
|
|
3701
|
-
let subObject = resolveTokensAndVariants(subKey, val, styleProps, styleState, key);
|
|
3702
|
-
process.env.NODE_ENV === "development" && debug === "verbose" && console.info("object", subKey, subObject), res[subKey] ?? (res[subKey] = {}), Object.assign(res[subKey], subObject);
|
|
3703
|
-
} else
|
|
3704
|
-
res[subKey] = val;
|
|
3705
|
-
process.env.NODE_ENV === "development" && debug && ((_a = res[subKey]) == null ? void 0 : _a[0]) === "$" && console.warn(
|
|
3706
|
-
`\u26A0\uFE0F Missing token in theme ${theme.name}:`,
|
|
3707
|
-
subKey,
|
|
3708
|
-
res[subKey],
|
|
3709
|
-
theme
|
|
3710
|
-
);
|
|
3711
3762
|
}
|
|
3712
3763
|
return res;
|
|
3713
3764
|
}, tokenCats = ["size", "color", "radius", "space", "zIndex"].map((name) => ({
|
|
@@ -3817,7 +3868,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3817
3868
|
useSplitStyles: () => useSplitStyles
|
|
3818
3869
|
});
|
|
3819
3870
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3820
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = 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_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_isObj = require_isObj_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3871
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_skipProps = require_skipProps_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_isObj = require_isObj_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3821
3872
|
function isValidStyleKey(key, staticConfig) {
|
|
3822
3873
|
var _a;
|
|
3823
3874
|
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || ((_a = staticConfig.acceptTokens) == null ? void 0 : _a[key]);
|
|
@@ -3861,7 +3912,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3861
3912
|
}), console.groupEnd());
|
|
3862
3913
|
for (let keyOg in props) {
|
|
3863
3914
|
let keyInit = keyOg, valInit = props[keyOg];
|
|
3864
|
-
if (styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys || keyInit in skipProps && !styleProps.noSkip && !isHOC)
|
|
3915
|
+
if (styleProps.disableExpandShorthands || keyInit in shorthands && (keyInit = shorthands[keyInit]), keyInit === "className" || keyInit in usedKeys || keyInit in import_skipProps.skipProps && !styleProps.noSkip && !isHOC)
|
|
3865
3916
|
continue;
|
|
3866
3917
|
let valInitType = typeof valInit, isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
|
|
3867
3918
|
if (valInit !== props[keyInit] && (styleState.curProps[keyInit] = valInit), !isValidStyleKeyInit) {
|
|
@@ -3919,7 +3970,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3919
3970
|
if (isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))
|
|
3920
3971
|
continue;
|
|
3921
3972
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
3922
|
-
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
3973
|
+
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
3923
3974
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
3924
3975
|
` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`
|
|
3925
3976
|
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants4.isClient && (0, import_log.log)({
|
|
@@ -3929,7 +3980,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3929
3980
|
isHOCShouldPassThrough,
|
|
3930
3981
|
curProps: { ...styleState.curProps },
|
|
3931
3982
|
parentStaticConfig
|
|
3932
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in skipProps)
|
|
3983
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in import_skipProps.skipProps)
|
|
3933
3984
|
continue;
|
|
3934
3985
|
if ((isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
3935
3986
|
style[keyInit] = valInit;
|
|
@@ -4224,7 +4275,7 @@ current`, {
|
|
|
4224
4275
|
let val = styleIn[key];
|
|
4225
4276
|
key = conf2.shorthands[key] || key;
|
|
4226
4277
|
let expanded = (0, import_propMapper.propMapper)(key, val, styleState, { ...props, ...props[subKey] });
|
|
4227
|
-
if (!(!expanded || !staticConfig.isHOC && key in skipProps && !styleProps.noSkip))
|
|
4278
|
+
if (!(!expanded || !staticConfig.isHOC && key in import_skipProps.skipProps && !styleProps.noSkip))
|
|
4228
4279
|
for (let [skey, sval] of expanded)
|
|
4229
4280
|
!avoidMergeTransform && skey in import_helpers.stylePropsTransform ? mergeTransform(styleOut, skey, sval) : styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key);
|
|
4230
4281
|
}
|
|
@@ -4244,35 +4295,7 @@ current`, {
|
|
|
4244
4295
|
}, mapTransformKeys = {
|
|
4245
4296
|
x: "translateX",
|
|
4246
4297
|
y: "translateY"
|
|
4247
|
-
}, skipProps = {
|
|
4248
|
-
untilMeasured: 1,
|
|
4249
|
-
animation: 1,
|
|
4250
|
-
space: 1,
|
|
4251
|
-
animateOnly: 1,
|
|
4252
|
-
disableClassName: 1,
|
|
4253
|
-
debug: 1,
|
|
4254
|
-
componentName: 1,
|
|
4255
|
-
disableOptimization: 1,
|
|
4256
|
-
tag: 1,
|
|
4257
|
-
style: 1,
|
|
4258
|
-
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
4259
|
-
group: 1
|
|
4260
4298
|
};
|
|
4261
|
-
process.env.NODE_ENV === "test" && (skipProps["data-test-renders"] = 1);
|
|
4262
|
-
Object.assign(skipProps, {
|
|
4263
|
-
whiteSpace: 1,
|
|
4264
|
-
wordWrap: 1,
|
|
4265
|
-
textOverflow: 1,
|
|
4266
|
-
textDecorationDistance: 1,
|
|
4267
|
-
cursor: 1,
|
|
4268
|
-
contain: 1,
|
|
4269
|
-
boxSizing: 1,
|
|
4270
|
-
boxShadow: 1,
|
|
4271
|
-
outlineStyle: 1,
|
|
4272
|
-
outlineOffset: 1,
|
|
4273
|
-
outlineWidth: 1,
|
|
4274
|
-
outlineColor: 1
|
|
4275
|
-
});
|
|
4276
4299
|
function passDownProp(viewProps, key, val, shouldMergeObject = !1) {
|
|
4277
4300
|
if (shouldMergeObject) {
|
|
4278
4301
|
let next = {
|
|
@@ -10946,10 +10969,21 @@ var require_Dialog_native = __commonJS({
|
|
|
10946
10969
|
children: isShowing ? children : null
|
|
10947
10970
|
}
|
|
10948
10971
|
);
|
|
10949
|
-
|
|
10972
|
+
if (useShowDialogSheet(context))
|
|
10973
|
+
return children;
|
|
10974
|
+
if (context.modal) {
|
|
10975
|
+
if (isFullyHidden)
|
|
10976
|
+
return null;
|
|
10977
|
+
let framedContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, { scope: __scopeDialog, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, { pointerEvents: isShowing ? "auto" : "none", ...frameProps, children: contents }) });
|
|
10978
|
+
return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex: props.zIndex ?? 1e5, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PassthroughTheme, { children: framedContents }) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, { __scopeDialog, children: framedContents });
|
|
10979
|
+
}
|
|
10980
|
+
return contents;
|
|
10950
10981
|
};
|
|
10951
10982
|
DialogPortal.displayName = PORTAL_NAME;
|
|
10952
|
-
var
|
|
10983
|
+
var PassthroughTheme = ({ children }) => {
|
|
10984
|
+
let themeName = (0, import_core12.useThemeName)();
|
|
10985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, { name: themeName, forceClassName: !0, children });
|
|
10986
|
+
}, OVERLAY_NAME = "DialogOverlay", DialogOverlayFrame = (0, import_core12.styled)(import_sheet.Overlay, {
|
|
10953
10987
|
name: OVERLAY_NAME
|
|
10954
10988
|
}), DialogOverlay = DialogOverlayFrame.extractable(
|
|
10955
10989
|
React2.forwardRef(
|
|
@@ -17150,6 +17184,8 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
17150
17184
|
{
|
|
17151
17185
|
componentName: TRIGGER_NAME,
|
|
17152
17186
|
unstyled,
|
|
17187
|
+
tag: "button",
|
|
17188
|
+
id: itemParentContext.id,
|
|
17153
17189
|
...!unstyled && {
|
|
17154
17190
|
backgrounded: !0,
|
|
17155
17191
|
radiused: !0,
|
|
@@ -17161,9 +17197,9 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
17161
17197
|
outlineWidth: 2,
|
|
17162
17198
|
outlineColor: "$outlineColor"
|
|
17163
17199
|
},
|
|
17164
|
-
borderWidth: 1
|
|
17200
|
+
borderWidth: 1,
|
|
17201
|
+
size: itemParentContext.size
|
|
17165
17202
|
},
|
|
17166
|
-
size: itemParentContext.size,
|
|
17167
17203
|
"aria-expanded": context.open,
|
|
17168
17204
|
"aria-autocomplete": "none",
|
|
17169
17205
|
dir: context.dir,
|
|
@@ -17446,8 +17482,9 @@ var require_Select_native = __commonJS({
|
|
|
17446
17482
|
disablePreventBodyScroll,
|
|
17447
17483
|
size: sizeProp = "$true",
|
|
17448
17484
|
onActiveChange,
|
|
17449
|
-
dir
|
|
17450
|
-
|
|
17485
|
+
dir,
|
|
17486
|
+
id
|
|
17487
|
+
} = props, internalId = React2.useId(), scopeKey = __scopeSelect ? Object.keys(__scopeSelect)[0] ?? internalId : internalId, { when, AdaptProvider } = (0, import_adapt.useAdaptParent)({
|
|
17451
17488
|
Contents: React2.useCallback(
|
|
17452
17489
|
() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, { name: `${scopeKey}SheetContents` }),
|
|
17453
17490
|
[scopeKey]
|
|
@@ -17483,11 +17520,12 @@ var require_Select_native = __commonJS({
|
|
|
17483
17520
|
import_context.SelectItemParentProvider,
|
|
17484
17521
|
{
|
|
17485
17522
|
scope: __scopeSelect,
|
|
17486
|
-
initialValue: React2.useMemo(() => value, []),
|
|
17523
|
+
initialValue: React2.useMemo(() => value, [open]),
|
|
17487
17524
|
size: sizeProp,
|
|
17488
17525
|
activeIndexSubscribe,
|
|
17489
17526
|
valueSubscribe,
|
|
17490
17527
|
setOpen,
|
|
17528
|
+
id,
|
|
17491
17529
|
onChange: React2.useCallback((val) => {
|
|
17492
17530
|
setValue(val), emitValue(val);
|
|
17493
17531
|
}, []),
|