@multiplatform.one/theme 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.gnome.cjs +2 -0
- package/dist/cjs/index.gnome.native.cjs +2 -0
- package/dist/cjs/index.gnome.native.js +2 -0
- package/dist/cjs/index.gnome.native.js.map +1 -1
- package/dist/cjs/theme/overlaySurfaces.cjs +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.cjs +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.js +18 -10
- package/dist/cjs/theme/overlaySurfaces.native.js.map +1 -1
- package/dist/esm/index.gnome.mjs +2 -2
- package/dist/esm/index.gnome.native.js +2 -2
- package/dist/esm/theme/overlaySurfaces.mjs +16 -10
- package/dist/esm/theme/overlaySurfaces.mjs.map +1 -1
- package/dist/esm/theme/overlaySurfaces.native.js +16 -10
- package/dist/esm/theme/overlaySurfaces.native.js.map +1 -1
- package/package.json +5 -5
- package/src/index.gnome.ts +2 -0
- package/src/theme/overlaySurfaces.tsx +25 -21
- package/src/theme/sheetFrameHandle.spec.ts +8 -0
- package/src/theme/sheetHandle.spec.ts +16 -16
- package/types/index.gnome.d.ts +1 -1
- package/types/index.gnome.d.ts.map +1 -1
- package/types/theme/overlaySurfaces.d.ts +22 -22
- package/types/theme/overlaySurfaces.d.ts.map +1 -1
|
@@ -10,7 +10,7 @@ import { PresetContext, usePresetContext, usePresetTints } from "./theme/PresetC
|
|
|
10
10
|
import { Preset, applyColorTheme } from "./theme/Preset.native.js";
|
|
11
11
|
import { Surface, SurfaceContext, bySizeToken, clampSurfaceSize, compareSizeTokens, sizeTokenBelow, sizeTokenStep, sizeTokenStop, surfaceSizeRank, useBarSurface, useElevatedSurface, useFieldSurface } from "./theme/Surface.native.js";
|
|
12
12
|
import { controlTierDisabled, controlTierPaint, controlTierWash, controlTrackFill, isDarkThemeName } from "./theme/controlTiers.native.js";
|
|
13
|
-
import { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody } from "./theme/overlaySurfaces.native.js";
|
|
13
|
+
import { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyInsetProvider, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody, useSheetBodyInset } from "./theme/overlaySurfaces.native.js";
|
|
14
14
|
import { boldPreset, consolePreset, defaultPreset, densePreset, heroPreset, roomyPreset, storefrontPreset } from "./theme/presets.native.js";
|
|
15
15
|
import { IntentAccentTokensContext, IntentContext, solidButtonIntents, solidPaletteThemes, useIntentAccentTokens, useIntentContext, useResolvedKnobs } from "./theme/useResolvedKnobs.native.js";
|
|
16
16
|
import { useTheme } from "./theme/useTheme.native.js";
|
|
@@ -48,4 +48,4 @@ import { rampStepOf, rowStateLadder } from "./theme/rowStates.native.js";
|
|
|
48
48
|
import { useTouchSurface } from "./theme/useTouchSurface.native.js";
|
|
49
49
|
import { tokenNumber } from "./theme/tokenNumber.native.js";
|
|
50
50
|
|
|
51
|
-
export { $color, AlertDialogContent, AlertDialogOverlay, Anchor, BodyFont, BorderRadius, BorderWidth, BulkBarPlacement, CLOCK_TIME, CornerSmoothing, DEFAULT_SIZE_RECIPE_INPUTS, DETAIL_READABLE_WIDTH, DIALOG_MAX_ACTIONS, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, DisabledStyle, Elevation, FIELD_FOCUS_COLOR, FIELD_FOCUS_REST, FIELD_FOCUS_STYLE, FIELD_KEYBOARD_ATTR, FOCUS_RING_CLIPPED_OFFSET, FOCUS_RING_FLUSH_OFFSET, FOCUS_RING_HALO_OFFSET, FOCUS_RING_MIN_CONTRAST, FOCUS_RING_MIN_WIDTH, FOCUS_VISIBLE_RING, FOCUS_VISIBLE_RING_HALO, FOCUS_VISIBLE_RING_INSET, FORM_READABLE_WIDTH, FORM_READABLE_WIDTH_MAX, FORM_READABLE_WIDTH_MIN, FieldLabelPlacement, FillStyle, FontCategory, FontWeight, FormAutofocus, GLYPH_CONTRAST_FLOOR, GlyphTintFallbackProvider, GroupPositionContext, H1, H2, H3, H4, H5, H6, Heading, HeadingFont, ISO_DATE_ONLY, IconSlot, Intent, IntentAccentTokensContext, IntentContext, LAYOUT_SIZE_CLASS_ORDER, MIN_PRESS_TARGET, NARROW_BREAKPOINT, OVERLAY_ANCHOR_GAP, OVERLAY_ATTACH_GAP, OVERLAY_BREAKPOINT, PageGutter, PageTitleScale, Paragraph, PopoverContent, Preset, PresetContext, READING_WIDTH_BODY_FALLBACK, READING_WIDTH_CH, READING_WIDTH_CH_EM, READING_WIDTH_MAX_CH, READING_WIDTH_MIN_CH, RequiredMarking, SANCTIONED_FOCUS_RING_OFFSETS, SIZE_RECIPE_FAMILY_NAMES, SIZE_RECIPE_RADIUS_STOPS, SIZE_RECIPE_RADIUS_TOKEN_TO_STOP, SIZE_RECIPE_TOKENS, SIZE_TOKEN_EXPONENTS, STATE_LAYER_HOVER, STATE_LAYER_PRESS, ScreenNesting, SelectAllScope, SheetBodyProvider, SizableText, Surface, SurfaceContext, TAMAGUI_ERA, TOUCH_HEIGHT_FLOOR, TableZebra, Text, TextAccent, TimestampStyle, __resetDevWarnSeen, __resetThemeDevWarnSeen, aaTextContrastRatio, accentIdentityCandidates, animationConfig, animationDurations, animationNames, animations, apcaContrast, applyColorTheme, applyRadiusStop, applyTouchFloor, assertContrast, assertNoPrebuiltThemes, boldPreset, borderRadiusMap, buttonColors, bySizeToken, capContainerRadius, capFieldRadius, cardElevationMap, cardLift, clampSurfaceSize, clearPresets, cloneSizeRecipeInputs, cloneTileSizeInputs, compareSizeTokens, composeKnobs, compositeFocusRingCss, consolePreset, containerCapProps, containerRadiusMap, contrastRatio, controlTierDisabled, controlTierPaint, controlTierWash, controlTrackFill, createDefaultFont, createDefaultThemeConfig, createRecipeFamilies, createThemeConfig, createThemesBuilder, animationConfig2 as cssAnimationConfig, currencyAffix, defaultIntents, defaultKnobs, defaultMaxPanes, defaultPreset, defaultRecipeInputs, defaultTileSizeInputs, defaultWidthFactors, densePreset, devWarn, dialogScrim, dynamicTypeFit, edgeColorAt, effectiveFontScale, elevationMap, emptyStateKnobs, ensureCompositeFocusRing, ensureFocusVisibleRing, ensureHairlineFallback, ensureKeyboardModalityTracking, fieldFocusCss, fieldFocusHoldsContrast, fieldKeyboardRing, fillLabelLc, findReadableStep, focusOnOpen, focusRingColorMeetsContrast, focusVisibleRing, formatAbsoluteDate, formatAbsoluteDateTime, formatCalendarDate, formatCurrency, formatDayLong, formatDayOfMonth, formatMonthYear, formatNumber, formatPercent, formatRelativeTimestamp, formatTimeOfDay, generateSizeRecipeTables, generateSizeRecipes, generateTileSizeLadder, getActiveScaleTokens, getGeneratedSizeRecipes, getGroupPosition, getHeadingFontFamily, getLayoutSizeClass, getMonthNames, getPreset, getPresetNames, getSizeRecipeFamily, getSizeRecipeInputs, getTileSizeLadder, getWeekdayNames, glyphTintFallback, hairline, hairlineBorderWidth, hairlineFallbackCss, hairlineWidth, headingMaxFontScale, heroPreset, holdHueToFloor, holdInkFloor, houseComponentThemes, houseGrandChildrenThemes, houseTemplates, inSwitchOffBand, inputColors, interactionStates, isDarkThemeName, isLightGround, isSanctionedFocusRingOffset, isTouchSurface, keyboardFocusRingProps, knobStates, labelFontSizeFor, layoutBreakpoints, layoutSizeClassAtLeast, listHeightForRows, maxFontScaleToFit, measureContrast, mediaAspectRatios, menuRowActive, menuRowCheckGlyph, menuRowCheckInk, menuRowChecked, menuRowCheckedFill, menuRowFrame, menuRowIconGlyph, mergeRecipeInputs, minContrastRatio, motionDurationMs, motionExitFactor, motionFor, motionHideDelayMs, motionRoleProperties, motionSeconds, motionSettleMs, motionStops, animationConfig3 as nativeAnimationConfig, negateSpaceToken, nestedControlPx, normalizeAnimationKnob, normalizeColorScale, normalizeNumberText, normalizeSizeToken, normalizeToHex, numberSeparators, overlayElevationMap, overlayScrim, paintedCardFill, panelPaddingPx, parseCalendarDate, pickReadableForeground, pickStates, plateContrastRatio, platformSystemTint, pressTargetHitSlop, pressTargetStyle, radiusClassProps, radiusOverrideFor, radiusResolutionProps, radiusStopFromToken, railFillRadius, rampStepOf, readingWidthStyle, recipeFamilies, recipeFromTokenChannels, recipeKeyAbove, recipeKeyBelow, registerPreset, relativeLuminance, resolveAccentOnSurface, resolveAccentTintedSurface, resolveActiveTabInk, resolveChartPalette, resolveControlRadius, resolveCurrencyCode, resolveFillGlyphInk, resolveGlyphPaint, resolveGlyphTint, resolveIdentityInk, resolveKnobs, resolveLegibleInkOn, resolveMediaAspect, resolveMenuRowCheckInk, resolvePageTitleScale, resolveRadiusClass, resolveRadiusForPart, resolveSizeRecipeInputs, resolveTextRoles, resolveThemeContrast, resolveThemeFromPreset, resolveTileSizeInputs, roomyPreset, rowStateLadder, scaleRadiusPx, scaleSpaceFractionPx, scrimFor, semanticGroups, setActiveScaleTokens, setBottomEdgeOwnedByTabHost, setSizeRecipeInputs, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, sizeKeyBelow, sizeRecipeBoxVariants, sizeRecipeEscape, sizeRecipeForToken, sizeRecipeFromHeight, sizeRecipeIconVariants, sizeRecipeTypeVariants, sizeRecipes, sizeTokenBelow, sizeTokenStep, sizeTokenStop, sizedElevation, solidButtonIntents, solidPaletteThemes, spacingRoles, stackEdgeRadius, stackRadiusProps, stateFragment, storefrontPreset, surfaceSizeRank, switchOffFillAlpha, switchOffFillBand, systemFillHex, systemFillLuminance, tamaguiEra, textFieldInset, themeDevWarn, tileColumnsForWidth, tileRungFlexProps, tileSizeLadder, tileSizeRungs, tileSizeStepExponents, tintHueNames, tokenNumber, transitionProps, useAccentOnSurface, useAccentTintedSurface, useActiveTabInk, useBarSurface, useBottomEdgeOwnedByTabHost, useChartPalette, useDialogRegionContext, useDialogSheetFace, useElevatedSurface, useFieldSurface, useGlyphColor, useGlyphTintOnSurface, useGroupPosition, useIdentityHue, useIdentityInkOnSurface, useIntentAccentTokens, useIntentContext, useIsInDialogRegion, useIsInSheetBody, useLayoutSizeClass, useLegibleInkOn, useMenuRowCheckInk, useMultiPane, usePageGutter, useParentScreen, usePhoneTableBleed, usePresetContext, usePresetTints, useReadableTextOn, useReadingWidthStyle, useResolvedKnobs, useSemanticGaps, useTheme, useTouchSurface, warnBannedErrorWords, warnBareDisabled, warnCancelDisabled, warnDeprecatedProp, warnDialogTooManyActions, warnOutlineNone, warnOutlinedIgnored, warnPlaceholderAsLabel, warnPositiveTabIndex, warnSelectTooFewOptions, warnSizeRecipeEscape, warnTooltipOnDisabled, wasKeyboardFocus, withDefaultStateLayer };
|
|
51
|
+
export { $color, AlertDialogContent, AlertDialogOverlay, Anchor, BodyFont, BorderRadius, BorderWidth, BulkBarPlacement, CLOCK_TIME, CornerSmoothing, DEFAULT_SIZE_RECIPE_INPUTS, DETAIL_READABLE_WIDTH, DIALOG_MAX_ACTIONS, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, DisabledStyle, Elevation, FIELD_FOCUS_COLOR, FIELD_FOCUS_REST, FIELD_FOCUS_STYLE, FIELD_KEYBOARD_ATTR, FOCUS_RING_CLIPPED_OFFSET, FOCUS_RING_FLUSH_OFFSET, FOCUS_RING_HALO_OFFSET, FOCUS_RING_MIN_CONTRAST, FOCUS_RING_MIN_WIDTH, FOCUS_VISIBLE_RING, FOCUS_VISIBLE_RING_HALO, FOCUS_VISIBLE_RING_INSET, FORM_READABLE_WIDTH, FORM_READABLE_WIDTH_MAX, FORM_READABLE_WIDTH_MIN, FieldLabelPlacement, FillStyle, FontCategory, FontWeight, FormAutofocus, GLYPH_CONTRAST_FLOOR, GlyphTintFallbackProvider, GroupPositionContext, H1, H2, H3, H4, H5, H6, Heading, HeadingFont, ISO_DATE_ONLY, IconSlot, Intent, IntentAccentTokensContext, IntentContext, LAYOUT_SIZE_CLASS_ORDER, MIN_PRESS_TARGET, NARROW_BREAKPOINT, OVERLAY_ANCHOR_GAP, OVERLAY_ATTACH_GAP, OVERLAY_BREAKPOINT, PageGutter, PageTitleScale, Paragraph, PopoverContent, Preset, PresetContext, READING_WIDTH_BODY_FALLBACK, READING_WIDTH_CH, READING_WIDTH_CH_EM, READING_WIDTH_MAX_CH, READING_WIDTH_MIN_CH, RequiredMarking, SANCTIONED_FOCUS_RING_OFFSETS, SIZE_RECIPE_FAMILY_NAMES, SIZE_RECIPE_RADIUS_STOPS, SIZE_RECIPE_RADIUS_TOKEN_TO_STOP, SIZE_RECIPE_TOKENS, SIZE_TOKEN_EXPONENTS, STATE_LAYER_HOVER, STATE_LAYER_PRESS, ScreenNesting, SelectAllScope, SheetBodyInsetProvider, SheetBodyProvider, SizableText, Surface, SurfaceContext, TAMAGUI_ERA, TOUCH_HEIGHT_FLOOR, TableZebra, Text, TextAccent, TimestampStyle, __resetDevWarnSeen, __resetThemeDevWarnSeen, aaTextContrastRatio, accentIdentityCandidates, animationConfig, animationDurations, animationNames, animations, apcaContrast, applyColorTheme, applyRadiusStop, applyTouchFloor, assertContrast, assertNoPrebuiltThemes, boldPreset, borderRadiusMap, buttonColors, bySizeToken, capContainerRadius, capFieldRadius, cardElevationMap, cardLift, clampSurfaceSize, clearPresets, cloneSizeRecipeInputs, cloneTileSizeInputs, compareSizeTokens, composeKnobs, compositeFocusRingCss, consolePreset, containerCapProps, containerRadiusMap, contrastRatio, controlTierDisabled, controlTierPaint, controlTierWash, controlTrackFill, createDefaultFont, createDefaultThemeConfig, createRecipeFamilies, createThemeConfig, createThemesBuilder, animationConfig2 as cssAnimationConfig, currencyAffix, defaultIntents, defaultKnobs, defaultMaxPanes, defaultPreset, defaultRecipeInputs, defaultTileSizeInputs, defaultWidthFactors, densePreset, devWarn, dialogScrim, dynamicTypeFit, edgeColorAt, effectiveFontScale, elevationMap, emptyStateKnobs, ensureCompositeFocusRing, ensureFocusVisibleRing, ensureHairlineFallback, ensureKeyboardModalityTracking, fieldFocusCss, fieldFocusHoldsContrast, fieldKeyboardRing, fillLabelLc, findReadableStep, focusOnOpen, focusRingColorMeetsContrast, focusVisibleRing, formatAbsoluteDate, formatAbsoluteDateTime, formatCalendarDate, formatCurrency, formatDayLong, formatDayOfMonth, formatMonthYear, formatNumber, formatPercent, formatRelativeTimestamp, formatTimeOfDay, generateSizeRecipeTables, generateSizeRecipes, generateTileSizeLadder, getActiveScaleTokens, getGeneratedSizeRecipes, getGroupPosition, getHeadingFontFamily, getLayoutSizeClass, getMonthNames, getPreset, getPresetNames, getSizeRecipeFamily, getSizeRecipeInputs, getTileSizeLadder, getWeekdayNames, glyphTintFallback, hairline, hairlineBorderWidth, hairlineFallbackCss, hairlineWidth, headingMaxFontScale, heroPreset, holdHueToFloor, holdInkFloor, houseComponentThemes, houseGrandChildrenThemes, houseTemplates, inSwitchOffBand, inputColors, interactionStates, isDarkThemeName, isLightGround, isSanctionedFocusRingOffset, isTouchSurface, keyboardFocusRingProps, knobStates, labelFontSizeFor, layoutBreakpoints, layoutSizeClassAtLeast, listHeightForRows, maxFontScaleToFit, measureContrast, mediaAspectRatios, menuRowActive, menuRowCheckGlyph, menuRowCheckInk, menuRowChecked, menuRowCheckedFill, menuRowFrame, menuRowIconGlyph, mergeRecipeInputs, minContrastRatio, motionDurationMs, motionExitFactor, motionFor, motionHideDelayMs, motionRoleProperties, motionSeconds, motionSettleMs, motionStops, animationConfig3 as nativeAnimationConfig, negateSpaceToken, nestedControlPx, normalizeAnimationKnob, normalizeColorScale, normalizeNumberText, normalizeSizeToken, normalizeToHex, numberSeparators, overlayElevationMap, overlayScrim, paintedCardFill, panelPaddingPx, parseCalendarDate, pickReadableForeground, pickStates, plateContrastRatio, platformSystemTint, pressTargetHitSlop, pressTargetStyle, radiusClassProps, radiusOverrideFor, radiusResolutionProps, radiusStopFromToken, railFillRadius, rampStepOf, readingWidthStyle, recipeFamilies, recipeFromTokenChannels, recipeKeyAbove, recipeKeyBelow, registerPreset, relativeLuminance, resolveAccentOnSurface, resolveAccentTintedSurface, resolveActiveTabInk, resolveChartPalette, resolveControlRadius, resolveCurrencyCode, resolveFillGlyphInk, resolveGlyphPaint, resolveGlyphTint, resolveIdentityInk, resolveKnobs, resolveLegibleInkOn, resolveMediaAspect, resolveMenuRowCheckInk, resolvePageTitleScale, resolveRadiusClass, resolveRadiusForPart, resolveSizeRecipeInputs, resolveTextRoles, resolveThemeContrast, resolveThemeFromPreset, resolveTileSizeInputs, roomyPreset, rowStateLadder, scaleRadiusPx, scaleSpaceFractionPx, scrimFor, semanticGroups, setActiveScaleTokens, setBottomEdgeOwnedByTabHost, setSizeRecipeInputs, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, sizeKeyBelow, sizeRecipeBoxVariants, sizeRecipeEscape, sizeRecipeForToken, sizeRecipeFromHeight, sizeRecipeIconVariants, sizeRecipeTypeVariants, sizeRecipes, sizeTokenBelow, sizeTokenStep, sizeTokenStop, sizedElevation, solidButtonIntents, solidPaletteThemes, spacingRoles, stackEdgeRadius, stackRadiusProps, stateFragment, storefrontPreset, surfaceSizeRank, switchOffFillAlpha, switchOffFillBand, systemFillHex, systemFillLuminance, tamaguiEra, textFieldInset, themeDevWarn, tileColumnsForWidth, tileRungFlexProps, tileSizeLadder, tileSizeRungs, tileSizeStepExponents, tintHueNames, tokenNumber, transitionProps, useAccentOnSurface, useAccentTintedSurface, useActiveTabInk, useBarSurface, useBottomEdgeOwnedByTabHost, useChartPalette, useDialogRegionContext, useDialogSheetFace, useElevatedSurface, useFieldSurface, useGlyphColor, useGlyphTintOnSurface, useGroupPosition, useIdentityHue, useIdentityInkOnSurface, useIntentAccentTokens, useIntentContext, useIsInDialogRegion, useIsInSheetBody, useLayoutSizeClass, useLegibleInkOn, useMenuRowCheckInk, useMultiPane, usePageGutter, useParentScreen, usePhoneTableBleed, usePresetContext, usePresetTints, useReadableTextOn, useReadingWidthStyle, useResolvedKnobs, useSemanticGaps, useSheetBodyInset, useTheme, useTouchSurface, warnBannedErrorWords, warnBareDisabled, warnCancelDisabled, warnDeprecatedProp, warnDialogTooManyActions, warnOutlineNone, warnOutlinedIgnored, warnPlaceholderAsLabel, warnPositiveTabIndex, warnSelectTooFewOptions, warnSizeRecipeEscape, warnTooltipOnDisabled, wasKeyboardFocus, withDefaultStateLayer };
|
|
@@ -32,25 +32,26 @@ const sheetGrabberZone = {
|
|
|
32
32
|
};
|
|
33
33
|
const sheetHandleWidthRatio = .3;
|
|
34
34
|
const sheetHandle = {
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
35
|
+
width: 36,
|
|
36
|
+
height: 5,
|
|
37
37
|
borderRadius: 100,
|
|
38
|
-
backgroundColor: "$color-
|
|
39
|
-
opacity:
|
|
38
|
+
backgroundColor: "$color-12",
|
|
39
|
+
opacity: .3,
|
|
40
40
|
alignSelf: "center",
|
|
41
41
|
marginHorizontal: 0,
|
|
42
|
-
marginTop:
|
|
43
|
-
marginBottom:
|
|
42
|
+
marginTop: 5,
|
|
43
|
+
marginBottom: -10,
|
|
44
44
|
zIndex: 10
|
|
45
45
|
};
|
|
46
46
|
const sheetHandleZone = {
|
|
47
47
|
alignSelf: "stretch",
|
|
48
48
|
alignItems: "center",
|
|
49
|
-
paddingTop:
|
|
49
|
+
paddingTop: 0,
|
|
50
|
+
height: 21
|
|
50
51
|
};
|
|
51
52
|
const sheetHandleToneOpen = {
|
|
52
|
-
backgroundColor: "$color-
|
|
53
|
-
opacity:
|
|
53
|
+
backgroundColor: "$color-12",
|
|
54
|
+
opacity: .3
|
|
54
55
|
};
|
|
55
56
|
function sheetHandleTone(_scheme) {
|
|
56
57
|
return sheetHandleToneOpen;
|
|
@@ -108,6 +109,11 @@ function useIsInDialogRegion() {
|
|
|
108
109
|
}
|
|
109
110
|
const IN_DIALOG_REGION = { inDialogRegion: true };
|
|
110
111
|
const SheetBodyContext = createContext(false);
|
|
112
|
+
const SheetBodyInsetContext = createContext(0);
|
|
113
|
+
const SheetBodyInsetProvider = SheetBodyInsetContext.Provider;
|
|
114
|
+
function useSheetBodyInset() {
|
|
115
|
+
return useContext(SheetBodyInsetContext);
|
|
116
|
+
}
|
|
111
117
|
const SheetBodyProvider = SheetBodyContext.Provider;
|
|
112
118
|
function useIsInSheetBody() {
|
|
113
119
|
return useContext(SheetBodyContext);
|
|
@@ -290,5 +296,5 @@ const PopoverContent = forwardRef(function PopoverContent2({ children, onOpenAut
|
|
|
290
296
|
});
|
|
291
297
|
});
|
|
292
298
|
|
|
293
|
-
export { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody };
|
|
299
|
+
export { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyInsetProvider, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody, useSheetBodyInset };
|
|
294
300
|
//# sourceMappingURL=overlaySurfaces.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlaySurfaces.js","names":[],"sources":["esm/theme/overlaySurfaces.js"],"sourcesContent":["import { focusOnOpen } from \"../keyboardFocusRing\";\nimport { scrimFor } from \"./motion\";\nimport { transitionProps } from \"./transitionProps\";\nimport { Surface } from \"./Surface\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { ALERT_READABLE_WIDTH } from \"./layoutTokens\";\nimport { panelPaddingPx } from \"./resolveKnobs\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport {\n AlertDialog,\n Dialog,\n useDialogContext,\n useWindowDimensions,\n YStack\n} from \"tamagui\";\nimport { jsx } from \"react/jsx-runtime\";\nconst dialogScrim = \"$scrim-dialog\";\nconst sheetScrim = \"$scrim-sheet\";\nconst overlayScrim = dialogScrim;\nconst sheetGrabber = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nconst sheetGrabberClearance = 16;\nconst sheetGrabberZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n height: 21\n};\nconst sheetHandleWidthRatio = 0.3;\nconst sheetHandle = {\n width: \"30%\",\n height: 10,\n borderRadius: 100,\n backgroundColor: \"$color-5\",\n opacity: 1,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 0,\n marginBottom: 8,\n zIndex: 10\n};\nconst sheetHandleZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n paddingTop: 8\n};\nconst sheetHandleToneOpen = { backgroundColor: \"$color-5\", opacity: 1 };\nfunction sheetHandleTone(_scheme) {\n return sheetHandleToneOpen;\n}\nconst overlayFrameFocus = {\n outlineWidth: { default: 0, focus: 0, \"focus-visible\": 0 },\n outlineStyle: { default: \"none\", focus: \"none\", \"focus-visible\": \"none\" }\n};\nfunction isTabbableWithin(node, container) {\n if (node.tabIndex < 0 || node.hidden || node.tagName === \"A\") return false;\n if (node.disabled) return false;\n if (typeof HTMLInputElement !== \"undefined\" && node instanceof HTMLInputElement && node.type === \"hidden\") {\n return false;\n }\n if (getComputedStyle(node).visibility === \"hidden\") return false;\n for (let el = node; el && el !== container; el = el.parentElement) {\n if (getComputedStyle(el).display === \"none\") return false;\n }\n return true;\n}\nfunction focusFirstTabbableOnOpen(details, container) {\n if (typeof HTMLElement === \"undefined\" || !(container instanceof HTMLElement)) return;\n const first = Array.from(container.querySelectorAll(\"*\")).find(\n (node) => isTabbableWithin(node, container)\n );\n if (!first) return;\n details.cancel();\n const focused = focusOnOpen(first, container);\n if (typeof HTMLInputElement !== \"undefined\" && focused instanceof HTMLInputElement) {\n focused.select();\n }\n}\nfunction withHouseOpenFocus(onOpenAutoFocus, contentId) {\n return (details) => {\n onOpenAutoFocus?.(details);\n if (!details.isCanceled) focusFirstTabbableOnOpen(details, contentById(contentId));\n };\n}\nfunction contentById(contentId) {\n if (!contentId || typeof document === \"undefined\") return null;\n return document.getElementById(contentId);\n}\nconst DialogRegionContext = createContext({\n inDialogRegion: false\n});\nfunction useDialogRegionContext() {\n return useContext(DialogRegionContext);\n}\nfunction useIsInDialogRegion() {\n return useDialogRegionContext().inDialogRegion;\n}\nconst IN_DIALOG_REGION = { inDialogRegion: true };\nconst SheetBodyContext = createContext(false);\nconst SheetBodyProvider = SheetBodyContext.Provider;\nfunction useIsInSheetBody() {\n return useContext(SheetBodyContext);\n}\nconst DialogSheetFaceContext = createContext(false);\nconst DialogSheetFaceProvider = DialogSheetFaceContext.Provider;\nfunction useDialogSheetFace() {\n return useContext(DialogSheetFaceContext);\n}\nconst DialogSheetBody = forwardRef(\n function DialogSheetBody2({ children }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"DialogContent\" });\n return /* @__PURE__ */ jsx(YStack, { ref, ...knobProps.gap, ...{ \"data-mp-dialog-face\": \"sheet\" }, children: /* @__PURE__ */ jsx(DialogSheetFaceContext.Provider, { value: false, children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children }) }) });\n }\n);\nconst overlayEnterExit = {\n opacity: { enter: 0, exit: 0 },\n y: { enter: -4, exit: -4 },\n scale: { enter: 0.97, exit: 0.97 }\n};\nconst DialogContent = forwardRef(function DialogContent2({ children, size = \"4\", ...props }, ref) {\n if (useDialogSheetFace()) return /* @__PURE__ */ jsx(DialogSheetBody, { ref, children });\n return /* @__PURE__ */ jsx(Surface, { size, painted: false, elevated: true, children: /* @__PURE__ */ jsx(DialogContentInner, { ref, ...props, children }) });\n});\nfunction useWindowFit(props, fallbackMaxWidth) {\n const { width: windowWidth } = useWindowDimensions();\n const room = windowWidth > 0 ? Math.max(0, windowWidth - 2 * panelPaddingPx()) : void 0;\n const fit = (value) => room != null && typeof value === \"number\" ? Math.min(value, room) : value;\n if (room == null) return fallbackMaxWidth == null ? void 0 : { maxWidth: fallbackMaxWidth };\n return {\n maxWidth: fit(props.maxWidth ?? fallbackMaxWidth ?? room),\n ...props.minWidth != null ? { minWidth: fit(props.minWidth) } : void 0,\n ...props.width != null ? { width: fit(props.width) } : void 0\n };\n}\nconst DialogContentInner = forwardRef(function DialogContentInner2({ children, onOpenAutoFocus, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"DialogContent\" });\n const { contentId } = useDialogContext();\n const openFocus = withHouseOpenFocus(onOpenAutoFocus, contentId);\n const windowFit = useWindowFit(props);\n return /* @__PURE__ */ jsx(\n Dialog.Content,\n {\n ref,\n position: \"relative\",\n pointerEvents: \"auto\",\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n onOpenAutoFocus: openFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n});\nconst scrimFade = { opacity: { enter: 0, exit: 0 } };\nconst DialogOverlay = forwardRef(function DialogOverlay2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs();\n const sheetFace = useDialogSheetFace();\n if (sheetFace) return null;\n return /* @__PURE__ */ jsx(\n Dialog.Overlay,\n {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n }\n );\n});\nconst AlertDialogContent = forwardRef(\n function AlertDialogContent2({ children, size = \"4\", ...props }, ref) {\n return /* @__PURE__ */ jsx(Surface, { size, painted: false, elevated: true, children: /* @__PURE__ */ jsx(AlertDialogContentInner, { ref, ...props, children }) });\n }\n);\nconst AlertDialogContentInner = forwardRef(function AlertDialogContentInner2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"AlertDialogContent\" });\n const windowFit = useWindowFit(props, ALERT_READABLE_WIDTH);\n return /* @__PURE__ */ jsx(\n AlertDialog.Content,\n {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n});\nconst AlertDialogOverlay = forwardRef(function AlertDialogOverlay2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs();\n return /* @__PURE__ */ jsx(\n AlertDialog.Overlay,\n {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n }\n );\n});\nconst PopoverContent = forwardRef(\n function PopoverContent2({ children, onOpenAutoFocus: _onOpenAutoFocus, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"PopoverContent\", painted: false });\n return /* @__PURE__ */ jsx(\n YStack,\n {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n children: /* @__PURE__ */ jsx(Surface, { painted: false, elevated: true, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n }\n);\nexport {\n AlertDialogContent,\n AlertDialogOverlay,\n DialogContent,\n DialogOverlay,\n DialogRegionContext,\n DialogSheetFaceProvider,\n PopoverContent,\n SheetBodyProvider,\n dialogScrim,\n overlayScrim,\n sheetGrabber,\n sheetGrabberClearance,\n sheetGrabberZone,\n sheetHandle,\n sheetHandleTone,\n sheetHandleWidthRatio,\n sheetHandleZone,\n sheetScrim,\n useDialogRegionContext,\n useDialogSheetFace,\n useIsInDialogRegion,\n useIsInSheetBody\n};\n//# sourceMappingURL=overlaySurfaces.js.map\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,eAAe;AACrB,MAAM,eAAe;CACnB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc,CAAC;CACf,QAAQ;AACV;AACA,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;CACvB,WAAW;CACX,YAAY;CACZ,QAAQ;AACV;AACA,MAAM,wBAAwB;AAC9B,MAAM,cAAc;CAClB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc;CACd,QAAQ;AACV;AACA,MAAM,kBAAkB;CACtB,WAAW;CACX,YAAY;CACZ,YAAY;AACd;AACA,MAAM,sBAAsB;CAAE,iBAAiB;CAAY,SAAS;AAAE;AACtE,SAAS,gBAAgB,SAAS;CAChC,OAAO;AACT;AACA,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ACF,CACF;AACF,CAAC;AACD,MAAM,iBAAiB,WACrB,SAAS,gBAAgB,EAAE,UAAU,iBAAiB,kBAAkB,GAAG,SAAS,KAAK;CACvF,MAAM,EAAE,cAAc,iBAAiB;EAAE,WAAW;EAAkB,SAAS;CAAM,CAAC;CACtF,OAAuB,oBACrB,QACA;EACE;EACA,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,gBAAgB,UAAU,OAAO,OAAO;EAC3C,GAAG;EACH,GAAG;EACH,GAAG;EACH,UAA0B,oBAAI,SAAS;GAAE,SAAS;GAAO,UAAU;GAAM,UAA0B,oBAAI,iBAAiB,UAAU;IAAE,OAAO;IAAO;GAAS,CAAC;EAAE,CAAC;CACjK,CACF;AACF,CACF"}
|
|
1
|
+
{"version":3,"file":"overlaySurfaces.js","names":[],"sources":["esm/theme/overlaySurfaces.js"],"sourcesContent":["import { focusOnOpen } from \"../keyboardFocusRing\";\nimport { scrimFor } from \"./motion\";\nimport { transitionProps } from \"./transitionProps\";\nimport { Surface } from \"./Surface\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { ALERT_READABLE_WIDTH } from \"./layoutTokens\";\nimport { panelPaddingPx } from \"./resolveKnobs\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport {\n AlertDialog,\n Dialog,\n useDialogContext,\n useWindowDimensions,\n YStack\n} from \"tamagui\";\nimport { jsx } from \"react/jsx-runtime\";\nconst dialogScrim = \"$scrim-dialog\";\nconst sheetScrim = \"$scrim-sheet\";\nconst overlayScrim = dialogScrim;\nconst sheetGrabber = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nconst sheetGrabberClearance = 16;\nconst sheetGrabberZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n height: 21\n};\nconst sheetHandleWidthRatio = 0.3;\nconst sheetHandle = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nconst sheetHandleZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n paddingTop: 0,\n height: 21\n};\nconst sheetHandleToneOpen = { backgroundColor: \"$color-12\", opacity: 0.3 };\nfunction sheetHandleTone(_scheme) {\n return sheetHandleToneOpen;\n}\nconst overlayFrameFocus = {\n outlineWidth: { default: 0, focus: 0, \"focus-visible\": 0 },\n outlineStyle: { default: \"none\", focus: \"none\", \"focus-visible\": \"none\" }\n};\nfunction isTabbableWithin(node, container) {\n if (node.tabIndex < 0 || node.hidden || node.tagName === \"A\") return false;\n if (node.disabled) return false;\n if (typeof HTMLInputElement !== \"undefined\" && node instanceof HTMLInputElement && node.type === \"hidden\") {\n return false;\n }\n if (getComputedStyle(node).visibility === \"hidden\") return false;\n for (let el = node; el && el !== container; el = el.parentElement) {\n if (getComputedStyle(el).display === \"none\") return false;\n }\n return true;\n}\nfunction focusFirstTabbableOnOpen(details, container) {\n if (typeof HTMLElement === \"undefined\" || !(container instanceof HTMLElement)) return;\n const first = Array.from(container.querySelectorAll(\"*\")).find(\n (node) => isTabbableWithin(node, container)\n );\n if (!first) return;\n details.cancel();\n const focused = focusOnOpen(first, container);\n if (typeof HTMLInputElement !== \"undefined\" && focused instanceof HTMLInputElement) {\n focused.select();\n }\n}\nfunction withHouseOpenFocus(onOpenAutoFocus, contentId) {\n return (details) => {\n onOpenAutoFocus?.(details);\n if (!details.isCanceled) focusFirstTabbableOnOpen(details, contentById(contentId));\n };\n}\nfunction contentById(contentId) {\n if (!contentId || typeof document === \"undefined\") return null;\n return document.getElementById(contentId);\n}\nconst DialogRegionContext = createContext({\n inDialogRegion: false\n});\nfunction useDialogRegionContext() {\n return useContext(DialogRegionContext);\n}\nfunction useIsInDialogRegion() {\n return useDialogRegionContext().inDialogRegion;\n}\nconst IN_DIALOG_REGION = { inDialogRegion: true };\nconst SheetBodyContext = createContext(false);\nconst SheetBodyInsetContext = createContext(0);\nconst SheetBodyInsetProvider = SheetBodyInsetContext.Provider;\nfunction useSheetBodyInset() {\n return useContext(SheetBodyInsetContext);\n}\nconst SheetBodyProvider = SheetBodyContext.Provider;\nfunction useIsInSheetBody() {\n return useContext(SheetBodyContext);\n}\nconst DialogSheetFaceContext = createContext(false);\nconst DialogSheetFaceProvider = DialogSheetFaceContext.Provider;\nfunction useDialogSheetFace() {\n return useContext(DialogSheetFaceContext);\n}\nconst DialogSheetBody = forwardRef(\n function DialogSheetBody2({ children }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"DialogContent\" });\n return /* @__PURE__ */ jsx(YStack, { ref, ...knobProps.gap, ...{ \"data-mp-dialog-face\": \"sheet\" }, children: /* @__PURE__ */ jsx(DialogSheetFaceContext.Provider, { value: false, children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children }) }) });\n }\n);\nconst overlayEnterExit = {\n opacity: { enter: 0, exit: 0 },\n y: { enter: -4, exit: -4 },\n scale: { enter: 0.97, exit: 0.97 }\n};\nconst DialogContent = forwardRef(function DialogContent2({ children, size = \"4\", ...props }, ref) {\n if (useDialogSheetFace()) return /* @__PURE__ */ jsx(DialogSheetBody, { ref, children });\n return /* @__PURE__ */ jsx(Surface, { size, painted: false, elevated: true, children: /* @__PURE__ */ jsx(DialogContentInner, { ref, ...props, children }) });\n});\nfunction useWindowFit(props, fallbackMaxWidth) {\n const { width: windowWidth } = useWindowDimensions();\n const room = windowWidth > 0 ? Math.max(0, windowWidth - 2 * panelPaddingPx()) : void 0;\n const fit = (value) => room != null && typeof value === \"number\" ? Math.min(value, room) : value;\n if (room == null) return fallbackMaxWidth == null ? void 0 : { maxWidth: fallbackMaxWidth };\n return {\n maxWidth: fit(props.maxWidth ?? fallbackMaxWidth ?? room),\n ...props.minWidth != null ? { minWidth: fit(props.minWidth) } : void 0,\n ...props.width != null ? { width: fit(props.width) } : void 0\n };\n}\nconst DialogContentInner = forwardRef(function DialogContentInner2({ children, onOpenAutoFocus, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"DialogContent\" });\n const { contentId } = useDialogContext();\n const openFocus = withHouseOpenFocus(onOpenAutoFocus, contentId);\n const windowFit = useWindowFit(props);\n return /* @__PURE__ */ jsx(\n Dialog.Content,\n {\n ref,\n position: \"relative\",\n pointerEvents: \"auto\",\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n onOpenAutoFocus: openFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n});\nconst scrimFade = { opacity: { enter: 0, exit: 0 } };\nconst DialogOverlay = forwardRef(function DialogOverlay2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs();\n const sheetFace = useDialogSheetFace();\n if (sheetFace) return null;\n return /* @__PURE__ */ jsx(\n Dialog.Overlay,\n {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n }\n );\n});\nconst AlertDialogContent = forwardRef(\n function AlertDialogContent2({ children, size = \"4\", ...props }, ref) {\n return /* @__PURE__ */ jsx(Surface, { size, painted: false, elevated: true, children: /* @__PURE__ */ jsx(AlertDialogContentInner, { ref, ...props, children }) });\n }\n);\nconst AlertDialogContentInner = forwardRef(function AlertDialogContentInner2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"AlertDialogContent\" });\n const windowFit = useWindowFit(props, ALERT_READABLE_WIDTH);\n return /* @__PURE__ */ jsx(\n AlertDialog.Content,\n {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ jsx(DialogRegionContext.Provider, { value: IN_DIALOG_REGION, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n});\nconst AlertDialogOverlay = forwardRef(function AlertDialogOverlay2({ children, ...props }, ref) {\n const { knobProps } = useResolvedKnobs();\n return /* @__PURE__ */ jsx(\n AlertDialog.Overlay,\n {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n }\n );\n});\nconst PopoverContent = forwardRef(\n function PopoverContent2({ children, onOpenAutoFocus: _onOpenAutoFocus, ...props }, ref) {\n const { knobProps } = useResolvedKnobs({ component: \"PopoverContent\", painted: false });\n return /* @__PURE__ */ jsx(\n YStack,\n {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n children: /* @__PURE__ */ jsx(Surface, { painted: false, elevated: true, children: /* @__PURE__ */ jsx(SheetBodyContext.Provider, { value: false, children }) })\n }\n );\n }\n);\nexport {\n AlertDialogContent,\n AlertDialogOverlay,\n DialogContent,\n DialogOverlay,\n DialogRegionContext,\n DialogSheetFaceProvider,\n PopoverContent,\n SheetBodyInsetProvider,\n SheetBodyProvider,\n dialogScrim,\n overlayScrim,\n sheetGrabber,\n sheetGrabberClearance,\n sheetGrabberZone,\n sheetHandle,\n sheetHandleTone,\n sheetHandleWidthRatio,\n sheetHandleZone,\n sheetScrim,\n useDialogRegionContext,\n useDialogSheetFace,\n useIsInDialogRegion,\n useIsInSheetBody,\n useSheetBodyInset\n};\n//# sourceMappingURL=overlaySurfaces.js.map\n"],"mappings":";;;;;;;;;;;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GrabberZone = {
|
|
|
32
32
|
};
|
|
33
33
|
var sheetHandleWidthRatio = .3;
|
|
34
34
|
var sheetHandle = {
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
35
|
+
width: 36,
|
|
36
|
+
height: 5,
|
|
37
37
|
borderRadius: 100,
|
|
38
|
-
backgroundColor: "$color-
|
|
39
|
-
opacity:
|
|
38
|
+
backgroundColor: "$color-12",
|
|
39
|
+
opacity: .3,
|
|
40
40
|
alignSelf: "center",
|
|
41
41
|
marginHorizontal: 0,
|
|
42
|
-
marginTop:
|
|
43
|
-
marginBottom:
|
|
42
|
+
marginTop: 5,
|
|
43
|
+
marginBottom: -10,
|
|
44
44
|
zIndex: 10
|
|
45
45
|
};
|
|
46
46
|
var sheetHandleZone = {
|
|
47
47
|
alignSelf: "stretch",
|
|
48
48
|
alignItems: "center",
|
|
49
|
-
paddingTop:
|
|
49
|
+
paddingTop: 0,
|
|
50
|
+
height: 21
|
|
50
51
|
};
|
|
51
52
|
var sheetHandleToneOpen = {
|
|
52
|
-
backgroundColor: "$color-
|
|
53
|
-
opacity:
|
|
53
|
+
backgroundColor: "$color-12",
|
|
54
|
+
opacity: .3
|
|
54
55
|
};
|
|
55
56
|
function sheetHandleTone(_scheme) {
|
|
56
57
|
return sheetHandleToneOpen;
|
|
@@ -110,6 +111,11 @@ function useIsInDialogRegion() {
|
|
|
110
111
|
}
|
|
111
112
|
var IN_DIALOG_REGION = { inDialogRegion: true };
|
|
112
113
|
var SheetBodyContext = /* @__PURE__ */ createContext(false);
|
|
114
|
+
var SheetBodyInsetContext = /* @__PURE__ */ createContext(0);
|
|
115
|
+
var SheetBodyInsetProvider = SheetBodyInsetContext.Provider;
|
|
116
|
+
function useSheetBodyInset() {
|
|
117
|
+
return useContext(SheetBodyInsetContext);
|
|
118
|
+
}
|
|
113
119
|
var SheetBodyProvider = SheetBodyContext.Provider;
|
|
114
120
|
function useIsInSheetBody() {
|
|
115
121
|
return useContext(SheetBodyContext);
|
|
@@ -303,5 +309,5 @@ var PopoverContent = /* @__PURE__ */ forwardRef(function PopoverContent2(param,
|
|
|
303
309
|
});
|
|
304
310
|
});
|
|
305
311
|
|
|
306
|
-
export { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody };
|
|
312
|
+
export { AlertDialogContent, AlertDialogOverlay, DialogContent, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, PopoverContent, SheetBodyInsetProvider, SheetBodyProvider, dialogScrim, overlayScrim, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, sheetScrim, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody, useSheetBodyInset };
|
|
307
313
|
//# sourceMappingURL=overlaySurfaces.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlaySurfaces.native.js","names":[],"sources":["esm/theme/overlaySurfaces.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { focusOnOpen } from \"../keyboardFocusRing\";\nimport { scrimFor } from \"./motion\";\nimport { transitionProps } from \"./transitionProps\";\nimport { Surface } from \"./Surface\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { ALERT_READABLE_WIDTH } from \"./layoutTokens\";\nimport { panelPaddingPx } from \"./resolveKnobs\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { AlertDialog, Dialog, useDialogContext, useWindowDimensions, YStack } from \"tamagui\";\nvar dialogScrim = \"$scrim-dialog\";\nvar sheetScrim = \"$scrim-sheet\";\nvar overlayScrim = dialogScrim;\nvar sheetGrabber = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nvar sheetGrabberClearance = 16;\nvar sheetGrabberZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n height: 21\n};\nvar sheetHandleWidthRatio = 0.3;\nvar sheetHandle = {\n width: \"30%\",\n height: 10,\n borderRadius: 100,\n backgroundColor: \"$color-5\",\n opacity: 1,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 0,\n marginBottom: 8,\n zIndex: 10\n};\nvar sheetHandleZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n paddingTop: 8\n};\nvar sheetHandleToneOpen = {\n backgroundColor: \"$color-5\",\n opacity: 1\n};\nfunction sheetHandleTone(_scheme) {\n return sheetHandleToneOpen;\n}\nvar overlayFrameFocus = {\n outlineWidth: {\n default: 0,\n focus: 0,\n \"focus-visible\": 0\n },\n outlineStyle: {\n default: \"none\",\n focus: \"none\",\n \"focus-visible\": \"none\"\n }\n};\nfunction isTabbableWithin(node, container) {\n if (node.tabIndex < 0 || node.hidden || node.tagName === \"A\") return false;\n if (node.disabled) return false;\n if (typeof HTMLInputElement !== \"undefined\" && node instanceof HTMLInputElement && node.type === \"hidden\") {\n return false;\n }\n if (getComputedStyle(node).visibility === \"hidden\") return false;\n for (var el = node; el && el !== container; el = el.parentElement) {\n if (getComputedStyle(el).display === \"none\") return false;\n }\n return true;\n}\nfunction focusFirstTabbableOnOpen(details, container) {\n if (typeof HTMLElement === \"undefined\" || !(container instanceof HTMLElement)) return;\n var first = Array.from(container.querySelectorAll(\"*\")).find(function(node) {\n return isTabbableWithin(node, container);\n });\n if (!first) return;\n details.cancel();\n var focused = focusOnOpen(first, container);\n if (typeof HTMLInputElement !== \"undefined\" && focused instanceof HTMLInputElement) {\n focused.select();\n }\n}\nfunction withHouseOpenFocus(onOpenAutoFocus, contentId) {\n return function(details) {\n onOpenAutoFocus === null || onOpenAutoFocus === void 0 ? void 0 : onOpenAutoFocus(details);\n if (!details.isCanceled) focusFirstTabbableOnOpen(details, contentById(contentId));\n };\n}\nfunction contentById(contentId) {\n if (!contentId || typeof document === \"undefined\") return null;\n return document.getElementById(contentId);\n}\nvar DialogRegionContext = /* @__PURE__ */ createContext({\n inDialogRegion: false\n});\nfunction useDialogRegionContext() {\n return useContext(DialogRegionContext);\n}\nfunction useIsInDialogRegion() {\n return useDialogRegionContext().inDialogRegion;\n}\nvar IN_DIALOG_REGION = {\n inDialogRegion: true\n};\nvar SheetBodyContext = /* @__PURE__ */ createContext(false);\nvar SheetBodyProvider = SheetBodyContext.Provider;\nfunction useIsInSheetBody() {\n return useContext(SheetBodyContext);\n}\nvar DialogSheetFaceContext = /* @__PURE__ */ createContext(false);\nvar DialogSheetFaceProvider = DialogSheetFaceContext.Provider;\nfunction useDialogSheetFace() {\n return useContext(DialogSheetFaceContext);\n}\nvar DialogSheetBody = /* @__PURE__ */ forwardRef(function DialogSheetBody2(param, ref) {\n var { children } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"DialogContent\"\n });\n return /* @__PURE__ */ _jsx(YStack, {\n ref,\n ...knobProps.gap,\n ...{\n \"data-mp-dialog-face\": \"sheet\"\n },\n children: /* @__PURE__ */ _jsx(DialogSheetFaceContext.Provider, {\n value: false,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children\n })\n })\n });\n});\nvar overlayEnterExit = {\n opacity: {\n enter: 0,\n exit: 0\n },\n y: {\n enter: -4,\n exit: -4\n },\n scale: {\n enter: 0.97,\n exit: 0.97\n }\n};\nvar DialogContent = /* @__PURE__ */ forwardRef(function DialogContent2(param, ref) {\n var { children, size = \"4\", ...props } = param;\n if (useDialogSheetFace()) return /* @__PURE__ */ _jsx(DialogSheetBody, {\n ref,\n children\n });\n return /* @__PURE__ */ _jsx(Surface, {\n size,\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(DialogContentInner, {\n ref,\n ...props,\n children\n })\n });\n});\nfunction useWindowFit(props, fallbackMaxWidth) {\n var _ref, _props_maxWidth;\n var { width: windowWidth } = useWindowDimensions();\n var room = windowWidth > 0 ? Math.max(0, windowWidth - 2 * panelPaddingPx()) : void 0;\n var fit = function fit2(value) {\n return room != null && typeof value === \"number\" ? Math.min(value, room) : value;\n };\n if (room == null) return fallbackMaxWidth == null ? void 0 : {\n maxWidth: fallbackMaxWidth\n };\n return {\n maxWidth: fit((_ref = (_props_maxWidth = props.maxWidth) !== null && _props_maxWidth !== void 0 ? _props_maxWidth : fallbackMaxWidth) !== null && _ref !== void 0 ? _ref : room),\n ...props.minWidth != null ? {\n minWidth: fit(props.minWidth)\n } : void 0,\n ...props.width != null ? {\n width: fit(props.width)\n } : void 0\n };\n}\nvar DialogContentInner = /* @__PURE__ */ forwardRef(function DialogContentInner2(param, ref) {\n var { children, onOpenAutoFocus, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"DialogContent\"\n });\n var { contentId } = useDialogContext();\n var openFocus = withHouseOpenFocus(onOpenAutoFocus, contentId);\n var windowFit = useWindowFit(props);\n return /* @__PURE__ */ _jsx(Dialog.Content, {\n ref,\n position: \"relative\",\n pointerEvents: \"auto\",\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n onOpenAutoFocus: openFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nvar scrimFade = {\n opacity: {\n enter: 0,\n exit: 0\n }\n};\nvar DialogOverlay = /* @__PURE__ */ forwardRef(function DialogOverlay2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs();\n var sheetFace = useDialogSheetFace();\n if (sheetFace) return null;\n return /* @__PURE__ */ _jsx(Dialog.Overlay, {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n });\n});\nvar AlertDialogContent = /* @__PURE__ */ forwardRef(function AlertDialogContent2(param, ref) {\n var { children, size = \"4\", ...props } = param;\n return /* @__PURE__ */ _jsx(Surface, {\n size,\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(AlertDialogContentInner, {\n ref,\n ...props,\n children\n })\n });\n});\nvar AlertDialogContentInner = /* @__PURE__ */ forwardRef(function AlertDialogContentInner2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"AlertDialogContent\"\n });\n var windowFit = useWindowFit(props, ALERT_READABLE_WIDTH);\n return /* @__PURE__ */ _jsx(AlertDialog.Content, {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nvar AlertDialogOverlay = /* @__PURE__ */ forwardRef(function AlertDialogOverlay2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs();\n return /* @__PURE__ */ _jsx(AlertDialog.Overlay, {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n });\n});\nvar PopoverContent = /* @__PURE__ */ forwardRef(function PopoverContent2(param, ref) {\n var { children, onOpenAutoFocus: _onOpenAutoFocus, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"PopoverContent\",\n painted: false\n });\n return /* @__PURE__ */ _jsx(YStack, {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n children: /* @__PURE__ */ _jsx(Surface, {\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nexport {\n AlertDialogContent,\n AlertDialogOverlay,\n DialogContent,\n DialogOverlay,\n DialogRegionContext,\n DialogSheetFaceProvider,\n PopoverContent,\n SheetBodyProvider,\n dialogScrim,\n overlayScrim,\n sheetGrabber,\n sheetGrabberClearance,\n sheetGrabberZone,\n sheetHandle,\n sheetHandleTone,\n sheetHandleWidthRatio,\n sheetHandleZone,\n sheetScrim,\n useDialogRegionContext,\n useDialogSheetFace,\n useIsInDialogRegion,\n useIsInSheetBody\n};\n//# sourceMappingURL=overlaySurfaces.js.map\n"],"mappings":";;;;;;;;;;;;AAUA,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,eAAe;AACnB,IAAI,eAAe;CACjB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc,CAAC;CACf,QAAQ;AACV;AACA,IAAI,wBAAwB;AAC5B,IAAI,mBAAmB;CACrB,WAAW;CACX,YAAY;CACZ,QAAQ;AACV;AACA,IAAI,wBAAwB;AAC5B,IAAI,cAAc;CAChB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc;CACd,QAAQ;AACV;AACA,IAAI,kBAAkB;CACpB,WAAW;CACX,YAAY;CACZ,YAAY;AACd;AACA,IAAI,sBAAsB;CACxB,iBAAiB;CACjB,SAAS;AACX;AACA,SAAS,gBAAgB,SAAS;CAChC,OAAO;AACT;AACA,IAAI,oBAA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D,IAAI,qBAAqC,2BAAW,SAAS,oBAAoB,OAAO,KAAK;CAC3F,IAAI,EAAE,UAAU,GAAG,UAAU;CAC7B,IAAI,EAAE,cAAc,iBAAiB;CACrC,OAAuB,oBAAK,YAAY,SAAS;EAC/C;EACA,iBAAiB;EACjB,GAAG,gBAAgB,SAAS,UAAU,OAAO,OAAO,CAAC;EACrD,GAAG;EACH,GAAG;EACH;CACF,CAAC;AACH,CAAC;AACD,IAAI,iBAAiC,2BAAW,SAAS,gBAAgB,OAAO,KAAK;CACnF,IAAI,EAAE,UAAU,iBAAiB,kBAAkB,GAAG,UAAU;CAChE,IAAI,EAAE,cAAc,iBAAiB;EACnC,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAuB,oBAAK,QAAQ;EAClC;EACA,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,gBAAgB,UAAU,OAAO,OAAO;EAC3C,GAAG;EACH,GAAG;EACH,GAAG;EACH,UAA0B,oBAAK,SAAS;GACtC,SAAS;GACT,UAAU;GACV,UAA0B,oBAAK,iBAAiB,UAAU;IACxD,OAAO;IACP;GACF,CAAC;EACH,CAAC;CACH,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"overlaySurfaces.native.js","names":[],"sources":["esm/theme/overlaySurfaces.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { focusOnOpen } from \"../keyboardFocusRing\";\nimport { scrimFor } from \"./motion\";\nimport { transitionProps } from \"./transitionProps\";\nimport { Surface } from \"./Surface\";\nimport { useResolvedKnobs } from \"./useResolvedKnobs\";\nimport { ALERT_READABLE_WIDTH } from \"./layoutTokens\";\nimport { panelPaddingPx } from \"./resolveKnobs\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { AlertDialog, Dialog, useDialogContext, useWindowDimensions, YStack } from \"tamagui\";\nvar dialogScrim = \"$scrim-dialog\";\nvar sheetScrim = \"$scrim-sheet\";\nvar overlayScrim = dialogScrim;\nvar sheetGrabber = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nvar sheetGrabberClearance = 16;\nvar sheetGrabberZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n height: 21\n};\nvar sheetHandleWidthRatio = 0.3;\nvar sheetHandle = {\n width: 36,\n height: 5,\n borderRadius: 100,\n backgroundColor: \"$color-12\",\n opacity: 0.3,\n alignSelf: \"center\",\n marginHorizontal: 0,\n marginTop: 5,\n marginBottom: -10,\n zIndex: 10\n};\nvar sheetHandleZone = {\n alignSelf: \"stretch\",\n alignItems: \"center\",\n paddingTop: 0,\n height: 21\n};\nvar sheetHandleToneOpen = {\n backgroundColor: \"$color-12\",\n opacity: 0.3\n};\nfunction sheetHandleTone(_scheme) {\n return sheetHandleToneOpen;\n}\nvar overlayFrameFocus = {\n outlineWidth: {\n default: 0,\n focus: 0,\n \"focus-visible\": 0\n },\n outlineStyle: {\n default: \"none\",\n focus: \"none\",\n \"focus-visible\": \"none\"\n }\n};\nfunction isTabbableWithin(node, container) {\n if (node.tabIndex < 0 || node.hidden || node.tagName === \"A\") return false;\n if (node.disabled) return false;\n if (typeof HTMLInputElement !== \"undefined\" && node instanceof HTMLInputElement && node.type === \"hidden\") {\n return false;\n }\n if (getComputedStyle(node).visibility === \"hidden\") return false;\n for (var el = node; el && el !== container; el = el.parentElement) {\n if (getComputedStyle(el).display === \"none\") return false;\n }\n return true;\n}\nfunction focusFirstTabbableOnOpen(details, container) {\n if (typeof HTMLElement === \"undefined\" || !(container instanceof HTMLElement)) return;\n var first = Array.from(container.querySelectorAll(\"*\")).find(function(node) {\n return isTabbableWithin(node, container);\n });\n if (!first) return;\n details.cancel();\n var focused = focusOnOpen(first, container);\n if (typeof HTMLInputElement !== \"undefined\" && focused instanceof HTMLInputElement) {\n focused.select();\n }\n}\nfunction withHouseOpenFocus(onOpenAutoFocus, contentId) {\n return function(details) {\n onOpenAutoFocus === null || onOpenAutoFocus === void 0 ? void 0 : onOpenAutoFocus(details);\n if (!details.isCanceled) focusFirstTabbableOnOpen(details, contentById(contentId));\n };\n}\nfunction contentById(contentId) {\n if (!contentId || typeof document === \"undefined\") return null;\n return document.getElementById(contentId);\n}\nvar DialogRegionContext = /* @__PURE__ */ createContext({\n inDialogRegion: false\n});\nfunction useDialogRegionContext() {\n return useContext(DialogRegionContext);\n}\nfunction useIsInDialogRegion() {\n return useDialogRegionContext().inDialogRegion;\n}\nvar IN_DIALOG_REGION = {\n inDialogRegion: true\n};\nvar SheetBodyContext = /* @__PURE__ */ createContext(false);\nvar SheetBodyInsetContext = /* @__PURE__ */ createContext(0);\nvar SheetBodyInsetProvider = SheetBodyInsetContext.Provider;\nfunction useSheetBodyInset() {\n return useContext(SheetBodyInsetContext);\n}\nvar SheetBodyProvider = SheetBodyContext.Provider;\nfunction useIsInSheetBody() {\n return useContext(SheetBodyContext);\n}\nvar DialogSheetFaceContext = /* @__PURE__ */ createContext(false);\nvar DialogSheetFaceProvider = DialogSheetFaceContext.Provider;\nfunction useDialogSheetFace() {\n return useContext(DialogSheetFaceContext);\n}\nvar DialogSheetBody = /* @__PURE__ */ forwardRef(function DialogSheetBody2(param, ref) {\n var { children } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"DialogContent\"\n });\n return /* @__PURE__ */ _jsx(YStack, {\n ref,\n ...knobProps.gap,\n ...{\n \"data-mp-dialog-face\": \"sheet\"\n },\n children: /* @__PURE__ */ _jsx(DialogSheetFaceContext.Provider, {\n value: false,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children\n })\n })\n });\n});\nvar overlayEnterExit = {\n opacity: {\n enter: 0,\n exit: 0\n },\n y: {\n enter: -4,\n exit: -4\n },\n scale: {\n enter: 0.97,\n exit: 0.97\n }\n};\nvar DialogContent = /* @__PURE__ */ forwardRef(function DialogContent2(param, ref) {\n var { children, size = \"4\", ...props } = param;\n if (useDialogSheetFace()) return /* @__PURE__ */ _jsx(DialogSheetBody, {\n ref,\n children\n });\n return /* @__PURE__ */ _jsx(Surface, {\n size,\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(DialogContentInner, {\n ref,\n ...props,\n children\n })\n });\n});\nfunction useWindowFit(props, fallbackMaxWidth) {\n var _ref, _props_maxWidth;\n var { width: windowWidth } = useWindowDimensions();\n var room = windowWidth > 0 ? Math.max(0, windowWidth - 2 * panelPaddingPx()) : void 0;\n var fit = function fit2(value) {\n return room != null && typeof value === \"number\" ? Math.min(value, room) : value;\n };\n if (room == null) return fallbackMaxWidth == null ? void 0 : {\n maxWidth: fallbackMaxWidth\n };\n return {\n maxWidth: fit((_ref = (_props_maxWidth = props.maxWidth) !== null && _props_maxWidth !== void 0 ? _props_maxWidth : fallbackMaxWidth) !== null && _ref !== void 0 ? _ref : room),\n ...props.minWidth != null ? {\n minWidth: fit(props.minWidth)\n } : void 0,\n ...props.width != null ? {\n width: fit(props.width)\n } : void 0\n };\n}\nvar DialogContentInner = /* @__PURE__ */ forwardRef(function DialogContentInner2(param, ref) {\n var { children, onOpenAutoFocus, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"DialogContent\"\n });\n var { contentId } = useDialogContext();\n var openFocus = withHouseOpenFocus(onOpenAutoFocus, contentId);\n var windowFit = useWindowFit(props);\n return /* @__PURE__ */ _jsx(Dialog.Content, {\n ref,\n position: \"relative\",\n pointerEvents: \"auto\",\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n onOpenAutoFocus: openFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nvar scrimFade = {\n opacity: {\n enter: 0,\n exit: 0\n }\n};\nvar DialogOverlay = /* @__PURE__ */ forwardRef(function DialogOverlay2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs();\n var sheetFace = useDialogSheetFace();\n if (sheetFace) return null;\n return /* @__PURE__ */ _jsx(Dialog.Overlay, {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n });\n});\nvar AlertDialogContent = /* @__PURE__ */ forwardRef(function AlertDialogContent2(param, ref) {\n var { children, size = \"4\", ...props } = param;\n return /* @__PURE__ */ _jsx(Surface, {\n size,\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(AlertDialogContentInner, {\n ref,\n ...props,\n children\n })\n });\n});\nvar AlertDialogContentInner = /* @__PURE__ */ forwardRef(function AlertDialogContentInner2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"AlertDialogContent\"\n });\n var windowFit = useWindowFit(props, ALERT_READABLE_WIDTH);\n return /* @__PURE__ */ _jsx(AlertDialog.Content, {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...knobProps.panelPadding,\n ...knobProps.gap,\n elevate: false,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n ...windowFit,\n children: /* @__PURE__ */ _jsx(DialogRegionContext.Provider, {\n value: IN_DIALOG_REGION,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nvar AlertDialogOverlay = /* @__PURE__ */ forwardRef(function AlertDialogOverlay2(param, ref) {\n var { children, ...props } = param;\n var { knobProps } = useResolvedKnobs();\n return /* @__PURE__ */ _jsx(AlertDialog.Overlay, {\n ref,\n backgroundColor: dialogScrim,\n ...transitionProps(scrimFor(knobProps.motion.overlay)),\n ...scrimFade,\n ...props,\n children\n });\n});\nvar PopoverContent = /* @__PURE__ */ forwardRef(function PopoverContent2(param, ref) {\n var { children, onOpenAutoFocus: _onOpenAutoFocus, ...props } = param;\n var { knobProps } = useResolvedKnobs({\n component: \"PopoverContent\",\n painted: false\n });\n return /* @__PURE__ */ _jsx(YStack, {\n ref,\n ...knobProps.elevatedSurface,\n ...knobProps.containerRadius,\n ...transitionProps(knobProps.motion.overlay),\n ...overlayEnterExit,\n ...overlayFrameFocus,\n ...props,\n children: /* @__PURE__ */ _jsx(Surface, {\n painted: false,\n elevated: true,\n children: /* @__PURE__ */ _jsx(SheetBodyContext.Provider, {\n value: false,\n children\n })\n })\n });\n});\nexport {\n AlertDialogContent,\n AlertDialogOverlay,\n DialogContent,\n DialogOverlay,\n DialogRegionContext,\n DialogSheetFaceProvider,\n PopoverContent,\n SheetBodyInsetProvider,\n SheetBodyProvider,\n dialogScrim,\n overlayScrim,\n sheetGrabber,\n sheetGrabberClearance,\n sheetGrabberZone,\n sheetHandle,\n sheetHandleTone,\n sheetHandleWidthRatio,\n sheetHandleZone,\n sheetScrim,\n useDialogRegionContext,\n useDialogSheetFace,\n useIsInDialogRegion,\n useIsInSheetBody,\n useSheetBodyInset\n};\n//# sourceMappingURL=overlaySurfaces.js.map\n"],"mappings":";;;;;;;;;;;;AAUA,IAAI,cAAc;AAClB,IAAI,aAAa;AACjB,IAAI,eAAe;AACnB,IAAI,eAAe;CACjB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc,CAAC;CACf,QAAQ;AACV;AACA,IAAI,wBAAwB;AAC5B,IAAI,mBAAmB;CACrB,WAAW;CACX,YAAY;CACZ,QAAQ;AACV;AACA,IAAI,wBAAwB;AAC5B,IAAI,cAAc;CAChB,OAAO;CACP,QAAQ;CACR,cAAc;CACd,iBAAiB;CACjB,SAAS;CACT,WAAW;CACX,kBAAkB;CAClB,WAAW;CACX,cAAc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AY,SAAS;EAC/C;EACA,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,UAAU;EACb,SAAS;EACT,GAAG,gBAAgB,UAAU,OAAO,OAAO;EAC3C,GAAG;EACH,GAAG;EACH,GAAG;EACH,GAAG;EACH,UAA0B,oBAAK,oBAAoB,UAAU;GAC3D,OAAO;GACP,UAA0B,oBAAK,iBAAiB,UAAU;IACxD,OAAO;IACP;GACF,CAAC;EACH,CAAC;CACH,CAAC;AACH,CAAC;AACD,IAAI,qBAAqC,2BAAW,SAAS,oBAAoB,OAAO,KAAK;CAC3F,IAAI,EAAE,UAAU,GAAG,UAAU;CAC7B,IAAI,EAAE,cAAc,iBAAiB;CACrC,OAAuB,oBAAK,YAAY,SAAS;EAC/C;EACA,iBAAiB;EACjB,GAAG,gBAAgB,SAAS,UAAU,OAAO,OAAO,CAAC;EACrD,GAAG;EACH,GAAG;EACH;CACF,CAAC;AACH,CAAC;AACD,IAAI,iBAAiC,2BAAW,SAAS,gBAAgB,OAAO,KAAK;CACnF,IAAI,EAAE,UAAU,iBAAiB,kBAAkB,GAAG,UAAU;CAChE,IAAI,EAAE,cAAc,iBAAiB;EACnC,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAuB,oBAAK,QAAQ;EAClC;EACA,GAAG,UAAU;EACb,GAAG,UAAU;EACb,GAAG,gBAAgB,UAAU,OAAO,OAAO;EAC3C,GAAG;EACH,GAAG;EACH,GAAG;EACH,UAA0B,oBAAK,SAAS;GACtC,SAAS;GACT,UAAU;GACV,UAA0B,oBAAK,iBAAiB,UAAU;IACxD,OAAO;IACP;GACF,CAAC;EACH,CAAC;CACH,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/theme",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Tamagui theme system for multiplatform.one",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"multiplatform",
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
"access": "public"
|
|
164
164
|
},
|
|
165
165
|
"dependencies": {
|
|
166
|
-
"@multiplatform.one/platform": "^11.
|
|
167
|
-
"@multiplatform.one/store": "^11.
|
|
166
|
+
"@multiplatform.one/platform": "^11.1.0",
|
|
167
|
+
"@multiplatform.one/store": "^11.1.0",
|
|
168
168
|
"@tamagui/animations-react-native": "3.2.3",
|
|
169
169
|
"@tamagui/colors": "3.2.3",
|
|
170
170
|
"@tamagui/config": "3.2.3",
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@expo/prebuild-config": "58.0.19",
|
|
181
|
-
"@multiplatform.one/config": "11.
|
|
182
|
-
"@multiplatform.one/test-utils": "11.
|
|
181
|
+
"@multiplatform.one/config": "11.1.0",
|
|
182
|
+
"@multiplatform.one/test-utils": "11.1.0",
|
|
183
183
|
"@tamagui/animations-css": "3.2.3",
|
|
184
184
|
"@tamagui/animations-reanimated": "3.2.3",
|
|
185
185
|
"@tamagui/build": "3.2.3",
|
package/src/index.gnome.ts
CHANGED
|
@@ -60,49 +60,47 @@ export const sheetGrabberZone = {
|
|
|
60
60
|
height: 21,
|
|
61
61
|
} as const;
|
|
62
62
|
|
|
63
|
-
/**
|
|
63
|
+
/** Legacy proportional width; the house handle now uses the fixed 36pt recipe. */
|
|
64
64
|
export const sheetHandleWidthRatio = 0.3;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* A sheet's handle (FZ-
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* 8pt above a 16pt top corner. Every sheet but FloatingPanel's draws it:
|
|
67
|
+
* A sheet's handle (FZ-13310), a 36×5 capsule 5pt inside the frame's edge.
|
|
68
|
+
* Its margins net to no height, placing the following frame behind the
|
|
69
|
+
* grabber instead of leaving a detached gap. Every sheet draws it:
|
|
71
70
|
* SheetModal on both platforms, AdaptivePopup's sheet and the house Dialog's
|
|
72
71
|
* phone sheet. Spread it, then `sheetHandleTone(scheme)`, on `Sheet.Handle`
|
|
73
|
-
* (web) or inside `sheetHandleZone` (native)
|
|
74
|
-
*
|
|
75
|
-
* the panel.
|
|
72
|
+
* (web) or inside `sheetHandleZone` (native), at the same fixed width on
|
|
73
|
+
* a phone and a regular-width panel.
|
|
76
74
|
*/
|
|
77
75
|
export const sheetHandle = {
|
|
78
|
-
width:
|
|
79
|
-
height:
|
|
76
|
+
width: 36,
|
|
77
|
+
height: 5,
|
|
80
78
|
borderRadius: 100,
|
|
81
|
-
backgroundColor: "$color-
|
|
82
|
-
opacity:
|
|
79
|
+
backgroundColor: "$color-12",
|
|
80
|
+
opacity: 0.3,
|
|
83
81
|
alignSelf: "center",
|
|
84
82
|
marginHorizontal: 0,
|
|
85
|
-
marginTop:
|
|
86
|
-
marginBottom:
|
|
83
|
+
marginTop: 5,
|
|
84
|
+
marginBottom: -10,
|
|
87
85
|
zIndex: 10,
|
|
88
86
|
} as const;
|
|
89
87
|
|
|
90
88
|
/**
|
|
91
|
-
* A native sheet's grab zone around `sheetHandle
|
|
92
|
-
* with room
|
|
89
|
+
* A native sheet's grab zone around `sheetHandle`, inside the frame,
|
|
90
|
+
* with room around the pill so a finger finds it.
|
|
93
91
|
*/
|
|
94
92
|
export const sheetHandleZone = {
|
|
95
93
|
alignSelf: "stretch",
|
|
96
94
|
alignItems: "center",
|
|
97
|
-
paddingTop:
|
|
95
|
+
paddingTop: 0,
|
|
96
|
+
height: 21,
|
|
98
97
|
} as const;
|
|
99
98
|
|
|
100
|
-
const sheetHandleToneOpen = { backgroundColor: "$color-
|
|
99
|
+
const sheetHandleToneOpen = { backgroundColor: "$color-12", opacity: 0.3 } as const;
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
* The handle's tone per scheme (FZ-
|
|
104
|
-
* schemes take
|
|
105
|
-
* tamagui.dev's dark handle measures that same #333 grey.
|
|
102
|
+
* The handle's tone per scheme (FZ-13310), spread after `sheetHandle`. Both
|
|
103
|
+
* schemes take the shared capsule's theme-relative ink at 30% opacity.
|
|
106
104
|
*/
|
|
107
105
|
export function sheetHandleTone(_scheme: "light" | "dark") {
|
|
108
106
|
return sheetHandleToneOpen;
|
|
@@ -205,6 +203,12 @@ const IN_DIALOG_REGION: DialogRegionContextValue = { inDialogRegion: true };
|
|
|
205
203
|
// ── Sheet body (FZ-11418) ───────────────────────────────────────────────
|
|
206
204
|
|
|
207
205
|
const SheetBodyContext = createContext(false);
|
|
206
|
+
const SheetBodyInsetContext = createContext<string | number>(0);
|
|
207
|
+
export const SheetBodyInsetProvider = SheetBodyInsetContext.Provider;
|
|
208
|
+
|
|
209
|
+
export function useSheetBodyInset(): string | number {
|
|
210
|
+
return useContext(SheetBodyInsetContext);
|
|
211
|
+
}
|
|
208
212
|
|
|
209
213
|
/**
|
|
210
214
|
* Marks a subtree as a sheet's body (FZ-11418): SheetModal on both platforms
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { expect, it } from "vitest";
|
|
2
|
+
import { sheetHandle, sheetHandleTone } from "./overlaySurfaces";
|
|
3
|
+
|
|
4
|
+
it("places the shared 36x5 grabber five points inside the frame without a detached gap", () => {
|
|
5
|
+
expect(sheetHandle).toMatchObject({ width: 36, height: 5, marginTop: 5, marginBottom: -10 });
|
|
6
|
+
expect(sheetHandle.height + sheetHandle.marginTop + sheetHandle.marginBottom).toBe(0);
|
|
7
|
+
expect(sheetHandleTone("dark")).toEqual(sheetHandleTone("light"));
|
|
8
|
+
});
|
|
@@ -8,34 +8,34 @@ import {
|
|
|
8
8
|
sheetHandleZone,
|
|
9
9
|
} from "./overlaySurfaces";
|
|
10
10
|
|
|
11
|
-
describe("sheetHandle (FZ-
|
|
12
|
-
it("is
|
|
11
|
+
describe("sheetHandle (FZ-13310)", () => {
|
|
12
|
+
it("is a fixed 36x5 pill at phone and regular widths", () => {
|
|
13
13
|
expect(sheetHandle).toMatchObject({
|
|
14
|
-
height:
|
|
15
|
-
width:
|
|
14
|
+
height: 5,
|
|
15
|
+
width: 36,
|
|
16
16
|
borderRadius: 100,
|
|
17
17
|
alignSelf: "center",
|
|
18
18
|
});
|
|
19
19
|
expect(sheetHandleWidthRatio).toBe(0.3);
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
it("paints
|
|
23
|
-
expect(sheetHandle).toMatchObject({ backgroundColor: "$color-
|
|
22
|
+
it("paints theme-relative ink at the shared grabber tone", () => {
|
|
23
|
+
expect(sheetHandle).toMatchObject({ backgroundColor: "$color-12", opacity: 0.3 });
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
it("sits
|
|
27
|
-
expect(sheetHandle.marginTop).toBe(
|
|
28
|
-
expect(sheetHandle.marginBottom).toBe(
|
|
26
|
+
it("sits inside the frame with no detached gap", () => {
|
|
27
|
+
expect(sheetHandle.marginTop).toBe(5);
|
|
28
|
+
expect(sheetHandle.marginBottom).toBe(-10);
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
it("gives a native finger
|
|
31
|
+
it("gives a native finger a zone around the pill", () => {
|
|
32
32
|
expect(sheetHandleZone).toMatchObject({ alignSelf: "stretch", alignItems: "center" });
|
|
33
|
-
expect(sheetHandleZone.
|
|
33
|
+
expect(sheetHandleZone.height).toBeGreaterThan(sheetHandle.height);
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
it("
|
|
36
|
+
it("shares FloatingPanel's existing capsule geometry", () => {
|
|
37
37
|
expect(sheetHandle).toBeDefined();
|
|
38
|
-
expect(sheetHandle).
|
|
38
|
+
expect(sheetHandle).toEqual(sheetGrabber);
|
|
39
39
|
expect(sheetGrabber).toMatchObject({ width: 36, height: 5 });
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -46,9 +46,9 @@ describe("sheetHandle (FZ-11418, tamagui's Sheet.Handle)", () => {
|
|
|
46
46
|
expect(theme.sheetHandleWidthRatio).toBe(sheetHandleWidthRatio);
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
it("takes
|
|
50
|
-
expect(sheetHandleTone("light")).toEqual({ backgroundColor: "$color-
|
|
51
|
-
expect(sheetHandleTone("dark")).toEqual({ backgroundColor: "$color-
|
|
49
|
+
it("takes the shared theme-relative tone in both schemes", () => {
|
|
50
|
+
expect(sheetHandleTone("light")).toEqual({ backgroundColor: "$color-12", opacity: 0.3 });
|
|
51
|
+
expect(sheetHandleTone("dark")).toEqual({ backgroundColor: "$color-12", opacity: 0.3 });
|
|
52
52
|
expect(theme.sheetHandleTone).toBe(sheetHandleTone);
|
|
53
53
|
});
|
|
54
54
|
});
|
package/types/index.gnome.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { bySizeToken, clampSurfaceSize, compareSizeTokens, sizeTokenBelow, sizeT
|
|
|
23
23
|
export type { SurfaceIntent, SurfaceSize } from "./theme/Surface";
|
|
24
24
|
export { controlTierDisabled, controlTierPaint, controlTierWash, controlTrackFill, isDarkThemeName, } from "./theme/controlTiers";
|
|
25
25
|
export type { ControlTier, ControlTierPaint } from "./theme/controlTiers";
|
|
26
|
-
export { AlertDialogContent, AlertDialogOverlay, DialogContent, dialogScrim, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, overlayScrim, PopoverContent, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetScrim, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, SheetBodyProvider, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody, } from "./theme/overlaySurfaces";
|
|
26
|
+
export { AlertDialogContent, AlertDialogOverlay, DialogContent, dialogScrim, DialogOverlay, DialogRegionContext, DialogSheetFaceProvider, overlayScrim, PopoverContent, sheetGrabber, sheetGrabberClearance, sheetGrabberZone, sheetScrim, sheetHandle, sheetHandleTone, sheetHandleWidthRatio, sheetHandleZone, SheetBodyProvider, SheetBodyInsetProvider, useSheetBodyInset, useDialogRegionContext, useDialogSheetFace, useIsInDialogRegion, useIsInSheetBody, } from "./theme/overlaySurfaces";
|
|
27
27
|
export type { DialogContentProps, DialogRegionContextValue, OpenAutoFocus, } from "./theme/overlaySurfaces";
|
|
28
28
|
export { boldPreset, consolePreset, defaultPreset, densePreset, heroPreset, roomyPreset, storefrontPreset, } from "./theme/presets";
|
|
29
29
|
export { IntentAccentTokensContext, IntentContext, solidButtonIntents, solidPaletteThemes, useIntentAccentTokens, useIntentContext, useResolvedKnobs, } from "./theme/useResolvedKnobs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.gnome.d.ts","sourceRoot":"","sources":["../src/index.gnome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,UAAU,GACX,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,aAAa,EACb,OAAO,EACP,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,cAAc,EACd,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,aAAa,EACb,SAAS,EACT,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,cAAc,EACd,UAAU,EACV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