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/native.js
CHANGED
|
@@ -8477,7 +8477,7 @@ var require_SizableText_native = __commonJS({
|
|
|
8477
8477
|
fontFamily: "$body",
|
|
8478
8478
|
variants,
|
|
8479
8479
|
defaultVariants: {
|
|
8480
|
-
unstyled:
|
|
8480
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
8481
8481
|
}
|
|
8482
8482
|
});
|
|
8483
8483
|
}
|
|
@@ -8954,7 +8954,7 @@ var require_Accordion_native = __commonJS({
|
|
|
8954
8954
|
}
|
|
8955
8955
|
},
|
|
8956
8956
|
defaultVariants: {
|
|
8957
|
-
unstyled:
|
|
8957
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
8958
8958
|
}
|
|
8959
8959
|
}), AccordionTrigger = AccordionTriggerFrame.styleable(function(props, forwardedRef) {
|
|
8960
8960
|
let { __scopeAccordion, ...triggerProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion), collapsibleContext = useAccordionCollapsibleContext(__scopeAccordion);
|
|
@@ -8979,7 +8979,7 @@ var require_Accordion_native = __commonJS({
|
|
|
8979
8979
|
}
|
|
8980
8980
|
},
|
|
8981
8981
|
defaultVariants: {
|
|
8982
|
-
unstyled:
|
|
8982
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
8983
8983
|
}
|
|
8984
8984
|
}), AccordionContent = AccordionContentFrame.styleable(function(props, forwardedRef) {
|
|
8985
8985
|
let { __scopeAccordion, ...contentProps } = props, accordionContext = useAccordionContext(__scopeAccordion), itemContext = useAccordionItemContext(__scopeAccordion);
|
|
@@ -10661,7 +10661,7 @@ var require_Sheet_native = __commonJS({
|
|
|
10661
10661
|
}
|
|
10662
10662
|
},
|
|
10663
10663
|
defaultVariants: {
|
|
10664
|
-
unstyled:
|
|
10664
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10665
10665
|
}
|
|
10666
10666
|
}), Overlay = (0, import_core13.styled)(import_stacks3.ThemeableStack, {
|
|
10667
10667
|
name: import_constants.SHEET_OVERLAY_NAME,
|
|
@@ -10687,7 +10687,7 @@ var require_Sheet_native = __commonJS({
|
|
|
10687
10687
|
}
|
|
10688
10688
|
},
|
|
10689
10689
|
defaultVariants: {
|
|
10690
|
-
unstyled:
|
|
10690
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10691
10691
|
}
|
|
10692
10692
|
}), Frame = (0, import_core13.styled)(import_stacks3.YStack, {
|
|
10693
10693
|
name: import_constants.SHEET_NAME,
|
|
@@ -10705,7 +10705,7 @@ var require_Sheet_native = __commonJS({
|
|
|
10705
10705
|
}
|
|
10706
10706
|
},
|
|
10707
10707
|
defaultVariants: {
|
|
10708
|
-
unstyled:
|
|
10708
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10709
10709
|
}
|
|
10710
10710
|
}), Sheet = (0, import_createSheet.createSheet)({
|
|
10711
10711
|
Frame,
|
|
@@ -10876,7 +10876,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10876
10876
|
}
|
|
10877
10877
|
},
|
|
10878
10878
|
defaultVariants: {
|
|
10879
|
-
unstyled:
|
|
10879
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10880
10880
|
}
|
|
10881
10881
|
}), DialogPortalItem = (props) => {
|
|
10882
10882
|
let themeName = (0, import_core13.useThemeName)(), context = useDialogContext(PORTAL_NAME, props.__scopeDialog);
|
|
@@ -10962,7 +10962,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10962
10962
|
},
|
|
10963
10963
|
defaultVariants: {
|
|
10964
10964
|
size: "$true",
|
|
10965
|
-
unstyled:
|
|
10965
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10966
10966
|
}
|
|
10967
10967
|
}), DialogContent = DialogContentFrame.extractable(
|
|
10968
10968
|
React2.forwardRef(
|
|
@@ -11137,7 +11137,7 @@ var require_Dialog_native = __commonJS({
|
|
|
11137
11137
|
}
|
|
11138
11138
|
},
|
|
11139
11139
|
defaultVariants: {
|
|
11140
|
-
unstyled:
|
|
11140
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
11141
11141
|
}
|
|
11142
11142
|
}), DialogClose = DialogCloseFrame.styleable(
|
|
11143
11143
|
(props, forwardedRef) => {
|
|
@@ -11914,10 +11914,10 @@ var require_useCurrentColor_native = __commonJS({
|
|
|
11914
11914
|
});
|
|
11915
11915
|
module2.exports = __toCommonJS2(useCurrentColor_exports);
|
|
11916
11916
|
var import_web = require_index_native9(), useCurrentColor = (colorProp) => {
|
|
11917
|
-
var _a;
|
|
11917
|
+
var _a, _b;
|
|
11918
11918
|
let theme = (0, import_web.useTheme)();
|
|
11919
11919
|
return (0, import_web.getVariable)(
|
|
11920
|
-
colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || theme.color.get("web")
|
|
11920
|
+
colorProp || ((_a = theme[colorProp]) == null ? void 0 : _a.get("web")) || ((_b = theme.color) == null ? void 0 : _b.get("web"))
|
|
11921
11921
|
);
|
|
11922
11922
|
};
|
|
11923
11923
|
}
|
|
@@ -12062,7 +12062,7 @@ var require_Button_native = __commonJS({
|
|
|
12062
12062
|
}
|
|
12063
12063
|
},
|
|
12064
12064
|
defaultVariants: {
|
|
12065
|
-
unstyled:
|
|
12065
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12066
12066
|
}
|
|
12067
12067
|
}), ButtonText = (0, import_web.styled)(import_text2.SizableText, {
|
|
12068
12068
|
name: "Button",
|
|
@@ -12081,7 +12081,7 @@ var require_Button_native = __commonJS({
|
|
|
12081
12081
|
}
|
|
12082
12082
|
},
|
|
12083
12083
|
defaultVariants: {
|
|
12084
|
-
unstyled:
|
|
12084
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12085
12085
|
}
|
|
12086
12086
|
}), ButtonIcon = (props) => {
|
|
12087
12087
|
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;
|
|
@@ -12125,7 +12125,7 @@ var require_Button_native = __commonJS({
|
|
|
12125
12125
|
Text3,
|
|
12126
12126
|
{ children: propsIn.children, fontFamily, fontSize, textProps },
|
|
12127
12127
|
Text3 === ButtonText && propsActive.unstyled !== !0 ? {
|
|
12128
|
-
unstyled:
|
|
12128
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
12129
12129
|
size: size2
|
|
12130
12130
|
} : void 0
|
|
12131
12131
|
), inner = (0, import_web.spacedChildren)({
|
|
@@ -12222,7 +12222,7 @@ var require_Card_native = __commonJS({
|
|
|
12222
12222
|
}
|
|
12223
12223
|
},
|
|
12224
12224
|
defaultVariants: {
|
|
12225
|
-
unstyled:
|
|
12225
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12226
12226
|
}
|
|
12227
12227
|
}), CardHeader = (0, import_web.styled)(import_stacks3.ThemeableStack, {
|
|
12228
12228
|
name: "CardHeader",
|
|
@@ -12242,7 +12242,7 @@ var require_Card_native = __commonJS({
|
|
|
12242
12242
|
}
|
|
12243
12243
|
},
|
|
12244
12244
|
defaultVariants: {
|
|
12245
|
-
unstyled:
|
|
12245
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12246
12246
|
}
|
|
12247
12247
|
}), CardFooter = (0, import_web.styled)(CardHeader, {
|
|
12248
12248
|
name: "CardFooter",
|
|
@@ -12257,7 +12257,7 @@ var require_Card_native = __commonJS({
|
|
|
12257
12257
|
}
|
|
12258
12258
|
},
|
|
12259
12259
|
defaultVariants: {
|
|
12260
|
-
unstyled:
|
|
12260
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12261
12261
|
}
|
|
12262
12262
|
}), CardBackground = (0, import_web.styled)(import_stacks3.ThemeableStack, {
|
|
12263
12263
|
name: "CardBackground",
|
|
@@ -12273,7 +12273,7 @@ var require_Card_native = __commonJS({
|
|
|
12273
12273
|
}
|
|
12274
12274
|
},
|
|
12275
12275
|
defaultVariants: {
|
|
12276
|
-
unstyled:
|
|
12276
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12277
12277
|
}
|
|
12278
12278
|
}), Card = (0, import_web.withStaticProperties)(CardFrame, {
|
|
12279
12279
|
Header: CardHeader,
|
|
@@ -12487,7 +12487,7 @@ var require_Label_native = __commonJS({
|
|
|
12487
12487
|
}
|
|
12488
12488
|
},
|
|
12489
12489
|
defaultVariants: {
|
|
12490
|
-
unstyled:
|
|
12490
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12491
12491
|
}
|
|
12492
12492
|
}), LabelComponent = React2.forwardRef(
|
|
12493
12493
|
(props, forwardedRef) => {
|
|
@@ -12744,7 +12744,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12744
12744
|
}
|
|
12745
12745
|
},
|
|
12746
12746
|
defaultVariants: {
|
|
12747
|
-
unstyled:
|
|
12747
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
12748
12748
|
}
|
|
12749
12749
|
}), [createCheckboxContext, createCheckboxScope] = (0, import_create_context.createContextScope)(CHECKBOX_NAME), [CheckboxProvider, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME), CheckboxComponent = CheckboxFrame.styleable(function(props, forwardedRef) {
|
|
12750
12750
|
let {
|
|
@@ -13515,7 +13515,7 @@ var require_Group_native = __commonJS({
|
|
|
13515
13515
|
})
|
|
13516
13516
|
},
|
|
13517
13517
|
defaultVariants: {
|
|
13518
|
-
unstyled:
|
|
13518
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
13519
13519
|
}
|
|
13520
13520
|
});
|
|
13521
13521
|
function createGroup(verticalDefault) {
|
|
@@ -13739,7 +13739,7 @@ var require_ListItem_native = __commonJS({
|
|
|
13739
13739
|
}
|
|
13740
13740
|
},
|
|
13741
13741
|
defaultVariants: {
|
|
13742
|
-
unstyled:
|
|
13742
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
13743
13743
|
}
|
|
13744
13744
|
}), ListItemText = (0, import_web.styled)(import_text2.SizableText, {
|
|
13745
13745
|
name: "ListItemText",
|
|
@@ -13756,7 +13756,7 @@ var require_ListItem_native = __commonJS({
|
|
|
13756
13756
|
}
|
|
13757
13757
|
},
|
|
13758
13758
|
defaultVariants: {
|
|
13759
|
-
unstyled:
|
|
13759
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
13760
13760
|
}
|
|
13761
13761
|
}), ListItemSubtitle = (0, import_web.styled)(ListItemText, {
|
|
13762
13762
|
name: "ListItemSubtitle",
|
|
@@ -13779,7 +13779,7 @@ var require_ListItem_native = __commonJS({
|
|
|
13779
13779
|
}
|
|
13780
13780
|
},
|
|
13781
13781
|
defaultVariants: {
|
|
13782
|
-
unstyled:
|
|
13782
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
13783
13783
|
}
|
|
13784
13784
|
}), ListItemTitle = (0, import_web.styled)(ListItemText, {
|
|
13785
13785
|
name: "ListItemTitle"
|
|
@@ -15180,7 +15180,7 @@ var require_Popper_native = __commonJS({
|
|
|
15180
15180
|
}
|
|
15181
15181
|
},
|
|
15182
15182
|
defaultVariants: {
|
|
15183
|
-
unstyled:
|
|
15183
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15184
15184
|
}
|
|
15185
15185
|
}), PopperContent = React2.forwardRef(function(props, forwardedRef) {
|
|
15186
15186
|
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)(
|
|
@@ -15217,7 +15217,7 @@ var require_Popper_native = __commonJS({
|
|
|
15217
15217
|
}
|
|
15218
15218
|
},
|
|
15219
15219
|
defaultVariants: {
|
|
15220
|
-
unstyled:
|
|
15220
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15221
15221
|
}
|
|
15222
15222
|
}), PopperArrowOuterFrame = (0, import_core13.styled)(import_stacks3.YStack, {
|
|
15223
15223
|
name: "PopperArrowOuter",
|
|
@@ -15234,7 +15234,7 @@ var require_Popper_native = __commonJS({
|
|
|
15234
15234
|
}
|
|
15235
15235
|
},
|
|
15236
15236
|
defaultVariants: {
|
|
15237
|
-
unstyled:
|
|
15237
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15238
15238
|
}
|
|
15239
15239
|
}), opposites = {
|
|
15240
15240
|
top: "bottom",
|
|
@@ -15302,35 +15302,6 @@ var require_index_native54 = __commonJS({
|
|
|
15302
15302
|
}
|
|
15303
15303
|
});
|
|
15304
15304
|
|
|
15305
|
-
// ../../node_modules/react-freeze/dist/index.js
|
|
15306
|
-
var require_dist2 = __commonJS({
|
|
15307
|
-
"../../node_modules/react-freeze/dist/index.js"(exports) {
|
|
15308
|
-
function _interopDefault(ex) {
|
|
15309
|
-
return ex && typeof ex == "object" && "default" in ex ? ex.default : ex;
|
|
15310
|
-
}
|
|
15311
|
-
var React2 = require("react"), React__default = _interopDefault(React2);
|
|
15312
|
-
function Suspender(_ref) {
|
|
15313
|
-
var freeze = _ref.freeze, children = _ref.children, promiseCache = React2.useRef({}).current;
|
|
15314
|
-
if (freeze && !promiseCache.promise)
|
|
15315
|
-
throw promiseCache.promise = new Promise(function(resolve) {
|
|
15316
|
-
promiseCache.resolve = resolve;
|
|
15317
|
-
}), promiseCache.promise;
|
|
15318
|
-
if (freeze)
|
|
15319
|
-
throw promiseCache.promise;
|
|
15320
|
-
return promiseCache.promise && (promiseCache.resolve(), promiseCache.promise = void 0), React__default.createElement(React2.Fragment, null, children);
|
|
15321
|
-
}
|
|
15322
|
-
function Freeze(_ref2) {
|
|
15323
|
-
var freeze = _ref2.freeze, children = _ref2.children, _ref2$placeholder = _ref2.placeholder, placeholder = _ref2$placeholder === void 0 ? null : _ref2$placeholder;
|
|
15324
|
-
return React__default.createElement(React2.Suspense, {
|
|
15325
|
-
fallback: placeholder
|
|
15326
|
-
}, React__default.createElement(Suspender, {
|
|
15327
|
-
freeze
|
|
15328
|
-
}, children));
|
|
15329
|
-
}
|
|
15330
|
-
exports.Freeze = Freeze;
|
|
15331
|
-
}
|
|
15332
|
-
});
|
|
15333
|
-
|
|
15334
15305
|
// ../popover/dist/cjs/useFloatingContext.native.js
|
|
15335
15306
|
var require_useFloatingContext_native = __commonJS({
|
|
15336
15307
|
"../popover/dist/cjs/useFloatingContext.native.js"(exports, module2) {
|
|
@@ -15384,7 +15355,7 @@ var require_Popover_native = __commonJS({
|
|
|
15384
15355
|
usePopoverContext: () => usePopoverContext
|
|
15385
15356
|
});
|
|
15386
15357
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
15387
|
-
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(),
|
|
15358
|
+
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) {
|
|
15388
15359
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
15389
15360
|
return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15390
15361
|
import_popper.PopperAnchor,
|
|
@@ -15499,6 +15470,7 @@ var require_Popover_native = __commonJS({
|
|
|
15499
15470
|
}
|
|
15500
15471
|
)), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.id}PopoverContents`, children: content });
|
|
15501
15472
|
}
|
|
15473
|
+
let freeze = !!(isFullyHidden && freezeContentsWhenHidden);
|
|
15502
15474
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15503
15475
|
import_animate.Animate,
|
|
15504
15476
|
{
|
|
@@ -15509,50 +15481,31 @@ var require_Popover_native = __commonJS({
|
|
|
15509
15481
|
setIsFullyHidden(!0);
|
|
15510
15482
|
},
|
|
15511
15483
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15512
|
-
|
|
15484
|
+
import_popper.PopperContent,
|
|
15513
15485
|
{
|
|
15514
|
-
|
|
15486
|
+
__scopePopper: __scopePopover || POPOVER_SCOPE,
|
|
15487
|
+
"data-state": getState(open),
|
|
15488
|
+
id: context.contentId,
|
|
15489
|
+
ref: forwardedRef,
|
|
15490
|
+
...contentProps,
|
|
15515
15491
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15516
|
-
|
|
15492
|
+
import_remove_scroll.RemoveScroll,
|
|
15517
15493
|
{
|
|
15518
|
-
|
|
15519
|
-
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
enabled: disableRemoveScroll ? !1 : open,
|
|
15527
|
-
allowPinchZoom: !0,
|
|
15528
|
-
removeScrollBar: !1,
|
|
15529
|
-
style: {
|
|
15530
|
-
display: "contents"
|
|
15531
|
-
},
|
|
15532
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15533
|
-
import_focus_scope.FocusScope,
|
|
15534
|
-
{
|
|
15535
|
-
loop: !0,
|
|
15536
|
-
enabled: disableFocusScope ? !1 : open,
|
|
15537
|
-
trapped: trapFocus,
|
|
15538
|
-
onMountAutoFocus: onOpenAutoFocus,
|
|
15539
|
-
onUnmountAutoFocus: onCloseAutoFocus,
|
|
15540
|
-
children: contents
|
|
15541
|
-
}
|
|
15542
|
-
)
|
|
15543
|
-
}
|
|
15544
|
-
)
|
|
15545
|
-
},
|
|
15546
|
-
context.contentId
|
|
15494
|
+
enabled: disableRemoveScroll ? !1 : open,
|
|
15495
|
+
allowPinchZoom: !0,
|
|
15496
|
+
removeScrollBar: !1,
|
|
15497
|
+
style: {
|
|
15498
|
+
display: "contents"
|
|
15499
|
+
},
|
|
15500
|
+
children: contents
|
|
15501
|
+
}
|
|
15547
15502
|
)
|
|
15548
|
-
}
|
|
15503
|
+
},
|
|
15504
|
+
context.contentId
|
|
15549
15505
|
)
|
|
15550
15506
|
}
|
|
15551
15507
|
);
|
|
15552
|
-
}),
|
|
15553
|
-
let last = React2.useRef();
|
|
15554
|
-
return props.freeze || (last.current = props.children), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_freeze.Freeze, { placeholder: last.current, ...props });
|
|
15555
|
-
}, PopoverClose = React2.forwardRef(function(props, forwardedRef) {
|
|
15508
|
+
}), PopoverClose = React2.forwardRef(function(props, forwardedRef) {
|
|
15556
15509
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover);
|
|
15557
15510
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15558
15511
|
import_stacks3.YStack,
|
|
@@ -15586,6 +15539,8 @@ var require_Popover_native = __commonJS({
|
|
|
15586
15539
|
onOpenChange,
|
|
15587
15540
|
__scopePopover,
|
|
15588
15541
|
keepChildrenMounted,
|
|
15542
|
+
hoverable,
|
|
15543
|
+
disableFocus,
|
|
15589
15544
|
...restProps
|
|
15590
15545
|
} = props, id = React2.useId(), { when, AdaptProvider } = (0, import_adapt.useAdaptParent)({
|
|
15591
15546
|
Contents: React2.useCallback(() => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalHost, { name: `${id}PopoverContents` }), [])
|
|
@@ -15593,16 +15548,22 @@ var require_Popover_native = __commonJS({
|
|
|
15593
15548
|
prop: openProp,
|
|
15594
15549
|
defaultProp: defaultOpen || !1,
|
|
15595
15550
|
onChange: onOpenChange
|
|
15596
|
-
}),
|
|
15551
|
+
}), sheetActive = useSheetBreakpointActive(sheetBreakpoint), floatingContext = (0, import_useFloatingContext.useFloatingContext)({
|
|
15552
|
+
open,
|
|
15553
|
+
setOpen,
|
|
15554
|
+
disable: sheetActive,
|
|
15555
|
+
hoverable,
|
|
15556
|
+
disableFocus
|
|
15557
|
+
}), popoverContext = {
|
|
15597
15558
|
id,
|
|
15598
15559
|
sheetBreakpoint,
|
|
15599
15560
|
contentId: React2.useId(),
|
|
15600
15561
|
triggerRef,
|
|
15601
15562
|
open,
|
|
15602
|
-
breakpointActive,
|
|
15563
|
+
breakpointActive: sheetActive,
|
|
15603
15564
|
onOpenChange: setOpen,
|
|
15604
15565
|
onOpenToggle: (0, import_core13.useEvent)(() => {
|
|
15605
|
-
open &&
|
|
15566
|
+
open && sheetActive || setOpen(!open);
|
|
15606
15567
|
}),
|
|
15607
15568
|
hasCustomAnchor,
|
|
15608
15569
|
onCustomAnchorAdd: React2.useCallback(() => setHasCustomAnchor(!0), []),
|
|
@@ -15707,7 +15668,7 @@ var require_Progress_native = __commonJS({
|
|
|
15707
15668
|
}
|
|
15708
15669
|
},
|
|
15709
15670
|
defaultVariants: {
|
|
15710
|
-
unstyled:
|
|
15671
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15711
15672
|
}
|
|
15712
15673
|
}), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
|
|
15713
15674
|
let { __scopeProgress, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), pct = context.max - (context.value ?? 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100);
|
|
@@ -15765,7 +15726,7 @@ var require_Progress_native = __commonJS({
|
|
|
15765
15726
|
}
|
|
15766
15727
|
},
|
|
15767
15728
|
defaultVariants: {
|
|
15768
|
-
unstyled:
|
|
15729
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15769
15730
|
}
|
|
15770
15731
|
}), Progress = (0, import_core13.withStaticProperties)(
|
|
15771
15732
|
ProgressFrame.styleable(function(props, forwardedRef) {
|
|
@@ -15861,7 +15822,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
15861
15822
|
}
|
|
15862
15823
|
},
|
|
15863
15824
|
defaultVariants: {
|
|
15864
|
-
unstyled:
|
|
15825
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15865
15826
|
}
|
|
15866
15827
|
}), RadioIndicator = RadioIndicatorFrame.extractable(
|
|
15867
15828
|
React2.forwardRef(
|
|
@@ -15945,7 +15906,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
15945
15906
|
}
|
|
15946
15907
|
},
|
|
15947
15908
|
defaultVariants: {
|
|
15948
|
-
unstyled:
|
|
15909
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15949
15910
|
}
|
|
15950
15911
|
}), RadioGroupItem = RadioGroupItemFrame.extractable(
|
|
15951
15912
|
React2.forwardRef(
|
|
@@ -16514,7 +16475,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
16514
16475
|
}
|
|
16515
16476
|
},
|
|
16516
16477
|
defaultVariants: {
|
|
16517
|
-
unstyled:
|
|
16478
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
16518
16479
|
}
|
|
16519
16480
|
}), SelectItemText = SelectItemTextFrame.styleable(function(props, forwardedRef) {
|
|
16520
16481
|
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();
|
|
@@ -17408,7 +17369,7 @@ var require_Slider_native = __commonJS({
|
|
|
17408
17369
|
}
|
|
17409
17370
|
},
|
|
17410
17371
|
defaultVariants: {
|
|
17411
|
-
unstyled:
|
|
17372
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17412
17373
|
}
|
|
17413
17374
|
}), SliderTrack = React2.forwardRef(
|
|
17414
17375
|
(props, forwardedRef) => {
|
|
@@ -17488,7 +17449,7 @@ var require_Slider_native = __commonJS({
|
|
|
17488
17449
|
}
|
|
17489
17450
|
},
|
|
17490
17451
|
defaultVariants: {
|
|
17491
|
-
unstyled:
|
|
17452
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17492
17453
|
}
|
|
17493
17454
|
}), SliderThumb = SliderThumbFrame.styleable(function(props, forwardedRef) {
|
|
17494
17455
|
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)(
|
|
@@ -17693,7 +17654,7 @@ var require_SwitchContext_native = __commonJS({
|
|
|
17693
17654
|
disabled: !1,
|
|
17694
17655
|
size: void 0,
|
|
17695
17656
|
frameWidth: 0,
|
|
17696
|
-
unstyled:
|
|
17657
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17697
17658
|
});
|
|
17698
17659
|
}
|
|
17699
17660
|
});
|
|
@@ -17741,7 +17702,7 @@ var require_Switch_native = __commonJS({
|
|
|
17741
17702
|
}
|
|
17742
17703
|
},
|
|
17743
17704
|
defaultVariants: {
|
|
17744
|
-
unstyled:
|
|
17705
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17745
17706
|
}
|
|
17746
17707
|
}), 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, {
|
|
17747
17708
|
name: "Switch",
|
|
@@ -17779,7 +17740,7 @@ var require_Switch_native = __commonJS({
|
|
|
17779
17740
|
}
|
|
17780
17741
|
},
|
|
17781
17742
|
defaultVariants: {
|
|
17782
|
-
unstyled:
|
|
17743
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
17783
17744
|
}
|
|
17784
17745
|
});
|
|
17785
17746
|
}
|
|
@@ -17835,7 +17796,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
17835
17796
|
Thumb,
|
|
17836
17797
|
{
|
|
17837
17798
|
...(unstyledProp ?? unstyledContext ?? !1) === !1 && {
|
|
17838
|
-
unstyled:
|
|
17799
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1",
|
|
17839
17800
|
size: sizeProp ?? sizeContext ?? "$true",
|
|
17840
17801
|
...!disableActiveTheme && {
|
|
17841
17802
|
theme: checked ? "active" : null
|
|
@@ -18179,7 +18140,7 @@ var require_Tabs_native = __commonJS({
|
|
|
18179
18140
|
}
|
|
18180
18141
|
},
|
|
18181
18142
|
defaultVariants: {
|
|
18182
|
-
unstyled:
|
|
18143
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18183
18144
|
}
|
|
18184
18145
|
}), TabsTrigger = TabsTriggerFrame.extractable(
|
|
18185
18146
|
React2.forwardRef(
|
|
@@ -18649,7 +18610,7 @@ var require_Toggle_native = __commonJS({
|
|
|
18649
18610
|
}
|
|
18650
18611
|
},
|
|
18651
18612
|
defaultVariants: {
|
|
18652
|
-
unstyled:
|
|
18613
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18653
18614
|
}
|
|
18654
18615
|
}), Toggle = React2.forwardRef(function(props, forwardedRef) {
|
|
18655
18616
|
let {
|
|
@@ -18861,7 +18822,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
18861
18822
|
}
|
|
18862
18823
|
},
|
|
18863
18824
|
defaultVariants: {
|
|
18864
|
-
unstyled:
|
|
18825
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18865
18826
|
}
|
|
18866
18827
|
}), ToggleGroupImpl = ToggleGroupImplElementFrame.extractable(
|
|
18867
18828
|
import_react2.default.forwardRef(
|
|
@@ -19477,7 +19438,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime"), defaultStyles = {
|
|
|
19477
19438
|
}
|
|
19478
19439
|
},
|
|
19479
19440
|
defaultVariants: {
|
|
19480
|
-
unstyled:
|
|
19441
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19481
19442
|
}
|
|
19482
19443
|
}), Input = InputFrame.styleable((propsIn, ref) => {
|
|
19483
19444
|
let props = useInputProps(propsIn, ref);
|
|
@@ -19567,7 +19528,7 @@ var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0, impo
|
|
|
19567
19528
|
}
|
|
19568
19529
|
},
|
|
19569
19530
|
defaultVariants: {
|
|
19570
|
-
unstyled:
|
|
19531
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19571
19532
|
}
|
|
19572
19533
|
}), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
19573
19534
|
let props = useInputProps(propsIn, ref), linesProp = {
|
|
@@ -19587,7 +19548,7 @@ var import_core11 = __toESM(require_index_native15()), Text2 = (0, import_core11
|
|
|
19587
19548
|
}
|
|
19588
19549
|
},
|
|
19589
19550
|
defaultVariants: {
|
|
19590
|
-
unstyled:
|
|
19551
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
19591
19552
|
}
|
|
19592
19553
|
});
|
|
19593
19554
|
|