tamagui 1.95.3 → 1.97.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.
@@ -680,9 +680,12 @@ var require_AnimatePresence_native = __commonJS({
680
680
  children: child
681
681
  }, getChildKey(child));
682
682
  }), presentChildren.current = childrenToRender, /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
683
- children: exiting.size ? childrenToRender : childrenToRender.map(function(child) {
684
- return /* @__PURE__ */ (0, import_react4.cloneElement)(child);
685
- })
683
+ children: exiting.size ? childrenToRender : (
684
+ // biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
685
+ childrenToRender.map(function(child) {
686
+ return /* @__PURE__ */ (0, import_react4.cloneElement)(child);
687
+ })
688
+ )
686
689
  });
687
690
  };
688
691
  AnimatePresence.displayName = "AnimatePresence";
@@ -6709,7 +6712,8 @@ var require_skipProps_native = __commonJS({
6709
6712
  outlineStyle: 1,
6710
6713
  outlineOffset: 1,
6711
6714
  outlineWidth: 1,
6712
- outlineColor: 1
6715
+ outlineColor: 1,
6716
+ scrollbarWidth: 1
6713
6717
  });
6714
6718
  }
6715
6719
  });
@@ -7991,16 +7995,19 @@ var require_Theme_native = __commonJS({
7991
7995
  });
7992
7996
  } catch {
7993
7997
  }
7994
- return getThemedChildren(themeState, finalChildren, props, isRoot);
7998
+ var stateRef = (0, import_react4.useRef)({
7999
+ hasEverThemed: !1
8000
+ });
8001
+ return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef);
7995
8002
  });
7996
8003
  Theme2.displayName = "Theme";
7997
8004
  Theme2.avoidForwardRef = !0;
7998
8005
  function getThemedChildren(themeState, children, props) {
7999
- var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, themeManager = themeState.themeManager, isNewTheme = themeState.isNewTheme;
8006
+ var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, stateRef = arguments.length > 4 ? arguments[4] : void 0, themeManager = themeState.themeManager, isNewTheme = themeState.isNewTheme;
8000
8007
  if (!themeManager)
8001
8008
  throw new Error("\u274C 005");
8002
- var shallow = props.shallow, forceClassName = props.forceClassName, hasEverThemed = (0, import_react4.useRef)(!1), shouldRenderChildrenWithTheme = isNewTheme || props.inverse || hasEverThemed.current || forceClassName || isRoot;
8003
- if (shouldRenderChildrenWithTheme && (hasEverThemed.current = !0), !shouldRenderChildrenWithTheme)
8009
+ var shallow = props.shallow, forceClassName = props.forceClassName, shouldRenderChildrenWithTheme = isNewTheme || "inverse" in props || "theme" in props || stateRef.current.hasEverThemed || forceClassName || isRoot;
8010
+ if (shouldRenderChildrenWithTheme && (stateRef.current.hasEverThemed = !0), !shouldRenderChildrenWithTheme)
8004
8011
  return children;
8005
8012
  var next = children;
8006
8013
  shallow && (next = import_react4.Children.toArray(children).map(function(child) {
@@ -8391,6 +8398,61 @@ var require_Slot_native = __commonJS({
8391
8398
  }
8392
8399
  });
8393
8400
 
8401
+ // ../web/dist/cjs/helpers/setElementProps.native.js
8402
+ var require_setElementProps_native = __commonJS({
8403
+ "../web/dist/cjs/helpers/setElementProps.native.js"(exports2, module2) {
8404
+ "use strict";
8405
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
8406
+ for (var name in all)
8407
+ __defProp2(target, name, {
8408
+ get: all[name],
8409
+ enumerable: !0
8410
+ });
8411
+ }, __copyProps2 = function(to, from, except, desc) {
8412
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
8413
+ if (from && typeof from == "object" || typeof from == "function")
8414
+ try {
8415
+ for (var _loop = function() {
8416
+ var key = _step.value;
8417
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
8418
+ get: function() {
8419
+ return from[key];
8420
+ },
8421
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
8422
+ });
8423
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
8424
+ _loop();
8425
+ } catch (err) {
8426
+ _didIteratorError = !0, _iteratorError = err;
8427
+ } finally {
8428
+ try {
8429
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
8430
+ } finally {
8431
+ if (_didIteratorError)
8432
+ throw _iteratorError;
8433
+ }
8434
+ }
8435
+ return to;
8436
+ }, __toCommonJS2 = function(mod) {
8437
+ return __copyProps2(__defProp2({}, "__esModule", {
8438
+ value: !0
8439
+ }), mod);
8440
+ }, setElementProps_native_exports = {};
8441
+ __export2(setElementProps_native_exports, {
8442
+ setElementProps: function() {
8443
+ return setElementProps;
8444
+ }
8445
+ });
8446
+ module2.exports = __toCommonJS2(setElementProps_native_exports);
8447
+ function setElementProps(element) {
8448
+ element && !element.getBoundingClientRect && (element.getBoundingClientRect = function() {
8449
+ if (element.unstable_getBoundingClientRect != null)
8450
+ return element.unstable_getBoundingClientRect();
8451
+ });
8452
+ }
8453
+ }
8454
+ });
8455
+
8394
8456
  // ../web/dist/cjs/createComponent.native.js
8395
8457
  var require_createComponent_native = __commonJS({
8396
8458
  "../web/dist/cjs/createComponent.native.js"(exports2, module2) {
@@ -8474,7 +8536,7 @@ var require_createComponent_native = __commonJS({
8474
8536
  }
8475
8537
  });
8476
8538
  module2.exports = __toCommonJS2(createComponent_exports);
8477
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_use_did_finish_ssr = require_index_native11(), import_react4 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_isDevTools = require_isDevTools_native();
8539
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_use_did_finish_ssr = require_index_native11(), import_react4 = __toESM2(require("react")), import_config = require_config_native(), import_constants22 = require_constants_native2(), import_ComponentContext = require_ComponentContext_native(), import_createVariable = require_createVariable_native(), import_defaultComponentState = require_defaultComponentState_native(), import_createShallowSetState = require_createShallowSetState_native(), import_getSplitStyles = require_getSplitStyles_native(), import_isObj = require_isObj_native(), import_log = require_log_native(), import_mergeProps = require_mergeProps_native(), import_themeable = require_themeable_native(), import_useMedia = require_useMedia_native(), import_useTheme = require_useTheme_native(), import_setupHooks = require_setupHooks_native(), import_Slot = require_Slot_native(), import_Theme = require_Theme_native(), import_ThemeDebug = require_ThemeDebug_native(), import_isDevTools = require_isDevTools_native(), import_setElementProps = require_setElementProps_native();
8478
8540
  function _array_like_to_array2(arr, len) {
8479
8541
  (len == null || len > arr.length) && (len = arr.length);
8480
8542
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -8814,7 +8876,7 @@ var require_createComponent_native = __commonJS({
8814
8876
  }), stateRef.current.hasMeasured = !0;
8815
8877
  })), viewProps = ((_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curStateRef.willHydrate)) || nonTamaguiProps, curStateRef.composedRef || (curStateRef.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
8816
8878
  return stateRef.current.host = x;
8817
- }, forwardedRef)), viewProps.ref = curStateRef.composedRef;
8879
+ }, forwardedRef, import_setElementProps.setElementProps)), viewProps.ref = curStateRef.composedRef;
8818
8880
  var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups, unPress = function() {
8819
8881
  return setStateShallow({
8820
8882
  press: !1,
@@ -8951,7 +9013,7 @@ var require_createComponent_native = __commonJS({
8951
9013
  if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, _object_spread_props8(_object_spread9({}, componentContext), {
8952
9014
  groups: subGroupContext,
8953
9015
  children: content
8954
- }))), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1), staticConfig.context) {
9016
+ }))), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), staticConfig.context) {
8955
9017
  var contextProps = staticConfig.context.props;
8956
9018
  for (var key1 in contextProps)
8957
9019
  if (viewProps.style && key1 in viewProps.style || key1 in viewProps) {
@@ -16311,7 +16373,7 @@ var require_Accordion_native = __commonJS({
16311
16373
  }
16312
16374
  });
16313
16375
  module2.exports = __toCommonJS2(Accordion_exports);
16314
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native14(), import_collection = require_index_native17(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), React2 = __toESM2(require("react"));
16376
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_collapsible = require_index_native14(), import_collection = require_index_native17(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), import_web2 = require_index_native13(), React2 = __toESM2(require("react"));
16315
16377
  function _array_like_to_array2(arr, len) {
16316
16378
  (len == null || len > arr.length) && (len = arr.length);
16317
16379
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -16456,7 +16518,7 @@ var require_Accordion_native = __commonJS({
16456
16518
  ].includes(props.type) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.") : props.type === "multiple" && typeof value == "string" ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.") : props.type === "single" && Array.isArray(value) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.") : null;
16457
16519
  }
16458
16520
  };
16459
- var _createStyledContext = (0, import_web.createStyledContext)(), AccordionValueProvider = _createStyledContext.Provider, useAccordionValueContext = _createStyledContext.useStyledContext, _createStyledContext1 = (0, import_web.createStyledContext)(), AccordionCollapsibleProvider = _createStyledContext1.Provider, useAccordionCollapsibleContext = _createStyledContext1.useStyledContext, AccordionImplSingle = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16521
+ var _createStyledContext = (0, import_web2.createStyledContext)(), AccordionValueProvider = _createStyledContext.Provider, useAccordionValueContext = _createStyledContext.useStyledContext, _createStyledContext1 = (0, import_web2.createStyledContext)(), AccordionCollapsibleProvider = _createStyledContext1.Provider, useAccordionCollapsibleContext = _createStyledContext1.useStyledContext, AccordionImplSingle = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16460
16522
  var valueProp = props.value, defaultValue = props.defaultValue, control = props.control, _props_onValueChange = props.onValueChange, onValueChange = _props_onValueChange === void 0 ? function() {
16461
16523
  } : _props_onValueChange, _props_collapsible = props.collapsible, collapsible = _props_collapsible === void 0 ? !1 : _props_collapsible, accordionSingleProps = _object_without_properties5(props, [
16462
16524
  "value",
@@ -16531,7 +16593,7 @@ var require_Accordion_native = __commonJS({
16531
16593
  }))
16532
16594
  })
16533
16595
  });
16534
- }), _createStyledContext2 = (0, import_web.createStyledContext)(), AccordionImplProvider = _createStyledContext2.Provider, useAccordionContext = _createStyledContext2.useStyledContext, AccordionImpl = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16596
+ }), _createStyledContext2 = (0, import_web2.createStyledContext)(), AccordionImplProvider = _createStyledContext2.Provider, useAccordionContext = _createStyledContext2.useStyledContext, AccordionImpl = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16535
16597
  var __scopeAccordion = props.__scopeAccordion, disabled = props.disabled, dir = props.dir, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "vertical" : _props_orientation, accordionProps = _object_without_properties5(props, [
16536
16598
  "__scopeAccordion",
16537
16599
  "disabled",
@@ -16593,7 +16655,7 @@ var require_Accordion_native = __commonJS({
16593
16655
  }))
16594
16656
  })
