com.olvind.mui.muiMaterial.buttonButtonClassesMod.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.muiMaterial
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object buttonButtonClassesMod {
@JSImport("@mui/material/Button/buttonClasses", JSImport.Namespace)
@js.native
val ^ : js.Any = js.native
@JSImport("@mui/material/Button/buttonClasses", JSImport.Default)
@js.native
val default: ButtonClasses = js.native
inline def getButtonUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getButtonUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
type ButtonClassKey = "root" | "text" | "textInherit" | "textPrimary" | "textSecondary" | "textSuccess" | "textError" | "textInfo" | "textWarning" | "outlined" | "outlinedInherit" | "outlinedPrimary" | "outlinedSecondary" | "outlinedSuccess" | "outlinedError" | "outlinedInfo" | "outlinedWarning" | "contained" | "containedInherit" | "containedPrimary" | "containedSecondary" | "containedSuccess" | "containedInfo" | "containedError" | "containedWarning" | "disableElevation" | "focusVisible" | "disabled" | "colorInherit" | "textSizeSmall" | "textSizeMedium" | "textSizeLarge" | "outlinedSizeSmall" | "outlinedSizeMedium" | "outlinedSizeLarge" | "containedSizeSmall" | "containedSizeMedium" | "containedSizeLarge" | "sizeSmall" | "sizeMedium" | "sizeLarge" | "fullWidth" | "startIcon" | "endIcon" | "iconSizeSmall" | "iconSizeMedium" | "iconSizeLarge"
trait ButtonClasses extends StObject {
/** Styles applied to the root element if `color="inherit"`. */
var colorInherit: String
/** Styles applied to the root element if `variant="contained"`. */
var contained: String
/** Styles applied to the root element if `variant="contained"` and `color="error"`. */
var containedError: String
/** Styles applied to the root element if `variant="contained"` and `color="info"`. */
var containedInfo: String
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
var containedInherit: String
/** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
var containedPrimary: String
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
var containedSecondary: String
/** Styles applied to the root element if `size="large"` and `variant="contained"`. */
var containedSizeLarge: String
/** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
var containedSizeMedium: String
/** Styles applied to the root element if `size="small"` and `variant="contained"`. */
var containedSizeSmall: String
/** Styles applied to the root element if `variant="contained"` and `color="success"`. */
var containedSuccess: String
/** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
var containedWarning: String
/** Styles applied to the root element if `disableElevation={true}`. */
var disableElevation: String
/** State class applied to the root element if `disabled={true}`. */
var disabled: String
/** Styles applied to the endIcon element if supplied. */
var endIcon: String
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
var focusVisible: String
/** Styles applied to the root element if `fullWidth={true}`. */
var fullWidth: String
/** Styles applied to the icon element if supplied and `size="large"`. */
var iconSizeLarge: String
/** Styles applied to the icon element if supplied and `size="medium"`. */
var iconSizeMedium: String
/** Styles applied to the icon element if supplied and `size="small"`. */
var iconSizeSmall: String
/** Styles applied to the root element if `variant="outlined"`. */
var outlined: String
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
var outlinedError: String
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
var outlinedInfo: String
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
var outlinedInherit: String
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
var outlinedPrimary: String
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
var outlinedSecondary: String
/** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
var outlinedSizeLarge: String
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
var outlinedSizeMedium: String
/** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
var outlinedSizeSmall: String
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
var outlinedSuccess: String
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
var outlinedWarning: String
/** Styles applied to the root element. */
var root: String
/** Styles applied to the root element if `size="large"`. */
var sizeLarge: String
/** Styles applied to the root element if `size="medium"`. */
var sizeMedium: String
/** Styles applied to the root element if `size="small"`. */
var sizeSmall: String
/** Styles applied to the startIcon element if supplied. */
var startIcon: String
/** Styles applied to the root element if `variant="text"`. */
var text: String
/** Styles applied to the root element if `variant="text"` and `color="error"`. */
var textError: String
/** Styles applied to the root element if `variant="text"` and `color="info"`. */
var textInfo: String
/** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
var textInherit: String
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
var textPrimary: String
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
var textSecondary: String
/** Styles applied to the root element if `size="large"` and `variant="text"`. */
var textSizeLarge: String
/** Styles applied to the root element if `size="medium"` and `variant="text"`. */
var textSizeMedium: String
/** Styles applied to the root element if `size="small"` and `variant="text"`. */
var textSizeSmall: String
/** Styles applied to the root element if `variant="text"` and `color="success"`. */
var textSuccess: String
/** Styles applied to the root element if `variant="text"` and `color="warning"`. */
var textWarning: String
}
object ButtonClasses {
inline def apply(
colorInherit: String,
contained: String,
containedError: String,
containedInfo: String,
containedInherit: String,
containedPrimary: String,
containedSecondary: String,
containedSizeLarge: String,
containedSizeMedium: String,
containedSizeSmall: String,
containedSuccess: String,
containedWarning: String,
disableElevation: String,
disabled: String,
endIcon: String,
focusVisible: String,
fullWidth: String,
iconSizeLarge: String,
iconSizeMedium: String,
iconSizeSmall: String,
outlined: String,
outlinedError: String,
outlinedInfo: String,
outlinedInherit: String,
outlinedPrimary: String,
outlinedSecondary: String,
outlinedSizeLarge: String,
outlinedSizeMedium: String,
outlinedSizeSmall: String,
outlinedSuccess: String,
outlinedWarning: String,
root: String,
sizeLarge: String,
sizeMedium: String,
sizeSmall: String,
startIcon: String,
text: String,
textError: String,
textInfo: String,
textInherit: String,
textPrimary: String,
textSecondary: String,
textSizeLarge: String,
textSizeMedium: String,
textSizeSmall: String,
textSuccess: String,
textWarning: String
): ButtonClasses = {
val __obj = js.Dynamic.literal(colorInherit = colorInherit.asInstanceOf[js.Any], contained = contained.asInstanceOf[js.Any], containedError = containedError.asInstanceOf[js.Any], containedInfo = containedInfo.asInstanceOf[js.Any], containedInherit = containedInherit.asInstanceOf[js.Any], containedPrimary = containedPrimary.asInstanceOf[js.Any], containedSecondary = containedSecondary.asInstanceOf[js.Any], containedSizeLarge = containedSizeLarge.asInstanceOf[js.Any], containedSizeMedium = containedSizeMedium.asInstanceOf[js.Any], containedSizeSmall = containedSizeSmall.asInstanceOf[js.Any], containedSuccess = containedSuccess.asInstanceOf[js.Any], containedWarning = containedWarning.asInstanceOf[js.Any], disableElevation = disableElevation.asInstanceOf[js.Any], disabled = disabled.asInstanceOf[js.Any], endIcon = endIcon.asInstanceOf[js.Any], focusVisible = focusVisible.asInstanceOf[js.Any], fullWidth = fullWidth.asInstanceOf[js.Any], iconSizeLarge = iconSizeLarge.asInstanceOf[js.Any], iconSizeMedium = iconSizeMedium.asInstanceOf[js.Any], iconSizeSmall = iconSizeSmall.asInstanceOf[js.Any], outlined = outlined.asInstanceOf[js.Any], outlinedError = outlinedError.asInstanceOf[js.Any], outlinedInfo = outlinedInfo.asInstanceOf[js.Any], outlinedInherit = outlinedInherit.asInstanceOf[js.Any], outlinedPrimary = outlinedPrimary.asInstanceOf[js.Any], outlinedSecondary = outlinedSecondary.asInstanceOf[js.Any], outlinedSizeLarge = outlinedSizeLarge.asInstanceOf[js.Any], outlinedSizeMedium = outlinedSizeMedium.asInstanceOf[js.Any], outlinedSizeSmall = outlinedSizeSmall.asInstanceOf[js.Any], outlinedSuccess = outlinedSuccess.asInstanceOf[js.Any], outlinedWarning = outlinedWarning.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], sizeLarge = sizeLarge.asInstanceOf[js.Any], sizeMedium = sizeMedium.asInstanceOf[js.Any], sizeSmall = sizeSmall.asInstanceOf[js.Any], startIcon = startIcon.asInstanceOf[js.Any], text = text.asInstanceOf[js.Any], textError = textError.asInstanceOf[js.Any], textInfo = textInfo.asInstanceOf[js.Any], textInherit = textInherit.asInstanceOf[js.Any], textPrimary = textPrimary.asInstanceOf[js.Any], textSecondary = textSecondary.asInstanceOf[js.Any], textSizeLarge = textSizeLarge.asInstanceOf[js.Any], textSizeMedium = textSizeMedium.asInstanceOf[js.Any], textSizeSmall = textSizeSmall.asInstanceOf[js.Any], textSuccess = textSuccess.asInstanceOf[js.Any], textWarning = textWarning.asInstanceOf[js.Any])
__obj.asInstanceOf[ButtonClasses]
}
@scala.inline
implicit open class MutableBuilder[Self <: ButtonClasses] (val x: Self) extends AnyVal {
inline def setColorInherit(value: String): Self = StObject.set(x, "colorInherit", value.asInstanceOf[js.Any])
inline def setContained(value: String): Self = StObject.set(x, "contained", value.asInstanceOf[js.Any])
inline def setContainedError(value: String): Self = StObject.set(x, "containedError", value.asInstanceOf[js.Any])
inline def setContainedInfo(value: String): Self = StObject.set(x, "containedInfo", value.asInstanceOf[js.Any])
inline def setContainedInherit(value: String): Self = StObject.set(x, "containedInherit", value.asInstanceOf[js.Any])
inline def setContainedPrimary(value: String): Self = StObject.set(x, "containedPrimary", value.asInstanceOf[js.Any])
inline def setContainedSecondary(value: String): Self = StObject.set(x, "containedSecondary", value.asInstanceOf[js.Any])
inline def setContainedSizeLarge(value: String): Self = StObject.set(x, "containedSizeLarge", value.asInstanceOf[js.Any])
inline def setContainedSizeMedium(value: String): Self = StObject.set(x, "containedSizeMedium", value.asInstanceOf[js.Any])
inline def setContainedSizeSmall(value: String): Self = StObject.set(x, "containedSizeSmall", value.asInstanceOf[js.Any])
inline def setContainedSuccess(value: String): Self = StObject.set(x, "containedSuccess", value.asInstanceOf[js.Any])
inline def setContainedWarning(value: String): Self = StObject.set(x, "containedWarning", value.asInstanceOf[js.Any])
inline def setDisableElevation(value: String): Self = StObject.set(x, "disableElevation", value.asInstanceOf[js.Any])
inline def setDisabled(value: String): Self = StObject.set(x, "disabled", value.asInstanceOf[js.Any])
inline def setEndIcon(value: String): Self = StObject.set(x, "endIcon", value.asInstanceOf[js.Any])
inline def setFocusVisible(value: String): Self = StObject.set(x, "focusVisible", value.asInstanceOf[js.Any])
inline def setFullWidth(value: String): Self = StObject.set(x, "fullWidth", value.asInstanceOf[js.Any])
inline def setIconSizeLarge(value: String): Self = StObject.set(x, "iconSizeLarge", value.asInstanceOf[js.Any])
inline def setIconSizeMedium(value: String): Self = StObject.set(x, "iconSizeMedium", value.asInstanceOf[js.Any])
inline def setIconSizeSmall(value: String): Self = StObject.set(x, "iconSizeSmall", value.asInstanceOf[js.Any])
inline def setOutlined(value: String): Self = StObject.set(x, "outlined", value.asInstanceOf[js.Any])
inline def setOutlinedError(value: String): Self = StObject.set(x, "outlinedError", value.asInstanceOf[js.Any])
inline def setOutlinedInfo(value: String): Self = StObject.set(x, "outlinedInfo", value.asInstanceOf[js.Any])
inline def setOutlinedInherit(value: String): Self = StObject.set(x, "outlinedInherit", value.asInstanceOf[js.Any])
inline def setOutlinedPrimary(value: String): Self = StObject.set(x, "outlinedPrimary", value.asInstanceOf[js.Any])
inline def setOutlinedSecondary(value: String): Self = StObject.set(x, "outlinedSecondary", value.asInstanceOf[js.Any])
inline def setOutlinedSizeLarge(value: String): Self = StObject.set(x, "outlinedSizeLarge", value.asInstanceOf[js.Any])
inline def setOutlinedSizeMedium(value: String): Self = StObject.set(x, "outlinedSizeMedium", value.asInstanceOf[js.Any])
inline def setOutlinedSizeSmall(value: String): Self = StObject.set(x, "outlinedSizeSmall", value.asInstanceOf[js.Any])
inline def setOutlinedSuccess(value: String): Self = StObject.set(x, "outlinedSuccess", value.asInstanceOf[js.Any])
inline def setOutlinedWarning(value: String): Self = StObject.set(x, "outlinedWarning", value.asInstanceOf[js.Any])
inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
inline def setSizeLarge(value: String): Self = StObject.set(x, "sizeLarge", value.asInstanceOf[js.Any])
inline def setSizeMedium(value: String): Self = StObject.set(x, "sizeMedium", value.asInstanceOf[js.Any])
inline def setSizeSmall(value: String): Self = StObject.set(x, "sizeSmall", value.asInstanceOf[js.Any])
inline def setStartIcon(value: String): Self = StObject.set(x, "startIcon", value.asInstanceOf[js.Any])
inline def setText(value: String): Self = StObject.set(x, "text", value.asInstanceOf[js.Any])
inline def setTextError(value: String): Self = StObject.set(x, "textError", value.asInstanceOf[js.Any])
inline def setTextInfo(value: String): Self = StObject.set(x, "textInfo", value.asInstanceOf[js.Any])
inline def setTextInherit(value: String): Self = StObject.set(x, "textInherit", value.asInstanceOf[js.Any])
inline def setTextPrimary(value: String): Self = StObject.set(x, "textPrimary", value.asInstanceOf[js.Any])
inline def setTextSecondary(value: String): Self = StObject.set(x, "textSecondary", value.asInstanceOf[js.Any])
inline def setTextSizeLarge(value: String): Self = StObject.set(x, "textSizeLarge", value.asInstanceOf[js.Any])
inline def setTextSizeMedium(value: String): Self = StObject.set(x, "textSizeMedium", value.asInstanceOf[js.Any])
inline def setTextSizeSmall(value: String): Self = StObject.set(x, "textSizeSmall", value.asInstanceOf[js.Any])
inline def setTextSuccess(value: String): Self = StObject.set(x, "textSuccess", value.asInstanceOf[js.Any])
inline def setTextWarning(value: String): Self = StObject.set(x, "textWarning", value.asInstanceOf[js.Any])
}
}
}