tamagui 1.75.8 → 1.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/cjs/views/Input.js +1 -1
  2. package/dist/cjs/views/Input.js.map +1 -1
  3. package/dist/cjs/views/Input.native.js +1 -1
  4. package/dist/cjs/views/Input.native.js.map +1 -1
  5. package/dist/cjs/views/Text.js +1 -1
  6. package/dist/cjs/views/Text.js.map +1 -1
  7. package/dist/cjs/views/Text.native.js +1 -1
  8. package/dist/cjs/views/Text.native.js.map +1 -1
  9. package/dist/cjs/views/TextArea.js +1 -1
  10. package/dist/cjs/views/TextArea.js.map +1 -1
  11. package/dist/cjs/views/TextArea.native.js +1 -1
  12. package/dist/cjs/views/TextArea.native.js.map +1 -1
  13. package/dist/esm/views/Input.js +1 -1
  14. package/dist/esm/views/Input.js.map +1 -1
  15. package/dist/esm/views/Input.native.js +1 -1
  16. package/dist/esm/views/Input.native.js.map +1 -1
  17. package/dist/esm/views/Text.js +1 -1
  18. package/dist/esm/views/Text.js.map +1 -1
  19. package/dist/esm/views/Text.native.js +1 -1
  20. package/dist/esm/views/Text.native.js.map +1 -1
  21. package/dist/esm/views/TextArea.js +1 -1
  22. package/dist/esm/views/TextArea.js.map +1 -1
  23. package/dist/esm/views/TextArea.native.js +1 -1
  24. package/dist/esm/views/TextArea.native.js.map +1 -1
  25. package/dist/jsx/views/Input.js +1 -1
  26. package/dist/jsx/views/Input.js.map +1 -1
  27. package/dist/jsx/views/Input.native.js +1 -1
  28. package/dist/jsx/views/Input.native.js.map +1 -1
  29. package/dist/jsx/views/Text.js +1 -1
  30. package/dist/jsx/views/Text.js.map +1 -1
  31. package/dist/jsx/views/Text.native.js +1 -1
  32. package/dist/jsx/views/Text.native.js.map +1 -1
  33. package/dist/jsx/views/TextArea.js +1 -1
  34. package/dist/jsx/views/TextArea.js.map +1 -1
  35. package/dist/jsx/views/TextArea.native.js +1 -1
  36. package/dist/jsx/views/TextArea.native.js.map +1 -1
  37. package/dist/native.js +77 -114
  38. package/dist/native.js.map +3 -3
  39. package/dist/test.native.js +77 -114
  40. package/dist/test.native.js.map +3 -3
  41. package/package.json +52 -52
  42. package/src/views/Input.tsx +1 -1
  43. package/src/views/Text.tsx +1 -1
  44. package/src/views/TextArea.tsx +1 -1
