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

查看生态总览
Skip to content

DateRangePicker ​

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="date-range-picker": root · label · control · segment-group · range-separator · trigger · clear-trigger · positioner · content · preset-group · preset · calendar · column-group · column-group-label · time-column · time-item · footer · confirm-trigger

API reference ​

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

Artifacts ​

LayerValue
Custom element<xh-date-range-picker>
Vue componentsXhDateRangePickerCalendar XhDateRangePickerCell XhDateRangePickerCellTrigger XhDateRangePickerClearTrigger XhDateRangePickerColumnGroup XhDateRangePickerColumnGroupLabel XhDateRangePickerConfirmTrigger XhDateRangePickerContent XhDateRangePickerControl XhDateRangePickerFooter XhDateRangePickerGrid XhDateRangePickerGridBody XhDateRangePickerGridHead XhDateRangePickerHeader XhDateRangePickerHeading XhDateRangePickerHeadingMonthTrigger XhDateRangePickerHeadingYearTrigger XhDateRangePickerHiddenInput XhDateRangePickerLabel XhDateRangePickerNextTrigger XhDateRangePickerNextYearTrigger XhDateRangePickerPositioner XhDateRangePickerPreset XhDateRangePickerPresetGroup XhDateRangePickerPrevTrigger XhDateRangePickerPrevYearTrigger XhDateRangePickerRangeSeparator XhDateRangePickerRoot XhDateRangePickerSegment XhDateRangePickerSegmentGroup XhDateRangePickerTimeColumn XhDateRangePickerTimeItem XhDateRangePickerTimePanel XhDateRangePickerTrigger XhDateRangePickerWeekDay XhDateRangePickerWeekNumber XhDateRangePickerWeekRow
ComposableuseDateRangePicker
State machinedateRangePickerMachine
Skin@xihan-ui/styles/date-range-picker.css

Props ​

PropTypeRequired
labelledboolean
ariaLabelstring
valuestring[]
defaultValuestring[]
openboolean
defaultOpenboolean
minstring
maxstring
localestring
timeZonestring
firstDayOfWeeknumber
isDateUnavailable(value: string, anchor: string | null) => boolean
allowsNonContiguousRangesboolean
disabledboolean
readOnlyboolean
invalidboolean
requiredboolean
namestring
endNamestring
placeholderDateSegmentPlaceholders
startPlaceholderstring
endPlaceholderstring
granularityCalendarGranularity
activeViewCalendarView
segmentsDateSegmentSet
presetsDateRangePickerPreset[]
visibleCountnumber
fixedWeeksboolean
defaultFocusedValuestring
variantControlVariant
toneTone
sizeSize
placementPlacement
dirDirection
offsetnumber
translationsPartial<DateRangePickerTranslations>
closeOnSelectboolean
showTimeboolean
timeGranularityDatePickerTimeGranularity
hourCycleTimeHourCycle
timeStepTimeStep
isTimeUnavailableTimeUnavailablePredicate
defaultTime[string, string]
activeIndexDateRangePickerEndIndex
onActiveIndexChange(details: DateRangePickerActiveIndexChangeDetails) => void
onValueChange(details: DateRangePickerValueChangeDetails) => void
onClear() => void
onOpenChange(details: DateRangePickerOpenChangeDetails) => void
onFocusedValueChange(details: DateRangePickerFocusChangeDetails) => void
onActiveViewChange(details: CalendarViewChangeDetails) => void

Events ​

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

EventPayload
value-changeDateRangePickerValueChangeDetails
clear``
open-changeDateRangePickerOpenChangeDetails
focused-value-changeDateRangePickerFocusChangeDetails
active-view-changeCalendarViewChangeDetails
active-index-changeDateRangePickerActiveIndexChangeDetails

Slots ​

Only slots with a payload are listed.

