生态产品多个设计器现已发布候选版本

查看生态总览
Skip to content

TimeRangePicker new ​

Data entry component. This page is the API reference, generated from the source code. Usage guidance and live examples are on the Chinese page.

Anatomy ​

Parts in bold are required.

data-scope="time-range-picker": root · label · control · segment-group · segment · range-separator · trigger · clear-trigger · positioner · content · preset-group · preset · column-group · column-group-label · column · item · hidden-input

API reference ​

Descriptions of individual props, events and slots are written in Chinese and appear on the Chinese page.

Artifacts ​

LayerValue
Custom element<xh-time-range-picker>
Vue componentsXhTimeRangePickerClearTrigger XhTimeRangePickerColumn XhTimeRangePickerColumnGroup XhTimeRangePickerColumnGroupLabel XhTimeRangePickerContent XhTimeRangePickerControl XhTimeRangePickerHiddenInput XhTimeRangePickerItem XhTimeRangePickerLabel XhTimeRangePickerPositioner XhTimeRangePickerPreset XhTimeRangePickerPresetGroup XhTimeRangePickerRangeSeparator XhTimeRangePickerRoot XhTimeRangePickerSegment XhTimeRangePickerSegmentGroup XhTimeRangePickerTrigger
ComposableuseTimeRangePicker
State machinetimeRangePickerMachine
Skin@xihan-ui/styles/time-range-picker.css

Props ​

PropTypeRequired
labelledboolean
ariaLabelstring
valuestring[]
defaultValuestring[]
openboolean
defaultOpenboolean
minstring
maxstring
localestring
hourCycleTimeHourCycle
granularityTimeGranularity
timeStepTimeStep
presetsTimeRangePickerPreset[]
disabledboolean
readOnlyboolean
invalidboolean
requiredboolean
namestring
endNamestring
startPlaceholderstring
endPlaceholderstring
variantControlVariant
toneTone
sizeSize
placementPlacement
dirDirection
offsetnumber
isTimeUnavailableTimeUnavailablePredicate
translationsPartial<TimeRangePickerTranslations>
onValueChange(details: TimeRangePickerValueChangeDetails) => void
onClear() => void
onOpenChange(details: TimeRangePickerOpenChangeDetails) => void

TimeRangePickerPreset ​

Elements of presets.

FieldTypeRequired
valuestringYes
labelstringYes
disabledboolean

Events ​

Custom elements put the payload in detail; Vue emits an event of the same name.

EventPayload
value-changeTimeRangePickerValueChangeDetails
clear``
open-changeTimeRangePickerOpenChangeDetails

Slots ​

Only slots with a payload are listed.

Vue componentSlotPayload
XhTimeRangePickerColumndefaultTimeRangePickerColumnSlotProps
XhTimeRangePickerColumnGroupdefaultTimeRangePickerColumnGroupSlotProps
XhTimeRangePickerPresetdefault—
XhTimeRangePickerPresetGroupdefaultTimeRangePickerPresetsSlotProps
XhTimeRangePickerRootdefaultTimeRangePickerRootSlotProps
XhTimeRangePickerRootlabel—

React adapter props ​

Only the props each component declares itself: DOM attributes inherited from ComponentPropsWithRef are left out, and root props already listed in the Props table are not repeated. The Vue counterpart is the slot table above.

React componentPropTypeRequired
XhTimeRangePickerColumnunitTimePickerColumnUnitYes
XhTimeRangePickerColumnchildrenSlotChildren<TimeRangePickerColumnSlotProps>
XhTimeRangePickerColumnGroupindexnumber | string
XhTimeRangePickerColumnGroupchildrenSlotChildren<TimeRangePickerColumnGroupSlotProps>
XhTimeRangePickerHiddenInputindexnumber | string
XhTimeRangePickerItemvaluestringYes
XhTimeRangePickerPositionercontainer() => Element | null
XhTimeRangePickerPresetvaluestringYes
XhTimeRangePickerPresetGroupchildrenSlotChildren<TimeRangePickerPresetsSlotProps>
XhTimeRangePickerRootlabelReactNode
XhTimeRangePickerRootchildrenSlotChildren<TimeRangePickerRootSlotProps>
XhTimeRangePickerSegmentsegmentTimeSegmentTypeYes
XhTimeRangePickerSegmentGroupindexnumber | string