@@ -3077,6 +3077,8 @@ var require_getSplitStyles_native = __commonJS({
3077
3077
  return;
3078
3078
  let styles = Array.isArray(cur) ? cur : [cur];
3079
3079
  for (let style of styles) {
3080
+ if (!style)
3081
+ continue;
3080
3082
  let isRNW = style.$$css;
3081
3083
  Object.assign(isRNW ? styleState.classNames : styleState.style, style);
3082
3084
  }
@@ -8098,7 +8100,7 @@ var require_SizableText_native = __commonJS({
8098
8100
  fontFamily: "$body",
8099
8101
  variants,
8100
8102
  defaultVariants: {
8101
- unstyled: !1
8103
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8102
8104
  }
8103
8105
  });
8104
8106
  }
@@ -8575,7 +8577,7 @@ var require_Accordion_native = __commonJS({
8575
8577
  }
8576
8578
  },
8577
8579
  defaultVariants: {
8578
- unstyled: !1
8580
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8579
8581
  }
8580
8582
  }), AccordionTrigger = AccordionTriggerFrame.styleable(function(props, forwardedRef) {
8581
8583
  let { __scopeAccordion, ...triggerProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
@@ -8600,7 +8602,7 @@ var require_Accordion_native = __commonJS({
8600
8602
  }
8601
8603
  },
8602
8604
  defaultVariants: {
8603
- unstyled: !1
8605
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
8604
8606
  }
8605
8607
  }), AccordionContent = AccordionContentFrame.styleable(function(props, forwardedRef) {
8606
8608
  let { __scopeAccordion, ...contentProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
@@ -10261,7 +10263,7 @@ var require_Sheet_native = __commonJS({
10261
10263
  }
10262
10264
  },
10263
10265
  defaultVariants: {
10264
- unstyled: !1
10266
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10265
10267
  }
10266
10268
  }), Overlay = (0, import_core13.styled)(import_stacks3.ThemeableStack, {
10267
10269
  name: import_constants.SHEET_OVERLAY_NAME,
@@ -10287,7 +10289,7 @@ var require_Sheet_native = __commonJS({
10287
10289
  }
10288
10290
  },
10289
10291
  defaultVariants: {
10290
- unstyled: !1
10292
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10291
10293
  }
10292
10294
  }), Frame = (0, import_core13.styled)(import_stacks3.YStack, {
10293
10295
  name: import_constants.SHEET_NAME,
@@ -10305,7 +10307,7 @@ var require_Sheet_native = __commonJS({
10305
10307
  }
10306
10308
  },
10307
10309
  defaultVariants: {
10308
- unstyled: !1
10310
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10309
10311
  }
10310
10312
  }), Sheet = (0, import_createSheet.createSheet)({
10311
10313
  Frame,
@@ -10476,7 +10478,7 @@ var require_Dialog_native = __commonJS({
10476
10478
  }
10477
10479
  },
10478
10480
  defaultVariants: {
10479
- unstyled: !1
10481
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10480
10482
  }
10481
10483
  }), DialogPortalItem = (props) => {
10482
10484
  let themeName = (0, import_core13.useThemeName)(), context = useDialogContext(PORTAL_NAME, props.__scopeDialog);
@@ -10562,7 +10564,7 @@ var require_Dialog_native = __commonJS({
10562
10564
  },
10563
10565
  defaultVariants: {
10564
10566
  size: "$true",
10565
- unstyled: !1
10567
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10566
10568
  }
10567
10569
  }), DialogContent = DialogContentFrame.extractable(
10568
10570
  React2.forwardRef(
@@ -10728,7 +10730,7 @@ var require_Dialog_native = __commonJS({
10728
10730
  }
10729
10731
  },
10730
10732
  defaultVariants: {
10731
- unstyled: !1
10733
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
10732
10734
  }
10733
10735
  }), DialogClose = DialogCloseFrame.styleable(
10734
10736
  (props, forwardedRef) => {
@@ -11461,10 +11463,10 @@ var require_useCurrentColor_native = __commonJS({
11461
11463
  });
11462
11464
  module2.exports = __toCommonJS2(useCurrentColor_exports);
11463
11465
  var import_web = require_index_native9(), useCurrentColor = (colorProp) => {
11464
- var _a;
11466
+ var _a, _b;
11465
11467
  let theme = (0, import_web.useTheme)();
11466
11468
  return (0, import_web.getVariable)(
11467
- colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || theme.color.get("web")
11469
+ colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || ((_b = theme.color) == null ? void 0 : _b.get("web"))
11468
11470
  );
11469
11471
  };
11470
11472
  }
@@ -11609,7 +11611,7 @@ var require_Button_native = __commonJS({
11609
11611
  }
11610
11612
  },
11611
11613
  defaultVariants: {
11612
- unstyled: !1
11614
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11613
11615
  }
11614
11616
  }), ButtonText = (0, import_web.styled)(import_text2.SizableText, {
11615
11617
  name: "Button",
@@ -11628,7 +11630,7 @@ var require_Button_native = __commonJS({
11628
11630
  }
11629
11631
  },
11630
11632
  defaultVariants: {
11631
- unstyled: !1
11633
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11632
11634
  }
11633
11635
  }), ButtonIcon = (props) => {
11634
11636
  let { children, scaleIcon = 1 } = props, { size: size2, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon;
@@ -11672,7 +11674,7 @@ var require_Button_native = __commonJS({
11672
11674
  Text3,
11673
11675
  { children: propsIn.children, fontFamily, fontSize, textProps },
11674
11676
  Text3 === ButtonText && propsActive.unstyled !== !0 ? {
11675
- unstyled: !1,
11677
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
11676
11678
  size: size2
11677
11679
  } : void 0
11678
11680
  ), inner = (0, import_web.spacedChildren)({
@@ -11769,7 +11771,7 @@ var require_Card_native = __commonJS({
11769
11771
  }
11770
11772
  },
11771
11773
  defaultVariants: {
11772
- unstyled: !1
11774
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11773
11775
  }
11774
11776
  }), CardHeader = (0, import_web.styled)(import_stacks3.ThemeableStack, {
11775
11777
  name: "CardHeader",
@@ -11789,7 +11791,7 @@ var require_Card_native = __commonJS({
11789
11791
  }
11790
11792
  },
11791
11793
  defaultVariants: {
11792
- unstyled: !1
11794
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11793
11795
  }
11794
11796
  }), CardFooter = (0, import_web.styled)(CardHeader, {
11795
11797
  name: "CardFooter",
@@ -11804,7 +11806,7 @@ var require_Card_native = __commonJS({
11804
11806
  }
11805
11807
  },
11806
11808
  defaultVariants: {
11807
- unstyled: !1
11809
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11808
11810
  }
11809
11811
  }), CardBackground = (0, import_web.styled)(import_stacks3.ThemeableStack, {
11810
11812
  name: "CardBackground",
@@ -11820,7 +11822,7 @@ var require_Card_native = __commonJS({
11820
11822
  }
11821
11823
  },
11822
11824
  defaultVariants: {
11823
- unstyled: !1
11825
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
11824
11826
  }
11825
11827
  }), Card = (0, import_web.withStaticProperties)(CardFrame, {
11826
11828
  Header: CardHeader,
@@ -12030,7 +12032,7 @@ var require_Label_native = __commonJS({
12030
12032
  }
12031
12033
  },
12032
12034
  defaultVariants: {
12033
- unstyled: !1
12035
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12034
12036
  }
12035
12037
  }), LabelComponent = React2.forwardRef(
12036
12038
  (props, forwardedRef) => {
@@ -12283,7 +12285,7 @@ var require_Checkbox_native = __commonJS({
12283
12285
  }
12284
12286
  },
12285
12287
  defaultVariants: {
12286
- unstyled: !1
12288
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12287
12289
  }
12288
12290
  }), [createCheckboxContext, createCheckboxScope] = (0, import_create_context.createContextScope)(CHECKBOX_NAME), [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME), CheckboxComponent = CheckboxFrame.styleable(function(props, forwardedRef) {
12289
12291
  let {
@@ -12975,7 +12977,7 @@ var require_Group_native = __commonJS({
12975
12977
  })
12976
12978
  },
12977
12979
  defaultVariants: {
12978
- unstyled: !1
12980
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
12979
12981
  }
12980
12982
  });
12981
12983
  function createGroup(verticalDefault) {
@@ -13199,7 +13201,7 @@ var require_ListItem_native = __commonJS({
13199
13201
  }
13200
13202
  },
13201
13203
  defaultVariants: {
13202
- unstyled: !1
13204
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13203
13205
  }
13204
13206
  }), ListItemText = (0, import_web.styled)(import_text2.SizableText, {
13205
13207
  name: "ListItemText",
@@ -13216,7 +13218,7 @@ var require_ListItem_native = __commonJS({
13216
13218
  }
13217
13219
  },
13218
13220
  defaultVariants: {
13219
- unstyled: !1
13221
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13220
13222
  }
13221
13223
  }), ListItemSubtitle = (0, import_web.styled)(ListItemText, {
13222
13224
  name: "ListItemSubtitle",
@@ -13239,7 +13241,7 @@ var require_ListItem_native = __commonJS({
13239
13241
  }
13240
13242
  },
13241
13243
  defaultVariants: {
13242
- unstyled: !1
13244
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
13243
13245
  }
13244
13246
  }), ListItemTitle = (0, import_web.styled)(ListItemText, {
13245
13247
  name: "ListItemTitle"
@@ -14640,7 +14642,7 @@ var require_Popper_native = __commonJS({
14640
14642
  }
14641
14643
  },
14642
14644
  defaultVariants: {
14643
- unstyled: !1
14645
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
14644
14646
  }
14645
14647
  }), PopperContent = React2.forwardRef(function(props, forwardedRef) {
14646
14648
  let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
@@ -14677,7 +14679,7 @@ var require_Popper_native = __commonJS({
14677
14679
  }
14678
14680
  },
14679
14681
  defaultVariants: {
14680
- unstyled: !1
14682
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
14681
14683
  }
14682
14684
  }), PopperArrowOuterFrame = (0, import_core13.styled)(import_stacks3.YStack, {
14683
14685
  name: "PopperArrowOuter",
@@ -14694,7 +14696,7 @@ var require_Popper_native = __commonJS({
14694
14696
  }
14695
14697
  },
14696
14698
  defaultVariants: {
14697
- unstyled: !1
14699
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
14698
14700
  }
14699
14701
  }), opposites = {
14700
14702
  top: "bottom",
@@ -14762,35 +14764,6 @@ var require_index_native54 = __commonJS({
14762
14764
  }
14763
14765
  });
14764
14766
 
14765
- // ../../node_modules/react-freeze/dist/index.js
14766
- var require_dist2 = __commonJS({
14767
- "../../node_modules/react-freeze/dist/index.js"(exports) {
14768
- function _interopDefault(ex) {
14769
- return ex && typeof ex == "object" && "default" in ex ? ex.default : ex;
14770
- }
14771
- var React2 = require("react"), React__default = _interopDefault(React2);
14772
- function Suspender(_ref) {
14773
- var freeze = _ref.freeze, children = _ref.children, promiseCache = React2.useRef({}).current;
14774
- if (freeze && !promiseCache.promise)
14775
- throw promiseCache.promise = new Promise(function(resolve) {
14776
- promiseCache.resolve = resolve;
14777
- }), promiseCache.promise;
14778
- if (freeze)
14779
- throw promiseCache.promise;
14780
- return promiseCache.promise && (promiseCache.resolve(), promiseCache.promise = void 0), React__default.createElement(React2.Fragment, null, children);
14781
- }
14782
- function Freeze(_ref2) {
14783
- var freeze = _ref2.freeze, children = _ref2.children, _ref2$placeholder = _ref2.placeholder, placeholder = _ref2$placeholder === void 0 ? null : _ref2$placeholder;
14784
- return React__default.createElement(React2.Suspense, {
14785
- fallback: placeholder
14786
- }, React__default.createElement(Suspender, {
14787
- freeze
14788
- }, children));
14789
- }
14790
- exports.Freeze = Freeze;
14791
- }
14792
- });
14793
-
14794
14767
  // ../popover/dist/cjs/useFloatingContext.native.js
14795
14768
  var require_useFloatingContext_native = __commonJS({
14796
14769
  "../popover/dist/cjs/useFloatingContext.native.js"(exports, module2) {
@@ -14844,7 +14817,7 @@ var require_Popover_native = __commonJS({
14844
14817
  usePopoverContext: () => usePopoverContext
14845
14818
  });
14846
14819
  module2.exports = __toCommonJS2(Popover_exports);
14847
- var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_freeze = require_dist2(), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
14820
+ var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core13 = require_index_native15(), import_floating = require_index_native53(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native12(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core13.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
14848
14821
  let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
14849
14822
  return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14850
14823
  import_popper.PopperAnchor,
@@ -14959,6 +14932,7 @@ var require_Popover_native = __commonJS({
14959
14932
  }
14960
14933
  )), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
14961
14934
  }
14935
+ let freeze = !!(isFullyHidden && freezeContentsWhenHidden);
14962
14936
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14963
14937
  import_animate.Animate,
14964
14938
  {
@@ -14969,50 +14943,31 @@ var require_Popover_native = __commonJS({
14969
14943
  setIsFullyHidden(!0);
14970
14944
  },
14971
14945
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14972
- FreezeToLastContents,
14946
+ import_popper.PopperContent,
14973
14947
  {
14974
- freeze: !!(isFullyHidden && freezeContentsWhenHidden),
14948
+ __scopePopper: __scopePopover || POPOVER_SCOPE,
14949
+ "data-state": getState(open),
14950
+ id: context.contentId,
14951
+ ref: forwardedRef,
14952
+ ...contentProps,
14975
14953
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14976
- import_popper.PopperContent,
14954
+ import_remove_scroll.RemoveScroll,
14977
14955
  {
14978
- __scopePopper: __scopePopover || POPOVER_SCOPE,
14979
- "data-state": getState(open),
14980
- id: context.contentId,
14981
- ref: forwardedRef,
14982
- ...contentProps,
14983
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14984
- import_remove_scroll.RemoveScroll,
14985
- {
14986
- enabled: disableRemoveScroll ? !1 : open,
14987
- allowPinchZoom: !0,
14988
- removeScrollBar: !1,
14989
- style: {
14990
- display: "contents"
14991
- },
14992
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
14993
- import_focus_scope.FocusScope,
14994
- {
14995
- loop: !0,
14996
- enabled: disableFocusScope ? !1 : open,
14997
- trapped: trapFocus,
14998
- onMountAutoFocus: onOpenAutoFocus,
14999
- onUnmountAutoFocus: onCloseAutoFocus,
15000
- children: contents
15001
- }
15002
- )
15003
- }
15004
- )
15005
- },
15006
- context.contentId
14956
+ enabled: disableRemoveScroll ? !1 : open,
14957
+ allowPinchZoom: !0,
14958
+ removeScrollBar: !1,
14959
+ style: {
14960
+ display: "contents"
14961
+ },
14962
+ children: contents
14963
+ }
15007
14964
  )
15008
- }
14965
+ },
14966
+ context.contentId
15009
14967
  )
15010
14968
  }
15011
14969
  );
