-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: taiga-family-bot <[email protected]>
- Loading branch information
1 parent
3da936a
commit e1a679d
Showing
32 changed files
with
93 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
projects/demo/src/modules/components/segmented/examples/1/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {NgFor} from '@angular/common'; | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiIconComponent} from '@taiga-ui/core'; | ||
import {TuiBadgeNotificationComponent, TuiSegmentedComponent} from '@taiga-ui/kit'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [ | ||
TuiSegmentedComponent, | ||
NgFor, | ||
TuiIconComponent, | ||
TuiBadgeNotificationComponent, | ||
], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export default class ExampleComponent { | ||
protected readonly sizes = ['s', 'm', 'l'] as const; | ||
} |
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...xperimental/segmented/examples/1/index.ts → .../components/segmented/examples/2/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiFadeDirective, TuiSegmentedComponent} from '@taiga-ui/kit'; | ||
|
||
@Component({ | ||
selector: 'tui-segmented-example-1', | ||
standalone: true, | ||
imports: [TuiSegmentedComponent, TuiFadeDirective], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiSegmentedExample1 { | ||
protected readonly sizes = ['s', 'm', 'l'] as const; | ||
} | ||
export default class ExampleComponent {} |
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions
7
...xperimental/segmented/examples/3/index.ts → .../components/segmented/examples/3/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import {NgFor} from '@angular/common'; | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {encapsulation} from '@demo/emulate/encapsulation'; | ||
import {TuiSegmentedComponent} from '@taiga-ui/kit'; | ||
|
||
@Component({ | ||
selector: 'tui-segmented-example-3', | ||
standalone: true, | ||
imports: [TuiSegmentedComponent, NgFor], | ||
templateUrl: './index.html', | ||
styleUrls: ['./index.less'], | ||
encapsulation, | ||
changeDetection, | ||
}) | ||
export class TuiSegmentedExample3 { | ||
export default class ExampleComponent { | ||
protected readonly buttons = ['Track active index', 'To color tabs', 'Differently']; | ||
protected active = 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
15 changes: 13 additions & 2 deletions
15
...xperimental/segmented/examples/4/index.ts → .../components/segmented/examples/4/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tui-doc-page | ||
header="Segmented" | ||
package="KIT" | ||
type="components" | ||
> | ||
<ng-template pageTab> | ||
<p class="tui-space_vertial-4"> | ||
Segmented is used for links and buttons to navigate within the application. It can also work as a radio | ||
button to toggle between different states. | ||
</p> | ||
|
||
<tui-doc-example | ||
*ngFor="let example of examples; let index = index" | ||
[component]="index + 1 | tuiComponent" | ||
[content]="index + 1 | tuiExample" | ||
[heading]="example" | ||
[id]="example | tuiKebab" | ||
/> | ||
</ng-template> | ||
|
||
<tui-setup *pageTab="'Setup'" /> | ||
</tui-doc-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {Component} from '@angular/core'; | ||
import {changeDetection} from '@demo/emulate/change-detection'; | ||
import {TuiDemoModule} from '@demo/utils'; | ||
|
||
@Component({ | ||
standalone: true, | ||
imports: [TuiDemoModule], | ||
templateUrl: './index.html', | ||
changeDetection, | ||
}) | ||
export default class ExampleComponent { | ||
protected readonly examples = ['Sizes', 'Width', 'Customization', 'Content']; | ||
} |
12 changes: 0 additions & 12 deletions
12
projects/demo/src/modules/experimental/segmented/examples/2/index.ts
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
projects/demo/src/modules/experimental/segmented/segmented.component.ts
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
projects/demo/src/modules/experimental/segmented/segmented.module.ts
This file was deleted.
Oops, something went wrong.
72 changes: 0 additions & 72 deletions
72
projects/demo/src/modules/experimental/segmented/segmented.template.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
export * from '@taiga-ui/experimental/components/app-bar'; | ||
export * from '@taiga-ui/experimental/components/chip'; | ||
export * from '@taiga-ui/experimental/components/navigation'; | ||
export * from '@taiga-ui/experimental/components/segmented'; | ||
export * from '@taiga-ui/experimental/components/textfield'; | ||
export * from '@taiga-ui/experimental/components/tooltip'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.