tamagui 1.96.0 → 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";
@@ -7992,16 +7995,19 @@ var require_Theme_native = __commonJS({
7992
7995
  });
7993
7996
  } catch {
7994
7997
  }
7995
- 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);
7996
8002
  });
7997
8003
  Theme2.displayName = "Theme";
7998
8004
  Theme2.avoidForwardRef = !0;
7999
8005
  function getThemedChildren(themeState, children, props) {
8000
- 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;
8001
8007
  if (!themeManager)
8002
8008
  throw new Error("\u274C 005");
8003
- var shallow = props.shallow, forceClassName = props.forceClassName, hasEverThemed = (0, import_react4.useRef)(!1), shouldRenderChildrenWithTheme = isNewTheme || props.inverse || hasEverThemed.current || forceClassName || isRoot;
8004
- 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)
8005
8011
  return children;
8006
8012
  var next = children;
8007
8013
  shallow && (next = import_react4.Children.toArray(children).map(function(child) {
@@ -9007,7 +9013,7 @@ var require_createComponent_native = __commonJS({
9007
9013
  if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, _object_spread_props8(_object_spread9({}, componentContext), {
9008
9014
  groups: subGroupContext,
9009
9015
  children: content
9010
- }))), 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) {
9011
9017
  var contextProps = staticConfig.context.props;
9012
9018
  for (var key1 in contextProps)
9013
9019
  if (viewProps.style && key1 in viewProps.style || key1 in viewProps) {
@@ -16752,7 +16758,7 @@ var require_Accordion_native = __commonJS({
16752
16758
  }, contentProps), {
16753
16759
  ref: forwardedRef
16754
16760
  }));
16755
- }), HeightAnimator = import_web.View.styleable(function(props) {
16761
+ }), HeightAnimator = import_web.View.styleable(function(props, ref) {
16756
16762
  var itemContext = useAccordionItemContext(), children = props.children, rest = _object_without_properties5(props, [
16757
16763
  "children"
16758
16764
  ]), _React_useState = _sliced_to_array(React2.useState(0), 2), height = _React_useState[0], setHeight = _React_useState[1];
@@ -16766,6 +16772,7 @@ var require_Accordion_native = __commonJS({
16766
16772
  nativeEvent.layout.height && setHeight(nativeEvent.layout.height);
16767
16773
  });
16768
16774
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, _object_spread_props8(_object_spread9({
16775
+ ref,
16769
16776
  height
16770
16777
  }, rest), {
16771
16778
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, {
@@ -19375,7 +19382,7 @@ var require_SheetImplementationCustom_native = __commonJS({
19375
19382
  var startY = at.current, release = function(param) {
19376
19383
  var vy = param.vy, dragAt = param.dragAt;
19377
19384
  isExternalDrag = !1, previouslyScrolling = !1, setPanning(!1);
19378
- 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++) {
19379
19386
  var position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
19380
19387
  curDist < dist && (dist = curDist, closestPoint = i);
19381
19388
  }
@@ -20118,6 +20125,7 @@ var require_createSheet_native = __commonJS({
20118
20125
  !disableHideBottomOverflow && // @ts-ignore
20119
20126
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, _object_spread_props8(_object_spread9({}, props), {
20120
20127
  componentName: "SheetCover",
20128
+ // biome-ignore lint/correctness/noChildrenProp: <explanation>
20121
20129
  children: null,
20122
20130
  position: "absolute",
20123
20131
  bottom: "-100%",
@@ -26988,7 +26996,7 @@ var require_ListItem_native = __commonJS({
26988
26996
  }
26989
26997
  });
26990
26998
  module2.exports = __toCommonJS2(ListItem_exports);
26991
- 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();
26992
27000
  function _array_like_to_array2(arr, len) {
26993
27001
  (len == null || len > arr.length) && (len = arr.length);
26994
27002
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -29736,10 +29744,10 @@ var require_Popper_native = __commonJS({
29736
29744
  }, [
29737
29745
  isMounted
29738
29746
  ]);
29739
- var show = !0, setShow = void 0;
29747
+ var show = !0;
29740
29748
  if (import_constants4.isAndroid) {
29741
- var ref;
29742
- 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() {
29743
29751
  finalHasFloatingValue && setShow(!0);
29744
29752
  }, [
29745
29753
  finalHasFloatingValue,
@@ -30864,9 +30872,159 @@ var require_index_native59 = __commonJS({
30864
30872
  }
30865
30873
  });
30866
30874
 
30867
- // ../roving-focus/dist/cjs/RovingFocusGroup.native.js
30868
- var require_RovingFocusGroup_native = __commonJS({
30869
- "../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) {
30878
+ "use strict";
30879
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
30880
+ for (var name in all)
30881
+ __defProp2(target, name, {
30882
+ get: all[name],
30883
+ enumerable: !0
30884
+ });
30885
+ }, __copyProps2 = function(to, from, except, desc) {
30886
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
30887
+ if (from && typeof from == "object" || typeof from == "function")
30888
+ try {
30889
+ for (var _loop = function() {
30890
+ var key = _step.value;
30891
+ !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
30892
+ get: function() {
30893
+ return from[key];
30894
+ },
30895
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
30896
+ });
30897
+ }, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
30898
+ _loop();
30899
+ } catch (err) {
30900
+ _didIteratorError = !0, _iteratorError = err;
30901
+ } finally {
30902
+ try {
30903
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
30904
+ } finally {
30905
+ if (_didIteratorError)
30906
+ throw _iteratorError;
30907
+ }
30908
+ }
30909
+ return to;
30910
+ }, __toCommonJS2 = function(mod) {
30911
+ return __copyProps2(__defProp2({}, "__esModule", {
30912
+ value: !0
30913
+ }), mod);
30914
+ }, RadioGroup_exports = {};
30915
+ __export2(RadioGroup_exports, {
30916
+ RadioGroupFrame: function() {
30917
+ return RadioGroupFrame;
30918
+ },
30919
+ RadioGroupIndicatorFrame: function() {
30920
+ return RadioGroupIndicatorFrame;
30921
+ },
30922
+ RadioGroupItemFrame: function() {
30923
+ return RadioGroupItemFrame;
30924
+ }
30925
+ });
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"
30990
+ }
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"
31006
+ }
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
+ }
31020
+ }
31021
+ });
31022
+ }
31023
+ });
31024
+
31025
+ // ../radio-headless/dist/cjs/BubbleInput.native.js
31026
+ var require_BubbleInput_native2 = __commonJS({
31027
+ "../radio-headless/dist/cjs/BubbleInput.native.js"(exports2, module2) {
30870
31028
  "use strict";
30871
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) {
30872
31030
  for (var name in all)
@@ -30915,17 +31073,14 @@ var require_RovingFocusGroup_native = __commonJS({
30915
31073
  return __copyProps2(__defProp2({}, "__esModule", {
30916
31074
  value: !0
30917
31075
  }), mod);
30918
- }, RovingFocusGroup_native_exports = {};
30919
- __export2(RovingFocusGroup_native_exports, {
30920
- RovingFocusGroup: function() {
30921
- return RovingFocusGroup;
30922
- },
30923
- createRovingFocusGroupScope: function() {
30924
- return createRovingFocusGroupScope;
31076
+ }, BubbleInput_exports = {};
31077
+ __export2(BubbleInput_exports, {
31078
+ BubbleInput: function() {
31079
+ return BubbleInput;
30925
31080
  }
30926
31081
  });
30927
- module2.exports = __toCommonJS2(RovingFocusGroup_native_exports);
30928
- var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react"));
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();
30929
31084
  function _define_property9(obj, key, value) {
30930
31085
  return key in obj ? Object.defineProperty(obj, key, {
30931
31086
  value,
@@ -30979,39 +31134,59 @@ var require_RovingFocusGroup_native = __commonJS({
30979
31134
  key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
30980
31135
  return target;
30981
31136
  }
30982
- var ITEM_NAME = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
30983
- var children = _param.children, props = _object_without_properties5(_param, [
30984
- "children"
30985
- ]);
30986
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
30987
- children
30988
- }));
30989
- });
30990
- RovingFocusGroupItem.displayName = ITEM_NAME;
30991
- var GROUP_NAME = "RovingFocusGroup", RovingFocusGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
30992
- var children = _param.children, props = _object_without_properties5(_param, [
30993
- "children"
30994
- ]);
30995
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
30996
- children
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)
30997
31174
  }));
30998
- }), {
30999
- Item: RovingFocusGroupItem
31000
- });
31001
- RovingFocusGroup.displayName = GROUP_NAME;
31002
- var createRovingFocusGroupScope = function() {
31003
- return function() {
31004
- return {};
31005
- };
31006
31175
  };
31007
31176
  }