15012
- }), FreezeToLastContents = (props) => {
15013
- let last = React2.useRef();
15014
- return props.freeze || (last.current = props.children), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_freeze.Freeze, { placeholder: last.current, ...props });
15015
- }, PopoverClose = React2.forwardRef(function(props, forwardedRef) {
14970
+ }), PopoverClose = React2.forwardRef(function(props, forwardedRef) {
15016
14971
  let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
15017
14972
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
15018
14973
  import_stacks3.YStack,
@@ -15046,6 +15001,8 @@ var require_Popover_native = __commonJS({
15046
15001
  onOpenChange,
15047
15002
  __scopePopover,
15048
15003
  keepChildrenMounted,
15004
+ hoverable,
15005
+ disableFocus,
15049
15006
  ...restProps
15050
15007
  } = props, id = React2.useId(), { when, AdaptProvider } = (0, import_adapt.useAdaptParent)({
15051
15008
  Contents: React2.useCallback(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, { name: `${id}PopoverContents` }), [])
@@ -15053,16 +15010,22 @@ var require_Popover_native = __commonJS({
15053
15010
  prop: openProp,
15054
15011
  defaultProp: defaultOpen || !1,
15055
15012
  onChange: onOpenChange
15056
- }), breakpointActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({ open, setOpen, breakpointActive }), popoverContext = {
15013
+ }), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
15014
+ open,
15015
+ setOpen,
15016
+ disable: sheetActive,
15017
+ hoverable,
15018
+ disableFocus
15019
+ }), popoverContext = {
15057
15020
  id,
15058
15021
  sheetBreakpoint,
15059
15022
  contentId: React2.useId(),
15060
15023
  triggerRef,
15061
15024
  open,
15062
- breakpointActive,
15025
+ breakpointActive: sheetActive,
15063
15026
  onOpenChange: setOpen,
15064
15027
  onOpenToggle: (0, import_core13.useEvent)(() => {
15065
- open && breakpointActive || setOpen(!open);
15028
+ open && sheetActive || setOpen(!open);
15066
15029
  }),
15067
15030
  hasCustomAnchor,
15068
15031
  onCustomAnchorAdd: React2.useCallback(() => setHasCustomAnchor(!0), []),
@@ -15167,7 +15130,7 @@ var require_Progress_native = __commonJS({
15167
15130
  }
15168
15131
  },
15169
15132
  defaultVariants: {
15170
- unstyled: !1
15133
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15171
15134
  }
15172
15135
  }), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