Vue componentSlotPayload
XhDateRangePickerColumnGroupdefault—
XhDateRangePickerColumnGroupLabeldefault—
XhDateRangePickerPresetdefault—
XhDateRangePickerPresetGroupdefaultDateRangePickerPresetsSlotProps
XhDateRangePickerRootdefaultDateRangePickerRootSlotProps
XhDateRangePickerRootlabel—
XhDateRangePickerSegmentdefaultDateRangePickerSegmentSlotProps
XhDateRangePickerTimeColumndefault—
XhDateRangePickerTimeItemdefault—

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
XhDateRangePickerCalendarindexnumber | string
XhDateRangePickerCellvaluestringYes
XhDateRangePickerCellindexnumber | string
XhDateRangePickerColumnGroupindexnumber | string
XhDateRangePickerGridindexnumber | string
XhDateRangePickerHeadingindexnumber | string
XhDateRangePickerHeadingMonthTriggerindexnumber | string
XhDateRangePickerHeadingYearTriggerindexnumber | string
XhDateRangePickerHiddenInputindexnumber | string
XhDateRangePickerPositionercontainer() => Element | null
XhDateRangePickerPresetvaluestringYes
XhDateRangePickerPresetGroupchildrenSlotChildren<DateRangePickerPresetsSlotProps>
XhDateRangePickerRootlabelReactNode
XhDateRangePickerRootchildrenSlotChildren<DateRangePickerRootSlotProps>
XhDateRangePickerSegmentindexnumber | string
XhDateRangePickerSegmentsegmentDateSegmentType
XhDateRangePickerSegmentchildrenSlotChildren<DateRangePickerSegmentSlotProps>
XhDateRangePickerSegmentGroupindexnumber | string
XhDateRangePickerTimeColumnunitDatePickerTimeUnitYes
XhDateRangePickerTimeItemvaluestringYes
XhDateRangePickerWeekDayvaluenumber | stringYes
XhDateRangePickerWeekNumbervaluestringYes

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'
calendar'open' | 'closed'
time-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 · FOCUSED.SET · VIEW.SET · ACTIVE_INDEX.SET · FORM.RESET · PRESS.START · PRESS.END

Guards: isOpenControlled · closesOnSelect · canPress

connect API ​

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

MemberType
openboolean
valuestring[]
startstring | null
endstring | null
periodValueCalendarPeriodValue | null
focusedValuestring
granularityCalendarGranularity
activeViewCalendarView
disabledboolean
readOnlyboolean
invalidboolean
canClearboolean
setOpen(next: boolean) => void
setValue(next: string[]) => void
clear() => void
setActiveView(next: CalendarView) => void
presetsreadonly DateRangePickerPresetState[]
activeIndexDateRangePickerEndIndex
setActiveIndex(next: DateRangePickerEndIndex) => void
showTimeboolean
timeColumnGroupsreadonly [DateRangePickerTimeColumnGroup, DateRangePickerTimeColumnGroup]
timeValuesreadonly [string | null, string | null]
hourCycleTimeHourCycle
timeStepResolvedTimeStep
getTimeItemText(props: DateRangePickerTimeItemTextProps) => string
isTimeItemDisabled(props: DateRangePickerTimeItemProps) => boolean
calendarCalendarRangePickerApi<T>
fieldDateRangePickerFieldApi<T>
fieldEndDateRangePickerFieldApi<T>
translationsDateRangePickerTranslations
getRootProps() => T['element']
getLabelProps() => T['element']
getControlProps() => T['element']
getSegmentGroupProps(props?: DateRangePickerSegmentGroupProps) => T['element']
getRangeSeparatorProps() => T['element']
getTriggerProps() => T['button']
getClearTriggerProps() => T['button']
getPositionerProps() => T['element']
getContentProps() => T['element']
getPresetGroupProps() => T['element']
getPresetProps(props: DateRangePickerPresetProps) => T['element']
getCalendarProps() => T['element']
getColumnGroupProps(props: DateRangePickerColumnGroupProps) => T['element']
getColumnGroupLabelProps(props: DateRangePickerColumnGroupProps) => T['element']
getTimeColumnProps(props: DateRangePickerTimeColumnProps) => T['element']
getTimeItemProps(props: DateRangePickerTimeItemProps) => T['element']
getFooterProps() => T['element']
getConfirmTriggerProps() => T['button']

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
Enter / Spacedate-range-picker.kbd.open
Enter / Spacedate-range-picker.kbd.toggle
Escapedate-range-picker.kbd.escape
Tab / Shift+Tabdate-range-picker.kbd.tab
Enter / Spacedate-range-picker.kbd.select
ArrowUp / ArrowDown / Home / Enddate-range-picker.kbd.preset-move
Enter / Spacedate-range-picker.kbd.preset-pick
Alt+ArrowDowndate-range-picker.kbd.segment-open
Enterdate-range-picker.kbd.segment-close
Enter / Spacedate-range-picker.kbd.press

ARIA ​

These attributes are produced by connect.