31008
31177
  });
31009
31178
 
31010
- // ../roving-focus/dist/cjs/index.native.js
31011
- var require_index_native60 = __commonJS({
31012
- "../roving-focus/dist/cjs/index.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) {
31013
31182
  "use strict";
31014
- var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
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) {
31015
31190
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31016
31191
  if (from && typeof from == "object" || typeof from == "function")
31017
31192
  try {
@@ -31036,27 +31211,32 @@ var require_index_native60 = __commonJS({
31036
31211
  }
31037
31212
  }
31038
31213
  return to;
31039
- }, __reExport2 = function(target, mod, secondTarget) {
31040
- return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
31041
31214
  }, __toCommonJS2 = function(mod) {
31042
31215
  return __copyProps2(__defProp2({}, "__esModule", {
31043
31216
  value: !0
31044
31217
  }), mod);
31045
- }, src_exports2 = {};
31046
- module2.exports = __toCommonJS2(src_exports2);
31047
- __reExport2(src_exports2, require_RovingFocusGroup_native(), module2.exports);
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
+ }
31048
31228
  }
31049
31229
  });
31050
31230
 
31051
- // ../radio-group/dist/cjs/RadioGroup.native.js
31052
- var require_RadioGroup_native = __commonJS({
31053
- "../radio-group/dist/cjs/RadioGroup.native.js"(exports2, module2) {
31231
+ // ../radio-headless/dist/cjs/useRadioGroup.native.js
31232
+ var require_useRadioGroup_native = __commonJS({
31233
+ "../radio-headless/dist/cjs/useRadioGroup.native.js"(exports2, module2) {
31054
31234
  "use strict";
31055
31235
  function _type_of(obj) {
31056
31236
  "@swc/helpers - typeof";
31057
31237
  return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
31058
31238
  }
31059
- 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) {
31060
31240
  for (var name in all)
31061
31241
  __defProp2(target, name, {
31062
31242
  get: all[name],
@@ -31087,33 +31267,24 @@ var require_RadioGroup_native = __commonJS({
31087
31267
  }
31088
31268
  }
31089
31269
  return to;
31090
- }, __toESM2 = function(mod, isNodeMode, target) {
31091
- return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
31092
- // If the importer is in node compatibility mode or this is not an ESM
31093
- // file that has been converted to a CommonJS file using a Babel-
31094
- // compatible transform (i.e. "__esModule" has not been set), then set
31095
- // "default" to the CommonJS "module.exports" for node compatibility.
31096
- isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
31097
- value: mod,
31098
- enumerable: !0
31099
- }) : target,
31100
- mod
31101
- );
31102
31270
  }, __toCommonJS2 = function(mod) {
31103
31271
  return __copyProps2(__defProp2({}, "__esModule", {
31104
31272
  value: !0
31105
31273
  }), mod);
31106
- }, RadioGroup_exports = {};
31107
- __export2(RadioGroup_exports, {
31108
- RadioGroup: function() {
31109
- return RadioGroup;
31274
+ }, useRadioGroup_exports = {};
31275
+ __export2(useRadioGroup_exports, {
31276
+ useRadioGroup: function() {
31277
+ return useRadioGroup;
31110
31278
  },
31111
- createRadioGroupScope: function() {
31112
- return createRadioGroupScope;
31279
+ useRadioGroupItem: function() {
31280
+ return useRadioGroupItem;
31281
+ },
31282
+ useRadioGroupItemIndicator: function() {
31283
+ return useRadioGroupItemIndicator;
31113
31284
  }
31114
31285
  });
31115
- module2.exports = __toCommonJS2(RadioGroup_exports);
31116
- 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();
31117
31288
  function _array_like_to_array2(arr, len) {
31118
31289
  (len == null || len > arr.length) && (len = arr.length);
31119
31290
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -31214,117 +31385,43 @@ var require_RadioGroup_native = __commonJS({
31214
31385
  return _array_like_to_array2(o, minLen);
31215
31386
  }
31216
31387
  }
31217
- var RADIO_GROUP_NAME = "RadioGroup", ARROW_KEYS = [
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 = [
31218
31416
  "ArrowUp",
31219
31417
  "ArrowDown",
31220
31418
  "ArrowLeft",
31221
31419
  "ArrowRight"
31222
- ], _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) {
31223
- return checked ? "checked" : "unchecked";
31224
- }, RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31225
- name: RADIO_GROUP_INDICATOR_NAME,
31226
- variants: {
31227
- unstyled: {
31228
- false: {
31229
- width: "33%",
31230
- height: "33%",
31231
- borderRadius: 1e3,
31232
- backgroundColor: "$color",
31233
- pressTheme: !0
31234
- }
31235
- }
31236
- },
31237
- defaultVariants: {
31238
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
31239
- }
31240
- }), RadioIndicator = RadioIndicatorFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31241
- var __scopeRadioGroupItem = props.__scopeRadioGroupItem, forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties5(props, [
31242
- "__scopeRadioGroupItem",
31243
- "forceMount",
31244
- "disabled"
31245
- ]), checked = useRadioGroupItemContext(RADIO_GROUP_INDICATOR_NAME, __scopeRadioGroupItem).checked;
31246
- return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioIndicatorFrame, _object_spread_props8(_object_spread9({
31247
- "data-state": getState(checked),
31248
- "data-disabled": disabled ? "" : void 0
31249
- }, indicatorProps), {
31250
- ref: forwardedRef
31251
- })) : null;
31252
- }));
31253
- RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
31254
- 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, {
31255
- name: RADIO_GROUP_ITEM_NAME,
31256
- tag: "button",
31257
- variants: {
31258
- unstyled: {
31259
- false: {
31260
- size: "$true",
31261
- borderRadius: 1e3,
31262
- backgroundColor: "$background",
31263
- alignItems: "center",
31264
- justifyContent: "center",
31265
- borderWidth: 1,
31266
- borderColor: "$borderColor",
31267
- padding: 0,
31268
- hoverStyle: {
31269
- borderColor: "$borderColorHover",
31270
- backgroundColor: "$backgroundHover"
31271
- },
31272
- focusStyle: {
31273
- borderColor: "$borderColorHover",
31274
- backgroundColor: "$backgroundHover"
31275
- },
31276
- focusVisibleStyle: {
31277
- outlineStyle: "solid",
31278
- outlineWidth: 2,
31279
- outlineColor: "$outlineColor"
31280
- },
31281
- pressStyle: {
31282
- borderColor: "$borderColorFocus",
31283
- backgroundColor: "$backgroundFocus"
31284
- }
31285
- }
31286
- },
31287
- disabled: {
31288
- true: {
31289
- pointerEvents: "none",
31290
- userSelect: "none",
31291
- cursor: "not-allowed",
31292
- hoverStyle: {
31293
- borderColor: "$borderColor",
31294
- backgroundColor: "$background"
31295
- },
31296
- pressStyle: {
31297
- borderColor: "$borderColor",
31298
- backgroundColor: "$backgroundColor"
31299
- },
31300
- focusVisibleStyle: {
31301
- outlineWidth: 0
31302
- }
31303
- }
31304
- },
31305
- size: {
31306
- "...size": function(value, param) {
31307
- 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));
31308
- return {
31309
- width: size3,
31310
- height: size3
31311
- };
31312
- }
31313
- }
31314
- },
31315
- defaultVariants: {
31316
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
31317
- }
31318
- }), RadioGroupItem = RadioGroupItemFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31319
- var __scopeRadioGroup = props.__scopeRadioGroup, value = props.value, ariaLabelledby = props.labelledBy, itemDisabled = props.disabled, itemProps = _object_without_properties5(props, [
31320
- "__scopeRadioGroup",
31321
- "value",
31322
- "labelledBy",
31323
- "disabled"
31324
- ]), _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) {
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) {
31325
31422
  return setButton(node);
31326
- }, 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;
31327
- React2.useEffect(function() {
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() {
31328
31425
  if (import_constants4.isWeb) {
31329
31426
  var handleKeyDown = function(event) {
31330
31427
  ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
@@ -31335,9 +31432,9 @@ var require_RadioGroup_native = __commonJS({
31335
31432
  document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
31336
31433
  };
31337
31434
  }
31338
- }, []), React2.useEffect(function() {
31339
- if (props.id && !disabled)
31340
- return (0, import_focusable3.registerFocusable)(props.id, {
31435
+ }, []), (0, import_react4.useEffect)(function() {
31436
+ if (id && !disabled)
31437
+ return (0, import_focusable3.registerFocusable)(id, {
31341
31438
  focusAndSelect: function() {
31342
31439
  onChange == null || onChange(value);
31343
31440
  },
@@ -31345,182 +31442,565 @@ var require_RadioGroup_native = __commonJS({
31345
31442
  }
31346
31443
  });
31347
31444
  }, [
31348
- props.id,
31445
+ id,
31349
31446
  value,
31350
31447
  disabled
31351
31448
  ]);
31352
31449
  var isDisabled = disabled || itemDisabled;
31353
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemProvider, {
31450
+ return {
31451
+ providerValue: {
31452
+ checked
31453
+ },
31354
31454
  checked,
31355
- scope: __scopeRadioGroup,
31356
- children: import_constants4.isWeb && native ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BubbleInput, {
31455
+ isFormControl,
31456
+ bubbleInput: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_BubbleInput.BubbleInput, _object_spread9({
31457
+ isHidden: !native,
31357
31458
  control: button,
31358
31459
  bubbles: !hasConsumerStoppedPropagationRef.current,
31359
31460
  name,
31360
31461
  value,
31361
31462
  checked,
31362
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,
31363
31477
  disabled: isDisabled,
31364
- id: props.id,
31365
- accentColor
31366
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
31367
- children: [
31368
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, {
31369
- __scopeRovingFocusGroup: RADIO_GROUP_NAME,
31370
- asChild: "except-style",
31371
- focusable: !isDisabled,
31372
- active: checked,
31373
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemFrame, _object_spread9(_object_spread_props8(_object_spread9(
31374
- {
31375
- // theme={checked ? 'active' : undefined}
31376
- "data-state": getState(checked),
31377
- "data-disabled": isDisabled ? "" : void 0,
31378
- role: "radio",
31379
- "aria-labelledby": labelledBy,
31380
- "aria-checked": checked,
31381
- "aria-required": required,
31382
- disabled: isDisabled,
31383
- ref: composedRefs
31384
- },
31385
- import_constants4.isWeb && {
31386
- type: "button",
31387
- value
31388
- },
31389
- // allow them to override all but the handlers that already compose:
31390
- itemProps
31391
- ), {
31392
- onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function(event) {
31393
- checked || onChange == null || onChange(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
31394
- })
31395
- }), import_constants4.isWeb && {
31396
- onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {
31397
- event.key === "Enter" && event.preventDefault();
31398
- }),
31399
- onFocus: (0, import_helpers.composeEventHandlers)(itemProps.onFocus, function() {
31400
- if (isArrowKeyPressedRef.current) {
31401
- var _ref_current;
31402
- (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.click();
31403
- }
31404
- })
31405
- }))
31406
- }),
31407
- isFormControl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BubbleInput, {
31408
- isHidden: !0,
31409
- control: button,
31410
- bubbles: !hasConsumerStoppedPropagationRef.current,
31411
- name,
31412
- value,
31413
- checked,
31414
- required,
31415
- disabled: isDisabled
31416
- })
31417
- ]
31418
- })
31419
- });
31420
- })), BubbleInput = function(props) {
31421
- 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, [
31422
- "checked",
31423
- "bubbles",
31424
- "control",
31425
- "isHidden",
31426
- "accentColor"
31427
- ]), ref = React2.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
31428
- return React2.useEffect(function() {
31429
- var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
31430
- if (prevChecked !== checked && setChecked) {
31431
- var event = new Event("click", {
31432
- bubbles
31433
- });
31434
- setChecked.call(input, checked), input.dispatchEvent(event);
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
31435
31502
  }
31436
- }, [
31437
- prevChecked,
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({
31438
31511
  checked,
31439
- bubbles
31440
- ]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", _object_spread_props8(_object_spread9({
31441
- type: "radio",
31442
- defaultChecked: checked
31443
- }, inputProps), {
31444
- tabIndex: -1,
31445
- ref,
31446
- "aria-hidden": isHidden,
31447
- style: _object_spread9({}, isHidden ? {
31448
- // ...controlSize,
31449
- position: "absolute",
31450
- pointerEvents: "none",
31451
- opacity: 0,
31452
- margin: 0
31453
- } : {
31454
- appearance: "auto",
31455
- accentColor
31456
- }, props.style)
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
31457
31682
  }));
31458
- }, RadioGroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
31459
- name: RADIO_GROUP_NAME,
31460
- variants: {
31461
- orientation: {
31462
- horizontal: {
31463
- flexDirection: "row",
31464
- spaceDirection: "horizontal"
31465
- },
31466
- vertical: {
31467
- flexDirection: "column",
31468
- spaceDirection: "vertical"
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;
31469
31730
  }
31470
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;
31471
31788
  }
31472
- }), RadioGroup = (0, import_helpers.withStaticProperties)(RadioGroupFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
31473
- 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, [
31474
- "__scopeRadioGroup",
31475
- "value",
31476
- "defaultValue",
31477
- "onValueChange",
31478
- "disabled",
31479
- "required",
31480
- "name",
31481
- "orientation",
31482
- "native",
31483
- "accentColor"
31484
- ]), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
31485
- prop: valueProp,
31486
- defaultProp: defaultValue,
31487
- onChange: onValueChange
31488
- }), 2), value = _useControllableState[0], setValue = _useControllableState[1];
31489
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupProvider, {
31490
- scope: __scopeRadioGroup,
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, {
31491
31794
  value,
31492
- required,
31493
- onChange: setValue,
31494
- disabled,
31495
- name,
31496
- native,
31497
- accentColor,
31498
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, {
31499
- __scopeRovingFocusGroup: RADIO_GROUP_NAME,
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)({
31500
31866
  orientation,
31501
- loop: !0,
31502
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupFrame, _object_spread9({
31503
- role: "radiogroup",
31504
- "aria-orientation": orientation,
31505
- ref: forwardedRef,
31506
- orientation,
31507
- "data-disabled": disabled ? "" : void 0
31508
- }, radioGroupProps))
31509
- })
31867
+ name,
31868
+ defaultValue,
31869
+ value,
31870
+ onValueChange,
31871
+ required,
31872
+ disabled,
31873
+ native,
31874
+ accentColor
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
+ });
31510
31914
  });
31511
- })), {
31512
- Indicator: RadioIndicator,
31513
- Item: RadioGroupItem
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;
31972
+ }
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;
31983
+ }
31984
+ });
31985
+ module2.exports = __toCommonJS2(RadioGroupStyledContext_exports);
31986
+ var import_core12 = require_index_native16(), RadioGroupStyledContext = (0, import_core12.createStyledContext)({
31987
+ size: "$true",
31988
+ scaleIcon: 1
31514
31989
  });
31515
- RadioGroup.displayName = RADIO_GROUP_NAME;
31516
31990
  }
31517
31991
  });
31518
31992
 
31519
31993
  // ../radio-group/dist/cjs/index.native.js
31520
- var require_index_native61 = __commonJS({
31994
+ var require_index_native62 = __commonJS({
31521
31995
  "../radio-group/dist/cjs/index.native.js"(exports2, module2) {
31522
31996
  "use strict";
31523
- 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) {
31524
32004
  var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
31525
32005
  if (from && typeof from == "object" || typeof from == "function")
31526
32006
  try {
@@ -31552,8 +32032,21 @@ var require_index_native61 = __commonJS({
31552
32032
  value: !0
31553
32033
  }), mod);
31554
32034
  }, src_exports2 = {};
32035
+ __export2(src_exports2, {
32036
+ RadioGroup: function() {
32037
+ return RadioGroup;
32038
+ }
32039
+ });
31555
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);
31556
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
+ });
31557
32050
  }