15173
15136
  let { __scopeProgress, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), pct = context.max - (context.value ?? 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100);
@@ -15225,7 +15188,7 @@ var require_Progress_native = __commonJS({
15225
15188
  }
15226
15189
  },
15227
15190
  defaultVariants: {
15228
- unstyled: !1
15191
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15229
15192
  }
15230
15193
  }), Progress = (0, import_core13.withStaticProperties)(
15231
15194
  ProgressFrame.styleable(function(props, forwardedRef) {
@@ -15321,7 +15284,7 @@ var require_RadioGroup_native = __commonJS({
15321
15284
  }
15322
15285
  },
15323
15286
  defaultVariants: {
15324
- unstyled: !1
15287
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15325
15288
  }
15326
15289
  }), RadioIndicator = RadioIndicatorFrame.extractable(
15327
15290
  React2.forwardRef(
@@ -15405,7 +15368,7 @@ var require_RadioGroup_native = __commonJS({
15405
15368
  }
15406
15369
  },
15407
15370
  defaultVariants: {
15408
- unstyled: !1
15371
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15409
15372
  }
15410
15373
  }), RadioGroupItem = RadioGroupItemFrame.extractable(
15411
15374
  React2.forwardRef(
@@ -15974,7 +15937,7 @@ var require_SelectItemText_native = __commonJS({
15974
15937
  }
15975
15938
  },
15976
15939
  defaultVariants: {
15977
- unstyled: !1
15940
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
15978
15941
  }
15979
15942
  }), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
15980
15943
  let { __scopeSelect, className, ...itemTextProps } = props, context = (0, import_context.useSelectContext)(ITEM_TEXT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(ITEM_TEXT_NAME, __scopeSelect), ref = React2.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), itemContext = (0, import_SelectItem.useSelectItemContext)(ITEM_TEXT_NAME, __scopeSelect), contents = React2.useRef();
@@ -16868,7 +16831,7 @@ var require_Slider_native = __commonJS({
16868
16831
  }
16869
16832
  },
16870
16833
  defaultVariants: {
16871
- unstyled: !1
16834
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
16872
16835
  }
16873
16836
  }), SliderTrack = React2.forwardRef(
16874
16837
  (props, forwardedRef) => {
@@ -16948,7 +16911,7 @@ var require_Slider_native = __commonJS({
16948
16911
  }
16949
16912
  },
16950
16913
  defaultVariants: {
16951
- unstyled: !1
16914
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
16952
16915
  }
16953
16916
  }), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