16595
16657
  });
16596
- }), ITEM_NAME = "AccordionItem", _createStyledContext3 = (0, import_web.createStyledContext)(), AccordionItemProvider = _createStyledContext3.Provider, useAccordionItemContext = _createStyledContext3.useStyledContext, AccordionItem = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16658
+ }), ITEM_NAME = "AccordionItem", _createStyledContext3 = (0, import_web2.createStyledContext)(), AccordionItemProvider = _createStyledContext3.Provider, useAccordionItemContext = _createStyledContext3.useStyledContext, AccordionItem = /* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
16597
16659
  var __scopeAccordion = props.__scopeAccordion, value = props.value, accordionItemProps = _object_without_properties5(props, [
16598
16660
  "__scopeAccordion",
16599
16661
  "value"
@@ -16631,7 +16693,7 @@ var require_Accordion_native = __commonJS({
16631
16693
  }));
16632
16694
  });
16633
16695
  AccordionHeader.displayName = HEADER_NAME;
16634
- var AccordionTriggerFrame = (0, import_web.styled)(import_collapsible.Collapsible.Trigger, {
16696
+ var AccordionTriggerFrame = (0, import_web2.styled)(import_collapsible.Collapsible.Trigger, {
16635
16697
  variants: {
16636
16698
  unstyled: {
16637
16699
  false: {
@@ -16671,7 +16733,7 @@ var require_Accordion_native = __commonJS({
16671
16733
  ref: forwardedRef
16672
16734
  }))
16673
16735
  });
16674
- }), AccordionContentFrame = (0, import_web.styled)(import_collapsible.Collapsible.Content, {
16736
+ }), AccordionContentFrame = (0, import_web2.styled)(import_collapsible.Collapsible.Content, {
16675
16737
  variants: {
16676
16738
  unstyled: {
16677
16739
  false: {
@@ -16696,6 +16758,30 @@ var require_Accordion_native = __commonJS({
16696
16758
  }, contentProps), {
16697
16759
  ref: forwardedRef
16698
16760
  }));
16761
+ }), HeightAnimator = import_web.View.styleable(function(props, ref) {
16762
+ var itemContext = useAccordionItemContext(), children = props.children, rest = _object_without_properties5(props, [
16763
+ "children"
16764
+ ]), _React_useState = _sliced_to_array(React2.useState(0), 2), height = _React_useState[0], setHeight = _React_useState[1];
16765
+ React2.useEffect(function() {
16766
+ itemContext.open || setHeight(0);
16767
+ }, [
16768
+ itemContext.open
16769
+ ]);
16770
+ var onLayout = (0, import_web.useEvent)(function(param) {
16771
+ var nativeEvent = param.nativeEvent;
16772
+ nativeEvent.layout.height && setHeight(nativeEvent.layout.height);
16773
+ });
16774
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, _object_spread_props8(_object_spread9({
16775
+ ref,
16776
+ height
16777
+ }, rest), {
16778
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, {
16779
+ position: "absolute",
16780
+ //@ts-ignore
16781
+ onLayout,
16782
+ children
16783
+ })
16784
+ }));
16699
16785
  });
16700
16786
  function getState(open) {
16701
16787
  return open ? "open" : "closed";
@@ -16704,7 +16790,8 @@ var require_Accordion_native = __commonJS({
16704
16790
  Trigger: AccordionTrigger,
16705
16791
  Header: AccordionHeader,
16706
16792
  Content: AccordionContent,
16707
- Item: AccordionItem
16793
+ Item: AccordionItem,
16794
+ HeightAnimator
16708
16795
  });
16709
16796
  }
16710
16797
  });
@@ -19295,7 +19382,7 @@ var require_SheetImplementationCustom_native = __commonJS({
19295
19382
  var startY = at.current, release = function(param) {
19296
19383
  var vy = param.vy, dragAt = param.dragAt;
19297
19384
  isExternalDrag = !1, previouslyScrolling = !1, setPanning(!1);
19298
- for (var at2 = dragAt + startY, end = at2 + frameSize * vy * 0.2, closestPoint = 0, dist = 1 / 0, i = 0; i < positions.length; i++) {
19385
+ for (var at2 = dragAt + startY, end = at2 + frameSize * vy * 0.2, closestPoint = 0, dist = Number.POSITIVE_INFINITY, i = 0; i < positions.length; i++) {
19299
19386
  var position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
19300
19387
  curDist < dist && (dist = curDist, closestPoint = i);
19301
19388
  }
@@ -20038,6 +20125,7 @@ var require_createSheet_native = __commonJS({
20038
20125
  !disableHideBottomOverflow && // @ts-ignore
20039
20126
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, _object_spread_props8(_object_spread9({}, props), {
20040
20127
  componentName: "SheetCover",
20128
+ // biome-ignore lint/correctness/noChildrenProp: <explanation>
20041
20129
  children: null,
20042
20130
  position: "absolute",
20043
20131
  bottom: "-100%",
@@ -26908,7 +26996,7 @@ var require_ListItem_native = __commonJS({
26908
26996
  }
26909
26997
  });
26910
26998
  module2.exports = __toCommonJS2(ListItem_exports);
26911
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_font_size = require_index_native40(), import_get_font_sized2 = require_index_native21(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_web = require_index_native13(), import_react4 = require("react");
26999
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_font_size = require_index_native40(), import_get_font_sized2 = require_index_native21(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_web = require_index_native13();
26912
27000
  function _array_like_to_array2(arr, len) {
26913
27001
  (len == null || len > arr.length) && (len = arr.length);
26914
27002
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -29656,10 +29744,10 @@ var require_Popper_native = __commonJS({
29656
29744
  }, [
29657
29745
  isMounted
29658
29746
  ]);
29659
- var show = !0, setShow = void 0;
29747
+ var show = !0;
29660
29748
  if (import_constants4.isAndroid) {
29661
- var ref;
29662
- ref = _sliced_to_array(React2.useState(!1), 2), show = ref[0], setShow = ref[1], React2.useEffect(function() {
29749
+ var _React_useState1 = _sliced_to_array(React2.useState(!1), 2), show_ = _React_useState1[0], setShow = _React_useState1[1];
29750
+ show = show_, React2.useEffect(function() {
29663
29751
  finalHasFloatingValue && setShow(!0);
29664
29752
  }, [
29665
29753
  finalHasFloatingValue,
@@ -30784,11 +30872,11 @@ var require_index_native59 = __commonJS({
30784
30872
  }
30785
30873
  });
30786
30874
 
30787
- // ../roving-focus/dist/cjs/RovingFocusGroup.native.js
30788
- var require_RovingFocusGroup_native = __commonJS({
30789
- "../roving-focus/dist/cjs/RovingFocusGroup.native.js"(exports2, module2) {
30875
+ // ../radio-group/dist/cjs/RadioGroup.native.js
30876
+ var require_RadioGroup_native = __commonJS({
30877
+ "../radio-group/dist/cjs/RadioGroup.native.js"(exports2, module2) {
30790
30878
  "use strict";
30791
- var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
30879
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
30792
30880
  for (var name in all)
30793
30881
  __defProp2(target, name, {
30794
30882
  get: all[name],
@@ -30819,119 +30907,132 @@ var require_RovingFocusGroup_native = __commonJS({
30819
30907
  }
30820
30908
  }
30821
30909
  return to;
30822
- }, __toESM2 = function(mod, isNodeMode, target) {
30823
- return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
30824
- // If the importer is in node compatibility mode or this is not an ESM
30825
- // file that has been converted to a CommonJS file using a Babel-
30826
- // compatible transform (i.e. "__esModule" has not been set), then set
30827
- // "default" to the CommonJS "module.exports" for node compatibility.
30828
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
30829
- value: mod,
30830
- enumerable: !0
30831
- }) : target,
30832
- mod
30833
- );
30834
30910
  }, __toCommonJS2 = function(mod) {
30835
30911
  return __copyProps2(__defProp2({}, "__esModule", {
30836
30912
  value: !0
30837
30913
  }), mod);
30838
- }, RovingFocusGroup_native_exports = {};
30839
- __export2(RovingFocusGroup_native_exports, {
30840
- RovingFocusGroup: function() {
30841
- return RovingFocusGroup;
30914
+ }, RadioGroup_exports = {};
30915
+ __export2(RadioGroup_exports, {
30916
+ RadioGroupFrame: function() {
30917
+ return RadioGroupFrame;
30842
30918
  },
30843
- createRovingFocusGroupScope: function() {
30844
- return createRovingFocusGroupScope;
30919
+ RadioGroupIndicatorFrame: function() {
30920
+ return RadioGroupIndicatorFrame;
30921
+ },
30922
+ RadioGroupItemFrame: function() {
30923
+ return RadioGroupItemFrame;
30845
30924
  }
30846
30925
  });
30847
- module2.exports = __toCommonJS2(RovingFocusGroup_native_exports);
30848
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react"));
30849
- function _define_property9(obj, key, value) {
30850
- return key in obj ? Object.defineProperty(obj, key, {
30851
- value,
30852
- enumerable: !0,
30853
- configurable: !0,
30854
- writable: !0
30855
- }) : obj[key] = value, obj;
30856
- }
30857
- function _object_spread9(target) {
30858
- for (var i = 1; i < arguments.length; i++) {
30859
- var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
30860
- typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
30861
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
30862
- }))), ownKeys22.forEach(function(key) {
30863
- _define_property9(target, key, source[key]);
30864
- });
30926
+ module2.exports = __toCommonJS2(RadioGroup_exports);
30927
+ var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), RADIO_GROUP_ITEM_NAME = "RadioGroupItem", RadioGroupItemFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
30928
+ name: RADIO_GROUP_ITEM_NAME,
30929
+ tag: "button",
30930
+ variants: {
30931
+ unstyled: {
30932
+ false: {
30933
+ size: "$true",
30934
+ borderRadius: 1e3,
30935
+ backgroundColor: "$background",
30936
+ alignItems: "center",
30937
+ justifyContent: "center",
30938
+ borderWidth: 1,
30939
+ borderColor: "$borderColor",
30940
+ padding: 0,
30941
+ hoverStyle: {
30942
+ borderColor: "$borderColorHover",
30943
+ backgroundColor: "$backgroundHover"
30944
+ },
30945
+ focusStyle: {
30946
+ borderColor: "$borderColorHover",
30947
+ backgroundColor: "$backgroundHover"
30948
+ },
30949
+ focusVisibleStyle: {
30950
+ outlineStyle: "solid",
30951
+ outlineWidth: 2,
30952
+ outlineColor: "$outlineColor"
30953
+ },
30954
+ pressStyle: {
30955
+ borderColor: "$borderColorFocus",
30956
+ backgroundColor: "$backgroundFocus"
30957
+ }
30958
+ }
30959
+ },
30960
+ disabled: {
30961
+ true: {
30962
+ pointerEvents: "none",
30963
+ userSelect: "none",
30964
+ cursor: "not-allowed",
30965
+ hoverStyle: {
30966
+ borderColor: "$borderColor",
30967
+ backgroundColor: "$background"
30968
+ },
30969
+ pressStyle: {
30970
+ borderColor: "$borderColor",
30971
+ backgroundColor: "$backgroundColor"
30972
+ },
30973
+ focusVisibleStyle: {
30974
+ outlineWidth: 0
30975
+ }
30976
+ }
30977
+ },
30978
+ size: {
30979
+ "...size": function(value, param) {
30980
+ var props = param.props, _props_scaleSize, size3 = Math.floor((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
30981
+ return {
30982
+ width: size3,
30983
+ height: size3
30984
+ };
30985
+ }
30986
+ }
30987
+ },
30988
+ defaultVariants: {
30989
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
30865
30990
  }
30866
- return target;
30867
- }
30868
- function ownKeys8(object, enumerableOnly) {
30869
- var keys = Object.keys(object);
30870
- if (Object.getOwnPropertySymbols) {
30871
- var symbols = Object.getOwnPropertySymbols(object);
30872
- enumerableOnly && (symbols = symbols.filter(function(sym) {
30873
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
30874
- })), keys.push.apply(keys, symbols);
30991
+ }), RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioGroupIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
30992
+ name: RADIO_GROUP_INDICATOR_NAME,
30993
+ variants: {
30994
+ unstyled: {
30995
+ false: {
30996
+ width: "33%",
30997
+ height: "33%",
30998
+ borderRadius: 1e3,
30999
+ backgroundColor: "$color",
31000
+ pressTheme: !0
31001
+ }
31002
+ }
31003
+ },
31004
+ defaultVariants: {
31005
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
30875
31006
  }
30876
- return keys;
30877
- }
30878
- function _object_spread_props8(target, source) {
30879
- return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
30880
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
30881
- }), target;
30882
- }
30883
- function _object_without_properties5(source, excluded) {
30884
- if (source == null)
30885
- return {};
30886
- var target = _object_without_properties_loose5(source, excluded), key, i;
30887
- if (Object.getOwnPropertySymbols) {
30888
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
30889
- for (i = 0; i < sourceSymbolKeys.length; i++)
30890
- key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31007
+ }), RADIO_GROUP_NAME = "RadioGroup", RadioGroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31008
+ name: RADIO_GROUP_NAME,
31009
+ variants: {
31010
+ orientation: {
31011
+ horizontal: {
31012
+ flexDirection: "row",
31013
+ spaceDirection: "horizontal"
31014
+ },
31015
+ vertical: {
31016
+ flexDirection: "column",
31017
+ spaceDirection: "vertical"
31018
+ }
31019
+ }
30891
31020
  }
30892
- return target;
30893
- }
30894
- function _object_without_properties_loose5(source, excluded) {
30895
- if (source == null)
30896
- return {};
30897
- var target = {}, sourceKeys = Object.keys(source), key, i;
30898
- for (i = 0; i < sourceKeys.length; i++)
30899
- key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
30900
- return target;
30901
- }
30902
- var ITEM_NAME = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
30903
- var children = _param.children, props = _object_without_properties5(_param, [
30904
- "children"
30905
- ]);
30906
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
30907
- children
30908
- }));
30909
- });
30910
- RovingFocusGroupItem.displayName = ITEM_NAME;
30911
- var GROUP_NAME = "RovingFocusGroup", RovingFocusGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
30912
- var children = _param.children, props = _object_without_properties5(_param, [
30913
- "children"
30914
- ]);
30915
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
30916
- children
30917
- }));
30918
- }), {
30919
- Item: RovingFocusGroupItem
30920
31021
  });
30921
- RovingFocusGroup.displayName = GROUP_NAME;
30922
- var createRovingFocusGroupScope = function() {
30923
- return function() {
30924
- return {};
30925
- };
30926
- };
30927
31022
  }
30928
31023
  });
30929
31024
 
30930
- // ../roving-focus/dist/cjs/index.native.js
30931
- var require_index_native60 = __commonJS({
30932
- "../roving-focus/dist/cjs/index.native.js"(exports2, module2) {
31025
+ // ../radio-headless/dist/cjs/BubbleInput.native.js
31026
+ var require_BubbleInput_native2 = __commonJS({
31027
+ "../radio-headless/dist/cjs/BubbleInput.native.js"(exports2, module2) {
30933
31028
  "use strict";
30934
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
31029
+ var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31030
+ for (var name in all)
31031
+ __defProp2(target, name, {
31032
+ get: all[name],
31033
+ enumerable: !0
31034
+ });
31035
+ }, __copyProps2 = function(to, from, except, desc) {
30935
31036
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
30936
31037
  if (from && typeof from == "object" || typeof from == "function")
30937
31038
  try {
@@ -30956,27 +31057,186 @@ var require_index_native60 = __commonJS({
30956
31057
  }
30957
31058
  }
30958
31059
  return to;
30959
- }, __reExport2 = function(target, mod, secondTarget) {
30960
- return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
31060
+ }, __toESM2 = function(mod, isNodeMode, target) {
31061
+ return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
31062
+ // If the importer is in node compatibility mode or this is not an ESM
31063
+ // file that has been converted to a CommonJS file using a Babel-
31064
+ // compatible transform (i.e. "__esModule" has not been set), then set
31065
+ // "default" to the CommonJS "module.exports" for node compatibility.
31066
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
31067
+ value: mod,
31068
+ enumerable: !0
31069
+ }) : target,
31070
+ mod
31071
+ );
30961
31072
  }, __toCommonJS2 = function(mod) {
30962
31073
  return __copyProps2(__defProp2({}, "__esModule", {
30963
31074
  value: !0
30964
31075
  }), mod);
30965
- }, src_exports2 = {};
30966
- module2.exports = __toCommonJS2(src_exports2);
30967
- __reExport2(src_exports2, require_RovingFocusGroup_native(), module2.exports);
31076
+ }, BubbleInput_exports = {};
31077
+ __export2(BubbleInput_exports, {
31078
+ BubbleInput: function() {
31079
+ return BubbleInput;
31080
+ }
31081
+ });
31082
+ module2.exports = __toCommonJS2(BubbleInput_exports);
31083
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_react4 = __toESM2(require("react")), import_use_previous = require_index_native46();
31084
+ function _define_property9(obj, key, value) {
31085
+ return key in obj ? Object.defineProperty(obj, key, {
31086
+ value,
31087
+ enumerable: !0,
31088
+ configurable: !0,
31089
+ writable: !0
31090
+ }) : obj[key] = value, obj;
31091
+ }
31092
+ function _object_spread9(target) {
31093
+ for (var i = 1; i < arguments.length; i++) {
31094
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
31095
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
31096
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
31097
+ }))), ownKeys22.forEach(function(key) {
31098
+ _define_property9(target, key, source[key]);
31099
+ });
31100
+ }
31101
+ return target;
31102
+ }
31103
+ function ownKeys8(object, enumerableOnly) {
31104
+ var keys = Object.keys(object);
31105
+ if (Object.getOwnPropertySymbols) {
31106
+ var symbols = Object.getOwnPropertySymbols(object);
31107
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
31108
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
31109
+ })), keys.push.apply(keys, symbols);
31110
+ }
31111
+ return keys;
31112
+ }
31113
+ function _object_spread_props8(target, source) {
31114
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
31115
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
31116
+ }), target;
31117
+ }
31118
+ function _object_without_properties5(source, excluded) {
31119
+ if (source == null)
31120
+ return {};
31121
+ var target = _object_without_properties_loose5(source, excluded), key, i;
31122
+ if (Object.getOwnPropertySymbols) {
31123
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
31124
+ for (i = 0; i < sourceSymbolKeys.length; i++)
31125
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31126
+ }
31127
+ return target;
31128
+ }
31129
+ function _object_without_properties_loose5(source, excluded) {
31130
+ if (source == null)
31131
+ return {};
31132
+ var target = {}, sourceKeys = Object.keys(source), key, i;
31133
+ for (i = 0; i < sourceKeys.length; i++)
31134
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
31135
+ return target;
31136
+ }
31137
+ var BubbleInput = function(props) {
31138
+ var checked = props.checked, _props_bubbles = props.bubbles, bubbles = _props_bubbles === void 0 ? !0 : _props_bubbles, control = props.control, isHidden = props.isHidden, accentColor = props.accentColor, inputProps = _object_without_properties5(props, [
31139
+ "checked",
31140
+ "bubbles",
31141
+ "control",
31142
+ "isHidden",
31143
+ "accentColor"
31144
+ ]), ref = import_react4.default.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
31145
+ return import_react4.default.useEffect(function() {
31146
+ var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
31147
+ if (prevChecked !== checked && setChecked) {
31148
+ var event = new Event("click", {
31149
+ bubbles
31150
+ });
31151
+ setChecked.call(input, checked), input.dispatchEvent(event);
31152
+ }
31153
+ }, [
31154
+ prevChecked,
31155
+ checked,
31156
+ bubbles
31157
+ ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", _object_spread_props8(_object_spread9({
31158
+ type: "radio",
31159
+ defaultChecked: checked
31160
+ }, inputProps), {
31161
+ tabIndex: -1,
31162
+ ref,
31163
+ "aria-hidden": isHidden,
31164
+ style: _object_spread9({}, isHidden ? {
31165
+ // ...controlSize,
31166
+ position: "absolute",
31167
+ pointerEvents: "none",
31168
+ opacity: 0,
31169
+ margin: 0
31170
+ } : {
31171
+ appearance: "auto",
31172
+ accentColor
31173
+ }, props.style)
31174
+ }));
31175
+ };
30968
31176
  }
30969
31177
  });
30970
31178
 
30971
- // ../radio-group/dist/cjs/RadioGroup.native.js
30972
- var require_RadioGroup_native = __commonJS({
30973
- "../radio-group/dist/cjs/RadioGroup.native.js"(exports2, module2) {
31179
+ // ../radio-headless/dist/cjs/utils.native.js
31180
+ var require_utils_native3 = __commonJS({
31181
+ "../radio-headless/dist/cjs/utils.native.js"(exports2, module2) {
31182
+ "use strict";
31183
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31184
+ for (var name in all)
31185
+ __defProp2(target, name, {
31186
+ get: all[name],
31187
+ enumerable: !0
31188
+ });
31189
+ }, __copyProps2 = function(to, from, except, desc) {
31190
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31191
+ if (from && typeof from == "object" || typeof from == "function")
31192
+ try {
31193
+ for (var _loop = function() {
31194
+ var key = _step.value;
31195
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31196
+ get: function() {
31197
+ return from[key];
31198
+ },
31199
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31200
+ });
31201
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31202
+ _loop();
31203
+ } catch (err) {
31204
+ _didIteratorError = !0, _iteratorError = err;
31205
+ } finally {
31206
+ try {
31207
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31208
+ } finally {
31209
+ if (_didIteratorError)
31210
+ throw _iteratorError;
31211
+ }
31212
+ }
31213
+ return to;
31214
+ }, __toCommonJS2 = function(mod) {
31215
+ return __copyProps2(__defProp2({}, "__esModule", {
31216
+ value: !0
31217
+ }), mod);
31218
+ }, utils_exports = {};
31219
+ __export2(utils_exports, {
31220
+ getState: function() {
31221
+ return getState;
31222
+ }
31223
+ });
31224
+ module2.exports = __toCommonJS2(utils_exports);
31225
+ function getState(checked) {
31226
+ return checked ? "checked" : "unchecked";
31227
+ }
31228
+ }
31229
+ });
31230
+
31231
+ // ../radio-headless/dist/cjs/useRadioGroup.native.js
31232
+ var require_useRadioGroup_native = __commonJS({
31233
+ "../radio-headless/dist/cjs/useRadioGroup.native.js"(exports2, module2) {
30974
31234
  "use strict";
30975
31235
  function _type_of(obj) {
30976
31236
  "@swc/helpers - typeof";
30977
31237
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
30978
31238
  }
30979
- var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31239
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
30980
31240
  for (var name in all)
30981
31241
  __defProp2(target, name, {
30982
31242
  get: all[name],
@@ -31007,33 +31267,24 @@ var require_RadioGroup_native = __commonJS({
31007
31267
  }
31008
31268
  }
31009
31269
  return to;
31010
- }, __toESM2 = function(mod, isNodeMode, target) {
31011
- return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
31012
- // If the importer is in node compatibility mode or this is not an ESM
31013
- // file that has been converted to a CommonJS file using a Babel-
31014
- // compatible transform (i.e. "__esModule" has not been set), then set
31015
- // "default" to the CommonJS "module.exports" for node compatibility.
31016
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
31017
- value: mod,
31018
- enumerable: !0
31019
- }) : target,
31020
- mod
31021
- );
31022
31270
  }, __toCommonJS2 = function(mod) {
31023
31271
  return __copyProps2(__defProp2({}, "__esModule", {
31024
31272
  value: !0
31025
31273
  }), mod);
31026
- }, RadioGroup_exports = {};
31027
- __export2(RadioGroup_exports, {
31028
- RadioGroup: function() {
31029
- return RadioGroup;
31274
+ }, useRadioGroup_exports = {};
31275
+ __export2(useRadioGroup_exports, {
31276
+ useRadioGroup: function() {
31277
+ return useRadioGroup;
31030
31278
  },
31031
- createRadioGroupScope: function() {
31032
- return createRadioGroupScope;
31279
+ useRadioGroupItem: function() {
31280
+ return useRadioGroupItem;
31281
+ },
31282
+ useRadioGroupItemIndicator: function() {
31283
+ return useRadioGroupItemIndicator;
31033
31284
  }
31034
31285
  });
31035
- module2.exports = __toCommonJS2(RadioGroup_exports);
31036
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_focusable3 = require_index_native44(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_label = require_index_native45(), import_roving_focus = require_index_native60(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react"));
31286
+ module2.exports = __toCommonJS2(useRadioGroup_exports);
31287
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_focusable3 = require_index_native44(), import_helpers = require_index_native7(), import_label = require_index_native45(), import_use_controllable_state = require_index_native9(), import_react4 = require("react"), import_BubbleInput = require_BubbleInput_native2(), import_utils3 = require_utils_native3();
31037
31288
  function _array_like_to_array2(arr, len) {
31038
31289
  (len == null || len > arr.length) && (len = arr.length);
31039
31290
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -31120,327 +31371,636 @@ var require_RadioGroup_native = __commonJS({
31120
31371
  key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
31121
31372
  return target;
31122
31373
  }
31123
- function _sliced_to_array(arr, i) {
31124
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
31125
- }
31126
- function _unsupported_iterable_to_array2(o, minLen) {
31127
- if (o) {
31128
- if (typeof o == "string")
31129
- return _array_like_to_array2(o, minLen);
31130
- var n = Object.prototype.toString.call(o).slice(8, -1);
31131
- if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
31132
- return Array.from(n);
31133
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
31134
- return _array_like_to_array2(o, minLen);
31135
- }
31136
- }
31137
- var RADIO_GROUP_NAME = "RadioGroup", ARROW_KEYS = [
31138
- "ArrowUp",
31139
- "ArrowDown",
31140
- "ArrowLeft",
31141
- "ArrowRight"
31142
- ], _createContextScope = _sliced_to_array((0, import_create_context.createContextScope)(RADIO_GROUP_NAME), 2), createRadioGroupContext = _createContextScope[0], createRadioGroupScope = _createContextScope[1], _createRadioGroupContext = _sliced_to_array(createRadioGroupContext(RADIO_GROUP_NAME), 2), RadioGroupProvider = _createRadioGroupContext[0], useRadioGroupContext = _createRadioGroupContext[1], getState = function(checked) {
31143
- return checked ? "checked" : "unchecked";
31144
- }, RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31145
- name: RADIO_GROUP_INDICATOR_NAME,
31146
- variants: {
31147
- unstyled: {
31148
- false: {
31149
- width: "33%",
31150
- height: "33%",
31151
- borderRadius: 1e3,
31152
- backgroundColor: "$color",
31153
- pressTheme: !0
31154
- }
31155
- }
31156
- },
31157
- defaultVariants: {
31158
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
31159
- }
31160
- }), RadioIndicator = RadioIndicatorFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31161
- var __scopeRadioGroupItem = props.__scopeRadioGroupItem, forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties5(props, [
31162
- "__scopeRadioGroupItem",
31163
- "forceMount",
31164
- "disabled"
31165
- ]), checked = useRadioGroupItemContext(RADIO_GROUP_INDICATOR_NAME, __scopeRadioGroupItem).checked;
31166
- return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioIndicatorFrame, _object_spread_props8(_object_spread9({
31167
- "data-state": getState(checked),
31168
- "data-disabled": disabled ? "" : void 0
31169
- }, indicatorProps), {
31170
- ref: forwardedRef
31171
- })) : null;
31172
- }));
31173
- RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
31174
- var RADIO_GROUP_ITEM_NAME = "RadioGroupItem", _createRadioGroupContext1 = _sliced_to_array(createRadioGroupContext(RADIO_GROUP_NAME), 2), RadioGroupItemProvider = _createRadioGroupContext1[0], useRadioGroupItemContext = _createRadioGroupContext1[1], RadioGroupItemFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31175
- name: RADIO_GROUP_ITEM_NAME,
31176
- tag: "button",
31177
- variants: {
31178
- unstyled: {
31179
- false: {
31180
- size: "$true",
31181
- borderRadius: 1e3,
31182
- backgroundColor: "$background",
31183
- alignItems: "center",
31184
- justifyContent: "center",
31185
- borderWidth: 1,
31186
- borderColor: "$borderColor",
31187
- padding: 0,
31188
- hoverStyle: {
31189
- borderColor: "$borderColorHover",
31190
- backgroundColor: "$backgroundHover"
31191
- },
31192
- focusStyle: {
31193
- borderColor: "$borderColorHover",
31194
- backgroundColor: "$backgroundHover"
31195
- },
31196
- focusVisibleStyle: {
31197
- outlineStyle: "solid",
31198
- outlineWidth: 2,
31199
- outlineColor: "$outlineColor"
31200
- },
31201
- pressStyle: {
31202
- borderColor: "$borderColorFocus",
31203
- backgroundColor: "$backgroundFocus"
31204
- }
31205
- }
31206
- },
31207
- disabled: {
31208
- true: {
31209
- pointerEvents: "none",
31210
- userSelect: "none",
31211
- cursor: "not-allowed",
31212
- hoverStyle: {
31213
- borderColor: "$borderColor",
31214
- backgroundColor: "$background"
31215
- },
31216
- pressStyle: {
31217
- borderColor: "$borderColor",
31218
- backgroundColor: "$backgroundColor"
31219
- },
31220
- focusVisibleStyle: {
31221
- outlineWidth: 0
31222
- }
31223
- }
31224
- },
31225
- size: {
31226
- "...size": function(value, param) {
31227
- var props = param.props, _props_scaleSize, size3 = Math.floor((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * ((_props_scaleSize = props.scaleSize) !== null && _props_scaleSize !== void 0 ? _props_scaleSize : 0.5));
31228
- return {
31229
- width: size3,
31230
- height: size3
31231
- };
31232
- }
31233
- }
31234
- },
31235
- defaultVariants: {
31236
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
31237
- }
31238
- }), RadioGroupItem = RadioGroupItemFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31239
- var __scopeRadioGroup = props.__scopeRadioGroup, value = props.value, ariaLabelledby = props.labelledBy, itemDisabled = props.disabled, itemProps = _object_without_properties5(props, [
31240
- "__scopeRadioGroup",
31241
- "value",
31242
- "labelledBy",
31243
- "disabled"
31244
- ]), _useRadioGroupContext = useRadioGroupContext(RADIO_GROUP_ITEM_NAME, __scopeRadioGroup), groupValue = _useRadioGroupContext.value, disabled = _useRadioGroupContext.disabled, required = _useRadioGroupContext.required, onChange = _useRadioGroupContext.onChange, name = _useRadioGroupContext.name, native = _useRadioGroupContext.native, accentColor = _useRadioGroupContext.accentColor, _React_useState = _sliced_to_array(React2.useState(null), 2), button = _React_useState[0], setButton = _React_useState[1], hasConsumerStoppedPropagationRef = React2.useRef(!1), ref = React2.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, function(node) {
31245
- return setButton(node);
31246
- }, ref), isArrowKeyPressedRef = React2.useRef(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, checked = groupValue === value, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
31247
- React2.useEffect(function() {
31248
- if (import_constants4.isWeb) {
31249
- var handleKeyDown = function(event) {
31250
- ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
31251
- }, handleKeyUp = function() {
31252
- isArrowKeyPressedRef.current = !1;
31253
- };
31254
- return document.addEventListener("keydown", handleKeyDown), document.addEventListener("keyup", handleKeyUp), function() {
31255
- document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
31256
- };
31257
- }
31258
- }, []), React2.useEffect(function() {
31259
- if (props.id && !disabled)
31260
- return (0, import_focusable3.registerFocusable)(props.id, {
31261
- focusAndSelect: function() {
31262
- onChange == null || onChange(value);
31263
- },
31264
- focus: function() {
31265
- }
31266
- });
31267
- }, [
31268
- props.id,
31269
- value,
31270
- disabled
31271
- ]);
31272
- var isDisabled = disabled || itemDisabled;
31273
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemProvider, {
31274
- checked,
31275
- scope: __scopeRadioGroup,
31276
- children: import_constants4.isWeb && native ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BubbleInput, {
31277
- control: button,
31278
- bubbles: !hasConsumerStoppedPropagationRef.current,
31374
+ function _sliced_to_array(arr, i) {
31375
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array2(arr, i) || _non_iterable_rest();
31376
+ }
31377
+ function _unsupported_iterable_to_array2(o, minLen) {
31378
+ if (o) {
31379
+ if (typeof o == "string")
31380
+ return _array_like_to_array2(o, minLen);
31381
+ var n = Object.prototype.toString.call(o).slice(8, -1);
31382
+ if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
31383
+ return Array.from(n);
31384
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
31385
+ return _array_like_to_array2(o, minLen);
31386
+ }
31387
+ }
31388
+ function useRadioGroup(params) {
31389
+ var valueProp = params.value, onValueChange = params.onValueChange, defaultValue = params.defaultValue, required = params.required, disabled = params.disabled, name = params.name, native = params.native, accentColor = params.accentColor, orientation = params.orientation, ref = params.ref, _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
31390
+ prop: valueProp,
31391
+ defaultProp: defaultValue,
31392
+ onChange: onValueChange
31393
+ }), 2), value = _useControllableState[0], setValue = _useControllableState[1];
31394
+ return {
31395
+ providerValue: {
31396
+ value,
31397
+ onChange: setValue,
31398
+ required,
31399
+ disabled,
31400
+ name,
31401
+ native,
31402
+ accentColor
31403
+ },
31404
+ frameAttrs: {
31405
+ role: "radiogroup",
31406
+ "aria-orientation": orientation,
31407
+ "data-disabled": disabled ? "" : void 0
31408
+ },
31409
+ rovingFocusGroupAttrs: {
31410
+ orientation,
31411
+ loop: !0
31412
+ }
31413
+ };
31414
+ }
31415
+ var ARROW_KEYS = [
31416
+ "ArrowUp",
31417
+ "ArrowDown",
31418
+ "ArrowLeft",
31419
+ "ArrowRight"
31420
+ ], useRadioGroupItem = function(params) {
31421
+ var radioGroupContext = params.radioGroupContext, value = params.value, ariaLabelledby = params.labelledBy, itemDisabled = params.disabled, refProp = params.ref, id = params.id, onPress = params.onPress, onKeyDown = params.onKeyDown, onFocus = params.onFocus, _useContext = (0, import_react4.useContext)(radioGroupContext), groupValue = _useContext.value, disabled = _useContext.disabled, required = _useContext.required, onChange = _useContext.onChange, name = _useContext.name, native = _useContext.native, accentColor = _useContext.accentColor, _useState = _sliced_to_array((0, import_react4.useState)(null), 2), button = _useState[0], setButton = _useState[1], hasConsumerStoppedPropagationRef = (0, import_react4.useRef)(!1), ref = (0, import_react4.useRef)(null), composedRefs = (0, import_compose_refs.useComposedRefs)(refProp, function(node) {
31422
+ return setButton(node);
31423
+ }, ref), isArrowKeyPressedRef = (0, import_react4.useRef)(!1), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, checked = groupValue === value, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
31424
+ (0, import_react4.useEffect)(function() {
31425
+ if (import_constants4.isWeb) {
31426
+ var handleKeyDown = function(event) {
31427
+ ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
31428
+ }, handleKeyUp = function() {
31429
+ isArrowKeyPressedRef.current = !1;
31430
+ };
31431
+ return document.addEventListener("keydown", handleKeyDown), document.addEventListener("keyup", handleKeyUp), function() {
31432
+ document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
31433
+ };
31434
+ }
31435
+ }, []), (0, import_react4.useEffect)(function() {
31436
+ if (id && !disabled)
31437
+ return (0, import_focusable3.registerFocusable)(id, {
31438
+ focusAndSelect: function() {
31439
+ onChange == null || onChange(value);
31440
+ },
31441
+ focus: function() {
31442
+ }
31443
+ });
31444
+ }, [
31445
+ id,
31446
+ value,
31447
+ disabled
31448
+ ]);
31449
+ var isDisabled = disabled || itemDisabled;
31450
+ return {
31451
+ providerValue: {
31452
+ checked
31453
+ },
31454
+ checked,
31455
+ isFormControl,
31456
+ bubbleInput: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_BubbleInput.BubbleInput, _object_spread9({
31457
+ isHidden: !native,
31458
+ control: button,
31459
+ bubbles: !hasConsumerStoppedPropagationRef.current,
31460
+ name,
31461
+ value,
31462
+ checked,
31463
+ required,
31464
+ disabled: isDisabled
31465
+ }, import_constants4.isWeb && native && {
31466
+ accentColor,
31467
+ id
31468
+ })),
31469
+ native,
31470
+ frameAttrs: _object_spread9(_object_spread_props8(_object_spread9({
31471
+ "data-state": (0, import_utils3.getState)(checked),
31472
+ "data-disabled": isDisabled ? "" : void 0,
31473
+ role: "radio",
31474
+ "aria-labelledby": labelledBy,
31475
+ "aria-checked": checked,
31476
+ "aria-required": required,
31477
+ disabled: isDisabled,
31478
+ ref: composedRefs
31479
+ }, import_constants4.isWeb && {
31480
+ type: "button",
31481
+ value
31482
+ }), {
31483
+ id,
31484
+ onPress: (0, import_helpers.composeEventHandlers)(onPress, function(event) {
31485
+ checked || onChange == null || onChange(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
31486
+ })
31487
+ }), import_constants4.isWeb && {
31488
+ onKeyDown: (0, import_helpers.composeEventHandlers)(onKeyDown, function(event) {
31489
+ event.key === "Enter" && event.preventDefault();
31490
+ }),
31491
+ onFocus: (0, import_helpers.composeEventHandlers)(onFocus, function() {
31492
+ if (isArrowKeyPressedRef.current) {
31493
+ var _ref_current;
31494
+ (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.click();
31495
+ }
31496
+ })
31497
+ }),
31498
+ rovingFocusGroupAttrs: {
31499
+ asChild: "expect-style",
31500
+ focusable: !isDisabled,
31501
+ active: checked
31502
+ }
31503
+ };
31504
+ };
31505
+ function useRadioGroupItemIndicator(params) {
31506
+ var radioGroupItemContext = params.radioGroupItemContext, disabled = params.disabled, rest = _object_without_properties5(params, [
31507
+ "radioGroupItemContext",
31508
+ "disabled"
31509
+ ]), checked = (0, import_react4.useContext)(radioGroupItemContext).checked;
31510
+ return _object_spread9({
31511
+ checked,
31512
+ "data-state": (0, import_utils3.getState)(checked),
31513
+ "data-disabled": disabled ? "" : void 0
31514
+ }, rest);
31515
+ }
31516
+ }
31517
+ });
31518
+
31519
+ // ../radio-headless/dist/cjs/index.native.js
31520
+ var require_index_native60 = __commonJS({
31521
+ "../radio-headless/dist/cjs/index.native.js"(exports2, module2) {
31522
+ "use strict";
31523
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
31524
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31525
+ if (from && typeof from == "object" || typeof from == "function")
31526
+ try {
31527
+ for (var _loop = function() {
31528
+ var key = _step.value;
31529
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31530
+ get: function() {
31531
+ return from[key];
31532
+ },
31533
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31534
+ });
31535
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31536
+ _loop();
31537
+ } catch (err) {
31538
+ _didIteratorError = !0, _iteratorError = err;
31539
+ } finally {
31540
+ try {
31541
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31542
+ } finally {
31543
+ if (_didIteratorError)
31544
+ throw _iteratorError;
31545
+ }
31546
+ }
31547
+ return to;
31548
+ }, __reExport2 = function(target, mod, secondTarget) {
31549
+ return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
31550
+ }, __toCommonJS2 = function(mod) {
31551
+ return __copyProps2(__defProp2({}, "__esModule", {
31552
+ value: !0
31553
+ }), mod);
31554
+ }, src_exports2 = {};
31555
+ module2.exports = __toCommonJS2(src_exports2);
31556
+ __reExport2(src_exports2, require_useRadioGroup_native(), module2.exports);
31557
+ __reExport2(src_exports2, require_utils_native3(), module2.exports);
31558
+ }
31559
+ });
31560
+
31561
+ // ../roving-focus/dist/cjs/RovingFocusGroup.native.js
31562
+ var require_RovingFocusGroup_native = __commonJS({
31563
+ "../roving-focus/dist/cjs/RovingFocusGroup.native.js"(exports2, module2) {
31564
+ "use strict";
31565
+ var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31566
+ for (var name in all)
31567
+ __defProp2(target, name, {
31568
+ get: all[name],
31569
+ enumerable: !0
31570
+ });
31571
+ }, __copyProps2 = function(to, from, except, desc) {
31572
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31573
+ if (from && typeof from == "object" || typeof from == "function")
31574
+ try {
31575
+ for (var _loop = function() {
31576
+ var key = _step.value;
31577
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31578
+ get: function() {
31579
+ return from[key];
31580
+ },
31581
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31582
+ });
31583
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31584
+ _loop();
31585
+ } catch (err) {
31586
+ _didIteratorError = !0, _iteratorError = err;
31587
+ } finally {
31588
+ try {
31589
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31590
+ } finally {
31591
+ if (_didIteratorError)
31592
+ throw _iteratorError;
31593
+ }
31594
+ }
31595
+ return to;
31596
+ }, __toESM2 = function(mod, isNodeMode, target) {
31597
+ return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
31598
+ // If the importer is in node compatibility mode or this is not an ESM
31599
+ // file that has been converted to a CommonJS file using a Babel-
31600
+ // compatible transform (i.e. "__esModule" has not been set), then set
31601
+ // "default" to the CommonJS "module.exports" for node compatibility.
31602
+ isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
31603
+ value: mod,
31604
+ enumerable: !0
31605
+ }) : target,
31606
+ mod
31607
+ );
31608
+ }, __toCommonJS2 = function(mod) {
31609
+ return __copyProps2(__defProp2({}, "__esModule", {
31610
+ value: !0
31611
+ }), mod);
31612
+ }, RovingFocusGroup_native_exports = {};
31613
+ __export2(RovingFocusGroup_native_exports, {
31614
+ RovingFocusGroup: function() {
31615
+ return RovingFocusGroup;
31616
+ },
31617
+ createRovingFocusGroupScope: function() {
31618
+ return createRovingFocusGroupScope;
31619
+ }
31620
+ });
31621
+ module2.exports = __toCommonJS2(RovingFocusGroup_native_exports);
31622
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react"));
31623
+ function _define_property9(obj, key, value) {
31624
+ return key in obj ? Object.defineProperty(obj, key, {
31625
+ value,
31626
+ enumerable: !0,
31627
+ configurable: !0,
31628
+ writable: !0
31629
+ }) : obj[key] = value, obj;
31630
+ }
31631
+ function _object_spread9(target) {
31632
+ for (var i = 1; i < arguments.length; i++) {
31633
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
31634
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
31635
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
31636
+ }))), ownKeys22.forEach(function(key) {
31637
+ _define_property9(target, key, source[key]);
31638
+ });
31639
+ }
31640
+ return target;
31641
+ }
31642
+ function ownKeys8(object, enumerableOnly) {
31643
+ var keys = Object.keys(object);
31644
+ if (Object.getOwnPropertySymbols) {
31645
+ var symbols = Object.getOwnPropertySymbols(object);
31646
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
31647
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
31648
+ })), keys.push.apply(keys, symbols);
31649
+ }
31650
+ return keys;
31651
+ }
31652
+ function _object_spread_props8(target, source) {
31653
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
31654
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
31655
+ }), target;
31656
+ }
31657
+ function _object_without_properties5(source, excluded) {
31658
+ if (source == null)
31659
+ return {};
31660
+ var target = _object_without_properties_loose5(source, excluded), key, i;
31661
+ if (Object.getOwnPropertySymbols) {
31662
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
31663
+ for (i = 0; i < sourceSymbolKeys.length; i++)
31664
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31665
+ }
31666
+ return target;
31667
+ }
31668
+ function _object_without_properties_loose5(source, excluded) {
31669
+ if (source == null)
31670
+ return {};
31671
+ var target = {}, sourceKeys = Object.keys(source), key, i;
31672
+ for (i = 0; i < sourceKeys.length; i++)
31673
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
31674
+ return target;
31675
+ }
31676
+ var ITEM_NAME = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
31677
+ var children = _param.children, props = _object_without_properties5(_param, [
31678
+ "children"
31679
+ ]);
31680
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
31681
+ children
31682
+ }));
31683
+ });
31684
+ RovingFocusGroupItem.displayName = ITEM_NAME;
31685
+ var GROUP_NAME = "RovingFocusGroup", RovingFocusGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
31686
+ var children = _param.children, props = _object_without_properties5(_param, [
31687
+ "children"
31688
+ ]);
31689
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
31690
+ children
31691
+ }));
31692
+ }), {
31693
+ Item: RovingFocusGroupItem
31694
+ });
31695
+ RovingFocusGroup.displayName = GROUP_NAME;
31696
+ var createRovingFocusGroupScope = function() {
31697
+ return function() {
31698
+ return {};
31699
+ };
31700
+ };
31701
+ }
31702
+ });
31703
+
31704
+ // ../roving-focus/dist/cjs/index.native.js
31705
+ var require_index_native61 = __commonJS({
31706
+ "../roving-focus/dist/cjs/index.native.js"(exports2, module2) {
31707
+ "use strict";
31708
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
31709
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31710
+ if (from && typeof from == "object" || typeof from == "function")
31711
+ try {
31712
+ for (var _loop = function() {
31713
+ var key = _step.value;
31714
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31715
+ get: function() {
31716
+ return from[key];
31717
+ },
31718
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31719
+ });
31720
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31721
+ _loop();
31722
+ } catch (err) {
31723
+ _didIteratorError = !0, _iteratorError = err;
31724
+ } finally {
31725
+ try {
31726
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31727
+ } finally {
31728
+ if (_didIteratorError)
31729
+ throw _iteratorError;
31730
+ }
31731
+ }
31732
+ return to;
31733
+ }, __reExport2 = function(target, mod, secondTarget) {
31734
+ return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
31735
+ }, __toCommonJS2 = function(mod) {
31736
+ return __copyProps2(__defProp2({}, "__esModule", {
31737
+ value: !0
31738
+ }), mod);
31739
+ }, src_exports2 = {};
31740
+ module2.exports = __toCommonJS2(src_exports2);
31741
+ __reExport2(src_exports2, require_RovingFocusGroup_native(), module2.exports);
31742
+ }
31743
+ });
31744
+
31745
+ // ../radio-group/dist/cjs/createRadioGroup.native.js
31746
+ var require_createRadioGroup_native = __commonJS({
31747
+ "../radio-group/dist/cjs/createRadioGroup.native.js"(exports2, module2) {
31748
+ "use strict";
31749
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31750
+ for (var name in all)
31751
+ __defProp2(target, name, {
31752
+ get: all[name],
31753
+ enumerable: !0
31754
+ });
31755
+ }, __copyProps2 = function(to, from, except, desc) {
31756
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31757
+ if (from && typeof from == "object" || typeof from == "function")
31758
+ try {
31759
+ for (var _loop = function() {
31760
+ var key = _step.value;
31761
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31762
+ get: function() {
31763
+ return from[key];
31764
+ },
31765
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31766
+ });
31767
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31768
+ _loop();
31769
+ } catch (err) {
31770
+ _didIteratorError = !0, _iteratorError = err;
31771
+ } finally {
31772
+ try {
31773
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31774
+ } finally {
31775
+ if (_didIteratorError)
31776
+ throw _iteratorError;
31777
+ }
31778
+ }
31779
+ return to;
31780
+ }, __toCommonJS2 = function(mod) {
31781
+ return __copyProps2(__defProp2({}, "__esModule", {
31782
+ value: !0
31783
+ }), mod);
31784
+ }, createRadioGroup_exports = {};
31785
+ __export2(createRadioGroup_exports, {
31786
+ createRadioGroup: function() {
31787
+ return createRadioGroup;
31788
+ }
31789
+ });
31790
+ module2.exports = __toCommonJS2(createRadioGroup_exports);
31791
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_RadioGroup = require_RadioGroup_native(), import_radio_headless = require_index_native60(), import_roving_focus = require_index_native61(), import_react4 = require("react");
31792
+ function _define_property9(obj, key, value) {
31793
+ return key in obj ? Object.defineProperty(obj, key, {
31794
+ value,
31795
+ enumerable: !0,
31796
+ configurable: !0,
31797
+ writable: !0
31798
+ }) : obj[key] = value, obj;
31799
+ }
31800
+ function _object_spread9(target) {
31801
+ for (var i = 1; i < arguments.length; i++) {
31802
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
31803
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
31804
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
31805
+ }))), ownKeys22.forEach(function(key) {
31806
+ _define_property9(target, key, source[key]);
31807
+ });
31808
+ }
31809
+ return target;
31810
+ }
31811
+ function ownKeys8(object, enumerableOnly) {
31812
+ var keys = Object.keys(object);
31813
+ if (Object.getOwnPropertySymbols) {
31814
+ var symbols = Object.getOwnPropertySymbols(object);
31815
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
31816
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
31817
+ })), keys.push.apply(keys, symbols);
31818
+ }
31819
+ return keys;
31820
+ }
31821
+ function _object_spread_props8(target, source) {
31822
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
31823
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
31824
+ }), target;
31825
+ }
31826
+ function _object_without_properties5(source, excluded) {
31827
+ if (source == null)
31828
+ return {};
31829
+ var target = _object_without_properties_loose5(source, excluded), key, i;
31830
+ if (Object.getOwnPropertySymbols) {
31831
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
31832
+ for (i = 0; i < sourceSymbolKeys.length; i++)
31833
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
31834
+ }
31835
+ return target;
31836
+ }
31837
+ function _object_without_properties_loose5(source, excluded) {
31838
+ if (source == null)
31839
+ return {};
31840
+ var target = {}, sourceKeys = Object.keys(source), key, i;
31841
+ for (i = 0; i < sourceKeys.length; i++)
31842
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
31843
+ return target;
31844
+ }
31845
+ var ensureContext = function(x) {
31846
+ x.context || (x.context = RadioGroupContext);
31847
+ }, RadioGroupContext = /* @__PURE__ */ (0, import_react4.createContext)({}), RadioGroupItemContext = /* @__PURE__ */ (0, import_react4.createContext)({
31848
+ checked: !1,
31849
+ disabled: !1
31850
+ });
31851
+ function createRadioGroup(createProps) {
31852
+ var disableActiveTheme = createProps.disableActiveTheme, _createProps_Frame = createProps.Frame, Frame = _createProps_Frame === void 0 ? import_RadioGroup.RadioGroupFrame : _createProps_Frame, _createProps_Indicator = createProps.Indicator, Indicator = _createProps_Indicator === void 0 ? import_RadioGroup.RadioGroupIndicatorFrame : _createProps_Indicator, _createProps_Item = createProps.Item, Item = _createProps_Item === void 0 ? import_RadioGroup.RadioGroupItemFrame : _createProps_Item;
31853
+ ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
31854
+ var RadioGroupImp = Frame.styleable(function(props, ref) {
31855
+ var value = props.value, defaultValue = props.defaultValue, onValueChange = props.onValueChange, _props_required = props.required, required = _props_required === void 0 ? !1 : _props_required, _props_disabled = props.disabled, disabled = _props_disabled === void 0 ? !1 : _props_disabled, name = props.name, native = props.native, accentColor = props.accentColor, _props_orientation = props.orientation, orientation = _props_orientation === void 0 ? "vertical" : _props_orientation, rest = _object_without_properties5(props, [
31856
+ "value",
31857
+ "defaultValue",
31858
+ "onValueChange",
31859
+ "required",
31860
+ "disabled",
31861
+ "name",
31862
+ "native",
31863
+ "accentColor",
31864
+ "orientation"
31865
+ ]), _useRadioGroup = (0, import_radio_headless.useRadioGroup)({
31866
+ orientation,
31279
31867
  name,
31868
+ defaultValue,
31280
31869
  value,
31281
- checked,
31870
+ onValueChange,
31282
31871
  required,
31283
- disabled: isDisabled,
31284
- id: props.id,
31872
+ disabled,
31873
+ native,
31285
31874
  accentColor
31286
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
31287
- children: [
31288
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, {
31289
- __scopeRovingFocusGroup: RADIO_GROUP_NAME,
31290
- asChild: "except-style",
31291
- focusable: !isDisabled,
31292
- active: checked,
31293
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemFrame, _object_spread9(_object_spread_props8(_object_spread9(
31294
- {
31295
- // theme={checked ? 'active' : undefined}
31296
- "data-state": getState(checked),
31297
- "data-disabled": isDisabled ? "" : void 0,
31298
- role: "radio",
31299
- "aria-labelledby": labelledBy,
31300
- "aria-checked": checked,
31301
- "aria-required": required,
31302
- disabled: isDisabled,
31303
- ref: composedRefs
31304
- },
31305
- import_constants4.isWeb && {
31306
- type: "button",
31307
- value
31308
- },
31309
- // allow them to override all but the handlers that already compose:
31310
- itemProps
31311
- ), {
31312
- onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function(event) {
31313
- checked || onChange == null || onChange(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
31314
- })
31315
- }), import_constants4.isWeb && {
31316
- onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {
31317
- event.key === "Enter" && event.preventDefault();
31318
- }),
31319
- onFocus: (0, import_helpers.composeEventHandlers)(itemProps.onFocus, function() {
31320
- if (isArrowKeyPressedRef.current) {
31321
- var _ref_current;
31322
- (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.click();
31323
- }
31324
- })
31325
- }))
31326
- }),
31327
- isFormControl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BubbleInput, {
31328
- isHidden: !0,
31329
- control: button,
31330
- bubbles: !hasConsumerStoppedPropagationRef.current,
31331
- name,
31332
- value,
31333
- checked,
31334
- required,
31335
- disabled: isDisabled
31336
- })
31337
- ]
31338
- })
31875
+ }), providerValue = _useRadioGroup.providerValue, frameAttrs = _useRadioGroup.frameAttrs, rovingFocusGroupAttrs = _useRadioGroup.rovingFocusGroupAttrs;
31876
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupContext.Provider, {
31877
+ value: providerValue,
31878
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, _object_spread_props8(_object_spread9({}, rovingFocusGroupAttrs), {
31879
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_RadioGroup.RadioGroupFrame, _object_spread9(_object_spread_props8(_object_spread9({}, frameAttrs), {
31880
+ ref
31881
+ }), rest))
31882
+ }))
31883
+ });
31884
+ }), RadioGroupItemImp = Item.styleable(function(props, ref) {
31885
+ var value = props.value, labelledBy = props.labelledBy, onPress = props.onPress, onKeyDown = props.onKeyDown, disabled = props.disabled, id = props.id, rest = _object_without_properties5(props, [
31886
+ "value",
31887
+ "labelledBy",
31888
+ "onPress",
31889
+ "onKeyDown",
31890
+ "disabled",
31891
+ "id"
31892
+ ]), _useRadioGroupItem = (0, import_radio_headless.useRadioGroupItem)({
31893
+ radioGroupContext: RadioGroupContext,
31894
+ value,
31895
+ id,
31896
+ labelledBy,
31897
+ disabled,
31898
+ onPress,
31899
+ onKeyDown
31900
+ }), providerValue = _useRadioGroupItem.providerValue, bubbleInput = _useRadioGroupItem.bubbleInput, rovingFocusGroupAttrs = _useRadioGroupItem.rovingFocusGroupAttrs, frameAttrs = _useRadioGroupItem.frameAttrs, isFormControl = _useRadioGroupItem.isFormControl, native = _useRadioGroupItem.native;
31901
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemContext.Provider, {
31902
+ value: providerValue,
31903
+ children: import_core12.isWeb && native ? bubbleInput : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
31904
+ children: [
31905
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, _object_spread_props8(_object_spread9({}, rovingFocusGroupAttrs), {
31906
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_RadioGroup.RadioGroupItemFrame, _object_spread9(_object_spread_props8(_object_spread9({}, frameAttrs), {
31907
+ ref
31908
+ }), rest))
31909
+ })),
31910
+ isFormControl && bubbleInput
31911
+ ]
31912
+ })
31913
+ });
31339
31914
  });
