// ------------------------------------------------------------------------------
// <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 treeItemElementJoyStyle() {
    return css `
:host {
  --tree-item-background-color: var(--joy-scheme-background);
  --tree-item-border-color: var(--joy-scheme-highlight);
  --tree-item-border-radius: var(--joy-layout-radius);
  --tree-item-border-style: solid;
  --tree-item-border-width: 0px;
  --tree-item-font-family: var(--joy-font-family);
  --tree-item-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --tree-item-font-line-height: var(--joy-typography-body1-line-height);
  --tree-item-font-size: var(--joy-typography-body1-font-size);
  --tree-item-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --tree-item-font-text-transform: var(--joy-typography-body1-text-transform);
  --tree-item-font-weight: var(--joy-typography-body1-font-weight);
  --tree-item-foreground-color: var(--joy-scheme-foreground);
  --tree-item-gap: 8px;
  --tree-item-indent-color: var(--joy-scheme-highlight);
  --tree-item-indent-offset: calc(var(--joy-layout-space) * 2);
  --tree-item-indent-size: var(--joy-layout-thickness);
  --tree-item-padding-bottom: 8px;
  --tree-item-padding-left: 16px;
  --tree-item-padding-right: 16px;
  --tree-item-padding-top: 8px;
  --tree-item-shadow: var(--joy-elevation-none);
  --tree-item-transition-duration: var(--joy-duration-short);
  --tree-item-transition-mode: ease;
  --tree-item-transition-property: background-color, color, border-color, box-shadow;
  --tree-item-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 {
  content-visibility: auto;
}

:host [part="root"] {
  font-family: var(--tree-item-font-family);
  font-size: var(--tree-item-font-size);
  line-height: var(--tree-item-font-line-height);
  font-weight: var(--tree-item-font-weight);
  letter-spacing: var(--tree-item-font-letter-spacing);
  -webkit-text-decoration: var(--tree-item-font-text-decoration);
  text-decoration: var(--tree-item-font-text-decoration);
  text-transform: var(--tree-item-font-text-transform);
  align-items: center;
  gap: var(--tree-item-gap);
  background-color: var(--tree-item-background-color);
  flex-direction: row;
  min-height: 48px;
  display: flex;
}

:host [part="text"] {
  flex: 1;
}

:host [part="caret"]::part(icon) {
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(-90deg);
}

:host [part="expandable"]::part(content):before {
  content: "";
  top: 0;
  left: var(--tree-item-indent-offset);
  width: var(--tree-item-indent-size);
  background-color: var(--tree-item-indent-color);
  height: 100%;
  position: absolute;
}

:host [part="prefix-container"] {
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
}

:host slot:not([name]) {
  margin-left: calc(var(--tree-item-padding-left) * 2 + var(--tree-item-gap));
  display: block;
}

:host(:not([has-children])) {
  margin-left: 8px;
}

:host([is-expanded]) [part="caret"]::part(icon) {
  transform: rotate(-45deg);
}

:host(:not([disabled]:not([disabled="false"])):not(:active)) [part="root"]:hover {
  --tree-item-background-color: var(--joy-scheme-semi-transparent);
}

:host(:not([disabled]:not([disabled="false"]))) [part="root"]:hover {
  --tree-item-background-color: var(--joy-scheme-highlight);
}

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