@use "sass:map";
@use "../core/_index.scss" as *;
@use "../list/_variables.scss" as *;

/// Width of the border around the time-selector.
/// @group time-selector
$kendo-time-selector-border-width: 1px !default;
/// Font family of the time-selector.
/// @group time-selector
$kendo-time-selector-font-family: var( --kendo-font-family, inherit ) !default;
/// Font size of the time-selector.
/// @group time-selector
$kendo-time-selector-font-size: var( --kendo-font-size, inherit ) !default;
/// Line height of the time-selector.
/// @group time-selector
$kendo-time-selector-line-height: var( --kendo-line-height, normal ) !default;

/// Background color of the time-selector.
/// @group time-selector
$kendo-time-selector-bg: var( --kendo-component-bg, initial ) !default;
/// Text color of the time-selector.
/// @group time-selector
$kendo-time-selector-text: var( --kendo-component-text, initial ) !default;
/// Border color of the time-selector.
/// @group time-selector
$kendo-time-selector-border: var( --kendo-component-border, initial ) !default;

/// Horizontal padding of the time-selector header.
/// @group time-selector
$kendo-time-selector-header-padding-x: k-spacing(3) !default;
/// Vertical padding color of the time-selector header.
/// @group time-selector
$kendo-time-selector-header-padding-y: k-spacing(3) !default;
/// Width of the border around the time-selector header.
/// @group time-selector
$kendo-time-selector-header-border-width: 0px !default;

/// Visibility of the time-selector separator.
/// @group time-selector
$kendo-time-list-separator-display: none !default;
/// Minimum width of the time-selector columns.
/// @group time-selector
$kendo-time-list-width: 4em !default;
/// Height of the time-selector columns.
/// @group time-selector
$kendo-time-list-height: 240px !default;

/// Spacing beneath the time selector titles.
/// @group time-selector
$kendo-time-list-title-spacing: k-spacing(3) !default;
/// Font size of the time-selector titles.
/// @group time-selector
$kendo-time-list-title-font-size: var( --kendo-font-size-xs, inherit ) !default;
/// Line height of the time-selector titles.
/// @group time-selector
$kendo-time-list-title-line-height: var( --kendo-line-height-lg, inherit ) !default;
/// Height of the time-selector titles.
/// @group time-selector
$kendo-time-list-title-height: calc( #{$kendo-time-list-title-spacing} + #{$kendo-time-list-title-font-size} * #{$kendo-time-list-title-line-height} ) !default;

/// Text color of the time-selector titles.
/// @group time-selector
$kendo-time-list-title-text: var( --kendo-subtle-text, inherit ) !default;
/// Text color of the focused time-selector titles.
/// @group time-selector
$kendo-time-list-title-focus-text: $kendo-time-selector-text !default;

/// Horizontal padding of the time-selector list items.
/// @group time-selector
$kendo-time-list-item-padding-x: k-spacing(2) !default;
/// Vertical padding of the time-selector list items.
/// @group time-selector
$kendo-time-list-item-padding-y: k-spacing(1) !default;

/// Width of the border of the selected item in the time-selector.
/// @group time-selector
$kendo-time-list-highlight-border-width: 1px 0px !default;
/// Height of the selected item in the time-selector.
/// @group time-selector
$kendo-time-list-highlight-height: calc( #{$kendo-time-selector-font-size} * #{$kendo-time-selector-line-height} + calc( #{$kendo-time-list-item-padding-y} * 2 ) ) !default;
/// Background color of the selected item in the time-selector.
/// @group time-selector
$kendo-time-list-highlight-bg: $kendo-time-selector-bg !default;
/// Border color of the selected item in the time-selector.
/// @group time-selector
$kendo-time-list-highlight-border: $kendo-time-selector-border !default;

/// Background color of the focused time-selector column.
/// @group time-selector
$kendo-time-list-focus-bg: rgba(0, 0, 0, .04) !default;


/// Font sizes of the time-selector.
/// @group time-selector
$kendo-time-selector-sm-font-size: $kendo-list-sm-font-size !default;
$kendo-time-selector-md-font-size: $kendo-list-md-font-size !default;
$kendo-time-selector-lg-font-size: $kendo-list-lg-font-size !default;

/// Line heights used along with $kendo-font-size.
/// @group time-selector
$kendo-time-selector-sm-line-height: $kendo-list-sm-line-height !default;
$kendo-time-selector-md-line-height: $kendo-list-md-line-height !default;
$kendo-time-selector-lg-line-height: $kendo-list-lg-line-height !default;

///  Horizontal padding of the time-selector items.
/// @group time-selector
$kendo-time-selector-sm-list-item-padding-x: $kendo-list-sm-item-padding-x !default;
$kendo-time-selector-md-list-item-padding-x: $kendo-list-md-item-padding-x !default;
$kendo-time-selector-lg-list-item-padding-x: $kendo-list-lg-item-padding-x !default;

///  Vertical padding of the time-selector items.
/// @group time-selector
$kendo-time-selector-sm-list-item-padding-y: $kendo-list-sm-item-padding-y !default;
$kendo-time-selector-md-list-item-padding-y: $kendo-list-md-item-padding-y !default;
$kendo-time-selector-lg-list-item-padding-y: $kendo-list-lg-item-padding-y !default;

/// Sizes map for the time-selector.
/// @group time-selector
$kendo-time-selector-sizes: (
    sm: (
        font-size: $kendo-time-selector-sm-font-size,
        line-height: $kendo-time-selector-sm-line-height,
        list-item-padding-x: $kendo-time-selector-sm-list-item-padding-x,
        list-item-padding-y: $kendo-time-selector-sm-list-item-padding-y
    ),
    md: (
        font-size: $kendo-time-selector-md-font-size,
        line-height: $kendo-time-selector-md-line-height,
        list-item-padding-x: $kendo-time-selector-md-list-item-padding-x,
        list-item-padding-y: $kendo-time-selector-md-list-item-padding-y
    ),
    lg: (
        font-size: $kendo-time-selector-lg-font-size,
        line-height: $kendo-time-selector-lg-line-height,
        list-item-padding-x: $kendo-time-selector-lg-list-item-padding-x,
        list-item-padding-y: $kendo-time-selector-lg-list-item-padding-y
    )
) !default;