State ​

Public state is written to data-state.

PartValues
root'open' | 'closed'
control'open' | 'closed'
trigger'open' | 'closed'
positioner'open' | 'closed'
content'open' | 'closed'
preset'checked' | 'unchecked'
column-group'open' | 'closed'
column'open' | 'closed'
item'checked' | 'unchecked'

The following names are internal to the state machine.

States: open · closed

Events: OPEN · TOGGLE · CLOSE · CONTROLLED.OPEN · CONTROLLED.CLOSE · VALUE.SET · VALUE.CLEAR · SEGMENT.STEP · SEGMENT.DIGIT · SEGMENT.CLEAR · SEGMENT.PERIOD · SEGMENT.FOCUS · SEGMENT.BLUR · OPTION.FOCUS · ITEM.SELECT · FORM.RESET · PRESS.START · PRESS.END

Guards: isOpenControlled · canEdit · closesOnPreset · canPress

connect API ​

getXxxProps() returns the host attributes of the matching part.

MemberType
openboolean
valuestring[]
startstring | null
endstring | null
emptyboolean
outOfRangeboolean
reversedboolean
disabledboolean
readOnlyboolean
invalidboolean
hourCycleTimeHourCycle
granularityTimeGranularity
timeStepResolvedTimeStep
segmentsTimeSegmentType[]
focusedSegmentTimeRangePickerSegmentRef | null
columnGroupsreadonly [TimeRangePickerColumnGroup, TimeRangePickerColumnGroup]
focusedColumnTimeRangePickerColumnRef | null
focusedItemstring | null
presetsreadonly TimeRangePickerPresetState[]
canClearboolean
translationsTimeRangePickerTranslations
getSegmentText(props: TimeRangePickerSegmentProps) => string
getItemText(props: TimeRangePickerItemTextProps) => string
isItemSelected(props: TimeRangePickerItemProps) => boolean
isItemDisabled(props: TimeRangePickerItemProps) => boolean
setOpen(next: boolean) => void
setValue(next: string[]) => void
clear() => void
getRootProps() => T['element']
getLabelProps() => T['label']
getControlProps() => T['element']
getSegmentGroupProps(props: TimeRangePickerEndProps) => T['element']
getSegmentProps(props: TimeRangePickerSegmentProps) => T['element']
getRangeSeparatorProps() => T['element']
getTriggerProps() => T['button']
getClearTriggerProps() => T['button']
getPositionerProps() => T['element']
getContentProps() => T['element']
getPresetGroupProps() => T['element']
getPresetProps(props: TimeRangePickerPresetProps) => T['element']
getColumnGroupProps(props: TimeRangePickerEndProps) => T['element']
getColumnGroupLabelProps(props: TimeRangePickerEndProps) => T['element']
getColumnProps(props: TimeRangePickerColumnProps) => T['element']
getItemProps(props: TimeRangePickerItemProps) => T['element']
getHiddenInputProps(props: TimeRangePickerEndProps) => T['input']

Accessibility ​

Keyboard ​

Specification: W3C APG. Each row is a stable behavior id that the conformance tests cover; the conditions and effects are described on the Chinese page.

