-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e04b30
commit 8fd3c5a
Showing
45 changed files
with
353 additions
and
149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ | |
|
||
&__button { | ||
display: inline-flex; | ||
flex: 1; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
projects/demo/src/app/pages/button-demo/examples/example-5/example-5.component.html
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,3 +1,3 @@ | ||
<div class="button-container"> | ||
<pupa-button class="button" flexible="true" kind="border"> Flexible button </pupa-button> | ||
<pupa-button flexible="true" kind="border"> Flexible button </pupa-button> | ||
</div> |
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 |
---|---|---|
|
@@ -4,7 +4,3 @@ | |
display: flex; | ||
margin: 4rem 0; | ||
} | ||
|
||
.button { | ||
flex: 1; | ||
} |
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 |
---|---|---|
|
@@ -2,8 +2,3 @@ | |
width: 400px; | ||
height: 400px; | ||
} | ||
|
||
.layout-action { | ||
display: flex; | ||
justify-content: center; | ||
} |
8 changes: 5 additions & 3 deletions
8
...odal-demo/examples/modal-demo-example-2/modal-content/modal-demo-example-2.component.html
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
7 changes: 3 additions & 4 deletions
7
...odal-demo/examples/modal-demo-example-3/modal-content/modal-demo-example-3.component.html
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
9 changes: 4 additions & 5 deletions
9
...odal-demo/examples/modal-demo-example-4/modal-content/modal-demo-example-4.component.html
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 |
---|---|---|
|
@@ -7,7 +7,3 @@ | |
max-width: calc(100vw - 10rem); | ||
max-height: calc(#{vh(100)} - 10rem); | ||
} | ||
|
||
.close-button { | ||
flex: 1; | ||
} |
19 changes: 9 additions & 10 deletions
19
...odal-demo/examples/modal-demo-example-5/modal-content/modal-demo-example-5.component.html
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,21 +1,20 @@ | ||
<pupa-modal-layout height="xs" class="modal-layout"> | ||
<pupa-modal-layout-header-actions> | ||
<pupa-modal-close-button class="close-button" [value]="'🤷'" [icon]="'app-cross'"> </pupa-modal-close-button> | ||
<pupa-modal-expand-button></pupa-modal-expand-button> | ||
</pupa-modal-layout-header-actions> | ||
|
||
<pupa-modal-layout class="modal-layout"> | ||
<pupa-modal-layout-header> | ||
<pupa-modal-layout-title>{{ loremIpsum }}</pupa-modal-layout-title> | ||
<pupa-modal-layout-header-actions> | ||
<pupa-modal-expand-button></pupa-modal-expand-button> | ||
<pupa-modal-close-button [value]="'🤷'" [icon]="'app-cross'"> </pupa-modal-close-button> | ||
</pupa-modal-layout-header-actions> | ||
</pupa-modal-layout-header> | ||
|
||
<pupa-modal-layout-body>{{ loremIpsum }}</pupa-modal-layout-body> | ||
|
||
<pupa-modal-layout-footer> | ||
<pupa-modal-layout-action class="layout-action" [value]="null"> | ||
<pupa-button class="footer-button" flexible="true" kind="border">Cancel</pupa-button> | ||
<pupa-modal-layout-action [value]="null"> | ||
<pupa-button flexible="true" kind="border">Cancel</pupa-button> | ||
</pupa-modal-layout-action> | ||
<pupa-modal-layout-action class="layout-action" [value]="'close'"> | ||
<pupa-button class="footer-button" flexible="true">Close</pupa-button> | ||
<pupa-modal-layout-action [value]="'close'"> | ||
<pupa-button flexible="true">Close</pupa-button> | ||
</pupa-modal-layout-action> | ||
</pupa-modal-layout-footer> | ||
</pupa-modal-layout> |
12 changes: 0 additions & 12 deletions
12
...odal-demo/examples/modal-demo-example-5/modal-content/modal-demo-example-5.component.scss
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,3 @@ | ||
.modal-layout { | ||
width: 400px; | ||
} | ||
|
||
.close-button { | ||
flex: 1; | ||
} | ||
|
||
.layout-action { | ||
display: flex; | ||
} | ||
|
||
.footer-button { | ||
flex: 1; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...odal-demo/examples/modal-demo-example-6/modal-content/modal-demo-example-6.component.html
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,16 @@ | ||
<pupa-modal-layout class="modal-layout"> | ||
<pupa-modal-layout-header> | ||
<pupa-modal-layout-title> Modal window </pupa-modal-layout-title> | ||
</pupa-modal-layout-header> | ||
|
||
<pupa-modal-layout-body> {{ loremIpsum }} </pupa-modal-layout-body> | ||
|
||
<pupa-modal-layout-footer> | ||
<pupa-modal-layout-action [value]="null"> | ||
<pupa-button [flexible]="true" kind="border">Cancel</pupa-button> | ||
</pupa-modal-layout-action> | ||
<pupa-modal-layout-action [value]="'close'"> | ||
<pupa-button [flexible]="true" kind="primary">Close</pupa-button> | ||
</pupa-modal-layout-action> | ||
</pupa-modal-layout-footer> | ||
</pupa-modal-layout> |
3 changes: 3 additions & 0 deletions
3
...odal-demo/examples/modal-demo-example-6/modal-content/modal-demo-example-6.component.scss
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,3 @@ | ||
.modal-layout { | ||
width: 400px; | ||
} |
20 changes: 20 additions & 0 deletions
20
.../modal-demo/examples/modal-demo-example-6/modal-content/modal-demo-example-6.component.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,20 @@ | ||
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core'; | ||
|
||
const BODY_CONTENT: string = ` | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis erat metus, | ||
tempus quis cursus sit amet, aliquam tempor odio. Proin vehicula nibh vitae varius tristique. | ||
Vivamus id vestibulum risus. Nulla eget leo eget est venenatis luctus in quis lectus. | ||
Maecenas pulvinar sollicitudin diam dapibus scelerisque. Ut non elit viverra, fringilla arcu et, | ||
blandit arcu. Phasellus ut malesuada tellus. Ut ac justo eget orci interdum euismod et vitae tortor. | ||
`; | ||
|
||
@Component({ | ||
selector: 'pupa-modal-demo-example-6', | ||
templateUrl: './modal-demo-example-6.component.html', | ||
styleUrls: ['./modal-demo-example-6.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
}) | ||
export class ModalDemoExample6Component { | ||
public readonly loremIpsum: string = BODY_CONTENT; | ||
} |
1 change: 1 addition & 0 deletions
1
...dal-demo-example-6/modal-demo-example-6-helper/modal-demo-example-6-helper.component.html
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 @@ | ||
<pupa-button (click)="openModal()">Open Modal</pupa-button> |
Empty file.
36 changes: 36 additions & 0 deletions
36
...modal-demo-example-6/modal-demo-example-6-helper/modal-demo-example-6-helper.component.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,36 @@ | ||
import { ChangeDetectionStrategy, Component, Injector, ViewEncapsulation } from '@angular/core'; | ||
import { ModalsService, OpenedModal } from '@bimeister/pupakit.overlays'; | ||
import { Observable } from 'rxjs'; | ||
import { MODAL_DATA_TOKEN } from '../../../../../../declarations/tokens/modal-data.token'; | ||
import { ModalDemoExample6Component } from '../modal-content/modal-demo-example-6.component'; | ||
|
||
@Component({ | ||
selector: 'pupa-modal-demo-example-6-helper', | ||
templateUrl: './modal-demo-example-6-helper.component.html', | ||
styleUrls: ['./modal-demo-example-6-helper.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
encapsulation: ViewEncapsulation.Emulated, | ||
}) | ||
export class ModalDemoExample6HelperComponent { | ||
public modalCloseMessage$: Observable<string>; | ||
|
||
constructor(private readonly modalsService: ModalsService, private readonly injector: Injector) {} | ||
|
||
public openModal(): void { | ||
const modal: OpenedModal<string> = this.modalsService.open(ModalDemoExample6Component, { | ||
injector: this.injector, | ||
hasBackdrop: true, | ||
closeOnBackdropClick: true, | ||
isBackdropTransparent: false, | ||
hasBorder: true, | ||
providers: [ | ||
{ | ||
provide: MODAL_DATA_TOKEN, | ||
useValue: [1, 2, 3, 4], | ||
}, | ||
], | ||
}); | ||
|
||
this.modalCloseMessage$ = modal.closed$; | ||
} | ||
} |
9 changes: 4 additions & 5 deletions
9
projects/demo/src/app/pages/modal-demo/modal-demo-content/modal-demo-content.component.html
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
|
||
.modal-layout { | ||
width: 400px; | ||
height: 400px; | ||
} | ||
|
||
.dragger { | ||
|
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
5 changes: 5 additions & 0 deletions
5
projects/kit/src/components/buttons/components/button/button.component.scss
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
Oops, something went wrong.