All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.olvind.mui.muiMaterial.stylesExperimentalExtendThemeMod.CssVarsThemeOptions.scala Maven / Gradle / Ivy

package com.olvind.mui.muiMaterial.stylesExperimentalExtendThemeMod

import com.olvind.mui.muiMaterial.anon.OmitThemecomponentspaletteCssVarsTheme
import com.olvind.mui.muiMaterial.anon.PartialRecordSupportedColorSchemeColorSy
import com.olvind.mui.muiMaterial.stylesComponentsMod.Components
import com.olvind.mui.muiMaterial.stylesCreateMixinsMod.MixinsOptions
import com.olvind.mui.muiMaterial.stylesCreatePaletteMod.Palette
import com.olvind.mui.muiMaterial.stylesCreateTransitionsMod.TransitionsOptions
import com.olvind.mui.muiMaterial.stylesCreateTypographyMod.TypographyOptions
import com.olvind.mui.muiMaterial.stylesShadowsMod.Shadows
import com.olvind.mui.muiMaterial.stylesZIndexMod.ZIndexOptions
import com.olvind.mui.muiSystem.createThemeCreateBreakpointsMod.BreakpointsOptions
import com.olvind.mui.muiSystem.createThemeCreateSpacingMod.SpacingOptions
import com.olvind.mui.muiSystem.createThemeCreateThemeMod.Direction
import com.olvind.mui.muiSystem.createThemeShapeMod.ShapeOptions
import com.olvind.mui.muiSystem.styleFunctionSxDefaultSxConfigMod.SxConfig
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}

/* Inlined parent std.Omit<@mui/material.@mui/material/styles/createTheme.ThemeOptions, 'palette' | 'components'> */
trait CssVarsThemeOptions extends StObject {
  
  var breakpoints: js.UndefOr[BreakpointsOptions] = js.undefined
  
  /**
    * Color schemes configuration
    */
  var colorSchemes: js.UndefOr[PartialRecordSupportedColorSchemeColorSy] = js.undefined
  
  /**
    * Theme components
    */
  var components: js.UndefOr[Components[OmitThemecomponentspaletteCssVarsTheme]] = js.undefined
  
  /**
    * Prefix of the generated CSS variables
    * @default 'mui'
    */
  var cssVarPrefix: js.UndefOr[String] = js.undefined
  
  var direction: js.UndefOr[Direction] = js.undefined
  
  var mixins: js.UndefOr[MixinsOptions] = js.undefined
  
  var shadows: js.UndefOr[Shadows] = js.undefined
  
  var shape: js.UndefOr[ShapeOptions] = js.undefined
  
  var spacing: js.UndefOr[SpacingOptions] = js.undefined
  
  var transitions: js.UndefOr[TransitionsOptions] = js.undefined
  
  var typography: js.UndefOr[TypographyOptions | (js.Function1[/* palette */ Palette, TypographyOptions])] = js.undefined
  
  var unstable_strictMode: js.UndefOr[Boolean] = js.undefined
  
  var unstable_sxConfig: js.UndefOr[SxConfig] = js.undefined
  
  var zIndex: js.UndefOr[ZIndexOptions] = js.undefined
}
object CssVarsThemeOptions {
  
  inline def apply(): CssVarsThemeOptions = {
    val __obj = js.Dynamic.literal()
    __obj.asInstanceOf[CssVarsThemeOptions]
  }
  
  @scala.inline
  implicit open class MutableBuilder[Self <: CssVarsThemeOptions] (val x: Self) extends AnyVal {
    
    inline def setBreakpoints(value: BreakpointsOptions): Self = StObject.set(x, "breakpoints", value.asInstanceOf[js.Any])
    
    inline def setBreakpointsUndefined: Self = StObject.set(x, "breakpoints", js.undefined)
    
    inline def setColorSchemes(value: PartialRecordSupportedColorSchemeColorSy): Self = StObject.set(x, "colorSchemes", value.asInstanceOf[js.Any])
    
    inline def setColorSchemesUndefined: Self = StObject.set(x, "colorSchemes", js.undefined)
    
    inline def setComponents(value: Components[OmitThemecomponentspaletteCssVarsTheme]): Self = StObject.set(x, "components", value.asInstanceOf[js.Any])
    
    inline def setComponentsUndefined: Self = StObject.set(x, "components", js.undefined)
    
    inline def setCssVarPrefix(value: String): Self = StObject.set(x, "cssVarPrefix", value.asInstanceOf[js.Any])
    
    inline def setCssVarPrefixUndefined: Self = StObject.set(x, "cssVarPrefix", js.undefined)
    
    inline def setDirection(value: Direction): Self = StObject.set(x, "direction", value.asInstanceOf[js.Any])
    
    inline def setDirectionUndefined: Self = StObject.set(x, "direction", js.undefined)
    
    inline def setMixins(value: MixinsOptions): Self = StObject.set(x, "mixins", value.asInstanceOf[js.Any])
    
    inline def setMixinsUndefined: Self = StObject.set(x, "mixins", js.undefined)
    
    inline def setShadows(value: Shadows): Self = StObject.set(x, "shadows", value.asInstanceOf[js.Any])
    
    inline def setShadowsUndefined: Self = StObject.set(x, "shadows", js.undefined)
    
    inline def setShadowsVarargs(value: Any*): Self = StObject.set(x, "shadows", js.Array(value*))
    
    inline def setShape(value: ShapeOptions): Self = StObject.set(x, "shape", value.asInstanceOf[js.Any])
    
    inline def setShapeUndefined: Self = StObject.set(x, "shape", js.undefined)
    
    inline def setSpacing(value: SpacingOptions): Self = StObject.set(x, "spacing", value.asInstanceOf[js.Any])
    
    inline def setSpacingFunction1(value: (/* abs */ Double) | String => Double | String): Self = StObject.set(x, "spacing", js.Any.fromFunction1(value))
    
    inline def setSpacingUndefined: Self = StObject.set(x, "spacing", js.undefined)
    
    inline def setSpacingVarargs(value: (String | Double)*): Self = StObject.set(x, "spacing", js.Array(value*))
    
    inline def setTransitions(value: TransitionsOptions): Self = StObject.set(x, "transitions", value.asInstanceOf[js.Any])
    
    inline def setTransitionsUndefined: Self = StObject.set(x, "transitions", js.undefined)
    
    inline def setTypography(value: TypographyOptions | (js.Function1[/* palette */ Palette, TypographyOptions])): Self = StObject.set(x, "typography", value.asInstanceOf[js.Any])
    
    inline def setTypographyFunction1(value: /* palette */ Palette => TypographyOptions): Self = StObject.set(x, "typography", js.Any.fromFunction1(value))
    
    inline def setTypographyUndefined: Self = StObject.set(x, "typography", js.undefined)
    
    inline def setUnstable_strictMode(value: Boolean): Self = StObject.set(x, "unstable_strictMode", value.asInstanceOf[js.Any])
    
    inline def setUnstable_strictModeUndefined: Self = StObject.set(x, "unstable_strictMode", js.undefined)
    
    inline def setUnstable_sxConfig(value: SxConfig): Self = StObject.set(x, "unstable_sxConfig", value.asInstanceOf[js.Any])
    
    inline def setUnstable_sxConfigUndefined: Self = StObject.set(x, "unstable_sxConfig", js.undefined)
    
    inline def setZIndex(value: ZIndexOptions): Self = StObject.set(x, "zIndex", value.asInstanceOf[js.Any])
    
    inline def setZIndexUndefined: Self = StObject.set(x, "zIndex", js.undefined)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy