tamagui 1.96.0 → 1.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +858 -364
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +856 -363
- package/dist/test.native.js.map +3 -3
- package/package.json +54 -54
- package/src/views/Input.tsx +1 -1
- package/src/views/Text.tsx +1 -1
- package/src/views/TextArea.tsx +1 -1
- package/types/views/Input.d.ts +1 -0
- package/types/views/Input.d.ts.map +1 -1
package/dist/native.js
CHANGED
|
@@ -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 :
|
|
684
|
-
|
|
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";
|
|
@@ -8491,20 +8494,24 @@ var require_Theme_native = __commonJS({
|
|
|
8491
8494
|
});
|
|
8492
8495
|
} catch {
|
|
8493
8496
|
}
|
|
8494
|
-
|
|
8497
|
+
process.env.NODE_ENV === "development" && props.debug === "visualize" && (finalChildren = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
8495
8498
|
themeState,
|
|
8496
8499
|
themeProps: props,
|
|
8497
8500
|
children: finalChildren
|
|
8498
|
-
}))
|
|
8501
|
+
}));
|
|
8502
|
+
var stateRef = (0, import_react4.useRef)({
|
|
8503
|
+
hasEverThemed: !1
|
|
8504
|
+
});
|
|
8505
|
+
return getThemedChildren(themeState, finalChildren, props, isRoot, stateRef);
|
|
8499
8506
|
});
|
|
8500
8507
|
Theme2.displayName = "Theme";
|
|
8501
8508
|
Theme2.avoidForwardRef = !0;
|
|
8502
8509
|
function getThemedChildren(themeState, children, props) {
|
|
8503
|
-
var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, themeManager = themeState.themeManager, isNewTheme = themeState.isNewTheme;
|
|
8510
|
+
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;
|
|
8504
8511
|
if (!themeManager)
|
|
8505
8512
|
throw new Error(process.env.NODE_ENV === "development" ? "\u274C No theme found, either incorrect name, potential duplicate tamagui deps, or TamaguiProvider not providing themes." : "\u274C 005");
|
|
8506
|
-
var shallow = props.shallow, forceClassName = props.forceClassName,
|
|
8507
|
-
if (shouldRenderChildrenWithTheme && (
|
|
8513
|
+
var shallow = props.shallow, forceClassName = props.forceClassName, shouldRenderChildrenWithTheme = isNewTheme || "inverse" in props || "theme" in props || stateRef.current.hasEverThemed || forceClassName || isRoot;
|
|
8514
|
+
if (shouldRenderChildrenWithTheme && (stateRef.current.hasEverThemed = !0), !shouldRenderChildrenWithTheme)
|
|
8508
8515
|
return children;
|
|
8509
8516
|
var next = children;
|
|
8510
8517
|
shallow && (next = import_react4.Children.toArray(children).map(function(child) {
|
|
@@ -9787,7 +9794,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9787
9794
|
if (groupName && subGroupContext && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, _object_spread_props8(_object_spread9({}, componentContext), {
|
|
9788
9795
|
groups: subGroupContext,
|
|
9789
9796
|
children: content
|
|
9790
|
-
}))), process.env.NODE_ENV === "development" && time && time(_templateObject19()), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1), process.env.NODE_ENV === "development" && time && time(_templateObject20()), process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
9797
|
+
}))), process.env.NODE_ENV === "development" && time && time(_templateObject19()), content = disableTheme ? content : (0, import_Theme.getThemedChildren)(themeState, content, themeStateProps, !1, stateRef), process.env.NODE_ENV === "development" && time && time(_templateObject20()), process.env.NODE_ENV === "development" && props.debug === "visualize" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ThemeDebug.ThemeDebug, {
|
|
9791
9798
|
themeState,
|
|
9792
9799
|
themeProps: props,
|
|
9793
9800
|
children: content
|
|
@@ -17615,7 +17622,7 @@ var require_Accordion_native = __commonJS({
|
|
|
17615
17622
|
}, contentProps), {
|
|
17616
17623
|
ref: forwardedRef
|
|
17617
17624
|
}));
|
|
17618
|
-
}), HeightAnimator = import_web.View.styleable(function(props) {
|
|
17625
|
+
}), HeightAnimator = import_web.View.styleable(function(props, ref) {
|
|
17619
17626
|
var itemContext = useAccordionItemContext(), children = props.children, rest = _object_without_properties5(props, [
|
|
17620
17627
|
"children"
|
|
17621
17628
|
]), _React_useState = _sliced_to_array(React2.useState(0), 2), height = _React_useState[0], setHeight = _React_useState[1];
|
|
@@ -17629,6 +17636,7 @@ var require_Accordion_native = __commonJS({
|
|
|
17629
17636
|
nativeEvent.layout.height && setHeight(nativeEvent.layout.height);
|
|
17630
17637
|
});
|
|
17631
17638
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, _object_spread_props8(_object_spread9({
|
|
17639
|
+
ref,
|
|
17632
17640
|
height
|
|
17633
17641
|
}, rest), {
|
|
17634
17642
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.View, {
|
|
@@ -20253,7 +20261,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
20253
20261
|
var startY = at.current, release = function(param) {
|
|
20254
20262
|
var vy = param.vy, dragAt = param.dragAt;
|
|
20255
20263
|
isExternalDrag = !1, previouslyScrolling = !1, setPanning(!1);
|
|
20256
|
-
for (var at2 = dragAt + startY, end = at2 + frameSize * vy * 0.2, closestPoint = 0, dist =
|
|
20264
|
+
for (var at2 = dragAt + startY, end = at2 + frameSize * vy * 0.2, closestPoint = 0, dist = Number.POSITIVE_INFINITY, i = 0; i < positions.length; i++) {
|
|
20257
20265
|
var position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
|
|
20258
20266
|
curDist < dist && (dist = curDist, closestPoint = i);
|
|
20259
20267
|
}
|
|
@@ -20996,6 +21004,7 @@ var require_createSheet_native = __commonJS({
|
|
|
20996
21004
|
!disableHideBottomOverflow && // @ts-ignore
|
|
20997
21005
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Frame, _object_spread_props8(_object_spread9({}, props), {
|
|
20998
21006
|
componentName: "SheetCover",
|
|
21007
|
+
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
20999
21008
|
children: null,
|
|
21000
21009
|
position: "absolute",
|
|
21001
21010
|
bottom: "-100%",
|
|
@@ -28041,7 +28050,7 @@ var require_ListItem_native = __commonJS({
|
|
|
28041
28050
|
}
|
|
28042
28051
|
});
|
|
28043
28052
|
module2.exports = __toCommonJS2(ListItem_exports);
|
|
28044
|
-
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()
|
|
28053
|
+
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();
|
|
28045
28054
|
function _array_like_to_array2(arr, len) {
|
|
28046
28055
|
(len == null || len > arr.length) && (len = arr.length);
|
|
28047
28056
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -30789,10 +30798,10 @@ var require_Popper_native = __commonJS({
|
|
|
30789
30798
|
}, [
|
|
30790
30799
|
isMounted
|
|
30791
30800
|
]);
|
|
30792
|
-
var show = !0
|
|
30801
|
+
var show = !0;
|
|
30793
30802
|
if (import_constants4.isAndroid) {
|
|
30794
|
-
var
|
|
30795
|
-
|
|
30803
|
+
var _React_useState1 = _sliced_to_array(React2.useState(!1), 2), show_ = _React_useState1[0], setShow = _React_useState1[1];
|
|
30804
|
+
show = show_, React2.useEffect(function() {
|
|
30796
30805
|
finalHasFloatingValue && setShow(!0);
|
|
30797
30806
|
}, [
|
|
30798
30807
|
finalHasFloatingValue,
|
|
@@ -31917,9 +31926,159 @@ var require_index_native59 = __commonJS({
|
|
|
31917
31926
|
}
|
|
31918
31927
|
});
|
|
31919
31928
|
|
|
31920
|
-
// ../
|
|
31921
|
-
var
|
|
31922
|
-
"../
|
|
31929
|
+
// ../radio-group/dist/cjs/RadioGroup.native.js
|
|
31930
|
+
var require_RadioGroup_native = __commonJS({
|
|
31931
|
+
"../radio-group/dist/cjs/RadioGroup.native.js"(exports2, module2) {
|
|
31932
|
+
"use strict";
|
|
31933
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
31934
|
+
for (var name in all)
|
|
31935
|
+
__defProp2(target, name, {
|
|
31936
|
+
get: all[name],
|
|
31937
|
+
enumerable: !0
|
|
31938
|
+
});
|
|
31939
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
31940
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
31941
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
31942
|
+
try {
|
|
31943
|
+
for (var _loop = function() {
|
|
31944
|
+
var key = _step.value;
|
|
31945
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
31946
|
+
get: function() {
|
|
31947
|
+
return from[key];
|
|
31948
|
+
},
|
|
31949
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
31950
|
+
});
|
|
31951
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
31952
|
+
_loop();
|
|
31953
|
+
} catch (err) {
|
|
31954
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
31955
|
+
} finally {
|
|
31956
|
+
try {
|
|
31957
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
31958
|
+
} finally {
|
|
31959
|
+
if (_didIteratorError)
|
|
31960
|
+
throw _iteratorError;
|
|
31961
|
+
}
|
|
31962
|
+
}
|
|
31963
|
+
return to;
|
|
31964
|
+
}, __toCommonJS2 = function(mod) {
|
|
31965
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
31966
|
+
value: !0
|
|
31967
|
+
}), mod);
|
|
31968
|
+
}, RadioGroup_exports = {};
|
|
31969
|
+
__export2(RadioGroup_exports, {
|
|
31970
|
+
RadioGroupFrame: function() {
|
|
31971
|
+
return RadioGroupFrame;
|
|
31972
|
+
},
|
|
31973
|
+
RadioGroupIndicatorFrame: function() {
|
|
31974
|
+
return RadioGroupIndicatorFrame;
|
|
31975
|
+
},
|
|
31976
|
+
RadioGroupItemFrame: function() {
|
|
31977
|
+
return RadioGroupItemFrame;
|
|
31978
|
+
}
|
|
31979
|
+
});
|
|
31980
|
+
module2.exports = __toCommonJS2(RadioGroup_exports);
|
|
31981
|
+
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, {
|
|
31982
|
+
name: RADIO_GROUP_ITEM_NAME,
|
|
31983
|
+
tag: "button",
|
|
31984
|
+
variants: {
|
|
31985
|
+
unstyled: {
|
|
31986
|
+
false: {
|
|
31987
|
+
size: "$true",
|
|
31988
|
+
borderRadius: 1e3,
|
|
31989
|
+
backgroundColor: "$background",
|
|
31990
|
+
alignItems: "center",
|
|
31991
|
+
justifyContent: "center",
|
|
31992
|
+
borderWidth: 1,
|
|
31993
|
+
borderColor: "$borderColor",
|
|
31994
|
+
padding: 0,
|
|
31995
|
+
hoverStyle: {
|
|
31996
|
+
borderColor: "$borderColorHover",
|
|
31997
|
+
backgroundColor: "$backgroundHover"
|
|
31998
|
+
},
|
|
31999
|
+
focusStyle: {
|
|
32000
|
+
borderColor: "$borderColorHover",
|
|
32001
|
+
backgroundColor: "$backgroundHover"
|
|
32002
|
+
},
|
|
32003
|
+
focusVisibleStyle: {
|
|
32004
|
+
outlineStyle: "solid",
|
|
32005
|
+
outlineWidth: 2,
|
|
32006
|
+
outlineColor: "$outlineColor"
|
|
32007
|
+
},
|
|
32008
|
+
pressStyle: {
|
|
32009
|
+
borderColor: "$borderColorFocus",
|
|
32010
|
+
backgroundColor: "$backgroundFocus"
|
|
32011
|
+
}
|
|
32012
|
+
}
|
|
32013
|
+
},
|
|
32014
|
+
disabled: {
|
|
32015
|
+
true: {
|
|
32016
|
+
pointerEvents: "none",
|
|
32017
|
+
userSelect: "none",
|
|
32018
|
+
cursor: "not-allowed",
|
|
32019
|
+
hoverStyle: {
|
|
32020
|
+
borderColor: "$borderColor",
|
|
32021
|
+
backgroundColor: "$background"
|
|
32022
|
+
},
|
|
32023
|
+
pressStyle: {
|
|
32024
|
+
borderColor: "$borderColor",
|
|
32025
|
+
backgroundColor: "$backgroundColor"
|
|
32026
|
+
},
|
|
32027
|
+
focusVisibleStyle: {
|
|
32028
|
+
outlineWidth: 0
|
|
32029
|
+
}
|
|
32030
|
+
}
|
|
32031
|
+
},
|
|
32032
|
+
size: {
|
|
32033
|
+
"...size": function(value, param) {
|
|
32034
|
+
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));
|
|
32035
|
+
return {
|
|
32036
|
+
width: size3,
|
|
32037
|
+
height: size3
|
|
32038
|
+
};
|
|
32039
|
+
}
|
|
32040
|
+
}
|
|
32041
|
+
},
|
|
32042
|
+
defaultVariants: {
|
|
32043
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
32044
|
+
}
|
|
32045
|
+
}), RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioGroupIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
32046
|
+
name: RADIO_GROUP_INDICATOR_NAME,
|
|
32047
|
+
variants: {
|
|
32048
|
+
unstyled: {
|
|
32049
|
+
false: {
|
|
32050
|
+
width: "33%",
|
|
32051
|
+
height: "33%",
|
|
32052
|
+
borderRadius: 1e3,
|
|
32053
|
+
backgroundColor: "$color",
|
|
32054
|
+
pressTheme: !0
|
|
32055
|
+
}
|
|
32056
|
+
}
|
|
32057
|
+
},
|
|
32058
|
+
defaultVariants: {
|
|
32059
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
32060
|
+
}
|
|
32061
|
+
}), RADIO_GROUP_NAME = "RadioGroup", RadioGroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
32062
|
+
name: RADIO_GROUP_NAME,
|
|
32063
|
+
variants: {
|
|
32064
|
+
orientation: {
|
|
32065
|
+
horizontal: {
|
|
32066
|
+
flexDirection: "row",
|
|
32067
|
+
spaceDirection: "horizontal"
|
|
32068
|
+
},
|
|
32069
|
+
vertical: {
|
|
32070
|
+
flexDirection: "column",
|
|
32071
|
+
spaceDirection: "vertical"
|
|
32072
|
+
}
|
|
32073
|
+
}
|
|
32074
|
+
}
|
|
32075
|
+
});
|
|
32076
|
+
}
|
|
32077
|
+
});
|
|
32078
|
+
|
|
32079
|
+
// ../radio-headless/dist/cjs/BubbleInput.native.js
|
|
32080
|
+
var require_BubbleInput_native2 = __commonJS({
|
|
32081
|
+
"../radio-headless/dist/cjs/BubbleInput.native.js"(exports2, module2) {
|
|
31923
32082
|
"use strict";
|
|
31924
32083
|
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
31925
32084
|
for (var name in all)
|
|
@@ -31968,17 +32127,14 @@ var require_RovingFocusGroup_native = __commonJS({
|
|
|
31968
32127
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
31969
32128
|
value: !0
|
|
31970
32129
|
}), mod);
|
|
31971
|
-
},
|
|
31972
|
-
__export2(
|
|
31973
|
-
|
|
31974
|
-
return
|
|
31975
|
-
},
|
|
31976
|
-
createRovingFocusGroupScope: function() {
|
|
31977
|
-
return createRovingFocusGroupScope;
|
|
32130
|
+
}, BubbleInput_exports = {};
|
|
32131
|
+
__export2(BubbleInput_exports, {
|
|
32132
|
+
BubbleInput: function() {
|
|
32133
|
+
return BubbleInput;
|
|
31978
32134
|
}
|
|
31979
32135
|
});
|
|
31980
|
-
module2.exports = __toCommonJS2(
|
|
31981
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"),
|
|
32136
|
+
module2.exports = __toCommonJS2(BubbleInput_exports);
|
|
32137
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_react4 = __toESM2(require("react")), import_use_previous = require_index_native46();
|
|
31982
32138
|
function _define_property9(obj, key, value) {
|
|
31983
32139
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
31984
32140
|
value,
|
|
@@ -32032,39 +32188,59 @@ var require_RovingFocusGroup_native = __commonJS({
|
|
|
32032
32188
|
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
32033
32189
|
return target;
|
|
32034
32190
|
}
|
|
32035
|
-
var
|
|
32036
|
-
var
|
|
32037
|
-
"
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
|
|
32045
|
-
|
|
32046
|
-
|
|
32047
|
-
|
|
32048
|
-
|
|
32049
|
-
|
|
32191
|
+
var BubbleInput = function(props) {
|
|
32192
|
+
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, [
|
|
32193
|
+
"checked",
|
|
32194
|
+
"bubbles",
|
|
32195
|
+
"control",
|
|
32196
|
+
"isHidden",
|
|
32197
|
+
"accentColor"
|
|
32198
|
+
]), ref = import_react4.default.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
|
|
32199
|
+
return import_react4.default.useEffect(function() {
|
|
32200
|
+
var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
|
|
32201
|
+
if (prevChecked !== checked && setChecked) {
|
|
32202
|
+
var event = new Event("click", {
|
|
32203
|
+
bubbles
|
|
32204
|
+
});
|
|
32205
|
+
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
32206
|
+
}
|
|
32207
|
+
}, [
|
|
32208
|
+
prevChecked,
|
|
32209
|
+
checked,
|
|
32210
|
+
bubbles
|
|
32211
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", _object_spread_props8(_object_spread9({
|
|
32212
|
+
type: "radio",
|
|
32213
|
+
defaultChecked: checked
|
|
32214
|
+
}, inputProps), {
|
|
32215
|
+
tabIndex: -1,
|
|
32216
|
+
ref,
|
|
32217
|
+
"aria-hidden": isHidden,
|
|
32218
|
+
style: _object_spread9({}, isHidden ? {
|
|
32219
|
+
// ...controlSize,
|
|
32220
|
+
position: "absolute",
|
|
32221
|
+
pointerEvents: "none",
|
|
32222
|
+
opacity: 0,
|
|
32223
|
+
margin: 0
|
|
32224
|
+
} : {
|
|
32225
|
+
appearance: "auto",
|
|
32226
|
+
accentColor
|
|
32227
|
+
}, props.style)
|
|
32050
32228
|
}));
|
|
32051
|
-
}), {
|
|
32052
|
-
Item: RovingFocusGroupItem
|
|
32053
|
-
});
|
|
32054
|
-
RovingFocusGroup.displayName = GROUP_NAME;
|
|
32055
|
-
var createRovingFocusGroupScope = function() {
|
|
32056
|
-
return function() {
|
|
32057
|
-
return {};
|
|
32058
|
-
};
|
|
32059
32229
|
};
|
|
32060
32230
|
}
|
|
32061
32231
|
});
|
|
32062
32232
|
|
|
32063
|
-
// ../
|
|
32064
|
-
var
|
|
32065
|
-
"../
|
|
32233
|
+
// ../radio-headless/dist/cjs/utils.native.js
|
|
32234
|
+
var require_utils_native3 = __commonJS({
|
|
32235
|
+
"../radio-headless/dist/cjs/utils.native.js"(exports2, module2) {
|
|
32066
32236
|
"use strict";
|
|
32067
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty,
|
|
32237
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
32238
|
+
for (var name in all)
|
|
32239
|
+
__defProp2(target, name, {
|
|
32240
|
+
get: all[name],
|
|
32241
|
+
enumerable: !0
|
|
32242
|
+
});
|
|
32243
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
32068
32244
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32069
32245
|
if (from && typeof from == "object" || typeof from == "function")
|
|
32070
32246
|
try {
|
|
@@ -32089,27 +32265,32 @@ var require_index_native60 = __commonJS({
|
|
|
32089
32265
|
}
|
|
32090
32266
|
}
|
|
32091
32267
|
return to;
|
|
32092
|
-
}, __reExport2 = function(target, mod, secondTarget) {
|
|
32093
|
-
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
32094
32268
|
}, __toCommonJS2 = function(mod) {
|
|
32095
32269
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32096
32270
|
value: !0
|
|
32097
32271
|
}), mod);
|
|
32098
|
-
},
|
|
32099
|
-
|
|
32100
|
-
|
|
32272
|
+
}, utils_exports = {};
|
|
32273
|
+
__export2(utils_exports, {
|
|
32274
|
+
getState: function() {
|
|
32275
|
+
return getState;
|
|
32276
|
+
}
|
|
32277
|
+
});
|
|
32278
|
+
module2.exports = __toCommonJS2(utils_exports);
|
|
32279
|
+
function getState(checked) {
|
|
32280
|
+
return checked ? "checked" : "unchecked";
|
|
32281
|
+
}
|
|
32101
32282
|
}
|
|
32102
32283
|
});
|
|
32103
32284
|
|
|
32104
|
-
// ../radio-
|
|
32105
|
-
var
|
|
32106
|
-
"../radio-
|
|
32285
|
+
// ../radio-headless/dist/cjs/useRadioGroup.native.js
|
|
32286
|
+
var require_useRadioGroup_native = __commonJS({
|
|
32287
|
+
"../radio-headless/dist/cjs/useRadioGroup.native.js"(exports2, module2) {
|
|
32107
32288
|
"use strict";
|
|
32108
32289
|
function _type_of(obj) {
|
|
32109
32290
|
"@swc/helpers - typeof";
|
|
32110
32291
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
32111
32292
|
}
|
|
32112
|
-
var
|
|
32293
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
32113
32294
|
for (var name in all)
|
|
32114
32295
|
__defProp2(target, name, {
|
|
32115
32296
|
get: all[name],
|
|
@@ -32140,33 +32321,24 @@ var require_RadioGroup_native = __commonJS({
|
|
|
32140
32321
|
}
|
|
32141
32322
|
}
|
|
32142
32323
|
return to;
|
|
32143
|
-
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
32144
|
-
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
32145
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
32146
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
32147
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32148
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32149
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
32150
|
-
value: mod,
|
|
32151
|
-
enumerable: !0
|
|
32152
|
-
}) : target,
|
|
32153
|
-
mod
|
|
32154
|
-
);
|
|
32155
32324
|
}, __toCommonJS2 = function(mod) {
|
|
32156
32325
|
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32157
32326
|
value: !0
|
|
32158
32327
|
}), mod);
|
|
32159
|
-
},
|
|
32160
|
-
__export2(
|
|
32161
|
-
|
|
32162
|
-
return
|
|
32328
|
+
}, useRadioGroup_exports = {};
|
|
32329
|
+
__export2(useRadioGroup_exports, {
|
|
32330
|
+
useRadioGroup: function() {
|
|
32331
|
+
return useRadioGroup;
|
|
32163
32332
|
},
|
|
32164
|
-
|
|
32165
|
-
return
|
|
32333
|
+
useRadioGroupItem: function() {
|
|
32334
|
+
return useRadioGroupItem;
|
|
32335
|
+
},
|
|
32336
|
+
useRadioGroupItemIndicator: function() {
|
|
32337
|
+
return useRadioGroupItemIndicator;
|
|
32166
32338
|
}
|
|
32167
32339
|
});
|
|
32168
|
-
module2.exports = __toCommonJS2(
|
|
32169
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
32340
|
+
module2.exports = __toCommonJS2(useRadioGroup_exports);
|
|
32341
|
+
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();
|
|
32170
32342
|
function _array_like_to_array2(arr, len) {
|
|
32171
32343
|
(len == null || len > arr.length) && (len = arr.length);
|
|
32172
32344
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -32267,117 +32439,43 @@ var require_RadioGroup_native = __commonJS({
|
|
|
32267
32439
|
return _array_like_to_array2(o, minLen);
|
|
32268
32440
|
}
|
|
32269
32441
|
}
|
|
32270
|
-
|
|
32442
|
+
function useRadioGroup(params) {
|
|
32443
|
+
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)({
|
|
32444
|
+
prop: valueProp,
|
|
32445
|
+
defaultProp: defaultValue,
|
|
32446
|
+
onChange: onValueChange
|
|
32447
|
+
}), 2), value = _useControllableState[0], setValue = _useControllableState[1];
|
|
32448
|
+
return {
|
|
32449
|
+
providerValue: {
|
|
32450
|
+
value,
|
|
32451
|
+
onChange: setValue,
|
|
32452
|
+
required,
|
|
32453
|
+
disabled,
|
|
32454
|
+
name,
|
|
32455
|
+
native,
|
|
32456
|
+
accentColor
|
|
32457
|
+
},
|
|
32458
|
+
frameAttrs: {
|
|
32459
|
+
role: "radiogroup",
|
|
32460
|
+
"aria-orientation": orientation,
|
|
32461
|
+
"data-disabled": disabled ? "" : void 0
|
|
32462
|
+
},
|
|
32463
|
+
rovingFocusGroupAttrs: {
|
|
32464
|
+
orientation,
|
|
32465
|
+
loop: !0
|
|
32466
|
+
}
|
|
32467
|
+
};
|
|
32468
|
+
}
|
|
32469
|
+
var ARROW_KEYS = [
|
|
32271
32470
|
"ArrowUp",
|
|
32272
32471
|
"ArrowDown",
|
|
32273
32472
|
"ArrowLeft",
|
|
32274
32473
|
"ArrowRight"
|
|
32275
|
-
],
|
|
32276
|
-
|
|
32277
|
-
}, RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
32278
|
-
name: RADIO_GROUP_INDICATOR_NAME,
|
|
32279
|
-
variants: {
|
|
32280
|
-
unstyled: {
|
|
32281
|
-
false: {
|
|
32282
|
-
width: "33%",
|
|
32283
|
-
height: "33%",
|
|
32284
|
-
borderRadius: 1e3,
|
|
32285
|
-
backgroundColor: "$color",
|
|
32286
|
-
pressTheme: !0
|
|
32287
|
-
}
|
|
32288
|
-
}
|
|
32289
|
-
},
|
|
32290
|
-
defaultVariants: {
|
|
32291
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
32292
|
-
}
|
|
32293
|
-
}), RadioIndicator = RadioIndicatorFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
|
|
32294
|
-
var __scopeRadioGroupItem = props.__scopeRadioGroupItem, forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties5(props, [
|
|
32295
|
-
"__scopeRadioGroupItem",
|
|
32296
|
-
"forceMount",
|
|
32297
|
-
"disabled"
|
|
32298
|
-
]), checked = useRadioGroupItemContext(RADIO_GROUP_INDICATOR_NAME, __scopeRadioGroupItem).checked;
|
|
32299
|
-
return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioIndicatorFrame, _object_spread_props8(_object_spread9({
|
|
32300
|
-
"data-state": getState(checked),
|
|
32301
|
-
"data-disabled": disabled ? "" : void 0
|
|
32302
|
-
}, indicatorProps), {
|
|
32303
|
-
ref: forwardedRef
|
|
32304
|
-
})) : null;
|
|
32305
|
-
}));
|
|
32306
|
-
RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
|
|
32307
|
-
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, {
|
|
32308
|
-
name: RADIO_GROUP_ITEM_NAME,
|
|
32309
|
-
tag: "button",
|
|
32310
|
-
variants: {
|
|
32311
|
-
unstyled: {
|
|
32312
|
-
false: {
|
|
32313
|
-
size: "$true",
|
|
32314
|
-
borderRadius: 1e3,
|
|
32315
|
-
backgroundColor: "$background",
|
|
32316
|
-
alignItems: "center",
|
|
32317
|
-
justifyContent: "center",
|
|
32318
|
-
borderWidth: 1,
|
|
32319
|
-
borderColor: "$borderColor",
|
|
32320
|
-
padding: 0,
|
|
32321
|
-
hoverStyle: {
|
|
32322
|
-
borderColor: "$borderColorHover",
|
|
32323
|
-
backgroundColor: "$backgroundHover"
|
|
32324
|
-
},
|
|
32325
|
-
focusStyle: {
|
|
32326
|
-
borderColor: "$borderColorHover",
|
|
32327
|
-
backgroundColor: "$backgroundHover"
|
|
32328
|
-
},
|
|
32329
|
-
focusVisibleStyle: {
|
|
32330
|
-
outlineStyle: "solid",
|
|
32331
|
-
outlineWidth: 2,
|
|
32332
|
-
outlineColor: "$outlineColor"
|
|
32333
|
-
},
|
|
32334
|
-
pressStyle: {
|
|
32335
|
-
borderColor: "$borderColorFocus",
|
|
32336
|
-
backgroundColor: "$backgroundFocus"
|
|
32337
|
-
}
|
|
32338
|
-
}
|
|
32339
|
-
},
|
|
32340
|
-
disabled: {
|
|
32341
|
-
true: {
|
|
32342
|
-
pointerEvents: "none",
|
|
32343
|
-
userSelect: "none",
|
|
32344
|
-
cursor: "not-allowed",
|
|
32345
|
-
hoverStyle: {
|
|
32346
|
-
borderColor: "$borderColor",
|
|
32347
|
-
backgroundColor: "$background"
|
|
32348
|
-
},
|
|
32349
|
-
pressStyle: {
|
|
32350
|
-
borderColor: "$borderColor",
|
|
32351
|
-
backgroundColor: "$backgroundColor"
|
|
32352
|
-
},
|
|
32353
|
-
focusVisibleStyle: {
|
|
32354
|
-
outlineWidth: 0
|
|
32355
|
-
}
|
|
32356
|
-
}
|
|
32357
|
-
},
|
|
32358
|
-
size: {
|
|
32359
|
-
"...size": function(value, param) {
|
|
32360
|
-
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));
|
|
32361
|
-
return {
|
|
32362
|
-
width: size3,
|
|
32363
|
-
height: size3
|
|
32364
|
-
};
|
|
32365
|
-
}
|
|
32366
|
-
}
|
|
32367
|
-
},
|
|
32368
|
-
defaultVariants: {
|
|
32369
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
32370
|
-
}
|
|
32371
|
-
}), RadioGroupItem = RadioGroupItemFrame.extractable(/* @__PURE__ */ React2.forwardRef(function(props, forwardedRef) {
|
|
32372
|
-
var __scopeRadioGroup = props.__scopeRadioGroup, value = props.value, ariaLabelledby = props.labelledBy, itemDisabled = props.disabled, itemProps = _object_without_properties5(props, [
|
|
32373
|
-
"__scopeRadioGroup",
|
|
32374
|
-
"value",
|
|
32375
|
-
"labelledBy",
|
|
32376
|
-
"disabled"
|
|
32377
|
-
]), _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) {
|
|
32474
|
+
], useRadioGroupItem = function(params) {
|
|
32475
|
+
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) {
|
|
32378
32476
|
return setButton(node);
|
|
32379
|
-
}, ref), isArrowKeyPressedRef =
|
|
32380
|
-
|
|
32477
|
+
}, 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;
|
|
32478
|
+
(0, import_react4.useEffect)(function() {
|
|
32381
32479
|
if (import_constants4.isWeb) {
|
|
32382
32480
|
var handleKeyDown = function(event) {
|
|
32383
32481
|
ARROW_KEYS.includes(event.key) && (isArrowKeyPressedRef.current = !0);
|
|
@@ -32388,9 +32486,9 @@ var require_RadioGroup_native = __commonJS({
|
|
|
32388
32486
|
document.removeEventListener("keydown", handleKeyDown), document.removeEventListener("keyup", handleKeyUp);
|
|
32389
32487
|
};
|
|
32390
32488
|
}
|
|
32391
|
-
}, []),
|
|
32392
|
-
if (
|
|
32393
|
-
return (0, import_focusable3.registerFocusable)(
|
|
32489
|
+
}, []), (0, import_react4.useEffect)(function() {
|
|
32490
|
+
if (id && !disabled)
|
|
32491
|
+
return (0, import_focusable3.registerFocusable)(id, {
|
|
32394
32492
|
focusAndSelect: function() {
|
|
32395
32493
|
onChange == null || onChange(value);
|
|
32396
32494
|
},
|
|
@@ -32398,182 +32496,565 @@ var require_RadioGroup_native = __commonJS({
|
|
|
32398
32496
|
}
|
|
32399
32497
|
});
|
|
32400
32498
|
}, [
|
|
32401
|
-
|
|
32499
|
+
id,
|
|
32402
32500
|
value,
|
|
32403
32501
|
disabled
|
|
32404
32502
|
]);
|
|
32405
32503
|
var isDisabled = disabled || itemDisabled;
|
|
32406
|
-
return
|
|
32504
|
+
return {
|
|
32505
|
+
providerValue: {
|
|
32506
|
+
checked
|
|
32507
|
+
},
|
|
32407
32508
|
checked,
|
|
32408
|
-
|
|
32409
|
-
|
|
32509
|
+
isFormControl,
|
|
32510
|
+
bubbleInput: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_BubbleInput.BubbleInput, _object_spread9({
|
|
32511
|
+
isHidden: !native,
|
|
32410
32512
|
control: button,
|
|
32411
32513
|
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
32412
32514
|
name,
|
|
32413
32515
|
value,
|
|
32414
32516
|
checked,
|
|
32415
32517
|
required,
|
|
32518
|
+
disabled: isDisabled
|
|
32519
|
+
}, import_constants4.isWeb && native && {
|
|
32520
|
+
accentColor,
|
|
32521
|
+
id
|
|
32522
|
+
})),
|
|
32523
|
+
native,
|
|
32524
|
+
frameAttrs: _object_spread9(_object_spread_props8(_object_spread9({
|
|
32525
|
+
"data-state": (0, import_utils3.getState)(checked),
|
|
32526
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
32527
|
+
role: "radio",
|
|
32528
|
+
"aria-labelledby": labelledBy,
|
|
32529
|
+
"aria-checked": checked,
|
|
32530
|
+
"aria-required": required,
|
|
32416
32531
|
disabled: isDisabled,
|
|
32417
|
-
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
32421
|
-
|
|
32422
|
-
|
|
32423
|
-
|
|
32424
|
-
|
|
32425
|
-
|
|
32426
|
-
|
|
32427
|
-
|
|
32428
|
-
|
|
32429
|
-
|
|
32430
|
-
|
|
32431
|
-
|
|
32432
|
-
|
|
32433
|
-
|
|
32434
|
-
|
|
32435
|
-
|
|
32436
|
-
|
|
32437
|
-
|
|
32438
|
-
|
|
32439
|
-
|
|
32440
|
-
|
|
32441
|
-
},
|
|
32442
|
-
// allow them to override all but the handlers that already compose:
|
|
32443
|
-
itemProps
|
|
32444
|
-
), {
|
|
32445
|
-
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, function(event) {
|
|
32446
|
-
checked || onChange == null || onChange(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
32447
|
-
})
|
|
32448
|
-
}), import_constants4.isWeb && {
|
|
32449
|
-
onKeyDown: (0, import_helpers.composeEventHandlers)(props.onKeyDown, function(event) {
|
|
32450
|
-
event.key === "Enter" && event.preventDefault();
|
|
32451
|
-
}),
|
|
32452
|
-
onFocus: (0, import_helpers.composeEventHandlers)(itemProps.onFocus, function() {
|
|
32453
|
-
if (isArrowKeyPressedRef.current) {
|
|
32454
|
-
var _ref_current;
|
|
32455
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.click();
|
|
32456
|
-
}
|
|
32457
|
-
})
|
|
32458
|
-
}))
|
|
32459
|
-
}),
|
|
32460
|
-
isFormControl && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BubbleInput, {
|
|
32461
|
-
isHidden: !0,
|
|
32462
|
-
control: button,
|
|
32463
|
-
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
32464
|
-
name,
|
|
32465
|
-
value,
|
|
32466
|
-
checked,
|
|
32467
|
-
required,
|
|
32468
|
-
disabled: isDisabled
|
|
32469
|
-
})
|
|
32470
|
-
]
|
|
32471
|
-
})
|
|
32472
|
-
});
|
|
32473
|
-
})), BubbleInput = function(props) {
|
|
32474
|
-
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, [
|
|
32475
|
-
"checked",
|
|
32476
|
-
"bubbles",
|
|
32477
|
-
"control",
|
|
32478
|
-
"isHidden",
|
|
32479
|
-
"accentColor"
|
|
32480
|
-
]), ref = React2.useRef(null), prevChecked = (0, import_use_previous.usePrevious)(checked);
|
|
32481
|
-
return React2.useEffect(function() {
|
|
32482
|
-
var input = ref.current, inputProto = window.HTMLInputElement.prototype, descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked"), setChecked = descriptor.set;
|
|
32483
|
-
if (prevChecked !== checked && setChecked) {
|
|
32484
|
-
var event = new Event("click", {
|
|
32485
|
-
bubbles
|
|
32486
|
-
});
|
|
32487
|
-
setChecked.call(input, checked), input.dispatchEvent(event);
|
|
32532
|
+
ref: composedRefs
|
|
32533
|
+
}, import_constants4.isWeb && {
|
|
32534
|
+
type: "button",
|
|
32535
|
+
value
|
|
32536
|
+
}), {
|
|
32537
|
+
id,
|
|
32538
|
+
onPress: (0, import_helpers.composeEventHandlers)(onPress, function(event) {
|
|
32539
|
+
checked || onChange == null || onChange(value), isFormControl && (hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(), hasConsumerStoppedPropagationRef.current || event.stopPropagation());
|
|
32540
|
+
})
|
|
32541
|
+
}), import_constants4.isWeb && {
|
|
32542
|
+
onKeyDown: (0, import_helpers.composeEventHandlers)(onKeyDown, function(event) {
|
|
32543
|
+
event.key === "Enter" && event.preventDefault();
|
|
32544
|
+
}),
|
|
32545
|
+
onFocus: (0, import_helpers.composeEventHandlers)(onFocus, function() {
|
|
32546
|
+
if (isArrowKeyPressedRef.current) {
|
|
32547
|
+
var _ref_current;
|
|
32548
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.click();
|
|
32549
|
+
}
|
|
32550
|
+
})
|
|
32551
|
+
}),
|
|
32552
|
+
rovingFocusGroupAttrs: {
|
|
32553
|
+
asChild: "expect-style",
|
|
32554
|
+
focusable: !isDisabled,
|
|
32555
|
+
active: checked
|
|
32488
32556
|
}
|
|
32489
|
-
}
|
|
32490
|
-
|
|
32557
|
+
};
|
|
32558
|
+
};
|
|
32559
|
+
function useRadioGroupItemIndicator(params) {
|
|
32560
|
+
var radioGroupItemContext = params.radioGroupItemContext, disabled = params.disabled, rest = _object_without_properties5(params, [
|
|
32561
|
+
"radioGroupItemContext",
|
|
32562
|
+
"disabled"
|
|
32563
|
+
]), checked = (0, import_react4.useContext)(radioGroupItemContext).checked;
|
|
32564
|
+
return _object_spread9({
|
|
32491
32565
|
checked,
|
|
32492
|
-
|
|
32493
|
-
|
|
32494
|
-
|
|
32495
|
-
|
|
32496
|
-
|
|
32497
|
-
|
|
32498
|
-
|
|
32499
|
-
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32503
|
-
|
|
32504
|
-
|
|
32505
|
-
|
|
32506
|
-
|
|
32507
|
-
|
|
32508
|
-
|
|
32509
|
-
|
|
32566
|
+
"data-state": (0, import_utils3.getState)(checked),
|
|
32567
|
+
"data-disabled": disabled ? "" : void 0
|
|
32568
|
+
}, rest);
|
|
32569
|
+
}
|
|
32570
|
+
}
|
|
32571
|
+
});
|
|
32572
|
+
|
|
32573
|
+
// ../radio-headless/dist/cjs/index.native.js
|
|
32574
|
+
var require_index_native60 = __commonJS({
|
|
32575
|
+
"../radio-headless/dist/cjs/index.native.js"(exports2, module2) {
|
|
32576
|
+
"use strict";
|
|
32577
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
32578
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32579
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
32580
|
+
try {
|
|
32581
|
+
for (var _loop = function() {
|
|
32582
|
+
var key = _step.value;
|
|
32583
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
32584
|
+
get: function() {
|
|
32585
|
+
return from[key];
|
|
32586
|
+
},
|
|
32587
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
32588
|
+
});
|
|
32589
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
32590
|
+
_loop();
|
|
32591
|
+
} catch (err) {
|
|
32592
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
32593
|
+
} finally {
|
|
32594
|
+
try {
|
|
32595
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
32596
|
+
} finally {
|
|
32597
|
+
if (_didIteratorError)
|
|
32598
|
+
throw _iteratorError;
|
|
32599
|
+
}
|
|
32600
|
+
}
|
|
32601
|
+
return to;
|
|
32602
|
+
}, __reExport2 = function(target, mod, secondTarget) {
|
|
32603
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
32604
|
+
}, __toCommonJS2 = function(mod) {
|
|
32605
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32606
|
+
value: !0
|
|
32607
|
+
}), mod);
|
|
32608
|
+
}, src_exports2 = {};
|
|
32609
|
+
module2.exports = __toCommonJS2(src_exports2);
|
|
32610
|
+
__reExport2(src_exports2, require_useRadioGroup_native(), module2.exports);
|
|
32611
|
+
__reExport2(src_exports2, require_utils_native3(), module2.exports);
|
|
32612
|
+
}
|
|
32613
|
+
});
|
|
32614
|
+
|
|
32615
|
+
// ../roving-focus/dist/cjs/RovingFocusGroup.native.js
|
|
32616
|
+
var require_RovingFocusGroup_native = __commonJS({
|
|
32617
|
+
"../roving-focus/dist/cjs/RovingFocusGroup.native.js"(exports2, module2) {
|
|
32618
|
+
"use strict";
|
|
32619
|
+
var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
32620
|
+
for (var name in all)
|
|
32621
|
+
__defProp2(target, name, {
|
|
32622
|
+
get: all[name],
|
|
32623
|
+
enumerable: !0
|
|
32624
|
+
});
|
|
32625
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
32626
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32627
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
32628
|
+
try {
|
|
32629
|
+
for (var _loop = function() {
|
|
32630
|
+
var key = _step.value;
|
|
32631
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
32632
|
+
get: function() {
|
|
32633
|
+
return from[key];
|
|
32634
|
+
},
|
|
32635
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
32636
|
+
});
|
|
32637
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
32638
|
+
_loop();
|
|
32639
|
+
} catch (err) {
|
|
32640
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
32641
|
+
} finally {
|
|
32642
|
+
try {
|
|
32643
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
32644
|
+
} finally {
|
|
32645
|
+
if (_didIteratorError)
|
|
32646
|
+
throw _iteratorError;
|
|
32647
|
+
}
|
|
32648
|
+
}
|
|
32649
|
+
return to;
|
|
32650
|
+
}, __toESM2 = function(mod, isNodeMode, target) {
|
|
32651
|
+
return target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2(
|
|
32652
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
32653
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32654
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32655
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32656
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", {
|
|
32657
|
+
value: mod,
|
|
32658
|
+
enumerable: !0
|
|
32659
|
+
}) : target,
|
|
32660
|
+
mod
|
|
32661
|
+
);
|
|
32662
|
+
}, __toCommonJS2 = function(mod) {
|
|
32663
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32664
|
+
value: !0
|
|
32665
|
+
}), mod);
|
|
32666
|
+
}, RovingFocusGroup_native_exports = {};
|
|
32667
|
+
__export2(RovingFocusGroup_native_exports, {
|
|
32668
|
+
RovingFocusGroup: function() {
|
|
32669
|
+
return RovingFocusGroup;
|
|
32670
|
+
},
|
|
32671
|
+
createRovingFocusGroupScope: function() {
|
|
32672
|
+
return createRovingFocusGroupScope;
|
|
32673
|
+
}
|
|
32674
|
+
});
|
|
32675
|
+
module2.exports = __toCommonJS2(RovingFocusGroup_native_exports);
|
|
32676
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react4 = __toESM2(require("react"));
|
|
32677
|
+
function _define_property9(obj, key, value) {
|
|
32678
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
32679
|
+
value,
|
|
32680
|
+
enumerable: !0,
|
|
32681
|
+
configurable: !0,
|
|
32682
|
+
writable: !0
|
|
32683
|
+
}) : obj[key] = value, obj;
|
|
32684
|
+
}
|
|
32685
|
+
function _object_spread9(target) {
|
|
32686
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32687
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
|
|
32688
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
32689
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
32690
|
+
}))), ownKeys22.forEach(function(key) {
|
|
32691
|
+
_define_property9(target, key, source[key]);
|
|
32692
|
+
});
|
|
32693
|
+
}
|
|
32694
|
+
return target;
|
|
32695
|
+
}
|
|
32696
|
+
function ownKeys8(object, enumerableOnly) {
|
|
32697
|
+
var keys = Object.keys(object);
|
|
32698
|
+
if (Object.getOwnPropertySymbols) {
|
|
32699
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32700
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
32701
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32702
|
+
})), keys.push.apply(keys, symbols);
|
|
32703
|
+
}
|
|
32704
|
+
return keys;
|
|
32705
|
+
}
|
|
32706
|
+
function _object_spread_props8(target, source) {
|
|
32707
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
|
|
32708
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32709
|
+
}), target;
|
|
32710
|
+
}
|
|
32711
|
+
function _object_without_properties5(source, excluded) {
|
|
32712
|
+
if (source == null)
|
|
32713
|
+
return {};
|
|
32714
|
+
var target = _object_without_properties_loose5(source, excluded), key, i;
|
|
32715
|
+
if (Object.getOwnPropertySymbols) {
|
|
32716
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
32717
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
32718
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
32719
|
+
}
|
|
32720
|
+
return target;
|
|
32721
|
+
}
|
|
32722
|
+
function _object_without_properties_loose5(source, excluded) {
|
|
32723
|
+
if (source == null)
|
|
32724
|
+
return {};
|
|
32725
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
32726
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
32727
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
32728
|
+
return target;
|
|
32729
|
+
}
|
|
32730
|
+
var ITEM_NAME = "RovingFocusGroupItem", RovingFocusGroupItem = /* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
|
|
32731
|
+
var children = _param.children, props = _object_without_properties5(_param, [
|
|
32732
|
+
"children"
|
|
32733
|
+
]);
|
|
32734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
|
|
32735
|
+
children
|
|
32510
32736
|
}));
|
|
32511
|
-
}
|
|
32512
|
-
|
|
32513
|
-
|
|
32514
|
-
|
|
32515
|
-
|
|
32516
|
-
|
|
32517
|
-
|
|
32518
|
-
|
|
32519
|
-
|
|
32520
|
-
|
|
32521
|
-
|
|
32737
|
+
});
|
|
32738
|
+
RovingFocusGroupItem.displayName = ITEM_NAME;
|
|
32739
|
+
var GROUP_NAME = "RovingFocusGroup", RovingFocusGroup = (0, import_helpers.withStaticProperties)(/* @__PURE__ */ import_react4.default.forwardRef(function(_param, _ref) {
|
|
32740
|
+
var children = _param.children, props = _object_without_properties5(_param, [
|
|
32741
|
+
"children"
|
|
32742
|
+
]);
|
|
32743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, _object_spread_props8(_object_spread9({}, props), {
|
|
32744
|
+
children
|
|
32745
|
+
}));
|
|
32746
|
+
}), {
|
|
32747
|
+
Item: RovingFocusGroupItem
|
|
32748
|
+
});
|
|
32749
|
+
RovingFocusGroup.displayName = GROUP_NAME;
|
|
32750
|
+
var createRovingFocusGroupScope = function() {
|
|
32751
|
+
return function() {
|
|
32752
|
+
return {};
|
|
32753
|
+
};
|
|
32754
|
+
};
|
|
32755
|
+
}
|
|
32756
|
+
});
|
|
32757
|
+
|
|
32758
|
+
// ../roving-focus/dist/cjs/index.native.js
|
|
32759
|
+
var require_index_native61 = __commonJS({
|
|
32760
|
+
"../roving-focus/dist/cjs/index.native.js"(exports2, module2) {
|
|
32761
|
+
"use strict";
|
|
32762
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
32763
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32764
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
32765
|
+
try {
|
|
32766
|
+
for (var _loop = function() {
|
|
32767
|
+
var key = _step.value;
|
|
32768
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
32769
|
+
get: function() {
|
|
32770
|
+
return from[key];
|
|
32771
|
+
},
|
|
32772
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
32773
|
+
});
|
|
32774
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
32775
|
+
_loop();
|
|
32776
|
+
} catch (err) {
|
|
32777
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
32778
|
+
} finally {
|
|
32779
|
+
try {
|
|
32780
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
32781
|
+
} finally {
|
|
32782
|
+
if (_didIteratorError)
|
|
32783
|
+
throw _iteratorError;
|
|
32522
32784
|
}
|
|
32523
32785
|
}
|
|
32786
|
+
return to;
|
|
32787
|
+
}, __reExport2 = function(target, mod, secondTarget) {
|
|
32788
|
+
return __copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default");
|
|
32789
|
+
}, __toCommonJS2 = function(mod) {
|
|
32790
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32791
|
+
value: !0
|
|
32792
|
+
}), mod);
|
|
32793
|
+
}, src_exports2 = {};
|
|
32794
|
+
module2.exports = __toCommonJS2(src_exports2);
|
|
32795
|
+
__reExport2(src_exports2, require_RovingFocusGroup_native(), module2.exports);
|
|
32796
|
+
}
|
|
32797
|
+
});
|
|
32798
|
+
|
|
32799
|
+
// ../radio-group/dist/cjs/createRadioGroup.native.js
|
|
32800
|
+
var require_createRadioGroup_native = __commonJS({
|
|
32801
|
+
"../radio-group/dist/cjs/createRadioGroup.native.js"(exports2, module2) {
|
|
32802
|
+
"use strict";
|
|
32803
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
32804
|
+
for (var name in all)
|
|
32805
|
+
__defProp2(target, name, {
|
|
32806
|
+
get: all[name],
|
|
32807
|
+
enumerable: !0
|
|
32808
|
+
});
|
|
32809
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
32810
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32811
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
32812
|
+
try {
|
|
32813
|
+
for (var _loop = function() {
|
|
32814
|
+
var key = _step.value;
|
|
32815
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
32816
|
+
get: function() {
|
|
32817
|
+
return from[key];
|
|
32818
|
+
},
|
|
32819
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
32820
|
+
});
|
|
32821
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
32822
|
+
_loop();
|
|
32823
|
+
} catch (err) {
|
|
32824
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
32825
|
+
} finally {
|
|
32826
|
+
try {
|
|
32827
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
32828
|
+
} finally {
|
|
32829
|
+
if (_didIteratorError)
|
|
32830
|
+
throw _iteratorError;
|
|
32831
|
+
}
|
|
32832
|
+
}
|
|
32833
|
+
return to;
|
|
32834
|
+
}, __toCommonJS2 = function(mod) {
|
|
32835
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
32836
|
+
value: !0
|
|
32837
|
+
}), mod);
|
|
32838
|
+
}, createRadioGroup_exports = {};
|
|
32839
|
+
__export2(createRadioGroup_exports, {
|
|
32840
|
+
createRadioGroup: function() {
|
|
32841
|
+
return createRadioGroup;
|
|
32524
32842
|
}
|
|
32525
|
-
})
|
|
32526
|
-
|
|
32527
|
-
|
|
32528
|
-
|
|
32529
|
-
|
|
32530
|
-
"onValueChange",
|
|
32531
|
-
"disabled",
|
|
32532
|
-
"required",
|
|
32533
|
-
"name",
|
|
32534
|
-
"orientation",
|
|
32535
|
-
"native",
|
|
32536
|
-
"accentColor"
|
|
32537
|
-
]), _useControllableState = _sliced_to_array((0, import_use_controllable_state.useControllableState)({
|
|
32538
|
-
prop: valueProp,
|
|
32539
|
-
defaultProp: defaultValue,
|
|
32540
|
-
onChange: onValueChange
|
|
32541
|
-
}), 2), value = _useControllableState[0], setValue = _useControllableState[1];
|
|
32542
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupProvider, {
|
|
32543
|
-
scope: __scopeRadioGroup,
|
|
32843
|
+
});
|
|
32844
|
+
module2.exports = __toCommonJS2(createRadioGroup_exports);
|
|
32845
|
+
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");
|
|
32846
|
+
function _define_property9(obj, key, value) {
|
|
32847
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
32544
32848
|
value,
|
|
32545
|
-
|
|
32546
|
-
|
|
32547
|
-
|
|
32548
|
-
|
|
32549
|
-
|
|
32550
|
-
|
|
32551
|
-
|
|
32552
|
-
|
|
32849
|
+
enumerable: !0,
|
|
32850
|
+
configurable: !0,
|
|
32851
|
+
writable: !0
|
|
32852
|
+
}) : obj[key] = value, obj;
|
|
32853
|
+
}
|
|
32854
|
+
function _object_spread9(target) {
|
|
32855
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32856
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys22 = Object.keys(source);
|
|
32857
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys22 = ownKeys22.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
32858
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
32859
|
+
}))), ownKeys22.forEach(function(key) {
|
|
32860
|
+
_define_property9(target, key, source[key]);
|
|
32861
|
+
});
|
|
32862
|
+
}
|
|
32863
|
+
return target;
|
|
32864
|
+
}
|
|
32865
|
+
function ownKeys8(object, enumerableOnly) {
|
|
32866
|
+
var keys = Object.keys(object);
|
|
32867
|
+
if (Object.getOwnPropertySymbols) {
|
|
32868
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32869
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
32870
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32871
|
+
})), keys.push.apply(keys, symbols);
|
|
32872
|
+
}
|
|
32873
|
+
return keys;
|
|
32874
|
+
}
|
|
32875
|
+
function _object_spread_props8(target, source) {
|
|
32876
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys8(Object(source)).forEach(function(key) {
|
|
32877
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32878
|
+
}), target;
|
|
32879
|
+
}
|
|
32880
|
+
function _object_without_properties5(source, excluded) {
|
|
32881
|
+
if (source == null)
|
|
32882
|
+
return {};
|
|
32883
|
+
var target = _object_without_properties_loose5(source, excluded), key, i;
|
|
32884
|
+
if (Object.getOwnPropertySymbols) {
|
|
32885
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
32886
|
+
for (i = 0; i < sourceSymbolKeys.length; i++)
|
|
32887
|
+
key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
|
|
32888
|
+
}
|
|
32889
|
+
return target;
|
|
32890
|
+
}
|
|
32891
|
+
function _object_without_properties_loose5(source, excluded) {
|
|
32892
|
+
if (source == null)
|
|
32893
|
+
return {};
|
|
32894
|
+
var target = {}, sourceKeys = Object.keys(source), key, i;
|
|
32895
|
+
for (i = 0; i < sourceKeys.length; i++)
|
|
32896
|
+
key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
|
|
32897
|
+
return target;
|
|
32898
|
+
}
|
|
32899
|
+
var ensureContext = function(x) {
|
|
32900
|
+
x.context || (x.context = RadioGroupContext);
|
|
32901
|
+
}, RadioGroupContext = /* @__PURE__ */ (0, import_react4.createContext)({}), RadioGroupItemContext = /* @__PURE__ */ (0, import_react4.createContext)({
|
|
32902
|
+
checked: !1,
|
|
32903
|
+
disabled: !1
|
|
32904
|
+
});
|
|
32905
|
+
function createRadioGroup(createProps) {
|
|
32906
|
+
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;
|
|
32907
|
+
ensureContext(Frame), ensureContext(Indicator), ensureContext(Item);
|
|
32908
|
+
var RadioGroupImp = Frame.styleable(function(props, ref) {
|
|
32909
|
+
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, [
|
|
32910
|
+
"value",
|
|
32911
|
+
"defaultValue",
|
|
32912
|
+
"onValueChange",
|
|
32913
|
+
"required",
|
|
32914
|
+
"disabled",
|
|
32915
|
+
"name",
|
|
32916
|
+
"native",
|
|
32917
|
+
"accentColor",
|
|
32918
|
+
"orientation"
|
|
32919
|
+
]), _useRadioGroup = (0, import_radio_headless.useRadioGroup)({
|
|
32553
32920
|
orientation,
|
|
32554
|
-
|
|
32555
|
-
|
|
32556
|
-
|
|
32557
|
-
|
|
32558
|
-
|
|
32559
|
-
|
|
32560
|
-
|
|
32561
|
-
|
|
32562
|
-
})
|
|
32921
|
+
name,
|
|
32922
|
+
defaultValue,
|
|
32923
|
+
value,
|
|
32924
|
+
onValueChange,
|
|
32925
|
+
required,
|
|
32926
|
+
disabled,
|
|
32927
|
+
native,
|
|
32928
|
+
accentColor
|
|
32929
|
+
}), providerValue = _useRadioGroup.providerValue, frameAttrs = _useRadioGroup.frameAttrs, rovingFocusGroupAttrs = _useRadioGroup.rovingFocusGroupAttrs;
|
|
32930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupContext.Provider, {
|
|
32931
|
+
value: providerValue,
|
|
32932
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup, _object_spread_props8(_object_spread9({}, rovingFocusGroupAttrs), {
|
|
32933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_RadioGroup.RadioGroupFrame, _object_spread9(_object_spread_props8(_object_spread9({}, frameAttrs), {
|
|
32934
|
+
ref
|
|
32935
|
+
}), rest))
|
|
32936
|
+
}))
|
|
32937
|
+
});
|
|
32938
|
+
}), RadioGroupItemImp = Item.styleable(function(props, ref) {
|
|
32939
|
+
var value = props.value, labelledBy = props.labelledBy, onPress = props.onPress, onKeyDown = props.onKeyDown, disabled = props.disabled, id = props.id, rest = _object_without_properties5(props, [
|
|
32940
|
+
"value",
|
|
32941
|
+
"labelledBy",
|
|
32942
|
+
"onPress",
|
|
32943
|
+
"onKeyDown",
|
|
32944
|
+
"disabled",
|
|
32945
|
+
"id"
|
|
32946
|
+
]), _useRadioGroupItem = (0, import_radio_headless.useRadioGroupItem)({
|
|
32947
|
+
radioGroupContext: RadioGroupContext,
|
|
32948
|
+
value,
|
|
32949
|
+
id,
|
|
32950
|
+
labelledBy,
|
|
32951
|
+
disabled,
|
|
32952
|
+
onPress,
|
|
32953
|
+
onKeyDown
|
|
32954
|
+
}), providerValue = _useRadioGroupItem.providerValue, bubbleInput = _useRadioGroupItem.bubbleInput, rovingFocusGroupAttrs = _useRadioGroupItem.rovingFocusGroupAttrs, frameAttrs = _useRadioGroupItem.frameAttrs, isFormControl = _useRadioGroupItem.isFormControl, native = _useRadioGroupItem.native;
|
|
32955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadioGroupItemContext.Provider, {
|
|
32956
|
+
value: providerValue,
|
|
32957
|
+
children: import_core12.isWeb && native ? bubbleInput : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, {
|
|
32958
|
+
children: [
|
|
32959
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_roving_focus.RovingFocusGroup.Item, _object_spread_props8(_object_spread9({}, rovingFocusGroupAttrs), {
|
|
32960
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_RadioGroup.RadioGroupItemFrame, _object_spread9(_object_spread_props8(_object_spread9({}, frameAttrs), {
|
|
32961
|
+
ref
|
|
32962
|
+
}), rest))
|
|
32963
|
+
})),
|
|
32964
|
+
isFormControl && bubbleInput
|
|
32965
|
+
]
|
|
32966
|
+
})
|
|
32967
|
+
});
|
|
32563
32968
|
});
|
|
32564
|
-
|
|
32565
|
-
|
|
32566
|
-
|
|
32969
|
+
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
32970
|
+
var RadioIndicator = Indicator.styleable(function(props, forwardedRef) {
|
|
32971
|
+
var forceMount = props.forceMount, disabled = props.disabled, indicatorProps = _object_without_properties5(props, [
|
|
32972
|
+
"forceMount",
|
|
32973
|
+
"disabled"
|
|
32974
|
+
]), _useRadioGroupItemIndicator = (0, import_radio_headless.useRadioGroupItemIndicator)({
|
|
32975
|
+
radioGroupItemContext: RadioGroupItemContext,
|
|
32976
|
+
disabled
|
|
32977
|
+
}), checked = _useRadioGroupItemIndicator.checked, useIndicatorRest = _object_without_properties5(_useRadioGroupItemIndicator, [
|
|
32978
|
+
"checked"
|
|
32979
|
+
]);
|
|
32980
|
+
return forceMount || checked ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Indicator, _object_spread9(_object_spread_props8(_object_spread9({}, useIndicatorRest), {
|
|
32981
|
+
ref: forwardedRef
|
|
32982
|
+
}), indicatorProps)) : null;
|
|
32983
|
+
});
|
|
32984
|
+
RadioIndicator.displayName = "RadioIndicator";
|
|
32985
|
+
var RadioGroup = (0, import_core12.withStaticProperties)(RadioGroupImp, {
|
|
32986
|
+
Item: RadioGroupItemImp,
|
|
32987
|
+
Indicator: RadioIndicator
|
|
32988
|
+
});
|
|
32989
|
+
return RadioGroup.displayName = "RadioGroup", RadioGroup;
|
|
32990
|
+
}
|
|
32991
|
+
}
|
|
32992
|
+
});
|
|
32993
|
+
|
|
32994
|
+
// ../radio-group/dist/cjs/RadioGroupStyledContext.native.js
|
|
32995
|
+
var require_RadioGroupStyledContext_native = __commonJS({
|
|
32996
|
+
"../radio-group/dist/cjs/RadioGroupStyledContext.native.js"(exports2, module2) {
|
|
32997
|
+
"use strict";
|
|
32998
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
32999
|
+
for (var name in all)
|
|
33000
|
+
__defProp2(target, name, {
|
|
33001
|
+
get: all[name],
|
|
33002
|
+
enumerable: !0
|
|
33003
|
+
});
|
|
33004
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
33005
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
33006
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
33007
|
+
try {
|
|
33008
|
+
for (var _loop = function() {
|
|
33009
|
+
var key = _step.value;
|
|
33010
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
33011
|
+
get: function() {
|
|
33012
|
+
return from[key];
|
|
33013
|
+
},
|
|
33014
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
33015
|
+
});
|
|
33016
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
|
|
33017
|
+
_loop();
|
|
33018
|
+
} catch (err) {
|
|
33019
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
33020
|
+
} finally {
|
|
33021
|
+
try {
|
|
33022
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
33023
|
+
} finally {
|
|
33024
|
+
if (_didIteratorError)
|
|
33025
|
+
throw _iteratorError;
|
|
33026
|
+
}
|
|
33027
|
+
}
|
|
33028
|
+
return to;
|
|
33029
|
+
}, __toCommonJS2 = function(mod) {
|
|
33030
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
33031
|
+
value: !0
|
|
33032
|
+
}), mod);
|
|
33033
|
+
}, RadioGroupStyledContext_exports = {};
|
|
33034
|
+
__export2(RadioGroupStyledContext_exports, {
|
|
33035
|
+
RadioGroupStyledContext: function() {
|
|
33036
|
+
return RadioGroupStyledContext;
|
|
33037
|
+
}
|
|
33038
|
+
});
|
|
33039
|
+
module2.exports = __toCommonJS2(RadioGroupStyledContext_exports);
|
|
33040
|
+
var import_core12 = require_index_native16(), RadioGroupStyledContext = (0, import_core12.createStyledContext)({
|
|
33041
|
+
size: "$true",
|
|
33042
|
+
scaleIcon: 1
|
|
32567
33043
|
});
|
|
32568
|
-
RadioGroup.displayName = RADIO_GROUP_NAME;
|
|
32569
33044
|
}
|
|
32570
33045
|
});
|
|
32571
33046
|
|
|
32572
33047
|
// ../radio-group/dist/cjs/index.native.js
|
|
32573
|
-
var
|
|
33048
|
+
var require_index_native62 = __commonJS({
|
|
32574
33049
|
"../radio-group/dist/cjs/index.native.js"(exports2, module2) {
|
|
32575
33050
|
"use strict";
|
|
32576
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty,
|
|
33051
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
33052
|
+
for (var name in all)
|
|
33053
|
+
__defProp2(target, name, {
|
|
33054
|
+
get: all[name],
|
|
33055
|
+
enumerable: !0
|
|
33056
|
+
});
|
|
33057
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
32577
33058
|
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
32578
33059
|
if (from && typeof from == "object" || typeof from == "function")
|
|
32579
33060
|
try {
|
|
@@ -32605,8 +33086,21 @@ var require_index_native61 = __commonJS({
|
|
|
32605
33086
|
value: !0
|
|
32606
33087
|
}), mod);
|
|
32607
33088
|
}, src_exports2 = {};
|
|
33089
|
+
__export2(src_exports2, {
|
|
33090
|
+
RadioGroup: function() {
|
|
33091
|
+
return RadioGroup;
|
|
33092
|
+
}
|
|
33093
|
+
});
|
|
32608
33094
|
module2.exports = __toCommonJS2(src_exports2);
|
|
33095
|
+
var import_RadioGroup = require_RadioGroup_native(), import_createRadioGroup = require_createRadioGroup_native();
|
|
33096
|
+
__reExport2(src_exports2, require_createRadioGroup_native(), module2.exports);
|
|
32609
33097
|
__reExport2(src_exports2, require_RadioGroup_native(), module2.exports);
|
|
33098
|
+
__reExport2(src_exports2, require_RadioGroupStyledContext_native(), module2.exports);
|
|
33099
|
+
var RadioGroup = (0, import_createRadioGroup.createRadioGroup)({
|
|
33100
|
+
Frame: import_RadioGroup.RadioGroupFrame,
|
|
33101
|
+
Indicator: import_RadioGroup.RadioGroupIndicatorFrame,
|
|
33102
|
+
Item: import_RadioGroup.RadioGroupItemFrame
|
|
33103
|
+
});
|
|
32610
33104
|
}
|
|
32611
33105
|
});
|
|
32612
33106
|
|
|
@@ -32688,7 +33182,7 @@ var require_Separator_native = __commonJS({
|
|
|
32688
33182
|
});
|
|
32689
33183
|
|
|
32690
33184
|
// ../separator/dist/cjs/index.native.js
|
|
32691
|
-
var
|
|
33185
|
+
var require_index_native63 = __commonJS({
|
|
32692
33186
|
"../separator/dist/cjs/index.native.js"(exports2, module2) {
|
|
32693
33187
|
"use strict";
|
|
32694
33188
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -32729,7 +33223,7 @@ var require_index_native62 = __commonJS({
|
|
|
32729
33223
|
});
|
|
32730
33224
|
|
|
32731
33225
|
// ../use-debounce/dist/cjs/index.native.js
|
|
32732
|
-
var
|
|
33226
|
+
var require_index_native64 = __commonJS({
|
|
32733
33227
|
"../use-debounce/dist/cjs/index.native.js"(exports2, module2) {
|
|
32734
33228
|
"use strict";
|
|
32735
33229
|
function _type_of(obj) {
|
|
@@ -34088,7 +34582,7 @@ var require_Select_native = __commonJS({
|
|
|
34088
34582
|
}
|
|
34089
34583
|
});
|
|
34090
34584
|
module2.exports = __toCommonJS2(Select_exports);
|
|
34091
|
-
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 =
|
|
34585
|
+
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();
|
|
34092
34586
|
function _array_like_to_array2(arr, len) {
|
|
34093
34587
|
(len == null || len > arr.length) && (len = arr.length);
|
|
34094
34588
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -34512,7 +35006,7 @@ var require_Select_native = __commonJS({
|
|
|
34512
35006
|
});
|
|
34513
35007
|
|
|
34514
35008
|
// ../select/dist/cjs/index.native.js
|
|
34515
|
-
var
|
|
35009
|
+
var require_index_native65 = __commonJS({
|
|
34516
35010
|
"../select/dist/cjs/index.native.js"(exports2, module2) {
|
|
34517
35011
|
"use strict";
|
|
34518
35012
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -35718,7 +36212,7 @@ var require_Slider_native = __commonJS({
|
|
|
35718
36212
|
});
|
|
35719
36213
|
|
|
35720
36214
|
// ../slider/dist/cjs/index.native.js
|
|
35721
|
-
var
|
|
36215
|
+
var require_index_native66 = __commonJS({
|
|
35722
36216
|
"../slider/dist/cjs/index.native.js"(exports2, module2) {
|
|
35723
36217
|
"use strict";
|
|
35724
36218
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -36014,7 +36508,7 @@ var require_useSwitch_native = __commonJS({
|
|
|
36014
36508
|
});
|
|
36015
36509
|
|
|
36016
36510
|
// ../switch-headless/dist/cjs/index.native.js
|
|
36017
|
-
var
|
|
36511
|
+
var require_index_native67 = __commonJS({
|
|
36018
36512
|
"../switch-headless/dist/cjs/index.native.js"(exports2, module2) {
|
|
36019
36513
|
"use strict";
|
|
36020
36514
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -36289,7 +36783,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
36289
36783
|
}
|
|
36290
36784
|
});
|
|
36291
36785
|
module2.exports = __toCommonJS2(createSwitch_exports);
|
|
36292
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_core12 = require_index_native16(), import_switch_headless =
|
|
36786
|
+
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();
|
|
36293
36787
|
function _array_like_to_array2(arr, len) {
|
|
36294
36788
|
(len == null || len > arr.length) && (len = arr.length);
|
|
36295
36789
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -36496,7 +36990,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
36496
36990
|
});
|
|
36497
36991
|
|
|
36498
36992
|
// ../switch/dist/cjs/index.native.js
|
|
36499
|
-
var
|
|
36993
|
+
var require_index_native68 = __commonJS({
|
|
36500
36994
|
"../switch/dist/cjs/index.native.js"(exports2, module2) {
|
|
36501
36995
|
"use strict";
|
|
36502
36996
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -36619,7 +37113,7 @@ var require_Tabs_native = __commonJS({
|
|
|
36619
37113
|
}
|
|
36620
37114
|
});
|
|
36621
37115
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
36622
|
-
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 =
|
|
37116
|
+
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"));
|
|
36623
37117
|
function _array_like_to_array2(arr, len) {
|
|
36624
37118
|
(len == null || len > arr.length) && (len = arr.length);
|
|
36625
37119
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -36970,7 +37464,7 @@ var require_Tabs_native = __commonJS({
|
|
|
36970
37464
|
});
|
|
36971
37465
|
|
|
36972
37466
|
// ../tabs/dist/cjs/index.native.js
|
|
36973
|
-
var
|
|
37467
|
+
var require_index_native69 = __commonJS({
|
|
36974
37468
|
"../tabs/dist/cjs/index.native.js"(exports2, module2) {
|
|
36975
37469
|
"use strict";
|
|
36976
37470
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -37464,7 +37958,7 @@ var require_replaceTheme_native = __commonJS({
|
|
|
37464
37958
|
});
|
|
37465
37959
|
|
|
37466
37960
|
// ../theme/dist/cjs/index.native.js
|
|
37467
|
-
var
|
|
37961
|
+
var require_index_native70 = __commonJS({
|
|
37468
37962
|
"../theme/dist/cjs/index.native.js"(exports2, module2) {
|
|
37469
37963
|
"use strict";
|
|
37470
37964
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -37830,7 +38324,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
37830
38324
|
}
|
|
37831
38325
|
});
|
|
37832
38326
|
module2.exports = __toCommonJS2(ToggleGroup_exports);
|
|
37833
|
-
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 =
|
|
38327
|
+
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();
|
|
37834
38328
|
function _array_like_to_array2(arr, len) {
|
|
37835
38329
|
(len == null || len > arr.length) && (len = arr.length);
|
|
37836
38330
|
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
@@ -38169,7 +38663,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
38169
38663
|
});
|
|
38170
38664
|
|
|
38171
38665
|
// ../toggle-group/dist/cjs/index.native.js
|
|
38172
|
-
var
|
|
38666
|
+
var require_index_native71 = __commonJS({
|
|
38173
38667
|
"../toggle-group/dist/cjs/index.native.js"(exports2, module2) {
|
|
38174
38668
|
"use strict";
|
|
38175
38669
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -38322,7 +38816,7 @@ var require_TooltipSimple_native = __commonJS({
|
|
|
38322
38816
|
});
|
|
38323
38817
|
|
|
38324
38818
|
// ../tooltip/dist/cjs/index.native.js
|
|
38325
|
-
var
|
|
38819
|
+
var require_index_native72 = __commonJS({
|
|
38326
38820
|
"../tooltip/dist/cjs/index.native.js"(exports2, module2) {
|
|
38327
38821
|
"use strict";
|
|
38328
38822
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -38364,7 +38858,7 @@ var require_index_native71 = __commonJS({
|
|
|
38364
38858
|
});
|
|
38365
38859
|
|
|
38366
38860
|
// ../use-window-dimensions/dist/cjs/index.native.js
|
|
38367
|
-
var
|
|
38861
|
+
var require_index_native73 = __commonJS({
|
|
38368
38862
|
"../use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
38369
38863
|
"use strict";
|
|
38370
38864
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
@@ -38523,7 +39017,7 @@ var require_VisuallyHidden_native = __commonJS({
|
|
|
38523
39017
|
});
|
|
38524
39018
|
|
|
38525
39019
|
// ../visually-hidden/dist/cjs/index.native.js
|
|
38526
|
-
var
|
|
39020
|
+
var require_index_native74 = __commonJS({
|
|
38527
39021
|
"../visually-hidden/dist/cjs/index.native.js"(exports2, module2) {
|
|
38528
39022
|
"use strict";
|
|
38529
39023
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = function(to, from, except, desc) {
|
|
@@ -38663,25 +39157,25 @@ __reExport(src_exports, __toESM(require_index_native58()), module.exports);
|
|
|
38663
39157
|
__reExport(src_exports, __toESM(require_index_native57()), module.exports);
|
|
38664
39158
|
__reExport(src_exports, __toESM(require_index_native30()), module.exports);
|
|
38665
39159
|
__reExport(src_exports, __toESM(require_index_native59()), module.exports);
|
|
38666
|
-
__reExport(src_exports, __toESM(require_index_native61()), module.exports);
|
|
38667
|
-
__reExport(src_exports, __toESM(require_index_native33()), module.exports);
|
|
38668
|
-
__reExport(src_exports, __toESM(require_index_native64()), module.exports);
|
|
38669
39160
|
__reExport(src_exports, __toESM(require_index_native62()), module.exports);
|
|
39161
|
+
__reExport(src_exports, __toESM(require_index_native33()), module.exports);
|
|
39162
|
+
__reExport(src_exports, __toESM(require_index_native65()), module.exports);
|
|
39163
|
+
__reExport(src_exports, __toESM(require_index_native63()), module.exports);
|
|
38670
39164
|
__reExport(src_exports, __toESM(require_index_native38()), module.exports);
|
|
38671
39165
|
__reExport(src_exports, __toESM(require_index_native34()), module.exports);
|
|
38672
|
-
__reExport(src_exports, __toESM(
|
|
39166
|
+
__reExport(src_exports, __toESM(require_index_native66()), module.exports);
|
|
38673
39167
|
__reExport(src_exports, __toESM(require_index_native20()), module.exports);
|
|
38674
|
-
__reExport(src_exports, __toESM(require_index_native67()), module.exports);
|
|
38675
39168
|
__reExport(src_exports, __toESM(require_index_native68()), module.exports);
|
|
38676
|
-
__reExport(src_exports, __toESM(require_index_native22()), module.exports);
|
|
38677
39169
|
__reExport(src_exports, __toESM(require_index_native69()), module.exports);
|
|
39170
|
+
__reExport(src_exports, __toESM(require_index_native22()), module.exports);
|
|
38678
39171
|
__reExport(src_exports, __toESM(require_index_native70()), module.exports);
|
|
38679
39172
|
__reExport(src_exports, __toESM(require_index_native71()), module.exports);
|
|
39173
|
+
__reExport(src_exports, __toESM(require_index_native72()), module.exports);
|
|
38680
39174
|
__reExport(src_exports, __toESM(require_index_native9()), module.exports);
|
|
38681
|
-
__reExport(src_exports, __toESM(
|
|
39175
|
+
__reExport(src_exports, __toESM(require_index_native64()), module.exports);
|
|
38682
39176
|
__reExport(src_exports, __toESM(require_index_native()), module.exports);
|
|
38683
|
-
__reExport(src_exports, __toESM(require_index_native72()), module.exports);
|
|
38684
39177
|
__reExport(src_exports, __toESM(require_index_native73()), module.exports);
|
|
39178
|
+
__reExport(src_exports, __toESM(require_index_native74()), module.exports);
|
|
38685
39179
|
|
|
38686
39180
|
// src/createTamagui.ts
|
|
38687
39181
|
var import_core = __toESM(require_index_native16()), createTamagui = process.env.NODE_ENV !== "development" ? import_core.createTamagui : function(conf) {
|