diff --git a/projects/addon-mobile/styles/common/card-large.less b/projects/addon-mobile/styles/common/card-large.less new file mode 100644 index 000000000000..b2acd387e9c7 --- /dev/null +++ b/projects/addon-mobile/styles/common/card-large.less @@ -0,0 +1,12 @@ +[tuiCardLarge] { + &[data-space='normal'] { + --t-padding: 1.25rem; + --t-gap: 1.25rem; + } + + &[data-space='compact'] { + --t-padding: 1rem; + --t-gap: 1rem; + --t-comp: -0.125rem; + } +} diff --git a/projects/addon-mobile/styles/taiga-ui-mobile.less b/projects/addon-mobile/styles/taiga-ui-mobile.less index fbd892f45b59..6722d24e75d3 100644 --- a/projects/addon-mobile/styles/taiga-ui-mobile.less +++ b/projects/addon-mobile/styles/taiga-ui-mobile.less @@ -22,4 +22,5 @@ @import './common/block-status'; @import './common/button'; @import './common/title'; + @import './common/card-large'; } diff --git a/projects/core/styles/theme/appearance/outline.less b/projects/core/styles/theme/appearance/outline.less index f99bebd35ac6..7129fb14fb6e 100644 --- a/projects/core/styles/theme/appearance/outline.less +++ b/projects/core/styles/theme/appearance/outline.less @@ -29,6 +29,7 @@ .appearance-hover({ background: var(--tui-clear); + cursor: pointer; --t-bs: var(--tui-base-05); }); diff --git a/projects/demo-playwright/utils/mock-images.ts b/projects/demo-playwright/utils/mock-images.ts index 413a5f972cbd..e2cd737d7d60 100644 --- a/projects/demo-playwright/utils/mock-images.ts +++ b/projects/demo-playwright/utils/mock-images.ts @@ -6,6 +6,7 @@ const DEFAULT_MOCKS = [ /.*avatar.jpg/, /.*avatars.githubusercontent.com.*/, /https:\/\/github.com\/.*.png.*/, + /https:\/\/yandex.ru\/map-widget.*/, /https:\/\/m.media-amazon.com\/.*.jpg.*/, /.*bf2e94ae58ee713717faf397958a8e3d.jpg/, // filename - MD5 hash value of file content (waterplea avatar) ], diff --git a/projects/demo/src/assets/images/illustration.jpg b/projects/demo/src/assets/images/illustration.jpg new file mode 100644 index 000000000000..54b8308c717c Binary files /dev/null and b/projects/demo/src/assets/images/illustration.jpg differ diff --git a/projects/demo/src/assets/images/road-illustration.jpg b/projects/demo/src/assets/images/road-illustration.jpg new file mode 100644 index 000000000000..52762388f02f Binary files /dev/null and b/projects/demo/src/assets/images/road-illustration.jpg differ diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index 69285b18a2d3..34e16580cb78 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -277,11 +277,21 @@ export const ROUTES: Routes = [ }, }, { - path: 'experimental/card', + path: 'experimental/card-medium', loadChildren: async () => - (await import('../experimental/card/card.module')).ExampleTuiCardModule, + (await import('../experimental/card-medium/card-medium.module')) + .ExampleTuiCardMediumModule, data: { - title: 'Card', + title: 'CardMedium', + }, + }, + { + path: 'experimental/card-large', + loadChildren: async () => + (await import('../experimental/card-large/card-large.module')) + .ExampleTuiCardLargeModule, + data: { + title: 'CardLarge', }, }, { diff --git a/projects/demo/src/modules/app/pages.ts b/projects/demo/src/modules/app/pages.ts index f332c04e306f..09e37e01b5bf 100644 --- a/projects/demo/src/modules/app/pages.ts +++ b/projects/demo/src/modules/app/pages.ts @@ -1031,9 +1031,15 @@ export const pages: TuiDocPages = [ }, { section: 'Experimental', - title: 'Card', - keywords: 'card, block, карточка, блок', - route: '/experimental/card', + title: 'CardMedium', + keywords: 'card, card-medium, medium, block, карточка, блок', + route: '/experimental/card-medium', + }, + { + section: 'Experimental', + title: 'CardLarge', + keywords: 'card, card-large, large, block, карточка, блок', + route: '/experimental/card-large', }, { section: 'Experimental', diff --git a/projects/demo/src/modules/experimental/card-large/card-large.component.ts b/projects/demo/src/modules/experimental/card-large/card-large.component.ts new file mode 100644 index 000000000000..3f5e26530aeb --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/card-large.component.ts @@ -0,0 +1,73 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; + +@Component({ + selector: 'example-card', + templateUrl: './card-large.template.html', + changeDetection, +}) +export class ExampleTuiCardLargeComponent { + readonly exampleModule: TuiRawLoaderContent = import( + './examples/import/import-module.md?raw' + ); + + readonly exampleHtml: TuiRawLoaderContent = import( + './examples/import/insert-template.md?raw' + ); + + readonly example1: TuiDocExample = { + HTML: import('./examples/1/index.html?raw'), + LESS: import('./examples/1/index.less?raw'), + }; + + readonly example2: TuiDocExample = { + HTML: import('./examples/2/index.html?raw'), + }; + + readonly example3: TuiDocExample = { + HTML: import('./examples/3/index.html?raw'), + LESS: import('./examples/3/index.less?raw'), + }; + + readonly example4: TuiDocExample = { + HTML: import('./examples/4/index.html?raw'), + LESS: import('./examples/4/index.less?raw'), + }; + + readonly example5: TuiDocExample = { + HTML: import('./examples/5/index.html?raw'), + }; + + readonly example6: TuiDocExample = { + HTML: import('./examples/6/index.html?raw'), + LESS: import('./examples/6/index.less?raw'), + }; + + readonly example7: TuiDocExample = { + HTML: import('./examples/7/index.html?raw'), + LESS: import('./examples/7/index.less?raw'), + }; + + readonly example8: TuiDocExample = { + HTML: import('./examples/8/index.html?raw'), + }; + + readonly example9: TuiDocExample = { + HTML: import('./examples/9/index.html?raw'), + }; + + readonly example10: TuiDocExample = { + HTML: import('./examples/10/index.html?raw'), + LESS: import('./examples/10/index.less?raw'), + }; + + readonly example11: TuiDocExample = { + HTML: import('./examples/11/index.html?raw'), + LESS: import('./examples/11/index.less?raw'), + }; + + readonly example12: TuiDocExample = { + HTML: import('./examples/12/index.html?raw'), + }; +} diff --git a/projects/demo/src/modules/experimental/card-large/card-large.module.ts b/projects/demo/src/modules/experimental/card-large/card-large.module.ts new file mode 100644 index 000000000000..bd5c55c40d8a --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/card-large.module.ts @@ -0,0 +1,100 @@ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {tuiGetDocModules} from '@taiga-ui/addon-doc'; +import {TuiRippleModule} from '@taiga-ui/addon-mobile'; +import {TuiPlatformModule, TuiRepeatTimesModule} from '@taiga-ui/cdk'; +import { + TuiAppearanceDirective, + TuiDataListModule, + TuiHintModule, + TuiHostedDropdownModule, + TuiLinkModule, + TuiNotificationModule, + TuiScrollbarModule, + TuiSvgModule, +} from '@taiga-ui/core'; +import { + TuiAutoColorModule, + TuiAvatarModule, + TuiAvatarStackModule, + TuiButtonCloseModule, + TuiButtonModule, + TuiCardModule, + TuiCellModule, + TuiFadeModule, + TuiFallbackSrcModule, + TuiHeaderDirective, + TuiIconModule, + TuiInitialsModule, + TuiSurfaceModule, + TuiThumbnailCardModule, + TuiTitleModule, +} from '@taiga-ui/experimental'; +import {TuiBadgeDirective} from '@taiga-ui/kit'; + +import {ExampleTuiCardLargeComponent} from './card-large.component'; +import {TuiCardLargeExample1} from './examples/1'; +import {TuiCardLargeExample2} from './examples/2'; +import {TuiCardLargeExample3} from './examples/3'; +import {TuiCardLargeExample4} from './examples/4'; +import {TuiCardLargeExample5} from './examples/5'; +import {TuiCardLargeExample6} from './examples/6'; +import {TuiCardLargeExample7} from './examples/7'; +import {TuiCardLargeExample8} from './examples/8'; +import {TuiCardLargeExample9} from './examples/9'; +import {TuiCardLargeExample10} from './examples/10'; +import {TuiCardLargeExample11} from './examples/11'; +import {TuiCardLargeExample12} from './examples/12'; + +@NgModule({ + imports: [ + CommonModule, + TuiAvatarStackModule, + TuiAutoColorModule, + TuiInitialsModule, + TuiNotificationModule, + TuiFallbackSrcModule, + TuiFadeModule, + TuiCardModule, + TuiSurfaceModule, + TuiSvgModule, + TuiBadgeDirective, + TuiTitleModule, + TuiAvatarModule, + TuiScrollbarModule, + TuiHintModule, + FormsModule, + TuiRippleModule, + TuiThumbnailCardModule, + TuiIconModule, + TuiButtonModule, + TuiHeaderDirective, + TuiCellModule, + tuiGetDocModules(ExampleTuiCardLargeComponent), + TuiRepeatTimesModule, + TuiDataListModule, + TuiHostedDropdownModule, + TuiButtonCloseModule, + TuiPlatformModule, + TuiLinkModule, + TuiAppearanceDirective, + ], + declarations: [ + ExampleTuiCardLargeComponent, + TuiCardLargeExample1, + TuiCardLargeExample2, + TuiCardLargeExample3, + TuiCardLargeExample4, + TuiCardLargeExample5, + TuiCardLargeExample6, + TuiCardLargeExample7, + TuiCardLargeExample8, + TuiCardLargeExample9, + TuiCardLargeExample10, + TuiCardLargeExample11, + TuiCardLargeExample12, + ], + exports: [ExampleTuiCardLargeComponent], +}) +export class ExampleTuiCardLargeModule {} diff --git a/projects/demo/src/modules/experimental/card-large/card-large.template.html b/projects/demo/src/modules/experimental/card-large/card-large.template.html new file mode 100644 index 000000000000..3d32f4ccdf21 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/card-large.template.html @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  1. +

    Import module:

    + + +
  2. + +
  3. +

    Add to the template:

    + + +
  4. +
+
+
diff --git a/projects/demo/src/modules/experimental/card-large/examples/1/index.html b/projects/demo/src/modules/experimental/card-large/examples/1/index.html new file mode 100644 index 000000000000..a700adde4bbd --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/1/index.html @@ -0,0 +1,93 @@ +
+

Desktop

+ +
+
+

Header

+
+ +
Replace me
+ +
+ +
+
+ +
+
+

Header

+
+ +
Replace me
+
+
+ +
+

iOS/Android

+ +
+
+

Header

+ + +
+ +
Replace me
+ +
+ +
+
+ +
+
+

Header

+ + +
+ +
Replace me
+
+
diff --git a/projects/demo/src/modules/experimental/card-large/examples/1/index.less b/projects/demo/src/modules/experimental/card-large/examples/1/index.less new file mode 100644 index 000000000000..e2346e5335bb --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/1/index.less @@ -0,0 +1,13 @@ +section { + display: flex; + height: 3.125rem; + border-radius: 0.75rem; + justify-content: center; + align-items: center; + color: var(--tui-base-06); + border: 1px dashed var(--tui-base-06); +} + +.label { + font: var(--tui-font-text-l); +} diff --git a/projects/demo/src/modules/experimental/card/examples/1/index.ts b/projects/demo/src/modules/experimental/card-large/examples/1/index.ts similarity index 78% rename from projects/demo/src/modules/experimental/card/examples/1/index.ts rename to projects/demo/src/modules/experimental/card-large/examples/1/index.ts index 490e91a760f3..485fe5a374c6 100644 --- a/projects/demo/src/modules/experimental/card/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/card-large/examples/1/index.ts @@ -3,10 +3,10 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-1', + selector: 'tui-card-large-example-1', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample1 {} +export class TuiCardLargeExample1 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/10/index.html b/projects/demo/src/modules/experimental/card-large/examples/10/index.html new file mode 100644 index 000000000000..8aff64f0024e --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/10/index.html @@ -0,0 +1,21 @@ +
+

+ Title + Subtitle +

+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/10/index.less b/projects/demo/src/modules/experimental/card-large/examples/10/index.less new file mode 100644 index 000000000000..a3ce92c035a0 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/10/index.less @@ -0,0 +1,3 @@ +.image { + background: url(/assets/images/illustration.jpg) no-repeat top right / 250%; +} diff --git a/projects/demo/src/modules/experimental/card-large/examples/10/index.ts b/projects/demo/src/modules/experimental/card-large/examples/10/index.ts new file mode 100644 index 000000000000..aa9dcab2bc8c --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/10/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-10', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample10 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/11/index.html b/projects/demo/src/modules/experimental/card-large/examples/11/index.html new file mode 100644 index 000000000000..132a80af4fcd --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/11/index.html @@ -0,0 +1,25 @@ +
+

+ Title + Subtitle +

+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/11/index.less b/projects/demo/src/modules/experimental/card-large/examples/11/index.less new file mode 100644 index 000000000000..ebc56a8e640a --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/11/index.less @@ -0,0 +1,7 @@ +.image { + background: url('/assets/images/road-illustration.jpg') no-repeat center / cover; + + &:before { + background: rgba(0, 0, 0, 0.5); + } +} diff --git a/projects/demo/src/modules/experimental/card-large/examples/11/index.ts b/projects/demo/src/modules/experimental/card-large/examples/11/index.ts new file mode 100644 index 000000000000..98920082b357 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/11/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-11', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample11 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/12/index.html b/projects/demo/src/modules/experimental/card-large/examples/12/index.html new file mode 100644 index 000000000000..e8889f447bba --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/12/index.html @@ -0,0 +1,101 @@ +
+

Desktop

+ +
+
+

+ Normal + Radius: 24, padding: 24/20 +

+
+ +
+ +
+
+ +
+
+

+ Compact + Radius: 16, padding: 20/16 +

+
+ + +
+
+ +
+

iOS/Android

+ +
+
+

+ Normal + Radius: 24, padding: 20/16 +

+
+ +
+ +
+
+ +
+
+

+ Compact + Radius: 16, padding: 16/14 +

+
+ + +
+
diff --git a/projects/demo/src/modules/experimental/card-large/examples/12/index.ts b/projects/demo/src/modules/experimental/card-large/examples/12/index.ts new file mode 100644 index 000000000000..3e93031b74fc --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/12/index.ts @@ -0,0 +1,11 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-12', + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample12 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/2/index.html b/projects/demo/src/modules/experimental/card-large/examples/2/index.html new file mode 100644 index 000000000000..fbab751614b9 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/2/index.html @@ -0,0 +1,67 @@ +
+

Desktop

+ +
+
+

+ Title + Subtitle +

+ + +
+ + +
+
+ +
+

iOS/Android

+ +
+
+

+ Title + Subtitle +

+ + +
+ + +
+
diff --git a/projects/demo/src/modules/experimental/card-large/examples/2/index.ts b/projects/demo/src/modules/experimental/card-large/examples/2/index.ts new file mode 100644 index 000000000000..603118469dac --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/2/index.ts @@ -0,0 +1,11 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-2', + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample2 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/3/index.html b/projects/demo/src/modules/experimental/card-large/examples/3/index.html new file mode 100644 index 000000000000..35a477692918 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/3/index.html @@ -0,0 +1,64 @@ + + + + +
+ + + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/3/index.less b/projects/demo/src/modules/experimental/card-large/examples/3/index.less new file mode 100644 index 000000000000..e13863a293d5 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/3/index.less @@ -0,0 +1,12 @@ +:host { + display: flex; + flex-direction: column; + gap: 1.25rem; + width: 20rem; +} + +.actions { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1.25rem; +} diff --git a/projects/demo/src/modules/experimental/card/examples/5/index.ts b/projects/demo/src/modules/experimental/card-large/examples/3/index.ts similarity index 78% rename from projects/demo/src/modules/experimental/card/examples/5/index.ts rename to projects/demo/src/modules/experimental/card-large/examples/3/index.ts index 29fc336578ce..7aa80ed01374 100644 --- a/projects/demo/src/modules/experimental/card/examples/5/index.ts +++ b/projects/demo/src/modules/experimental/card-large/examples/3/index.ts @@ -3,10 +3,10 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-5', + selector: 'tui-card-large-example-3', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample5 {} +export class TuiCardLargeExample3 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/4/index.html b/projects/demo/src/modules/experimental/card-large/examples/4/index.html new file mode 100644 index 000000000000..bea2b059d2dd --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/4/index.html @@ -0,0 +1,40 @@ +
+
+

+ Title + Subtitle +

+
+ +
+
+ + +

+ Title + Subtitle +

+
+
+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/4/index.less b/projects/demo/src/modules/experimental/card-large/examples/4/index.less new file mode 100644 index 000000000000..e93f1944fc1c --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/4/index.less @@ -0,0 +1,13 @@ +section { + display: flex; + gap: 0.75rem; + margin: 0 -1.5rem; + padding: 0 1.5rem; + overflow: scroll; +} + +.plus { + background: var(--tui-primary); + border-radius: 0.25rem; + color: #fff; +} diff --git a/projects/demo/src/modules/experimental/card/examples/2/index.ts b/projects/demo/src/modules/experimental/card-large/examples/4/index.ts similarity index 78% rename from projects/demo/src/modules/experimental/card/examples/2/index.ts rename to projects/demo/src/modules/experimental/card-large/examples/4/index.ts index fd79fbaf8c27..0c6d4e9fa574 100644 --- a/projects/demo/src/modules/experimental/card/examples/2/index.ts +++ b/projects/demo/src/modules/experimental/card-large/examples/4/index.ts @@ -3,10 +3,10 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-2', + selector: 'tui-card-large-example-4', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample2 {} +export class TuiCardLargeExample4 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/5/index.html b/projects/demo/src/modules/experimental/card-large/examples/5/index.html new file mode 100644 index 000000000000..1423a8a200e5 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/5/index.html @@ -0,0 +1,36 @@ +
+
+

+ Title + Subtitle +

+
+ +
+ +
+ Title +
Description
+
+
+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/5/index.ts b/projects/demo/src/modules/experimental/card-large/examples/5/index.ts new file mode 100644 index 000000000000..9577dbad7e4a --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/5/index.ts @@ -0,0 +1,11 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-5', + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample5 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/6/index.html b/projects/demo/src/modules/experimental/card-large/examples/6/index.html new file mode 100644 index 000000000000..6d57c1917717 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/6/index.html @@ -0,0 +1,38 @@ +
+
+

+ Title + Subtitle +

+
+ +
+
+ +
+ Title +
Description
+
+
+
+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/6/index.less b/projects/demo/src/modules/experimental/card-large/examples/6/index.less new file mode 100644 index 000000000000..294ee2562724 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/6/index.less @@ -0,0 +1,5 @@ +.actions { + display: grid; + grid-template-columns: 1fr 1fr; + gap: inherit; +} diff --git a/projects/demo/src/modules/experimental/card/examples/3/index.ts b/projects/demo/src/modules/experimental/card-large/examples/6/index.ts similarity index 78% rename from projects/demo/src/modules/experimental/card/examples/3/index.ts rename to projects/demo/src/modules/experimental/card-large/examples/6/index.ts index bf5182354cc5..cfa484cde232 100644 --- a/projects/demo/src/modules/experimental/card/examples/3/index.ts +++ b/projects/demo/src/modules/experimental/card-large/examples/6/index.ts @@ -3,10 +3,10 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-3', + selector: 'tui-card-large-example-6', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample3 {} +export class TuiCardLargeExample6 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/7/index.html b/projects/demo/src/modules/experimental/card-large/examples/7/index.html new file mode 100644 index 000000000000..ddf01b2df22f --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/7/index.html @@ -0,0 +1,66 @@ +
+
+

+ Title + Subtitle +

+
+ + + + + + +
+ + + + + + + + + + + diff --git a/projects/demo/src/modules/experimental/card-large/examples/7/index.less b/projects/demo/src/modules/experimental/card-large/examples/7/index.less new file mode 100644 index 000000000000..1fe8c28223af --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/7/index.less @@ -0,0 +1,4 @@ +.actions { + display: flex; + flex-direction: column; +} diff --git a/projects/demo/src/modules/experimental/card-large/examples/7/index.ts b/projects/demo/src/modules/experimental/card-large/examples/7/index.ts new file mode 100644 index 000000000000..84d1ab79a65b --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/7/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-7', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample7 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/8/index.html b/projects/demo/src/modules/experimental/card-large/examples/8/index.html new file mode 100644 index 000000000000..da48ec4b2c26 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/8/index.html @@ -0,0 +1,51 @@ +
+
+

Title

+
+ +
+ +
+ Title +
Description
+
+
+ + +
+
+
+

Title

+
+ + Some text + + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/8/index.less b/projects/demo/src/modules/experimental/card-large/examples/8/index.less new file mode 100644 index 000000000000..2ea2cb93864c --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/8/index.less @@ -0,0 +1,6 @@ +:host { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1rem; + width: 30rem; +} diff --git a/projects/demo/src/modules/experimental/card-large/examples/8/index.ts b/projects/demo/src/modules/experimental/card-large/examples/8/index.ts new file mode 100644 index 000000000000..c56d048cb3fb --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/8/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-8', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample8 {} diff --git a/projects/demo/src/modules/experimental/card-large/examples/9/index.html b/projects/demo/src/modules/experimental/card-large/examples/9/index.html new file mode 100644 index 000000000000..72cf5200e8c3 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/9/index.html @@ -0,0 +1,33 @@ +
+
+

+ Title + Subtitle +

+
+ +
+ +
+ + +
diff --git a/projects/demo/src/modules/experimental/card-large/examples/9/index.ts b/projects/demo/src/modules/experimental/card-large/examples/9/index.ts new file mode 100644 index 000000000000..b1b1fe0847fa --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/9/index.ts @@ -0,0 +1,11 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-large-example-9', + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export class TuiCardLargeExample9 {} diff --git a/projects/demo/src/modules/experimental/card/examples/import/import-module.md b/projects/demo/src/modules/experimental/card-large/examples/import/import-module.md similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/import/import-module.md rename to projects/demo/src/modules/experimental/card-large/examples/import/import-module.md diff --git a/projects/demo/src/modules/experimental/card-large/examples/import/insert-template.md b/projects/demo/src/modules/experimental/card-large/examples/import/insert-template.md new file mode 100644 index 000000000000..aefcbe339bba --- /dev/null +++ b/projects/demo/src/modules/experimental/card-large/examples/import/insert-template.md @@ -0,0 +1,10 @@ +```html +
+
+

Header

+
+
+``` diff --git a/projects/demo/src/modules/experimental/card/card.component.ts b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts similarity index 95% rename from projects/demo/src/modules/experimental/card/card.component.ts rename to projects/demo/src/modules/experimental/card-medium/card-medium.component.ts index 9cdbd48c8d1f..af0cea5cf190 100644 --- a/projects/demo/src/modules/experimental/card/card.component.ts +++ b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts @@ -4,10 +4,10 @@ import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-card', - templateUrl: './card.template.html', + templateUrl: './card-medium.template.html', changeDetection, }) -export class ExampleTuiCardComponent { +export class ExampleTuiCardMediumComponent { readonly exampleModule: TuiRawLoaderContent = import( './examples/import/import-module.md?raw' ); diff --git a/projects/demo/src/modules/experimental/card-medium/card-medium.module.ts b/projects/demo/src/modules/experimental/card-medium/card-medium.module.ts new file mode 100644 index 000000000000..eee00bba5d21 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/card-medium.module.ts @@ -0,0 +1,90 @@ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {tuiGetDocModules} from '@taiga-ui/addon-doc'; +import {TuiRippleModule} from '@taiga-ui/addon-mobile'; +import {TuiPlatformModule, TuiRepeatTimesModule} from '@taiga-ui/cdk'; +import { + TuiAppearanceDirective, + TuiDataListModule, + TuiHintModule, + TuiHostedDropdownModule, + TuiLinkModule, + TuiNotificationModule, + TuiScrollbarModule, + TuiSvgModule, +} from '@taiga-ui/core'; +import { + TuiAutoColorModule, + TuiAvatarModule, + TuiAvatarStackModule, + TuiButtonCloseModule, + TuiButtonModule, + TuiCardModule, + TuiCellModule, + TuiFadeModule, + TuiFallbackSrcModule, + TuiHeaderDirective, + TuiIconModule, + TuiInitialsModule, + TuiSurfaceModule, + TuiThumbnailCardModule, + TuiTitleModule, +} from '@taiga-ui/experimental'; +import {TuiBadgeDirective} from '@taiga-ui/kit'; + +import {ExampleTuiCardMediumComponent} from './card-medium.component'; +import {TuiCardMediumExample1} from './examples/1'; +import {TuiCardMediumExample2} from './examples/2'; +import {TuiCardMediumExample3} from './examples/3'; +import {TuiCardMediumExample4} from './examples/4'; +import {TuiCardMediumExample5} from './examples/5'; +import {TuiCardMediumExample6} from './examples/6'; +import {TuiCardMediumExample7} from './examples/7'; + +@NgModule({ + imports: [ + CommonModule, + TuiAvatarStackModule, + TuiAutoColorModule, + TuiInitialsModule, + TuiNotificationModule, + TuiFallbackSrcModule, + TuiFadeModule, + TuiCardModule, + TuiSurfaceModule, + TuiSvgModule, + TuiBadgeDirective, + TuiTitleModule, + TuiAvatarModule, + TuiScrollbarModule, + TuiHintModule, + FormsModule, + TuiRippleModule, + TuiThumbnailCardModule, + TuiIconModule, + TuiButtonModule, + TuiHeaderDirective, + TuiCellModule, + tuiGetDocModules(ExampleTuiCardMediumComponent), + TuiRepeatTimesModule, + TuiDataListModule, + TuiHostedDropdownModule, + TuiButtonCloseModule, + TuiPlatformModule, + TuiLinkModule, + TuiAppearanceDirective, + ], + declarations: [ + ExampleTuiCardMediumComponent, + TuiCardMediumExample1, + TuiCardMediumExample2, + TuiCardMediumExample3, + TuiCardMediumExample4, + TuiCardMediumExample5, + TuiCardMediumExample6, + TuiCardMediumExample7, + ], + exports: [ExampleTuiCardMediumComponent], +}) +export class ExampleTuiCardMediumModule {} diff --git a/projects/demo/src/modules/experimental/card/card.template.html b/projects/demo/src/modules/experimental/card-medium/card-medium.template.html similarity index 71% rename from projects/demo/src/modules/experimental/card/card.template.html rename to projects/demo/src/modules/experimental/card-medium/card-medium.template.html index ac6714c7e620..0f28c1734f90 100644 --- a/projects/demo/src/modules/experimental/card/card.template.html +++ b/projects/demo/src/modules/experimental/card-medium/card-medium.template.html @@ -3,19 +3,13 @@ package="EXPERIMENTAL" type="components" > - - - This code is - experimental - and is a subject to change. Expect final solution to be shipped in the next major version - - + - + - + - + - + - + - + - + diff --git a/projects/demo/src/modules/experimental/card/examples/1/index.html b/projects/demo/src/modules/experimental/card-medium/examples/1/index.html similarity index 74% rename from projects/demo/src/modules/experimental/card/examples/1/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/1/index.html index f5ebe33cc50b..c54eaaa5678b 100644 --- a/projects/demo/src/modules/experimental/card/examples/1/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/1/index.html @@ -1,4 +1,7 @@ -
+
-
+

-
+

Title Subtitle diff --git a/projects/demo/src/modules/experimental/card/examples/1/index.less b/projects/demo/src/modules/experimental/card-medium/examples/1/index.less similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/1/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/1/index.less diff --git a/projects/demo/src/modules/experimental/card-medium/examples/1/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/1/index.ts new file mode 100644 index 000000000000..5c465a5bb80a --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/1/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-medium-example-1', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardMediumExample1 {} diff --git a/projects/demo/src/modules/experimental/card/examples/2/index.html b/projects/demo/src/modules/experimental/card-medium/examples/2/index.html similarity index 78% rename from projects/demo/src/modules/experimental/card/examples/2/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/2/index.html index 2973ba7f336d..8a96ad6c3dc4 100644 --- a/projects/demo/src/modules/experimental/card/examples/2/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/2/index.html @@ -1,4 +1,7 @@ -
+

-
+

Title Subtitle diff --git a/projects/demo/src/modules/experimental/card/examples/2/index.less b/projects/demo/src/modules/experimental/card-medium/examples/2/index.less similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/2/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/2/index.less diff --git a/projects/demo/src/modules/experimental/card-medium/examples/2/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/2/index.ts new file mode 100644 index 000000000000..ebde32f56b7f --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/2/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-medium-example-2', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardMediumExample2 {} diff --git a/projects/demo/src/modules/experimental/card/examples/3/index.html b/projects/demo/src/modules/experimental/card-medium/examples/3/index.html similarity index 83% rename from projects/demo/src/modules/experimental/card/examples/3/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/3/index.html index b2e9450c93bd..c49710388315 100644 --- a/projects/demo/src/modules/experimental/card/examples/3/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/3/index.html @@ -1,4 +1,7 @@ -
+

-
+

Title Subtitle diff --git a/projects/demo/src/modules/experimental/card/examples/3/index.less b/projects/demo/src/modules/experimental/card-medium/examples/3/index.less similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/3/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/3/index.less diff --git a/projects/demo/src/modules/experimental/card-medium/examples/3/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/3/index.ts new file mode 100644 index 000000000000..6e39bf0e4d32 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/3/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-medium-example-3', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardMediumExample3 {} diff --git a/projects/demo/src/modules/experimental/card/examples/4/index.html b/projects/demo/src/modules/experimental/card-medium/examples/4/index.html similarity index 88% rename from projects/demo/src/modules/experimental/card/examples/4/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/4/index.html index 80edf46d4e3d..8a25550db16b 100644 --- a/projects/demo/src/modules/experimental/card/examples/4/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/4/index.html @@ -1,4 +1,7 @@ -
+

-
+

Title Subtitle diff --git a/projects/demo/src/modules/experimental/card/examples/4/index.less b/projects/demo/src/modules/experimental/card-medium/examples/4/index.less similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/4/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/4/index.less diff --git a/projects/demo/src/modules/experimental/card/examples/4/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/4/index.ts similarity index 86% rename from projects/demo/src/modules/experimental/card/examples/4/index.ts rename to projects/demo/src/modules/experimental/card-medium/examples/4/index.ts index a381b72caac0..dc08dd24df20 100644 --- a/projects/demo/src/modules/experimental/card/examples/4/index.ts +++ b/projects/demo/src/modules/experimental/card-medium/examples/4/index.ts @@ -3,13 +3,13 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-4', + selector: 'tui-card-medium-example-4', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample4 { +export class TuiCardMediumExample4 { readonly urls = [ 'https://avatars.githubusercontent.com/u/11832552', 'https://avatars.githubusercontent.com/u/10106368', diff --git a/projects/demo/src/modules/experimental/card/examples/5/index.html b/projects/demo/src/modules/experimental/card-medium/examples/5/index.html similarity index 93% rename from projects/demo/src/modules/experimental/card/examples/5/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/5/index.html index 58088d841886..28763b559b41 100644 --- a/projects/demo/src/modules/experimental/card/examples/5/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/5/index.html @@ -1,5 +1,5 @@
@@ -18,7 +18,7 @@

@@ -34,7 +34,7 @@

Flights

@@ -52,7 +52,7 @@

diff --git a/projects/demo/src/modules/experimental/card/examples/5/index.less b/projects/demo/src/modules/experimental/card-medium/examples/5/index.less similarity index 100% rename from projects/demo/src/modules/experimental/card/examples/5/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/5/index.less diff --git a/projects/demo/src/modules/experimental/card-medium/examples/5/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/5/index.ts new file mode 100644 index 000000000000..dcff1c01429e --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/5/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-medium-example-5', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardMediumExample5 {} diff --git a/projects/demo/src/modules/experimental/card-medium/examples/6/index.html b/projects/demo/src/modules/experimental/card-medium/examples/6/index.html new file mode 100644 index 000000000000..8030ad639fc3 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/6/index.html @@ -0,0 +1,44 @@ +
+ + Lorem Ipsum is simply dummy text of the printing and typesetting industry. + + + + It is a long established fact that a reader will be distracted by the readable content of a page when looking at + its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as + opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing + packages and web page editors now use Lorem Ipsum as their default model text. + +
+ +
+ Text without fade out when overflow content + +
+ It is a long established fact that a reader will be distracted by the readable content of a page when looking at + its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as + opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing + packages and web page editors now use Lorem Ipsum as their default model text. +
+
diff --git a/projects/demo/src/modules/experimental/card/examples/6/index.less b/projects/demo/src/modules/experimental/card-medium/examples/6/index.less similarity index 87% rename from projects/demo/src/modules/experimental/card/examples/6/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/6/index.less index 2cc57e51845a..e252245e982b 100644 --- a/projects/demo/src/modules/experimental/card/examples/6/index.less +++ b/projects/demo/src/modules/experimental/card-medium/examples/6/index.less @@ -6,7 +6,6 @@ } .fade { - .scrollbar-hidden(); width: 100%; height: 2rem; white-space: nowrap; @@ -14,7 +13,6 @@ } .fade-vertical { - .scrollbar-hidden(); height: 5rem; overflow: auto; } diff --git a/projects/demo/src/modules/experimental/card-medium/examples/6/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/6/index.ts new file mode 100644 index 000000000000..a0ea458bd2b8 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/6/index.ts @@ -0,0 +1,12 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; + +@Component({ + selector: 'tui-card-medium-example-6', + templateUrl: './index.html', + styleUrls: ['./index.less'], + encapsulation, + changeDetection, +}) +export class TuiCardMediumExample6 {} diff --git a/projects/demo/src/modules/experimental/card/examples/7/index.html b/projects/demo/src/modules/experimental/card-medium/examples/7/index.html similarity index 71% rename from projects/demo/src/modules/experimental/card/examples/7/index.html rename to projects/demo/src/modules/experimental/card-medium/examples/7/index.html index 96c8272f7a08..630e9682ab67 100644 --- a/projects/demo/src/modules/experimental/card/examples/7/index.html +++ b/projects/demo/src/modules/experimental/card-medium/examples/7/index.html @@ -1,18 +1,13 @@ -
- - -
+
+ +
-
+ -
+ +
+ + 2222 + +
+ - - -
- - 2222 - -
-
-
+ diff --git a/projects/demo/src/modules/experimental/card/examples/7/index.less b/projects/demo/src/modules/experimental/card-medium/examples/7/index.less similarity index 52% rename from projects/demo/src/modules/experimental/card/examples/7/index.less rename to projects/demo/src/modules/experimental/card-medium/examples/7/index.less index 57c9b8a4fe8a..2281d1fdc1f3 100644 --- a/projects/demo/src/modules/experimental/card/examples/7/index.less +++ b/projects/demo/src/modules/experimental/card-medium/examples/7/index.less @@ -5,17 +5,9 @@ gap: 1rem; } -.surface { +.card { height: 6.5rem; width: 6.5rem; - padding: 0.75rem; - background: var(--tui-base-02); - cursor: pointer; -} - -.selected { - z-index: 1; - color: var(--tui-primary); } .mir { @@ -26,19 +18,12 @@ background: linear-gradient(45deg, #ffaa00d1, #ffaa00), url(/assets/taiga-ui/icons/tuiIconStarLarge.svg); } -.card-list { - .scrollbar-hidden(); +.cards { display: flex; flex-direction: row; gap: 0.25rem; - width: 100%; - overflow-x: scroll; - overflow-y: hidden; - margin-left: -0.4375rem; - padding-left: 0.4375rem; - z-index: 2; - - tui-thumbnail-card { - flex-shrink: 0; - } + width: stretch; + margin: 0 -0.4375rem; + padding: 0 0.4375rem; + overflow: auto; } diff --git a/projects/demo/src/modules/experimental/card/examples/7/index.ts b/projects/demo/src/modules/experimental/card-medium/examples/7/index.ts similarity index 79% rename from projects/demo/src/modules/experimental/card/examples/7/index.ts rename to projects/demo/src/modules/experimental/card-medium/examples/7/index.ts index 529de4049ea6..342209a033dd 100644 --- a/projects/demo/src/modules/experimental/card/examples/7/index.ts +++ b/projects/demo/src/modules/experimental/card-medium/examples/7/index.ts @@ -3,12 +3,12 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; @Component({ - selector: 'tui-card-example-7', + selector: 'tui-card-medium-example-7', templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, changeDetection, }) -export class TuiCardExample7 { +export class TuiCardMediumExample7 { value = 0; } diff --git a/projects/demo/src/modules/experimental/card-medium/examples/import/import-module.md b/projects/demo/src/modules/experimental/card-medium/examples/import/import-module.md new file mode 100644 index 000000000000..b8f6dc443ad0 --- /dev/null +++ b/projects/demo/src/modules/experimental/card-medium/examples/import/import-module.md @@ -0,0 +1,13 @@ +```ts +import {NgModule} from '@angular/core'; +import {TuiCardModule} from '@taiga-ui/experimental'; +// ... + +@NgModule({ + imports: [ + // ... + TuiCardModule, + ], +}) +export class MyModule {} +``` diff --git a/projects/demo/src/modules/experimental/card/examples/import/insert-template.md b/projects/demo/src/modules/experimental/card-medium/examples/import/insert-template.md similarity index 89% rename from projects/demo/src/modules/experimental/card/examples/import/insert-template.md rename to projects/demo/src/modules/experimental/card-medium/examples/import/insert-template.md index 25593713373a..515ef284ad1e 100644 --- a/projects/demo/src/modules/experimental/card/examples/import/insert-template.md +++ b/projects/demo/src/modules/experimental/card-medium/examples/import/insert-template.md @@ -1,5 +1,5 @@ ```html -
+
-

- - - Lorem Ipsum is simply dummy text of the printing and typesetting industry. - - - - - - - It is a long established fact that a reader will be distracted by the readable content of a page - when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal - distribution of letters, as opposed to using 'Content here, content here', making it look like - readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their - default model text. - - - -

-
- -
-

Text without fade out when overflow content

- -
- It is a long established fact that a reader will be distracted by the readable content of a page when looking at - its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as - opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing - packages and web page editors now use Lorem Ipsum as their default model text. -
- {{ text.innerText }} -
diff --git a/projects/demo/src/modules/experimental/card/examples/6/index.ts b/projects/demo/src/modules/experimental/card/examples/6/index.ts deleted file mode 100644 index 9a36002ecf5d..000000000000 --- a/projects/demo/src/modules/experimental/card/examples/6/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -import {Component} from '@angular/core'; -import {changeDetection} from '@demo/emulate/change-detection'; -import {encapsulation} from '@demo/emulate/encapsulation'; - -@Component({ - selector: 'tui-card-example-6', - templateUrl: './index.html', - styleUrls: ['./index.less'], - encapsulation, - changeDetection, -}) -export class TuiCardExample6 {} diff --git a/projects/demo/src/modules/experimental/cell/cell.module.ts b/projects/demo/src/modules/experimental/cell/cell.module.ts index c69e9f1c2b97..a180b41e31f0 100644 --- a/projects/demo/src/modules/experimental/cell/cell.module.ts +++ b/projects/demo/src/modules/experimental/cell/cell.module.ts @@ -17,6 +17,7 @@ import { TuiAvatarStackModule, TuiBadgeNotificationModule, TuiButtonModule, + TuiCardModule, TuiCellModule, TuiCheckboxModule, TuiFadeModule, @@ -74,6 +75,7 @@ import {TuiCellExample7} from './examples/7'; TuiButtonModule, TuiHostedDropdownModule, TuiGroupModule, + TuiCardModule, tuiGetDocModules(ExampleTuiCellComponent), ], declarations: [ diff --git a/projects/demo/src/modules/experimental/cell/examples/7/index.html b/projects/demo/src/modules/experimental/cell/examples/7/index.html index 2ccbebcccdcc..4786c7447e44 100644 --- a/projects/demo/src/modules/experimental/cell/examples/7/index.html +++ b/projects/demo/src/modules/experimental/cell/examples/7/index.html @@ -1,21 +1,26 @@ -
+ + Don't forget import + TuiCardModule + + +

Inside a block

-
- -
+
diff --git a/projects/demo/src/modules/experimental/surface/examples/5/index.html b/projects/demo/src/modules/experimental/surface/examples/5/index.html index 4243d64a6d07..b6a70c46eb57 100644 --- a/projects/demo/src/modules/experimental/surface/examples/5/index.html +++ b/projects/demo/src/modules/experimental/surface/examples/5/index.html @@ -1,6 +1,8 @@