// ------------------------------------------------------------------------------
// <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 dateBoxElementJoyStyle() {
    return css `
:host {
  --datebox-background-color: var(--joy-scheme-background);
  --datebox-border-color: var(--joy-scheme-highlight);
  --datebox-border-radius: var(--joy-layout-radius);
  --datebox-border-style: solid;
  --datebox-border-width: var(--joy-layout-thickness);
  --datebox-focus-ring-width: 0px;
  --datebox-font-family: var(--joy-font-family);
  --datebox-font-letter-spacing: unset;
  --datebox-font-line-height: unset;
  --datebox-font-size: var(--joy-typography-body1-font-size);
  --datebox-font-text-decoration: unset;
  --datebox-font-text-transform: unset;
  --datebox-font-weight: var(--joy-typography-body1-font-weight);
  --datebox-foreground-color: var(--joy-scheme-foreground);
  --datebox-gap: var(--joy-layout-space);
  --datebox-height: 56px;
  --datebox-padding-bottom: var(--joy-layout-space);
  --datebox-padding-left: calc(var(--joy-layout-space) * 1.5);
  --datebox-padding-right: calc(var(--joy-layout-space) * 1.5);
  --datebox-padding-top: var(--joy-layout-space);
  --datebox-shadow: var(--joy-elevation-semilight-offset-x-0) var(--joy-elevation-semilight-offset-y-0) var(--joy-elevation-semilight-blur-0) var(--joy-elevation-semilight-spread-0) var(--joy-elevation-semilight-color-0);
  --datebox-shadow-blur: var(--joy-elevation-semilight-blur-0);
  --datebox-shadow-color: var(--joy-elevation-semilight-color-0);
  --datebox-shadow-offset-x: var(--joy-elevation-semilight-offset-x-0);
  --datebox-shadow-offset-y: var(--joy-elevation-semilight-offset-y-0);
  --datebox-shadow-spread: var(--joy-elevation-semilight-spread-0);
  --datebox-transition-duration: var(--joy-duration-short);
  --datebox-transition-mode: ease;
  --datebox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --datebox-translate: none;
}

@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 input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  margin: 0;
  overflow: visible;
}

:host input::-webkit-inner-spin-button, :host input::-webkit-calendar-picker-indicator {
  -webkit-appearance: none;
  display: none;
}

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

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

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

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

: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"] {
  gap: var(--datebox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

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

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

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

:host [part="calendar"] {
  --calendar-border-width: 0;
  --calendar-border-radius: 0;
  --calendar-border-style: none;
}

:host [part="calendar"][part="header"], :host [part="calendar"]::part(header) {
  display: none;
}

:host [part="popup"] {
  z-index: 100;
}

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

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

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

:host([appearance="plain"]) {
  --datebox-border-width: 0;
}

: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 [part="label"] {
  color: var(--joy-scheme-middlelight);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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