com.olvind.mui.muiMaterial.inputBaseInputBaseClassesMod.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 inputBaseInputBaseClassesMod {
@JSImport("@mui/material/InputBase/inputBaseClasses", JSImport.Namespace)
@js.native
val ^ : js.Any = js.native
@JSImport("@mui/material/InputBase/inputBaseClasses", JSImport.Default)
@js.native
val default: InputBaseClasses = js.native
inline def getInputBaseUtilityClass(slot: String): String = ^.asInstanceOf[js.Dynamic].applyDynamic("getInputBaseUtilityClass")(slot.asInstanceOf[js.Any]).asInstanceOf[String]
type InputBaseClassKey = "root" | "formControl" | "focused" | "disabled" | "adornedStart" | "adornedEnd" | "error" | "sizeSmall" | "multiline" | "colorSecondary" | "fullWidth" | "hiddenLabel" | "readOnly" | "input" | "inputSizeSmall" | "inputMultiline" | "inputTypeSearch" | "inputAdornedStart" | "inputAdornedEnd" | "inputHiddenLabel"
trait InputBaseClasses extends StObject {
/** Styles applied to the root element if `endAdornment` is provided. */
var adornedEnd: String
/** Styles applied to the root element if `startAdornment` is provided. */
var adornedStart: String
/** Styles applied to the root element if the color is secondary. */
var colorSecondary: String
/** Styles applied to the root element if `disabled={true}`. */
var disabled: String
/** State class applied to the root element if `error={true}`. */
var error: String
/** Styles applied to the root element if the component is focused. */
var focused: String
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
var formControl: String
/** Styles applied to the root element if `fullWidth={true}`. */
var fullWidth: String
/** Styles applied to the root element if `hiddenLabel={true}`. */
var hiddenLabel: String
/** Styles applied to the input element. */
var input: String
/** Styles applied to the input element if `endAdornment` is provided. */
var inputAdornedEnd: String
/** Styles applied to the input element if `startAdornment` is provided. */
var inputAdornedStart: String
/** Styles applied to the input element if `hiddenLabel={true}`. */
var inputHiddenLabel: String
/** Styles applied to the input element if `multiline={true}`. */
var inputMultiline: String
/** Styles applied to the input element if `size="small"`. */
var inputSizeSmall: String
/** Styles applied to the input element if `type="search"`. */
var inputTypeSearch: String
/** Styles applied to the root element if `multiline={true}`. */
var multiline: String
/** State class applied to the root element if `readOnly={true}`. */
var readOnly: String
/** Styles applied to the root element. */
var root: String
/** Styles applied to the input element if `size="small"`. */
var sizeSmall: String
}
object InputBaseClasses {
inline def apply(
adornedEnd: String,
adornedStart: String,
colorSecondary: String,
disabled: String,
error: String,
focused: String,
formControl: String,
fullWidth: String,
hiddenLabel: String,
input: String,
inputAdornedEnd: String,
inputAdornedStart: String,
inputHiddenLabel: String,
inputMultiline: String,
inputSizeSmall: String,
inputTypeSearch: String,
multiline: String,
readOnly: String,
root: String,
sizeSmall: String
): InputBaseClasses = {
val __obj = js.Dynamic.literal(adornedEnd = adornedEnd.asInstanceOf[js.Any], adornedStart = adornedStart.asInstanceOf[js.Any], colorSecondary = colorSecondary.asInstanceOf[js.Any], disabled = disabled.asInstanceOf[js.Any], error = error.asInstanceOf[js.Any], focused = focused.asInstanceOf[js.Any], formControl = formControl.asInstanceOf[js.Any], fullWidth = fullWidth.asInstanceOf[js.Any], hiddenLabel = hiddenLabel.asInstanceOf[js.Any], input = input.asInstanceOf[js.Any], inputAdornedEnd = inputAdornedEnd.asInstanceOf[js.Any], inputAdornedStart = inputAdornedStart.asInstanceOf[js.Any], inputHiddenLabel = inputHiddenLabel.asInstanceOf[js.Any], inputMultiline = inputMultiline.asInstanceOf[js.Any], inputSizeSmall = inputSizeSmall.asInstanceOf[js.Any], inputTypeSearch = inputTypeSearch.asInstanceOf[js.Any], multiline = multiline.asInstanceOf[js.Any], readOnly = readOnly.asInstanceOf[js.Any], root = root.asInstanceOf[js.Any], sizeSmall = sizeSmall.asInstanceOf[js.Any])
__obj.asInstanceOf[InputBaseClasses]
}
@scala.inline
implicit open class MutableBuilder[Self <: InputBaseClasses] (val x: Self) extends AnyVal {
inline def setAdornedEnd(value: String): Self = StObject.set(x, "adornedEnd", value.asInstanceOf[js.Any])
inline def setAdornedStart(value: String): Self = StObject.set(x, "adornedStart", value.asInstanceOf[js.Any])
inline def setColorSecondary(value: String): Self = StObject.set(x, "colorSecondary", value.asInstanceOf[js.Any])
inline def setDisabled(value: String): Self = StObject.set(x, "disabled", value.asInstanceOf[js.Any])
inline def setError(value: String): Self = StObject.set(x, "error", value.asInstanceOf[js.Any])
inline def setFocused(value: String): Self = StObject.set(x, "focused", value.asInstanceOf[js.Any])
inline def setFormControl(value: String): Self = StObject.set(x, "formControl", value.asInstanceOf[js.Any])
inline def setFullWidth(value: String): Self = StObject.set(x, "fullWidth", value.asInstanceOf[js.Any])
inline def setHiddenLabel(value: String): Self = StObject.set(x, "hiddenLabel", value.asInstanceOf[js.Any])
inline def setInput(value: String): Self = StObject.set(x, "input", value.asInstanceOf[js.Any])
inline def setInputAdornedEnd(value: String): Self = StObject.set(x, "inputAdornedEnd", value.asInstanceOf[js.Any])
inline def setInputAdornedStart(value: String): Self = StObject.set(x, "inputAdornedStart", value.asInstanceOf[js.Any])
inline def setInputHiddenLabel(value: String): Self = StObject.set(x, "inputHiddenLabel", value.asInstanceOf[js.Any])
inline def setInputMultiline(value: String): Self = StObject.set(x, "inputMultiline", value.asInstanceOf[js.Any])
inline def setInputSizeSmall(value: String): Self = StObject.set(x, "inputSizeSmall", value.asInstanceOf[js.Any])
inline def setInputTypeSearch(value: String): Self = StObject.set(x, "inputTypeSearch", value.asInstanceOf[js.Any])
inline def setMultiline(value: String): Self = StObject.set(x, "multiline", value.asInstanceOf[js.Any])
inline def setReadOnly(value: String): Self = StObject.set(x, "readOnly", value.asInstanceOf[js.Any])
inline def setRoot(value: String): Self = StObject.set(x, "root", value.asInstanceOf[js.Any])
inline def setSizeSmall(value: String): Self = StObject.set(x, "sizeSmall", value.asInstanceOf[js.Any])
}
}
}