Skip to content

Commit 43d9d35

Browse files
authored
Merge branch 'develop' into bug/4518-combobox-module
2 parents 784840a + f2f1977 commit 43d9d35

175 files changed

Lines changed: 1871 additions & 1509 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
registry=https://registry.npmjs.org/
12
engine-strict = true

.stylelintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": ["stylelint-config-standard-scss", "stylelint-config-prettier-scss"],
3+
"plugins": ["@kirbydesign/stylelint-plugin"],
34
"rules": {
5+
"kirby/use-design-tokens": true,
46
"scss/at-mixin-pattern": [
57
"^(-?_?[a-z][a-z0-9]*)(-[a-z0-9]+)*$",
68
{

apps/cookbook/src/app/examples/card-example/examples/card-example-variant.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@use '@kirbydesign/core/src/scss/utils';
22
@use './card-example.shared';
33

4+
/* stylelint-disable-next-line kirby/use-design-tokens */
45
$card-gap: utils.size(
56
's'
67
); // use scss variable instead of custom property here for container query compatability

apps/cookbook/src/app/examples/modal-example/modal-example-advanced.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,13 @@ ngOnInit() {
149149
ngOnInit() {
150150
this.modal?.willClose.then(() => console.log('this modal is about to close'));
151151
}`,
152-
embeddedCodeSnippet: `import { Component, Inject } from '@angular/core';
152+
embeddedCodeSnippet: `import { Component, inject } from '@angular/core';
153153
import { COMPONENT_PROPS } from '@kirbydesign/designsystem';
154154
155155
@Component()
156156
export class EmbeddedComponent() {
157-
constructor(@Inject(COMPONENT_PROPS) private componentProps) {
158-
this.props = componentProps;
159-
}
157+
private readonly componentProps = inject<{ myType: MyType }>(COMPONENT_PROPS);
158+
protected readonly myType = this.componentProps.myType;
160159
}`,
161160
closeModalCodeSnippet: `import { Component, Optional, SkipSelf } from '@angular/core';
162161
import { Modal } from '@kirbydesign/designsystem';

apps/cookbook/src/app/examples/page-example/fixed-footer-tabs/tab/fixed-footer-tab-example.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { Component, OnInit, ViewChild } from '@angular/core';
22
import { ActivatedRoute } from '@angular/router';
33

4-
import { PageFooterComponent } from '@kirbydesign/designsystem';
5-
6-
import { PageComponent, PageContentComponent } from '@kirbydesign/designsystem/page';
4+
import {
5+
PageComponent,
6+
PageContentComponent,
7+
PageFooterComponent,
8+
} from '@kirbydesign/designsystem/page';
79
import { NgTemplateOutlet } from '@angular/common';
810
import { ButtonComponent } from '@kirbydesign/designsystem/button';
911
import { IconComponent } from '@kirbydesign/designsystem/icon';
@@ -69,6 +71,7 @@ const config = {
6971
ItemComponent,
7072
ToggleComponent,
7173
PageContentComponent,
74+
PageFooterComponent,
7275
],
7376
})
7477
export class PageFixedFooterTabExampleComponent extends BasePageExampleComponent implements OnInit {

apps/cookbook/src/app/examples/progress-circle-example/examples/avatar.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,7 @@ const config = {
2828
@Component({
2929
selector: config.selector,
3030
template: config.template,
31-
styles: [
32-
`
33-
:host {
34-
display: flex !important;
35-
align-items: center;
36-
}
37-
38-
kirby-progress-circle {
39-
margin-right: 20px;
40-
}
41-
`,
42-
],
31+
styleUrls: ['./progress-circle-examples.shared.scss'],
4332
imports: [ProgressCircleComponent, AvatarComponent, ThemeColorDirective, IconComponent],
4433
})
4534
export class ProgressCircleExampleContentAvatarComponent {

apps/cookbook/src/app/examples/progress-circle-example/examples/card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const config = {
4343
}
4444
4545
kirby-card:not(:first-of-type) {
46-
margin-top: 12px;
46+
margin-top: var(--kirby-spacing-xs);
4747
}
4848
`,
4949
],

apps/cookbook/src/app/examples/progress-circle-example/examples/content-steps.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ import { ProgressCircleComponent } from '@kirbydesign/designsystem/progress-circ
33

44
const config = {
55
selector: 'cookbook-progress-circle-example-content-steps',
6-
template: `<kirby-progress-circle aria-label="Your investment savings" themeColor="warning" value="50" size="sm" class="kirby-text-xsmall">
7-
2/4
6+
template: `<kirby-progress-circle aria-label="Your investment savings" themeColor="warning" value="50" size="sm" class="kirby-text-xsmall">2/4
7+
</kirby-progress-circle>
8+
9+
<kirby-progress-circle aria-label="Your investment savings" themeColor="warning" value="50" size="md">2/4
10+
</kirby-progress-circle>
11+
12+
<kirby-progress-circle aria-label="Your investment savings" themeColor="warning" value="50" size="lg">2/4
813
</kirby-progress-circle>`,
914
};
1015

1116
@Component({
1217
selector: config.selector,
1318
template: config.template,
19+
styleUrls: ['./progress-circle-examples.shared.scss'],
1420
imports: [ProgressCircleComponent],
1521
})
1622
export class ProgressCircleExampleContentStepsComponent {

apps/cookbook/src/app/examples/progress-circle-example/examples/default.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const config = {
99
@Component({
1010
selector: config.selector,
1111
template: config.template,
12+
styleUrls: ['./progress-circle-examples.shared.scss'],
1213
imports: [ProgressCircleComponent],
1314
})
1415
export class ProgressCircleExampleDefaultComponent {
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
:host {
2+
display: flex !important;
3+
align-items: center;
4+
}
5+
6+
kirby-progress-circle {
7+
margin-right: var(--kirby-spacing-m);
8+
}
9+
10+
kirby-progress-circle p {
11+
display: flex;
12+
justify-content: center;
13+
align-items: center;
14+
flex-direction: column;
15+
width: 100%;
16+
height: 100%;
17+
margin: 0;
18+
text-align: center;
19+
font-size: var(--kirby-font-size-s);
20+
line-height: var(--kirby-font-size-n);
21+
}

0 commit comments

Comments
 (0)