KeysBehavior
ArrowDown / ArrowUptime-range-picker.kbd.open
Enter / Spacetime-range-picker.kbd.toggle
ArrowDowntime-range-picker.kbd.item-next
ArrowUptime-range-picker.kbd.item-prev
Hometime-range-picker.kbd.item-first
Endtime-range-picker.kbd.item-last
ArrowRighttime-range-picker.kbd.column-next
ArrowLefttime-range-picker.kbd.column-prev
Enter / Spacetime-range-picker.kbd.select
ArrowUp / ArrowDown / Home / Endtime-range-picker.kbd.preset-move
Enter / Spacetime-range-picker.kbd.preset-pick
Escapetime-range-picker.kbd.escape
Tab / Shift+Tabtime-range-picker.kbd.tab
ArrowUptime-range-picker.kbd.segment-increment
ArrowDowntime-range-picker.kbd.segment-decrement
ArrowRighttime-range-picker.kbd.segment-next
ArrowLefttime-range-picker.kbd.segment-prev
Hometime-range-picker.kbd.segment-first
Endtime-range-picker.kbd.segment-last
0-9time-range-picker.kbd.segment-digit
Backspace / Deletetime-range-picker.kbd.segment-clear
a / ptime-range-picker.kbd.segment-period
Alt+ArrowDowntime-range-picker.kbd.segment-open
Entertime-range-picker.kbd.segment-close
Enter / Spacetime-range-picker.kbd.press

ARIA ​

These attributes are produced by connect.