31340
- })), BubbleInput = function(props) {
31341
- var checked = props.checked, _props_bubbles = props.bubbles, bubbles = _props_bubbles === void 0 ? !0 : _props_bubbles, control = props.control, isHidden = props.isHidden, accentColor = props.accentColor, inputProps = _object_without_properties5(props, [
31342
- "checked",
31343
- "bubbles",
31344
- "control",
31345
- "isHidden",
31346
- "accentColor"
31347
- ]), ref = React2.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
31348
- return React2.useEffect(function() {
31349
- var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
31350
- if (prevChecked !== checked && setChecked) {
31351
- var event = new Event("click", {
31352
- bubbles
31353
- });
31354
- setChecked.call(input, checked), input.dispatchEvent(event);
31355
- }
31356
- }, [
31357
- prevChecked,
31358
- checked,
31359
- bubbles
31360
- ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", _object_spread_props8(_object_spread9({
31361
- type: "radio",
31362
- defaultChecked: checked
31363
- }, inputProps), {
31364
- tabIndex: -1,
31365
- ref,
31366
- "aria-hidden": isHidden,
31367
- style: _object_spread9({}, isHidden ? {
31368
- // ...controlSize,
31369
- position: "absolute",
31370
- pointerEvents: "none",
31371
- opacity: 0,
31372
- margin: 0
31373
- } : {
31374
- appearance: "auto",
31375
- accentColor
31376
- }, props.style)
31377
- }));
31378
- }, RadioGroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31379
- name: RADIO_GROUP_NAME,
31380
- variants: {
31381
- orientation: {
31382
- horizontal: {
31383
- flexDirection: "row",
31384
- spaceDirection: "horizontal"
31385
- },
31386
- vertical: {
31387
- flexDirection: "column",
31388
- spaceDirection: "vertical"
31915
+ RadioGroupItemImp.displayName = "RadioGroupItem";
31916
+ var RadioIndicator = Indicator.styleable(function(props, forwardedRef) {
31917
+ var forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties5(props, [
31918
+ "forceMount",
31919
+ "disabled"
31920
+ ]), _useRadioGroupItemIndicator = (0, import_radio_headless.useRadioGroupItemIndicator)({
31921
+ radioGroupItemContext: RadioGroupItemContext,
31922
+ disabled
31923
+ }), checked = _useRadioGroupItemIndicator.checked, useIndicatorRest = _object_without_properties5(_useRadioGroupItemIndicator, [
31924
+ "checked"
31925
+ ]);
31926
+ return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Indicator, _object_spread9(_object_spread_props8(_object_spread9({}, useIndicatorRest), {
31927
+ ref: forwardedRef
31928
+ }), indicatorProps)) : null;
31929
+ });
31930
+ RadioIndicator.displayName = "RadioIndicator";
31931
+ var RadioGroup = (0, import_core12.withStaticProperties)(RadioGroupImp, {
31932
+ Item: RadioGroupItemImp,
31933
+ Indicator: RadioIndicator
31934
+ });
31935
+ return RadioGroup.displayName = "RadioGroup", RadioGroup;
31936
+ }
31937
+ }
31938
+ });
31939
+
31940
+ // ../radio-group/dist/cjs/RadioGroupStyledContext.native.js
31941
+ var require_RadioGroupStyledContext_native = __commonJS({
31942
+ "../radio-group/dist/cjs/RadioGroupStyledContext.native.js"(exports2, module2) {
31943
+ "use strict";
31944
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31945
+ for (var name in all)
31946
+ __defProp2(target, name, {
31947
+ get: all[name],
31948
+ enumerable: !0
31949
+ });
31950
+ }, __copyProps2 = function(to, from, except, desc) {
31951
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31952
+ if (from && typeof from == "object" || typeof from == "function")
31953
+ try {
31954
+ for (var _loop = function() {
31955
+ var key = _step.value;
31956
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
31957
+ get: function() {
31958
+ return from[key];
31959
+ },
31960
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
31961
+ });
31962
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
31963
+ _loop();
31964
+ } catch (err) {
31965
+ _didIteratorError = !0, _iteratorError = err;
31966
+ } finally {
31967
+ try {
31968
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
31969
+ } finally {
31970
+ if (_didIteratorError)
31971
+ throw _iteratorError;
31389
31972
  }
31390
31973
  }
31974
+ return to;
31975
+ }, __toCommonJS2 = function(mod) {
31976
+ return __copyProps2(__defProp2({}, "__esModule", {
31977
+ value: !0
31978
+ }), mod);
31979
+ }, RadioGroupStyledContext_exports = {};
31980
+ __export2(RadioGroupStyledContext_exports, {
31981
+ RadioGroupStyledContext: function() {
31982
+ return RadioGroupStyledContext;
31391
31983
  }
31392
- }), RadioGroup = (0, import_helpers.withStaticProperties)(RadioGroupFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31393
- var __scopeRadioGroup = props.__scopeRadioGroup, valueProp = props.value, defaultValue = props.defaultValue, onValueChange = props.onValueChange, _props_disabled = props.disabled, disabled = _props_disabled === void 0 ? !1 : _props_disabled, _props_required = props.required, required = _props_required === void 0 ? !1 : _props_required, name = props.name, orientation = props.orientation, native = props.native, accentColor = props.accentColor, radioGroupProps = _object_without_properties5(props, [
31394
- "__scopeRadioGroup",
31395
- "value",
31396
- "defaultValue",
31397
- "onValueChange",
31398
- "disabled",
31399
- "required",
31400
- "name",
31401
- "orientation",
31402
- "native",
31403
- "accentColor"
31404
- ]), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
31405
- prop: valueProp,
31406
- defaultProp: defaultValue,
31407
- onChange: onValueChange
31408
- }), 2), value = _useControllableState[0], setValue = _useControllableState[1];
31409
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupProvider, {
31410
- scope: __scopeRadioGroup,
31411
- value,
31412
- required,
31413
- onChange: setValue,
31414
- disabled,
31415
- name,
31416
- native,
31417
- accentColor,
31418
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
31419
- __scopeRovingFocusGroup: RADIO_GROUP_NAME,
31420
- orientation,
31421
- loop: !0,
31422
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupFrame, _object_spread9({
31423
- role: "radiogroup",
31424
- "aria-orientation": orientation,
31425
- ref: forwardedRef,
31426
- orientation,
31427
- "data-disabled": disabled ? "" : void 0
31428
- }, radioGroupProps))
31429
- })
31430
- });
31431
- })), {
31432
- Indicator: RadioIndicator,
31433
- Item: RadioGroupItem
31434
31984
  });
