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