16954
16917
  let { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
@@ -17153,7 +17116,7 @@ var require_SwitchContext_native = __commonJS({
17153
17116
  disabled: !1,
17154
17117
  size: void 0,
17155
17118
  frameWidth: 0,
17156
- unstyled: !1
17119
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17157
17120
  });
17158
17121
  }
17159
17122
  });
@@ -17201,7 +17164,7 @@ var require_Switch_native = __commonJS({
17201
17164
  }
17202
17165
  },
17203
17166
  defaultVariants: {
17204
- unstyled: !1
17167
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17205
17168
  }
17206
17169
  }), getSwitchHeight = (val) => Math.round((0, import_core13.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.65), getSwitchWidth = (val) => getSwitchHeight(val) * 2, SwitchFrame = (0, import_core13.styled)(import_stacks3.YStack, {
17207
17170
  name: "Switch",
@@ -17239,7 +17202,7 @@ var require_Switch_native = __commonJS({
17239
17202
  }
17240
17203
  },
17241
17204
  defaultVariants: {
17242
- unstyled: !1
17205
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17243
17206
  }
17244
17207
  });
17245
17208
  }
@@ -17291,7 +17254,7 @@ var require_createSwitch_native = __commonJS({
17291
17254
  Thumb,
17292
17255
  {
17293
17256
  ...(unstyledProp ?? unstyledContext ?? !1) === !1 && {
17294
- unstyled: !1,
17257
+ unstyled: process.env.TAMAGUI_HEADLESS === "1",
17295
17258
  size: sizeProp ?? sizeContext ?? "$true",
17296
17259
  ...!disableActiveTheme && {
17297
17260
  theme: checked ? "active" : null
@@ -17635,7 +17598,7 @@ var require_Tabs_native = __commonJS({
17635
17598
  }
17636
17599
  },
17637
17600
  defaultVariants: {
17638
- unstyled: !1
17601
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
17639
17602
  }
17640
17603
  }), TabsTrigger = TabsTriggerFrame.extractable(
17641
17604
  React2.forwardRef(
@@ -18093,7 +18056,7 @@ var require_Toggle_native = __commonJS({
18093
18056
  }
18094
18057
  },
18095
18058
  defaultVariants: {
18096
- unstyled: !1
18059
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18097
18060
  }
18098
18061
  }), Toggle = React2.forwardRef(function(props, forwardedRef) {
18099
18062
  let {
@@ -18305,7 +18268,7 @@ var require_ToggleGroup_native = __commonJS({
18305
18268
  }
18306
18269
  },
18307
18270
  defaultVariants: {
18308
- unstyled: !1
18271
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18309
18272
  }
18310
18273
  }), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
18311
18274
  import_react2.default.forwardRef(
@@ -18875,7 +18838,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime"), defaultStyles = {
18875
18838
  }
18876
18839
  },
18877
18840
  defaultVariants: {
18878
- unstyled: !1
18841
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18879
18842
  }
18880
18843
  }), Input = InputFrame.styleable((propsIn, ref) => {
18881
18844
  let props = useInputProps(propsIn, ref);
@@ -18965,7 +18928,7 @@ var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0, impo
18965
18928
  }
18966
18929
  },
18967
18930
  defaultVariants: {
18968
- unstyled: !1
18931
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18969
18932
  }
18970
18933
  }), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
18971
18934
  let props = useInputProps(propsIn, ref), linesProp = {
@@ -18985,7 +18948,7 @@ var import_core11 = __toESM(require_index_native15()), Text2 = (0, import_core11
18985
18948
  }
18986
18949
  },
18987
18950
  defaultVariants: {
18988
- unstyled: !1
18951
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
18989
18952
  }
18990
18953
  });
18991
18954