31435
- RadioGroup.displayName = RADIO_GROUP_NAME;
31985
+ module2.exports = __toCommonJS2(RadioGroupStyledContext_exports);
31986
+ var import_core12 = require_index_native16(), RadioGroupStyledContext = (0, import_core12.createStyledContext)({
31987
+ size: "$true",
31988
+ scaleIcon: 1
31989
+ });
31436
31990
  }
31437
31991
  });
31438
31992
 
31439
31993
  // ../radio-group/dist/cjs/index.native.js
31440
- var require_index_native61 = __commonJS({
31994
+ var require_index_native62 = __commonJS({
31441
31995
  "../radio-group/dist/cjs/index.native.js"(exports2, module2) {
31442
31996
  "use strict";
31443
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
31997
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
31998
+ for (var name in all)
31999
+ __defProp2(target, name, {
32000
+ get: all[name],
32001
+ enumerable: !0
32002
+ });
32003
+ }, __copyProps2 = function(to, from, except, desc) {
31444
32004
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31445
32005
  if (from && typeof from == "object" || typeof from == "function")
31446
32006
  try {
@@ -31472,8 +32032,21 @@ var require_index_native61 = __commonJS({
31472
32032
  value: !0
31473
32033
  }), mod);
31474
32034
  }, src_exports2 = {};
32035
+ __export2(src_exports2, {
32036
+ RadioGroup: function() {
32037
+ return RadioGroup;
32038
+ }
32039
+ });
31475
32040
  module2.exports = __toCommonJS2(src_exports2);
32041
+ var import_RadioGroup = require_RadioGroup_native(), import_createRadioGroup = require_createRadioGroup_native();
32042
+ __reExport2(src_exports2, require_createRadioGroup_native(), module2.exports);
31476
32043
  __reExport2(src_exports2, require_RadioGroup_native(), module2.exports);
32044
+ __reExport2(src_exports2, require_RadioGroupStyledContext_native(), module2.exports);
32045
+ var RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
32046
+ Frame: import_RadioGroup.RadioGroupFrame,
32047
+ Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
32048
+ Item: import_RadioGroup.RadioGroupItemFrame
32049
+ });
31477
32050
  }
31478
32051
  });
