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