PartAttributeValue
segment-grouparia-disabled'true' | 'false'
segment-grouparia-labellabel.endDate | label.startDate
segment-grouprole'group'
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-labellabel.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-labellabel.presets
preset-grouparia-multiselectable'false'
preset-grouparia-orientation'vertical'
preset-grouprole'listbox'
presetaria-disabled'true' | 'false'
presetaria-selected'true' | 'false'
presetrole'option'
column-grouparia-labellabel.endTime | label.startTime
column-grouprole'group'
column-group-labelaria-hidden'true'
time-columnaria-disabled'true' | 'false'
time-columnaria-labellabel[unit]
time-columnaria-multiselectable'false'
time-columnaria-orientation'vertical'
time-columnrole'listbox'
time-itemaria-disabled'true' | 'false'
time-itemaria-selected'true' | 'false'
time-itemrole'option'

Style reference ​

Skin ​

@xihan-ui/styles/date-range-picker.css is written against [data-scope="date-range-picker"][data-part="root"] part selectors; the published build uses the mount class .xh-scope-date-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-invalid'' (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-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)
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-valuev
presetdata-xh-collection-context'overlay'
presetdata-xh-collection-item''
presetdata-xh-collection-sizeprops.size
calendardata-disabled'' (present only while the condition holds)
calendardata-readonly'' (present only while the condition holds)
calendardata-state'open' | 'closed'
column-groupdata-editing'' (present only while the condition holds)
column-groupdata-indexString(index)
column-group-labeldata-editing'' (present only while the condition holds)
column-group-labeldata-indexString(index)
time-columndata-indexString(index)
time-columndata-unittarget.getAttribute('data-unit') as DatePickerTimeUni…
time-itemdata-disabled'' (present only while the condition holds)
time-itemdata-indexString(index)
time-itemdata-pressed'' (present only while the condition holds)
time-itemdata-state'checked' | 'unchecked'
time-itemdata-unittarget.getAttribute('data-unit') as DatePickerTimeUni…
time-itemdata-valuecurrent.getAttribute('data-value')
time-itemdata-xh-collection-context'overlay'
time-itemdata-xh-collection-item''
time-itemdata-xh-collection-sizeprops.size
confirm-triggerdata-pressed'' (present only while the condition holds)
confirm-triggerdata-xh-action-control''
confirm-triggerdata-xh-action-display'always'
confirm-triggerdata-xh-action-profile'text'
confirm-triggerdata-xh-action-size'xs'
confirm-triggerdata-xh-action-variant'solid'
confirm-triggerdata-xh-ink-surface''

CSS variables ​

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

