@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
7 lines (6 loc) • 3.66 kB
JavaScript
import{C as e}from"../color-CigMJnjV.js";import{S as t}from"../shape-CrZ0CLVJ.js";import{S as c}from"../state-C-haZXan.js";import{createLogicShapeTokens as r}from"../utils/tokens/create-logic-shape-tokens.js";import"../lit-element-Ho-VPzO1.js";
/**
* @license
* Copyright 2025 Kai-Orion & Sandlada
* SPDX-License-Identifier: MIT
*/const o={...r("--mdc-switch",{"track-shape":t.Full,"handle-shape":t.Full,"state-layer-shape":t.Full},"all",!1),"icon-color-selected":e.OnPrimaryContainer,"icon-size-selected":"16px","icon-color-unselected":e.SurfaceContainerHighest,"icon-size-unselected":"16px","track-height":"32px","track-width":"52px","track-outline-color":e.Outline,"track-outline-width":"2px","track-color-selected":e.Primary,"track-color-unselected":e.SurfaceContainerHighest,"handle-height-selected":"24px","handle-height-unselected":"16px","with-icon-handle-height":"24px","handle-width-selected":"24px","handle-width-unselected":"16px","with-icon-handle-width":"24px","handle-color-selected":e.OnPrimary,"handle-color-unselected":e.Outline,"state-layer-size":"40px","disabled-icon-color-selected":e.OnSurface,"disabled-icon-opacity-selected":"0.38","disabled-icon-color-unselected":e.SurfaceContainerHighest,"disabled-icon-opacity-unselected":"0.38","disabled-track-opacity":"0.12","disabled-track-color-selected":e.OnSurface,"disabled-track-color-unselected":e.SurfaceContainerHighest,"disabled-track-outline-color-unselected":e.OnSurface,"disabled-handle-opacity-unselected":"0.38","disabled-handle-opacity-selected":"1","disabled-handle-color-selected":e.Surface,"disabled-handle-color-unselected":e.OnSurface,"hovered-icon-color-selected":e.OnPrimaryContainer,"hovered-icon-color-unselected":e.SurfaceContainerHighest,"hovered-track-color-selected":e.Primary,"hovered-state-layer-color-selected":e.Primary,"hovered-state-layer-opacity-selected":c.HoveredStateLayerOpacity,"hovered-track-color-unselected":e.SurfaceContainerHighest,"hovered-track-outline-color-unselected":e.Outline,"hovered-state-layer-color-unselected":e.OnSurface,"hovered-state-layer-opacity-unselected":c.HoveredStateLayerOpacity,"hovered-handle-color-selected":e.PrimaryContainer,"hovered-handle-color-unselected":e.OnSurfaceVariant,"focused-indicator-color":e.Secondary,"focused-indicator-thickness":c.FocusIndicator.Thickness,"focused-indicator-offset":c.FocusIndicator.OuterOffset,"focused-icon-color-selected":e.OnPrimaryContainer,"focused-icon-color-unselected":e.SurfaceContainerHighest,"focused-track-color-selected":e.Primary,"focused-state-layer-color-selected":e.Primary,"focused-state-layer-opacity-selected":c.FocusedStateLayerOpacity,"focused-track-color-unselected":e.SurfaceContainerHighest,"focused-track-outline-color-unselected":e.Outline,"focused-state-layer-color-unselected":e.OnSurface,"focused-state-layer-opacity-unselected":c.FocusedStateLayerOpacity,"focused-handle-color-selected":e.PrimaryContainer,"focused-handle-color-unselected":e.OnSurfaceVariant,"pressed-icon-color-selected":e.OnPrimaryContainer,"pressed-icon-color-unselected":e.SurfaceContainerHighest,"pressed-track-color-selected":e.Primary,"pressed-state-layer-color-selected":e.Primary,"pressed-state-layer-opacity-selected":c.PressedStateLayerOpacity,"pressed-track-color-unselected":e.SurfaceContainerHighest,"pressed-track-outline-color-unselected":e.Outline,"pressed-state-layer-color-unselected":e.OnSurface,"pressed-state-layer-opacity-unselected":c.PressedStateLayerOpacity,"pressed-handle-color-selected":e.PrimaryContainer,"pressed-handle-color-unselected":e.OnSurfaceVariant,"pressed-handle-height":"28px","pressed-handle-width":"28px"};export{o as SwitchDefinition};