@bug-on/m3-expressive 1.3.2 → 1.3.3

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.
@@ -495,6 +495,7 @@ declare namespace SnackbarHost {
495
495
  interface SnackbarContextValue {
496
496
  showSnackbar: (visuals: SnackbarVisuals) => Promise<SnackbarResult>;
497
497
  }
498
+ declare const SnackbarContext: React$1.Context<SnackbarContextValue | null>;
498
499
  /**
499
500
  * MD3 SnackbarProvider — context provider for imperative snackbar API.
500
501
  *
@@ -651,4 +652,4 @@ declare function useTooltipPosition(anchorRef: React.RefObject<HTMLElement | nul
651
652
 
652
653
  declare function useTooltipState(config?: TooltipStateConfig): TooltipState;
653
654
 
654
- export { Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type CaretConfig, type CircularProgressProps, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, PlainTooltip, type PlainTooltipProps, ProgressIndicator, type ProgressIndicatorProps, RichTooltip, type RichTooltipProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, type UseSnackbarStateReturn, useSnackbar, useSnackbarState, useTooltipPosition, useTooltipState };
655
+ export { Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type CaretConfig, type CircularProgressProps, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, PlainTooltip, type PlainTooltipProps, ProgressIndicator, type ProgressIndicatorProps, RichTooltip, type RichTooltipProps, Snackbar, SnackbarContext, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, type UseSnackbarStateReturn, useSnackbar, useSnackbarState, useTooltipPosition, useTooltipState };
@@ -495,6 +495,7 @@ declare namespace SnackbarHost {
495
495
  interface SnackbarContextValue {
496
496
  showSnackbar: (visuals: SnackbarVisuals) => Promise<SnackbarResult>;
497
497
  }
498
+ declare const SnackbarContext: React$1.Context<SnackbarContextValue | null>;
498
499
  /**
499
500
  * MD3 SnackbarProvider — context provider for imperative snackbar API.
500
501
  *
@@ -651,4 +652,4 @@ declare function useTooltipPosition(anchorRef: React.RefObject<HTMLElement | nul
651
652
 
652
653
  declare function useTooltipState(config?: TooltipStateConfig): TooltipState;
653
654
 
654
- export { Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type CaretConfig, type CircularProgressProps, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, PlainTooltip, type PlainTooltipProps, ProgressIndicator, type ProgressIndicatorProps, RichTooltip, type RichTooltipProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, type UseSnackbarStateReturn, useSnackbar, useSnackbarState, useTooltipPosition, useTooltipState };
655
+ export { Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type CaretConfig, type CircularProgressProps, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, PlainTooltip, type PlainTooltipProps, ProgressIndicator, type ProgressIndicatorProps, RichTooltip, type RichTooltipProps, Snackbar, SnackbarContext, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, type UseSnackbarStateReturn, useSnackbar, useSnackbarState, useTooltipPosition, useTooltipState };
package/dist/feedback.js CHANGED
@@ -2021,11 +2021,13 @@ var Snackbar = React3__namespace.memo(function Snackbar2({
2021
2021
  type: "button",
2022
2022
  onClick: handleAction,
2023
2023
  className: cn(
2024
- "text-sm font-medium",
2025
- "px-2 py-1 rounded-sm",
2026
- "focus-visible:outline-none focus-visible:ring-2",
2027
- "transition-colors whitespace-nowrap",
2028
- "text-m3-inverse-primary"
2024
+ "inline-flex items-center justify-center",
2025
+ "h-10 px-3 py-2.5 rounded-sm",
2026
+ "text-sm font-medium leading-5 whitespace-nowrap",
2027
+ "text-m3-inverse-primary",
2028
+ "hover:bg-m3-inverse-primary/8 focus-visible:bg-m3-inverse-primary/12 active:bg-m3-inverse-primary/12",
2029
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-m3-inverse-primary",
2030
+ "transition-colors select-none cursor-pointer"
2029
2031
  ),
2030
2032
  children: actionLabel
2031
2033
  }
@@ -2034,10 +2036,10 @@ var Snackbar = React3__namespace.memo(function Snackbar2({
2034
2036
  IconButton,
2035
2037
  {
2036
2038
  size: "sm",
2037
- colorStyle: "filled",
2039
+ colorStyle: "standard",
2038
2040
  "aria-label": "Dismiss notification",
2039
2041
  onClick: handleDismiss,
2040
- className: "text-m3-inverse-on-surface bg-m3-inverse-surface",
2042
+ className: "text-m3-inverse-on-surface hover:bg-m3-inverse-on-surface/8 active:bg-m3-inverse-on-surface/12 focus-visible:ring-m3-inverse-primary",
2041
2043
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "close", "aria-hidden": "true" })
2042
2044
  }
2043
2045
  )
@@ -2700,6 +2702,7 @@ exports.PlainTooltip = PlainTooltip;
2700
2702
  exports.ProgressIndicator = ProgressIndicator;
2701
2703
  exports.RichTooltip = RichTooltip;
2702
2704
  exports.Snackbar = Snackbar;
2705
+ exports.SnackbarContext = SnackbarContext;
2703
2706
  exports.SnackbarHost = SnackbarHost;
2704
2707
  exports.SnackbarProvider = SnackbarProvider;
2705
2708
  exports.TooltipBox = TooltipBox;