// ------------------------------------------------------------------------------
// <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 progressRingElementJoyStyle() {
    return css `
:host {
  --progress-ring-background-color: var(--joy-scheme-highlight);
  --progress-ring-border-color: var(--joy-scheme-highlight);
  --progress-ring-border-radius: 16px;
  --progress-ring-border-style: solid;
  --progress-ring-border-width: 0px;
  --progress-ring-fill-color: var(--joy-scheme-foreground);
  --progress-ring-font-family: var(--joy-font-family);
  --progress-ring-font-letter-spacing: unset;
  --progress-ring-font-line-height: unset;
  --progress-ring-font-size: 12px;
  --progress-ring-font-text-decoration: unset;
  --progress-ring-font-text-transform: unset;
  --progress-ring-font-weight: normal;
  --progress-ring-foreground-color: var(--joy-color-neutral-900);
  --progress-ring-gap: 8px;
  --progress-ring-padding-bottom: 4px;
  --progress-ring-padding-left: 8px;
  --progress-ring-padding-right: 8px;
  --progress-ring-padding-top: 4px;
  --progress-ring-radius: 60px;
  --progress-ring-shadow: unset;
  --progress-ring-thickness: 6px;
  --progress-ring-transition-duration: var(--joy-duration-short);
  --progress-ring-transition-mode: ease;
  --progress-ring-transition-property: background-color, color, border-color, opacity, box-shadow;
  --progress-ring-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 {
  --progress-ring-thickness: var(--progress-ring-thickness);
  --progress-ring-radius: var(--progress-ring-radius);
  --_circumference: calc(2 * 3.1416 * var(--progress-ring-radius));
  line-height: 0;
  display: block;
}

:host [part="svg"] {
  vertical-align: middle;
  width: 100%;
  line-height: 1;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

:host [part="svg"] [part="indeterminate"] {
  stroke-width: var(--progress-ring-thickness);
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius)  - var(--progress-ring-thickness) / 2);
  fill: none;
}

:host [part="svg"] [part="bar"] {
  stroke: var(--progress-ring-background-color);
  stroke-width: var(--progress-ring-thickness);
  fill: none;
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius)  - var(--progress-ring-thickness) / 2);
}

:host [part="svg"] [part="fill"] {
  stroke-width: var(--progress-ring-thickness);
  stroke-linecap: round;
  fill: none;
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius)  - var(--progress-ring-thickness) / 2);
  transition-property: stroke-dashoffset stroke-dasharray stroke;
  transition-duration: var(--progress-ring-transition-duration);
  transition-timing-function: var(--progress-ring-transition-mode);
  transform-origin: 50%;
  stroke: var(--progress-ring-fill-color);
  animation: all ease-out var(--progress-ring-transition-duration);
  transform: rotate(-90deg);
}

:host [part="svg"].indeterminate {
  transform-origin: center;
  width: 100%;
  height: 100%;
  margin: auto;
  animation: 2s linear infinite indeterminate;
  position: absolute;
  inset: 0;
}

:host [part="svg"].indeterminate > circle {
  stroke: var(--progress-ring-fill-color);
  stroke-dasharray: 1 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: 1.5s ease-in-out infinite dash;
}

:host [part="hint"] {
  flex-direction: row;
  justify-content: space-between;
  display: flex;
}

@keyframes indeterminate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89 200;
    stroke-dashoffset: -132px;
  }
}

:host([disabled]:not([disabled="false"])) {
  --progress-ring-background-color: var(--joy-scheme-background);
  --progress-ring-border-color: var(--joy-scheme-highlight);
  --progress-ring-foreground-color: var(--joy-scheme-disabled);
  --progress-ring-fill-color: var(--joy-scheme-disabled);
}

:host([disabled]:not([disabled="false"])) [part="svg"] .circle-path {
  stroke: var(--progress-ring-fill-color);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="svg"] .circle-path, :host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="svg"].indeterminate > circle {
  stroke: var(--joy-color-neutral-500);
}

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