Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
UXPLATFORM-10229_date_time_picker added div with
Browse files Browse the repository at this point in the history
  • Loading branch information
adavijit committed Apr 17, 2024
1 parent b5db4c5 commit cc5b766
Show file tree
Hide file tree
Showing 54 changed files with 53 additions and 54 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 53 additions & 54 deletions packages/terra-date-time-picker/src/DateTimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -789,60 +789,59 @@ class DateTimePicker extends React.Component {
name={name}
value={dateTime?.isValid() ? dateTime.format() : ''}
/>

<div className={cx('date-facade')}>
<DatePicker
ariaLabel={ariaLabel}
onCalendarButtonClick={this.handleOnCalendarButtonClick}
onChange={this.handleDateChange}
onChangeRaw={this.handleDateChangeRaw}
onSelect={this.handleOnSelect}
onClickOutside={onClickOutside}
onRequestClose={onRequestClose}
onBlur={this.handleOnDateBlur}
onFocus={this.handleOnDateInputFocus}
excludeDates={excludeDates}
filterDate={filterDate}
includeDates={includeDates}
inputAttributes={dateInputAttributes}
maxDate={DateUtil.getMaxDate(maxDate)}
minDate={DateUtil.getMinDate(minDate)}
selectedDate={dateValue}
value={dateValue}
name="input"
disabled={disabled}
disableButtonFocusOnClose
isIncomplete={isIncomplete}
isInvalid={isInvalid}
required={required}
initialTimeZone={this.initialTimeZone}
isDefaultDateAcceptable
errorId={errorId}
/>
</div>
<div className={cx('time-facade')}>
<TimeInput
a11yLabel={ariaLabel}
onBlur={this.handleOnTimeBlur}
onChange={this.handleTimeChange}
onFocus={this.handleOnTimeInputFocus}
inputAttributes={timeInputAttributes}
name="input"
value={this.timeValue}
disabled={disabled}
variant={timeVariant}
refCallback={(inputRef) => { this.hourInput = inputRef; }}
showSeconds={showSeconds}
isIncomplete={isIncomplete}
isInvalid={isInvalid}
isInvalidMeridiem={isInvalidMeridiem}
required={required}
atMaxDate={atMaxDate}
atMinDate={atMinDate}
errorId={errorId}
/>

{this.state.isAmbiguousTime && this.state.dateTime ? this.renderTimeClarification() : null}
<div role="group" aria-label={ariaLabel}>
<div className={cx('date-facade')}>
<DatePicker
onCalendarButtonClick={this.handleOnCalendarButtonClick}
onChange={this.handleDateChange}
onChangeRaw={this.handleDateChangeRaw}
onSelect={this.handleOnSelect}
onClickOutside={onClickOutside}
onRequestClose={onRequestClose}
onBlur={this.handleOnDateBlur}
onFocus={this.handleOnDateInputFocus}
excludeDates={excludeDates}
filterDate={filterDate}
includeDates={includeDates}
inputAttributes={dateInputAttributes}
maxDate={DateUtil.getMaxDate(maxDate)}
minDate={DateUtil.getMinDate(minDate)}
selectedDate={dateValue}
value={dateValue}
name="input"
disabled={disabled}
disableButtonFocusOnClose
isIncomplete={isIncomplete}
isInvalid={isInvalid}
required={required}
initialTimeZone={this.initialTimeZone}
isDefaultDateAcceptable
errorId={errorId}
/>
</div>
<div className={cx('time-facade')}>
<TimeInput
onBlur={this.handleOnTimeBlur}
onChange={this.handleTimeChange}
onFocus={this.handleOnTimeInputFocus}
inputAttributes={timeInputAttributes}
name="input"
value={this.timeValue}
disabled={disabled}
variant={timeVariant}
refCallback={(inputRef) => { this.hourInput = inputRef; }}
showSeconds={showSeconds}
isIncomplete={isIncomplete}
isInvalid={isInvalid}
isInvalidMeridiem={isInvalidMeridiem}
required={required}
atMaxDate={atMaxDate}
atMinDate={atMinDate}
errorId={errorId}
/>

{this.state.isAmbiguousTime && this.state.dateTime ? this.renderTimeClarification() : null}
</div>
</div>
</div>
);
Expand Down

0 comments on commit cc5b766

Please sign in to comment.