Skip to content

Commit

Permalink
docs(ActivitiesJsonAdapter): split horizontal space equally in adapti…
Browse files Browse the repository at this point in the history
…ve card example
  • Loading branch information
karinasigartau0798 authored and cipak committed Mar 7, 2022
1 parent 3f4e2ca commit 560cfab
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 86 deletions.
38 changes: 25 additions & 13 deletions src/adapters/ActivitiesJSONAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,21 +248,33 @@ describe('Activities JSON Adapter', () => {
type: 'ColumnSet',
columns: [
{
type: 'Input.Date',
id: 'arrivalDate',
height: 'auto',
isRequired: true,
errorMessage: 'Arrival Date is required',
label: 'Arrival Date',
type: 'Column',
width: 1,
items: [
{
type: 'Input.Date',
id: 'arrivalDate',
height: 'auto',
isRequired: true,
errorMessage: 'Arrival Date is required',
label: 'Arrival Date',
},
],
},
{
type: 'Input.Time',
id: 'arrivalTime',
label: 'Arrival Time',
isRequired: true,
min: '10:00',
max: '23:59',
value: '10:00',
type: 'Column',
width: 1,
items: [
{
type: 'Input.Time',
id: 'arrivalTime',
label: 'Arrival Time',
isRequired: true,
min: '10:00',
max: '23:59',
value: '10:00',
},
],
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,41 +478,58 @@ Array [
}
/>
<div
className="wxc wxc-label wxc wxc-input-field wxc wxc-date-input wxc wxc-adaptive-cards-input-date wxc wxc-ac wxc-ac-is-visible--true wxc-ac-height--auto"
style={Object {}}
className="wxc wxc-adaptive-cards-column wxc wxc-ac wxc-ac-is-visible--true wxc-ac-vertical-content-alignment--top wxc-ac-container--vertical"
style={
Object {
"flex": 1,
}
}
>
<label
className="wxc-label__label-text"
htmlFor="wxc-0-control"
id="wxc-0-label"
>
<span>
Arrival Date
</span>
<span
className="wxc-label__required"
>
*
</span>
</label>
<div
className="wxc-label__control"
className="wxc wxc-ac-spacer wxc-ac-spacer--spacing--default"
style={
Object {
"style": undefined,
}
}
/>
<div
className="wxc wxc-label wxc wxc-input-field wxc wxc-date-input wxc wxc-adaptive-cards-input-date wxc wxc-ac wxc-ac-is-visible--true wxc-ac-height--auto"
style={Object {}}
>
<label
className="wxc-label__label-text"
htmlFor="wxc-0-control"
id="wxc-0-label"
>
<span>
Arrival Date
</span>
<span
className="wxc-label__required"
>
*
</span>
</label>
<div
className="wxc-input-field__form-control"
className="wxc-label__control"
>
<input
aria-labelledby="wxc-0-label"
autoFocus={false}
className="wxc-input-field__input"
disabled={false}
id="wxc-0-control"
onChange={[Function]}
required={true}
tabIndex={0}
type="date"
value=""
/>
<div
className="wxc-input-field__form-control"
>
<input
aria-labelledby="wxc-0-label"
autoFocus={false}
className="wxc-input-field__input"
disabled={false}
id="wxc-0-control"
onChange={[Function]}
required={true}
tabIndex={0}
type="date"
value=""
/>
</div>
</div>
</div>
</div>
Expand All @@ -525,41 +542,58 @@ Array [
}
/>
<div
className="wxc wxc-label wxc wxc-input-field wxc wxc-time-input wxc wxc-adaptive-cards-input-time wxc wxc-ac wxc-ac-is-visible--true"
style={Object {}}
className="wxc wxc-adaptive-cards-column wxc wxc-ac wxc-ac-is-visible--true wxc-ac-vertical-content-alignment--top wxc-ac-container--vertical"
style={
Object {
"flex": 1,
}
}
>
<label
className="wxc-label__label-text"
htmlFor="wxc-0-control"
id="wxc-0-label"
>
<span>
Arrival Time
</span>
<span
className="wxc-label__required"
>
*
</span>
</label>
<div
className="wxc-label__control"
className="wxc wxc-ac-spacer wxc-ac-spacer--spacing--default"
style={
Object {
"style": undefined,
}
}
/>
<div
className="wxc wxc-label wxc wxc-input-field wxc wxc-time-input wxc wxc-adaptive-cards-input-time wxc wxc-ac wxc-ac-is-visible--true"
style={Object {}}
>
<label
className="wxc-label__label-text"
htmlFor="wxc-0-control"
id="wxc-0-label"
>
<span>
Arrival Time
</span>
<span
className="wxc-label__required"
>
*
</span>
</label>
<div
className="wxc-input-field__form-control"
className="wxc-label__control"
>
<input
aria-labelledby="wxc-0-label"
autoFocus={false}
className="wxc-input-field__input"
disabled={false}
id="wxc-0-control"
onChange={[Function]}
required={true}
tabIndex={0}
type="time"
value="10:00"
/>
<div
className="wxc-input-field__form-control"
>
<input
aria-labelledby="wxc-0-label"
autoFocus={false}
className="wxc-input-field__input"
disabled={false}
id="wxc-0-control"
onChange={[Function]}
required={true}
tabIndex={0}
type="time"
value="10:00"
/>
</div>
</div>
</div>
</div>
Expand Down
38 changes: 25 additions & 13 deletions src/data/activities.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,33 @@ export default {
type: 'ColumnSet',
columns: [
{
type: 'Input.Date',
id: 'arrivalDate',
height: 'auto',
isRequired: true,
errorMessage: 'Arrival Date is required',
label: 'Arrival Date',
type: 'Column',
width: 1,
items: [
{
type: 'Input.Date',
id: 'arrivalDate',
height: 'auto',
isRequired: true,
errorMessage: 'Arrival Date is required',
label: 'Arrival Date',
},
],
},
{
type: 'Input.Time',
id: 'arrivalTime',
label: 'Arrival Time',
isRequired: true,
min: '10:00',
max: '23:59',
value: '10:00',
type: 'Column',
width: 1,
items: [
{
type: 'Input.Time',
id: 'arrivalTime',
label: 'Arrival Time',
isRequired: true,
min: '10:00',
max: '23:59',
value: '10:00',
},
],
},
],
},
Expand Down

0 comments on commit 560cfab

Please sign in to comment.