// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function textBoxElementJoyStyle() {
    return css `
:host {
  --textbox-background-color: var(--joy-scheme-background);
  --textbox-border-color: var(--joy-scheme-highlight);
  --textbox-border-radius: var(--joy-layout-radius);
  --textbox-border-style: solid;
  --textbox-border-width: var(--joy-layout-thickness);
  --textbox-focus-ring-outward-offset: 0px;
  --textbox-font-family: var(--joy-font-family);
  --textbox-font-letter-spacing: unset;
  --textbox-font-line-height: unset;
  --textbox-font-size: 16px;
  --textbox-font-text-decoration: unset;
  --textbox-font-text-transform: unset;
  --textbox-font-weight: normal;
  --textbox-foreground-color: var(--joy-scheme-foreground);
  --textbox-gap: var(--joy-layout-space);
  --textbox-height: 56px;
  --textbox-padding-bottom: var(--joy-layout-space);
  --textbox-padding-left: calc(var(--joy-layout-space) * 1.5);
  --textbox-padding-right: calc(var(--joy-layout-space) * 1.5);
  --textbox-padding-top: var(--joy-layout-space);
  --textbox-prefix-icon-size: 20px;
  --textbox-shadow: var(--joy-elevation-none);
  --textbox-suffix-icon-size: 20px;
  --textbox-transition-duration: var(--joy-duration-short);
  --textbox-transition-mode: ease;
  --textbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --textbox-translate: unset;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host textarea, :host input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  resize: none;
  margin: 0;
  overflow: visible;
}

:host {
  font-family: var(--textbox-font-family);
  font-size: var(--textbox-font-size);
  line-height: var(--textbox-font-line-height);
  font-weight: var(--textbox-font-weight);
  letter-spacing: var(--textbox-font-letter-spacing);
  -webkit-text-decoration: var(--textbox-font-text-decoration);
  text-decoration: var(--textbox-font-text-decoration);
  text-transform: var(--textbox-font-text-transform);
  padding-top: var(--textbox-padding-top);
  padding-right: var(--textbox-padding-right);
  padding-bottom: var(--textbox-padding-bottom);
  padding-left: var(--textbox-padding-left);
  gap: var(--textbox-gap);
  transition-duration: var(--textbox-transition-duration);
  transition-timing-function: var(--textbox-transition-mode);
  transition-property: var(--textbox-transition-property);
  translate: var(--textbox-translate);
  background-color: var(--textbox-background-color);
  color: var(--textbox-foreground-color);
  border-color: var(--textbox-border-color);
  border-width: var(--textbox-border-width);
  border-radius: var(--textbox-border-radius);
  border-style: var(--textbox-border-style);
  min-height: var(--textbox-height);
  cursor: text;
  z-index: 0;
  outline: none;
  flex-direction: row;
  align-items: center;
  display: flex;
}

:host [part="input"] {
  transition-duration: inherit;
  transition-timing-function: inherit;
  color: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  margin: 0;
  padding: 0;
  transition-property: inherit;
}

:host textarea[part="input"] {
  box-sizing: border-box;
  resize: none;
}

:host [part="label"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: none;
  transform-origin: 0 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  will-change: transform;
  transition-property: transform, font-size, color, letter-spacing, top;
  transition-duration: .2s;
  transition-timing-function: ease;
  display: block;
  position: absolute;
  top: 10px;
  overflow: hidden;
  transform: translateY(0);
}

:host [part="label"].floating {
  top: unset;
  font-size: 12px;
  transform: translateY(-50%);
}

:host [part="suffix"], :host [part="prefix"] {
  gap: var(--textbox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

:host [part="suffix"][hidden], :host [part="prefix"][hidden] {
  display: none;
}

:host [part="suffix"] {
  --icon-size: var(--textbox-suffix-icon-size);
}

:host [part="prefix"] {
  --icon-size: var(--textbox-prefix-icon-size);
}

:host [part="inner"] {
  width: 100%;
  height: 100%;
  padding: var(--textbox-padding-top) var(--textbox-padding-right) var(--textbox-padding-bottom) var(--textbox-padding-left);
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="clear"] {
  --button-icon-min-width: 36px;
  --button-icon-min-height: 36px;
  --icon-size: 20px;
}

:host([has-label]) [part="inner"] [part="input"] {
  padding-top: 12px;
}

:host([has-label]) [part="inner"] {
  padding-bottom: unset;
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
}

:host([required]) [part="label"]:after {
  content: "*";
  margin-left: 2px;
}

:host([resize="none"]) [part="input"] {
  resize: none;
}

:host([resize="both"]) [part="input"] {
  resize: both;
}

:host([resize="horizontal"]) [part="input"] {
  resize: horizontal;
}

:host([resize="vertical"]) [part="input"] {
  resize: vertical;
}

:host([text-align="left"]) [part="input"] {
  text-align: left;
}

:host([text-align="center"]) [part="input"] {
  text-align: center;
}

:host([text-align="right"]) [part="input"] {
  text-align: right;
}

:host {
  --textbox-shadow-color: var(--joy-scheme-highlight);
}

:host [part="label"] {
  color: var(--joy-scheme-middlelight);
}

:host [part="inner"] [part="input"]::-moz-selection {
  background-color: var(--joy-scheme-selection);
}

:host [part="inner"] [part="input"]::selection {
  background-color: var(--joy-scheme-selection);
}

:host [part="inner"] [part="input"] ::-moz-placeholder {
  color: var(--joy-scheme-middlelight);
}

:host [part="inner"] [part="input"] ::placeholder {
  color: var(--joy-scheme-middlelight);
}

:host [part="inner"] [part="progressRing"] {
  margin-right: var(--joy-layout-space);
  margin-left: var(--joy-layout-space);
}

:host([disabled]:not([disabled="false"])), :host([readonly]) {
  cursor: default;
  --textbox-border-color: var(--joy-scheme-disabled);
}

:host([disabled]:not([disabled="false"])) {
  --textbox-border-color: var(--joy-scheme-disabled);
  --textbox-background-color: var(--joy-scheme-semi-transparent);
  --textbox-foreground-color: var(--joy-scheme-disabled);
}

:host([invalid]) {
  --textbox-border-color: var(--joy-color-danger-500);
  --textbox-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"]) {
  --textbox-border-width: 0;
  --textbox-background-color: var(--joy-scheme-transparent);
}

:host([appearance="plain"]) [part="focusRing"] {
  --focus-ring-outward-offset: 0px;
}

:host([appearance="soft"]), :host([appearance="solid"]) {
  --textbox-background-color: var(--joy-scheme-highlight);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --textbox-border-color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --textbox-border-color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-neutral-500);
}

    `;
}
//# sourceMappingURL=TextBoxElement.Joy.js.map