@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
8 lines • 6.99 kB
JavaScript
import{Shape as e}from"../node_modules/@sandlada/mdk/build/domain/shape.js";import{Typescale as t}from"../node_modules/@sandlada/mdk/build/domain/typescale.js";import"../node_modules/@sandlada/mdk/build/index.js";import{Color as n}from"../utils/tokens/theme.js";import{createStyleDefinition as r}from"../utils/tokens/create-style-definition.js";
/**
* @license
* Copyright 2026 Kai-Orion & Sandlada
* SPDX-License-Identifier: MIT
*/
const i={"container-shape-start-start":e.ExtraSmall,"container-shape-start-end":e.ExtraSmall,"container-shape-end-start":e.ExtraSmall,"container-shape-end-end":e.ExtraSmall,"container-elevation":`6`,"container-shadow-color":n.Shadow,"container-min-height":`48px`,"container-max-width":`344px`,"container-margin":`8px`,"container-padding-inline":`8px`,"container-padding-block":`14px`,"container-gap":`8px`,"label-font":t.BodyMedium.Font,"label-size":t.BodyMedium.FontSize,"label-weight":t.BodyMedium.FontWeight,"label-tracking":t.BodyMedium.Tracking,"label-line-height":t.BodyMedium.LineHeight,"label-padding-inline":`4px`,"action-font":t.LabelLarge.Font,"action-size":t.LabelLarge.FontSize,"action-weight":t.LabelLarge.FontWeight,"action-tracking":t.LabelLarge.Tracking,"action-line-height":t.LabelLarge.LineHeight,"action-container-shape-start-start":e.Full,"action-container-shape-start-end":e.Full,"action-container-shape-end-start":e.Full,"action-container-shape-end-end":e.Full,"action-padding-inline":`12px`,"action-padding-block":`10px`,"close-icon-size":`24px`,"close-icon-padding":`8px`,"close-icon-shape-start-start":e.Full,"close-icon-shape-start-end":e.Full,"close-icon-shape-end-start":e.Full,"close-icon-shape-end-end":e.Full,"icon-size":`24px`},a=r({...i,"enabled-container-color":n.SurfaceContainerHigh,"enabled-label-color":n.OnSurfaceVariant,"enabled-action-text-color":n.Primary,"enabled-close-icon-color":n.OnSurfaceVariant,"enabled-icon-color":n.OnSurfaceVariant,"hovered-action-state-layer-color":n.Primary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.Primary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.Primary,"pressed-action-state-layer-opacity":`0.1`}),o=r({...i,"enabled-container-color":n.InverseSurface,"enabled-label-color":n.InverseOnSurface,"enabled-action-text-color":n.InversePrimary,"enabled-close-icon-color":n.InverseOnSurface,"enabled-icon-color":n.InverseOnSurface,"hovered-action-state-layer-color":n.InversePrimary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.InversePrimary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.InversePrimary,"pressed-action-state-layer-opacity":`0.1`}),s=r({...i,"enabled-container-color":n.Primary,"enabled-label-color":n.OnPrimary,"enabled-action-text-color":n.OnPrimary,"enabled-close-icon-color":n.OnPrimary,"enabled-icon-color":n.OnPrimary,"hovered-action-state-layer-color":n.OnPrimary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.OnPrimary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.OnPrimary,"pressed-action-state-layer-opacity":`0.1`}),c=r({...i,"enabled-container-color":n.Secondary,"enabled-label-color":n.OnSecondary,"enabled-action-text-color":n.OnSecondary,"enabled-close-icon-color":n.OnSecondary,"enabled-icon-color":n.OnSecondary,"hovered-action-state-layer-color":n.OnSecondary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.OnSecondary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.OnSecondary,"pressed-action-state-layer-opacity":`0.1`}),l=r({...i,"enabled-container-color":n.Tertiary,"enabled-label-color":n.OnTertiary,"enabled-action-text-color":n.OnTertiary,"enabled-close-icon-color":n.OnTertiary,"enabled-icon-color":n.OnTertiary,"hovered-action-state-layer-color":n.OnTertiary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.OnTertiary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.OnTertiary,"pressed-action-state-layer-opacity":`0.1`}),u=r({...i,"enabled-container-color":n.Error,"enabled-label-color":n.OnError,"enabled-action-text-color":n.OnError,"enabled-close-icon-color":n.OnError,"enabled-icon-color":n.OnError,"hovered-action-state-layer-color":n.OnError,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.OnError,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.OnError,"pressed-action-state-layer-opacity":`0.1`}),d=r({...i,"enabled-container-color":n.PrimaryContainer,"enabled-label-color":n.OnPrimaryContainer,"enabled-action-text-color":n.Primary,"enabled-close-icon-color":n.OnPrimaryContainer,"enabled-icon-color":n.OnPrimaryContainer,"hovered-action-state-layer-color":n.Primary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.Primary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.Primary,"pressed-action-state-layer-opacity":`0.1`}),f=r({...i,"enabled-container-color":n.SecondaryContainer,"enabled-label-color":n.OnSecondaryContainer,"enabled-action-text-color":n.Secondary,"enabled-close-icon-color":n.OnSecondaryContainer,"enabled-icon-color":n.OnSecondaryContainer,"hovered-action-state-layer-color":n.Secondary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.Secondary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.Secondary,"pressed-action-state-layer-opacity":`0.1`}),p=r({...i,"enabled-container-color":n.TertiaryContainer,"enabled-label-color":n.OnTertiaryContainer,"enabled-action-text-color":n.Tertiary,"enabled-close-icon-color":n.OnTertiaryContainer,"enabled-icon-color":n.OnTertiaryContainer,"hovered-action-state-layer-color":n.Tertiary,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.Tertiary,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.Tertiary,"pressed-action-state-layer-opacity":`0.1`}),m=r({...i,"enabled-container-color":n.ErrorContainer,"enabled-label-color":n.OnErrorContainer,"enabled-action-text-color":n.Error,"enabled-close-icon-color":n.OnErrorContainer,"enabled-icon-color":n.OnErrorContainer,"hovered-action-state-layer-color":n.Error,"hovered-action-state-layer-opacity":`0.08`,"focused-action-state-layer-color":n.Error,"focused-action-state-layer-opacity":`0.1`,"pressed-action-state-layer-color":n.Error,"pressed-action-state-layer-opacity":`0.1`}),h=o;export{m as ErrorContainerSnackbarDefinition,u as ErrorSnackbarDefinition,o as InverseSurfaceSnackbarDefinition,d as PrimaryContainerSnackbarDefinition,s as PrimarySnackbarDefinition,f as SecondaryContainerSnackbarDefinition,c as SecondarySnackbarDefinition,h as SnackbarDefinition,a as SurfaceSnackbarDefinition,p as TertiaryContainerSnackbarDefinition,l as TertiarySnackbarDefinition};
//# sourceMappingURL=snackbar.definition.js.map