// ------------------------------------------------------------------------------
// <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 richTextBoxElementJoyStyle() {
    return css `
:host {
  --richtextbox-background-color: var(--joy-scheme-background);
  --richtextbox-border-color: var(--joy-scheme-highlight);
  --richtextbox-border-radius: var(--joy-layout-radius);
  --richtextbox-border-style: solid;
  --richtextbox-border-width: var(--joy-layout-thickness);
  --richtextbox-font-family: var(--joy-font-family);
  --richtextbox-font-letter-spacing: unset;
  --richtextbox-font-line-height: unset;
  --richtextbox-font-size: 16px;
  --richtextbox-font-text-decoration: unset;
  --richtextbox-font-text-transform: unset;
  --richtextbox-font-weight: normal;
  --richtextbox-foreground-color: var(--joy-scheme-foreground);
  --richtextbox-gap: var(--joy-layout-space);
  --richtextbox-height: 56px;
  --richtextbox-padding-bottom: var(--joy-layout-space);
  --richtextbox-padding-left: calc(var(--joy-layout-space) * 1.5);
  --richtextbox-padding-right: calc(var(--joy-layout-space) * 1.5);
  --richtextbox-padding-top: var(--joy-layout-space);
  --richtextbox-shadow: unset;
  --richtextbox-transition-duration: var(--joy-duration-short);
  --richtextbox-transition-mode: ease;
  --richtextbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --richtextbox-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 {
  font-family: var(--richtextbox-font-family);
  font-size: var(--richtextbox-font-size);
  line-height: var(--richtextbox-font-line-height);
  font-weight: var(--richtextbox-font-weight);
  letter-spacing: var(--richtextbox-font-letter-spacing);
  -webkit-text-decoration: var(--richtextbox-font-text-decoration);
  text-decoration: var(--richtextbox-font-text-decoration);
  text-transform: var(--richtextbox-font-text-transform);
  padding-top: var(--richtextbox-padding-top);
  padding-right: var(--richtextbox-padding-right);
  padding-bottom: var(--richtextbox-padding-bottom);
  padding-left: var(--richtextbox-padding-left);
  gap: var(--richtextbox-gap);
  transition-duration: var(--richtextbox-transition-duration);
  transition-timing-function: var(--richtextbox-transition-mode);
  transition-property: var(--richtextbox-transition-property);
  translate: var(--richtextbox-translate);
  background-color: var(--richtextbox-background-color);
  color: var(--richtextbox-foreground-color);
  border-color: var(--richtextbox-border-color);
  border-width: var(--richtextbox-border-width);
  border-radius: var(--richtextbox-border-radius);
  border-style: var(--richtextbox-border-style);
  box-shadow: var(--richtextbox-shadow);
  min-height: var(--richtextbox-height);
  cursor: text;
  z-index: 0;
  outline: none;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  display: flex;
}

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

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

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

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

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

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

: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 [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;
  left: 12px;
  overflow: hidden;
  transform: translateY(0);
}

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

:host [part="clear"] {
  cursor: pointer;
}

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

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

: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([appearance="plain"]) {
  --richtextbox-border-width: 0;
}

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

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

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

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

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

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

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

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

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

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

:host([appearance="plain"]) [part="toolbox"] {
  --richtextbox-toolbox-border-color: var(--joy-scheme-background);
}

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

:host([appearance="soft"]) [part="toolbox"] {
  --richtextbox-toolbox-border-color: var(--joy-scheme-background);
}

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

:host([appearance="solid"]) [part="toolbox"] {
  --richtextbox-toolbox-border-color: var(--joy-scheme-background);
}

: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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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) {
  --richtextbox-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=RichTextBoxElement.Joy.js.map