31558
32051
  });
31559
32052
 
@@ -31635,7 +32128,7 @@ var require_Separator_native = __commonJS({
31635
32128
  });
31636
32129
 
31637
32130
  // ../separator/dist/cjs/index.native.js
31638
- var require_index_native62 = __commonJS({
32131
+ var require_index_native63 = __commonJS({
31639
32132
  "../separator/dist/cjs/index.native.js"(exports2, module2) {
31640
32133
  "use strict";
31641
32134
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -31676,7 +32169,7 @@ var require_index_native62 = __commonJS({
31676
32169
  });
31677
32170
 
31678
32171
  // ../use-debounce/dist/cjs/index.native.js
31679
- var require_index_native63 = __commonJS({
32172
+ var require_index_native64 = __commonJS({
31680
32173
  "../use-debounce/dist/cjs/index.native.js"(exports2, module2) {
31681
32174
  "use strict";
31682
32175
  function _type_of(obj) {
@@ -33035,7 +33528,7 @@ var require_Select_native = __commonJS({
33035
33528
  }
33036
33529
  });
33037
33530
  module2.exports = __toCommonJS2(Select_exports);
33038
- 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();
33039
33532
  function _array_like_to_array2(arr, len) {
33040
33533
  (len == null || len > arr.length) && (len = arr.length);
33041
33534
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -33459,7 +33952,7 @@ var require_Select_native = __commonJS({
33459
33952
  });
33460
33953
 
33461
33954
  // ../select/dist/cjs/index.native.js
33462
- var require_index_native64 = __commonJS({
33955
+ var require_index_native65 = __commonJS({
33463
33956
  "../select/dist/cjs/index.native.js"(exports2, module2) {
33464
33957
  "use strict";
33465
33958
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -34665,7 +35158,7 @@ var require_Slider_native = __commonJS({
34665
35158
  });
34666
35159
 
34667
35160
  // ../slider/dist/cjs/index.native.js
34668
- var require_index_native65 = __commonJS({
35161
+ var require_index_native66 = __commonJS({
34669
35162
  "../slider/dist/cjs/index.native.js"(exports2, module2) {
34670
35163
  "use strict";
34671
35164
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -34961,7 +35454,7 @@ var require_useSwitch_native = __commonJS({
34961
35454
  });
34962
35455
 
34963
35456
  // ../switch-headless/dist/cjs/index.native.js
34964
- var require_index_native66 = __commonJS({
35457
+ var require_index_native67 = __commonJS({
34965
35458
  "../switch-headless/dist/cjs/index.native.js"(exports2, module2) {
34966
35459
  "use strict";
34967
35460
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -35236,7 +35729,7 @@ var require_createSwitch_native = __commonJS({
35236
35729
  }
35237
35730
  });
35238
35731
  module2.exports = __toCommonJS2(createSwitch_exports);
35239
- 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();
35240
35733
  function _array_like_to_array2(arr, len) {
35241
35734
  (len == null || len > arr.length) && (len = arr.length);
35242
35735
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -35443,7 +35936,7 @@ var require_createSwitch_native = __commonJS({
35443
35936
  });
35444
35937
 
35445
35938
  // ../switch/dist/cjs/index.native.js
35446
- var require_index_native67 = __commonJS({
35939
+ var require_index_native68 = __commonJS({
35447
35940
  "../switch/dist/cjs/index.native.js"(exports2, module2) {
35448
35941
  "use strict";
35449
35942
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -35566,7 +36059,7 @@ var require_Tabs_native = __commonJS({
35566
36059
  }
35567
36060
  });
35568
36061
  module2.exports = __toCommonJS2(Tabs_exports);
35569
- 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"));
35570
36063
  function _array_like_to_array2(arr, len) {
35571
36064
  (len == null || len > arr.length) && (len = arr.length);
35572
36065
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -35917,7 +36410,7 @@ var require_Tabs_native = __commonJS({
35917
36410
  });
35918
36411
 
35919
36412
  // ../tabs/dist/cjs/index.native.js
35920
- var require_index_native68 = __commonJS({
36413
+ var require_index_native69 = __commonJS({
35921
36414
  "../tabs/dist/cjs/index.native.js"(exports2, module2) {
35922
36415
  "use strict";
35923
36416
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -36404,7 +36897,7 @@ var require_replaceTheme_native = __commonJS({
36404
36897
  });
36405
36898
 
36406
36899
  // ../theme/dist/cjs/index.native.js
36407
- var require_index_native69 = __commonJS({
36900
+ var require_index_native70 = __commonJS({
36408
36901
  "../theme/dist/cjs/index.native.js"(exports2, module2) {
36409
36902
  "use strict";
36410
36903
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -36770,7 +37263,7 @@ var require_ToggleGroup_native = __commonJS({
36770
37263
  }
36771
37264
  });
36772
37265
  module2.exports = __toCommonJS2(ToggleGroup_exports);
36773
- 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();
36774
37267
  function _array_like_to_array2(arr, len) {
36775
37268
  (len == null || len > arr.length) && (len = arr.length);
36776
37269
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -37109,7 +37602,7 @@ var require_ToggleGroup_native = __commonJS({
37109
37602
  });
37110
37603
 
37111
37604
  // ../toggle-group/dist/cjs/index.native.js
37112
- var require_index_native70 = __commonJS({
37605
+ var require_index_native71 = __commonJS({
37113
37606
  "../toggle-group/dist/cjs/index.native.js"(exports2, module2) {
37114
37607
  "use strict";
37115
37608
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37262,7 +37755,7 @@ var require_TooltipSimple_native = __commonJS({
37262
37755
  });
37263
37756
 
37264
37757
  // ../tooltip/dist/cjs/index.native.js
37265
- var require_index_native71 = __commonJS({
37758
+ var require_index_native72 = __commonJS({
37266
37759
  "../tooltip/dist/cjs/index.native.js"(exports2, module2) {
37267
37760
  "use strict";
37268
37761
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37304,7 +37797,7 @@ var require_index_native71 = __commonJS({
37304
37797
  });
37305
37798
 
37306
37799
  // ../use-window-dimensions/dist/cjs/index.native.js
37307
- var require_index_native72 = __commonJS({
37800
+ var require_index_native73 = __commonJS({
37308
37801
  "../use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
37309
37802
  "use strict";
37310
37803
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
@@ -37463,7 +37956,7 @@ var require_VisuallyHidden_native = __commonJS({
37463
37956
  });
37464
37957
 
37465
37958
  // ../visually-hidden/dist/cjs/index.native.js
37466
- var require_index_native73 = __commonJS({
37959
+ var require_index_native74 = __commonJS({
37467
37960
  "../visually-hidden/dist/cjs/index.native.js"(exports2, module2) {
37468
37961
  "use strict";
37469
37962
  var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
@@ -37603,25 +38096,25 @@ __reExport(src_exports, __toESM(require_index_native58()), module.exports);
37603
38096
  __reExport(src_exports, __toESM(require_index_native57()), module.exports);
37604
38097
  __reExport(src_exports, __toESM(require_index_native30()), module.exports);
37605
38098
  __reExport(src_exports, __toESM(require_index_native59()), module.exports);
37606
- __reExport(src_exports, __toESM(require_index_native61()), module.exports);
37607
- __reExport(src_exports, __toESM(require_index_native33()), module.exports);
37608
- __reExport(src_exports, __toESM(require_index_native64()), module.exports);
37609
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);
37610
38103
  __reExport(src_exports, __toESM(require_index_native38()), module.exports);
37611
38104
  __reExport(src_exports, __toESM(require_index_native34()), module.exports);
37612
- __reExport(src_exports, __toESM(require_index_native65()), module.exports);
38105
+ __reExport(src_exports, __toESM(require_index_native66()), module.exports);
37613
38106
  __reExport(src_exports, __toESM(require_index_native20()), module.exports);
37614
- __reExport(src_exports, __toESM(require_index_native67()), module.exports);
37615
38107
  __reExport(src_exports, __toESM(require_index_native68()), module.exports);
37616
- __reExport(src_exports, __toESM(require_index_native22()), module.exports);
37617
38108
  __reExport(src_exports, __toESM(require_index_native69()), module.exports);
38109
+ __reExport(src_exports, __toESM(require_index_native22()), module.exports);
37618
38110
  __reExport(src_exports, __toESM(require_index_native70()), module.exports);
37619
38111
  __reExport(src_exports, __toESM(require_index_native71()), module.exports);
38112
+ __reExport(src_exports, __toESM(require_index_native72()), module.exports);
37620
38113
  __reExport(src_exports, __toESM(require_index_native9()), module.exports);
37621
- __reExport(src_exports, __toESM(require_index_native63()), module.exports);
38114
+ __reExport(src_exports, __toESM(require_index_native64()), module.exports);
37622
38115
  __reExport(src_exports, __toESM(require_index_native()), module.exports);
37623
- __reExport(src_exports, __toESM(require_index_native72()), module.exports);
37624
38116
  __reExport(src_exports, __toESM(require_index_native73()), module.exports);
38117
+ __reExport(src_exports, __toESM(require_index_native74()), module.exports);
37625
38118
 
37626
38119
  // src/createTamagui.ts
37627
38120
  var import_core = __toESM(require_index_native16()), createTamagui = import_core.createTamagui;