@norwegian/core-components 7.14.1 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/accordion/accordion.component.mjs +22 -4
- package/esm2022/lib/components/alert/alert.component.mjs +1 -1
- package/esm2022/lib/components/filter/filter.component.mjs +1 -1
- package/esm2022/lib/components/info/info.component.mjs +1 -1
- package/esm2022/lib/components/trip-summary/trip-summary.component.mjs +1 -1
- package/fesm2022/norwegian-core-components.mjs +25 -7
- package/fesm2022/norwegian-core-components.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +28 -2
- package/package.json +1 -1
- package/styles/3__base/_heading.scss +0 -6
|
@@ -7,7 +7,7 @@ import { NasComponentBase, ClassModel } from '../../core';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
|
-
* Norwegian Accordion Component | Layout
|
|
10
|
+
* Norwegian Accordion Component | Layout | New design
|
|
11
11
|
*/
|
|
12
12
|
export declare class AccordionComponent extends NasComponentBase implements OnInit {
|
|
13
13
|
/**
|
|
@@ -24,6 +24,22 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
24
24
|
* <nas-accordion [title]="'This is a title'">You can put any kind of elements and content here...</nas-accordion>
|
|
25
25
|
*/
|
|
26
26
|
title: string;
|
|
27
|
+
/**
|
|
28
|
+
* @property Input
|
|
29
|
+
* @description
|
|
30
|
+
* A string input value to set description next to the title
|
|
31
|
+
* @example
|
|
32
|
+
* <nas-accordion [title]="'Title'" [titleDescription]="'This is titleDescription'">You can put any kind of elements and content here...</nas-accordion>
|
|
33
|
+
*/
|
|
34
|
+
titleDescription: string;
|
|
35
|
+
/**
|
|
36
|
+
* @property Input
|
|
37
|
+
* @description
|
|
38
|
+
* A string input value to set description below to the title
|
|
39
|
+
* @example
|
|
40
|
+
* <nas-accordion [title]="'Title'" [description]="'This is description'">You can put any kind of elements and content here...</nas-accordion>
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
27
43
|
/**
|
|
28
44
|
* @property Input
|
|
29
45
|
* @description
|
|
@@ -187,6 +203,15 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
187
203
|
* <nas-accordion [cssStyle]="{'width': '300px', 'height': '40px'}}">You can put any kind of elements and content here...</nas-accordion>
|
|
188
204
|
*/
|
|
189
205
|
cssStyle: any;
|
|
206
|
+
/**
|
|
207
|
+
* @property Input
|
|
208
|
+
* @description
|
|
209
|
+
* Set header level to accordion. Default is h2
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* <nas-accordion [htag]="'3'">You can put any kind of elements and content here...</nas-accordion>
|
|
213
|
+
*/
|
|
214
|
+
htag: '1' | '2' | '3' | '4' | '5';
|
|
190
215
|
/**
|
|
191
216
|
* @property Output
|
|
192
217
|
* @description
|
|
@@ -198,6 +223,7 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
198
223
|
private animateIn;
|
|
199
224
|
private animateOut;
|
|
200
225
|
regularHeader: boolean;
|
|
226
|
+
get headerLevel(): number;
|
|
201
227
|
/**
|
|
202
228
|
* @description
|
|
203
229
|
* Represent a accordion component.
|
|
@@ -211,5 +237,5 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
211
237
|
toggle(): void;
|
|
212
238
|
setHeaderType(): void;
|
|
213
239
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "nas-accordion", never, { "expanded": { "alias": "expanded"; "required": false; }; "title": { "alias": "title"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaced": { "alias": "spaced"; "required": false; }; "small": { "alias": "small"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "containerOnToggle": { "alias": "containerOnToggle"; "required": false; }; "nopadding": { "alias": "nopadding"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "badgeInfo": { "alias": "badgeInfo"; "required": false; }; "badgeSuccess": { "alias": "badgeSuccess"; "required": false; }; "badgeWarning": { "alias": "badgeWarning"; "required": false; }; "badgeError": { "alias": "badgeError"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, ["*"], false, never>;
|
|
240
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "nas-accordion", never, { "expanded": { "alias": "expanded"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleDescription": { "alias": "titleDescription"; "required": false; }; "description": { "alias": "description"; "required": false; }; "badge": { "alias": "badge"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "simple": { "alias": "simple"; "required": false; }; "spaced": { "alias": "spaced"; "required": false; }; "small": { "alias": "small"; "required": false; }; "inverted": { "alias": "inverted"; "required": false; }; "containerOnToggle": { "alias": "containerOnToggle"; "required": false; }; "nopadding": { "alias": "nopadding"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "primary": { "alias": "primary"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "badgeInfo": { "alias": "badgeInfo"; "required": false; }; "badgeSuccess": { "alias": "badgeSuccess"; "required": false; }; "badgeWarning": { "alias": "badgeWarning"; "required": false; }; "badgeError": { "alias": "badgeError"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "htag": { "alias": "htag"; "required": false; }; }, { "toggleChange": "toggleChange"; }, never, ["*"], false, never>;
|
|
215
241
|
}
|
package/package.json
CHANGED
|
@@ -3,20 +3,17 @@
|
|
|
3
3
|
@include font-size(xxlarge);
|
|
4
4
|
@include font(heading, bold);
|
|
5
5
|
margin: 0 0 $spacing;
|
|
6
|
-
letter-spacing: -0.03em;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.xl-typo {
|
|
10
9
|
@include font-size(xlarge);
|
|
11
10
|
@include font(heading, bold);
|
|
12
11
|
margin: 0 0 $spacing--medium;
|
|
13
|
-
letter-spacing: -0.03em;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
.l-typo {
|
|
17
15
|
@include font-size(large);
|
|
18
16
|
@include font(heading, bold);
|
|
19
|
-
letter-spacing: -0.03em;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
h1,
|
|
@@ -25,7 +22,6 @@ h1,
|
|
|
25
22
|
@include font-size(xxlarge, false, mobile);
|
|
26
23
|
margin: 0 0 $spacing;
|
|
27
24
|
color: $typography-default;
|
|
28
|
-
letter-spacing: -0.03em;
|
|
29
25
|
|
|
30
26
|
@include min-width(md) {
|
|
31
27
|
@include font-size(xxlarge, false, base);
|
|
@@ -36,7 +32,6 @@ h2,
|
|
|
36
32
|
.heading2 {
|
|
37
33
|
@include font(heading, bold);
|
|
38
34
|
@include font-size(xlarge, false, mobile);
|
|
39
|
-
letter-spacing: -0.03em;
|
|
40
35
|
margin: 0 0 $spacing--xsmall;
|
|
41
36
|
|
|
42
37
|
@include min-width(md) {
|
|
@@ -48,7 +43,6 @@ h3,
|
|
|
48
43
|
.heading3 {
|
|
49
44
|
@include font(heading, bold);
|
|
50
45
|
@include font-size(large, false, mobile);
|
|
51
|
-
letter-spacing: -0.03em;
|
|
52
46
|
margin: 0 0 $spacing--xxxsmall;
|
|
53
47
|
|
|
54
48
|
@include min-width(md) {
|