tamagui 1.72.1 → 1.72.2
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 +1245 -197
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +1243 -195
- package/dist/test.native.js.map +3 -3
- package/package.json +52 -52
package/dist/native.js
CHANGED
|
@@ -727,8 +727,8 @@ var require_clamp_native = __commonJS({
|
|
|
727
727
|
clamp: () => clamp
|
|
728
728
|
});
|
|
729
729
|
module2.exports = __toCommonJS2(clamp_exports);
|
|
730
|
-
function clamp(value, [
|
|
731
|
-
return Math.min(
|
|
730
|
+
function clamp(value, [min2, max2]) {
|
|
731
|
+
return Math.min(max2, Math.max(min2, value));
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
});
|
|
@@ -4040,17 +4040,17 @@ var require_ThemeManager_native = __commonJS({
|
|
|
4040
4040
|
props.reset && isDirectParentAComponentTheme && allComponentThemes.shift();
|
|
4041
4041
|
let base = parentName.split(import_constants2.THEME_NAME_SEPARATOR), lastSegment = base[base.length - 1], isParentComponentTheme = parentName && lastSegment[0].toUpperCase() === lastSegment[0];
|
|
4042
4042
|
isParentComponentTheme && base.pop();
|
|
4043
|
-
let parentBaseTheme = isParentComponentTheme ? base.slice(0, base.length).join(import_constants2.THEME_NAME_SEPARATOR) : parentName,
|
|
4043
|
+
let parentBaseTheme = isParentComponentTheme ? base.slice(0, base.length).join(import_constants2.THEME_NAME_SEPARATOR) : parentName, max2 = base.length, min2 = componentName && !nextName ? max2 : 0;
|
|
4044
4044
|
process.env.NODE_ENV === "development" && typeof props.debug == "string" && (console.groupCollapsed("ThemeManager.getState()"), console.log({
|
|
4045
4045
|
props,
|
|
4046
4046
|
parentName,
|
|
4047
4047
|
parentBaseTheme,
|
|
4048
4048
|
base,
|
|
4049
|
-
min,
|
|
4050
|
-
max,
|
|
4049
|
+
min: min2,
|
|
4050
|
+
max: max2,
|
|
4051
4051
|
isParentComponentTheme
|
|
4052
4052
|
}));
|
|
4053
|
-
for (let i =
|
|
4053
|
+
for (let i = max2; i >= min2; i--) {
|
|
4054
4054
|
let prefix = base.slice(0, i).join(import_constants2.THEME_NAME_SEPARATOR);
|
|
4055
4055
|
props.inverse && (prefix = inverseThemeName(prefix));
|
|
4056
4056
|
let potentials = [];
|
|
@@ -5100,9 +5100,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5100
5100
|
},
|
|
5101
5101
|
variants: {
|
|
5102
5102
|
size: {
|
|
5103
|
-
"...size": (
|
|
5104
|
-
|
|
5105
|
-
let sizePx = tokens.space[
|
|
5103
|
+
"...size": (size2, { tokens }) => {
|
|
5104
|
+
size2 = size2 === !0 ? "$true" : size2;
|
|
5105
|
+
let sizePx = tokens.space[size2] ?? size2;
|
|
5106
5106
|
return {
|
|
5107
5107
|
width: sizePx,
|
|
5108
5108
|
height: sizePx,
|
|
@@ -6613,45 +6613,6 @@ var require_index_native9 = __commonJS({
|
|
|
6613
6613
|
}
|
|
6614
6614
|
});
|
|
6615
6615
|
|
|
6616
|
-
// ../fake-react-native/index.js
|
|
6617
|
-
var require_fake_react_native = __commonJS({
|
|
6618
|
-
"../fake-react-native/index.js"(exports, module2) {
|
|
6619
|
-
module2.exports = proxyWorm();
|
|
6620
|
-
function proxyWorm() {
|
|
6621
|
-
return new Proxy(
|
|
6622
|
-
{
|
|
6623
|
-
StyleSheet: {
|
|
6624
|
-
create() {
|
|
6625
|
-
}
|
|
6626
|
-
},
|
|
6627
|
-
Platform: {
|
|
6628
|
-
OS: "web"
|
|
6629
|
-
},
|
|
6630
|
-
Image: "Image",
|
|
6631
|
-
View: "View",
|
|
6632
|
-
Text: "Text",
|
|
6633
|
-
TextInput: "TextInput",
|
|
6634
|
-
ScrollView: "ScrollView",
|
|
6635
|
-
Dimensions: {
|
|
6636
|
-
addEventListener(cb) {
|
|
6637
|
-
}
|
|
6638
|
-
},
|
|
6639
|
-
addPoolingTo() {
|
|
6640
|
-
}
|
|
6641
|
-
},
|
|
6642
|
-
{
|
|
6643
|
-
get(target, key) {
|
|
6644
|
-
return Reflect.get(target, key) || proxyWorm();
|
|
6645
|
-
},
|
|
6646
|
-
apply() {
|
|
6647
|
-
return proxyWorm();
|
|
6648
|
-
}
|
|
6649
|
-
}
|
|
6650
|
-
);
|
|
6651
|
-
}
|
|
6652
|
-
}
|
|
6653
|
-
});
|
|
6654
|
-
|
|
6655
6616
|
// ../core/dist/cjs/getBaseViews.native.js
|
|
6656
6617
|
var require_getBaseViews_native = __commonJS({
|
|
6657
6618
|
"../core/dist/cjs/getBaseViews.native.js"(exports, module2) {
|
|
@@ -6670,7 +6631,7 @@ var require_getBaseViews_native = __commonJS({
|
|
|
6670
6631
|
});
|
|
6671
6632
|
module2.exports = __toCommonJS2(getBaseViews_native_exports);
|
|
6672
6633
|
function getBaseViews() {
|
|
6673
|
-
let native =
|
|
6634
|
+
let native = require("react-native");
|
|
6674
6635
|
return {
|
|
6675
6636
|
View: native.View || native.default.View,
|
|
6676
6637
|
Text: native.Text || native.default.Text
|
|
@@ -6819,6 +6780,45 @@ var require_usePlatformMethods_native = __commonJS({
|
|
|
6819
6780
|
}
|
|
6820
6781
|
});
|
|
6821
6782
|
|
|
6783
|
+
// ../fake-react-native/index.js
|
|
6784
|
+
var require_fake_react_native = __commonJS({
|
|
6785
|
+
"../fake-react-native/index.js"(exports, module2) {
|
|
6786
|
+
module2.exports = proxyWorm();
|
|
6787
|
+
function proxyWorm() {
|
|
6788
|
+
return new Proxy(
|
|
6789
|
+
{
|
|
6790
|
+
StyleSheet: {
|
|
6791
|
+
create() {
|
|
6792
|
+
}
|
|
6793
|
+
},
|
|
6794
|
+
Platform: {
|
|
6795
|
+
OS: "web"
|
|
6796
|
+
},
|
|
6797
|
+
Image: "Image",
|
|
6798
|
+
View: "View",
|
|
6799
|
+
Text: "Text",
|
|
6800
|
+
TextInput: "TextInput",
|
|
6801
|
+
ScrollView: "ScrollView",
|
|
6802
|
+
Dimensions: {
|
|
6803
|
+
addEventListener(cb) {
|
|
6804
|
+
}
|
|
6805
|
+
},
|
|
6806
|
+
addPoolingTo() {
|
|
6807
|
+
}
|
|
6808
|
+
},
|
|
6809
|
+
{
|
|
6810
|
+
get(target, key) {
|
|
6811
|
+
return Reflect.get(target, key) || proxyWorm();
|
|
6812
|
+
},
|
|
6813
|
+
apply() {
|
|
6814
|
+
return proxyWorm();
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
);
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
});
|
|
6821
|
+
|
|
6822
6822
|
// ../fake-react-native/idFn.js
|
|
6823
6823
|
var idFn_exports = {};
|
|
6824
6824
|
__export(idFn_exports, {
|
|
@@ -7621,10 +7621,10 @@ var require_getElevation_native = __commonJS({
|
|
|
7621
7621
|
getSizedElevation: () => getSizedElevation
|
|
7622
7622
|
});
|
|
7623
7623
|
module2.exports = __toCommonJS2(getElevation_exports);
|
|
7624
|
-
var import_core12 = require_index_native10(), getElevation = (
|
|
7625
|
-
if (!
|
|
7624
|
+
var import_core12 = require_index_native10(), getElevation = (size2, extras) => {
|
|
7625
|
+
if (!size2)
|
|
7626
7626
|
return;
|
|
7627
|
-
let { tokens } = extras, token = tokens.size[
|
|
7627
|
+
let { tokens } = extras, token = tokens.size[size2], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size2;
|
|
7628
7628
|
return getSizedElevation(sizeNum, extras);
|
|
7629
7629
|
}, getSizedElevation = (val, { theme, tokens }) => {
|
|
7630
7630
|
let num = 0;
|
|
@@ -7724,7 +7724,7 @@ var require_index_native17 = __commonJS({
|
|
|
7724
7724
|
var import_web = require_index_native9(), import_web2 = require_index_native9(), defaultOptions = {
|
|
7725
7725
|
shift: 0,
|
|
7726
7726
|
bounds: [0]
|
|
7727
|
-
}, getSize = (
|
|
7727
|
+
}, getSize = (size2, options) => getTokenRelative("size", size2, options), getSpace2 = (space, options) => getTokenRelative("space", space, options), getRadius = (radius, options) => getTokenRelative("radius", radius, options), cacheVariables = {}, cacheWholeVariables = {}, cacheKeys = {}, cacheWholeKeys = {}, stepTokenUpOrDown = (type, current, options = defaultOptions) => {
|
|
7728
7728
|
var _a, _b;
|
|
7729
7729
|
let tokens = (0, import_web2.getTokens)({ prefixed: !0 })[type];
|
|
7730
7730
|
if (!(type in cacheVariables)) {
|
|
@@ -7736,9 +7736,9 @@ var require_index_native17 = __commonJS({
|
|
|
7736
7736
|
for (let token of sortedExcludingHalfSteps)
|
|
7737
7737
|
cacheWholeKeys[type].push(token.key), cacheWholeVariables[type].push(token);
|
|
7738
7738
|
}
|
|
7739
|
-
let isString = typeof current == "string", tokensOrdered = (options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables)[type],
|
|
7740
|
-
|
|
7741
|
-
let index = Math.min(
|
|
7739
|
+
let isString = typeof current == "string", tokensOrdered = (options.excludeHalfSteps ? isString ? cacheWholeKeys : cacheWholeVariables : isString ? cacheKeys : cacheVariables)[type], min2 = ((_a = options.bounds) == null ? void 0 : _a[0]) ?? 0, max2 = ((_b = options.bounds) == null ? void 0 : _b[1]) ?? tokensOrdered.length - 1, currentIndex = tokensOrdered.indexOf(current), shift2 = options.shift || 0;
|
|
7740
|
+
shift2 && (current === "$true" || (0, import_web.isVariable)(current) && current.name === "true") && (shift2 += shift2 > 0 ? 1 : -1);
|
|
7741
|
+
let index = Math.min(max2, Math.max(min2, currentIndex + shift2)), found = tokensOrdered[index];
|
|
7742
7742
|
return (typeof found == "string" ? tokens[found] : found) || tokens.$true;
|
|
7743
7743
|
}, getTokenRelative = stepTokenUpOrDown;
|
|
7744
7744
|
}
|
|
@@ -7846,15 +7846,15 @@ var require_variants_native = __commonJS({
|
|
|
7846
7846
|
true: (_, { props, tokens }) => {
|
|
7847
7847
|
if (!("size" in props))
|
|
7848
7848
|
return circularStyle;
|
|
7849
|
-
let
|
|
7849
|
+
let size2 = tokens.size[props.size];
|
|
7850
7850
|
return {
|
|
7851
7851
|
...circularStyle,
|
|
7852
|
-
width:
|
|
7853
|
-
height:
|
|
7854
|
-
maxWidth:
|
|
7855
|
-
maxHeight:
|
|
7856
|
-
minWidth:
|
|
7857
|
-
minHeight:
|
|
7852
|
+
width: size2,
|
|
7853
|
+
height: size2,
|
|
7854
|
+
maxWidth: size2,
|
|
7855
|
+
maxHeight: size2,
|
|
7856
|
+
minWidth: size2,
|
|
7857
|
+
minHeight: size2
|
|
7858
7858
|
};
|
|
7859
7859
|
}
|
|
7860
7860
|
}, hoverTheme = {
|
|
@@ -8085,8 +8085,8 @@ var require_SizableText_native = __commonJS({
|
|
|
8085
8085
|
};
|
|
8086
8086
|
variants.fontFamily = {
|
|
8087
8087
|
"...": (_, extras) => {
|
|
8088
|
-
let
|
|
8089
|
-
return (0, import_get_font_sized2.getFontSized)(
|
|
8088
|
+
let size2 = extras.props.size || "$true";
|
|
8089
|
+
return (0, import_get_font_sized2.getFontSized)(size2, extras);
|
|
8090
8090
|
}
|
|
8091
8091
|
};
|
|
8092
8092
|
var SizableText2 = (0, import_web.styled)(import_web.Text, {
|
|
@@ -8217,7 +8217,7 @@ var require_wrapChildrenInText_native = __commonJS({
|
|
|
8217
8217
|
let {
|
|
8218
8218
|
children,
|
|
8219
8219
|
textProps,
|
|
8220
|
-
size,
|
|
8220
|
+
size: size2,
|
|
8221
8221
|
noTextWrap,
|
|
8222
8222
|
color,
|
|
8223
8223
|
fontFamily,
|
|
@@ -8233,7 +8233,7 @@ var require_wrapChildrenInText_native = __commonJS({
|
|
|
8233
8233
|
let props = {
|
|
8234
8234
|
...extraProps
|
|
8235
8235
|
};
|
|
8236
|
-
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign),
|
|
8236
|
+
return color && (props.color = color), fontFamily && (props.fontFamily = fontFamily), fontSize && (props.fontSize = fontSize), fontWeight && (props.fontWeight = fontWeight), letterSpacing && (props.letterSpacing = letterSpacing), textAlign && (props.textAlign = textAlign), size2 && (props.size = size2), fontStyle && (props.fontStyle = fontStyle), maxFontSizeMultiplier && (props.maxFontSizeMultiplier = maxFontSizeMultiplier), import_react2.default.Children.toArray(children).map((child, index) => typeof child == "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TextComponent, { ...props, ...textProps, children: child }, index) : child);
|
|
8237
8237
|
}
|
|
8238
8238
|
}
|
|
8239
8239
|
});
|
|
@@ -9134,8 +9134,8 @@ var require_Portal_native = __commonJS({
|
|
|
9134
9134
|
Portal: () => Portal
|
|
9135
9135
|
});
|
|
9136
9136
|
module2.exports = __toCommonJS2(Portal_native_exports);
|
|
9137
|
-
var import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 =
|
|
9138
|
-
isFabric ? createPortal =
|
|
9137
|
+
var import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_GorhomPortal = require_GorhomPortal_native(), import_jsx_runtime6 = require("react/jsx-runtime"), isFabric = global == null ? void 0 : global.nativeFabricUIManager, createPortal;
|
|
9138
|
+
isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
|
|
9139
9139
|
var Portal = (props) => {
|
|
9140
9140
|
let rootTag = React2.useContext(import_react_native4.RootTagContext), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
9141
9141
|
import_stacks3.YStack,
|
|
@@ -9498,7 +9498,7 @@ var require_nativeSheet_native = __commonJS({
|
|
|
9498
9498
|
setupNativeSheet: () => setupNativeSheet2
|
|
9499
9499
|
});
|
|
9500
9500
|
module2.exports = __toCommonJS2(nativeSheet_exports);
|
|
9501
|
-
var import_stacks3 = require_index_native19(), import_react2 = require("react"), import_react_native4 =
|
|
9501
|
+
var import_stacks3 = require_index_native19(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), nativeSheets = {
|
|
9502
9502
|
ios: null
|
|
9503
9503
|
};
|
|
9504
9504
|
function getNativeSheet(platform) {
|
|
@@ -9546,7 +9546,7 @@ var require_useKeyboardVisible_native = __commonJS({
|
|
|
9546
9546
|
useKeyboardVisible: () => useKeyboardVisible2
|
|
9547
9547
|
});
|
|
9548
9548
|
module2.exports = __toCommonJS2(useKeyboardVisible_exports);
|
|
9549
|
-
var import_react2 = require("react"), import_react_native4 =
|
|
9549
|
+
var import_react2 = require("react"), import_react_native4 = require("react-native"), useKeyboardVisible2 = () => {
|
|
9550
9550
|
let [isKeyboardVisible, setKeyboardVisible] = (0, import_react2.useState)(!1);
|
|
9551
9551
|
return (0, import_react2.useEffect)(() => {
|
|
9552
9552
|
let keyboardDidShowListener = import_react_native4.Keyboard.addListener("keyboardDidShow", () => {
|
|
@@ -9651,7 +9651,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
9651
9651
|
SheetImplementationCustom: () => SheetImplementationCustom
|
|
9652
9652
|
});
|
|
9653
9653
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
9654
|
-
var import_adapt = require_index_native24(), import_animate_presence = require_index_native13(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_portal2 = require_index_native29(), import_use_keyboard_visible = require_index_native32(), import_react2 = require("react"), import_react_native4 =
|
|
9654
|
+
var import_adapt = require_index_native24(), import_animate_presence = require_index_native13(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_portal2 = require_index_native29(), import_use_keyboard_visible = require_index_native32(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants = require_constants_native2(), import_contexts = require_contexts_native(), import_helpers = require_helpers_native(), import_SheetContext = require_SheetContext_native(), import_useSheetOpenState = require_useSheetOpenState_native(), import_useSheetProviderProps = require_useSheetProviderProps_native(), import_jsx_runtime6 = require("react/jsx-runtime"), hiddenSize = 10000.1, SheetImplementationCustom = (0, import_core12.themeable)(
|
|
9655
9655
|
(0, import_react2.forwardRef)(function(props, forwardedRef) {
|
|
9656
9656
|
let parentSheet = (0, import_react2.useContext)(import_contexts.ParentSheetContext), {
|
|
9657
9657
|
animation,
|
|
@@ -9920,7 +9920,7 @@ var require_ScrollView_native = __commonJS({
|
|
|
9920
9920
|
ScrollView: () => ScrollView
|
|
9921
9921
|
});
|
|
9922
9922
|
module2.exports = __toCommonJS2(ScrollView_exports);
|
|
9923
|
-
var import_stacks3 = require_index_native19(), import_web = require_index_native9(), import_react_native4 =
|
|
9923
|
+
var import_stacks3 = require_index_native19(), import_web = require_index_native9(), import_react_native4 = require("react-native");
|
|
9924
9924
|
(0, import_web.setupReactNative)({
|
|
9925
9925
|
ScrollView: import_react_native4.ScrollView
|
|
9926
9926
|
});
|
|
@@ -10074,7 +10074,7 @@ var require_createSheet_native = __commonJS({
|
|
|
10074
10074
|
createSheet: () => createSheet
|
|
10075
10075
|
});
|
|
10076
10076
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
10077
|
-
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_remove_scroll = require_index_native30(), import_react2 = require("react"), import_react_native4 =
|
|
10077
|
+
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_remove_scroll = require_index_native30(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants = require_constants_native2(), import_nativeSheet = require_nativeSheet_native(), import_SheetContext = require_SheetContext_native(), import_SheetImplementationCustom = require_SheetImplementationCustom_native(), import_SheetScrollView = require_SheetScrollView_native(), import_useSheetController = require_useSheetController_native(), import_useSheetOffscreenSize = require_useSheetOffscreenSize_native(), import_jsx_runtime6 = (
|
|
10078
10078
|
// @ts-ignore
|
|
10079
10079
|
require("react/jsx-runtime")
|
|
10080
10080
|
);
|
|
@@ -10086,7 +10086,7 @@ var require_createSheet_native = __commonJS({
|
|
|
10086
10086
|
Handle,
|
|
10087
10087
|
{
|
|
10088
10088
|
onPress: () => {
|
|
10089
|
-
let
|
|
10089
|
+
let max2 = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max2;
|
|
10090
10090
|
context.setPosition(nextPos);
|
|
10091
10091
|
},
|
|
10092
10092
|
open: context.open,
|
|
@@ -10939,7 +10939,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
10939
10939
|
createAlertDialogScope: () => createAlertDialogScope
|
|
10940
10940
|
});
|
|
10941
10941
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
10942
|
-
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_dialog = require_index_native35(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_native4 =
|
|
10942
|
+
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_dialog = require_index_native35(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime"), ROOT_NAME = "AlertDialog", [createAlertDialogContext, createAlertDialogScope] = (0, import_create_context.createContextScope)(ROOT_NAME, [
|
|
10943
10943
|
import_dialog.createDialogScope
|
|
10944
10944
|
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
10945
10945
|
name: TRIGGER_NAME
|
|
@@ -11155,7 +11155,7 @@ var require_Image_native = __commonJS({
|
|
|
11155
11155
|
Image: () => Image
|
|
11156
11156
|
});
|
|
11157
11157
|
module2.exports = __toCommonJS2(Image_exports);
|
|
11158
|
-
var import_core12 = require_index_native10(), import_react2 = require("react"), import_react_native4 =
|
|
11158
|
+
var import_core12 = require_index_native10(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime");
|
|
11159
11159
|
(0, import_core12.setupReactNative)({
|
|
11160
11160
|
Image: import_react_native4.Image
|
|
11161
11161
|
});
|
|
@@ -11214,8 +11214,8 @@ var require_getShapeSize_native = __commonJS({
|
|
|
11214
11214
|
getShapeSize: () => getShapeSize
|
|
11215
11215
|
});
|
|
11216
11216
|
module2.exports = __toCommonJS2(getShapeSize_exports);
|
|
11217
|
-
var getShapeSize = (
|
|
11218
|
-
let width = tokens.size[
|
|
11217
|
+
var getShapeSize = (size2, { tokens }) => {
|
|
11218
|
+
let width = tokens.size[size2] ?? size2, height = tokens.size[size2] ?? size2;
|
|
11219
11219
|
return {
|
|
11220
11220
|
width,
|
|
11221
11221
|
height,
|
|
@@ -11391,15 +11391,15 @@ var require_Avatar_native = __commonJS({
|
|
|
11391
11391
|
}), Avatar = (0, import_core12.withStaticProperties)(
|
|
11392
11392
|
React2.forwardRef(
|
|
11393
11393
|
(props, forwardedRef) => {
|
|
11394
|
-
let { __scopeAvatar, size = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React2.useState("idle");
|
|
11394
|
+
let { __scopeAvatar, size: size2 = "$true", ...avatarProps } = props, [imageLoadingStatus, setImageLoadingStatus] = React2.useState("idle");
|
|
11395
11395
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
11396
11396
|
AvatarProvider,
|
|
11397
11397
|
{
|
|
11398
|
-
size,
|
|
11398
|
+
size: size2,
|
|
11399
11399
|
scope: __scopeAvatar,
|
|
11400
11400
|
imageLoadingStatus,
|
|
11401
11401
|
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
11402
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, { size, ...avatarProps, ref: forwardedRef })
|
|
11402
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AvatarFrame, { size: size2, ...avatarProps, ref: forwardedRef })
|
|
11403
11403
|
}
|
|
11404
11404
|
);
|
|
11405
11405
|
}
|
|
@@ -11456,13 +11456,13 @@ var require_getFontSize_native = __commonJS({
|
|
|
11456
11456
|
}, getFontSizeToken = (inSize, opts) => {
|
|
11457
11457
|
if (typeof inSize == "number")
|
|
11458
11458
|
return null;
|
|
11459
|
-
let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core12.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size,
|
|
11460
|
-
foundIndex === -1 &&
|
|
11459
|
+
let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0, import_core12.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size, size2 = inSize || ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
|
|
11460
|
+
foundIndex === -1 && size2.endsWith(".5") && (foundIndex = sizeTokens.indexOf(size2.replace(".5", ""))), process.env.NODE_ENV === "development" && foundIndex === -1 && console.warn("No font size found", size2, opts, "in size tokens", sizeTokens);
|
|
11461
11461
|
let tokenIndex = Math.min(
|
|
11462
11462
|
Math.max(0, foundIndex + relativeSize),
|
|
11463
11463
|
sizeTokens.length - 1
|
|
11464
11464
|
);
|
|
11465
|
-
return sizeTokens[tokenIndex] ??
|
|
11465
|
+
return sizeTokens[tokenIndex] ?? size2;
|
|
11466
11466
|
};
|
|
11467
11467
|
}
|
|
11468
11468
|
});
|
|
@@ -11677,7 +11677,7 @@ var require_Button_native = __commonJS({
|
|
|
11677
11677
|
unstyled: !1
|
|
11678
11678
|
}
|
|
11679
11679
|
}), ButtonIcon = (props) => {
|
|
11680
|
-
let { children, scaleIcon = 1 } = props, { size, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof
|
|
11680
|
+
let { children, scaleIcon = 1 } = props, { size: size2, color } = (0, import_react2.useContext)(ButtonContext), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon;
|
|
11681
11681
|
return (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color })(children);
|
|
11682
11682
|
}, ButtonComponent = ButtonFrame.styleable(function(props, ref) {
|
|
11683
11683
|
let { props: buttonProps } = useButton(props);
|
|
@@ -11721,12 +11721,12 @@ var require_Button_native = __commonJS({
|
|
|
11721
11721
|
textAlign,
|
|
11722
11722
|
textProps,
|
|
11723
11723
|
...rest
|
|
11724
|
-
} = propsIn, isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn),
|
|
11724
|
+
} = propsIn, isNested = (0, import_react2.useContext)(ButtonNestingContext), propsActive = (0, import_web.useProps)(propsIn), size2 = propsActive.size || (propsActive.unstyled ? void 0 : "$true"), iconSize = (typeof size2 == "number" ? size2 * 0.5 : (0, import_font_size.getFontSize)(size2)) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = propsActive.space ?? (0, import_web.getVariableValue)(iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(
|
|
11725
11725
|
Text3,
|
|
11726
11726
|
propsActive,
|
|
11727
11727
|
Text3 === ButtonText && propsIn.unstyled !== !0 ? {
|
|
11728
11728
|
unstyled: !1,
|
|
11729
|
-
size
|
|
11729
|
+
size: size2
|
|
11730
11730
|
} : void 0
|
|
11731
11731
|
), inner = (0, import_web.spacedChildren)({
|
|
11732
11732
|
// a bit arbitrary but scaling to font size is necessary so long as button does
|
|
@@ -12368,7 +12368,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12368
12368
|
(0, import_get_token2.getSize)(propsActive.size ?? (styledContext == null ? void 0 : styledContext.size) ?? "$true", {
|
|
12369
12369
|
shift: sizeAdjust
|
|
12370
12370
|
})
|
|
12371
|
-
),
|
|
12371
|
+
), size2 = scaleSize ? Math.round(adjustedSize * scaleSize) : adjustedSize, labelId = (0, import_label.useLabelContext)(button), labelledBy = ariaLabelledby || labelId;
|
|
12372
12372
|
return React2.useEffect(() => {
|
|
12373
12373
|
if (props.id && !disabled)
|
|
12374
12374
|
return (0, import_focusable2.registerFocusable)(props.id, {
|
|
@@ -12394,8 +12394,8 @@ var require_Checkbox_native = __commonJS({
|
|
|
12394
12394
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
12395
12395
|
CheckboxFrame,
|
|
12396
12396
|
{
|
|
12397
|
-
width:
|
|
12398
|
-
height:
|
|
12397
|
+
width: size2,
|
|
12398
|
+
height: size2,
|
|
12399
12399
|
tag: "button",
|
|
12400
12400
|
role: "checkbox",
|
|
12401
12401
|
"aria-labelledby": labelledBy,
|
|
@@ -13101,7 +13101,7 @@ var require_Group_native = __commonJS({
|
|
|
13101
13101
|
useGroupItem: () => useGroupItem
|
|
13102
13102
|
});
|
|
13103
13103
|
module2.exports = __toCommonJS2(Group_exports);
|
|
13104
|
-
var import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_react2 = __toESM2(require("react")), import_react_native4 =
|
|
13104
|
+
var import_core12 = require_index_native10(), import_create_context = require_index_native25(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_react2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_reforest = require_dist(), import_jsx_runtime6 = require("react/jsx-runtime"), GROUP_NAME = "Group", [createGroupContext, createGroupScope] = (0, import_create_context.createContextScope)(GROUP_NAME), [GroupProvider, useGroupContext] = createGroupContext(GROUP_NAME), GroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
13105
13105
|
name: "GroupFrame",
|
|
13106
13106
|
variants: {
|
|
13107
13107
|
unstyled: {
|
|
@@ -13125,7 +13125,7 @@ var require_Group_native = __commonJS({
|
|
|
13125
13125
|
__scopeGroup,
|
|
13126
13126
|
children: childrenProp,
|
|
13127
13127
|
space,
|
|
13128
|
-
size = "$true",
|
|
13128
|
+
size: size2 = "$true",
|
|
13129
13129
|
spaceDirection,
|
|
13130
13130
|
separator,
|
|
13131
13131
|
scrollable,
|
|
@@ -13138,7 +13138,7 @@ var require_Group_native = __commonJS({
|
|
|
13138
13138
|
...restProps
|
|
13139
13139
|
} = (0, import_core12.getExpandedShorthands)(activeProps), vertical = orientation === "vertical", [itemChildrenCount, setItemChildrenCount] = (0, import_use_controllable_state.useControllableState)({
|
|
13140
13140
|
defaultProp: forceUseItem ? 1 : 0
|
|
13141
|
-
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (
|
|
13141
|
+
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size2 ? (0, import_core12.getVariableValue)((0, import_core12.getTokens)().radius[size2]) - 1 : void 0), disablePassBorderRadius = disablePassBorderRadiusProp ?? radius === void 0, childrenArray = import_react2.Children.toArray(childrenProp), children = isUsingItems ? import_react2.Children.toArray(childrenProp).filter(import_react2.isValidElement) : childrenArray.map((child, i) => {
|
|
13142
13142
|
if (!(0, import_react2.isValidElement)(child))
|
|
13143
13143
|
return child;
|
|
13144
13144
|
let disabled = child.props.disabled ?? disabledProp, isFirst = i === 0, isLast = i === childrenArray.length - 1, radiusStyles = disablePassBorderRadius === !0 ? null : getBorderRadius({
|
|
@@ -13181,7 +13181,7 @@ var require_Group_native = __commonJS({
|
|
|
13181
13181
|
GroupFrame,
|
|
13182
13182
|
{
|
|
13183
13183
|
ref,
|
|
13184
|
-
size,
|
|
13184
|
+
size: size2,
|
|
13185
13185
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
13186
13186
|
borderRadius,
|
|
13187
13187
|
...restProps,
|
|
@@ -13420,7 +13420,7 @@ var require_ListItem_native = __commonJS({
|
|
|
13420
13420
|
textAlign,
|
|
13421
13421
|
ellipse,
|
|
13422
13422
|
children
|
|
13423
|
-
},
|
|
13423
|
+
}, size2 = props.size || "$true", iconSize = (0, import_font_size.getFontSize)(size2) * scaleIcon, getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color }), [themedIcon, themedIconAfter] = [icon, iconAfter].map(getThemedIcon), spaceSize = (0, import_web.getVariableValue)((0, import_web.getTokens)().space[props.space] ?? iconSize) * scaleSpace, contents = (0, import_text2.wrapChildrenInText)(Text3, textProps);
|
|
13424
13424
|
return {
|
|
13425
13425
|
props: {
|
|
13426
13426
|
...rest,
|
|
@@ -13430,11 +13430,11 @@ var require_ListItem_native = __commonJS({
|
|
|
13430
13430
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_web.Spacer, { size: spaceSize })
|
|
13431
13431
|
] }) : null,
|
|
13432
13432
|
title || subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_stacks3.YStack, { flex: 1, children: [
|
|
13433
|
-
noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, { size, children: title }),
|
|
13433
|
+
noTextWrap === "all" ? title : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Title, { size: size2, children: title }),
|
|
13434
13434
|
subTitle ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: typeof subTitle == "string" && noTextWrap !== "all" ? (
|
|
13435
13435
|
// TODO can use theme but we need to standardize to alt themes
|
|
13436
13436
|
// or standardize on subtle colors in themes
|
|
13437
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, { unstyled, size, children: subTitle })
|
|
13437
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Subtitle, { unstyled, size: size2, children: subTitle })
|
|
13438
13438
|
) : subTitle }) : null,
|
|
13439
13439
|
contents
|
|
13440
13440
|
] }) : contents,
|
|
@@ -13532,6 +13532,1054 @@ var require_index_native52 = __commonJS({
|
|
|
13532
13532
|
}
|
|
13533
13533
|
});
|
|
13534
13534
|
|
|
13535
|
+
// ../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
|
|
13536
|
+
var floating_ui_core_esm_exports = {};
|
|
13537
|
+
__export(floating_ui_core_esm_exports, {
|
|
13538
|
+
arrow: () => arrow,
|
|
13539
|
+
autoPlacement: () => autoPlacement,
|
|
13540
|
+
computePosition: () => computePosition,
|
|
13541
|
+
detectOverflow: () => detectOverflow,
|
|
13542
|
+
flip: () => flip,
|
|
13543
|
+
hide: () => hide,
|
|
13544
|
+
inline: () => inline,
|
|
13545
|
+
limitShift: () => limitShift,
|
|
13546
|
+
offset: () => offset,
|
|
13547
|
+
rectToClientRect: () => rectToClientRect,
|
|
13548
|
+
shift: () => shift,
|
|
13549
|
+
size: () => size
|
|
13550
|
+
});
|
|
13551
|
+
function getAlignment(placement) {
|
|
13552
|
+
return placement.split("-")[1];
|
|
13553
|
+
}
|
|
13554
|
+
function getLengthFromAxis(axis) {
|
|
13555
|
+
return axis === "y" ? "height" : "width";
|
|
13556
|
+
}
|
|
13557
|
+
function getSide(placement) {
|
|
13558
|
+
return placement.split("-")[0];
|
|
13559
|
+
}
|
|
13560
|
+
function getMainAxisFromPlacement(placement) {
|
|
13561
|
+
return ["top", "bottom"].includes(getSide(placement)) ? "x" : "y";
|
|
13562
|
+
}
|
|
13563
|
+
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
13564
|
+
let {
|
|
13565
|
+
reference,
|
|
13566
|
+
floating
|
|
13567
|
+
} = _ref, commonX = reference.x + reference.width / 2 - floating.width / 2, commonY = reference.y + reference.height / 2 - floating.height / 2, mainAxis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(mainAxis), commonAlign = reference[length] / 2 - floating[length] / 2, side = getSide(placement), isVertical = mainAxis === "x", coords;
|
|
13568
|
+
switch (side) {
|
|
13569
|
+
case "top":
|
|
13570
|
+
coords = {
|
|
13571
|
+
x: commonX,
|
|
13572
|
+
y: reference.y - floating.height
|
|
13573
|
+
};
|
|
13574
|
+
break;
|
|
13575
|
+
case "bottom":
|
|
13576
|
+
coords = {
|
|
13577
|
+
x: commonX,
|
|
13578
|
+
y: reference.y + reference.height
|
|
13579
|
+
};
|
|
13580
|
+
break;
|
|
13581
|
+
case "right":
|
|
13582
|
+
coords = {
|
|
13583
|
+
x: reference.x + reference.width,
|
|
13584
|
+
y: commonY
|
|
13585
|
+
};
|
|
13586
|
+
break;
|
|
13587
|
+
case "left":
|
|
13588
|
+
coords = {
|
|
13589
|
+
x: reference.x - floating.width,
|
|
13590
|
+
y: commonY
|
|
13591
|
+
};
|
|
13592
|
+
break;
|
|
13593
|
+
default:
|
|
13594
|
+
coords = {
|
|
13595
|
+
x: reference.x,
|
|
13596
|
+
y: reference.y
|
|
13597
|
+
};
|
|
13598
|
+
}
|
|
13599
|
+
switch (getAlignment(placement)) {
|
|
13600
|
+
case "start":
|
|
13601
|
+
coords[mainAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
13602
|
+
break;
|
|
13603
|
+
case "end":
|
|
13604
|
+
coords[mainAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
13605
|
+
break;
|
|
13606
|
+
}
|
|
13607
|
+
return coords;
|
|
13608
|
+
}
|
|
13609
|
+
function evaluate(value, param) {
|
|
13610
|
+
return typeof value == "function" ? value(param) : value;
|
|
13611
|
+
}
|
|
13612
|
+
function expandPaddingObject(padding) {
|
|
13613
|
+
return {
|
|
13614
|
+
top: 0,
|
|
13615
|
+
right: 0,
|
|
13616
|
+
bottom: 0,
|
|
13617
|
+
left: 0,
|
|
13618
|
+
...padding
|
|
13619
|
+
};
|
|
13620
|
+
}
|
|
13621
|
+
function getSideObjectFromPadding(padding) {
|
|
13622
|
+
return typeof padding != "number" ? expandPaddingObject(padding) : {
|
|
13623
|
+
top: padding,
|
|
13624
|
+
right: padding,
|
|
13625
|
+
bottom: padding,
|
|
13626
|
+
left: padding
|
|
13627
|
+
};
|
|
13628
|
+
}
|
|
13629
|
+
function rectToClientRect(rect) {
|
|
13630
|
+
return {
|
|
13631
|
+
...rect,
|
|
13632
|
+
top: rect.y,
|
|
13633
|
+
left: rect.x,
|
|
13634
|
+
right: rect.x + rect.width,
|
|
13635
|
+
bottom: rect.y + rect.height
|
|
13636
|
+
};
|
|
13637
|
+
}
|
|
13638
|
+
async function detectOverflow(state, options) {
|
|
13639
|
+
var _await$platform$isEle;
|
|
13640
|
+
options === void 0 && (options = {});
|
|
13641
|
+
let {
|
|
13642
|
+
x,
|
|
13643
|
+
y,
|
|
13644
|
+
platform,
|
|
13645
|
+
rects,
|
|
13646
|
+
elements,
|
|
13647
|
+
strategy
|
|
13648
|
+
} = state, {
|
|
13649
|
+
boundary = "clippingAncestors",
|
|
13650
|
+
rootBoundary = "viewport",
|
|
13651
|
+
elementContext = "floating",
|
|
13652
|
+
altBoundary = !1,
|
|
13653
|
+
padding = 0
|
|
13654
|
+
} = evaluate(options, state), paddingObject = getSideObjectFromPadding(padding), element = elements[altBoundary ? elementContext === "floating" ? "reference" : "floating" : elementContext], clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
13655
|
+
element: (_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) == null || _await$platform$isEle ? element : element.contextElement || await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating)),
|
|
13656
|
+
boundary,
|
|
13657
|
+
rootBoundary,
|
|
13658
|
+
strategy
|
|
13659
|
+
})), rect = elementContext === "floating" ? {
|
|
13660
|
+
...rects.floating,
|
|
13661
|
+
x,
|
|
13662
|
+
y
|
|
13663
|
+
} : rects.reference, offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating)), offsetScale = await (platform.isElement == null ? void 0 : platform.isElement(offsetParent)) ? await (platform.getScale == null ? void 0 : platform.getScale(offsetParent)) || {
|
|
13664
|
+
x: 1,
|
|
13665
|
+
y: 1
|
|
13666
|
+
} : {
|
|
13667
|
+
x: 1,
|
|
13668
|
+
y: 1
|
|
13669
|
+
}, elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
13670
|
+
rect,
|
|
13671
|
+
offsetParent,
|
|
13672
|
+
strategy
|
|
13673
|
+
}) : rect);
|
|
13674
|
+
return {
|
|
13675
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
13676
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
13677
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
13678
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
13679
|
+
};
|
|
13680
|
+
}
|
|
13681
|
+
function within(min$1, value, max$1) {
|
|
13682
|
+
return max(min$1, min(value, max$1));
|
|
13683
|
+
}
|
|
13684
|
+
function getOppositePlacement(placement) {
|
|
13685
|
+
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
13686
|
+
}
|
|
13687
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
13688
|
+
rtl === void 0 && (rtl = !1);
|
|
13689
|
+
let alignment = getAlignment(placement), mainAxis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(mainAxis), mainAlignmentSide = mainAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
13690
|
+
return rects.reference[length] > rects.floating[length] && (mainAlignmentSide = getOppositePlacement(mainAlignmentSide)), {
|
|
13691
|
+
main: mainAlignmentSide,
|
|
13692
|
+
cross: getOppositePlacement(mainAlignmentSide)
|
|
13693
|
+
};
|
|
13694
|
+
}
|
|
13695
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
13696
|
+
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
13697
|
+
}
|
|
13698
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
13699
|
+
return (alignment ? [...allowedPlacements.filter((placement) => getAlignment(placement) === alignment), ...allowedPlacements.filter((placement) => getAlignment(placement) !== alignment)] : allowedPlacements.filter((placement) => getSide(placement) === placement)).filter((placement) => alignment ? getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : !1) : !0);
|
|
13700
|
+
}
|
|
13701
|
+
function getExpandedPlacements(placement) {
|
|
13702
|
+
let oppositePlacement = getOppositePlacement(placement);
|
|
13703
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
13704
|
+
}
|
|
13705
|
+
function getSideList(side, isStart, rtl) {
|
|
13706
|
+
let lr = ["left", "right"], rl = ["right", "left"], tb = ["top", "bottom"], bt = ["bottom", "top"];
|
|
13707
|
+
switch (side) {
|
|
13708
|
+
case "top":
|
|
13709
|
+
case "bottom":
|
|
13710
|
+
return rtl ? isStart ? rl : lr : isStart ? lr : rl;
|
|
13711
|
+
case "left":
|
|
13712
|
+
case "right":
|
|
13713
|
+
return isStart ? tb : bt;
|
|
13714
|
+
default:
|
|
13715
|
+
return [];
|
|
13716
|
+
}
|
|
13717
|
+
}
|
|
13718
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
13719
|
+
let alignment = getAlignment(placement), list = getSideList(getSide(placement), direction === "start", rtl);
|
|
13720
|
+
return alignment && (list = list.map((side) => side + "-" + alignment), flipAlignment && (list = list.concat(list.map(getOppositeAlignmentPlacement)))), list;
|
|
13721
|
+
}
|
|
13722
|
+
function getSideOffsets(overflow, rect) {
|
|
13723
|
+
return {
|
|
13724
|
+
top: overflow.top - rect.height,
|
|
13725
|
+
right: overflow.right - rect.width,
|
|
13726
|
+
bottom: overflow.bottom - rect.height,
|
|
13727
|
+
left: overflow.left - rect.width
|
|
13728
|
+
};
|
|
13729
|
+
}
|
|
13730
|
+
function isAnySideFullyClipped(overflow) {
|
|
13731
|
+
return sides.some((side) => overflow[side] >= 0);
|
|
13732
|
+
}
|
|
13733
|
+
function getBoundingRect(rects) {
|
|
13734
|
+
let minX = min(...rects.map((rect) => rect.left)), minY = min(...rects.map((rect) => rect.top)), maxX = max(...rects.map((rect) => rect.right)), maxY = max(...rects.map((rect) => rect.bottom));
|
|
13735
|
+
return {
|
|
13736
|
+
x: minX,
|
|
13737
|
+
y: minY,
|
|
13738
|
+
width: maxX - minX,
|
|
13739
|
+
height: maxY - minY
|
|
13740
|
+
};
|
|
13741
|
+
}
|
|
13742
|
+
function getRectsByLine(rects) {
|
|
13743
|
+
let sortedRects = rects.slice().sort((a, b) => a.y - b.y), groups = [], prevRect = null;
|
|
13744
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
|
13745
|
+
let rect = sortedRects[i];
|
|
13746
|
+
!prevRect || rect.y - prevRect.y > prevRect.height / 2 ? groups.push([rect]) : groups[groups.length - 1].push(rect), prevRect = rect;
|
|
13747
|
+
}
|
|
13748
|
+
return groups.map((rect) => rectToClientRect(getBoundingRect(rect)));
|
|
13749
|
+
}
|
|
13750
|
+
async function convertValueToCoords(state, options) {
|
|
13751
|
+
let {
|
|
13752
|
+
placement,
|
|
13753
|
+
platform,
|
|
13754
|
+
elements
|
|
13755
|
+
} = state, rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)), side = getSide(placement), alignment = getAlignment(placement), isVertical = getMainAxisFromPlacement(placement) === "x", mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1, crossAxisMulti = rtl && isVertical ? -1 : 1, rawValue = evaluate(options, state), {
|
|
13756
|
+
mainAxis,
|
|
13757
|
+
crossAxis,
|
|
13758
|
+
alignmentAxis
|
|
13759
|
+
} = typeof rawValue == "number" ? {
|
|
13760
|
+
mainAxis: rawValue,
|
|
13761
|
+
crossAxis: 0,
|
|
13762
|
+
alignmentAxis: null
|
|
13763
|
+
} : {
|
|
13764
|
+
mainAxis: 0,
|
|
13765
|
+
crossAxis: 0,
|
|
13766
|
+
alignmentAxis: null,
|
|
13767
|
+
...rawValue
|
|
13768
|
+
};
|
|
13769
|
+
return alignment && typeof alignmentAxis == "number" && (crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis), isVertical ? {
|
|
13770
|
+
x: crossAxis * crossAxisMulti,
|
|
13771
|
+
y: mainAxis * mainAxisMulti
|
|
13772
|
+
} : {
|
|
13773
|
+
x: mainAxis * mainAxisMulti,
|
|
13774
|
+
y: crossAxis * crossAxisMulti
|
|
13775
|
+
};
|
|
13776
|
+
}
|
|
13777
|
+
function getCrossAxis(axis) {
|
|
13778
|
+
return axis === "x" ? "y" : "x";
|
|
13779
|
+
}
|
|
13780
|
+
var computePosition, min, max, arrow, sides, allPlacements, oppositeSideMap, oppositeAlignmentMap, autoPlacement, flip, hide, inline, offset, shift, limitShift, size, init_floating_ui_core_esm = __esm({
|
|
13781
|
+
"../../node_modules/@floating-ui/core/dist/floating-ui.core.esm.js"() {
|
|
13782
|
+
computePosition = async (reference, floating, config) => {
|
|
13783
|
+
let {
|
|
13784
|
+
placement = "bottom",
|
|
13785
|
+
strategy = "absolute",
|
|
13786
|
+
middleware = [],
|
|
13787
|
+
platform
|
|
13788
|
+
} = config, validMiddleware = middleware.filter(Boolean), rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating)), rects = await platform.getElementRects({
|
|
13789
|
+
reference,
|
|
13790
|
+
floating,
|
|
13791
|
+
strategy
|
|
13792
|
+
}), {
|
|
13793
|
+
x,
|
|
13794
|
+
y
|
|
13795
|
+
} = computeCoordsFromPlacement(rects, placement, rtl), statefulPlacement = placement, middlewareData = {}, resetCount = 0;
|
|
13796
|
+
for (let i = 0; i < validMiddleware.length; i++) {
|
|
13797
|
+
let {
|
|
13798
|
+
name,
|
|
13799
|
+
fn
|
|
13800
|
+
} = validMiddleware[i], {
|
|
13801
|
+
x: nextX,
|
|
13802
|
+
y: nextY,
|
|
13803
|
+
data,
|
|
13804
|
+
reset
|
|
13805
|
+
} = await fn({
|
|
13806
|
+
x,
|
|
13807
|
+
y,
|
|
13808
|
+
initialPlacement: placement,
|
|
13809
|
+
placement: statefulPlacement,
|
|
13810
|
+
strategy,
|
|
13811
|
+
middlewareData,
|
|
13812
|
+
rects,
|
|
13813
|
+
platform,
|
|
13814
|
+
elements: {
|
|
13815
|
+
reference,
|
|
13816
|
+
floating
|
|
13817
|
+
}
|
|
13818
|
+
});
|
|
13819
|
+
if (x = nextX ?? x, y = nextY ?? y, middlewareData = {
|
|
13820
|
+
...middlewareData,
|
|
13821
|
+
[name]: {
|
|
13822
|
+
...middlewareData[name],
|
|
13823
|
+
...data
|
|
13824
|
+
}
|
|
13825
|
+
}, reset && resetCount <= 50) {
|
|
13826
|
+
resetCount++, typeof reset == "object" && (reset.placement && (statefulPlacement = reset.placement), reset.rects && (rects = reset.rects === !0 ? await platform.getElementRects({
|
|
13827
|
+
reference,
|
|
13828
|
+
floating,
|
|
13829
|
+
strategy
|
|
13830
|
+
}) : reset.rects), {
|
|
13831
|
+
x,
|
|
13832
|
+
y
|
|
13833
|
+
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl)), i = -1;
|
|
13834
|
+
continue;
|
|
13835
|
+
}
|
|
13836
|
+
}
|
|
13837
|
+
return {
|
|
13838
|
+
x,
|
|
13839
|
+
y,
|
|
13840
|
+
placement: statefulPlacement,
|
|
13841
|
+
strategy,
|
|
13842
|
+
middlewareData
|
|
13843
|
+
};
|
|
13844
|
+
};
|
|
13845
|
+
min = Math.min, max = Math.max;
|
|
13846
|
+
arrow = (options) => ({
|
|
13847
|
+
name: "arrow",
|
|
13848
|
+
options,
|
|
13849
|
+
async fn(state) {
|
|
13850
|
+
let {
|
|
13851
|
+
x,
|
|
13852
|
+
y,
|
|
13853
|
+
placement,
|
|
13854
|
+
rects,
|
|
13855
|
+
platform,
|
|
13856
|
+
elements
|
|
13857
|
+
} = state, {
|
|
13858
|
+
element,
|
|
13859
|
+
padding = 0
|
|
13860
|
+
} = evaluate(options, state) || {};
|
|
13861
|
+
if (element == null)
|
|
13862
|
+
return {};
|
|
13863
|
+
let paddingObject = getSideObjectFromPadding(padding), coords = {
|
|
13864
|
+
x,
|
|
13865
|
+
y
|
|
13866
|
+
}, axis = getMainAxisFromPlacement(placement), length = getLengthFromAxis(axis), arrowDimensions = await platform.getDimensions(element), isYAxis = axis === "y", minProp = isYAxis ? "top" : "left", maxProp = isYAxis ? "bottom" : "right", clientProp = isYAxis ? "clientHeight" : "clientWidth", endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length], startDiff = coords[axis] - rects.reference[axis], arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element)), clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
13867
|
+
(!clientSize || !await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent))) && (clientSize = elements.floating[clientProp] || rects.floating[length]);
|
|
13868
|
+
let centerToReference = endDiff / 2 - startDiff / 2, largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1, minPadding = min(paddingObject[minProp], largestPossiblePadding), maxPadding = min(paddingObject[maxProp], largestPossiblePadding), min$1 = minPadding, max2 = clientSize - arrowDimensions[length] - maxPadding, center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference, offset2 = within(min$1, center, max2), alignmentOffset = getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0 ? center < min$1 ? min$1 - center : max2 - center : 0;
|
|
13869
|
+
return {
|
|
13870
|
+
[axis]: coords[axis] - alignmentOffset,
|
|
13871
|
+
data: {
|
|
13872
|
+
[axis]: offset2,
|
|
13873
|
+
centerOffset: center - offset2 + alignmentOffset
|
|
13874
|
+
}
|
|
13875
|
+
};
|
|
13876
|
+
}
|
|
13877
|
+
}), sides = ["top", "right", "bottom", "left"], allPlacements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-start", side + "-end"), []), oppositeSideMap = {
|
|
13878
|
+
left: "right",
|
|
13879
|
+
right: "left",
|
|
13880
|
+
bottom: "top",
|
|
13881
|
+
top: "bottom"
|
|
13882
|
+
};
|
|
13883
|
+
oppositeAlignmentMap = {
|
|
13884
|
+
start: "end",
|
|
13885
|
+
end: "start"
|
|
13886
|
+
};
|
|
13887
|
+
autoPlacement = function(options) {
|
|
13888
|
+
return options === void 0 && (options = {}), {
|
|
13889
|
+
name: "autoPlacement",
|
|
13890
|
+
options,
|
|
13891
|
+
async fn(state) {
|
|
13892
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
13893
|
+
let {
|
|
13894
|
+
rects,
|
|
13895
|
+
middlewareData,
|
|
13896
|
+
placement,
|
|
13897
|
+
platform,
|
|
13898
|
+
elements
|
|
13899
|
+
} = state, {
|
|
13900
|
+
crossAxis = !1,
|
|
13901
|
+
alignment,
|
|
13902
|
+
allowedPlacements = allPlacements,
|
|
13903
|
+
autoAlignment = !0,
|
|
13904
|
+
...detectOverflowOptions
|
|
13905
|
+
} = evaluate(options, state), placements = alignment !== void 0 || allowedPlacements === allPlacements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements, overflow = await detectOverflow(state, detectOverflowOptions), currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0, currentPlacement = placements[currentIndex];
|
|
13906
|
+
if (currentPlacement == null)
|
|
13907
|
+
return {};
|
|
13908
|
+
let {
|
|
13909
|
+
main,
|
|
13910
|
+
cross
|
|
13911
|
+
} = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
13912
|
+
if (placement !== currentPlacement)
|
|
13913
|
+
return {
|
|
13914
|
+
reset: {
|
|
13915
|
+
placement: placements[0]
|
|
13916
|
+
}
|
|
13917
|
+
};
|
|
13918
|
+
let currentOverflows = [overflow[getSide(currentPlacement)], overflow[main], overflow[cross]], allOverflows = [...((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || [], {
|
|
13919
|
+
placement: currentPlacement,
|
|
13920
|
+
overflows: currentOverflows
|
|
13921
|
+
}], nextPlacement = placements[currentIndex + 1];
|
|
13922
|
+
if (nextPlacement)
|
|
13923
|
+
return {
|
|
13924
|
+
data: {
|
|
13925
|
+
index: currentIndex + 1,
|
|
13926
|
+
overflows: allOverflows
|
|
13927
|
+
},
|
|
13928
|
+
reset: {
|
|
13929
|
+
placement: nextPlacement
|
|
13930
|
+
}
|
|
13931
|
+
};
|
|
13932
|
+
let placementsSortedByMostSpace = allOverflows.map((d) => {
|
|
13933
|
+
let alignment2 = getAlignment(d.placement);
|
|
13934
|
+
return [d.placement, alignment2 && crossAxis ? (
|
|
13935
|
+
// Check along the mainAxis and main crossAxis side.
|
|
13936
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0)
|
|
13937
|
+
) : (
|
|
13938
|
+
// Check only the mainAxis.
|
|
13939
|
+
d.overflows[0]
|
|
13940
|
+
), d.overflows];
|
|
13941
|
+
}).sort((a, b) => a[1] - b[1]), resetPlacement = ((_placementsThatFitOnE = placementsSortedByMostSpace.filter((d) => d[2].slice(
|
|
13942
|
+
0,
|
|
13943
|
+
// Aligned placements should not check their opposite crossAxis
|
|
13944
|
+
// side.
|
|
13945
|
+
getAlignment(d[0]) ? 2 : 3
|
|
13946
|
+
).every((v) => v <= 0))[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
13947
|
+
return resetPlacement !== placement ? {
|
|
13948
|
+
data: {
|
|
13949
|
+
index: currentIndex + 1,
|
|
13950
|
+
overflows: allOverflows
|
|
13951
|
+
},
|
|
13952
|
+
reset: {
|
|
13953
|
+
placement: resetPlacement
|
|
13954
|
+
}
|
|
13955
|
+
} : {};
|
|
13956
|
+
}
|
|
13957
|
+
};
|
|
13958
|
+
};
|
|
13959
|
+
flip = function(options) {
|
|
13960
|
+
return options === void 0 && (options = {}), {
|
|
13961
|
+
name: "flip",
|
|
13962
|
+
options,
|
|
13963
|
+
async fn(state) {
|
|
13964
|
+
var _middlewareData$flip;
|
|
13965
|
+
let {
|
|
13966
|
+
placement,
|
|
13967
|
+
middlewareData,
|
|
13968
|
+
rects,
|
|
13969
|
+
initialPlacement,
|
|
13970
|
+
platform,
|
|
13971
|
+
elements
|
|
13972
|
+
} = state, {
|
|
13973
|
+
mainAxis: checkMainAxis = !0,
|
|
13974
|
+
crossAxis: checkCrossAxis = !0,
|
|
13975
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
13976
|
+
fallbackStrategy = "bestFit",
|
|
13977
|
+
fallbackAxisSideDirection = "none",
|
|
13978
|
+
flipAlignment = !0,
|
|
13979
|
+
...detectOverflowOptions
|
|
13980
|
+
} = evaluate(options, state), side = getSide(placement), isBasePlacement = getSide(initialPlacement) === initialPlacement, rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)), fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
13981
|
+
!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none" && fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
13982
|
+
let placements = [initialPlacement, ...fallbackPlacements], overflow = await detectOverflow(state, detectOverflowOptions), overflows = [], overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
13983
|
+
if (checkMainAxis && overflows.push(overflow[side]), checkCrossAxis) {
|
|
13984
|
+
let {
|
|
13985
|
+
main,
|
|
13986
|
+
cross
|
|
13987
|
+
} = getAlignmentSides(placement, rects, rtl);
|
|
13988
|
+
overflows.push(overflow[main], overflow[cross]);
|
|
13989
|
+
}
|
|
13990
|
+
if (overflowsData = [...overflowsData, {
|
|
13991
|
+
placement,
|
|
13992
|
+
overflows
|
|
13993
|
+
}], !overflows.every((side2) => side2 <= 0)) {
|
|
13994
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
13995
|
+
let nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1, nextPlacement = placements[nextIndex];
|
|
13996
|
+
if (nextPlacement)
|
|
13997
|
+
return {
|
|
13998
|
+
data: {
|
|
13999
|
+
index: nextIndex,
|
|
14000
|
+
overflows: overflowsData
|
|
14001
|
+
},
|
|
14002
|
+
reset: {
|
|
14003
|
+
placement: nextPlacement
|
|
14004
|
+
}
|
|
14005
|
+
};
|
|
14006
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
14007
|
+
if (!resetPlacement)
|
|
14008
|
+
switch (fallbackStrategy) {
|
|
14009
|
+
case "bestFit": {
|
|
14010
|
+
var _overflowsData$map$so;
|
|
14011
|
+
let placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
14012
|
+
placement2 && (resetPlacement = placement2);
|
|
14013
|
+
break;
|
|
14014
|
+
}
|
|
14015
|
+
case "initialPlacement":
|
|
14016
|
+
resetPlacement = initialPlacement;
|
|
14017
|
+
break;
|
|
14018
|
+
}
|
|
14019
|
+
if (placement !== resetPlacement)
|
|
14020
|
+
return {
|
|
14021
|
+
reset: {
|
|
14022
|
+
placement: resetPlacement
|
|
14023
|
+
}
|
|
14024
|
+
};
|
|
14025
|
+
}
|
|
14026
|
+
return {};
|
|
14027
|
+
}
|
|
14028
|
+
};
|
|
14029
|
+
};
|
|
14030
|
+
hide = function(options) {
|
|
14031
|
+
return options === void 0 && (options = {}), {
|
|
14032
|
+
name: "hide",
|
|
14033
|
+
options,
|
|
14034
|
+
async fn(state) {
|
|
14035
|
+
let {
|
|
14036
|
+
rects
|
|
14037
|
+
} = state, {
|
|
14038
|
+
strategy = "referenceHidden",
|
|
14039
|
+
...detectOverflowOptions
|
|
14040
|
+
} = evaluate(options, state);
|
|
14041
|
+
switch (strategy) {
|
|
14042
|
+
case "referenceHidden": {
|
|
14043
|
+
let overflow = await detectOverflow(state, {
|
|
14044
|
+
...detectOverflowOptions,
|
|
14045
|
+
elementContext: "reference"
|
|
14046
|
+
}), offsets = getSideOffsets(overflow, rects.reference);
|
|
14047
|
+
return {
|
|
14048
|
+
data: {
|
|
14049
|
+
referenceHiddenOffsets: offsets,
|
|
14050
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
14051
|
+
}
|
|
14052
|
+
};
|
|
14053
|
+
}
|
|
14054
|
+
case "escaped": {
|
|
14055
|
+
let overflow = await detectOverflow(state, {
|
|
14056
|
+
...detectOverflowOptions,
|
|
14057
|
+
altBoundary: !0
|
|
14058
|
+
}), offsets = getSideOffsets(overflow, rects.floating);
|
|
14059
|
+
return {
|
|
14060
|
+
data: {
|
|
14061
|
+
escapedOffsets: offsets,
|
|
14062
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
14063
|
+
}
|
|
14064
|
+
};
|
|
14065
|
+
}
|
|
14066
|
+
default:
|
|
14067
|
+
return {};
|
|
14068
|
+
}
|
|
14069
|
+
}
|
|
14070
|
+
};
|
|
14071
|
+
};
|
|
14072
|
+
inline = function(options) {
|
|
14073
|
+
return options === void 0 && (options = {}), {
|
|
14074
|
+
name: "inline",
|
|
14075
|
+
options,
|
|
14076
|
+
async fn(state) {
|
|
14077
|
+
let {
|
|
14078
|
+
placement,
|
|
14079
|
+
elements,
|
|
14080
|
+
rects,
|
|
14081
|
+
platform,
|
|
14082
|
+
strategy
|
|
14083
|
+
} = state, {
|
|
14084
|
+
padding = 2,
|
|
14085
|
+
x,
|
|
14086
|
+
y
|
|
14087
|
+
} = evaluate(options, state), nativeClientRects = Array.from(await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference)) || []), clientRects = getRectsByLine(nativeClientRects), fallback = rectToClientRect(getBoundingRect(nativeClientRects)), paddingObject = getSideObjectFromPadding(padding);
|
|
14088
|
+
function getBoundingClientRect() {
|
|
14089
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null)
|
|
14090
|
+
return clientRects.find((rect) => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
14091
|
+
if (clientRects.length >= 2) {
|
|
14092
|
+
if (getMainAxisFromPlacement(placement) === "x") {
|
|
14093
|
+
let firstRect = clientRects[0], lastRect = clientRects[clientRects.length - 1], isTop = getSide(placement) === "top", top2 = firstRect.top, bottom2 = lastRect.bottom, left2 = isTop ? firstRect.left : lastRect.left, right2 = isTop ? firstRect.right : lastRect.right, width2 = right2 - left2, height2 = bottom2 - top2;
|
|
14094
|
+
return {
|
|
14095
|
+
top: top2,
|
|
14096
|
+
bottom: bottom2,
|
|
14097
|
+
left: left2,
|
|
14098
|
+
right: right2,
|
|
14099
|
+
width: width2,
|
|
14100
|
+
height: height2,
|
|
14101
|
+
x: left2,
|
|
14102
|
+
y: top2
|
|
14103
|
+
};
|
|
14104
|
+
}
|
|
14105
|
+
let isLeftSide = getSide(placement) === "left", maxRight = max(...clientRects.map((rect) => rect.right)), minLeft = min(...clientRects.map((rect) => rect.left)), measureRects = clientRects.filter((rect) => isLeftSide ? rect.left === minLeft : rect.right === maxRight), top = measureRects[0].top, bottom = measureRects[measureRects.length - 1].bottom, left = minLeft, right = maxRight, width = right - left, height = bottom - top;
|
|
14106
|
+
return {
|
|
14107
|
+
top,
|
|
14108
|
+
bottom,
|
|
14109
|
+
left,
|
|
14110
|
+
right,
|
|
14111
|
+
width,
|
|
14112
|
+
height,
|
|
14113
|
+
x: left,
|
|
14114
|
+
y: top
|
|
14115
|
+
};
|
|
14116
|
+
}
|
|
14117
|
+
return fallback;
|
|
14118
|
+
}
|
|
14119
|
+
let resetRects = await platform.getElementRects({
|
|
14120
|
+
reference: {
|
|
14121
|
+
getBoundingClientRect
|
|
14122
|
+
},
|
|
14123
|
+
floating: elements.floating,
|
|
14124
|
+
strategy
|
|
14125
|
+
});
|
|
14126
|
+
return rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height ? {
|
|
14127
|
+
reset: {
|
|
14128
|
+
rects: resetRects
|
|
14129
|
+
}
|
|
14130
|
+
} : {};
|
|
14131
|
+
}
|
|
14132
|
+
};
|
|
14133
|
+
};
|
|
14134
|
+
offset = function(options) {
|
|
14135
|
+
return options === void 0 && (options = 0), {
|
|
14136
|
+
name: "offset",
|
|
14137
|
+
options,
|
|
14138
|
+
async fn(state) {
|
|
14139
|
+
let {
|
|
14140
|
+
x,
|
|
14141
|
+
y
|
|
14142
|
+
} = state, diffCoords = await convertValueToCoords(state, options);
|
|
14143
|
+
return {
|
|
14144
|
+
x: x + diffCoords.x,
|
|
14145
|
+
y: y + diffCoords.y,
|
|
14146
|
+
data: diffCoords
|
|
14147
|
+
};
|
|
14148
|
+
}
|
|
14149
|
+
};
|
|
14150
|
+
};
|
|
14151
|
+
shift = function(options) {
|
|
14152
|
+
return options === void 0 && (options = {}), {
|
|
14153
|
+
name: "shift",
|
|
14154
|
+
options,
|
|
14155
|
+
async fn(state) {
|
|
14156
|
+
let {
|
|
14157
|
+
x,
|
|
14158
|
+
y,
|
|
14159
|
+
placement
|
|
14160
|
+
} = state, {
|
|
14161
|
+
mainAxis: checkMainAxis = !0,
|
|
14162
|
+
crossAxis: checkCrossAxis = !1,
|
|
14163
|
+
limiter = {
|
|
14164
|
+
fn: (_ref) => {
|
|
14165
|
+
let {
|
|
14166
|
+
x: x2,
|
|
14167
|
+
y: y2
|
|
14168
|
+
} = _ref;
|
|
14169
|
+
return {
|
|
14170
|
+
x: x2,
|
|
14171
|
+
y: y2
|
|
14172
|
+
};
|
|
14173
|
+
}
|
|
14174
|
+
},
|
|
14175
|
+
...detectOverflowOptions
|
|
14176
|
+
} = evaluate(options, state), coords = {
|
|
14177
|
+
x,
|
|
14178
|
+
y
|
|
14179
|
+
}, overflow = await detectOverflow(state, detectOverflowOptions), mainAxis = getMainAxisFromPlacement(getSide(placement)), crossAxis = getCrossAxis(mainAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis];
|
|
14180
|
+
if (checkMainAxis) {
|
|
14181
|
+
let minSide = mainAxis === "y" ? "top" : "left", maxSide = mainAxis === "y" ? "bottom" : "right", min2 = mainAxisCoord + overflow[minSide], max2 = mainAxisCoord - overflow[maxSide];
|
|
14182
|
+
mainAxisCoord = within(min2, mainAxisCoord, max2);
|
|
14183
|
+
}
|
|
14184
|
+
if (checkCrossAxis) {
|
|
14185
|
+
let minSide = crossAxis === "y" ? "top" : "left", maxSide = crossAxis === "y" ? "bottom" : "right", min2 = crossAxisCoord + overflow[minSide], max2 = crossAxisCoord - overflow[maxSide];
|
|
14186
|
+
crossAxisCoord = within(min2, crossAxisCoord, max2);
|
|
14187
|
+
}
|
|
14188
|
+
let limitedCoords = limiter.fn({
|
|
14189
|
+
...state,
|
|
14190
|
+
[mainAxis]: mainAxisCoord,
|
|
14191
|
+
[crossAxis]: crossAxisCoord
|
|
14192
|
+
});
|
|
14193
|
+
return {
|
|
14194
|
+
...limitedCoords,
|
|
14195
|
+
data: {
|
|
14196
|
+
x: limitedCoords.x - x,
|
|
14197
|
+
y: limitedCoords.y - y
|
|
14198
|
+
}
|
|
14199
|
+
};
|
|
14200
|
+
}
|
|
14201
|
+
};
|
|
14202
|
+
}, limitShift = function(options) {
|
|
14203
|
+
return options === void 0 && (options = {}), {
|
|
14204
|
+
options,
|
|
14205
|
+
fn(state) {
|
|
14206
|
+
let {
|
|
14207
|
+
x,
|
|
14208
|
+
y,
|
|
14209
|
+
placement,
|
|
14210
|
+
rects,
|
|
14211
|
+
middlewareData
|
|
14212
|
+
} = state, {
|
|
14213
|
+
offset: offset2 = 0,
|
|
14214
|
+
mainAxis: checkMainAxis = !0,
|
|
14215
|
+
crossAxis: checkCrossAxis = !0
|
|
14216
|
+
} = evaluate(options, state), coords = {
|
|
14217
|
+
x,
|
|
14218
|
+
y
|
|
14219
|
+
}, mainAxis = getMainAxisFromPlacement(placement), crossAxis = getCrossAxis(mainAxis), mainAxisCoord = coords[mainAxis], crossAxisCoord = coords[crossAxis], rawOffset = evaluate(offset2, state), computedOffset = typeof rawOffset == "number" ? {
|
|
14220
|
+
mainAxis: rawOffset,
|
|
14221
|
+
crossAxis: 0
|
|
14222
|
+
} : {
|
|
14223
|
+
mainAxis: 0,
|
|
14224
|
+
crossAxis: 0,
|
|
14225
|
+
...rawOffset
|
|
14226
|
+
};
|
|
14227
|
+
if (checkMainAxis) {
|
|
14228
|
+
let len = mainAxis === "y" ? "height" : "width", limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis, limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
14229
|
+
mainAxisCoord < limitMin ? mainAxisCoord = limitMin : mainAxisCoord > limitMax && (mainAxisCoord = limitMax);
|
|
14230
|
+
}
|
|
14231
|
+
if (checkCrossAxis) {
|
|
14232
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
14233
|
+
let len = mainAxis === "y" ? "width" : "height", isOriginSide = ["top", "left"].includes(getSide(placement)), limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide && ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0) + (isOriginSide ? 0 : computedOffset.crossAxis), limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
14234
|
+
crossAxisCoord < limitMin ? crossAxisCoord = limitMin : crossAxisCoord > limitMax && (crossAxisCoord = limitMax);
|
|
14235
|
+
}
|
|
14236
|
+
return {
|
|
14237
|
+
[mainAxis]: mainAxisCoord,
|
|
14238
|
+
[crossAxis]: crossAxisCoord
|
|
14239
|
+
};
|
|
14240
|
+
}
|
|
14241
|
+
};
|
|
14242
|
+
}, size = function(options) {
|
|
14243
|
+
return options === void 0 && (options = {}), {
|
|
14244
|
+
name: "size",
|
|
14245
|
+
options,
|
|
14246
|
+
async fn(state) {
|
|
14247
|
+
let {
|
|
14248
|
+
placement,
|
|
14249
|
+
rects,
|
|
14250
|
+
platform,
|
|
14251
|
+
elements
|
|
14252
|
+
} = state, {
|
|
14253
|
+
apply = () => {
|
|
14254
|
+
},
|
|
14255
|
+
...detectOverflowOptions
|
|
14256
|
+
} = evaluate(options, state), overflow = await detectOverflow(state, detectOverflowOptions), side = getSide(placement), alignment = getAlignment(placement), isXAxis = getMainAxisFromPlacement(placement) === "x", {
|
|
14257
|
+
width,
|
|
14258
|
+
height
|
|
14259
|
+
} = rects.floating, heightSide, widthSide;
|
|
14260
|
+
side === "top" || side === "bottom" ? (heightSide = side, widthSide = alignment === (await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right") : (widthSide = side, heightSide = alignment === "end" ? "top" : "bottom");
|
|
14261
|
+
let overflowAvailableHeight = height - overflow[heightSide], overflowAvailableWidth = width - overflow[widthSide], noShift = !state.middlewareData.shift, availableHeight = overflowAvailableHeight, availableWidth = overflowAvailableWidth;
|
|
14262
|
+
if (isXAxis) {
|
|
14263
|
+
let maximumClippingWidth = width - overflow.left - overflow.right;
|
|
14264
|
+
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
14265
|
+
} else {
|
|
14266
|
+
let maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
14267
|
+
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
14268
|
+
}
|
|
14269
|
+
if (noShift && !alignment) {
|
|
14270
|
+
let xMin = max(overflow.left, 0), xMax = max(overflow.right, 0), yMin = max(overflow.top, 0), yMax = max(overflow.bottom, 0);
|
|
14271
|
+
isXAxis ? availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
14272
|
+
}
|
|
14273
|
+
await apply({
|
|
14274
|
+
...state,
|
|
14275
|
+
availableWidth,
|
|
14276
|
+
availableHeight
|
|
14277
|
+
});
|
|
14278
|
+
let nextDimensions = await platform.getDimensions(elements.floating);
|
|
14279
|
+
return width !== nextDimensions.width || height !== nextDimensions.height ? {
|
|
14280
|
+
reset: {
|
|
14281
|
+
rects: !0
|
|
14282
|
+
}
|
|
14283
|
+
} : {};
|
|
14284
|
+
}
|
|
14285
|
+
};
|
|
14286
|
+
};
|
|
14287
|
+
}
|
|
14288
|
+
});
|
|
14289
|
+
|
|
14290
|
+
// ../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js
|
|
14291
|
+
var require_floating_ui_react_native = __commonJS({
|
|
14292
|
+
"../../node_modules/@floating-ui/react-native/dist/floating-ui.react-native.js"(exports) {
|
|
14293
|
+
"use strict";
|
|
14294
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
14295
|
+
var core = (init_floating_ui_core_esm(), __toCommonJS(floating_ui_core_esm_exports)), React2 = require("react"), reactNative = require("react-native");
|
|
14296
|
+
function _interopNamespace(e) {
|
|
14297
|
+
if (e && e.__esModule)
|
|
14298
|
+
return e;
|
|
14299
|
+
var n = /* @__PURE__ */ Object.create(null);
|
|
14300
|
+
return e && Object.keys(e).forEach(function(k) {
|
|
14301
|
+
if (k !== "default") {
|
|
14302
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14303
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14304
|
+
enumerable: !0,
|
|
14305
|
+
get: function() {
|
|
14306
|
+
return e[k];
|
|
14307
|
+
}
|
|
14308
|
+
});
|
|
14309
|
+
}
|
|
14310
|
+
}), n.default = e, Object.freeze(n);
|
|
14311
|
+
}
|
|
14312
|
+
var React__namespace = /* @__PURE__ */ _interopNamespace(React2), arrow2 = (options) => {
|
|
14313
|
+
let {
|
|
14314
|
+
element,
|
|
14315
|
+
padding
|
|
14316
|
+
} = options;
|
|
14317
|
+
function isRef(value) {
|
|
14318
|
+
return {}.hasOwnProperty.call(value, "current");
|
|
14319
|
+
}
|
|
14320
|
+
return {
|
|
14321
|
+
name: "arrow",
|
|
14322
|
+
options,
|
|
14323
|
+
fn(args) {
|
|
14324
|
+
return element && isRef(element) ? element.current != null ? core.arrow({
|
|
14325
|
+
element: element.current,
|
|
14326
|
+
padding
|
|
14327
|
+
}).fn(args) : {} : element ? core.arrow({
|
|
14328
|
+
element,
|
|
14329
|
+
padding
|
|
14330
|
+
}).fn(args) : {};
|
|
14331
|
+
}
|
|
14332
|
+
};
|
|
14333
|
+
}, ORIGIN$1 = {
|
|
14334
|
+
x: 0,
|
|
14335
|
+
y: 0
|
|
14336
|
+
}, createPlatform = (_ref) => {
|
|
14337
|
+
let {
|
|
14338
|
+
offsetParent,
|
|
14339
|
+
sameScrollView = !0,
|
|
14340
|
+
scrollOffsets = ORIGIN$1
|
|
14341
|
+
} = _ref;
|
|
14342
|
+
return {
|
|
14343
|
+
getElementRects(_ref2) {
|
|
14344
|
+
let {
|
|
14345
|
+
reference,
|
|
14346
|
+
floating
|
|
14347
|
+
} = _ref2;
|
|
14348
|
+
return new Promise((resolve) => {
|
|
14349
|
+
let onMeasure = function(offsetX, offsetY) {
|
|
14350
|
+
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), floating.measure((x, y, width, height) => {
|
|
14351
|
+
let floatingRect = {
|
|
14352
|
+
width,
|
|
14353
|
+
height,
|
|
14354
|
+
...ORIGIN$1
|
|
14355
|
+
};
|
|
14356
|
+
reference[sameScrollView ? "measure" : "measureInWindow"]((x2, y2, width2, height2) => {
|
|
14357
|
+
let referenceRect = {
|
|
14358
|
+
width: width2,
|
|
14359
|
+
height: height2,
|
|
14360
|
+
x: x2 - offsetX,
|
|
14361
|
+
y: y2 - offsetY
|
|
14362
|
+
};
|
|
14363
|
+
resolve({
|
|
14364
|
+
reference: referenceRect,
|
|
14365
|
+
floating: floatingRect
|
|
14366
|
+
});
|
|
14367
|
+
});
|
|
14368
|
+
});
|
|
14369
|
+
};
|
|
14370
|
+
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
14371
|
+
});
|
|
14372
|
+
},
|
|
14373
|
+
getClippingRect() {
|
|
14374
|
+
let {
|
|
14375
|
+
width,
|
|
14376
|
+
height
|
|
14377
|
+
} = reactNative.Dimensions.get("window");
|
|
14378
|
+
return Promise.resolve({
|
|
14379
|
+
width,
|
|
14380
|
+
height,
|
|
14381
|
+
...sameScrollView ? scrollOffsets : ORIGIN$1
|
|
14382
|
+
});
|
|
14383
|
+
},
|
|
14384
|
+
convertOffsetParentRelativeRectToViewportRelativeRect(_ref3) {
|
|
14385
|
+
let {
|
|
14386
|
+
rect
|
|
14387
|
+
} = _ref3;
|
|
14388
|
+
return new Promise((resolve) => {
|
|
14389
|
+
let onMeasure = function(offsetX, offsetY) {
|
|
14390
|
+
offsetX === void 0 && (offsetX = 0), offsetY === void 0 && (offsetY = 0), resolve({
|
|
14391
|
+
...rect,
|
|
14392
|
+
x: rect.x + offsetX,
|
|
14393
|
+
y: rect.y + offsetY
|
|
14394
|
+
});
|
|
14395
|
+
};
|
|
14396
|
+
offsetParent ? offsetParent.measure(onMeasure) : onMeasure();
|
|
14397
|
+
});
|
|
14398
|
+
},
|
|
14399
|
+
getDimensions: (element) => new Promise((resolve) => element.measure((x, y, width, height) => resolve({
|
|
14400
|
+
width,
|
|
14401
|
+
height
|
|
14402
|
+
})))
|
|
14403
|
+
};
|
|
14404
|
+
};
|
|
14405
|
+
function deepEqual(a, b) {
|
|
14406
|
+
if (a === b)
|
|
14407
|
+
return !0;
|
|
14408
|
+
if (typeof a != typeof b)
|
|
14409
|
+
return !1;
|
|
14410
|
+
if (typeof a == "function" && a.toString() === b.toString())
|
|
14411
|
+
return !0;
|
|
14412
|
+
let length, i, keys;
|
|
14413
|
+
if (a && b && typeof a == "object") {
|
|
14414
|
+
if (Array.isArray(a)) {
|
|
14415
|
+
if (length = a.length, length != b.length)
|
|
14416
|
+
return !1;
|
|
14417
|
+
for (i = length; i-- !== 0; )
|
|
14418
|
+
if (!deepEqual(a[i], b[i]))
|
|
14419
|
+
return !1;
|
|
14420
|
+
return !0;
|
|
14421
|
+
}
|
|
14422
|
+
if (keys = Object.keys(a), length = keys.length, length !== Object.keys(b).length)
|
|
14423
|
+
return !1;
|
|
14424
|
+
for (i = length; i-- !== 0; )
|
|
14425
|
+
if (!{}.hasOwnProperty.call(b, keys[i]))
|
|
14426
|
+
return !1;
|
|
14427
|
+
for (i = length; i-- !== 0; ) {
|
|
14428
|
+
let key = keys[i];
|
|
14429
|
+
if (!(key === "_owner" && a.$$typeof) && !deepEqual(a[key], b[key]))
|
|
14430
|
+
return !1;
|
|
14431
|
+
}
|
|
14432
|
+
return !0;
|
|
14433
|
+
}
|
|
14434
|
+
return a !== a && b !== b;
|
|
14435
|
+
}
|
|
14436
|
+
var ORIGIN = {
|
|
14437
|
+
x: 0,
|
|
14438
|
+
y: 0
|
|
14439
|
+
};
|
|
14440
|
+
function useFloating2(options) {
|
|
14441
|
+
options === void 0 && (options = {});
|
|
14442
|
+
let {
|
|
14443
|
+
placement = "bottom",
|
|
14444
|
+
middleware = [],
|
|
14445
|
+
sameScrollView = !0,
|
|
14446
|
+
elements: {
|
|
14447
|
+
reference: externalReference,
|
|
14448
|
+
floating: externalFloating,
|
|
14449
|
+
offsetParent: externalOffsetParent
|
|
14450
|
+
} = {}
|
|
14451
|
+
} = options, [_reference, _setReference] = React__namespace.useState(null), [_floating, _setFloating] = React__namespace.useState(null), [_offsetParent, _setOffsetParent] = React__namespace.useState(null), referenceEl = externalReference || _reference, floatingEl = externalFloating || _floating, offsetParentEl = externalOffsetParent || _offsetParent, setReference = React__namespace.useCallback((node) => {
|
|
14452
|
+
node !== referenceRef.current && (referenceRef.current = node, _setReference(node));
|
|
14453
|
+
}, [_setReference]), setFloating = React__namespace.useCallback((node) => {
|
|
14454
|
+
node !== floatingRef.current && (floatingRef.current = node, _setFloating(node));
|
|
14455
|
+
}, [_setFloating]), setOffsetParent = React__namespace.useCallback((node) => {
|
|
14456
|
+
node !== offsetParentRef.current && (offsetParentRef.current = node, _setOffsetParent(node));
|
|
14457
|
+
}, [_setOffsetParent]), referenceRef = React__namespace.useRef(null), floatingRef = React__namespace.useRef(null), offsetParentRef = React__namespace.useRef(null), [data, setData] = React__namespace.useState({
|
|
14458
|
+
x: 0,
|
|
14459
|
+
y: 0,
|
|
14460
|
+
placement,
|
|
14461
|
+
strategy: "absolute",
|
|
14462
|
+
middlewareData: {}
|
|
14463
|
+
}), [scrollOffsets, setScrollOffsets] = React__namespace.useState(ORIGIN), [latestMiddleware, setLatestMiddleware] = React__namespace.useState(middleware);
|
|
14464
|
+
deepEqual(latestMiddleware, middleware) || setLatestMiddleware(middleware);
|
|
14465
|
+
let platform = React__namespace.useMemo(() => createPlatform({
|
|
14466
|
+
offsetParent: offsetParentEl,
|
|
14467
|
+
scrollOffsets,
|
|
14468
|
+
sameScrollView
|
|
14469
|
+
}), [offsetParentEl, scrollOffsets, sameScrollView]), update = React__namespace.useCallback(() => {
|
|
14470
|
+
!referenceRef.current || !floatingRef.current || core.computePosition(referenceRef.current, floatingRef.current, {
|
|
14471
|
+
middleware: latestMiddleware,
|
|
14472
|
+
platform,
|
|
14473
|
+
placement
|
|
14474
|
+
}).then((data2) => {
|
|
14475
|
+
isMountedRef.current && setData(data2);
|
|
14476
|
+
});
|
|
14477
|
+
}, [latestMiddleware, platform, placement]);
|
|
14478
|
+
React__namespace.useLayoutEffect(() => {
|
|
14479
|
+
referenceEl && (referenceRef.current = referenceEl), floatingEl && (floatingRef.current = floatingEl), offsetParentEl && (offsetParentRef.current = offsetParentEl);
|
|
14480
|
+
let frame = requestAnimationFrame(update);
|
|
14481
|
+
return () => {
|
|
14482
|
+
cancelAnimationFrame(frame);
|
|
14483
|
+
};
|
|
14484
|
+
}, [referenceEl, floatingEl, offsetParentEl, update]);
|
|
14485
|
+
let isMountedRef = React__namespace.useRef(!0);
|
|
14486
|
+
React__namespace.useLayoutEffect(() => (isMountedRef.current = !0, () => {
|
|
14487
|
+
isMountedRef.current = !1;
|
|
14488
|
+
}), []);
|
|
14489
|
+
let refs = React__namespace.useMemo(() => ({
|
|
14490
|
+
reference: referenceRef,
|
|
14491
|
+
floating: floatingRef,
|
|
14492
|
+
offsetParent: offsetParentRef,
|
|
14493
|
+
setReference,
|
|
14494
|
+
setFloating,
|
|
14495
|
+
setOffsetParent
|
|
14496
|
+
}), [setReference, setFloating, setOffsetParent]), elements = React__namespace.useMemo(() => ({
|
|
14497
|
+
reference: referenceEl,
|
|
14498
|
+
floating: floatingEl,
|
|
14499
|
+
offsetParent: offsetParentEl
|
|
14500
|
+
}), [referenceEl, floatingEl, offsetParentEl]), floatingStyles = React__namespace.useMemo(() => elements.floating ? {
|
|
14501
|
+
position: "absolute",
|
|
14502
|
+
left: data.x,
|
|
14503
|
+
top: data.y
|
|
14504
|
+
} : {
|
|
14505
|
+
position: "absolute",
|
|
14506
|
+
left: 0,
|
|
14507
|
+
top: 0
|
|
14508
|
+
}, [elements.floating, data.x, data.y]);
|
|
14509
|
+
return React__namespace.useMemo(() => ({
|
|
14510
|
+
...data,
|
|
14511
|
+
update,
|
|
14512
|
+
refs,
|
|
14513
|
+
elements,
|
|
14514
|
+
floatingStyles,
|
|
14515
|
+
offsetParent: setOffsetParent,
|
|
14516
|
+
reference: setReference,
|
|
14517
|
+
floating: setFloating,
|
|
14518
|
+
scrollProps: {
|
|
14519
|
+
onScroll: (event) => setScrollOffsets(event.nativeEvent.contentOffset),
|
|
14520
|
+
scrollEventThrottle: 16
|
|
14521
|
+
}
|
|
14522
|
+
}), [data, refs, elements, floatingStyles, setReference, setFloating, setOffsetParent, update]);
|
|
14523
|
+
}
|
|
14524
|
+
Object.defineProperty(exports, "autoPlacement", {
|
|
14525
|
+
enumerable: !0,
|
|
14526
|
+
get: function() {
|
|
14527
|
+
return core.autoPlacement;
|
|
14528
|
+
}
|
|
14529
|
+
});
|
|
14530
|
+
Object.defineProperty(exports, "detectOverflow", {
|
|
14531
|
+
enumerable: !0,
|
|
14532
|
+
get: function() {
|
|
14533
|
+
return core.detectOverflow;
|
|
14534
|
+
}
|
|
14535
|
+
});
|
|
14536
|
+
Object.defineProperty(exports, "flip", {
|
|
14537
|
+
enumerable: !0,
|
|
14538
|
+
get: function() {
|
|
14539
|
+
return core.flip;
|
|
14540
|
+
}
|
|
14541
|
+
});
|
|
14542
|
+
Object.defineProperty(exports, "hide", {
|
|
14543
|
+
enumerable: !0,
|
|
14544
|
+
get: function() {
|
|
14545
|
+
return core.hide;
|
|
14546
|
+
}
|
|
14547
|
+
});
|
|
14548
|
+
Object.defineProperty(exports, "inline", {
|
|
14549
|
+
enumerable: !0,
|
|
14550
|
+
get: function() {
|
|
14551
|
+
return core.inline;
|
|
14552
|
+
}
|
|
14553
|
+
});
|
|
14554
|
+
Object.defineProperty(exports, "limitShift", {
|
|
14555
|
+
enumerable: !0,
|
|
14556
|
+
get: function() {
|
|
14557
|
+
return core.limitShift;
|
|
14558
|
+
}
|
|
14559
|
+
});
|
|
14560
|
+
Object.defineProperty(exports, "offset", {
|
|
14561
|
+
enumerable: !0,
|
|
14562
|
+
get: function() {
|
|
14563
|
+
return core.offset;
|
|
14564
|
+
}
|
|
14565
|
+
});
|
|
14566
|
+
Object.defineProperty(exports, "shift", {
|
|
14567
|
+
enumerable: !0,
|
|
14568
|
+
get: function() {
|
|
14569
|
+
return core.shift;
|
|
14570
|
+
}
|
|
14571
|
+
});
|
|
14572
|
+
Object.defineProperty(exports, "size", {
|
|
14573
|
+
enumerable: !0,
|
|
14574
|
+
get: function() {
|
|
14575
|
+
return core.size;
|
|
14576
|
+
}
|
|
14577
|
+
});
|
|
14578
|
+
exports.arrow = arrow2;
|
|
14579
|
+
exports.useFloating = useFloating2;
|
|
14580
|
+
}
|
|
14581
|
+
});
|
|
14582
|
+
|
|
13535
14583
|
// ../floating/dist/cjs/Floating.native.js
|
|
13536
14584
|
var require_Floating_native = __commonJS({
|
|
13537
14585
|
"../floating/dist/cjs/Floating.native.js"(exports, module2) {
|
|
@@ -13549,7 +14597,7 @@ var require_Floating_native = __commonJS({
|
|
|
13549
14597
|
autoUpdate: () => autoUpdate
|
|
13550
14598
|
});
|
|
13551
14599
|
module2.exports = __toCommonJS2(Floating_native_exports);
|
|
13552
|
-
__reExport2(Floating_native_exports,
|
|
14600
|
+
__reExport2(Floating_native_exports, require_floating_ui_react_native(), module2.exports);
|
|
13553
14601
|
var autoUpdate = () => {
|
|
13554
14602
|
};
|
|
13555
14603
|
}
|
|
@@ -13641,22 +14689,22 @@ var require_Popper_native = __commonJS({
|
|
|
13641
14689
|
usePopperContext: () => usePopperContext
|
|
13642
14690
|
});
|
|
13643
14691
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
13644
|
-
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_get_token2 = require_index_native17(), import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 =
|
|
14692
|
+
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_get_token2 = require_index_native17(), import_stacks3 = require_index_native19(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime"), PopperContext = (0, import_core12.createStyledContext)({}), { useStyledContext: usePopperContext, Provider: PopperProvider } = PopperContext;
|
|
13645
14693
|
function Popper(props) {
|
|
13646
14694
|
let {
|
|
13647
14695
|
children,
|
|
13648
|
-
size,
|
|
14696
|
+
size: size2,
|
|
13649
14697
|
strategy = "absolute",
|
|
13650
14698
|
placement = "bottom",
|
|
13651
14699
|
stayInFrame,
|
|
13652
14700
|
allowFlip,
|
|
13653
|
-
offset,
|
|
14701
|
+
offset: offset2,
|
|
13654
14702
|
__scopePopper
|
|
13655
14703
|
} = props, [isMounted, setIsMounted] = React2.useState(!1);
|
|
13656
14704
|
(0, import_core12.useIsomorphicLayoutEffect)(() => {
|
|
13657
14705
|
setIsMounted(!0);
|
|
13658
14706
|
}, []);
|
|
13659
|
-
let [anchorRef, setAnchorRef] = React2.useState(), [arrowEl, setArrow] = React2.useState(null), [arrowSize, setArrowSize] = React2.useState(0), offsetOptions =
|
|
14707
|
+
let [anchorRef, setAnchorRef] = React2.useState(), [arrowEl, setArrow] = React2.useState(null), [arrowSize, setArrowSize] = React2.useState(0), offsetOptions = offset2 ?? arrowSize, floating = (0, import_floating.useFloating)({
|
|
13660
14708
|
strategy,
|
|
13661
14709
|
placement,
|
|
13662
14710
|
sameScrollView: !1,
|
|
@@ -13697,7 +14745,7 @@ var require_Popper_native = __commonJS({
|
|
|
13697
14745
|
}
|
|
13698
14746
|
let popperContext = {
|
|
13699
14747
|
anchorRef: setAnchorRef,
|
|
13700
|
-
size,
|
|
14748
|
+
size: size2,
|
|
13701
14749
|
arrowRef: setArrow,
|
|
13702
14750
|
arrowStyle: middlewareData.arrow,
|
|
13703
14751
|
onArrowSize: setArrowSize,
|
|
@@ -13747,13 +14795,13 @@ var require_Popper_native = __commonJS({
|
|
|
13747
14795
|
unstyled: !1
|
|
13748
14796
|
}
|
|
13749
14797
|
}), PopperContent = React2.forwardRef(function(props, forwardedRef) {
|
|
13750
|
-
let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14798
|
+
let { __scopePopper, ...rest } = props, { strategy, placement, refs, x, y, getFloatingProps, size: size2, isMounted, update } = usePopperContext(__scopePopper), contentRefs = (0, import_compose_refs.useComposedRefs)(refs.setFloating, forwardedRef), contents = React2.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
13751
14799
|
PopperContentFrame,
|
|
13752
14800
|
{
|
|
13753
14801
|
"data-placement": placement,
|
|
13754
14802
|
"data-strategy": strategy,
|
|
13755
14803
|
contain: "layout",
|
|
13756
|
-
size,
|
|
14804
|
+
size: size2,
|
|
13757
14805
|
...rest
|
|
13758
14806
|
},
|
|
13759
14807
|
"popper-content-frame"
|
|
@@ -13807,25 +14855,25 @@ var require_Popper_native = __commonJS({
|
|
|
13807
14855
|
left: "right"
|
|
13808
14856
|
}, PopperArrow = PopperArrowFrame.styleable(function(propsIn, forwardedRef) {
|
|
13809
14857
|
var _a, _b;
|
|
13810
|
-
let { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = sizeProp ?? context.size,
|
|
14858
|
+
let { __scopePopper, ...rest } = propsIn, props = (0, import_core12.useProps)(rest), { offset: offset2, size: sizeProp, borderWidth = 0, ...arrowProps } = props, context = usePopperContext(__scopePopper), sizeVal = sizeProp ?? context.size, size2 = +(0, import_core12.getVariableValue)(
|
|
13811
14859
|
(0, import_get_token2.getSpace)(sizeVal, {
|
|
13812
14860
|
shift: -2,
|
|
13813
14861
|
bounds: [2]
|
|
13814
14862
|
})
|
|
13815
|
-
), { placement } = context, refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef), x = ((_a = context.arrowStyle) == null ? void 0 : _a.x) || 0, y = ((_b = context.arrowStyle) == null ? void 0 : _b.y) || 0, primaryPlacement = placement ? placement.split("-")[0] : "top", arrowStyle = { x, y, width:
|
|
14863
|
+
), { placement } = context, refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef), x = ((_a = context.arrowStyle) == null ? void 0 : _a.x) || 0, y = ((_b = context.arrowStyle) == null ? void 0 : _b.y) || 0, primaryPlacement = placement ? placement.split("-")[0] : "top", arrowStyle = { x, y, width: size2, height: size2 }, innerArrowStyle = {}, isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
|
|
13816
14864
|
if (primaryPlacement) {
|
|
13817
|
-
arrowStyle[isVertical ? "width" : "height"] =
|
|
14865
|
+
arrowStyle[isVertical ? "width" : "height"] = size2 * 2;
|
|
13818
14866
|
let oppSide = opposites[primaryPlacement];
|
|
13819
|
-
oppSide && (arrowStyle[oppSide] = -
|
|
14867
|
+
oppSide && (arrowStyle[oppSide] = -size2, innerArrowStyle[oppSide] = size2 / 2), oppSide === "bottom" && (arrowStyle[oppSide] += 1), (oppSide === "top" || oppSide === "bottom") && (arrowStyle.left = 0), (oppSide === "left" || oppSide === "right") && (arrowStyle.top = 0), (0, import_core12.useIsomorphicLayoutEffect)(() => {
|
|
13820
14868
|
var _a2;
|
|
13821
|
-
(_a2 = context.onArrowSize) == null || _a2.call(context,
|
|
13822
|
-
}, [
|
|
14869
|
+
(_a2 = context.onArrowSize) == null || _a2.call(context, size2);
|
|
14870
|
+
}, [size2, context.onArrowSize]);
|
|
13823
14871
|
}
|
|
13824
14872
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperArrowOuterFrame, { ref: refs, ...arrowStyle, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
13825
14873
|
PopperArrowFrame,
|
|
13826
14874
|
{
|
|
13827
|
-
width:
|
|
13828
|
-
height:
|
|
14875
|
+
width: size2,
|
|
14876
|
+
height: size2,
|
|
13829
14877
|
...arrowProps,
|
|
13830
14878
|
...innerArrowStyle,
|
|
13831
14879
|
rotate: "45deg",
|
|
@@ -13948,7 +14996,7 @@ var require_Popover_native = __commonJS({
|
|
|
13948
14996
|
usePopoverContext: () => usePopoverContext
|
|
13949
14997
|
});
|
|
13950
14998
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
13951
|
-
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_freeze = require_dist2(), import_react_native4 =
|
|
14999
|
+
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native24(), import_animate = require_index_native52(), import_aria_hidden = require_index_native26(), import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_floating = require_index_native53(), import_focus_scope = require_index_native28(), import_popper = require_index_native54(), import_portal2 = require_index_native29(), import_remove_scroll = require_index_native30(), import_sheet = require_index_native34(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), React2 = __toESM2(require("react")), import_react_freeze = require_dist2(), import_react_native4 = require("react-native"), import_useFloatingContext = require_useFloatingContext_native(), import_jsx_runtime6 = require("react/jsx-runtime"), POPOVER_SCOPE = "PopoverScope", PopoverContext = (0, import_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
13952
15000
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
13953
15001
|
return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
13954
15002
|
import_popper.PopperAnchor,
|
|
@@ -14292,8 +15340,8 @@ var require_Progress_native = __commonJS({
|
|
|
14292
15340
|
}
|
|
14293
15341
|
);
|
|
14294
15342
|
});
|
|
14295
|
-
function defaultGetValueLabel(value,
|
|
14296
|
-
return `${Math.round(value /
|
|
15343
|
+
function defaultGetValueLabel(value, max2) {
|
|
15344
|
+
return `${Math.round(value / max2 * 100)}%`;
|
|
14297
15345
|
}
|
|
14298
15346
|
function getProgressState(value, maxValue) {
|
|
14299
15347
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
@@ -14301,11 +15349,11 @@ var require_Progress_native = __commonJS({
|
|
|
14301
15349
|
function isNumber(value) {
|
|
14302
15350
|
return typeof value == "number";
|
|
14303
15351
|
}
|
|
14304
|
-
function isValidMaxNumber(
|
|
14305
|
-
return isNumber(
|
|
15352
|
+
function isValidMaxNumber(max2) {
|
|
15353
|
+
return isNumber(max2) && !isNaN(max2) && max2 > 0;
|
|
14306
15354
|
}
|
|
14307
|
-
function isValidValueNumber(value,
|
|
14308
|
-
return isNumber(value) && !isNaN(value) && value <=
|
|
15355
|
+
function isValidValueNumber(value, max2) {
|
|
15356
|
+
return isNumber(value) && !isNaN(value) && value <= max2 && value >= 0;
|
|
14309
15357
|
}
|
|
14310
15358
|
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
14311
15359
|
name: "Progress",
|
|
@@ -14319,10 +15367,10 @@ var require_Progress_native = __commonJS({
|
|
|
14319
15367
|
},
|
|
14320
15368
|
size: {
|
|
14321
15369
|
"...size": (val) => {
|
|
14322
|
-
let
|
|
15370
|
+
let size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
|
|
14323
15371
|
return {
|
|
14324
|
-
height:
|
|
14325
|
-
minWidth: (0, import_core12.getVariableValue)(
|
|
15372
|
+
height: size2,
|
|
15373
|
+
minWidth: (0, import_core12.getVariableValue)(size2) * 20,
|
|
14326
15374
|
width: "100%"
|
|
14327
15375
|
};
|
|
14328
15376
|
}
|
|
@@ -14338,22 +15386,22 @@ var require_Progress_native = __commonJS({
|
|
|
14338
15386
|
value: valueProp,
|
|
14339
15387
|
max: maxProp,
|
|
14340
15388
|
getValueLabel = defaultGetValueLabel,
|
|
14341
|
-
size = "$true",
|
|
15389
|
+
size: size2 = "$true",
|
|
14342
15390
|
...progressProps
|
|
14343
|
-
} = props,
|
|
14344
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, { scope: __scopeProgress, value, max, width, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15391
|
+
} = props, max2 = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max2) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max2) : void 0, [width, setWidth] = React2.useState(0);
|
|
15392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressProvider, { scope: __scopeProgress, value, max: max2, width, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
14345
15393
|
ProgressFrame,
|
|
14346
15394
|
{
|
|
14347
|
-
"aria-valuemax":
|
|
15395
|
+
"aria-valuemax": max2,
|
|
14348
15396
|
"aria-valuemin": 0,
|
|
14349
15397
|
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
14350
15398
|
"aria-valuetext": valueLabel,
|
|
14351
15399
|
role: "progressbar",
|
|
14352
|
-
"data-state": getProgressState(value,
|
|
15400
|
+
"data-state": getProgressState(value, max2),
|
|
14353
15401
|
"data-value": value ?? void 0,
|
|
14354
|
-
"data-max":
|
|
15402
|
+
"data-max": max2,
|
|
14355
15403
|
...progressProps.unstyled !== !0 && {
|
|
14356
|
-
size
|
|
15404
|
+
size: size2
|
|
14357
15405
|
},
|
|
14358
15406
|
...progressProps,
|
|
14359
15407
|
onLayout: (e) => {
|
|
@@ -14498,12 +15546,12 @@ var require_RadioGroup_native = __commonJS({
|
|
|
14498
15546
|
},
|
|
14499
15547
|
size: {
|
|
14500
15548
|
"...size": (value, { props }) => {
|
|
14501
|
-
let
|
|
15549
|
+
let size2 = Math.floor(
|
|
14502
15550
|
(0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * (props.scaleSize ?? 0.5)
|
|
14503
15551
|
);
|
|
14504
15552
|
return {
|
|
14505
|
-
width:
|
|
14506
|
-
height:
|
|
15553
|
+
width: size2,
|
|
15554
|
+
height: size2
|
|
14507
15555
|
};
|
|
14508
15556
|
}
|
|
14509
15557
|
}
|
|
@@ -14951,7 +15999,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
14951
15999
|
dataRef,
|
|
14952
16000
|
interactions,
|
|
14953
16001
|
shouldRenderWebNative,
|
|
14954
|
-
size,
|
|
16002
|
+
size: size2,
|
|
14955
16003
|
onActiveChange,
|
|
14956
16004
|
initialValue
|
|
14957
16005
|
} = context, [isSelected, setSelected] = React2.useState(initialValue === value), [isActive, setActive] = React2.useState(!1);
|
|
@@ -15020,7 +16068,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
15020
16068
|
focusTheme: !0,
|
|
15021
16069
|
cursor: "default",
|
|
15022
16070
|
outlineWidth: 0,
|
|
15023
|
-
size,
|
|
16071
|
+
size: size2,
|
|
15024
16072
|
ellipse: !0
|
|
15025
16073
|
},
|
|
15026
16074
|
...itemProps,
|
|
@@ -15345,16 +16393,16 @@ var require_Select_native = __commonJS({
|
|
|
15345
16393
|
}
|
|
15346
16394
|
}), SelectGroup = React2.forwardRef(
|
|
15347
16395
|
(props, forwardedRef) => {
|
|
15348
|
-
let { __scopeSelect, ...groupProps } = props, groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect),
|
|
16396
|
+
let { __scopeSelect, ...groupProps } = props, groupId = React2.useId(), context = (0, import_context.useSelectContext)(GROUP_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(GROUP_NAME, __scopeSelect), size2 = itemParentContext.size ?? "$true", nativeSelectRef = React2.useRef(null), content = function() {
|
|
15349
16397
|
return itemParentContext.shouldRenderWebNative ? (
|
|
15350
16398
|
// @ts-expect-error until we support typing based on tag
|
|
15351
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, { asChild: !0, size, value: context.value, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
16399
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(NativeSelectFrame, { asChild: !0, size: size2, value: context.value, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15352
16400
|
NativeSelectTextFrame,
|
|
15353
16401
|
{
|
|
15354
16402
|
onChange: (event) => {
|
|
15355
16403
|
itemParentContext.onChange(event.currentTarget.value);
|
|
15356
16404
|
},
|
|
15357
|
-
size,
|
|
16405
|
+
size: size2,
|
|
15358
16406
|
ref: nativeSelectRef,
|
|
15359
16407
|
style: {
|
|
15360
16408
|
color: "var(--color)",
|
|
@@ -15625,8 +16673,8 @@ var require_helpers_native2 = __commonJS({
|
|
|
15625
16673
|
let nextValues = [...prevValues];
|
|
15626
16674
|
return nextValues[atIndex] = nextValue, nextValues.sort((a, b) => a - b);
|
|
15627
16675
|
}
|
|
15628
|
-
function convertValueToPercentage(value,
|
|
15629
|
-
return 100 / (
|
|
16676
|
+
function convertValueToPercentage(value, min2, max2) {
|
|
16677
|
+
return 100 / (max2 - min2) * (value - min2);
|
|
15630
16678
|
}
|
|
15631
16679
|
function getLabel(index, totalValues) {
|
|
15632
16680
|
return totalValues > 2 ? `Value ${index + 1} of ${totalValues}` : totalValues === 2 ? ["Minimum", "Maximum"][index] : void 0;
|
|
@@ -15638,8 +16686,8 @@ var require_helpers_native2 = __commonJS({
|
|
|
15638
16686
|
return distances.indexOf(closestDistance);
|
|
15639
16687
|
}
|
|
15640
16688
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
15641
|
-
let halfWidth = width / 2,
|
|
15642
|
-
return (halfWidth -
|
|
16689
|
+
let halfWidth = width / 2, offset2 = linearScale([0, 50], [0, halfWidth]);
|
|
16690
|
+
return (halfWidth - offset2(left) * direction) * direction;
|
|
15643
16691
|
}
|
|
15644
16692
|
function getStepsBetweenValues(values) {
|
|
15645
16693
|
return values.slice(0, -1).map((value, index) => values[index + 1] - value);
|
|
@@ -15708,14 +16756,14 @@ var require_SliderImpl_native = __commonJS({
|
|
|
15708
16756
|
size: (val, extras) => {
|
|
15709
16757
|
if (!val)
|
|
15710
16758
|
return;
|
|
15711
|
-
let orientation = extras.props.orientation,
|
|
16759
|
+
let orientation = extras.props.orientation, size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
|
|
15712
16760
|
return orientation === "horizontal" ? {
|
|
15713
|
-
height:
|
|
15714
|
-
borderRadius:
|
|
16761
|
+
height: size2,
|
|
16762
|
+
borderRadius: size2,
|
|
15715
16763
|
justifyContent: "center"
|
|
15716
16764
|
} : {
|
|
15717
|
-
width:
|
|
15718
|
-
borderRadius:
|
|
16765
|
+
width: size2,
|
|
16766
|
+
borderRadius: size2,
|
|
15719
16767
|
alignItems: "center"
|
|
15720
16768
|
};
|
|
15721
16769
|
}
|
|
@@ -15803,8 +16851,8 @@ var require_Slider_native = __commonJS({
|
|
|
15803
16851
|
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_get_token2 = require_index_native17(), import_helpers = require_index_native4(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_direction = require_index_native22(), React2 = __toESM2(require("react")), import_constants = require_constants_native4(), import_helpers2 = require_helpers_native2(), import_SliderImpl = require_SliderImpl_native(), import_jsx_runtime6 = require("react/jsx-runtime"), SliderHorizontal = React2.forwardRef(
|
|
15804
16852
|
(props, forwardedRef) => {
|
|
15805
16853
|
let {
|
|
15806
|
-
min,
|
|
15807
|
-
max,
|
|
16854
|
+
min: min2,
|
|
16855
|
+
max: max2,
|
|
15808
16856
|
dir,
|
|
15809
16857
|
onSlideStart,
|
|
15810
16858
|
onSlideMove,
|
|
@@ -15814,7 +16862,7 @@ var require_Slider_native = __commonJS({
|
|
|
15814
16862
|
} = props, direction = (0, import_use_direction.useDirection)(dir), isDirectionLTR = direction === "ltr", sliderRef = React2.useRef(null), [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0, import_core12.createShallowSetState)(setState_);
|
|
15815
16863
|
function getValueFromPointer(pointerPosition) {
|
|
15816
16864
|
let input = [0, state.size];
|
|
15817
|
-
return (0, import_helpers2.linearScale)(input, isDirectionLTR ? [
|
|
16865
|
+
return (0, import_helpers2.linearScale)(input, isDirectionLTR ? [min2, max2] : [max2, min2])(pointerPosition);
|
|
15818
16866
|
}
|
|
15819
16867
|
let measure = () => {
|
|
15820
16868
|
var _a;
|
|
@@ -15877,8 +16925,8 @@ var require_Slider_native = __commonJS({
|
|
|
15877
16925
|
var SliderVertical = React2.forwardRef(
|
|
15878
16926
|
(props, forwardedRef) => {
|
|
15879
16927
|
let {
|
|
15880
|
-
min,
|
|
15881
|
-
max,
|
|
16928
|
+
min: min2,
|
|
16929
|
+
max: max2,
|
|
15882
16930
|
onSlideStart,
|
|
15883
16931
|
onSlideMove,
|
|
15884
16932
|
onStepKeyDown,
|
|
@@ -15887,7 +16935,7 @@ var require_Slider_native = __commonJS({
|
|
|
15887
16935
|
} = props, [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0, import_core12.createShallowSetState)(setState_), sliderRef = React2.useRef(null);
|
|
15888
16936
|
function getValueFromPointer(pointerPosition) {
|
|
15889
16937
|
let input = [0, state.size];
|
|
15890
|
-
return (0, import_helpers2.linearScale)(input, [
|
|
16938
|
+
return (0, import_helpers2.linearScale)(input, [max2, min2])(pointerPosition);
|
|
15891
16939
|
}
|
|
15892
16940
|
let measure = () => {
|
|
15893
16941
|
var _a;
|
|
@@ -16002,14 +17050,14 @@ var require_Slider_native = __commonJS({
|
|
|
16002
17050
|
);
|
|
16003
17051
|
SliderTrackActive.displayName = RANGE_NAME;
|
|
16004
17052
|
var THUMB_NAME = "SliderThumb", getThumbSize = (val) => {
|
|
16005
|
-
let tokens = (0, import_core12.getTokens)(),
|
|
17053
|
+
let tokens = (0, import_core12.getTokens)(), size2 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
|
|
16006
17054
|
shift: -1
|
|
16007
17055
|
});
|
|
16008
17056
|
return {
|
|
16009
|
-
width:
|
|
16010
|
-
height:
|
|
16011
|
-
minWidth:
|
|
16012
|
-
minHeight:
|
|
17057
|
+
width: size2,
|
|
17058
|
+
height: size2,
|
|
17059
|
+
minWidth: size2,
|
|
17060
|
+
minHeight: size2
|
|
16013
17061
|
};
|
|
16014
17062
|
}, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16015
17063
|
name: "SliderThumb",
|
|
@@ -16036,7 +17084,7 @@ var require_Slider_native = __commonJS({
|
|
|
16036
17084
|
let { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
16037
17085
|
forwardedRef,
|
|
16038
17086
|
(node) => setThumb(node)
|
|
16039
|
-
), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers2.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers2.getLabel)(index, context.values.length), sizeIn = sizeProp ?? context.size ?? "$true", [
|
|
17087
|
+
), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers2.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers2.getLabel)(index, context.values.length), sizeIn = sizeProp ?? context.size ?? "$true", [size2, setSize] = React2.useState(() => (0, import_core12.getVariableValue)(getThumbSize(sizeIn).width)), thumbInBoundsOffset = size2 ? (0, import_helpers2.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
|
|
16040
17088
|
React2.useEffect(() => {
|
|
16041
17089
|
if (thumb)
|
|
16042
17090
|
return context.thumbs.add(thumb), () => {
|
|
@@ -16044,18 +17092,18 @@ var require_Slider_native = __commonJS({
|
|
|
16044
17092
|
};
|
|
16045
17093
|
}, [thumb, context.thumbs]);
|
|
16046
17094
|
let positionalStyles = context.orientation === "horizontal" ? {
|
|
16047
|
-
x: thumbInBoundsOffset -
|
|
16048
|
-
y: -
|
|
17095
|
+
x: thumbInBoundsOffset - size2 / 2,
|
|
17096
|
+
y: -size2 / 2,
|
|
16049
17097
|
top: "50%",
|
|
16050
|
-
...
|
|
17098
|
+
...size2 === 0 && {
|
|
16051
17099
|
top: "auto",
|
|
16052
17100
|
bottom: "auto"
|
|
16053
17101
|
}
|
|
16054
17102
|
} : {
|
|
16055
|
-
x: -
|
|
16056
|
-
y:
|
|
17103
|
+
x: -size2 / 2,
|
|
17104
|
+
y: size2 / 2,
|
|
16057
17105
|
left: "50%",
|
|
16058
|
-
...
|
|
17106
|
+
...size2 === 0 && {
|
|
16059
17107
|
left: "auto",
|
|
16060
17108
|
right: "auto"
|
|
16061
17109
|
}
|
|
@@ -16090,13 +17138,13 @@ var require_Slider_native = __commonJS({
|
|
|
16090
17138
|
(props, forwardedRef) => {
|
|
16091
17139
|
let {
|
|
16092
17140
|
name,
|
|
16093
|
-
min = 0,
|
|
16094
|
-
max = 100,
|
|
17141
|
+
min: min2 = 0,
|
|
17142
|
+
max: max2 = 100,
|
|
16095
17143
|
step = 1,
|
|
16096
17144
|
orientation = "horizontal",
|
|
16097
17145
|
disabled = !1,
|
|
16098
17146
|
minStepsBetweenThumbs = 0,
|
|
16099
|
-
defaultValue = [
|
|
17147
|
+
defaultValue = [min2],
|
|
16100
17148
|
value,
|
|
16101
17149
|
onValueChange = () => {
|
|
16102
17150
|
},
|
|
@@ -16130,9 +17178,9 @@ var require_Slider_native = __commonJS({
|
|
|
16130
17178
|
}
|
|
16131
17179
|
function updateValues(value2, atIndex) {
|
|
16132
17180
|
let decimalCount = (0, import_helpers2.getDecimalCount)(step), snapToStep = (0, import_helpers2.roundValue)(
|
|
16133
|
-
Math.round((value2 -
|
|
17181
|
+
Math.round((value2 - min2) / step) * step + min2,
|
|
16134
17182
|
decimalCount
|
|
16135
|
-
), nextValue = (0, import_helpers.clamp)(snapToStep, [
|
|
17183
|
+
), nextValue = (0, import_helpers.clamp)(snapToStep, [min2, max2]);
|
|
16136
17184
|
setValues((prevValues = []) => {
|
|
16137
17185
|
let nextValues = (0, import_helpers2.getNextSortedValues)(prevValues, nextValue, atIndex);
|
|
16138
17186
|
return (0, import_helpers2.hasMinStepsBetweenValues)(nextValues, minStepsBetweenThumbs * step) ? (valueIndexToChangeRef.current = nextValues.indexOf(nextValue), String(nextValues) === String(prevValues) ? prevValues : nextValues) : prevValues;
|
|
@@ -16144,8 +17192,8 @@ var require_Slider_native = __commonJS({
|
|
|
16144
17192
|
{
|
|
16145
17193
|
scope: props.__scopeSlider,
|
|
16146
17194
|
disabled,
|
|
16147
|
-
min,
|
|
16148
|
-
max,
|
|
17195
|
+
min: min2,
|
|
17196
|
+
max: max2,
|
|
16149
17197
|
valueIndexToChangeRef,
|
|
16150
17198
|
thumbs: thumbRefs.current,
|
|
16151
17199
|
values,
|
|
@@ -16158,8 +17206,8 @@ var require_Slider_native = __commonJS({
|
|
|
16158
17206
|
"data-disabled": disabled ? "" : void 0,
|
|
16159
17207
|
...sliderProps,
|
|
16160
17208
|
ref: composedRefs,
|
|
16161
|
-
min,
|
|
16162
|
-
max,
|
|
17209
|
+
min: min2,
|
|
17210
|
+
max: max2,
|
|
16163
17211
|
onSlideEnd,
|
|
16164
17212
|
onSlideStart: disabled ? void 0 : (value2, target, event) => {
|
|
16165
17213
|
if (target !== "thumb") {
|
|
@@ -16168,8 +17216,8 @@ var require_Slider_native = __commonJS({
|
|
|
16168
17216
|
}
|
|
16169
17217
|
},
|
|
16170
17218
|
onSlideMove: disabled ? void 0 : handleSlideMove,
|
|
16171
|
-
onHomeKeyDown: () => !disabled && updateValues(
|
|
16172
|
-
onEndKeyDown: () => !disabled && updateValues(
|
|
17219
|
+
onHomeKeyDown: () => !disabled && updateValues(min2, 0),
|
|
17220
|
+
onEndKeyDown: () => !disabled && updateValues(max2, values.length - 1),
|
|
16173
17221
|
onStepKeyDown: ({ event, direction: stepDirection }) => {
|
|
16174
17222
|
if (!disabled) {
|
|
16175
17223
|
let multiplier = import_constants.PAGE_KEYS.includes(event.key) || event.shiftKey && import_constants.ARROW_KEYS.includes(event.key) ? 10 : 1, atIndex = valueIndexToChangeRef.current, value2 = values[atIndex], stepInDirection = step * multiplier * stepDirection;
|
|
@@ -16275,10 +17323,10 @@ var require_Switch_native = __commonJS({
|
|
|
16275
17323
|
},
|
|
16276
17324
|
size: {
|
|
16277
17325
|
"...size": (val) => {
|
|
16278
|
-
let
|
|
17326
|
+
let size2 = getSwitchHeight(val);
|
|
16279
17327
|
return {
|
|
16280
|
-
height:
|
|
16281
|
-
width:
|
|
17328
|
+
height: size2,
|
|
17329
|
+
width: size2
|
|
16282
17330
|
};
|
|
16283
17331
|
}
|
|
16284
17332
|
}
|
|
@@ -16352,7 +17400,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
16352
17400
|
createSwitch: () => createSwitch
|
|
16353
17401
|
});
|
|
16354
17402
|
module2.exports = __toCommonJS2(createSwitch_exports);
|
|
16355
|
-
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_label = require_index_native45(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 =
|
|
17403
|
+
var import_compose_refs = require_index_native5(), import_core12 = require_index_native10(), import_focusable2 = require_index_native44(), import_label = require_index_native45(), import_stacks3 = require_index_native19(), import_use_controllable_state = require_index_native14(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_react_native4 = require("react-native"), import_Switch = require_Switch_native(), import_SwitchContext = require_SwitchContext_native(), import_jsx_runtime6 = (
|
|
16356
17404
|
// @ts-ignore
|
|
16357
17405
|
require("react/jsx-runtime")
|
|
16358
17406
|
);
|
|
@@ -16416,7 +17464,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
16416
17464
|
disabled,
|
|
16417
17465
|
value = "on",
|
|
16418
17466
|
onCheckedChange,
|
|
16419
|
-
size = styledContext.size ?? "$true",
|
|
17467
|
+
size: size2 = styledContext.size ?? "$true",
|
|
16420
17468
|
unstyled = styledContext.unstyled ?? !1,
|
|
16421
17469
|
native: nativeProp,
|
|
16422
17470
|
nativeProps,
|
|
@@ -16447,7 +17495,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
16447
17495
|
Frame,
|
|
16448
17496
|
{
|
|
16449
17497
|
unstyled,
|
|
16450
|
-
size,
|
|
17498
|
+
size: size2,
|
|
16451
17499
|
checked,
|
|
16452
17500
|
disabled,
|
|
16453
17501
|
frameWidth,
|
|
@@ -16840,7 +17888,7 @@ var require_Tabs_native = __commonJS({
|
|
|
16840
17888
|
orientation = "horizontal",
|
|
16841
17889
|
dir,
|
|
16842
17890
|
activationMode = "automatic",
|
|
16843
|
-
size = "$true",
|
|
17891
|
+
size: size2 = "$true",
|
|
16844
17892
|
...tabsProps
|
|
16845
17893
|
} = props, direction = (0, import_use_direction.useDirection)(dir), [value, setValue] = (0, import_use_controllable_state.useControllableState)({
|
|
16846
17894
|
prop: valueProp,
|
|
@@ -16857,7 +17905,7 @@ var require_Tabs_native = __commonJS({
|
|
|
16857
17905
|
orientation,
|
|
16858
17906
|
dir: direction,
|
|
16859
17907
|
activationMode,
|
|
16860
|
-
size,
|
|
17908
|
+
size: size2,
|
|
16861
17909
|
registerTrigger,
|
|
16862
17910
|
triggersCount,
|
|
16863
17911
|
unregisterTrigger,
|
|
@@ -17253,13 +18301,13 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
17253
18301
|
var import_focusable2 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native17(), import_group = require_index_native50(), import_helpers_tamagui = require_index_native41(), import_roving_focus = require_index_native62(), import_use_controllable_state = require_index_native14(), import_use_direction = require_index_native22(), import_web = require_index_native9(), import_react2 = __toESM2(require("react")), import_Toggle = require_Toggle_native(), import_jsx_runtime6 = require("react/jsx-runtime"), TOGGLE_GROUP_NAME = "ToggleGroup", TOGGLE_GROUP_ITEM_NAME = "ToggleGroupItem", TOGGLE_GROUP_CONTEXT = "ToggleGroup", { Provider: ToggleGroupItemProvider, useStyledContext: useToggleGroupItemContext } = (0, import_web.createStyledContext)(), { Provider: ToggleGroupContext, useStyledContext: useToggleGroupContext } = (0, import_web.createStyledContext)(), ToggleGroupItem = import_Toggle.ToggleFrame.extractable(
|
|
17254
18302
|
import_react2.default.forwardRef(
|
|
17255
18303
|
(props, forwardedRef) => {
|
|
17256
|
-
let { __scopeToggleGroup, ...rest } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), context = useToggleGroupContext(__scopeToggleGroup), pressed = valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, ref = import_react2.default.useRef(null), groupItemProps = (0, import_group.useGroupItem)({ disabled }),
|
|
18304
|
+
let { __scopeToggleGroup, ...rest } = props, valueContext = useToggleGroupValueContext(__scopeToggleGroup), context = useToggleGroupContext(__scopeToggleGroup), pressed = valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, ref = import_react2.default.useRef(null), groupItemProps = (0, import_group.useGroupItem)({ disabled }), size2 = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
|
|
17257
18305
|
width: void 0,
|
|
17258
18306
|
height: void 0,
|
|
17259
|
-
padding: (0, import_web.getVariableValue)(
|
|
18307
|
+
padding: (0, import_web.getVariableValue)(size2) * 0.6
|
|
17260
18308
|
};
|
|
17261
|
-
props.unstyled || (props.orientation === "horizontal" ? sizeProps.height = (0, import_web.getVariableValue)(
|
|
17262
|
-
let iconSize = (typeof
|
|
18309
|
+
props.unstyled || (props.orientation === "horizontal" ? sizeProps.height = (0, import_web.getVariableValue)(size2) * 2.4 : sizeProps.width = (0, import_web.getVariableValue)(size2) * 2.4);
|
|
18310
|
+
let iconSize = (typeof size2 == "number" ? size2 * 0.7 : (0, import_font_size.getFontSize)(size2)) * 1.2, theme = (0, import_web.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = import_react2.default.Children.toArray(props.children).map((child) => props.disablePassStyles || !import_react2.default.isValidElement(child) ? child : getThemedIcon(child)), commonProps = { pressed, disabled, ...sizeProps, ...props, children };
|
|
17263
18311
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToggleGroupItemProvider, { scope: __scopeToggleGroup, children: context.rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17264
18312
|
import_roving_focus.RovingFocusGroup.Item,
|
|
17265
18313
|
{
|
|
@@ -17457,14 +18505,14 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
17457
18505
|
(0, import_get_token2.getSize)(sizeProp, {
|
|
17458
18506
|
shift: sizeAdjust
|
|
17459
18507
|
})
|
|
17460
|
-
),
|
|
18508
|
+
), size2 = Math.round(adjustedSize * 0.45);
|
|
17461
18509
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17462
18510
|
ToggleGroupContext,
|
|
17463
18511
|
{
|
|
17464
18512
|
scope: __scopeToggleGroup,
|
|
17465
18513
|
rovingFocus,
|
|
17466
18514
|
disabled,
|
|
17467
|
-
size,
|
|
18515
|
+
size: size2,
|
|
17468
18516
|
children: rovingFocus ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17469
18517
|
import_roving_focus.RovingFocusGroup,
|
|
17470
18518
|
{
|
|
@@ -17657,7 +18705,7 @@ var require_index_native68 = __commonJS({
|
|
|
17657
18705
|
useWindowDimensions: () => useWindowDimensions
|
|
17658
18706
|
});
|
|
17659
18707
|
module2.exports = __toCommonJS2(src_exports2);
|
|
17660
|
-
var import_constants = require_index_native2(), import_react2 = require("react"), import_react_native4 =
|
|
18708
|
+
var import_constants = require_index_native2(), import_react2 = require("react"), import_react_native4 = require("react-native"), initialValue = {
|
|
17661
18709
|
height: 800,
|
|
17662
18710
|
width: 600
|
|
17663
18711
|
};
|
|
@@ -17928,7 +18976,7 @@ Expected a subset of: ${expected.join(", ")}
|
|
|
17928
18976
|
var import_core2 = __toESM(require_index_native10()), import_portal = __toESM(require_index_native29()), import_jsx_runtime = require("react/jsx-runtime"), TamaguiProvider = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core2.TamaguiProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalProvider, { shouldAddRootHost: !0, children }) });
|
|
17929
18977
|
|
|
17930
18978
|
// src/views/Anchor.tsx
|
|
17931
|
-
var import_core3 = __toESM(require_index_native10()), import_text = __toESM(require_index_native21()), import_react_native =
|
|
18979
|
+
var import_core3 = __toESM(require_index_native10()), import_text = __toESM(require_index_native21()), import_react_native = require("react-native"), import_jsx_runtime2 = require("react/jsx-runtime"), AnchorFrame = (0, import_core3.styled)(import_text.SizableText, {
|
|
17932
18980
|
name: "Anchor",
|
|
17933
18981
|
tag: "a",
|
|
17934
18982
|
accessibilityRole: "link"
|
|
@@ -17981,7 +19029,7 @@ var import_core5 = __toESM(require_index_native10()), import_stacks = __toESM(re
|
|
|
17981
19029
|
});
|
|
17982
19030
|
|
|
17983
19031
|
// src/views/Input.tsx
|
|
17984
|
-
var import_core7 = __toESM(require_index_native10()), import_focusable = __toESM(require_index_native44()), import_react_native2 =
|
|
19032
|
+
var import_core7 = __toESM(require_index_native10()), import_focusable = __toESM(require_index_native44()), import_react_native2 = require("react-native");
|
|
17985
19033
|
|
|
17986
19034
|
// src/helpers/inputHelpers.tsx
|
|
17987
19035
|
var import_core6 = __toESM(require_index_native10()), import_get_button_sized = __toESM(require_index_native18()), import_get_font_sized = __toESM(require_index_native20()), import_get_token = __toESM(require_index_native17()), inputSizeVariant = (val = "$true", extras) => {
|
|
@@ -18118,11 +19166,11 @@ var import_core8 = __toESM(require_index_native10()), Section = (0, import_core8
|
|
|
18118
19166
|
});
|
|
18119
19167
|
|
|
18120
19168
|
// src/views/Spinner.tsx
|
|
18121
|
-
var import_core9 = __toESM(require_index_native10()), import_stacks2 = __toESM(require_index_native19()), React = __toESM(require("react")), import_react_native3 =
|
|
19169
|
+
var import_core9 = __toESM(require_index_native10()), import_stacks2 = __toESM(require_index_native19()), React = __toESM(require("react")), import_react_native3 = require("react-native"), import_jsx_runtime4 = require("react/jsx-runtime"), Spinner = import_stacks2.YStack.extractable(
|
|
18122
19170
|
(0, import_core9.themeable)(
|
|
18123
19171
|
React.forwardRef((props, ref) => {
|
|
18124
|
-
let { size, color: colorProp, ...stackProps } = props, theme = (0, import_core9.useTheme)(), color = colorProp;
|
|
18125
|
-
return color && color[0] === "$" && (color = (0, import_core9.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, { size, color }) });
|
|
19172
|
+
let { size: size2, color: colorProp, ...stackProps } = props, theme = (0, import_core9.useTheme)(), color = colorProp;
|
|
19173
|
+
return color && color[0] === "$" && (color = (0, import_core9.variableToString)(theme[color])), /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_stacks2.YStack, { ref, ...stackProps, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_native3.ActivityIndicator, { size: size2, color }) });
|
|
18126
19174
|
}),
|
|
18127
19175
|
{
|
|
18128
19176
|
componentName: "Spinner"
|