31479
32052
 
@@ -31555,7 +32128,7 @@ var require_Separator_native = __commonJS({
31555
32128
  });
31556
32129
 
31557
32130
  // ../separator/dist/cjs/index.native.js
31558
- var require_index_native62 = __commonJS({
32131
+ var require_index_native63 = __commonJS({
31559
32132
  "../separator/dist/cjs/index.native.js"(exports2, module2) {
31560
32133
  "use strict";
31561
32134
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -31596,7 +32169,7 @@ var require_index_native62 = __commonJS({
31596
32169
  });
31597
32170
 
31598
32171
  // ../use-debounce/dist/cjs/index.native.js
31599
- var require_index_native63 = __commonJS({
32172
+ var require_index_native64 = __commonJS({
31600
32173
  "../use-debounce/dist/cjs/index.native.js"(exports2, module2) {
31601
32174
  "use strict";
31602
32175
  function _type_of(obj) {
@@ -32955,7 +33528,7 @@ var require_Select_native = __commonJS({
32955
33528
  }
32956
33529
  });
32957
33530
  module2.exports = __toCommonJS2(Select_exports);
32958
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native25(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_list_item = require_index_native54(), import_portal2 = require_index_native30(), import_separator = require_index_native62(), import_focusable3 = require_index_native44(), import_sheet = require_index_native34(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_use_debounce = require_index_native63(), import_constants22 = require_constants_native4(), import_context = require_context_native(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native();
33531
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_adapt = require_index_native25(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_list_item = require_index_native54(), import_portal2 = require_index_native30(), import_separator = require_index_native63(), import_focusable3 = require_index_native44(), import_sheet = require_index_native34(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_use_debounce = require_index_native64(), import_constants22 = require_constants_native4(), import_context = require_context_native(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native();
32959
33532
  function _array_like_to_array2(arr, len) {
32960
33533
  (len == null || len > arr.length) && (len = arr.length);
32961
33534
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -33379,7 +33952,7 @@ var require_Select_native = __commonJS({
33379
33952
  });
33380
33953
 
33381
33954
  // ../select/dist/cjs/index.native.js
33382
- var require_index_native64 = __commonJS({
33955
+ var require_index_native65 = __commonJS({
33383
33956
  "../select/dist/cjs/index.native.js"(exports2, module2) {
33384
33957
  "use strict";
33385
33958
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -34585,7 +35158,7 @@ var require_Slider_native = __commonJS({
34585
35158
  });
34586
35159
 
34587
35160
  // ../slider/dist/cjs/index.native.js
34588
- var require_index_native65 = __commonJS({
35161
+ var require_index_native66 = __commonJS({
34589
35162
  "../slider/dist/cjs/index.native.js"(exports2, module2) {
34590
35163
  "use strict";
34591
35164
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -34881,7 +35454,7 @@ var require_useSwitch_native = __commonJS({
34881
35454
  });
34882
35455
 
34883
35456
  // ../switch-headless/dist/cjs/index.native.js
34884
- var require_index_native66 = __commonJS({
35457
+ var require_index_native67 = __commonJS({
34885
35458
  "../switch-headless/dist/cjs/index.native.js"(exports2, module2) {
34886
35459
  "use strict";
34887
35460
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -35156,7 +35729,7 @@ var require_createSwitch_native = __commonJS({
35156
35729
  }
35157
35730
  });
35158
35731
  module2.exports = __toCommonJS2(createSwitch_exports);
35159
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_switch_headless = require_index_native66(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_StyledContext = require_StyledContext_native(), import_Switch = require_Switch_native();
35732
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_switch_headless = require_index_native67(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_StyledContext = require_StyledContext_native(), import_Switch = require_Switch_native();
35160
35733
  function _array_like_to_array2(arr, len) {
35161
35734
  (len == null || len > arr.length) && (len = arr.length);
35162
35735
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -35363,7 +35936,7 @@ var require_createSwitch_native = __commonJS({
35363
35936
  });
35364
35937
 
35365
35938
  // ../switch/dist/cjs/index.native.js
35366
- var require_index_native67 = __commonJS({
35939
+ var require_index_native68 = __commonJS({
35367
35940
  "../switch/dist/cjs/index.native.js"(exports2, module2) {
35368
35941
  "use strict";
35369
35942
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -35486,7 +36059,7 @@ var require_Tabs_native = __commonJS({
35486
36059
  }
35487
36060
  });
35488
36061
  module2.exports = __toCommonJS2(Tabs_exports);
35489
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_get_button_sized2 = require_index_native19(), import_group = require_index_native51(), import_helpers = require_index_native7(), import_roving_focus = require_index_native60(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), React2 = __toESM2(require("react"));
36062
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_get_button_sized2 = require_index_native19(), import_group = require_index_native51(), import_helpers = require_index_native7(), import_roving_focus = require_index_native61(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), React2 = __toESM2(require("react"));
35490
36063
  function _array_like_to_array2(arr, len) {
35491
36064
  (len == null || len > arr.length) && (len = arr.length);
35492
36065
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -35837,7 +36410,7 @@ var require_Tabs_native = __commonJS({
35837
36410
  });
35838
36411
 
35839
36412
  // ../tabs/dist/cjs/index.native.js
35840
- var require_index_native68 = __commonJS({
36413
+ var require_index_native69 = __commonJS({
35841
36414
  "../tabs/dist/cjs/index.native.js"(exports2, module2) {
35842
36415
  "use strict";
35843
36416
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -36324,7 +36897,7 @@ var require_replaceTheme_native = __commonJS({
36324
36897
  });
36325
36898
 
36326
36899
  // ../theme/dist/cjs/index.native.js
36327
- var require_index_native69 = __commonJS({
36900
+ var require_index_native70 = __commonJS({
36328
36901
  "../theme/dist/cjs/index.native.js"(exports2, module2) {
36329
36902
  "use strict";
36330
36903
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -36690,7 +37263,7 @@ var require_ToggleGroup_native = __commonJS({
36690
37263
  }
36691
37264
  });
36692
37265
  module2.exports = __toCommonJS2(ToggleGroup_exports);
36693
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_focusable3 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native18(), import_group = require_index_native51(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_roving_focus = require_index_native60(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), import_react4 = __toESM2(require("react")), import_Toggle = require_Toggle_native();
37266
+ var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_focusable3 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native18(), import_group = require_index_native51(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_roving_focus = require_index_native61(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), import_react4 = __toESM2(require("react")), import_Toggle = require_Toggle_native();
36694
37267
  function _array_like_to_array2(arr, len) {
36695
37268
  (len == null || len > arr.length) && (len = arr.length);
36696
37269
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -37029,7 +37602,7 @@ var require_ToggleGroup_native = __commonJS({
37029
37602
  });
37030
37603
 
37031
37604
  // ../toggle-group/dist/cjs/index.native.js
37032
- var require_index_native70 = __commonJS({
37605
+ var require_index_native71 = __commonJS({
37033
37606
  "../toggle-group/dist/cjs/index.native.js"(exports2, module2) {
37034
37607
  "use strict";
37035
37608
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37182,7 +37755,7 @@ var require_TooltipSimple_native = __commonJS({
37182
37755
  });
37183
37756
 
37184
37757
  // ../tooltip/dist/cjs/index.native.js
37185
- var require_index_native71 = __commonJS({
37758
+ var require_index_native72 = __commonJS({
37186
37759
  "../tooltip/dist/cjs/index.native.js"(exports2, module2) {
37187
37760
  "use strict";
37188
37761
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37224,7 +37797,7 @@ var require_index_native71 = __commonJS({
37224
37797
  });
37225
37798
 
37226
37799
  // ../use-window-dimensions/dist/cjs/index.native.js
37227
- var require_index_native72 = __commonJS({
37800
+ var require_index_native73 = __commonJS({
37228
37801
  "../use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
37229
37802
  "use strict";
37230
37803
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -37383,7 +37956,7 @@ var require_VisuallyHidden_native = __commonJS({
37383
37956
  });
37384
37957
 
37385
37958
  // ../visually-hidden/dist/cjs/index.native.js
37386
- var require_index_native73 = __commonJS({
37959
+ var require_index_native74 = __commonJS({
37387
37960
  "../visually-hidden/dist/cjs/index.native.js"(exports2, module2) {
37388
37961
  "use strict";
37389
37962
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37523,25 +38096,25 @@ __reExport(src_exports, __toESM(require_index_native58()), module.exports);
37523
38096
  __reExport(src_exports, __toESM(require_index_native57()), module.exports);
37524
38097
  __reExport(src_exports, __toESM(require_index_native30()), module.exports);
37525
38098
  __reExport(src_exports, __toESM(require_index_native59()), module.exports);
37526
- __reExport(src_exports, __toESM(require_index_native61()), module.exports);
37527
- __reExport(src_exports, __toESM(require_index_native33()), module.exports);
37528
- __reExport(src_exports, __toESM(require_index_native64()), module.exports);
37529
38099
  __reExport(src_exports, __toESM(require_index_native62()), module.exports);
38100
+ __reExport(src_exports, __toESM(require_index_native33()), module.exports);
38101
+ __reExport(src_exports, __toESM(require_index_native65()), module.exports);
38102
+ __reExport(src_exports, __toESM(require_index_native63()), module.exports);
37530
38103
  __reExport(src_exports, __toESM(require_index_native38()), module.exports);
37531
38104
  __reExport(src_exports, __toESM(require_index_native34()), module.exports);
37532
- __reExport(src_exports, __toESM(require_index_native65()), module.exports);
38105
+ __reExport(src_exports, __toESM(require_index_native66()), module.exports);
37533
38106
  __reExport(src_exports, __toESM(require_index_native20()), module.exports);
37534
- __reExport(src_exports, __toESM(require_index_native67()), module.exports);
37535
38107
  __reExport(src_exports, __toESM(require_index_native68()), module.exports);
37536
- __reExport(src_exports, __toESM(require_index_native22()), module.exports);
37537
38108
  __reExport(src_exports, __toESM(require_index_native69()), module.exports);
38109
+ __reExport(src_exports, __toESM(require_index_native22()), module.exports);
37538
38110
  __reExport(src_exports, __toESM(require_index_native70()), module.exports);
37539
38111
  __reExport(src_exports, __toESM(require_index_native71()), module.exports);
38112
+ __reExport(src_exports, __toESM(require_index_native72()), module.exports);
37540
38113
  __reExport(src_exports, __toESM(require_index_native9()), module.exports);
37541
- __reExport(src_exports, __toESM(require_index_native63()), module.exports);
38114
+ __reExport(src_exports, __toESM(require_index_native64()), module.exports);
37542
38115
  __reExport(src_exports, __toESM(require_index_native()), module.exports);
37543
- __reExport(src_exports, __toESM(require_index_native72()), module.exports);
37544
38116
  __reExport(src_exports, __toESM(require_index_native73()), module.exports);
38117
+ __reExport(src_exports, __toESM(require_index_native74()), module.exports);
37545
38118
 
37546
38119
  // src/createTamagui.ts
37547
38120
  var import_core = __toESM(require_index_native16()), createTamagui = import_core.createTamagui;