VariablePartCSS propertyStateDefault from
--xh-date-range-picker-action-bgclear-trigger
trigger
--xh-ink-surface
background-color
default
xh-ink-surface
--xh-_action-variant-bg-rest
--xh-date-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-date-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-date-range-picker-action-fgclear-trigger
trigger
colordefault--xh-fg-field-clear
--xh-fg-muted
--xh-date-range-picker-action-fg-hoverclear-trigger
trigger
colordisabled
hover
loading
not([data-disabled])
not([data-loading])
state=open
--xh-fg-default
--xh-date-range-picker-action-font-sizeclear-trigger
trigger
font-sizedefault--xh-text-secondary-size
--xh-date-range-picker-action-radiusclear-trigger
trigger
border-radiusdefault--xh-shape-circle
--xh-shape-inset
--xh-date-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-date-range-picker-calendar-gapcalendargapdefault--xh-space-0
--xh-date-range-picker-column-dividercolumn-group
preset-group
time-column
border-block-end
border-block-start
border-inline-end
border-inline-start
@media (min-width: 768px)
default
--xh-material-solid-border
--xh-date-range-picker-column-group-gapcolumn-groupmargin-inline-startdefault--xh-space-0
--xh-date-range-picker-column-group-label-fgcolumn-group-labelcolordefault--xh-fg-subtle
--xh-date-range-picker-column-group-label-pxcolumn-group-labelpadding-inlinedefault--xh-space-1
--xh-date-range-picker-column-group-offsetcolumn-group
column-group-label
block-size
padding-block-start
default--xh-control-action-size
--xh-date-range-picker-confirm-trigger-bgconfirm-trigger--xh-ink-surface
background-color
default
xh-ink-surface
--xh-_action-variant-bg-rest
--xh-date-range-picker-confirm-trigger-bg-activeconfirm-triggerbackground-colordisabled
is(:active, [data-pressed])
loading
not([data-disabled])
not([data-loading])
pressed
--xh-_action-variant-bg-pressed
--xh-date-range-picker-confirm-trigger-bg-hoverconfirm-triggerbackground-colordisabled
hover
loading
not([data-disabled])
not([data-loading])
--xh-_action-variant-bg-hover
--xh-date-range-picker-confirm-trigger-fgconfirm-triggercolordefault
disabled
hover
is(:active, [data-pressed])
loading
not([data-disabled])
not([data-loading])
pressed
--xh-_action-variant-fg-hover
--xh-_action-variant-fg-pressed
--xh-_action-variant-fg-rest
--xh-date-range-picker-confirm-trigger-font-sizeconfirm-triggerfont-sizedefault--xh-text-caption-size
--xh-date-range-picker-confirm-trigger-hconfirm-triggerblock-size
inline-size
default
xh-action-profile=field-inset
--xh-_action-profile-visual-size
--xh-date-range-picker-confirm-trigger-marginconfirm-trigger
content
marginhas(> [data-part='column-group'])--xh-space-2
--xh-date-range-picker-confirm-trigger-pxconfirm-triggerpadding-inlinedefault--xh-space-2
--xh-date-range-picker-confirm-trigger-radiusconfirm-triggerborder-radiusdefault--xh-shape-control
--xh-date-range-picker-confirm-trigger-shadowconfirm-triggerbox-shadowdefault
disabled
hover
is(:active, [data-pressed])
loading
not([data-disabled])
not([data-loading])
pressed
none
--xh-date-range-picker-content-bgcontentbackgrounddefault--xh-bg-surface
--xh-date-range-picker-content-bordercontentborderdefault--xh-border-default
--xh-date-range-picker-content-fgcontentcolordefault--xh-fg-default
--xh-date-range-picker-content-pxcontentpadding-inlinedefault--xh-space-0
--xh-date-range-picker-content-pycontentpadding-blockdefault--xh-space-0
--xh-date-range-picker-content-radiuscontentborder-radiusdefault--xh-shape-overlay
--xh-date-range-picker-content-shadowcontentbox-shadowdefault--xh-elevation-floating
--xh-date-range-picker-control-bgcontrolbackground-colorxh-field-chrome--xh-_field-variant-bg-rest
--xh-date-range-picker-control-bg-disabledcontrolbackground-colordisabled
xh-field-chrome
--xh-_field-variant-bg-disabled
--xh-date-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-date-range-picker-control-bg-readonlycontrolbackground-colorreadonly
xh-field-chrome
--xh-_field-variant-bg-read-only
--xh-date-range-picker-control-bordercontrolborderxh-field-chrome--xh-_field-variant-border-rest
--xh-date-range-picker-control-border-focuscontrolborder-color
box-shadow
disabled
focus-within
not([data-disabled])
xh-field-chrome
--xh-_field-variant-border-focus
--xh-date-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-date-range-picker-control-border-invalidcontrolborder-colorinvalid
xh-field-chrome
--xh-_field-variant-border-invalid
--xh-date-range-picker-control-fgcontrolcolorxh-field-chrome--xh-fg-default
--xh-date-range-picker-control-gapcontrol
range-separator
gap
margin-inline
default
xh-field-chrome
--xh-_date-range-picker-gap
--xh-date-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-_date-range-picker-control-h
--xh-date-range-picker-control-min-wcontrol
root
min-inline-sizedefault
xh-field-chrome
--xh-control-min-w
--xh-date-range-picker-control-pxcontrolpadding-inlinexh-field-chrome--xh-_date-range-picker-control-px
--xh-date-range-picker-control-radiuscontrolborder-radiusxh-field-chrome--xh-shape-control
--xh-date-range-picker-control-shadowcontrolbox-shadowxh-field-chromenone
--xh-date-range-picker-control-wrootinline-size
min-inline-size
default--xh-control-w
--xh-date-range-picker-font-sizesegment-groupfont-sizedefault--xh-_date-range-picker-font-size
--xh-date-range-picker-footer-borderfooterborder-block-startdefault--xh-material-solid-border
--xh-date-range-picker-footer-fgfootercolordefault--xh-fg-muted
--xh-date-range-picker-footer-font-sizefooterfont-sizedefault--xh-text-caption-size
--xh-date-range-picker-footer-gapfootergap
inline-size
default--xh-space-2
--xh-date-range-picker-footer-pxfooterinline-sizedefault--xh-space-2
--xh-date-range-picker-footer-pyfooterpadding-blockdefault--xh-space-2
--xh-date-range-picker-gaplabel
root
gap
margin-block-end
default--xh-space-1
--xh-date-range-picker-heading-font-weightcalendar
heading
heading-month-trigger
heading-year-trigger
font-weightdefault--xh-font-weight-regular
--xh-date-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-date-range-picker-label-fglabelcolordefault--xh-fg-muted
--xh-date-range-picker-label-fg-disabledlabelcolordisabled--xh-fg-muted
--xh-date-range-picker-label-font-sizelabelfont-sizedefault--xh-text-label-size
--xh-date-range-picker-label-font-weightlabelfont-weightdefault--xh-text-label-weight
--xh-date-range-picker-label-gaplabelmargin-block-enddefault--xh-space-2
--xh-date-range-picker-layerpositionerz-indexdefault--xh-_layer
--xh-date-range-picker-literal-fgsegment-groupcolornot([data-scope])--xh-fg-subtle
--xh-date-range-picker-max-hcontentmax-block-sizedefault--xh-_date-range-picker-available-h
--xh-date-range-picker-placeholder-fgsegment-groupcolorplaceholder-shown--xh-fg-subtle
--xh-date-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-date-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-date-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-date-range-picker-preset-check-fgpresetbackground-colordefault--xh-_date-range-picker-check-fg
--xh-date-range-picker-preset-check-sizepresetblock-size
inline-size
padding-inline-end
default--xh-control-indicator-sm
--xh-date-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-date-range-picker-preset-fg-disabledpresetbackground-color
color
default
disabled
--xh-fg-disabled
--xh-date-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-date-range-picker-preset-font-sizepresetfont-sizedefault--xh-text-caption-size
--xh-date-range-picker-preset-group-gappreset-groupgapdefault--xh-space-1
--xh-date-range-picker-preset-group-hpreset-groupmax-block-sizedefault--xh-viewport-h-lg
--xh-date-range-picker-preset-group-pxpreset-grouppadding-inlinedefault--xh-space-2
--xh-date-range-picker-preset-group-pypreset-grouppadding-blockdefault--xh-space-2_5
--xh-date-range-picker-preset-hpresetblock-size
line-height
default--xh-control-action-size
--xh-date-range-picker-preset-pxpresetinset-inline-end
padding-inline
padding-inline-end
default--xh-space-2
--xh-date-range-picker-preset-radiuspresetborder-radiusdefault--xh-shape-control
--xh-date-range-picker-range-separator-fgrange-separatorcolordefault--xh-fg-subtle
--xh-date-range-picker-range-separator-mxrange-separatormargin-inlinedefault--xh-_date-range-picker-range-separator-mx
--xh-date-range-picker-range-separator-pxrange-separatormargin-inline
padding-inline
default--xh-space-1
--xh-date-range-picker-time-column-gaptime-column
time-item
gap
inset-block
default--xh-space-2
--xh-date-range-picker-time-column-htime-columnblock-size
padding-block
@media (pointer: coarse)
default
--xh-overlay-calendar-column-h
--xh-overlay-calendar-column-h-coarse
--xh-date-range-picker-time-column-min-wtime-columnmin-inline-sizedefault--xh-overlay-column-min-w
--xh-date-range-picker-time-column-min-w-mobiletime-columnmin-inline-size@media not all and (min-width: 768px)--xh-overlay-column-min-w
--xh-date-range-picker-time-column-pxtime-columnpadding-inlinedefault--xh-space-1
--xh-date-range-picker-time-column-pytime-columnpadding-blockdefault--xh-space-1
--xh-date-range-picker-time-item-bg-hovertime-itembackground-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-date-range-picker-time-item-bg-pressedtime-itembackground-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-date-range-picker-time-item-check-fgtime-itembackground-colordefault--xh-_date-range-picker-check-fg
--xh-date-range-picker-time-item-check-sizetime-itemblock-size
inline-size
inset-inline-end
padding-inline
@media not all and (min-width: 768px)
default
--xh-_date-range-picker-time-item-check-size
--xh-date-range-picker-time-item-fgtime-itemcolordefault
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-date-range-picker-time-item-fg-selectedtime-itemcolordisabled
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-date-range-picker-time-item-fg
--xh-date-range-picker-time-item-font-sizetime-itemfont-sizedefault--xh-_date-range-picker-font-size
--xh-date-range-picker-time-item-font-weight-selectedtime-itemfont-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-date-range-picker-time-item-htime-column
time-item
block-size
padding-block
default--xh-control-action-size
--xh-date-range-picker-time-item-pxtime-iteminset-inline-end
padding-inline
default--xh-space-0_5
--xh-date-range-picker-time-item-radiustime-itemborder-radiusdefault--xh-shape-inset

Released under The MIT License