Skip to content

Commit

Permalink
chore: rollback example changes
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Sep 16, 2024
1 parent 3214481 commit 43490fc
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
iconStart="@tui.ellipsis-vertical"
size="m"
tuiButton
tuiDropdownAlign="right"
tuiTextfieldSize="m"
tuiDropdownLimitWidth="fixed"
type="button"
class="example"
[tuiDropdown]="content"
[(tuiDropdownOpen)]="dropdownOpen"
>
Expand Down Expand Up @@ -66,18 +66,18 @@
</tui-data-list>

<ng-template #money>
<tui-input
automation-id="tui-data-money-input"
[(ngModel)]="moneyValue"
>
RUB
<input
name="moneyValue"
tuiTextfieldLegacy
/>
</tui-input>

<tui-data-list tuiDataListDropdownManager>
<tui-input
automation-id="tui-data-money-input"
[style.margin-block-end.rem]="0.25"
[(ngModel)]="moneyValue"
>
RUB
<input
name="moneyValue"
tuiTextfieldLegacy
/>
</tui-input>
<button
iconEnd="@tui.chevron-right"
tuiDropdownAlign="right"
Expand All @@ -104,7 +104,6 @@
<ng-template #input>
<tui-input
automation-id="tui-data-list-email-field"
[style.margin.rem]="0.25"
[(ngModel)]="emailValue"
>
Email
Expand All @@ -119,16 +118,13 @@
<div class="example">
<div
tuiGroup
[style.margin.rem]="0.25"
class="group"
>
<tui-input [(ngModel)]="dollar">Dollars</tui-input>
<tui-input [(ngModel)]="euro">Euros</tui-input>
<tui-input [(ngModel)]="dollar">1 Rub = (X) Dollars</tui-input>
<tui-input [(ngModel)]="euro">1 Rub = (Y) Euros</tui-input>
</div>

<ul
class="tui-list tui-list_large"
[style.margin.rem]="1"
>
<ul class="exchange tui-list tui-list_large">
<li class="tui-list__item">
<span>{{ moneyValue / dollar | tuiAmount: 'USD' | async }}</span>
</li>
Expand All @@ -142,7 +138,7 @@
<ng-template #range>
<tui-input-date-range
automation-id="tui-data-list-range-field"
[style.margin.rem]="0.25"
class="form"
[(ngModel)]="rangeValue"
>
Range
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.example {
margin-bottom: 0.5rem;
min-inline-size: 20.25rem;
}

.form {
min-inline-size: 18.75rem;
overflow: hidden;
}

.exchange {
margin: 1.5625rem;
}

.group {
max-inline-size: 30.25rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import {TuiDay, TuiDayRange} from '@taiga-ui/cdk';
import {TuiButton, TuiCalendar, TuiDataList, TuiDropdown, TuiGroup} from '@taiga-ui/core';
import {TuiDataListDropdownManager} from '@taiga-ui/kit';
import {TuiAsideItemDirective} from '@taiga-ui/layout';
import {
TuiInputDateRangeModule,
TuiInputModule,
TuiTextfieldControllerModule,
} from '@taiga-ui/legacy';
import {TuiInputDateRangeModule, TuiInputModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand All @@ -29,9 +25,9 @@ import {
TuiGroup,
TuiInputDateRangeModule,
TuiInputModule,
TuiTextfieldControllerModule,
],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
changeDetection,
})
Expand Down
2 changes: 1 addition & 1 deletion projects/demo/src/modules/components/data-list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
id="complex"
heading="Complex"
[component]="5 | tuiComponent"
[content]="5 | tuiExample: 'html,ts'"
[content]="5 | tuiExample"
>
<tui-notification class="tui-space_bottom-3">
<div>
Expand Down

0 comments on commit 43490fc

Please sign in to comment.