PartAttributeValue
controlaria-disabled'true' | 'false'
controlaria-invalid'true' | 'false'
controlaria-labelprops.ariaLabel
controlaria-labelledbyid of the label part | undefined
controlrole'group'
segment-grouparia-disabled'true' | 'false'
segment-grouparia-labelendLabel(index, translations)
segment-grouprole'group'
segmentaria-disabled'true' | 'false'
segmentaria-invalid'true' | 'false'
segmentaria-labeltranslations[segment]
segmentaria-readonly'true' | 'false'
segmentaria-required'true' | 'false'
segmentaria-valuemaxrange.max
segmentaria-valueminrange.min
segmentaria-valuenowsegmentNumber(drafts[index], segment, hourCycle)
segmentaria-valuetexttimeSegmentText(drafts[index], segment, { hourCycle, …
segmentrole'spinbutton'
range-separatoraria-hidden'true'
triggeraria-controlsid of the content part
triggeraria-expanded'true' | 'false'
triggeraria-haspopup'dialog'
triggeraria-labelprops.ariaLabel
triggeraria-labelledbyid of the label part | undefined
clear-triggeraria-labeltranslations.clearTrigger
contentaria-hidden!open || undefined
contentaria-labelprops.ariaLabel
contentaria-labelledbyid of the label part | undefined
contentaria-modal'false'
contentrole'dialog'
preset-grouparia-disabled'true' | 'false'
preset-grouparia-labeltranslations.presets
preset-grouparia-multiselectable'false'
preset-grouparia-orientation'vertical'
preset-grouprole'listbox'
presetaria-disabled'true' | 'false'
presetaria-selected'true' | 'false'
presetrole'option'
column-grouparia-labelendLabel(index, translations)
column-grouprole'group'
column-group-labelaria-hidden'true'
columnaria-disabled'true' | 'false'
columnaria-labeltranslations[unit]
columnaria-multiselectable'false'
columnaria-orientation'vertical'
columnrole'listbox'
itemaria-disabled'true' | 'false'
itemaria-selected'true' | 'false'
itemrole'option'

Style reference ​

Skin ​

@xihan-ui/styles/time-range-picker.css is written against [data-scope="time-range-picker"][data-part="root"] part selectors; the published build uses the mount class .xh-scope-time-range-picker in place of data-scope (same specificity) and sits in the xihan.components and xihan.motion layers. Put overrides in xihan.overrides; the part selectors work as usual.

Data attributes ​

Produced by connect; valueless attributes are omitted while their condition does not hold.

PartAttributeValue
rootdata-disabled'' (present only while the condition holds)
rootdata-empty'' (present only while the condition holds)
rootdata-invalid'' (present only while the condition holds)
rootdata-out-of-range'' (present only while the condition holds)
rootdata-readonly'' (present only while the condition holds)
rootdata-sizeprops.size
rootdata-state'open' | 'closed'
rootdata-toneprops.tone
rootdata-variantprops.variant
labeldata-disabled'' (present only while the condition holds)
controldata-disabled'' (present only while the condition holds)
controldata-empty'' (present only while the condition holds)
controldata-invalid'' (present only while the condition holds)
controldata-readonly'' (present only while the condition holds)
controldata-state'open' | 'closed'
controldata-variantprops.variant
controldata-xh-action-owner''
controldata-xh-field-chrome''
controldata-xh-field-sizeprops.size
segment-groupdata-complete'' (present only while the condition holds)
segment-groupdata-disabled'' (present only while the condition holds)
segment-groupdata-empty'' (present only while the condition holds)
segment-groupdata-indexString(index)
segment-groupdata-invalid'' (present only while the condition holds)
segment-groupdata-out-of-range'' (present only while the condition holds)
segment-groupdata-placeholder-shown'' (present only while the condition holds)
segment-groupdata-placeholder-textprops.endPlaceholder | props.startPlaceholder | undefined
segment-groupdata-readonly'' (present only while the condition holds)
segmentdata-disabled'' (present only while the condition holds)
segmentdata-focus'' (present only while the condition holds)
segmentdata-invalid'' (present only while the condition holds)
segmentdata-placeholder'' (present only while the condition holds)
segmentdata-readonly'' (present only while the condition holds)
range-separatordata-disabled'' (present only while the condition holds)
triggerdata-disabled'' (present only while the condition holds)
triggerdata-pressed'' (present only while the condition holds)
triggerdata-state'open' | 'closed'
triggerdata-xh-action-control''
triggerdata-xh-action-display'always'
triggerdata-xh-action-profile'field-inset'
triggerdata-xh-action-sizeprops.size
triggerdata-xh-action-variant'ghost'
clear-triggerdata-pressed'' (present only while the condition holds)
clear-triggerdata-xh-action-control''
clear-triggerdata-xh-action-display'has-value'
clear-triggerdata-xh-action-has-value'' (present only while the condition holds)
clear-triggerdata-xh-action-profile'field-inset'
clear-triggerdata-xh-action-sizeprops.size
clear-triggerdata-xh-action-variant'ghost'
positionerdata-hidden'' (present only while the condition holds)
positionerdata-placementactual placement computed by the positioning engine
positionerdata-positioned'' (present only while the condition holds)
positionerdata-sizeprops.size
positionerdata-state'open' | 'closed'
positionerdata-toneprops.tone
positionerdata-variantprops.variant
contentdata-instant'' (present only while the condition holds)
contentdata-placementactual placement computed by the positioning engine
contentdata-state'open' | 'closed'
presetdata-disabled'' (present only while the condition holds)
presetdata-pressed'' (present only while the condition holds)
presetdata-state'checked' | 'unchecked'
presetdata-xh-collection-context'overlay'
presetdata-xh-collection-item''
presetdata-xh-collection-sizeprops.size
column-groupdata-disabled'' (present only while the condition holds)
column-groupdata-focus'' (present only while the condition holds)
column-groupdata-indexString(index)
column-groupdata-state'open' | 'closed'
column-group-labeldata-disabled'' (present only while the condition holds)
column-group-labeldata-indexString(index)
columndata-disabled'' (present only while the condition holds)
columndata-state'open' | 'closed'
itemdata-disabled'' (present only while the condition holds)
itemdata-highlighted'' (present only while the condition holds)
itemdata-pressed'' (present only while the condition holds)
itemdata-state'checked' | 'unchecked'
itemdata-xh-collection-context'overlay'
itemdata-xh-collection-item''
itemdata-xh-collection-sizeprops.size
hidden-inputdata-indexString(index)

CSS variables ​

The public override slots, generated from what the standalone skin actually consumes.

VariablePartCSS propertyStateDefault from
--xh-time-range-picker-action-bgclear-trigger
trigger
--xh-ink-surface
background-color
default
xh-ink-surface
--xh-_action-variant-bg-rest
--xh-time-range-picker-action-bg-activeclear-trigger
trigger
background-colordisabled
is(:active, [data-pressed])
loading
not([data-disabled])
not([data-loading])
pressed
--xh-_action-variant-bg-pressed
--xh-time-range-picker-action-bg-hoverclear-trigger
trigger
--xh-ink-surface
background-color
disabled
hover
loading
not([data-disabled])
not([data-loading])
state=open
xh-ink-surface
--xh-_action-variant-bg-hover
--xh-time-range-picker-action-fgclear-trigger
trigger
colordefault--xh-fg-field-clear
--xh-fg-muted
--xh-time-range-picker-action-fg-hoverclear-trigger
trigger
colordisabled
hover
loading
not([data-disabled])
not([data-loading])
state=open
--xh-fg-default
--xh-time-range-picker-action-font-sizeclear-trigger
trigger
font-sizedefault--xh-text-secondary-size
--xh-time-range-picker-action-radiusclear-trigger
trigger
border-radiusdefault--xh-shape-circle
--xh-shape-inset
--xh-time-range-picker-action-sizeclear-trigger
trigger
block-size
inline-size
min-inline-size
default
xh-action-profile=field-inset
--xh-_action-profile-visual-size
--xh-time-range-picker-column-dividercolumn
column-group
preset-group
border-block-start
border-inline-end
border-inline-start
default--xh-material-solid-border
--xh-time-range-picker-column-gapcolumn
item
gap
inset-block
default--xh-space-2
--xh-time-range-picker-column-group-dividercolumn-groupborder-inline-startdefault--xh-material-solid-border
--xh-time-range-picker-column-group-gapcolumn-groupmargin-inline-start
padding-inline-start
default--xh-space-0
--xh-time-range-picker-column-group-label-fgcolumn-group-labelcolordefault--xh-fg-subtle
--xh-time-range-picker-column-group-label-pxcolumn-group-labelpadding-inlinedefault--xh-space-1
--xh-time-range-picker-column-group-label-pycolumn-group
column-group-label
block-size
padding-block
padding-block-start
default--xh-space-1
--xh-time-range-picker-column-group-pycolumn-group
column-group-label
block-size
padding-block-start
default--xh-time-range-picker-column-group-label-py
--xh-time-range-picker-column-hcolumnblock-size
padding-block
default--xh-overlay-time-column-h
--xh-time-range-picker-column-min-wcolumnmin-inline-sizedefault--xh-overlay-time-column-w
--xh-time-range-picker-column-pxcolumnpadding-inlinedefault--xh-space-1
--xh-time-range-picker-column-pycolumnpadding-blockdefault--xh-space-1
--xh-time-range-picker-content-bgcontentbackgrounddefault--xh-bg-surface
--xh-time-range-picker-content-bordercontentborderdefault--xh-border-default
--xh-time-range-picker-content-fgcontentcolordefault--xh-fg-default
--xh-time-range-picker-content-max-hcontentmax-block-sizedefaultnone
--xh-time-range-picker-content-pxcontentpadding-inlinedefault--xh-space-0
--xh-time-range-picker-content-pycontentpadding-blockdefault--xh-space-0
--xh-time-range-picker-content-radiuscontentborder-radiusdefault--xh-shape-overlay
--xh-time-range-picker-content-shadowcontentbox-shadowdefault--xh-elevation-floating
--xh-time-range-picker-control-bgcontrolbackground-colorxh-field-chrome--xh-_field-variant-bg-rest
--xh-time-range-picker-control-bg-disabledcontrolbackground-colordisabled
xh-field-chrome
--xh-_field-variant-bg-disabled
--xh-time-range-picker-control-bg-hovercontrolbackground-colordisabled
hover
invalid
loading
not(:focus-within)
not([data-disabled])
not([data-invalid])
not([data-loading])
not([data-readonly])
readonly
xh-field-chrome
--xh-_field-variant-bg-hover
--xh-time-range-picker-control-bg-readonlycontrolbackground-colorreadonly
xh-field-chrome
--xh-_field-variant-bg-read-only
--xh-time-range-picker-control-bordercontrolborderxh-field-chrome--xh-_field-variant-border-rest
--xh-time-range-picker-control-border-focuscontrolborder-color
box-shadow
disabled
focus-within
not([data-disabled])
xh-field-chrome
--xh-_field-variant-border-focus
--xh-time-range-picker-control-border-hovercontrolborder-colordisabled
hover
invalid
loading
not(:focus-within)
not([data-disabled])
not([data-invalid])
not([data-loading])
not([data-readonly])
readonly
xh-field-chrome
--xh-_field-variant-border-hover
--xh-time-range-picker-control-border-invalidcontrolborder-colorinvalid
xh-field-chrome
--xh-_field-variant-border-invalid
--xh-time-range-picker-control-fgcontrolcolorxh-field-chrome--xh-fg-default
--xh-time-range-picker-control-gapcontrol
range-separator
gap
margin-inline
default
xh-field-chrome
--xh-_time-range-picker-gap
--xh-time-range-picker-control-hcontrolblock-size
min-block-size
has([data-xh-field-input][data-xh-field-layout='multi-tag'])
has([data-xh-field-input][data-xh-field-layout='single-line'])
has([data-xh-field-input][data-xh-field-layout='textarea'])
xh-field-chrome
xh-field-input
xh-field-layout=multi-tag
xh-field-layout=single-line
xh-field-layout=textarea
--xh-_time-range-picker-control-h
--xh-time-range-picker-control-min-wcontrol
root
min-inline-sizedefault
xh-field-chrome
--xh-control-min-w
--xh-time-range-picker-control-pxcontrolpadding-inlinexh-field-chrome--xh-_time-range-picker-control-px
--xh-time-range-picker-control-radiuscontrolborder-radiusxh-field-chrome--xh-shape-control
--xh-time-range-picker-control-shadowcontrolbox-shadowxh-field-chromenone
--xh-time-range-picker-control-wrootinline-size
min-inline-size
default--xh-control-w
--xh-time-range-picker-font-sizecontrolfont-sizedefault--xh-_time-range-picker-font-size
--xh-time-range-picker-gaplabel
root
gap
margin-block-end
default--xh-space-1
--xh-time-range-picker-icon-sizecontrol
positioner
root
--xh-icon-sizedefault
is([data-part='root'], [data-part='positioner'])
size=lg
size=sm
xh-field-chrome
--xh-_field-size-glyph-size
--xh-glyph-size-lg
--xh-glyph-size-md
--xh-glyph-size-sm
--xh-time-range-picker-item-bg-hoveritembackground-colordisabled
error
highlighted
hover
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
selected
xh-collection-context=overlay
--xh-bg-subtle
--xh-time-range-picker-item-bg-presseditembackground-colordisabled
error
is(:active, [data-pressed])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-bg-subtle-hover
--xh-time-range-picker-item-check-fgitembackground-colordefault--xh-_time-range-picker-check-fg
--xh-time-range-picker-item-check-sizeitemblock-size
inline-size
padding-inline
default--xh-control-indicator-size
--xh-time-range-picker-item-fgitemcolordefault
disabled
error
highlighted
hover
is(:active, [data-pressed])
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-material-frosted-fg
--xh-time-range-picker-item-fg-selecteditemcolordisabled
error
highlighted
hover
is(:active, [data-pressed])
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-time-range-picker-item-fg
--xh-time-range-picker-item-font-sizeitemfont-sizedefault--xh-_time-range-picker-font-size
--xh-time-range-picker-item-font-weight-selecteditemfont-weightdisabled
error
highlighted
hover
is(:active, [data-pressed])
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-font-weight-medium
--xh-time-range-picker-item-hcolumn
item
block-size
padding-block
default--xh-control-action-size
--xh-time-range-picker-item-pxitempadding-inlinedefault--xh-space-0_5
--xh-time-range-picker-item-radiusitemborder-radiusdefault--xh-shape-inset
--xh-time-range-picker-label-fglabelcolordefault--xh-fg-muted
--xh-time-range-picker-label-fg-disabledlabelcolordisabled--xh-fg-muted
--xh-time-range-picker-label-font-sizelabelfont-sizedefault--xh-text-label-size
--xh-time-range-picker-label-font-weightlabelfont-weightdefault--xh-text-label-weight
--xh-time-range-picker-label-gaplabelmargin-block-enddefault--xh-space-2
--xh-time-range-picker-layerpositionerz-indexdefault--xh-_layer
--xh-time-range-picker-literal-fgsegment-groupcolornot([data-scope])--xh-fg-subtle
--xh-time-range-picker-placeholder-fgsegment
segment-group
colorplaceholder
placeholder-shown
--xh-fg-subtle
--xh-time-range-picker-preset-bgpresetbackground-colordefault
disabled
error
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
selected
xh-collection-context=overlay
--xh-bg-subtle
--xh-time-range-picker-preset-bg-hoverpresetbackground-colordisabled
error
highlighted
hover
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
selected
xh-collection-context=overlay
--xh-bg-subtle-hover
--xh-time-range-picker-preset-bg-pressedpresetbackground-colordisabled
error
is(:active, [data-pressed])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-bg-subtle-active
--xh-time-range-picker-preset-check-fgpresetbackground-colordefault--xh-_time-range-picker-check-fg
--xh-time-range-picker-preset-check-sizepresetblock-size
inline-size
padding-inline-end
default--xh-control-indicator-sm
--xh-time-range-picker-preset-fgpresetcolordefault
disabled
error
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
selected
xh-collection-context=overlay
--xh-fg-muted
--xh-time-range-picker-preset-fg-disabledpresetbackground-color
color
default
disabled
--xh-fg-disabled
--xh-time-range-picker-preset-fg-hoverpresetcolordisabled
error
highlighted
hover
is(:active, [data-pressed])
is(:focus-visible, [data-highlighted])
is([aria-selected='true'], [data-selected])
not([aria-disabled='true'], [data-disabled], [aria-busy='true'], [data-error])
pressed
selected
xh-collection-context=overlay
--xh-fg-default
--xh-time-range-picker-preset-font-sizepresetfont-sizedefault--xh-text-caption-size
--xh-time-range-picker-preset-group-gappreset-groupgapdefault--xh-space-1
--xh-time-range-picker-preset-group-hpreset-groupmax-block-sizedefault--xh-overlay-time-column-h
--xh-time-range-picker-preset-group-pxpreset-grouppadding-inlinedefault--xh-space-2
--xh-time-range-picker-preset-group-pypreset-grouppadding-blockdefault--xh-space-2_5
--xh-time-range-picker-preset-hpresetblock-size
line-height
default--xh-control-action-size
--xh-time-range-picker-preset-pxpresetinset-inline-end
padding-inline
padding-inline-end
default--xh-space-2
--xh-time-range-picker-preset-radiuspresetborder-radiusdefault--xh-shape-control
--xh-time-range-picker-range-separator-fgrange-separatorcolordefault--xh-fg-subtle
--xh-time-range-picker-range-separator-mxrange-separatormargin-inlinedefault--xh-_time-range-picker-range-separator-mx
--xh-time-range-picker-range-separator-pxrange-separatormargin-inline
padding-inline
default--xh-space-1
--xh-time-range-picker-segment-bg-focussegmentbackgrounddisabled
focus
focus-visible
not([data-disabled])
--xh-_time-range-picker-segment-bg
--xh-time-range-picker-segment-bg-hoversegmentbackgrounddisabled
focus
hover
not([data-focus], [data-disabled])
--xh-bg-subtle
--xh-time-range-picker-segment-bg-invalid-focussegmentbackgroundfocus
invalid
is([data-focus], :focus-visible)
--xh-bg-subtle
--xh-time-range-picker-segment-fg-focussegmentcolordisabled
focus
focus-visible
not([data-disabled])
placeholder
--xh-_time-range-picker-segment-fg
--xh-time-range-picker-segment-fg-invalidsegmentcolorinvalid--xh-fg-danger
--xh-time-range-picker-segment-fg-invalid-focussegmentcolorfocus
invalid
is([data-focus], :focus-visible)
--xh-fg-danger
--xh-time-range-picker-segment-pxsegmentpadding-inlinedefault--xh-space-0_5
--xh-time-range-picker-segment-radiussegmentborder-radiusdefault--xh-shape-inset

Released under The MIT License