tamagui 1.88.13 → 1.88.14
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/LICENSE +21 -0
- package/dist/cjs/helpers/inputHelpers.js.map +1 -1
- package/dist/cjs/helpers/inputHelpers.native.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/views/Anchor.js.map +1 -1
- package/dist/cjs/views/Anchor.native.js.map +1 -1
- package/dist/cjs/views/Fieldset.js.map +1 -1
- package/dist/cjs/views/Fieldset.native.js.map +1 -1
- package/dist/cjs/views/Input.js.map +1 -1
- package/dist/cjs/views/Input.native.js.map +1 -1
- package/dist/cjs/views/Spinner.js.map +1 -1
- package/dist/cjs/views/Spinner.native.js.map +1 -1
- package/dist/cjs/views/TextArea.js.map +1 -1
- package/dist/cjs/views/TextArea.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +45 -0
- package/dist/esm/helpers/inputHelpers.js.map +1 -1
- package/dist/esm/helpers/inputHelpers.mjs +43 -0
- package/dist/esm/helpers/inputHelpers.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +56 -0
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/linear-gradient.mjs +1 -0
- package/dist/esm/setup.mjs +4 -0
- package/dist/esm/viewTypes.mjs +0 -0
- package/dist/esm/views/Anchor.js.map +1 -1
- package/dist/esm/views/Anchor.mjs +27 -0
- package/dist/esm/views/Anchor.native.js.map +1 -1
- package/dist/esm/views/EnsureFlexed.mjs +15 -0
- package/dist/esm/views/Fieldset.js.map +1 -1
- package/dist/esm/views/Fieldset.mjs +15 -0
- package/dist/esm/views/Fieldset.native.js.map +1 -1
- package/dist/esm/views/Input.js.map +1 -1
- package/dist/esm/views/Input.mjs +81 -0
- package/dist/esm/views/Input.native.js.map +1 -1
- package/dist/esm/views/Layouts.mjs +43 -0
- package/dist/esm/views/Skeleton.mjs +0 -0
- package/dist/esm/views/Spinner.js +1 -5
- package/dist/esm/views/Spinner.js.map +1 -1
- package/dist/esm/views/Spinner.mjs +25 -0
- package/dist/esm/views/Spinner.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +14 -0
- package/dist/esm/views/TamaguiProvider.server.mjs +3 -0
- package/dist/esm/views/Text.mjs +14 -0
- package/dist/esm/views/TextArea.js +1 -5
- package/dist/esm/views/TextArea.js.map +1 -1
- package/dist/esm/views/TextArea.mjs +37 -0
- package/dist/esm/views/TextArea.native.js.map +1 -1
- package/dist/esm/views/VisuallyHidden.mjs +34 -0
- package/dist/jsx/createTamagui.mjs +45 -0
- package/dist/jsx/helpers/inputHelpers.js.map +1 -1
- package/dist/jsx/helpers/inputHelpers.mjs +43 -0
- package/dist/jsx/helpers/inputHelpers.native.js.map +1 -1
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +56 -0
- package/dist/jsx/index.native.js +2 -2
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/linear-gradient.mjs +1 -0
- package/dist/jsx/setup.mjs +4 -0
- package/dist/jsx/viewTypes.mjs +0 -0
- package/dist/jsx/views/Anchor.js.map +1 -1
- package/dist/jsx/views/Anchor.mjs +27 -0
- package/dist/jsx/views/Anchor.native.js.map +1 -1
- package/dist/jsx/views/EnsureFlexed.mjs +15 -0
- package/dist/jsx/views/Fieldset.js.map +1 -1
- package/dist/jsx/views/Fieldset.mjs +15 -0
- package/dist/jsx/views/Fieldset.native.js.map +1 -1
- package/dist/jsx/views/Input.js.map +1 -1
- package/dist/jsx/views/Input.mjs +81 -0
- package/dist/jsx/views/Input.native.js.map +1 -1
- package/dist/jsx/views/Layouts.mjs +43 -0
- package/dist/jsx/views/Skeleton.mjs +0 -0
- package/dist/jsx/views/Spinner.js +1 -5
- package/dist/jsx/views/Spinner.js.map +1 -1
- package/dist/jsx/views/Spinner.mjs +25 -0
- package/dist/jsx/views/Spinner.native.js.map +1 -1
- package/dist/jsx/views/TamaguiProvider.mjs +14 -0
- package/dist/jsx/views/TamaguiProvider.server.mjs +3 -0
- package/dist/jsx/views/Text.mjs +14 -0
- package/dist/jsx/views/TextArea.js +1 -5
- package/dist/jsx/views/TextArea.js.map +1 -1
- package/dist/jsx/views/TextArea.mjs +37 -0
- package/dist/jsx/views/TextArea.native.js.map +1 -1
- package/dist/jsx/views/VisuallyHidden.mjs +34 -0
- package/dist/native.js +377 -377
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +376 -376
- package/dist/test.native.js.map +3 -3
- package/package.json +56 -54
- package/src/helpers/inputHelpers.tsx +2 -1
- package/src/index.ts +1 -1
- package/src/viewTypes.tsx +1 -1
- package/src/views/Anchor.tsx +2 -1
- package/src/views/Fieldset.tsx +2 -1
- package/src/views/Input.tsx +2 -1
- package/src/views/Spinner.tsx +4 -9
- package/src/views/TextArea.tsx +2 -8
- package/types/helpers/inputHelpers.d.ts +1 -1
- package/types/helpers/inputHelpers.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/viewTypes.d.ts +1 -1
- package/types/viewTypes.d.ts.map +1 -1
- package/types/views/Anchor.d.ts +1 -1
- package/types/views/Anchor.d.ts.map +1 -1
- package/types/views/Fieldset.d.ts +1 -1
- package/types/views/Fieldset.d.ts.map +1 -1
- package/types/views/Input.d.ts +1 -1
- package/types/views/Input.d.ts.map +1 -1
- package/types/views/Spinner.d.ts +2 -2
- package/types/views/Spinner.d.ts.map +1 -1
- package/types/views/TextArea.d.ts +1 -1
- package/types/views/TextArea.d.ts.map +1 -1
- package/src/views/Layouts.tsx +0 -48
- package/types/views/Layouts.d.ts +0 -8
- package/types/views/Layouts.d.ts.map +0 -1
package/dist/native.js
CHANGED
|
@@ -241,7 +241,6 @@ var require_PresenceChild_native = __commonJS({
|
|
|
241
241
|
* we want to make a new context value to ensure they get re-rendered
|
|
242
242
|
* so they can detect that layout change.
|
|
243
243
|
*/
|
|
244
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
245
244
|
presenceAffectsLayout ? void 0 : [isPresent, exitVariant, enterVariant]
|
|
246
245
|
);
|
|
247
246
|
return React2.useMemo(() => {
|
|
@@ -1301,7 +1300,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1301
1300
|
continue;
|
|
1302
1301
|
}
|
|
1303
1302
|
let total = track(identifier, remove);
|
|
1304
|
-
remove ? total === 0 && delete allSelectors[identifier] : identifier in allSelectors || (!identifier.startsWith("_transform") || addTransform(identifier, cssRule.cssText, cssRule)) && (allSelectors[identifier] = cssRule.cssText);
|
|
1303
|
+
remove ? total === 0 && delete allSelectors[identifier] : identifier in allSelectors || (!identifier.startsWith("_transform-") || addTransform(identifier, cssRule.cssText, cssRule)) && (allSelectors[identifier] = cssRule.cssText);
|
|
1305
1304
|
}
|
|
1306
1305
|
return scannedCache.set(sheet2, cacheKey), dedupedThemes;
|
|
1307
1306
|
}
|
|
@@ -1343,7 +1342,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1343
1342
|
};
|
|
1344
1343
|
for (let selector of selectors) {
|
|
1345
1344
|
let matches = selector.match(/(.t_(light|dark))?[\s]?(.t_([a-z0-9_]+))[\s]*$/i) || [], [_0, _1, scheme, _2, name] = matches, themeName = name && scheme && scheme !== name ? `${scheme}_${name}` : name || scheme;
|
|
1346
|
-
dedupedEntry.names.includes(themeName) || themeName === "light_dark" || dedupedEntry.names.push(themeName);
|
|
1345
|
+
!themeName || dedupedEntry.names.includes(themeName) || themeName === "light_dark" || themeName === "dark_light" || dedupedEntry.names.push(themeName);
|
|
1347
1346
|
}
|
|
1348
1347
|
return dedupedEntry;
|
|
1349
1348
|
}
|
|
@@ -1369,7 +1368,7 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
1369
1368
|
return selector.includes(":") ? res.replace(/:[a-z]+$/, "") : res;
|
|
1370
1369
|
}, sheet = import_constants4.isClient ? document.head.appendChild(document.createElement("style")).sheet : null;
|
|
1371
1370
|
function updateRules(identifier, rules) {
|
|
1372
|
-
return identifier in allRules ? !1 : (allRules[identifier] = rules.join(" "), identifier.startsWith("_transform") ? addTransform(identifier, rules[0]) : !0);
|
|
1371
|
+
return identifier in allRules ? !1 : (allRules[identifier] = rules.join(" "), identifier.startsWith("_transform-") ? addTransform(identifier, rules[0]) : !0);
|
|
1373
1372
|
}
|
|
1374
1373
|
function insertStyleRules(rulesToInsert) {
|
|
1375
1374
|
if (!(!rulesToInsert.length || !sheet)) {
|
|
@@ -3816,7 +3815,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3816
3815
|
useSplitStyles: () => useSplitStyles
|
|
3817
3816
|
});
|
|
3818
3817
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3819
|
-
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3818
|
+
var import_constants4 = require_index_native6(), import_helpers = require_index_native7(), import_react2 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants22 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), import_isObj = require_isObj_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3820
3819
|
function isValidStyleKey(key, staticConfig) {
|
|
3821
3820
|
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || staticConfig.acceptTokens && staticConfig.acceptTokens[key];
|
|
3822
3821
|
}
|
|
@@ -3895,8 +3894,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3895
3894
|
viewProps[`data-${hyphenate(keyInit2)}`] = valInit[keyInit2];
|
|
3896
3895
|
continue;
|
|
3897
3896
|
}
|
|
3898
|
-
if (keyInit
|
|
3899
|
-
|
|
3897
|
+
if (keyInit.startsWith("_style") && (0, import_isObj.isObj)(valInit)) {
|
|
3898
|
+
Object.assign(styleState.style, valInit);
|
|
3900
3899
|
continue;
|
|
3901
3900
|
}
|
|
3902
3901
|
if (0)
|
|
@@ -3917,7 +3916,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3917
3916
|
continue;
|
|
3918
3917
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
3919
3918
|
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
3920
|
-
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
3919
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupEnd(), console.groupEnd(), console.groupCollapsed(
|
|
3921
3920
|
` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`
|
|
3922
3921
|
), (0, import_log.log)({ isVariant, valInit, shouldPassProp }), import_constants4.isClient && (0, import_log.log)({
|
|
3923
3922
|
variants,
|
|
@@ -4141,7 +4140,13 @@ current`, {
|
|
|
4141
4140
|
}
|
|
4142
4141
|
}
|
|
4143
4142
|
}
|
|
4144
|
-
if (process.env.NODE_ENV === "development" && console.groupEnd(), props.style
|
|
4143
|
+
if (process.env.NODE_ENV === "development" && console.groupEnd(), props.style)
|
|
4144
|
+
if (isHOC)
|
|
4145
|
+
viewProps.style = props.style;
|
|
4146
|
+
else
|
|
4147
|
+
for (let style2 of [].concat(props.style))
|
|
4148
|
+
style2 && (style2.$$css ? Object.assign(styleState.classNames, style2) : Object.assign(styleState.style, style2));
|
|
4149
|
+
if (styleProps.noNormalize !== !1 && ((0, import_expandStyles.fixStyles)(style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(style), styleState.transforms && Object.entries(styleState.transforms).sort(([a], [b]) => a.localeCompare(b)).forEach(([key, val]) => {
|
|
4145
4150
|
mergeTransform(style, key, val, !0);
|
|
4146
4151
|
}), parentSplitStyles && !shouldDoClasses))
|
|
4147
4152
|
for (let key in parentSplitStyles.style)
|
|
@@ -4211,19 +4216,7 @@ current`, {
|
|
|
4211
4216
|
!avoidMergeTransform && skey in import_helpers.stylePropsTransform ? mergeTransform(styleOut, skey, sval) : styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key);
|
|
4212
4217
|
}
|
|
4213
4218
|
return styleProps.noNormalize || (0, import_expandStyles.fixStyles)(styleOut), styleOut;
|
|
4214
|
-
}
|
|
4215
|
-
function mergeStylePropIntoStyle(styleState, cur) {
|
|
4216
|
-
if (!cur)
|
|
4217
|
-
return;
|
|
4218
|
-
let styles = Array.isArray(cur) ? cur : [cur];
|
|
4219
|
-
for (let style of styles) {
|
|
4220
|
-
if (!style)
|
|
4221
|
-
continue;
|
|
4222
|
-
let isRNW = style.$$css;
|
|
4223
|
-
Object.assign(isRNW ? styleState.classNames : styleState.style, style);
|
|
4224
|
-
}
|
|
4225
|
-
}
|
|
4226
|
-
var useInsertEffectCompat = import_constants4.isWeb ? import_react2.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : () => {
|
|
4219
|
+
}, useInsertEffectCompat = import_constants4.isWeb ? import_react2.useInsertionEffect || import_constants4.useIsomorphicLayoutEffect : () => {
|
|
4227
4220
|
}, useSplitStyles = (...args) => {
|
|
4228
4221
|
let res = getSplitStyles(...args);
|
|
4229
4222
|
return useInsertEffectCompat(() => {
|
|
@@ -4924,7 +4917,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4924
4917
|
fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
|
|
4925
4918
|
let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = animationStyles || splitStyles.style, className;
|
|
4926
4919
|
asChild === "except-style" || asChild === "except-style-web" || (viewProps.style = style);
|
|
4927
|
-
let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !!(attachFocus || attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);
|
|
4920
|
+
let runtimePressStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.pressStyle), runtimeFocusStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.focusStyle), attachFocus = !!(runtimePressStyle || runtimeFocusStyle || onFocus || onBlur), attachPress = !!(groupName || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick), runtimeHoverStyle = !disabled && noClassNames && (pseudos == null ? void 0 : pseudos.hoverStyle), needsHoverState = runtimeHoverStyle || onHoverIn || onHoverOut, isHoverable = import_constants4.isWeb && !!(groupName || needsHoverState || onMouseEnter || onMouseLeave), shouldAttach = !!(attachFocus || attachPress || isHoverable || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);
|
|
4928
4921
|
process.env.NODE_ENV === "development" && time && time`events-setup`;
|
|
4929
4922
|
let events = shouldAttach && !isDisabled && !props.asChild ? {
|
|
4930
4923
|
onPressOut: attachPress ? (e) => {
|
|
@@ -5875,11 +5868,11 @@ var require_styled_native = __commonJS({
|
|
|
5875
5868
|
return to;
|
|
5876
5869
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), styled_exports = {};
|
|
5877
5870
|
__export2(styled_exports, {
|
|
5878
|
-
styled: () =>
|
|
5871
|
+
styled: () => styled8
|
|
5879
5872
|
});
|
|
5880
5873
|
module2.exports = __toCommonJS2(styled_exports);
|
|
5881
5874
|
var import_createComponent = require_createComponent_native(), import_mergeVariants = require_mergeVariants_native(), import_setupReactNative = require_setupReactNative_native();
|
|
5882
|
-
function
|
|
5875
|
+
function styled8(ComponentIn, options, staticExtractionOptions) {
|
|
5883
5876
|
if (process.env.NODE_ENV !== "production" && !ComponentIn)
|
|
5884
5877
|
throw new Error("No component given to styled()");
|
|
5885
5878
|
let parentStaticConfig = ComponentIn.staticConfig, isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC), Component = parentStaticConfig != null && parentStaticConfig.isHOC && !(parentStaticConfig != null && parentStaticConfig.isStyledHOC) || isPlainStyledComponent ? ComponentIn : (parentStaticConfig == null ? void 0 : parentStaticConfig.Component) || ComponentIn, reactNativeConfig = parentStaticConfig ? void 0 : (0, import_setupReactNative.getReactNativeConfig)(Component), isReactNative = !!(reactNativeConfig || staticExtractionOptions != null && staticExtractionOptions.isReactNative || parentStaticConfig != null && parentStaticConfig.isReactNative), staticConfigProps = (() => {
|
|
@@ -6166,15 +6159,15 @@ var require_Stack_native = __commonJS({
|
|
|
6166
6159
|
return to;
|
|
6167
6160
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), Stack_exports = {};
|
|
6168
6161
|
__export2(Stack_exports, {
|
|
6169
|
-
Stack: () =>
|
|
6162
|
+
Stack: () => Stack2
|
|
6170
6163
|
});
|
|
6171
6164
|
module2.exports = __toCommonJS2(Stack_exports);
|
|
6172
|
-
var import_helpers = require_index_native7(), import_constants4 = require_constants_native2(), import_createComponent = require_createComponent_native(),
|
|
6165
|
+
var import_helpers = require_index_native7(), import_constants4 = require_constants_native2(), import_createComponent = require_createComponent_native(), Stack2 = (0, import_createComponent.createComponent)({
|
|
6173
6166
|
acceptsClassName: !0,
|
|
6174
6167
|
defaultProps: import_constants4.stackDefaultStyles,
|
|
6175
6168
|
validStyles: import_helpers.validStyles
|
|
6176
6169
|
});
|
|
6177
|
-
|
|
6170
|
+
Stack2.displayName = "Stack";
|
|
6178
6171
|
}
|
|
6179
6172
|
});
|
|
6180
6173
|
|
|
@@ -6410,19 +6403,19 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
6410
6403
|
...themePropsProvider
|
|
6411
6404
|
}) {
|
|
6412
6405
|
return (0, import_useMedia.setupMediaListeners)(), import_constants4.isClient && React2.useLayoutEffect(() => {
|
|
6413
|
-
if (config.disableSSR || document.documentElement.classList.contains("t_unmounted") && document.documentElement.classList.remove("t_unmounted"), !disableInjectCSS) {
|
|
6406
|
+
if (config && (config.disableSSR || document.documentElement.classList.contains("t_unmounted") && document.documentElement.classList.remove("t_unmounted"), !disableInjectCSS)) {
|
|
6414
6407
|
let style = document.createElement("style");
|
|
6415
6408
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), () => {
|
|
6416
6409
|
document.head.removeChild(style);
|
|
6417
6410
|
};
|
|
6418
6411
|
}
|
|
6419
|
-
}, [config, disableInjectCSS]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, { animationDriver: config.animations, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
6412
|
+
}, [config, disableInjectCSS]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, { animationDriver: config == null ? void 0 : config.animations, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
6420
6413
|
import_ThemeProvider.ThemeProvider,
|
|
6421
6414
|
{
|
|
6422
|
-
themeClassNameOnRoot: config.themeClassNameOnRoot,
|
|
6423
|
-
disableRootThemeClass: config.disableRootThemeClass,
|
|
6415
|
+
themeClassNameOnRoot: config == null ? void 0 : config.themeClassNameOnRoot,
|
|
6416
|
+
disableRootThemeClass: config == null ? void 0 : config.disableRootThemeClass,
|
|
6424
6417
|
...themePropsProvider,
|
|
6425
|
-
defaultTheme: themePropsProvider.defaultTheme ?? Object.keys(config.themes)[0],
|
|
6418
|
+
defaultTheme: themePropsProvider.defaultTheme ?? (config ? Object.keys(config.themes)[0] : ""),
|
|
6426
6419
|
children
|
|
6427
6420
|
}
|
|
6428
6421
|
) });
|
|
@@ -7871,7 +7864,7 @@ var require_index_native16 = __commonJS({
|
|
|
7871
7864
|
return to;
|
|
7872
7865
|
}, __reExport2 = (target, mod, secondTarget) => (__copyProps2(target, mod, "default"), secondTarget && __copyProps2(secondTarget, mod, "default")), __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), src_exports2 = {};
|
|
7873
7866
|
__export2(src_exports2, {
|
|
7874
|
-
Stack: () =>
|
|
7867
|
+
Stack: () => Stack2,
|
|
7875
7868
|
Text: () => Text3,
|
|
7876
7869
|
View: () => View2
|
|
7877
7870
|
});
|
|
@@ -7918,7 +7911,7 @@ var require_index_native16 = __commonJS({
|
|
|
7918
7911
|
});
|
|
7919
7912
|
var dontComposePressabilityKeys = {
|
|
7920
7913
|
onClick: !0
|
|
7921
|
-
}, View2 = import_web.View,
|
|
7914
|
+
}, View2 = import_web.View, Stack2 = import_web.Stack, Text3 = import_web.Text;
|
|
7922
7915
|
}
|
|
7923
7916
|
});
|
|
7924
7917
|
|
|
@@ -7946,9 +7939,9 @@ var require_Collection_native = __commonJS({
|
|
|
7946
7939
|
createCollection: () => createCollection
|
|
7947
7940
|
});
|
|
7948
7941
|
module2.exports = __toCommonJS2(Collection_exports);
|
|
7949
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
7942
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime");
|
|
7950
7943
|
function createCollection(name) {
|
|
7951
|
-
let { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0,
|
|
7944
|
+
let { Provider: CollectionProviderImpl, useStyledContext: useCollectionContext } = (0, import_core12.createStyledContext)({
|
|
7952
7945
|
collectionRef: { current: null },
|
|
7953
7946
|
itemMap: /* @__PURE__ */ new Map()
|
|
7954
7947
|
}), CollectionProvider = (props) => {
|
|
@@ -7966,12 +7959,12 @@ var require_Collection_native = __commonJS({
|
|
|
7966
7959
|
CollectionProvider.displayName = "CollectionProvider";
|
|
7967
7960
|
let COLLECTION_SLOT_NAME = name + "CollectionSlot", CollectionSlot = import_react2.default.forwardRef((props, forwardedRef) => {
|
|
7968
7961
|
let { __scopeCollection, children } = props, context = useCollectionContext(__scopeCollection), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
|
|
7969
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
7962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Slot, { ref: composedRefs, children });
|
|
7970
7963
|
});
|
|
7971
7964
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
7972
7965
|
let ITEM_SLOT_NAME = name + "CollectionItemSlot", ITEM_DATA_ATTR = "data-collection-item", CollectionItemSlot = import_react2.default.forwardRef((props, forwardedRef) => {
|
|
7973
7966
|
let { __scopeCollection, children, ...itemData } = props, ref = import_react2.default.useRef(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, ref), context = useCollectionContext(__scopeCollection);
|
|
7974
|
-
return import_react2.default.useEffect(() => (context.itemMap.set(ref, { ref, ...itemData }), () => void context.itemMap.delete(ref))), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
7967
|
+
return import_react2.default.useEffect(() => (context.itemMap.set(ref, { ref, ...itemData }), () => void context.itemMap.delete(ref))), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Slot, { [ITEM_DATA_ATTR]: "", ref: composedRefs, children });
|
|
7975
7968
|
});
|
|
7976
7969
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
7977
7970
|
function useCollection(__scopeCollection) {
|
|
@@ -8031,15 +8024,15 @@ var require_getElevation_native = __commonJS({
|
|
|
8031
8024
|
getSizedElevation: () => getSizedElevation
|
|
8032
8025
|
});
|
|
8033
8026
|
module2.exports = __toCommonJS2(getElevation_exports);
|
|
8034
|
-
var
|
|
8027
|
+
var import_core12 = require_index_native16(), getElevation = (size2, extras) => {
|
|
8035
8028
|
if (!size2)
|
|
8036
8029
|
return;
|
|
8037
|
-
let { tokens } = extras, token = tokens.size[size2], sizeNum = (0,
|
|
8030
|
+
let { tokens } = extras, token = tokens.size[size2], sizeNum = (0, import_core12.isVariable)(token) ? +token.val : size2;
|
|
8038
8031
|
return getSizedElevation(sizeNum, extras);
|
|
8039
8032
|
}, getSizedElevation = (val, { theme, tokens }) => {
|
|
8040
8033
|
let num = 0;
|
|
8041
8034
|
if (val === !0) {
|
|
8042
|
-
let val2 = (0,
|
|
8035
|
+
let val2 = (0, import_core12.getVariableValue)(tokens.size.true);
|
|
8043
8036
|
typeof val2 == "number" ? num = val2 : num = 10;
|
|
8044
8037
|
} else
|
|
8045
8038
|
num = +val;
|
|
@@ -8050,7 +8043,7 @@ var require_getElevation_native = __commonJS({
|
|
|
8050
8043
|
shadowColor: theme.shadowColor,
|
|
8051
8044
|
shadowRadius,
|
|
8052
8045
|
shadowOffset: { height, width: 0 },
|
|
8053
|
-
...
|
|
8046
|
+
...import_core12.isAndroid ? {
|
|
8054
8047
|
elevationAndroid: 2 * height
|
|
8055
8048
|
} : {}
|
|
8056
8049
|
};
|
|
@@ -8078,7 +8071,7 @@ var require_Stacks_native = __commonJS({
|
|
|
8078
8071
|
fullscreenStyle: () => fullscreenStyle
|
|
8079
8072
|
});
|
|
8080
8073
|
module2.exports = __toCommonJS2(Stacks_exports);
|
|
8081
|
-
var
|
|
8074
|
+
var import_core12 = require_index_native16(), import_getElevation = require_getElevation_native(), fullscreenStyle = {
|
|
8082
8075
|
position: "absolute",
|
|
8083
8076
|
top: 0,
|
|
8084
8077
|
left: 0,
|
|
@@ -8092,17 +8085,17 @@ var require_Stacks_native = __commonJS({
|
|
|
8092
8085
|
"...size": import_getElevation.getElevation,
|
|
8093
8086
|
":number": import_getElevation.getElevation
|
|
8094
8087
|
}
|
|
8095
|
-
}, YStack3 = (0,
|
|
8088
|
+
}, YStack3 = (0, import_core12.styled)(import_core12.View, {
|
|
8096
8089
|
flexDirection: "column",
|
|
8097
8090
|
variants
|
|
8098
8091
|
});
|
|
8099
8092
|
YStack3.displayName = "YStack";
|
|
8100
|
-
var XStack = (0,
|
|
8093
|
+
var XStack = (0, import_core12.styled)(import_core12.View, {
|
|
8101
8094
|
flexDirection: "row",
|
|
8102
8095
|
variants
|
|
8103
8096
|
});
|
|
8104
8097
|
XStack.displayName = "XStack";
|
|
8105
|
-
var ZStack = (0,
|
|
8098
|
+
var ZStack = (0, import_core12.styled)(
|
|
8106
8099
|
YStack3,
|
|
8107
8100
|
{
|
|
8108
8101
|
position: "relative"
|
|
@@ -8137,12 +8130,12 @@ var require_index_native18 = __commonJS({
|
|
|
8137
8130
|
stepTokenUpOrDown: () => stepTokenUpOrDown
|
|
8138
8131
|
});
|
|
8139
8132
|
module2.exports = __toCommonJS2(src_exports2);
|
|
8140
|
-
var import_web = require_index_native13(),
|
|
8133
|
+
var import_web = require_index_native13(), defaultOptions = {
|
|
8141
8134
|
shift: 0,
|
|
8142
8135
|
bounds: [0]
|
|
8143
8136
|
}, 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) => {
|
|
8144
8137
|
var _a, _b;
|
|
8145
|
-
let tokens = (0,
|
|
8138
|
+
let tokens = (0, import_web.getTokens)({ prefixed: !0 })[type];
|
|
8146
8139
|
if (!(type in cacheVariables)) {
|
|
8147
8140
|
cacheKeys[type] = [], cacheVariables[type] = [], cacheWholeKeys[type] = [], cacheWholeVariables[type] = [];
|
|
8148
8141
|
let sorted = Object.keys(tokens).map((k) => tokens[k]).sort((a, b) => a.val - b.val);
|
|
@@ -8319,7 +8312,7 @@ var require_SizableStack_native = __commonJS({
|
|
|
8319
8312
|
SizableStack: () => SizableStack
|
|
8320
8313
|
});
|
|
8321
8314
|
module2.exports = __toCommonJS2(SizableStack_exports);
|
|
8322
|
-
var
|
|
8315
|
+
var import_core12 = require_index_native16(), import_get_button_sized2 = require_index_native19(), import_Stacks = require_Stacks_native(), import_variants = require_variants_native(), SizableStack = (0, import_core12.styled)(import_Stacks.XStack, {
|
|
8323
8316
|
name: "SizableStack",
|
|
8324
8317
|
variants: {
|
|
8325
8318
|
unstyled: {
|
|
@@ -8363,7 +8356,7 @@ var require_ThemeableStack_native = __commonJS({
|
|
|
8363
8356
|
themeableVariants: () => themeableVariants
|
|
8364
8357
|
});
|
|
8365
8358
|
module2.exports = __toCommonJS2(ThemeableStack_exports);
|
|
8366
|
-
var
|
|
8359
|
+
var import_core12 = require_index_native16(), import_Stacks = require_Stacks_native(), import_variants = require_variants_native(), chromelessStyle = {
|
|
8367
8360
|
backgroundColor: "transparent",
|
|
8368
8361
|
borderColor: "transparent",
|
|
8369
8362
|
shadowColor: "transparent",
|
|
@@ -8398,7 +8391,7 @@ var require_ThemeableStack_native = __commonJS({
|
|
|
8398
8391
|
focusStyle: chromelessStyle
|
|
8399
8392
|
}
|
|
8400
8393
|
}
|
|
8401
|
-
}, ThemeableStack = (0,
|
|
8394
|
+
}, ThemeableStack = (0, import_core12.styled)(import_Stacks.YStack, {
|
|
8402
8395
|
variants: themeableVariants
|
|
8403
8396
|
});
|
|
8404
8397
|
}
|
|
@@ -8460,7 +8453,7 @@ var require_index_native21 = __commonJS({
|
|
|
8460
8453
|
getFontSized: () => getFontSized2
|
|
8461
8454
|
});
|
|
8462
8455
|
module2.exports = __toCommonJS2(src_exports2);
|
|
8463
|
-
var
|
|
8456
|
+
var import_core12 = require_index_native16(), getFontSized2 = (sizeTokenIn = "$true", { font, fontFamily, props }) => {
|
|
8464
8457
|
var _a, _b, _c, _d, _e, _f;
|
|
8465
8458
|
if (!font) {
|
|
8466
8459
|
process.env.NODE_ENV === "development" && console.warn(
|
|
@@ -8485,7 +8478,7 @@ var require_index_native21 = __commonJS({
|
|
|
8485
8478
|
function getDefaultSizeToken(font) {
|
|
8486
8479
|
if (typeof font == "object" && cache.has(font))
|
|
8487
8480
|
return cache.get(font);
|
|
8488
|
-
let sizeTokens = "$true" in font.size ? font.size : (0,
|
|
8481
|
+
let sizeTokens = "$true" in font.size ? font.size : (0, import_core12.getTokens)().size, sizeDefault = sizeTokens.$true, sizeDefaultSpecific = sizeDefault ? Object.keys(sizeTokens).find(
|
|
8489
8482
|
(x) => x !== "$true" && sizeTokens[x].val === sizeDefault.val
|
|
8490
8483
|
) : null;
|
|
8491
8484
|
return !sizeDefault || !sizeDefaultSpecific ? (process.env.NODE_ENV === "development" && console.warn(`No default size is set in your tokens for the "true" key, fonts will be inconsistent.
|
|
@@ -9098,7 +9091,7 @@ var require_Adapt_native = __commonJS({
|
|
|
9098
9091
|
useAdaptParent: () => useAdaptParent
|
|
9099
9092
|
});
|
|
9100
9093
|
module2.exports = __toCommonJS2(Adapt_exports);
|
|
9101
|
-
var import_constants4 = require_index_native6(), import_constants22 = require_index_native6(),
|
|
9094
|
+
var import_constants4 = require_index_native6(), import_constants22 = require_index_native6(), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react2 = require("react"), import_jsx_runtime6 = require("react/jsx-runtime"), AdaptParentContext = (0, import_react2.createContext)(null), AdaptContents = (props) => {
|
|
9102
9095
|
let context = (0, import_react2.useContext)(AdaptParentContext);
|
|
9103
9096
|
if (!(context != null && context.Contents))
|
|
9104
9097
|
throw new Error("Adapt not supported by this component");
|
|
@@ -9124,7 +9117,7 @@ var require_Adapt_native = __commonJS({
|
|
|
9124
9117
|
};
|
|
9125
9118
|
}, Adapt = (0, import_helpers.withStaticProperties)(
|
|
9126
9119
|
function({ platform, when, children }) {
|
|
9127
|
-
let context = (0, import_react2.useContext)(AdaptParentContext), media = (0,
|
|
9120
|
+
let context = (0, import_react2.useContext)(AdaptParentContext), media = (0, import_core12.useMedia)(), enabled = !platform;
|
|
9128
9121
|
return platform === "touch" && (enabled = import_constants22.isTouchable), platform === "native" && (enabled = !import_constants4.isWeb), platform === "web" && (enabled = import_constants4.isWeb), when && !media[when] && (enabled = !1), (0, import_constants4.useIsomorphicLayoutEffect)(() => {
|
|
9129
9122
|
enabled && (context == null || context.setWhen(when || enabled));
|
|
9130
9123
|
}, [when, context, enabled]), enabled ? children : null;
|
|
@@ -9414,7 +9407,7 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
9414
9407
|
usePortal: () => usePortal
|
|
9415
9408
|
});
|
|
9416
9409
|
module2.exports = __toCommonJS2(GorhomPortal_exports);
|
|
9417
|
-
var import_constants4 = require_index_native6(),
|
|
9410
|
+
var import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_use_did_finish_ssr = require_index_native11(), import_react2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), ACTIONS = /* @__PURE__ */ ((ACTIONS2) => (ACTIONS2[ACTIONS2.REGISTER_HOST = 0] = "REGISTER_HOST", ACTIONS2[ACTIONS2.DEREGISTER_HOST = 1] = "DEREGISTER_HOST", ACTIONS2[ACTIONS2.ADD_UPDATE_PORTAL = 2] = "ADD_UPDATE_PORTAL", ACTIONS2[ACTIONS2.REMOVE_PORTAL = 3] = "REMOVE_PORTAL", ACTIONS2))(ACTIONS || {}), INITIAL_STATE = {}, registerHost = (state, hostName) => (hostName in state || (state[hostName] = []), state), deregisterHost = (state, hostName) => (delete state[hostName], state), addUpdatePortal = (state, hostName, portalName, node) => {
|
|
9418
9411
|
hostName in state || (state = registerHost(state, hostName));
|
|
9419
9412
|
let index = state[hostName].findIndex((item) => item.name === portalName);
|
|
9420
9413
|
return index !== -1 ? state[hostName][index].node = node : state[hostName].push({
|
|
@@ -9534,11 +9527,11 @@ var require_GorhomPortal_native = __commonJS({
|
|
|
9534
9527
|
handleOnUnmount: _providedHandleOnUnmount,
|
|
9535
9528
|
handleOnUpdate: _providedHandleOnUpdate,
|
|
9536
9529
|
children
|
|
9537
|
-
} = props, { addPortal: addUpdatePortal2, removePortal: removePortal2 } = usePortal(hostName), id = (0, import_react2.useId)(), name = _providedName || id, handleOnMount = (0,
|
|
9530
|
+
} = props, { addPortal: addUpdatePortal2, removePortal: removePortal2 } = usePortal(hostName), id = (0, import_react2.useId)(), name = _providedName || id, handleOnMount = (0, import_core12.useEvent)(() => {
|
|
9538
9531
|
_providedHandleOnMount ? _providedHandleOnMount(() => addUpdatePortal2(name, children)) : addUpdatePortal2(name, children);
|
|
9539
|
-
}), handleOnUnmount = (0,
|
|
9532
|
+
}), handleOnUnmount = (0, import_core12.useEvent)(() => {
|
|
9540
9533
|
_providedHandleOnUnmount ? _providedHandleOnUnmount(() => removePortal2(name)) : removePortal2(name);
|
|
9541
|
-
}), handleOnUpdate = (0,
|
|
9534
|
+
}), handleOnUpdate = (0, import_core12.useEvent)(() => {
|
|
9542
9535
|
_providedHandleOnUpdate ? _providedHandleOnUpdate(() => addUpdatePortal2(name, children)) : addUpdatePortal2(name, children);
|
|
9543
9536
|
});
|
|
9544
9537
|
return (0, import_constants4.useIsomorphicLayoutEffect)(() => (handleOnMount(), () => {
|
|
@@ -9682,7 +9675,7 @@ var require_constants_native3 = __commonJS({
|
|
|
9682
9675
|
constants: () => constants
|
|
9683
9676
|
});
|
|
9684
9677
|
module2.exports = __toCommonJS2(constants_exports);
|
|
9685
|
-
var
|
|
9678
|
+
var import_core12 = require_index_native16(), constants = {}, SHEET_NAME = "Sheet", SHEET_HANDLE_NAME = "SheetHandle", SHEET_OVERLAY_NAME = "SheetOverlay", SHEET_HIDDEN_STYLESHEET = import_core12.isClient ? document.createElement("style") : null;
|
|
9686
9679
|
SHEET_HIDDEN_STYLESHEET && document.head.appendChild(SHEET_HIDDEN_STYLESHEET);
|
|
9687
9680
|
}
|
|
9688
9681
|
});
|
|
@@ -9808,11 +9801,10 @@ var require_useSheetProviderProps_native = __commonJS({
|
|
|
9808
9801
|
useSheetProviderProps: () => useSheetProviderProps
|
|
9809
9802
|
});
|
|
9810
9803
|
module2.exports = __toCommonJS2(useSheetProviderProps_exports);
|
|
9811
|
-
var
|
|
9804
|
+
var import_core12 = require_index_native16(), import_use_constant = require_index_native2(), import_use_controllable_state = require_index_native9(), import_react2 = __toESM2(require("react"));
|
|
9812
9805
|
function useSheetProviderProps(props, state, options = {}) {
|
|
9813
9806
|
let contentRef = import_react2.default.useRef(null), [frameSize, setFrameSize] = (0, import_react2.useState)(0), [maxContentSize, setMaxContentSize] = (0, import_react2.useState)(0), snapPointsMode = props.snapPointsMode ?? "percent", snapPointsProp = props.snapPoints ?? (snapPointsMode === "percent" ? [80] : snapPointsMode === "constant" ? [256] : ["fit"]), hasFit = snapPointsProp[0] === "fit", snapPoints = (0, import_react2.useMemo)(
|
|
9814
9807
|
() => props.dismissOnSnapToBottom ? [...snapPointsProp, 0] : snapPointsProp,
|
|
9815
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9816
9808
|
[JSON.stringify(snapPointsProp), props.dismissOnSnapToBottom]
|
|
9817
9809
|
), [position_, setPositionImmediate] = (0, import_use_controllable_state.useControllableState)({
|
|
9818
9810
|
prop: props.position,
|
|
@@ -9852,7 +9844,7 @@ var require_useSheetProviderProps_native = __commonJS({
|
|
|
9852
9844
|
(0, import_react2.useEffect)(() => {
|
|
9853
9845
|
shouldSetPositionOpen && setPosition(0);
|
|
9854
9846
|
}, [setPosition, shouldSetPositionOpen]);
|
|
9855
|
-
let { animationDriver } = (0,
|
|
9847
|
+
let { animationDriver } = (0, import_core12.useConfiguration)();
|
|
9856
9848
|
if (!animationDriver)
|
|
9857
9849
|
throw new Error("Must set animations in tamagui.config.ts");
|
|
9858
9850
|
let scrollBridge = (0, import_use_constant.useConstant)(() => ({
|
|
@@ -10042,7 +10034,7 @@ var require_helpers_native = __commonJS({
|
|
|
10042
10034
|
module2.exports = __toCommonJS2(helpers_exports);
|
|
10043
10035
|
function resisted(y, minY, maxOverflow = 25) {
|
|
10044
10036
|
if (y < minY) {
|
|
10045
|
-
let past = minY - y, extra = -(1.1 - 0.
|
|
10037
|
+
let past = minY - y, extra = -(1.1 - 0.15 ** (Math.min(maxOverflow, past) / maxOverflow)) * maxOverflow;
|
|
10046
10038
|
return minY + extra;
|
|
10047
10039
|
}
|
|
10048
10040
|
return y;
|
|
@@ -10067,7 +10059,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10067
10059
|
SheetImplementationCustom: () => SheetImplementationCustom
|
|
10068
10060
|
});
|
|
10069
10061
|
module2.exports = __toCommonJS2(SheetImplementationCustom_exports);
|
|
10070
|
-
var import_adapt = require_index_native25(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
10062
|
+
var import_adapt = require_index_native25(), import_animate_presence = require_index_native4(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_portal2 = require_index_native30(), import_use_keyboard_visible = require_index_native32(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants22 = require_constants_native3(), 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)(
|
|
10071
10063
|
(0, import_react2.forwardRef)(function(props, forwardedRef) {
|
|
10072
10064
|
let parentSheet = (0, import_react2.useContext)(import_contexts.ParentSheetContext), {
|
|
10073
10065
|
animation,
|
|
@@ -10094,7 +10086,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10094
10086
|
} = providerProps, { open, controller, isHidden } = state, sheetRef = (0, import_react2.useRef)(null), ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef), animationConfig = (() => {
|
|
10095
10087
|
let [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [animation] : [];
|
|
10096
10088
|
return animationConfigProp ?? (animationProp ? {
|
|
10097
|
-
...(0,
|
|
10089
|
+
...(0, import_core12.getConfig)().animations.animations[animationProp],
|
|
10098
10090
|
...animationPropConfig
|
|
10099
10091
|
} : null);
|
|
10100
10092
|
})(), [isShowingInnerSheet, setIsShowingInnerSheet] = (0, import_react2.useState)(!1), shouldHideParentSheet = !import_constants4.isWeb && modal && isShowingInnerSheet, parentSheetContext = (0, import_react2.useContext)(import_contexts.SheetInsideSheetContext), onInnerSheet = (0, import_react2.useCallback)((hasChild) => {
|
|
@@ -10104,7 +10096,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10104
10096
|
(point) => getYPositions(snapPointsMode, point, screenSize, frameSize)
|
|
10105
10097
|
),
|
|
10106
10098
|
[screenSize, frameSize, snapPoints, snapPointsMode]
|
|
10107
|
-
), { animationDriver } = (0,
|
|
10099
|
+
), { animationDriver } = (0, import_core12.useConfiguration)(), { useAnimatedNumber, useAnimatedNumberStyle, useAnimatedNumberReaction } = animationDriver, AnimatedView = animationDriver.View ?? import_core12.Stack;
|
|
10108
10100
|
(0, import_constants4.useIsomorphicLayoutEffect)(() => {
|
|
10109
10101
|
if (parentSheetContext && open)
|
|
10110
10102
|
return parentSheetContext(!0), () => {
|
|
@@ -10132,7 +10124,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10132
10124
|
function stopSpring() {
|
|
10133
10125
|
animatedNumber.stop(), scrollBridge.onFinishAnimate && (scrollBridge.onFinishAnimate(), scrollBridge.onFinishAnimate = void 0);
|
|
10134
10126
|
}
|
|
10135
|
-
let hasntMeasured = at.current === hiddenSize, animateTo = (0,
|
|
10127
|
+
let hasntMeasured = at.current === hiddenSize, animateTo = (0, import_core12.useEvent)((position2) => {
|
|
10136
10128
|
if (frameSize === 0)
|
|
10137
10129
|
return;
|
|
10138
10130
|
let toValue = isHidden || position2 === -1 ? screenSize : positions[position2];
|
|
@@ -10159,54 +10151,50 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10159
10151
|
}, [hasntMeasured, screenSize]), (0, import_constants4.useIsomorphicLayoutEffect)(() => {
|
|
10160
10152
|
!frameSize || !screenSize || isHidden || hasntMeasured && !open || animateTo(position);
|
|
10161
10153
|
}, [isHidden, frameSize, screenSize, open, position]);
|
|
10162
|
-
let disableDrag = props.disableDrag ?? (controller == null ? void 0 : controller.disableDrag), themeName = (0,
|
|
10163
|
-
(
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
|
|
10170
|
-
|
|
10154
|
+
let disableDrag = props.disableDrag ?? (controller == null ? void 0 : controller.disableDrag), themeName = (0, import_core12.useThemeName)(), [isDragging, setIsDragging] = (0, import_react2.useState)(!1), panResponder = (0, import_react2.useMemo)(() => {
|
|
10155
|
+
if (disableDrag || !frameSize || isShowingInnerSheet)
|
|
10156
|
+
return;
|
|
10157
|
+
let minY = positions[0];
|
|
10158
|
+
scrollBridge.paneMinY = minY;
|
|
10159
|
+
let startY = at.current;
|
|
10160
|
+
function setPanning(val) {
|
|
10161
|
+
setIsDragging(val), import_constants22.SHEET_HIDDEN_STYLESHEET && (val ? import_constants22.SHEET_HIDDEN_STYLESHEET.innerText = ":root * { user-select: none !important; -webkit-user-select: none !important; }" : import_constants22.SHEET_HIDDEN_STYLESHEET.innerText = "");
|
|
10162
|
+
}
|
|
10163
|
+
let release = ({ vy, dragAt }) => {
|
|
10164
|
+
isExternalDrag = !1, previouslyScrolling = !1, setPanning(!1);
|
|
10165
|
+
let end = dragAt + startY + frameSize * vy * 0.2, closestPoint = 0, dist = 1 / 0;
|
|
10166
|
+
for (let i = 0; i < positions.length; i++) {
|
|
10167
|
+
let position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
|
|
10168
|
+
curDist < dist && (dist = curDist, closestPoint = i);
|
|
10171
10169
|
}
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
curDist < dist && (dist = curDist, closestPoint = i);
|
|
10178
|
-
}
|
|
10179
|
-
setPosition(closestPoint), animateTo(closestPoint);
|
|
10180
|
-
}, finish = (_e, state2) => {
|
|
10181
|
-
release({
|
|
10182
|
-
vy: state2.vy,
|
|
10183
|
-
dragAt: state2.dy
|
|
10184
|
-
});
|
|
10185
|
-
}, previouslyScrolling = !1, onMoveShouldSet = (_e, { dy }) => {
|
|
10186
|
-
let isScrolled = scrollBridge.y !== 0, isDraggingUp = dy < 0, isNearTop = scrollBridge.paneY - 5 <= scrollBridge.paneMinY;
|
|
10187
|
-
return isScrolled ? (previouslyScrolling = !0, !1) : isNearTop && !isScrolled && isDraggingUp ? !1 : Math.abs(dy) > 5;
|
|
10188
|
-
}, grant = () => {
|
|
10189
|
-
setPanning(!0), stopSpring(), startY = at.current;
|
|
10190
|
-
}, isExternalDrag = !1;
|
|
10191
|
-
return scrollBridge.drag = (dy) => {
|
|
10192
|
-
isExternalDrag || (isExternalDrag = !0, grant());
|
|
10193
|
-
let to = dy + startY;
|
|
10194
|
-
animatedNumber.setValue((0, import_helpers.resisted)(to, minY), { type: "direct" });
|
|
10195
|
-
}, scrollBridge.release = release, import_react_native4.PanResponder.create({
|
|
10196
|
-
onMoveShouldSetPanResponder: onMoveShouldSet,
|
|
10197
|
-
onPanResponderGrant: grant,
|
|
10198
|
-
onPanResponderMove: (_e, { dy }) => {
|
|
10199
|
-
let toFull = dy + startY, to = (0, import_helpers.resisted)(toFull, minY);
|
|
10200
|
-
animatedNumber.setValue(to, { type: "direct" });
|
|
10201
|
-
},
|
|
10202
|
-
onPanResponderEnd: finish,
|
|
10203
|
-
onPanResponderTerminate: finish,
|
|
10204
|
-
onPanResponderRelease: finish
|
|
10170
|
+
setPosition(closestPoint), animateTo(closestPoint);
|
|
10171
|
+
}, finish = (_e, state2) => {
|
|
10172
|
+
release({
|
|
10173
|
+
vy: state2.vy,
|
|
10174
|
+
dragAt: state2.dy
|
|
10205
10175
|
});
|
|
10206
|
-
},
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10176
|
+
}, previouslyScrolling = !1, onMoveShouldSet = (_e, { dy }) => {
|
|
10177
|
+
let isScrolled = scrollBridge.y !== 0, isDraggingUp = dy < 0, isNearTop = scrollBridge.paneY - 5 <= scrollBridge.paneMinY;
|
|
10178
|
+
return isScrolled ? (previouslyScrolling = !0, !1) : Math.abs(dy) > 5;
|
|
10179
|
+
}, grant = () => {
|
|
10180
|
+
setPanning(!0), stopSpring(), startY = at.current;
|
|
10181
|
+
}, isExternalDrag = !1;
|
|
10182
|
+
return scrollBridge.drag = (dy) => {
|
|
10183
|
+
isExternalDrag || (isExternalDrag = !0, grant());
|
|
10184
|
+
let to = dy + startY;
|
|
10185
|
+
animatedNumber.setValue((0, import_helpers.resisted)(to, minY), { type: "direct" });
|
|
10186
|
+
}, scrollBridge.release = release, import_react_native4.PanResponder.create({
|
|
10187
|
+
onMoveShouldSetPanResponder: onMoveShouldSet,
|
|
10188
|
+
onPanResponderGrant: grant,
|
|
10189
|
+
onPanResponderMove: (_e, { dy }) => {
|
|
10190
|
+
let toFull = dy + startY, to = (0, import_helpers.resisted)(toFull, minY);
|
|
10191
|
+
animatedNumber.setValue(to, { type: "direct" });
|
|
10192
|
+
},
|
|
10193
|
+
onPanResponderEnd: finish,
|
|
10194
|
+
onPanResponderTerminate: finish,
|
|
10195
|
+
onPanResponderRelease: finish
|
|
10196
|
+
});
|
|
10197
|
+
}, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]), handleAnimationViewLayout = (0, import_react2.useCallback)(
|
|
10210
10198
|
(e) => {
|
|
10211
10199
|
var _a;
|
|
10212
10200
|
let next = Math.min(
|
|
@@ -10286,6 +10274,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10286
10274
|
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
10287
10275
|
animation
|
|
10288
10276
|
},
|
|
10277
|
+
disableClassName: !0,
|
|
10289
10278
|
style: [
|
|
10290
10279
|
{
|
|
10291
10280
|
position: "absolute",
|
|
@@ -10302,7 +10291,7 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
10302
10291
|
)
|
|
10303
10292
|
] }) }), adaptContext = (0, import_react2.useContext)(import_adapt.AdaptParentContext), shouldMountChildren = !!(opacity || !unmountChildrenWhenHidden);
|
|
10304
10293
|
if (modal) {
|
|
10305
|
-
let modalContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, ...portalProps, children: shouldMountChildren && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
10294
|
+
let modalContents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, ...portalProps, children: shouldMountChildren && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, { forceClassName: !0, name: themeName, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_adapt.AdaptParentContext.Provider, { value: adaptContext, children: contents }) }) });
|
|
10306
10295
|
return import_constants4.isWeb ? modalContents : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_contexts.SheetInsideSheetContext.Provider, { value: onInnerSheet, children: modalContents });
|
|
10307
10296
|
}
|
|
10308
10297
|
return contents;
|
|
@@ -10499,7 +10488,7 @@ var require_createSheet_native = __commonJS({
|
|
|
10499
10488
|
createSheet: () => createSheet
|
|
10500
10489
|
});
|
|
10501
10490
|
module2.exports = __toCommonJS2(createSheet_exports);
|
|
10502
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
10491
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_remove_scroll = require_index_native31(), import_use_did_finish_ssr = require_index_native11(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_constants22 = require_constants_native3(), 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 = (
|
|
10503
10492
|
// @ts-ignore
|
|
10504
10493
|
require("react/jsx-runtime")
|
|
10505
10494
|
);
|
|
@@ -10564,7 +10553,7 @@ var require_createSheet_native = __commonJS({
|
|
|
10564
10553
|
...props,
|
|
10565
10554
|
children: [
|
|
10566
10555
|
children,
|
|
10567
|
-
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
10556
|
+
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, { "data-sheet-offscreen-pad": !0, height: offscreenSize, width: "100%" })
|
|
10568
10557
|
]
|
|
10569
10558
|
}
|
|
10570
10559
|
)
|
|
@@ -10660,9 +10649,9 @@ var require_Sheet_native = __commonJS({
|
|
|
10660
10649
|
createSheetScope: () => import_SheetContext.createSheetScope
|
|
10661
10650
|
});
|
|
10662
10651
|
module2.exports = __toCommonJS2(Sheet_exports);
|
|
10663
|
-
var
|
|
10652
|
+
var import_core12 = require_index_native16(), import_stacks3 = require_index_native20(), import_constants4 = require_constants_native3(), import_createSheet = require_createSheet_native(), import_SheetContext = require_SheetContext_native();
|
|
10664
10653
|
__reExport2(Sheet_exports, require_types_native5(), module2.exports);
|
|
10665
|
-
var Handle = (0,
|
|
10654
|
+
var Handle = (0, import_core12.styled)(import_stacks3.XStack, {
|
|
10666
10655
|
name: import_constants4.SHEET_HANDLE_NAME,
|
|
10667
10656
|
variants: {
|
|
10668
10657
|
open: {
|
|
@@ -10692,7 +10681,7 @@ var require_Sheet_native = __commonJS({
|
|
|
10692
10681
|
defaultVariants: {
|
|
10693
10682
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10694
10683
|
}
|
|
10695
|
-
}), Overlay = (0,
|
|
10684
|
+
}), Overlay = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
10696
10685
|
name: import_constants4.SHEET_OVERLAY_NAME,
|
|
10697
10686
|
variants: {
|
|
10698
10687
|
open: {
|
|
@@ -10718,7 +10707,7 @@ var require_Sheet_native = __commonJS({
|
|
|
10718
10707
|
defaultVariants: {
|
|
10719
10708
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10720
10709
|
}
|
|
10721
|
-
}), Frame = (0,
|
|
10710
|
+
}), Frame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
10722
10711
|
name: import_constants4.SHEET_NAME,
|
|
10723
10712
|
variants: {
|
|
10724
10713
|
unstyled: {
|
|
@@ -10782,12 +10771,12 @@ var require_SheetController_native = __commonJS({
|
|
|
10782
10771
|
SheetController: () => SheetController
|
|
10783
10772
|
});
|
|
10784
10773
|
module2.exports = __toCommonJS2(SheetController_exports);
|
|
10785
|
-
var
|
|
10774
|
+
var import_core12 = require_index_native16(), import_react2 = require("react"), import_useSheetController = require_useSheetController_native(), import_jsx_runtime6 = require("react/jsx-runtime"), SheetController = ({
|
|
10786
10775
|
children,
|
|
10787
10776
|
onOpenChange: onOpenChangeProp,
|
|
10788
10777
|
...value
|
|
10789
10778
|
}) => {
|
|
10790
|
-
let onOpenChange = (0,
|
|
10779
|
+
let onOpenChange = (0, import_core12.useEvent)(onOpenChangeProp), memoValue = (0, import_react2.useMemo)(
|
|
10791
10780
|
() => ({
|
|
10792
10781
|
open: value.open,
|
|
10793
10782
|
hidden: value.hidden,
|
|
@@ -10863,7 +10852,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10863
10852
|
createDialogScope: () => createDialogScope
|
|
10864
10853
|
});
|
|
10865
10854
|
module2.exports = __toCommonJS2(Dialog_exports);
|
|
10866
|
-
var import_adapt = require_index_native25(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native27(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
10855
|
+
var import_adapt = require_index_native25(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native27(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_dismissable = require_index_native28(), import_focus_scope = require_index_native29(), import_helpers = require_index_native7(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native31(), import_sheet = require_index_native34(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), DIALOG_NAME = "Dialog", [createDialogContext, createDialogScope] = (0, import_create_context.createContextScope)(DIALOG_NAME), [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME), TRIGGER_NAME = "DialogTrigger", DialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
10867
10856
|
name: TRIGGER_NAME
|
|
10868
10857
|
}), DialogTrigger = DialogTriggerFrame.styleable(
|
|
10869
10858
|
(props, forwardedRef) => {
|
|
@@ -10889,7 +10878,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10889
10878
|
{
|
|
10890
10879
|
forceMount: void 0
|
|
10891
10880
|
}
|
|
10892
|
-
), DialogPortalFrame = (0,
|
|
10881
|
+
), DialogPortalFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
10893
10882
|
variants: {
|
|
10894
10883
|
unstyled: {
|
|
10895
10884
|
false: {
|
|
@@ -10908,7 +10897,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10908
10897
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
10909
10898
|
}
|
|
10910
10899
|
}), DialogPortalItem = (props) => {
|
|
10911
|
-
let themeName = (0,
|
|
10900
|
+
let themeName = (0, import_core12.useThemeName)(), context = useDialogContext(PORTAL_NAME, props.__scopeDialog);
|
|
10912
10901
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: props.hostName, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItemContent, { ...props, themeName, context }) });
|
|
10913
10902
|
};
|
|
10914
10903
|
function DialogPortalItemContent(props) {
|
|
@@ -10921,12 +10910,12 @@ var require_Dialog_native = __commonJS({
|
|
|
10921
10910
|
spaceDirection,
|
|
10922
10911
|
separator
|
|
10923
10912
|
} = props, childrenSpaced = children;
|
|
10924
|
-
return (space || separator) && (childrenSpaced = (0,
|
|
10913
|
+
return (space || separator) && (childrenSpaced = (0, import_core12.spacedChildren)({
|
|
10925
10914
|
children,
|
|
10926
10915
|
separator,
|
|
10927
10916
|
space,
|
|
10928
10917
|
direction: spaceDirection
|
|
10929
|
-
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, { scope: __scopeDialog, ...context, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
10918
|
+
})), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogProvider, { scope: __scopeDialog, ...context, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, { name: themeName, children: childrenSpaced }) });
|
|
10930
10919
|
}
|
|
10931
10920
|
var DialogPortal = (props) => {
|
|
10932
10921
|
let { __scopeDialog, forceMount, children, ...frameProps } = props, context = useDialogContext(PORTAL_NAME, __scopeDialog), isShowing = forceMount || context.open, [isFullyHidden, setIsFullyHidden] = React2.useState(!isShowing);
|
|
@@ -10943,7 +10932,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10943
10932
|
return useShowDialogSheet(context) ? children : context.modal ? isFullyHidden ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalItem, { __scopeDialog, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PortalProvider2, { scope: __scopeDialog, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, { pointerEvents: isShowing ? "auto" : "none", ...frameProps, children: contents }) }) }) : contents;
|
|
10944
10933
|
};
|
|
10945
10934
|
DialogPortal.displayName = PORTAL_NAME;
|
|
10946
|
-
var OVERLAY_NAME = "DialogOverlay", DialogOverlayFrame = (0,
|
|
10935
|
+
var OVERLAY_NAME = "DialogOverlay", DialogOverlayFrame = (0, import_core12.styled)(import_sheet.Overlay, {
|
|
10947
10936
|
name: OVERLAY_NAME
|
|
10948
10937
|
}), DialogOverlay = DialogOverlayFrame.extractable(
|
|
10949
10938
|
React2.forwardRef(
|
|
@@ -10971,7 +10960,7 @@ var require_Dialog_native = __commonJS({
|
|
|
10971
10960
|
)
|
|
10972
10961
|
);
|
|
10973
10962
|
}
|
|
10974
|
-
), CONTENT_NAME = "DialogContent", DialogContentFrame = (0,
|
|
10963
|
+
), CONTENT_NAME = "DialogContent", DialogContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
10975
10964
|
name: CONTENT_NAME,
|
|
10976
10965
|
tag: "dialog",
|
|
10977
10966
|
variants: {
|
|
@@ -11136,7 +11125,7 @@ var require_Dialog_native = __commonJS({
|
|
|
11136
11125
|
] })
|
|
11137
11126
|
] }) : contents;
|
|
11138
11127
|
}
|
|
11139
|
-
), TITLE_NAME = "DialogTitle", DialogTitleFrame = (0,
|
|
11128
|
+
), TITLE_NAME = "DialogTitle", DialogTitleFrame = (0, import_core12.styled)(import_text2.H2, {
|
|
11140
11129
|
name: TITLE_NAME
|
|
11141
11130
|
}), DialogTitle = DialogTitleFrame.styleable(
|
|
11142
11131
|
(props, forwardedRef) => {
|
|
@@ -11145,7 +11134,7 @@ var require_Dialog_native = __commonJS({
|
|
|
11145
11134
|
}
|
|
11146
11135
|
);
|
|
11147
11136
|
DialogTitle.displayName = TITLE_NAME;
|
|
11148
|
-
var DialogDescriptionFrame = (0,
|
|
11137
|
+
var DialogDescriptionFrame = (0, import_core12.styled)(import_text2.Paragraph, {
|
|
11149
11138
|
name: "DialogDescription"
|
|
11150
11139
|
}), DESCRIPTION_NAME = "DialogDescription", DialogDescription = DialogDescriptionFrame.styleable(
|
|
11151
11140
|
(props, forwardedRef) => {
|
|
@@ -11161,7 +11150,7 @@ var require_Dialog_native = __commonJS({
|
|
|
11161
11150
|
}
|
|
11162
11151
|
);
|
|
11163
11152
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
11164
|
-
var CLOSE_NAME = "DialogClose", DialogCloseFrame = (0,
|
|
11153
|
+
var CLOSE_NAME = "DialogClose", DialogCloseFrame = (0, import_core12.styled)(import_core12.View, {
|
|
11165
11154
|
name: CLOSE_NAME,
|
|
11166
11155
|
tag: "button"
|
|
11167
11156
|
}), DialogClose = DialogCloseFrame.styleable(
|
|
@@ -11291,7 +11280,7 @@ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it wi
|
|
|
11291
11280
|
scopeKey,
|
|
11292
11281
|
contentId
|
|
11293
11282
|
}) => `${scopeKey || contentId}SheetContents`, DialogSheetController = (props) => {
|
|
11294
|
-
let context = useDialogContext("DialogSheetController", props.__scopeDialog), showSheet = useShowDialogSheet(context), breakpointActive = useSheetBreakpointActive(context), getShowSheet = (0,
|
|
11283
|
+
let context = useDialogContext("DialogSheetController", props.__scopeDialog), showSheet = useShowDialogSheet(context), breakpointActive = useSheetBreakpointActive(context), getShowSheet = (0, import_core12.useGet)(showSheet);
|
|
11295
11284
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
11296
11285
|
import_sheet.SheetController,
|
|
11297
11286
|
{
|
|
@@ -11304,7 +11293,7 @@ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it wi
|
|
|
11304
11293
|
}
|
|
11305
11294
|
);
|
|
11306
11295
|
}, useSheetBreakpointActive = (context) => {
|
|
11307
|
-
let media = (0,
|
|
11296
|
+
let media = (0, import_core12.useMedia)();
|
|
11308
11297
|
return context.sheetBreakpoint ? context.sheetBreakpoint === !0 ? !0 : media[context.sheetBreakpoint] : !1;
|
|
11309
11298
|
}, useShowDialogSheet = (context) => {
|
|
11310
11299
|
let breakpointActive = useSheetBreakpointActive(context);
|
|
@@ -11361,9 +11350,9 @@ var require_AlertDialog_native = __commonJS({
|
|
|
11361
11350
|
createAlertDialogScope: () => createAlertDialogScope
|
|
11362
11351
|
});
|
|
11363
11352
|
module2.exports = __toCommonJS2(AlertDialog_exports);
|
|
11364
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
11353
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_dialog = require_index_native35(), import_helpers = require_index_native7(), import_use_controllable_state = require_index_native9(), 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, [
|
|
11365
11354
|
import_dialog.createDialogScope
|
|
11366
|
-
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0,
|
|
11355
|
+
]), useDialogScope = (0, import_dialog.createDialogScope)(), TRIGGER_NAME = "AlertDialogTrigger", NativeAlertDialogTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
11367
11356
|
name: TRIGGER_NAME
|
|
11368
11357
|
}), AlertDialogTrigger = React2.forwardRef(
|
|
11369
11358
|
(props, forwardedRef) => {
|
|
@@ -11387,7 +11376,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
11387
11376
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.DialogPortal, { ...dialogScope, ...portalProps });
|
|
11388
11377
|
};
|
|
11389
11378
|
AlertDialogPortal.displayName = PORTAL_NAME;
|
|
11390
|
-
var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0,
|
|
11379
|
+
var OVERLAY_NAME = "AlertDialogOverlay", AlertDialogOverlayFrame = (0, import_core12.styled)(import_dialog.DialogOverlayFrame, {
|
|
11391
11380
|
name: OVERLAY_NAME
|
|
11392
11381
|
}), AlertDialogOverlay = AlertDialogOverlayFrame.extractable(
|
|
11393
11382
|
React2.forwardRef(
|
|
@@ -11424,7 +11413,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
11424
11413
|
onPointerDownOutside: (event) => event.preventDefault(),
|
|
11425
11414
|
onInteractOutside: (event) => event.preventDefault(),
|
|
11426
11415
|
children: [
|
|
11427
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
11416
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Slottable, { children }),
|
|
11428
11417
|
process.env.NODE_ENV === "development" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DescriptionWarning, { contentRef })
|
|
11429
11418
|
]
|
|
11430
11419
|
}
|
|
@@ -11485,7 +11474,7 @@ var require_AlertDialog_native = __commonJS({
|
|
|
11485
11474
|
if (forEachChildDeep(React2.Children.toArray(props.children), (child) => {
|
|
11486
11475
|
if (!React2.isValidElement(child))
|
|
11487
11476
|
return !1;
|
|
11488
|
-
let name = (0,
|
|
11477
|
+
let name = (0, import_core12.isTamaguiElement)(child) ? child.type.staticConfig.componentName : child.type.displayName;
|
|
11489
11478
|
switch (name) {
|
|
11490
11479
|
case TRIGGER_NAME:
|
|
11491
11480
|
return triggerElement = React2.cloneElement(child, {
|
|
@@ -11577,11 +11566,11 @@ var require_Image_native = __commonJS({
|
|
|
11577
11566
|
Image: () => Image
|
|
11578
11567
|
});
|
|
11579
11568
|
module2.exports = __toCommonJS2(Image_exports);
|
|
11580
|
-
var import_constants4 = require_index_native6(),
|
|
11569
|
+
var import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_react2 = require("react"), import_react_native4 = require("react-native"), import_jsx_runtime6 = require("react/jsx-runtime"), StyledImage = (0, import_core12.styled)(import_react_native4.Image, {
|
|
11581
11570
|
name: "Image"
|
|
11582
11571
|
}), hasWarned = !1, Image = StyledImage.extractable(
|
|
11583
11572
|
(0, import_react2.forwardRef)((inProps, ref) => {
|
|
11584
|
-
let [props, style] = (0,
|
|
11573
|
+
let [props, style] = (0, import_core12.usePropsAndStyle)(inProps), { src, source, ...rest } = props;
|
|
11585
11574
|
process.env.NODE_ENV === "development" && typeof src == "string" && (typeof props.width == "string" && props.width[0] !== "$" || typeof props.height == "string" && props.height[0] !== "$") && (hasWarned || (hasWarned = !0, console.warn(
|
|
11586
11575
|
'React Native expects a numerical width/height. If you want to use a percent you must define the "source" prop with width, height, and uri.'
|
|
11587
11576
|
)));
|
|
@@ -11745,15 +11734,15 @@ var require_Avatar_native = __commonJS({
|
|
|
11745
11734
|
createAvatarScope: () => createAvatarScope
|
|
11746
11735
|
});
|
|
11747
11736
|
module2.exports = __toCommonJS2(Avatar_exports);
|
|
11748
|
-
var
|
|
11737
|
+
var import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_helpers = require_index_native7(), import_image = require_index_native37(), import_shapes = require_index_native38(), import_stacks3 = require_index_native20(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), AVATAR_NAME = "Avatar", [createAvatarContext, createAvatarScope] = (0, import_create_context.createContextScope)(AVATAR_NAME), [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME), IMAGE_NAME = "AvatarImage", AvatarImage = React2.forwardRef(
|
|
11749
11738
|
(props, forwardedRef) => {
|
|
11750
11739
|
var _a;
|
|
11751
11740
|
let { __scopeAvatar, src, onLoadingStatusChange = () => {
|
|
11752
|
-
}, ...imageProps } = props, context = useAvatarContext(IMAGE_NAME, __scopeAvatar), [status, setStatus] = React2.useState("idle"), shapeSize = (0,
|
|
11741
|
+
}, ...imageProps } = props, context = useAvatarContext(IMAGE_NAME, __scopeAvatar), [status, setStatus] = React2.useState("idle"), shapeSize = (0, import_core12.getVariableValue)(
|
|
11753
11742
|
(_a = (0, import_shapes.getShapeSize)(
|
|
11754
11743
|
context.size,
|
|
11755
11744
|
// @ts-expect-error
|
|
11756
|
-
{ tokens: (0,
|
|
11745
|
+
{ tokens: (0, import_core12.getTokens)() }
|
|
11757
11746
|
)) == null ? void 0 : _a.width
|
|
11758
11747
|
);
|
|
11759
11748
|
return React2.useEffect(() => {
|
|
@@ -11782,7 +11771,7 @@ var require_Avatar_native = __commonJS({
|
|
|
11782
11771
|
}
|
|
11783
11772
|
);
|
|
11784
11773
|
AvatarImage.displayName = IMAGE_NAME;
|
|
11785
|
-
var FALLBACK_NAME = "AvatarFallback", AvatarFallbackFrame = (0,
|
|
11774
|
+
var FALLBACK_NAME = "AvatarFallback", AvatarFallbackFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
11786
11775
|
name: FALLBACK_NAME,
|
|
11787
11776
|
position: "absolute",
|
|
11788
11777
|
fullscreen: !0,
|
|
@@ -11801,7 +11790,7 @@ var require_Avatar_native = __commonJS({
|
|
|
11801
11790
|
)
|
|
11802
11791
|
);
|
|
11803
11792
|
AvatarFallback.displayName = FALLBACK_NAME;
|
|
11804
|
-
var AvatarFrame = (0,
|
|
11793
|
+
var AvatarFrame = (0, import_core12.styled)(import_shapes.Square, {
|
|
11805
11794
|
name: AVATAR_NAME,
|
|
11806
11795
|
position: "relative",
|
|
11807
11796
|
overflow: "hidden"
|
|
@@ -11864,16 +11853,16 @@ var require_getFontSize_native = __commonJS({
|
|
|
11864
11853
|
getFontSizeVariable: () => getFontSizeVariable
|
|
11865
11854
|
});
|
|
11866
11855
|
module2.exports = __toCommonJS2(getFontSize_exports);
|
|
11867
|
-
var
|
|
11856
|
+
var import_core12 = require_index_native16(), getFontSize = (inSize, opts) => {
|
|
11868
11857
|
let res = getFontSizeVariable(inSize, opts);
|
|
11869
|
-
return (0,
|
|
11858
|
+
return (0, import_core12.isVariable)(res) ? +res.val : res ? +res : 16;
|
|
11870
11859
|
}, getFontSizeVariable = (inSize, opts) => {
|
|
11871
11860
|
let token = getFontSizeToken(inSize, opts);
|
|
11872
|
-
return token ? (0,
|
|
11861
|
+
return token ? (0, import_core12.getConfig)().fontsParsed[(opts == null ? void 0 : opts.font) || "$body"].size[token] : inSize;
|
|
11873
11862
|
}, getFontSizeToken = (inSize, opts) => {
|
|
11874
11863
|
if (typeof inSize == "number")
|
|
11875
11864
|
return null;
|
|
11876
|
-
let relativeSize = (opts == null ? void 0 : opts.relativeSize) || 0, fontSize = (0,
|
|
11865
|
+
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" && !("$true" in fontSize) ? "$4" : inSize) ?? ("$true" in fontSize ? "$true" : "$4"), sizeTokens = Object.keys(fontSize), foundIndex = sizeTokens.indexOf(size2);
|
|
11877
11866
|
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);
|
|
11878
11867
|
let tokenIndex = Math.min(
|
|
11879
11868
|
Math.max(0, foundIndex + relativeSize),
|
|
@@ -12659,7 +12648,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12659
12648
|
isIndeterminate: () => isIndeterminate
|
|
12660
12649
|
});
|
|
12661
12650
|
module2.exports = __toCommonJS2(Checkbox_exports);
|
|
12662
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
12651
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_focusable2 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_label = require_index_native45(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), CheckboxStyledContext = (0, import_core12.createStyledContext)({
|
|
12663
12652
|
size: "$true",
|
|
12664
12653
|
scaleIcon: 1
|
|
12665
12654
|
});
|
|
@@ -12704,7 +12693,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12704
12693
|
}
|
|
12705
12694
|
}
|
|
12706
12695
|
);
|
|
12707
|
-
}, INDICATOR_NAME = "CheckboxIndicator", CheckboxIndicatorFrame = (0,
|
|
12696
|
+
}, INDICATOR_NAME = "CheckboxIndicator", CheckboxIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
12708
12697
|
// use Checkbox for easier themes
|
|
12709
12698
|
name: INDICATOR_NAME,
|
|
12710
12699
|
context: CheckboxStyledContext
|
|
@@ -12721,7 +12710,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12721
12710
|
process.env.NODE_ENV === "development" && !childrenProp && console.warn(
|
|
12722
12711
|
"Warning: You created a Checkbox.Indicator without passing an child prop for it to use as an icon."
|
|
12723
12712
|
);
|
|
12724
|
-
let context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox), styledContext = React2.useContext(CheckboxStyledContext), iconSize = (typeof styledContext.size == "number" ? styledContext.size * 0.65 : (0, import_font_size.getFontSize)(styledContext.size)) * styledContext.scaleIcon, theme = (0,
|
|
12713
|
+
let context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox), styledContext = React2.useContext(CheckboxStyledContext), iconSize = (typeof styledContext.size == "number" ? styledContext.size * 0.65 : (0, import_font_size.getFontSize)(styledContext.size)) * styledContext.scaleIcon, theme = (0, import_core12.useTheme)(), getThemedIcon = (0, import_helpers_tamagui.useGetThemedIcon)({ size: iconSize, color: theme.color }), children = React2.Children.toArray(childrenProp).map((child) => disablePassStyles || !React2.isValidElement(child) ? child : getThemedIcon(child));
|
|
12725
12714
|
return forceMount || isIndeterminate(context.state) || context.state === !0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
12726
12715
|
CheckboxIndicatorFrame,
|
|
12727
12716
|
{
|
|
@@ -12737,7 +12726,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12737
12726
|
)
|
|
12738
12727
|
);
|
|
12739
12728
|
CheckboxIndicator.displayName = INDICATOR_NAME;
|
|
12740
|
-
var CHECKBOX_NAME = "Checkbox", CheckboxFrame = (0,
|
|
12729
|
+
var CHECKBOX_NAME = "Checkbox", CheckboxFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
12741
12730
|
name: CHECKBOX_NAME,
|
|
12742
12731
|
tag: "button",
|
|
12743
12732
|
context: CheckboxStyledContext,
|
|
@@ -12783,7 +12772,7 @@ var require_Checkbox_native = __commonJS({
|
|
|
12783
12772
|
},
|
|
12784
12773
|
size: {
|
|
12785
12774
|
"...size": (val, { tokens }) => ({
|
|
12786
|
-
borderRadius: (0,
|
|
12775
|
+
borderRadius: (0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 8
|
|
12787
12776
|
})
|
|
12788
12777
|
}
|
|
12789
12778
|
},
|
|
@@ -12806,11 +12795,11 @@ var require_Checkbox_native = __commonJS({
|
|
|
12806
12795
|
native,
|
|
12807
12796
|
scaleIcon,
|
|
12808
12797
|
...checkboxProps
|
|
12809
|
-
} = props, isInsideButton = React2.useContext(import_stacks3.ButtonNestingContext), [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (node) => setButton(node)), hasConsumerStoppedPropagationRef = React2.useRef(!1), propsActive = (0,
|
|
12798
|
+
} = props, isInsideButton = React2.useContext(import_stacks3.ButtonNestingContext), [button, setButton] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, (node) => setButton(node)), hasConsumerStoppedPropagationRef = React2.useRef(!1), propsActive = (0, import_core12.useProps)(props), isFormControl = import_constants4.isWeb ? button ? !!button.closest("form") : !0 : !1, [checked = !1, setChecked] = (0, import_use_controllable_state.useControllableState)({
|
|
12810
12799
|
prop: checkedProp,
|
|
12811
12800
|
defaultProp: defaultChecked,
|
|
12812
12801
|
onChange: onCheckedChange
|
|
12813
|
-
}), styledContext = React2.useContext(CheckboxStyledContext), adjustedSize = (0,
|
|
12802
|
+
}), styledContext = React2.useContext(CheckboxStyledContext), adjustedSize = (0, import_core12.getVariableValue)(
|
|
12814
12803
|
(0, import_get_token2.getSize)(propsActive.size ?? (styledContext == null ? void 0 : styledContext.size) ?? "$true", {
|
|
12815
12804
|
shift: sizeAdjust
|
|
12816
12805
|
})
|
|
@@ -12934,10 +12923,10 @@ var require_Form_native = __commonJS({
|
|
|
12934
12923
|
useFormContext: () => useFormContext
|
|
12935
12924
|
});
|
|
12936
12925
|
module2.exports = __toCommonJS2(Form_exports);
|
|
12937
|
-
var
|
|
12926
|
+
var import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_helpers = require_index_native7(), import_jsx_runtime6 = require("react/jsx-runtime"), FORM_NAME = "Form", FormFrame = (0, import_core12.styled)(import_core12.Stack, {
|
|
12938
12927
|
name: FORM_NAME,
|
|
12939
12928
|
tag: "form"
|
|
12940
|
-
}), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0,
|
|
12929
|
+
}), [createFormContext] = (0, import_create_context.createContextScope)(FORM_NAME), [FormProvider, useFormContext] = createFormContext(FORM_NAME), TRIGGER_NAME = "FormTrigger", FormTriggerFrame = (0, import_core12.styled)(import_core12.View, {
|
|
12941
12930
|
name: TRIGGER_NAME
|
|
12942
12931
|
}), FormTrigger = FormTriggerFrame.styleable(
|
|
12943
12932
|
(props, forwardedRef) => {
|
|
@@ -13546,7 +13535,7 @@ var require_Group_native = __commonJS({
|
|
|
13546
13535
|
useGroupItem: () => useGroupItem
|
|
13547
13536
|
});
|
|
13548
13537
|
module2.exports = __toCommonJS2(Group_exports);
|
|
13549
|
-
var
|
|
13538
|
+
var import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_helpers = require_index_native7(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), 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, {
|
|
13550
13539
|
name: "GroupFrame",
|
|
13551
13540
|
variants: {
|
|
13552
13541
|
unstyled: {
|
|
@@ -13565,7 +13554,7 @@ var require_Group_native = __commonJS({
|
|
|
13565
13554
|
function createGroup(verticalDefault) {
|
|
13566
13555
|
return (0, import_helpers.withStaticProperties)(
|
|
13567
13556
|
(0, import_react2.forwardRef)((props, ref) => {
|
|
13568
|
-
let activeProps = (0,
|
|
13557
|
+
let activeProps = (0, import_core12.useProps)(props), {
|
|
13569
13558
|
__scopeGroup,
|
|
13570
13559
|
children: childrenProp,
|
|
13571
13560
|
space,
|
|
@@ -13582,7 +13571,7 @@ var require_Group_native = __commonJS({
|
|
|
13582
13571
|
...restProps
|
|
13583
13572
|
} = activeProps, vertical = orientation === "vertical", [itemChildrenCount, setItemChildrenCount] = (0, import_use_controllable_state.useControllableState)({
|
|
13584
13573
|
defaultProp: forceUseItem ? 1 : 0
|
|
13585
|
-
}), isUsingItems = itemChildrenCount > 0, radius = borderRadius ?? (size2 ? (0,
|
|
13574
|
+
}), 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) => {
|
|
13586
13575
|
if (!(0, import_react2.isValidElement)(child))
|
|
13587
13576
|
return child;
|
|
13588
13577
|
let disabled = child.props.disabled ?? disabledProp, isFirst = i === 0, isLast = i === childrenArray.length - 1, radiusStyles = disablePassBorderRadius === !0 ? null : getBorderRadius({
|
|
@@ -13593,11 +13582,11 @@ var require_Group_native = __commonJS({
|
|
|
13593
13582
|
disable: disablePassBorderRadius
|
|
13594
13583
|
}), props2 = {
|
|
13595
13584
|
disabled,
|
|
13596
|
-
...(0,
|
|
13585
|
+
...(0, import_core12.isTamaguiElement)(child) ? radiusStyles : { style: radiusStyles }
|
|
13597
13586
|
};
|
|
13598
13587
|
return cloneElementWithPropOrder(child, props2);
|
|
13599
13588
|
}), indexedChildren = (0, import_reforest.useIndexedChildren)(
|
|
13600
|
-
(0,
|
|
13589
|
+
(0, import_core12.spacedChildren)({
|
|
13601
13590
|
direction: spaceDirection,
|
|
13602
13591
|
separator,
|
|
13603
13592
|
// @ts-ignore
|
|
@@ -13647,7 +13636,7 @@ var require_Group_native = __commonJS({
|
|
|
13647
13636
|
forcePlacement,
|
|
13648
13637
|
__scopeGroup
|
|
13649
13638
|
);
|
|
13650
|
-
return (0, import_react2.isValidElement)(children) ? (0,
|
|
13639
|
+
return (0, import_react2.isValidElement)(children) ? (0, import_core12.isTamaguiElement)(children) ? import_react2.default.cloneElement(children, groupItemProps) : import_react2.default.cloneElement(children, {
|
|
13651
13640
|
style: {
|
|
13652
13641
|
// @ts-ignore
|
|
13653
13642
|
...(_a = children.props) == null ? void 0 : _a.style,
|
|
@@ -13698,7 +13687,7 @@ var require_Group_native = __commonJS({
|
|
|
13698
13687
|
borderBottomLeftRadius: disable !== "bottom" && disable !== "start" && (vertical && isLast || !vertical && isFirst) ? radius : 0,
|
|
13699
13688
|
borderBottomRightRadius: isLast && disable !== "bottom" && disable !== "end" ? radius : 0
|
|
13700
13689
|
}), cloneElementWithPropOrder = (child, props) => {
|
|
13701
|
-
let next = (0,
|
|
13690
|
+
let next = (0, import_core12.mergeProps)(child.props, props, (0, import_core12.getConfig)().shorthands);
|
|
13702
13691
|
return import_react2.default.cloneElement({ ...child, props: null }, next);
|
|
13703
13692
|
};
|
|
13704
13693
|
}
|
|
@@ -13971,6 +13960,66 @@ var require_index_native51 = __commonJS({
|
|
|
13971
13960
|
}
|
|
13972
13961
|
});
|
|
13973
13962
|
|
|
13963
|
+
// ../elements/dist/cjs/index.native.js
|
|
13964
|
+
var require_index_native52 = __commonJS({
|
|
13965
|
+
"../elements/dist/cjs/index.native.js"(exports2, module2) {
|
|
13966
|
+
"use strict";
|
|
13967
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
13968
|
+
for (var name in all)
|
|
13969
|
+
__defProp2(target, name, { get: all[name], enumerable: !0 });
|
|
13970
|
+
}, __copyProps2 = (to, from, except, desc) => {
|
|
13971
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
13972
|
+
for (let key of __getOwnPropNames2(from))
|
|
13973
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
13974
|
+
return to;
|
|
13975
|
+
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), src_exports2 = {};
|
|
13976
|
+
__export2(src_exports2, {
|
|
13977
|
+
Article: () => Article,
|
|
13978
|
+
Aside: () => Aside,
|
|
13979
|
+
Footer: () => Footer,
|
|
13980
|
+
Header: () => Header,
|
|
13981
|
+
Main: () => Main,
|
|
13982
|
+
Nav: () => Nav,
|
|
13983
|
+
Section: () => Section
|
|
13984
|
+
});
|
|
13985
|
+
module2.exports = __toCommonJS2(src_exports2);
|
|
13986
|
+
var import_core12 = require_index_native16(), Section = (0, import_core12.styled)(import_core12.View, {
|
|
13987
|
+
name: "Section",
|
|
13988
|
+
tag: "section",
|
|
13989
|
+
flexDirection: "column",
|
|
13990
|
+
accessibilityRole: "summary"
|
|
13991
|
+
}), Article = (0, import_core12.styled)(import_core12.View, {
|
|
13992
|
+
name: "Article",
|
|
13993
|
+
tag: "article",
|
|
13994
|
+
flexDirection: "column"
|
|
13995
|
+
}), Main = (0, import_core12.styled)(import_core12.View, {
|
|
13996
|
+
name: "Main",
|
|
13997
|
+
tag: "main",
|
|
13998
|
+
flexDirection: "column"
|
|
13999
|
+
}), Header = (0, import_core12.styled)(import_core12.View, {
|
|
14000
|
+
name: "Header",
|
|
14001
|
+
tag: "header",
|
|
14002
|
+
accessibilityRole: "header",
|
|
14003
|
+
flexDirection: "column"
|
|
14004
|
+
}), Aside = (0, import_core12.styled)(import_core12.View, {
|
|
14005
|
+
name: "Aside",
|
|
14006
|
+
tag: "aside",
|
|
14007
|
+
flexDirection: "column"
|
|
14008
|
+
// accessibilityRole: 'complementary',
|
|
14009
|
+
}), Footer = (0, import_core12.styled)(import_core12.View, {
|
|
14010
|
+
name: "Footer",
|
|
14011
|
+
tag: "footer",
|
|
14012
|
+
flexDirection: "column"
|
|
14013
|
+
// accessibilityRole: 'contentinfo',
|
|
14014
|
+
}), Nav = (0, import_core12.styled)(import_core12.View, {
|
|
14015
|
+
name: "Nav",
|
|
14016
|
+
tag: "nav",
|
|
14017
|
+
flexDirection: "column"
|
|
14018
|
+
// accessibilityRole: 'navigation',
|
|
14019
|
+
});
|
|
14020
|
+
}
|
|
14021
|
+
});
|
|
14022
|
+
|
|
13974
14023
|
// ../list-item/dist/cjs/ListItem.native.js
|
|
13975
14024
|
var require_ListItem_native = __commonJS({
|
|
13976
14025
|
"../list-item/dist/cjs/ListItem.native.js"(exports2, module2) {
|
|
@@ -14154,7 +14203,7 @@ var require_ListItem_native = __commonJS({
|
|
|
14154
14203
|
});
|
|
14155
14204
|
|
|
14156
14205
|
// ../list-item/dist/cjs/index.native.js
|
|
14157
|
-
var
|
|
14206
|
+
var require_index_native53 = __commonJS({
|
|
14158
14207
|
"../list-item/dist/cjs/index.native.js"(exports2, module2) {
|
|
14159
14208
|
"use strict";
|
|
14160
14209
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -14205,7 +14254,7 @@ var require_Animate_native = __commonJS({
|
|
|
14205
14254
|
});
|
|
14206
14255
|
|
|
14207
14256
|
// ../animate/dist/cjs/index.native.js
|
|
14208
|
-
var
|
|
14257
|
+
var require_index_native54 = __commonJS({
|
|
14209
14258
|
"../animate/dist/cjs/index.native.js"(exports2, module2) {
|
|
14210
14259
|
"use strict";
|
|
14211
14260
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -15350,7 +15399,7 @@ var require_useFloating_native = __commonJS({
|
|
|
15350
15399
|
});
|
|
15351
15400
|
|
|
15352
15401
|
// ../floating/dist/cjs/index.native.js
|
|
15353
|
-
var
|
|
15402
|
+
var require_index_native55 = __commonJS({
|
|
15354
15403
|
"../floating/dist/cjs/index.native.js"(exports2, module2) {
|
|
15355
15404
|
"use strict";
|
|
15356
15405
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -15403,7 +15452,7 @@ var require_Popper_native = __commonJS({
|
|
|
15403
15452
|
usePopperContext: () => usePopperContext
|
|
15404
15453
|
});
|
|
15405
15454
|
module2.exports = __toCommonJS2(Popper_exports);
|
|
15406
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
15455
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_floating = require_index_native55(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), 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;
|
|
15407
15456
|
function Popper(props) {
|
|
15408
15457
|
let {
|
|
15409
15458
|
children,
|
|
@@ -15414,7 +15463,7 @@ var require_Popper_native = __commonJS({
|
|
|
15414
15463
|
allowFlip,
|
|
15415
15464
|
offset: offset2,
|
|
15416
15465
|
__scopePopper
|
|
15417
|
-
} = props, isMounted = (0,
|
|
15466
|
+
} = props, isMounted = (0, import_core12.useDidFinishSSR)(), [arrowEl, setArrow] = React2.useState(null), [arrowSize, setArrowSize] = React2.useState(0), offsetOptions = offset2 ?? arrowSize, floating = (0, import_floating.useFloating)({
|
|
15418
15467
|
strategy,
|
|
15419
15468
|
placement,
|
|
15420
15469
|
sameScrollView: !1,
|
|
@@ -15477,14 +15526,14 @@ var require_Popper_native = __commonJS({
|
|
|
15477
15526
|
...anchorProps
|
|
15478
15527
|
};
|
|
15479
15528
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15480
|
-
|
|
15529
|
+
import_core12.View,
|
|
15481
15530
|
{
|
|
15482
15531
|
...getReferenceProps ? getReferenceProps(stackProps) : stackProps
|
|
15483
15532
|
}
|
|
15484
15533
|
);
|
|
15485
15534
|
}
|
|
15486
15535
|
)
|
|
15487
|
-
), PopperContentFrame = (0,
|
|
15536
|
+
), PopperContentFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
15488
15537
|
name: "PopperContent",
|
|
15489
15538
|
variants: {
|
|
15490
15539
|
unstyled: {
|
|
@@ -15540,8 +15589,8 @@ var require_Popper_native = __commonJS({
|
|
|
15540
15589
|
animateOnly: rest.animateOnly
|
|
15541
15590
|
}
|
|
15542
15591
|
};
|
|
15543
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15544
|
-
}), PopperArrowFrame = (0,
|
|
15592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, { ...getFloatingProps ? getFloatingProps(frameProps) : frameProps, children: contents });
|
|
15593
|
+
}), PopperArrowFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
15545
15594
|
name: "PopperArrow",
|
|
15546
15595
|
variants: {
|
|
15547
15596
|
unstyled: {
|
|
@@ -15555,7 +15604,7 @@ var require_Popper_native = __commonJS({
|
|
|
15555
15604
|
defaultVariants: {
|
|
15556
15605
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
15557
15606
|
}
|
|
15558
|
-
}), PopperArrowOuterFrame = (0,
|
|
15607
|
+
}), PopperArrowOuterFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
15559
15608
|
name: "PopperArrowOuter",
|
|
15560
15609
|
variants: {
|
|
15561
15610
|
unstyled: {
|
|
@@ -15580,7 +15629,7 @@ var require_Popper_native = __commonJS({
|
|
|
15580
15629
|
}, PopperArrow = PopperArrowFrame.styleable(
|
|
15581
15630
|
function(propsIn, forwardedRef) {
|
|
15582
15631
|
var _a, _b;
|
|
15583
|
-
let { __scopePopper, ...rest } = propsIn, props = (0,
|
|
15632
|
+
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, sizeValResolved = (0, import_core12.getVariableValue)(
|
|
15584
15633
|
(0, import_get_token2.getSpace)(sizeVal, {
|
|
15585
15634
|
shift: -2,
|
|
15586
15635
|
bounds: [2]
|
|
@@ -15626,7 +15675,7 @@ var require_Popper_native = __commonJS({
|
|
|
15626
15675
|
});
|
|
15627
15676
|
|
|
15628
15677
|
// ../popper/dist/cjs/index.native.js
|
|
15629
|
-
var
|
|
15678
|
+
var require_index_native56 = __commonJS({
|
|
15630
15679
|
"../popper/dist/cjs/index.native.js"(exports2, module2) {
|
|
15631
15680
|
"use strict";
|
|
15632
15681
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -15693,7 +15742,7 @@ var require_Popover_native = __commonJS({
|
|
|
15693
15742
|
usePopoverContext: () => usePopoverContext
|
|
15694
15743
|
});
|
|
15695
15744
|
module2.exports = __toCommonJS2(Popover_exports);
|
|
15696
|
-
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native25(), import_animate =
|
|
15745
|
+
var import_polyfill_dev = require_polyfill_dev(), import_adapt = require_index_native25(), import_animate = require_index_native54(), import_animate_presence = require_index_native4(), import_aria_hidden = require_index_native27(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_floating = require_index_native55(), import_focus_scope = require_index_native29(), import_helpers = require_index_native7(), import_popper = require_index_native56(), import_portal2 = require_index_native30(), import_remove_scroll = require_index_native31(), import_sheet = require_index_native34(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), 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_core12.createStyledContext)({}), usePopoverContext = PopoverContext.useStyledContext, PopoverAnchor = React2.forwardRef(function(props, forwardedRef) {
|
|
15697
15746
|
let { __scopePopover, ...rest } = props, context = usePopoverContext(__scopePopover), { onCustomAnchorAdd, onCustomAnchorRemove } = context || {};
|
|
15698
15747
|
return React2.useEffect(() => (onCustomAnchorAdd(), () => onCustomAnchorRemove()), [onCustomAnchorAdd, onCustomAnchorRemove]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15699
15748
|
import_popper.PopperAnchor,
|
|
@@ -15726,7 +15775,7 @@ var require_Popover_native = __commonJS({
|
|
|
15726
15775
|
if (!props.children)
|
|
15727
15776
|
return null;
|
|
15728
15777
|
let trigger = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15729
|
-
|
|
15778
|
+
import_core12.View,
|
|
15730
15779
|
{
|
|
15731
15780
|
"aria-haspopup": "dialog",
|
|
15732
15781
|
"aria-expanded": context.open,
|
|
@@ -15753,7 +15802,7 @@ var require_Popover_native = __commonJS({
|
|
|
15753
15802
|
let content = contentRef.current;
|
|
15754
15803
|
if (content)
|
|
15755
15804
|
return (0, import_aria_hidden.hideOthers)(content);
|
|
15756
|
-
}, [context.open]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, { __scopePopover, zIndex: props.zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15805
|
+
}, [context.open]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContentPortal, { __scopePopover, zIndex: props.zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, { pointerEvents: context.open ? "auto" : "none", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15757
15806
|
PopoverContentImpl,
|
|
15758
15807
|
{
|
|
15759
15808
|
...contentImplProps,
|
|
@@ -15787,7 +15836,7 @@ var require_Popover_native = __commonJS({
|
|
|
15787
15836
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_popper.PopperContext.Provider, { scope: props.scope, ...props.popperContext, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopoverContext.Provider, { ...props.context, children: props.children }) });
|
|
15788
15837
|
}
|
|
15789
15838
|
function PopoverContentPortal(props) {
|
|
15790
|
-
let { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0,
|
|
15839
|
+
let { __scopePopover } = props, zIndex = props.zIndex ?? 15e4, context = usePopoverContext(__scopePopover), popperContext = (0, import_popper.usePopperContext)(__scopePopover || POPOVER_SCOPE), themeName = (0, import_core12.useThemeName)(), contents = props.children;
|
|
15791
15840
|
return (import_react_native4.Platform.OS === "android" || import_react_native4.Platform.OS === "ios") && (contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15792
15841
|
PopoverRepropagateContext,
|
|
15793
15842
|
{
|
|
@@ -15796,7 +15845,7 @@ var require_Popover_native = __commonJS({
|
|
|
15796
15845
|
context,
|
|
15797
15846
|
children: props.children
|
|
15798
15847
|
}
|
|
15799
|
-
)), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
15848
|
+
)), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, { zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_core12.Theme, { forceClassName: !0, name: themeName, children: [
|
|
15800
15849
|
!!context.open && !context.breakpointActive && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15801
15850
|
import_stacks3.YStack,
|
|
15802
15851
|
{
|
|
@@ -15951,7 +16000,7 @@ var require_Popover_native = __commonJS({
|
|
|
15951
16000
|
onOpenChange: (val, via) => {
|
|
15952
16001
|
viaRef.current = via, setOpen(val);
|
|
15953
16002
|
},
|
|
15954
|
-
onOpenToggle: (0,
|
|
16003
|
+
onOpenToggle: (0, import_core12.useEvent)(() => {
|
|
15955
16004
|
open && sheetActive || setOpen(!open);
|
|
15956
16005
|
}),
|
|
15957
16006
|
hasCustomAnchor,
|
|
@@ -15989,7 +16038,7 @@ var require_Popover_native = __commonJS({
|
|
|
15989
16038
|
__scopePopover,
|
|
15990
16039
|
...props
|
|
15991
16040
|
}) => {
|
|
15992
|
-
let context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0,
|
|
16041
|
+
let context = usePopoverContext(__scopePopover), showSheet = useShowPopoverSheet(context), breakpointActive = context.breakpointActive, getShowSheet = (0, import_core12.useGet)(showSheet);
|
|
15993
16042
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
15994
16043
|
import_sheet.SheetController,
|
|
15995
16044
|
{
|
|
@@ -16002,7 +16051,7 @@ var require_Popover_native = __commonJS({
|
|
|
16002
16051
|
}
|
|
16003
16052
|
);
|
|
16004
16053
|
}, useSheetBreakpointActive = (breakpoint) => {
|
|
16005
|
-
let media = (0,
|
|
16054
|
+
let media = (0, import_core12.useMedia)();
|
|
16006
16055
|
return typeof breakpoint == "boolean" || !breakpoint ? !!breakpoint : media[breakpoint];
|
|
16007
16056
|
}, useShowPopoverSheet = (context) => {
|
|
16008
16057
|
let breakpointActive = useSheetBreakpointActive(context.sheetBreakpoint);
|
|
@@ -16012,7 +16061,7 @@ var require_Popover_native = __commonJS({
|
|
|
16012
16061
|
});
|
|
16013
16062
|
|
|
16014
16063
|
// ../popover/dist/cjs/index.native.js
|
|
16015
|
-
var
|
|
16064
|
+
var require_index_native57 = __commonJS({
|
|
16016
16065
|
"../popover/dist/cjs/index.native.js"(exports2, module2) {
|
|
16017
16066
|
"use strict";
|
|
16018
16067
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -16055,7 +16104,7 @@ var require_Progress_native = __commonJS({
|
|
|
16055
16104
|
createProgressScope: () => createProgressScope
|
|
16056
16105
|
});
|
|
16057
16106
|
module2.exports = __toCommonJS2(Progress_exports);
|
|
16058
|
-
var
|
|
16107
|
+
var import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_stacks3 = require_index_native20(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16059
16108
|
name: INDICATOR_NAME,
|
|
16060
16109
|
variants: {
|
|
16061
16110
|
unstyled: {
|
|
@@ -16103,7 +16152,7 @@ var require_Progress_native = __commonJS({
|
|
|
16103
16152
|
function isValidValueNumber(value, max2) {
|
|
16104
16153
|
return isNumber(value) && !Number.isNaN(value) && value <= max2 && value >= 0;
|
|
16105
16154
|
}
|
|
16106
|
-
var DEFAULT_MAX = 100, ProgressFrame = (0,
|
|
16155
|
+
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16107
16156
|
name: "Progress",
|
|
16108
16157
|
variants: {
|
|
16109
16158
|
unstyled: {
|
|
@@ -16115,10 +16164,10 @@ var require_Progress_native = __commonJS({
|
|
|
16115
16164
|
},
|
|
16116
16165
|
size: {
|
|
16117
16166
|
"...size": (val) => {
|
|
16118
|
-
let size2 = Math.round((0,
|
|
16167
|
+
let size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.25);
|
|
16119
16168
|
return {
|
|
16120
16169
|
height: size2,
|
|
16121
|
-
minWidth: (0,
|
|
16170
|
+
minWidth: (0, import_core12.getVariableValue)(size2) * 20,
|
|
16122
16171
|
width: "100%"
|
|
16123
16172
|
};
|
|
16124
16173
|
}
|
|
@@ -16169,7 +16218,7 @@ var require_Progress_native = __commonJS({
|
|
|
16169
16218
|
});
|
|
16170
16219
|
|
|
16171
16220
|
// ../progress/dist/cjs/index.native.js
|
|
16172
|
-
var
|
|
16221
|
+
var require_index_native58 = __commonJS({
|
|
16173
16222
|
"../progress/dist/cjs/index.native.js"(exports2, module2) {
|
|
16174
16223
|
"use strict";
|
|
16175
16224
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -16208,12 +16257,12 @@ var require_RovingFocusGroup_native = __commonJS({
|
|
|
16208
16257
|
createRovingFocusGroupScope: () => createRovingFocusGroupScope
|
|
16209
16258
|
});
|
|
16210
16259
|
module2.exports = __toCommonJS2(RovingFocusGroup_native_exports);
|
|
16211
|
-
var
|
|
16212
|
-
({ children, ...props }, _ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
16260
|
+
var import_core12 = require_index_native16(), import_helpers = require_index_native7(), import_react2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), ITEM_NAME = "RovingFocusGroupItem", RovingFocusGroupItem = import_react2.default.forwardRef(
|
|
16261
|
+
({ children, ...props }, _ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, { ...props, children })
|
|
16213
16262
|
);
|
|
16214
16263
|
RovingFocusGroupItem.displayName = ITEM_NAME;
|
|
16215
16264
|
var GROUP_NAME = "RovingFocusGroup", RovingFocusGroup = (0, import_helpers.withStaticProperties)(
|
|
16216
|
-
import_react2.default.forwardRef(({ children, ...props }, _ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
16265
|
+
import_react2.default.forwardRef(({ children, ...props }, _ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Stack, { ...props, children })),
|
|
16217
16266
|
{
|
|
16218
16267
|
Item: RovingFocusGroupItem
|
|
16219
16268
|
}
|
|
@@ -16224,7 +16273,7 @@ var require_RovingFocusGroup_native = __commonJS({
|
|
|
16224
16273
|
});
|
|
16225
16274
|
|
|
16226
16275
|
// ../roving-focus/dist/cjs/index.native.js
|
|
16227
|
-
var
|
|
16276
|
+
var require_index_native59 = __commonJS({
|
|
16228
16277
|
"../roving-focus/dist/cjs/index.native.js"(exports2, module2) {
|
|
16229
16278
|
"use strict";
|
|
16230
16279
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -16263,7 +16312,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
16263
16312
|
createRadioGroupScope: () => createRadioGroupScope
|
|
16264
16313
|
});
|
|
16265
16314
|
module2.exports = __toCommonJS2(RadioGroup_exports);
|
|
16266
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
16315
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_create_context = require_index_native26(), import_focusable2 = require_index_native44(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_label = require_index_native45(), import_roving_focus = require_index_native59(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_previous = require_index_native46(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), RADIO_GROUP_NAME = "RadioGroup", ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], [createRadioGroupContext, createRadioGroupScope] = (0, import_create_context.createContextScope)(RADIO_GROUP_NAME), [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME), getState = (checked) => checked ? "checked" : "unchecked", RADIO_GROUP_INDICATOR_NAME = "RadioGroupIndicator", RadioIndicatorFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16267
16316
|
name: RADIO_GROUP_INDICATOR_NAME,
|
|
16268
16317
|
variants: {
|
|
16269
16318
|
unstyled: {
|
|
@@ -16299,7 +16348,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
16299
16348
|
)
|
|
16300
16349
|
);
|
|
16301
16350
|
RadioIndicator.displayName = RADIO_GROUP_INDICATOR_NAME;
|
|
16302
|
-
var RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadioGroupItemContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroupItemFrame = (0,
|
|
16351
|
+
var RADIO_GROUP_ITEM_NAME = "RadioGroupItem", [RadioGroupItemProvider, useRadioGroupItemContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroupItemFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16303
16352
|
name: RADIO_GROUP_ITEM_NAME,
|
|
16304
16353
|
tag: "button",
|
|
16305
16354
|
variants: {
|
|
@@ -16351,7 +16400,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
16351
16400
|
size: {
|
|
16352
16401
|
"...size": (value, { props }) => {
|
|
16353
16402
|
let size2 = Math.floor(
|
|
16354
|
-
(0,
|
|
16403
|
+
(0, import_core12.getVariableValue)((0, import_get_token2.getSize)(value)) * (props.scaleSize ?? 0.5)
|
|
16355
16404
|
);
|
|
16356
16405
|
return {
|
|
16357
16406
|
width: size2,
|
|
@@ -16510,7 +16559,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
16510
16559
|
}
|
|
16511
16560
|
}
|
|
16512
16561
|
);
|
|
16513
|
-
}, RadioGroupFrame = (0,
|
|
16562
|
+
}, RadioGroupFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
16514
16563
|
name: RADIO_GROUP_NAME,
|
|
16515
16564
|
variants: {
|
|
16516
16565
|
orientation: {
|
|
@@ -16590,7 +16639,7 @@ var require_RadioGroup_native = __commonJS({
|
|
|
16590
16639
|
});
|
|
16591
16640
|
|
|
16592
16641
|
// ../radio-group/dist/cjs/index.native.js
|
|
16593
|
-
var
|
|
16642
|
+
var require_index_native60 = __commonJS({
|
|
16594
16643
|
"../radio-group/dist/cjs/index.native.js"(exports2, module2) {
|
|
16595
16644
|
"use strict";
|
|
16596
16645
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -16621,7 +16670,7 @@ var require_Separator_native = __commonJS({
|
|
|
16621
16670
|
Separator: () => Separator
|
|
16622
16671
|
});
|
|
16623
16672
|
module2.exports = __toCommonJS2(Separator_exports);
|
|
16624
|
-
var import_constants4 = require_index_native6(),
|
|
16673
|
+
var import_constants4 = require_index_native6(), import_core12 = require_index_native16(), Separator = (0, import_core12.styled)(import_core12.Stack, {
|
|
16625
16674
|
name: "Separator",
|
|
16626
16675
|
borderColor: "$borderColor",
|
|
16627
16676
|
flexShrink: 0,
|
|
@@ -16653,7 +16702,7 @@ var require_Separator_native = __commonJS({
|
|
|
16653
16702
|
});
|
|
16654
16703
|
|
|
16655
16704
|
// ../separator/dist/cjs/index.native.js
|
|
16656
|
-
var
|
|
16705
|
+
var require_index_native61 = __commonJS({
|
|
16657
16706
|
"../separator/dist/cjs/index.native.js"(exports2, module2) {
|
|
16658
16707
|
"use strict";
|
|
16659
16708
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -16668,7 +16717,7 @@ var require_index_native60 = __commonJS({
|
|
|
16668
16717
|
});
|
|
16669
16718
|
|
|
16670
16719
|
// ../use-debounce/dist/cjs/index.native.js
|
|
16671
|
-
var
|
|
16720
|
+
var require_index_native62 = __commonJS({
|
|
16672
16721
|
"../use-debounce/dist/cjs/index.native.js"(exports2, module2) {
|
|
16673
16722
|
"use strict";
|
|
16674
16723
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -16851,7 +16900,7 @@ var require_SelectItem_native = __commonJS({
|
|
|
16851
16900
|
useSelectItemContext: () => useSelectItemContext
|
|
16852
16901
|
});
|
|
16853
16902
|
module2.exports = __toCommonJS2(SelectItem_exports);
|
|
16854
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_list_item =
|
|
16903
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_list_item = require_index_native53(), React2 = __toESM2(require("react")), import_context = require_context_native(), import_jsx_runtime6 = require("react/jsx-runtime"), ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = (0, import_context.createSelectContext)(ITEM_NAME), SelectItem = import_list_item.ListItemFrame.styleable(
|
|
16855
16904
|
function(props, forwardedRef) {
|
|
16856
16905
|
let {
|
|
16857
16906
|
__scopeSelect,
|
|
@@ -16992,7 +17041,7 @@ var require_SelectItemText_native = __commonJS({
|
|
|
16992
17041
|
SelectItemTextFrame: () => SelectItemTextFrame
|
|
16993
17042
|
});
|
|
16994
17043
|
module2.exports = __toCommonJS2(SelectItemText_exports);
|
|
16995
|
-
var import_compose_refs = require_index_native10(),
|
|
17044
|
+
var import_compose_refs = require_index_native10(), import_core12 = require_index_native16(), import_text2 = require_index_native22(), React2 = __toESM2(require("react")), import_context = require_context_native(), import_SelectItem = require_SelectItem_native(), import_jsx_runtime6 = require("react/jsx-runtime"), ITEM_TEXT_NAME = "SelectItemText", SelectItemTextFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
16996
17045
|
name: ITEM_TEXT_NAME,
|
|
16997
17046
|
variants: {
|
|
16998
17047
|
unstyled: {
|
|
@@ -17072,7 +17121,7 @@ var require_SelectTrigger_native = __commonJS({
|
|
|
17072
17121
|
SelectTrigger: () => SelectTrigger
|
|
17073
17122
|
});
|
|
17074
17123
|
module2.exports = __toCommonJS2(SelectTrigger_exports);
|
|
17075
|
-
var import_compose_refs = require_index_native10(), import_list_item =
|
|
17124
|
+
var import_compose_refs = require_index_native10(), import_list_item = require_index_native53(), React2 = __toESM2(require("react")), import_context = require_context_native(), import_jsx_runtime6 = require("react/jsx-runtime"), TRIGGER_NAME = "SelectTrigger", SelectTrigger = React2.forwardRef(
|
|
17076
17125
|
function(props, forwardedRef) {
|
|
17077
17126
|
var _a;
|
|
17078
17127
|
let { __scopeSelect, disabled = !1, unstyled = !1, ...triggerProps } = props, context = (0, import_context.useSelectContext)(TRIGGER_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(TRIGGER_NAME, __scopeSelect), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
@@ -17139,9 +17188,9 @@ var require_SelectViewport_native = __commonJS({
|
|
|
17139
17188
|
SelectViewport: () => SelectViewport
|
|
17140
17189
|
});
|
|
17141
17190
|
module2.exports = __toCommonJS2(SelectViewport_native_exports);
|
|
17142
|
-
var import_adapt = require_index_native25(),
|
|
17143
|
-
let { __scopeSelect, children } = props, context = (0, import_context.useSelectContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), themeName = (0,
|
|
17144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.scopeKey}SheetContents`, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17191
|
+
var import_adapt = require_index_native25(), import_core12 = require_index_native16(), import_portal2 = require_index_native30(), React2 = __toESM2(require("react")), import_constants4 = require_constants_native4(), import_context = require_context_native(), import_jsx_runtime6 = require("react/jsx-runtime"), SelectViewport = (props) => {
|
|
17192
|
+
let { __scopeSelect, children } = props, context = (0, import_context.useSelectContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), itemParentContext = (0, import_context.useSelectItemParentContext)(import_constants4.VIEWPORT_NAME, __scopeSelect), themeName = (0, import_core12.useThemeName)(), adaptContext = React2.useContext(import_adapt.AdaptParentContext);
|
|
17193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.PortalItem, { hostName: `${context.scopeKey}SheetContents`, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.Theme, { name: themeName, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17145
17194
|
import_context.ForwardSelectContext,
|
|
17146
17195
|
{
|
|
17147
17196
|
__scopeSelect,
|
|
@@ -17173,8 +17222,8 @@ var require_useSelectBreakpointActive_native = __commonJS({
|
|
|
17173
17222
|
useShowSelectSheet: () => useShowSelectSheet
|
|
17174
17223
|
});
|
|
17175
17224
|
module2.exports = __toCommonJS2(useSelectBreakpointActive_exports);
|
|
17176
|
-
var
|
|
17177
|
-
let media = (0,
|
|
17225
|
+
var import_core12 = require_index_native16(), useSelectBreakpointActive = (sheetBreakpoint) => {
|
|
17226
|
+
let media = (0, import_core12.useMedia)();
|
|
17178
17227
|
return sheetBreakpoint ? sheetBreakpoint === !0 ? !0 : sheetBreakpoint ? media[sheetBreakpoint] : !1 : !1;
|
|
17179
17228
|
}, useShowSelectSheet = (context) => {
|
|
17180
17229
|
let breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint);
|
|
@@ -17210,7 +17259,7 @@ var require_Select_native = __commonJS({
|
|
|
17210
17259
|
SelectSeparator: () => SelectSeparator
|
|
17211
17260
|
});
|
|
17212
17261
|
module2.exports = __toCommonJS2(Select_exports);
|
|
17213
|
-
var import_adapt = require_index_native25(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
17262
|
+
var import_adapt = require_index_native25(), import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_list_item = require_index_native53(), import_portal2 = require_index_native30(), import_separator = require_index_native61(), import_sheet = require_index_native34(), import_stacks3 = require_index_native20(), import_text2 = require_index_native22(), import_use_controllable_state = require_index_native9(), React2 = __toESM2(require("react")), import_use_debounce = require_index_native62(), import_constants22 = require_constants_native4(), import_context = require_context_native(), import_SelectContent = require_SelectContent_native(), import_SelectImpl = require_SelectImpl_native(), import_SelectItem = require_SelectItem_native(), import_SelectItemText = require_SelectItemText_native(), import_SelectScrollButton = require_SelectScrollButton_native(), import_SelectTrigger = require_SelectTrigger_native(), import_SelectViewport = require_SelectViewport_native(), import_useSelectBreakpointActive = require_useSelectBreakpointActive_native(), import_jsx_runtime6 = require("react/jsx-runtime"), VALUE_NAME = "SelectValue", SelectValueFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
17214
17263
|
name: VALUE_NAME,
|
|
17215
17264
|
userSelect: "none"
|
|
17216
17265
|
}), SelectValue = SelectValueFrame.styleable(
|
|
@@ -17250,12 +17299,12 @@ var require_Select_native = __commonJS({
|
|
|
17250
17299
|
return child;
|
|
17251
17300
|
});
|
|
17252
17301
|
}
|
|
17253
|
-
var SelectIcon = (0,
|
|
17302
|
+
var SelectIcon = (0, import_core12.styled)(import_stacks3.XStack, {
|
|
17254
17303
|
name: "SelectIcon",
|
|
17255
17304
|
// @ts-ignore
|
|
17256
17305
|
"aria-hidden": !0,
|
|
17257
17306
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_text2.Paragraph, { children: "\u25BC" })
|
|
17258
|
-
}), ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicatorFrame = (0,
|
|
17307
|
+
}), ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicatorFrame = (0, import_core12.styled)(import_stacks3.XStack, {
|
|
17259
17308
|
name: import_SelectItemText.ITEM_TEXT_NAME
|
|
17260
17309
|
}), SelectItemIndicator = React2.forwardRef(
|
|
17261
17310
|
(props, forwardedRef) => {
|
|
@@ -17264,17 +17313,17 @@ var require_Select_native = __commonJS({
|
|
|
17264
17313
|
}
|
|
17265
17314
|
);
|
|
17266
17315
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
17267
|
-
var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupContext] = (0, import_context.createSelectContext)(GROUP_NAME), SelectGroupFrame = (0,
|
|
17316
|
+
var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupContext] = (0, import_context.createSelectContext)(GROUP_NAME), SelectGroupFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
17268
17317
|
name: GROUP_NAME,
|
|
17269
17318
|
width: "100%"
|
|
17270
|
-
}), NativeSelectTextFrame = (0,
|
|
17319
|
+
}), NativeSelectTextFrame = (0, import_core12.styled)(import_text2.SizableText, {
|
|
17271
17320
|
tag: "select",
|
|
17272
17321
|
backgroundColor: "$background",
|
|
17273
17322
|
borderColor: "$borderColor",
|
|
17274
17323
|
hoverStyle: {
|
|
17275
17324
|
backgroundColor: "$backgroundHover"
|
|
17276
17325
|
}
|
|
17277
|
-
}), NativeSelectFrame = (0,
|
|
17326
|
+
}), NativeSelectFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
17278
17327
|
name: "NativeSelect",
|
|
17279
17328
|
bordered: !0,
|
|
17280
17329
|
userSelect: "none",
|
|
@@ -17283,7 +17332,7 @@ var require_Select_native = __commonJS({
|
|
|
17283
17332
|
variants: {
|
|
17284
17333
|
size: {
|
|
17285
17334
|
"...size": (val, extras) => {
|
|
17286
|
-
let { tokens } = extras, paddingHorizontal = (0,
|
|
17335
|
+
let { tokens } = extras, paddingHorizontal = (0, import_core12.getVariableValue)(tokens.space[val]);
|
|
17287
17336
|
return {
|
|
17288
17337
|
borderRadius: tokens.radius[val] ?? val,
|
|
17289
17338
|
minHeight: tokens.size[val],
|
|
@@ -17350,10 +17399,10 @@ var require_Select_native = __commonJS({
|
|
|
17350
17399
|
}
|
|
17351
17400
|
);
|
|
17352
17401
|
SelectLabel.displayName = LABEL_NAME;
|
|
17353
|
-
var SelectSeparator = (0,
|
|
17402
|
+
var SelectSeparator = (0, import_core12.styled)(import_separator.Separator, {
|
|
17354
17403
|
name: "SelectSeparator"
|
|
17355
17404
|
}), SelectSheetController = (props) => {
|
|
17356
|
-
let context = (0, import_context.useSelectContext)("SelectSheetController", props.__scopeSelect), showSheet = (0, import_useSelectBreakpointActive.useShowSelectSheet)(context), breakpointActive = (0, import_useSelectBreakpointActive.useSelectBreakpointActive)(context.sheetBreakpoint), getShowSheet = (0,
|
|
17405
|
+
let context = (0, import_context.useSelectContext)("SelectSheetController", props.__scopeSelect), showSheet = (0, import_useSelectBreakpointActive.useShowSelectSheet)(context), breakpointActive = (0, import_useSelectBreakpointActive.useSelectBreakpointActive)(context.sheetBreakpoint), getShowSheet = (0, import_core12.useGet)(showSheet);
|
|
17357
17406
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
17358
17407
|
import_sheet.SheetController,
|
|
17359
17408
|
{
|
|
@@ -17425,7 +17474,7 @@ var require_Select_native = __commonJS({
|
|
|
17425
17474
|
onChange: React2.useCallback((val) => {
|
|
17426
17475
|
setValue(val), emitValue(val);
|
|
17427
17476
|
}, []),
|
|
17428
|
-
onActiveChange: (0,
|
|
17477
|
+
onActiveChange: (0, import_core12.useEvent)((...args) => {
|
|
17429
17478
|
onActiveChange == null || onActiveChange(...args);
|
|
17430
17479
|
}),
|
|
17431
17480
|
setSelectedIndex,
|
|
@@ -17503,7 +17552,7 @@ var require_Select_native = __commonJS({
|
|
|
17503
17552
|
});
|
|
17504
17553
|
|
|
17505
17554
|
// ../select/dist/cjs/index.native.js
|
|
17506
|
-
var
|
|
17555
|
+
var require_index_native63 = __commonJS({
|
|
17507
17556
|
"../select/dist/cjs/index.native.js"(exports2, module2) {
|
|
17508
17557
|
"use strict";
|
|
17509
17558
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -17658,7 +17707,7 @@ var require_SliderImpl_native = __commonJS({
|
|
|
17658
17707
|
SliderImpl: () => SliderImpl
|
|
17659
17708
|
});
|
|
17660
17709
|
module2.exports = __toCommonJS2(SliderImpl_exports);
|
|
17661
|
-
var import_constants4 = require_index_native6(),
|
|
17710
|
+
var import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_stacks3 = require_index_native20(), React2 = __toESM2(require("react")), import_constants22 = require_constants_native5(), import_jsx_runtime6 = require("react/jsx-runtime"), SliderFrame2 = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
17662
17711
|
position: "relative",
|
|
17663
17712
|
variants: {
|
|
17664
17713
|
orientation: {
|
|
@@ -17668,7 +17717,7 @@ var require_SliderImpl_native = __commonJS({
|
|
|
17668
17717
|
size: (val, extras) => {
|
|
17669
17718
|
if (!val)
|
|
17670
17719
|
return;
|
|
17671
|
-
let orientation = extras.props.orientation, size2 = Math.round((0,
|
|
17720
|
+
let orientation = extras.props.orientation, size2 = Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) / 6);
|
|
17672
17721
|
return orientation === "horizontal" ? {
|
|
17673
17722
|
height: size2,
|
|
17674
17723
|
borderRadius: size2,
|
|
@@ -17760,7 +17809,7 @@ var require_Slider_native = __commonJS({
|
|
|
17760
17809
|
Track: () => Track
|
|
17761
17810
|
});
|
|
17762
17811
|
module2.exports = __toCommonJS2(Slider_exports);
|
|
17763
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
17812
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_helpers = require_index_native7(), import_helpers2 = require_index_native7(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), React2 = __toESM2(require("react")), import_constants22 = require_constants_native5(), import_helpers3 = require_helpers_native2(), import_SliderImpl = require_SliderImpl_native(), import_jsx_runtime6 = require("react/jsx-runtime"), SliderHorizontal = React2.forwardRef(
|
|
17764
17813
|
(props, forwardedRef) => {
|
|
17765
17814
|
let {
|
|
17766
17815
|
min: min2,
|
|
@@ -17771,7 +17820,7 @@ var require_Slider_native = __commonJS({
|
|
|
17771
17820
|
onStepKeyDown,
|
|
17772
17821
|
onSlideEnd,
|
|
17773
17822
|
...sliderProps
|
|
17774
|
-
} = 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,
|
|
17823
|
+
} = 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_);
|
|
17775
17824
|
function getValueFromPointer(pointerPosition) {
|
|
17776
17825
|
let input = [0, state.size];
|
|
17777
17826
|
return (0, import_helpers3.linearScale)(input, isDirectionLTR ? [min2, max2] : [max2, min2])(pointerPosition);
|
|
@@ -17844,7 +17893,7 @@ var require_Slider_native = __commonJS({
|
|
|
17844
17893
|
onStepKeyDown,
|
|
17845
17894
|
onSlideEnd,
|
|
17846
17895
|
...sliderProps
|
|
17847
|
-
} = props, [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0,
|
|
17896
|
+
} = props, [state, setState_] = React2.useState(() => ({ size: 0, offset: 0 })), setState = (0, import_core12.createShallowSetState)(setState_), sliderRef = React2.useRef(null);
|
|
17848
17897
|
function getValueFromPointer(pointerPosition) {
|
|
17849
17898
|
let input = [0, state.size];
|
|
17850
17899
|
return (0, import_helpers3.linearScale)(input, [max2, min2])(pointerPosition);
|
|
@@ -17895,7 +17944,7 @@ var require_Slider_native = __commonJS({
|
|
|
17895
17944
|
}
|
|
17896
17945
|
);
|
|
17897
17946
|
}
|
|
17898
|
-
), TRACK_NAME = "SliderTrack", SliderTrackFrame = (0,
|
|
17947
|
+
), TRACK_NAME = "SliderTrack", SliderTrackFrame = (0, import_core12.styled)(import_SliderImpl.SliderFrame, {
|
|
17899
17948
|
name: "SliderTrack",
|
|
17900
17949
|
variants: {
|
|
17901
17950
|
unstyled: {
|
|
@@ -17929,7 +17978,7 @@ var require_Slider_native = __commonJS({
|
|
|
17929
17978
|
}
|
|
17930
17979
|
);
|
|
17931
17980
|
SliderTrack.displayName = TRACK_NAME;
|
|
17932
|
-
var RANGE_NAME = "SliderTrackActive", SliderTrackActiveFrame = (0,
|
|
17981
|
+
var RANGE_NAME = "SliderTrackActive", SliderTrackActiveFrame = (0, import_core12.styled)(import_SliderImpl.SliderFrame, {
|
|
17933
17982
|
name: "SliderTrackActive",
|
|
17934
17983
|
backgroundColor: "$background",
|
|
17935
17984
|
position: "absolute"
|
|
@@ -17962,7 +18011,7 @@ var require_Slider_native = __commonJS({
|
|
|
17962
18011
|
);
|
|
17963
18012
|
SliderTrackActive.displayName = RANGE_NAME;
|
|
17964
18013
|
var THUMB_NAME = "SliderThumb", getThumbSize = (val) => {
|
|
17965
|
-
let tokens = (0,
|
|
18014
|
+
let tokens = (0, import_core12.getTokens)(), size2 = typeof val == "number" ? val : (0, import_get_token2.getSize)(tokens.size[val], {
|
|
17966
18015
|
shift: -1
|
|
17967
18016
|
});
|
|
17968
18017
|
return {
|
|
@@ -17971,7 +18020,7 @@ var require_Slider_native = __commonJS({
|
|
|
17971
18020
|
minWidth: size2,
|
|
17972
18021
|
minHeight: size2
|
|
17973
18022
|
};
|
|
17974
|
-
}, SliderThumbFrame = (0,
|
|
18023
|
+
}, SliderThumbFrame = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
17975
18024
|
name: "SliderThumb",
|
|
17976
18025
|
variants: {
|
|
17977
18026
|
size: {
|
|
@@ -17997,7 +18046,7 @@ var require_Slider_native = __commonJS({
|
|
|
17997
18046
|
let { __scopeSlider, index, size: sizeProp, ...thumbProps } = props, context = (0, import_constants22.useSliderContext)(THUMB_NAME, __scopeSlider), orientation = (0, import_constants22.useSliderOrientationContext)(THUMB_NAME, __scopeSlider), [thumb, setThumb] = React2.useState(null), composedRefs = (0, import_compose_refs.useComposedRefs)(
|
|
17998
18047
|
forwardedRef,
|
|
17999
18048
|
(node) => setThumb(node)
|
|
18000
|
-
), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers3.getLabel)(index, context.values.length), sizeIn = sizeProp ?? context.size ?? "$true", [size2, setSize] = React2.useState(() => (0,
|
|
18049
|
+
), value = context.values[index], percent = value === void 0 ? 0 : (0, import_helpers3.convertValueToPercentage)(value, context.min, context.max), label = (0, import_helpers3.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_helpers3.getThumbInBoundsOffset)(size2, percent, orientation.direction) : 0;
|
|
18001
18050
|
React2.useEffect(() => {
|
|
18002
18051
|
if (thumb)
|
|
18003
18052
|
return context.thumbs.set(thumb, index), () => {
|
|
@@ -18163,7 +18212,7 @@ var require_Slider_native = __commonJS({
|
|
|
18163
18212
|
});
|
|
18164
18213
|
|
|
18165
18214
|
// ../slider/dist/cjs/index.native.js
|
|
18166
|
-
var
|
|
18215
|
+
var require_index_native64 = __commonJS({
|
|
18167
18216
|
"../slider/dist/cjs/index.native.js"(exports2, module2) {
|
|
18168
18217
|
"use strict";
|
|
18169
18218
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -18201,7 +18250,7 @@ var require_SwitchContext_native = __commonJS({
|
|
|
18201
18250
|
SwitchContext: () => SwitchContext
|
|
18202
18251
|
});
|
|
18203
18252
|
module2.exports = __toCommonJS2(SwitchContext_exports);
|
|
18204
|
-
var
|
|
18253
|
+
var import_core12 = require_index_native16(), SwitchContext = (0, import_core12.createStyledContext)({
|
|
18205
18254
|
checked: !1,
|
|
18206
18255
|
disabled: !1,
|
|
18207
18256
|
size: void 0,
|
|
@@ -18229,7 +18278,7 @@ var require_Switch_native = __commonJS({
|
|
|
18229
18278
|
SwitchThumb: () => SwitchThumb
|
|
18230
18279
|
});
|
|
18231
18280
|
module2.exports = __toCommonJS2(Switch_exports);
|
|
18232
|
-
var
|
|
18281
|
+
var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), import_SwitchContext = require_SwitchContext_native(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
18233
18282
|
name: "SwitchThumb",
|
|
18234
18283
|
context: import_SwitchContext.SwitchContext,
|
|
18235
18284
|
variants: {
|
|
@@ -18256,7 +18305,7 @@ var require_Switch_native = __commonJS({
|
|
|
18256
18305
|
defaultVariants: {
|
|
18257
18306
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
18258
18307
|
}
|
|
18259
|
-
}), getSwitchHeight = (val) => Math.round((0,
|
|
18308
|
+
}), getSwitchHeight = (val) => Math.round((0, import_core12.getVariableValue)((0, import_get_token2.getSize)(val)) * 0.65), getSwitchWidth = (val) => getSwitchHeight(val) * 2, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
18260
18309
|
name: "Switch",
|
|
18261
18310
|
context: import_SwitchContext.SwitchContext,
|
|
18262
18311
|
variants: {
|
|
@@ -18322,7 +18371,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
18322
18371
|
createSwitch: () => createSwitch
|
|
18323
18372
|
});
|
|
18324
18373
|
module2.exports = __toCommonJS2(createSwitch_exports);
|
|
18325
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(),
|
|
18374
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_core12 = require_index_native16(), import_focusable2 = require_index_native44(), import_helpers = require_index_native7(), import_label = require_index_native45(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), 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 = (
|
|
18326
18375
|
// @ts-ignore
|
|
18327
18376
|
require("react/jsx-runtime")
|
|
18328
18377
|
);
|
|
@@ -18373,7 +18422,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
18373
18422
|
);
|
|
18374
18423
|
}), SwitchComponent = Frame.styleable(
|
|
18375
18424
|
function(propsIn, forwardedRef) {
|
|
18376
|
-
let styledContext = React2.useContext(import_SwitchContext.SwitchContext), props = (0,
|
|
18425
|
+
let styledContext = React2.useContext(import_SwitchContext.SwitchContext), props = (0, import_core12.useProps)(propsIn, {
|
|
18377
18426
|
noNormalize: !0,
|
|
18378
18427
|
noExpand: !0,
|
|
18379
18428
|
resolveValues: "none",
|
|
@@ -18519,7 +18568,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
18519
18568
|
});
|
|
18520
18569
|
|
|
18521
18570
|
// ../switch/dist/cjs/index.native.js
|
|
18522
|
-
var
|
|
18571
|
+
var require_index_native65 = __commonJS({
|
|
18523
18572
|
"../switch/dist/cjs/index.native.js"(exports2, module2) {
|
|
18524
18573
|
"use strict";
|
|
18525
18574
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -18570,7 +18619,7 @@ var require_Tabs_native = __commonJS({
|
|
|
18570
18619
|
Tabs: () => Tabs
|
|
18571
18620
|
});
|
|
18572
18621
|
module2.exports = __toCommonJS2(Tabs_exports);
|
|
18573
|
-
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_get_button_sized2 = require_index_native19(), import_group = require_index_native50(), import_helpers = require_index_native7(), import_roving_focus =
|
|
18622
|
+
var import_compose_refs = require_index_native10(), import_constants4 = require_index_native6(), import_get_button_sized2 = require_index_native19(), import_group = require_index_native50(), import_helpers = require_index_native7(), import_roving_focus = require_index_native59(), import_stacks3 = require_index_native20(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), React2 = __toESM2(require("react")), import_jsx_runtime6 = require("react/jsx-runtime"), TABS_CONTEXT = "TabsContext", TAB_LIST_NAME = "TabsList", TabsListFrame = (0, import_web.styled)(import_group.Group, {
|
|
18574
18623
|
name: TAB_LIST_NAME
|
|
18575
18624
|
}), TabsList = TabsListFrame.extractable(
|
|
18576
18625
|
React2.forwardRef(
|
|
@@ -18820,7 +18869,7 @@ var require_Tabs_native = __commonJS({
|
|
|
18820
18869
|
});
|
|
18821
18870
|
|
|
18822
18871
|
// ../tabs/dist/cjs/index.native.js
|
|
18823
|
-
var
|
|
18872
|
+
var require_index_native66 = __commonJS({
|
|
18824
18873
|
"../tabs/dist/cjs/index.native.js"(exports2, module2) {
|
|
18825
18874
|
"use strict";
|
|
18826
18875
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -19014,7 +19063,7 @@ var require_replaceTheme_native = __commonJS({
|
|
|
19014
19063
|
});
|
|
19015
19064
|
|
|
19016
19065
|
// ../theme/dist/cjs/index.native.js
|
|
19017
|
-
var
|
|
19066
|
+
var require_index_native67 = __commonJS({
|
|
19018
19067
|
"../theme/dist/cjs/index.native.js"(exports2, module2) {
|
|
19019
19068
|
"use strict";
|
|
19020
19069
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -19175,7 +19224,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
19175
19224
|
ToggleGroup: () => ToggleGroup
|
|
19176
19225
|
});
|
|
19177
19226
|
module2.exports = __toCommonJS2(ToggleGroup_exports);
|
|
19178
|
-
var import_constants4 = require_index_native6(), import_focusable2 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native18(), import_group = require_index_native50(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_roving_focus =
|
|
19227
|
+
var import_constants4 = require_index_native6(), import_focusable2 = require_index_native44(), import_font_size = require_index_native40(), import_get_token2 = require_index_native18(), import_group = require_index_native50(), import_helpers = require_index_native7(), import_helpers_tamagui = require_index_native41(), import_roving_focus = require_index_native59(), import_use_controllable_state = require_index_native9(), import_use_direction = require_index_native23(), import_web = require_index_native13(), 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(
|
|
19179
19228
|
import_react2.default.forwardRef(
|
|
19180
19229
|
(props, forwardedRef) => {
|
|
19181
19230
|
let valueContext = useToggleGroupValueContext(props.__scopeToggleGroup), context = useToggleGroupContext(props.__scopeToggleGroup), pressed = valueContext == null ? void 0 : valueContext.value.includes(props.value), disabled = context.disabled || props.disabled || !1, groupItemProps = (0, import_group.useGroupItem)({ disabled }), size2 = props.size ?? context.size, sizeProps = props.unstyled ? {} : {
|
|
@@ -19401,7 +19450,7 @@ var require_ToggleGroup_native = __commonJS({
|
|
|
19401
19450
|
});
|
|
19402
19451
|
|
|
19403
19452
|
// ../toggle-group/dist/cjs/index.native.js
|
|
19404
|
-
var
|
|
19453
|
+
var require_index_native68 = __commonJS({
|
|
19405
19454
|
"../toggle-group/dist/cjs/index.native.js"(exports2, module2) {
|
|
19406
19455
|
"use strict";
|
|
19407
19456
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -19464,7 +19513,7 @@ var require_TooltipSimple_native = __commonJS({
|
|
|
19464
19513
|
});
|
|
19465
19514
|
|
|
19466
19515
|
// ../tooltip/dist/cjs/index.native.js
|
|
19467
|
-
var
|
|
19516
|
+
var require_index_native69 = __commonJS({
|
|
19468
19517
|
"../tooltip/dist/cjs/index.native.js"(exports2, module2) {
|
|
19469
19518
|
"use strict";
|
|
19470
19519
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -19480,7 +19529,7 @@ var require_index_native68 = __commonJS({
|
|
|
19480
19529
|
});
|
|
19481
19530
|
|
|
19482
19531
|
// ../use-window-dimensions/dist/cjs/index.native.js
|
|
19483
|
-
var
|
|
19532
|
+
var require_index_native70 = __commonJS({
|
|
19484
19533
|
"../use-window-dimensions/dist/cjs/index.native.js"(exports2, module2) {
|
|
19485
19534
|
"use strict";
|
|
19486
19535
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = (target, all) => {
|
|
@@ -19576,7 +19625,7 @@ var require_VisuallyHidden_native = __commonJS({
|
|
|
19576
19625
|
});
|
|
19577
19626
|
|
|
19578
19627
|
// ../visually-hidden/dist/cjs/index.native.js
|
|
19579
|
-
var
|
|
19628
|
+
var require_index_native71 = __commonJS({
|
|
19580
19629
|
"../visually-hidden/dist/cjs/index.native.js"(exports2, module2) {
|
|
19581
19630
|
"use strict";
|
|
19582
19631
|
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __copyProps2 = (to, from, except, desc) => {
|
|
@@ -19594,83 +19643,76 @@ var require_index_native70 = __commonJS({
|
|
|
19594
19643
|
var src_exports = {};
|
|
19595
19644
|
__export(src_exports, {
|
|
19596
19645
|
Anchor: () => Anchor,
|
|
19597
|
-
|
|
19598
|
-
|
|
19599
|
-
ComponentContext: () => import_core12.ComponentContext,
|
|
19600
|
-
Configuration: () => import_core12.Configuration,
|
|
19646
|
+
ComponentContext: () => import_core11.ComponentContext,
|
|
19647
|
+
Configuration: () => import_core11.Configuration,
|
|
19601
19648
|
EnsureFlexed: () => EnsureFlexed,
|
|
19602
19649
|
Fieldset: () => Fieldset,
|
|
19603
|
-
FontLanguage: () =>
|
|
19604
|
-
Footer: () => Footer,
|
|
19605
|
-
Header: () => Header,
|
|
19650
|
+
FontLanguage: () => import_core11.FontLanguage,
|
|
19606
19651
|
Input: () => Input,
|
|
19607
19652
|
InputFrame: () => InputFrame,
|
|
19608
|
-
|
|
19609
|
-
Nav: () => Nav,
|
|
19610
|
-
Section: () => Section,
|
|
19611
|
-
Spacer: () => import_core12.Spacer,
|
|
19653
|
+
Spacer: () => import_core11.Spacer,
|
|
19612
19654
|
Spinner: () => Spinner,
|
|
19613
|
-
Stack: () =>
|
|
19655
|
+
Stack: () => import_core11.Stack,
|
|
19614
19656
|
TamaguiProvider: () => TamaguiProvider,
|
|
19615
19657
|
Text: () => Text2,
|
|
19616
19658
|
TextArea: () => TextArea,
|
|
19617
19659
|
TextAreaFrame: () => TextAreaFrame,
|
|
19618
|
-
Theme: () =>
|
|
19619
|
-
Unspaced: () =>
|
|
19620
|
-
View: () =>
|
|
19621
|
-
createComponent: () =>
|
|
19622
|
-
createFont: () =>
|
|
19623
|
-
createShorthands: () =>
|
|
19624
|
-
createStyledContext: () =>
|
|
19660
|
+
Theme: () => import_core11.Theme,
|
|
19661
|
+
Unspaced: () => import_core11.Unspaced,
|
|
19662
|
+
View: () => import_core11.View,
|
|
19663
|
+
createComponent: () => import_core11.createComponent,
|
|
19664
|
+
createFont: () => import_core11.createFont,
|
|
19665
|
+
createShorthands: () => import_core11.createShorthands,
|
|
19666
|
+
createStyledContext: () => import_core11.createStyledContext,
|
|
19625
19667
|
createTamagui: () => createTamagui,
|
|
19626
|
-
createTheme: () =>
|
|
19627
|
-
createTokens: () =>
|
|
19628
|
-
createVariable: () =>
|
|
19668
|
+
createTheme: () => import_core11.createTheme,
|
|
19669
|
+
createTokens: () => import_core11.createTokens,
|
|
19670
|
+
createVariable: () => import_core11.createVariable,
|
|
19629
19671
|
defaultStyles: () => defaultStyles,
|
|
19630
|
-
getConfig: () =>
|
|
19631
|
-
getMedia: () =>
|
|
19632
|
-
getStylesAtomic: () =>
|
|
19633
|
-
getThemes: () =>
|
|
19634
|
-
getToken: () =>
|
|
19635
|
-
getTokenValue: () =>
|
|
19636
|
-
getTokens: () =>
|
|
19637
|
-
getVariable: () =>
|
|
19638
|
-
getVariableName: () =>
|
|
19639
|
-
getVariableValue: () =>
|
|
19640
|
-
insertFont: () =>
|
|
19641
|
-
isChrome: () =>
|
|
19642
|
-
isClient: () =>
|
|
19643
|
-
isServer: () =>
|
|
19644
|
-
isTamaguiComponent: () =>
|
|
19645
|
-
isTamaguiElement: () =>
|
|
19646
|
-
isTouchable: () =>
|
|
19647
|
-
isVariable: () =>
|
|
19648
|
-
isWeb: () =>
|
|
19649
|
-
isWebTouchable: () =>
|
|
19650
|
-
matchMedia: () =>
|
|
19651
|
-
mediaObjectToString: () =>
|
|
19652
|
-
mediaQueryConfig: () =>
|
|
19653
|
-
mediaState: () =>
|
|
19654
|
-
setupDev: () =>
|
|
19655
|
-
setupReactNative: () =>
|
|
19656
|
-
spacedChildren: () =>
|
|
19657
|
-
styled: () =>
|
|
19658
|
-
themeable: () =>
|
|
19659
|
-
useConfiguration: () =>
|
|
19660
|
-
useDidFinishSSR: () =>
|
|
19661
|
-
useEvent: () =>
|
|
19662
|
-
useGet: () =>
|
|
19672
|
+
getConfig: () => import_core11.getConfig,
|
|
19673
|
+
getMedia: () => import_core11.getMedia,
|
|
19674
|
+
getStylesAtomic: () => import_core11.getStylesAtomic,
|
|
19675
|
+
getThemes: () => import_core11.getThemes,
|
|
19676
|
+
getToken: () => import_core11.getToken,
|
|
19677
|
+
getTokenValue: () => import_core11.getTokenValue,
|
|
19678
|
+
getTokens: () => import_core11.getTokens,
|
|
19679
|
+
getVariable: () => import_core11.getVariable,
|
|
19680
|
+
getVariableName: () => import_core11.getVariableName,
|
|
19681
|
+
getVariableValue: () => import_core11.getVariableValue,
|
|
19682
|
+
insertFont: () => import_core11.insertFont,
|
|
19683
|
+
isChrome: () => import_core11.isChrome,
|
|
19684
|
+
isClient: () => import_core11.isClient,
|
|
19685
|
+
isServer: () => import_core11.isServer,
|
|
19686
|
+
isTamaguiComponent: () => import_core11.isTamaguiComponent,
|
|
19687
|
+
isTamaguiElement: () => import_core11.isTamaguiElement,
|
|
19688
|
+
isTouchable: () => import_core11.isTouchable,
|
|
19689
|
+
isVariable: () => import_core11.isVariable,
|
|
19690
|
+
isWeb: () => import_core11.isWeb,
|
|
19691
|
+
isWebTouchable: () => import_core11.isWebTouchable,
|
|
19692
|
+
matchMedia: () => import_core11.matchMedia,
|
|
19693
|
+
mediaObjectToString: () => import_core11.mediaObjectToString,
|
|
19694
|
+
mediaQueryConfig: () => import_core11.mediaQueryConfig,
|
|
19695
|
+
mediaState: () => import_core11.mediaState,
|
|
19696
|
+
setupDev: () => import_core11.setupDev,
|
|
19697
|
+
setupReactNative: () => import_core11.setupReactNative,
|
|
19698
|
+
spacedChildren: () => import_core11.spacedChildren,
|
|
19699
|
+
styled: () => import_core11.styled,
|
|
19700
|
+
themeable: () => import_core11.themeable,
|
|
19701
|
+
useConfiguration: () => import_core11.useConfiguration,
|
|
19702
|
+
useDidFinishSSR: () => import_core11.useDidFinishSSR,
|
|
19703
|
+
useEvent: () => import_core11.useEvent,
|
|
19704
|
+
useGet: () => import_core11.useGet,
|
|
19663
19705
|
useInputProps: () => useInputProps,
|
|
19664
|
-
useIsTouchDevice: () =>
|
|
19665
|
-
useIsomorphicLayoutEffect: () =>
|
|
19666
|
-
useMedia: () =>
|
|
19667
|
-
useProps: () =>
|
|
19668
|
-
usePropsAndStyle: () =>
|
|
19669
|
-
useStyle: () =>
|
|
19670
|
-
useTheme: () =>
|
|
19671
|
-
useThemeName: () =>
|
|
19672
|
-
variableToString: () =>
|
|
19673
|
-
withStaticProperties: () =>
|
|
19706
|
+
useIsTouchDevice: () => import_core11.useIsTouchDevice,
|
|
19707
|
+
useIsomorphicLayoutEffect: () => import_core11.useIsomorphicLayoutEffect,
|
|
19708
|
+
useMedia: () => import_core11.useMedia,
|
|
19709
|
+
useProps: () => import_core11.useProps,
|
|
19710
|
+
usePropsAndStyle: () => import_core11.usePropsAndStyle,
|
|
19711
|
+
useStyle: () => import_core11.useStyle,
|
|
19712
|
+
useTheme: () => import_core11.useTheme,
|
|
19713
|
+
useThemeName: () => import_core11.useThemeName,
|
|
19714
|
+
variableToString: () => import_core11.variableToString,
|
|
19715
|
+
withStaticProperties: () => import_core11.withStaticProperties
|
|
19674
19716
|
});
|
|
19675
19717
|
module.exports = __toCommonJS(src_exports);
|
|
19676
19718
|
__reExport(src_exports, __toESM(require_index_native24()), module.exports);
|
|
@@ -19688,33 +19730,34 @@ __reExport(src_exports, __toESM(require_index_native40()), module.exports);
|
|
|
19688
19730
|
__reExport(src_exports, __toESM(require_index_native48()), module.exports);
|
|
19689
19731
|
__reExport(src_exports, __toESM(require_index_native50()), module.exports);
|
|
19690
19732
|
__reExport(src_exports, __toESM(require_index_native51()), module.exports);
|
|
19733
|
+
__reExport(src_exports, __toESM(require_index_native52()), module.exports);
|
|
19691
19734
|
__reExport(src_exports, __toESM(require_index_native41()), module.exports);
|
|
19692
19735
|
__reExport(src_exports, __toESM(require_index_native37()), module.exports);
|
|
19693
19736
|
__reExport(src_exports, __toESM(require_index_native45()), module.exports);
|
|
19694
|
-
__reExport(src_exports, __toESM(
|
|
19737
|
+
__reExport(src_exports, __toESM(require_index_native53()), module.exports);
|
|
19738
|
+
__reExport(src_exports, __toESM(require_index_native57()), module.exports);
|
|
19695
19739
|
__reExport(src_exports, __toESM(require_index_native56()), module.exports);
|
|
19696
|
-
__reExport(src_exports, __toESM(require_index_native55()), module.exports);
|
|
19697
19740
|
__reExport(src_exports, __toESM(require_index_native30()), module.exports);
|
|
19698
|
-
__reExport(src_exports, __toESM(
|
|
19699
|
-
__reExport(src_exports, __toESM(require_index_native59()), module.exports);
|
|
19700
|
-
__reExport(src_exports, __toESM(require_index_native33()), module.exports);
|
|
19701
|
-
__reExport(src_exports, __toESM(require_index_native62()), module.exports);
|
|
19741
|
+
__reExport(src_exports, __toESM(require_index_native58()), module.exports);
|
|
19702
19742
|
__reExport(src_exports, __toESM(require_index_native60()), module.exports);
|
|
19743
|
+
__reExport(src_exports, __toESM(require_index_native33()), module.exports);
|
|
19744
|
+
__reExport(src_exports, __toESM(require_index_native63()), module.exports);
|
|
19745
|
+
__reExport(src_exports, __toESM(require_index_native61()), module.exports);
|
|
19703
19746
|
__reExport(src_exports, __toESM(require_index_native38()), module.exports);
|
|
19704
19747
|
__reExport(src_exports, __toESM(require_index_native34()), module.exports);
|
|
19705
|
-
__reExport(src_exports, __toESM(require_index_native63()), module.exports);
|
|
19706
|
-
__reExport(src_exports, __toESM(require_index_native20()), module.exports);
|
|
19707
19748
|
__reExport(src_exports, __toESM(require_index_native64()), module.exports);
|
|
19749
|
+
__reExport(src_exports, __toESM(require_index_native20()), module.exports);
|
|
19708
19750
|
__reExport(src_exports, __toESM(require_index_native65()), module.exports);
|
|
19709
|
-
__reExport(src_exports, __toESM(require_index_native22()), module.exports);
|
|
19710
19751
|
__reExport(src_exports, __toESM(require_index_native66()), module.exports);
|
|
19752
|
+
__reExport(src_exports, __toESM(require_index_native22()), module.exports);
|
|
19711
19753
|
__reExport(src_exports, __toESM(require_index_native67()), module.exports);
|
|
19712
19754
|
__reExport(src_exports, __toESM(require_index_native68()), module.exports);
|
|
19755
|
+
__reExport(src_exports, __toESM(require_index_native69()), module.exports);
|
|
19713
19756
|
__reExport(src_exports, __toESM(require_index_native9()), module.exports);
|
|
19714
|
-
__reExport(src_exports, __toESM(
|
|
19757
|
+
__reExport(src_exports, __toESM(require_index_native62()), module.exports);
|
|
19715
19758
|
__reExport(src_exports, __toESM(require_index_native()), module.exports);
|
|
19716
|
-
__reExport(src_exports, __toESM(require_index_native69()), module.exports);
|
|
19717
19759
|
__reExport(src_exports, __toESM(require_index_native70()), module.exports);
|
|
19760
|
+
__reExport(src_exports, __toESM(require_index_native71()), module.exports);
|
|
19718
19761
|
|
|
19719
19762
|
// src/createTamagui.ts
|
|
19720
19763
|
var import_core = __toESM(require_index_native16()), createTamagui = process.env.NODE_ENV !== "development" ? import_core.createTamagui : (conf) => {
|
|
@@ -19925,48 +19968,12 @@ function useInputProps(props, ref) {
|
|
|
19925
19968
|
};
|
|
19926
19969
|
}
|
|
19927
19970
|
|
|
19928
|
-
// src/views/Layouts.tsx
|
|
19929
|
-
var import_core8 = __toESM(require_index_native16()), Section = (0, import_core8.styled)(import_core8.Stack, {
|
|
19930
|
-
name: "Section",
|
|
19931
|
-
tag: "section",
|
|
19932
|
-
flexDirection: "column",
|
|
19933
|
-
accessibilityRole: "summary"
|
|
19934
|
-
}), Article = (0, import_core8.styled)(import_core8.Stack, {
|
|
19935
|
-
name: "Article",
|
|
19936
|
-
tag: "article",
|
|
19937
|
-
flexDirection: "column"
|
|
19938
|
-
}), Main = (0, import_core8.styled)(import_core8.Stack, {
|
|
19939
|
-
name: "Main",
|
|
19940
|
-
tag: "main",
|
|
19941
|
-
flexDirection: "column"
|
|
19942
|
-
}), Header = (0, import_core8.styled)(import_core8.Stack, {
|
|
19943
|
-
name: "Header",
|
|
19944
|
-
tag: "header",
|
|
19945
|
-
accessibilityRole: "header",
|
|
19946
|
-
flexDirection: "column"
|
|
19947
|
-
}), Aside = (0, import_core8.styled)(import_core8.Stack, {
|
|
19948
|
-
name: "Aside",
|
|
19949
|
-
tag: "aside",
|
|
19950
|
-
flexDirection: "column"
|
|
19951
|
-
// accessibilityRole: 'complementary',
|
|
19952
|
-
}), Footer = (0, import_core8.styled)(import_core8.Stack, {
|
|
19953
|
-
name: "Footer",
|
|
19954
|
-
tag: "footer",
|
|
19955
|
-
flexDirection: "column"
|
|
19956
|
-
// accessibilityRole: 'contentinfo',
|
|
19957
|
-
}), Nav = (0, import_core8.styled)(import_core8.Stack, {
|
|
19958
|
-
name: "Nav",
|
|
19959
|
-
tag: "nav",
|
|
19960
|
-
flexDirection: "column"
|
|
19961
|
-
// accessibilityRole: 'navigation',
|
|
19962
|
-
});
|
|
19963
|
-
|
|
19964
19971
|
// src/views/Spinner.tsx
|
|
19965
|
-
var
|
|
19966
|
-
(0,
|
|
19972
|
+
var import_core8 = __toESM(require_index_native16()), import_stacks2 = __toESM(require_index_native20()), React = __toESM(require("react")), import_react_native3 = require("react-native"), import_jsx_runtime4 = require("react/jsx-runtime"), Spinner = import_stacks2.YStack.extractable(
|
|
19973
|
+
(0, import_core8.themeable)(
|
|
19967
19974
|
React.forwardRef((props, ref) => {
|
|
19968
|
-
let { size: size2, color: colorProp, ...stackProps } = props, theme = (0,
|
|
19969
|
-
return color && color[0] === "$" && (color = (0,
|
|
19975
|
+
let { size: size2, color: colorProp, ...stackProps } = props, theme = (0, import_core8.useTheme)(), color = colorProp;
|
|
19976
|
+
return color && color[0] === "$" && (color = (0, import_core8.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 }) });
|
|
19970
19977
|
}),
|
|
19971
19978
|
{
|
|
19972
19979
|
componentName: "Spinner"
|
|
@@ -19975,8 +19982,8 @@ var import_core9 = __toESM(require_index_native16()), import_stacks2 = __toESM(r
|
|
|
19975
19982
|
);
|
|
19976
19983
|
|
|
19977
19984
|
// src/views/TextArea.tsx
|
|
19978
|
-
var import_constants3 = __toESM(require_index_native6()),
|
|
19979
|
-
var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0,
|
|
19985
|
+
var import_constants3 = __toESM(require_index_native6()), import_core9 = __toESM(require_index_native16());
|
|
19986
|
+
var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0, import_core9.styled)(InputFrame, {
|
|
19980
19987
|
name: "TextArea",
|
|
19981
19988
|
multiline: !0,
|
|
19982
19989
|
// this attribute fixes firefox newline issue
|
|
@@ -20004,7 +20011,7 @@ var import_jsx_runtime5 = require("react/jsx-runtime"), TextAreaFrame = (0, impo
|
|
|
20004
20011
|
});
|
|
20005
20012
|
|
|
20006
20013
|
// src/views/Text.tsx
|
|
20007
|
-
var
|
|
20014
|
+
var import_core10 = __toESM(require_index_native16()), Text2 = (0, import_core10.styled)(import_core10.Text, {
|
|
20008
20015
|
variants: {
|
|
20009
20016
|
unstyled: {
|
|
20010
20017
|
false: {
|
|
@@ -20018,24 +20025,17 @@ var import_core11 = __toESM(require_index_native16()), Text2 = (0, import_core11
|
|
|
20018
20025
|
});
|
|
20019
20026
|
|
|
20020
20027
|
// src/index.ts
|
|
20021
|
-
var
|
|
20028
|
+
var import_core11 = __toESM(require_index_native16());
|
|
20022
20029
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20023
20030
|
0 && (module.exports = {
|
|
20024
20031
|
Anchor,
|
|
20025
|
-
Article,
|
|
20026
|
-
Aside,
|
|
20027
20032
|
ComponentContext,
|
|
20028
20033
|
Configuration,
|
|
20029
20034
|
EnsureFlexed,
|
|
20030
20035
|
Fieldset,
|
|
20031
20036
|
FontLanguage,
|
|
20032
|
-
Footer,
|
|
20033
|
-
Header,
|
|
20034
20037
|
Input,
|
|
20035
20038
|
InputFrame,
|
|
20036
|
-
Main,
|
|
20037
|
-
Nav,
|
|
20038
|
-
Section,
|
|
20039
20039
|
Spacer,
|
|
20040
20040
|
Spinner,
|
|
20041
20041
|
Stack,
|