@norwegian/core-components 5.2.2 → 5.5.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/assets/icons/icon-negative--light.svg +11 -0
- package/assets/icons/icon-positive--light.svg +98 -0
- package/assets/icons/medium/swish.svg +16 -0
- package/assets/icons/medium/trustly.svg +6 -0
- package/assets/icons/medium/vipps.svg +17 -0
- package/assets/icons/small/alert--success.svg +9 -0
- package/assets/icons/small/swish.svg +16 -0
- package/assets/icons/small/trustly.svg +6 -0
- package/assets/icons/small/vipps.svg +17 -0
- package/assets/images/logo-reward.svg +140 -0
- package/bundles/norwegian-core-components.umd.js +35 -10
- package/bundles/norwegian-core-components.umd.js.map +1 -1
- package/esm2015/lib/components/accordion/accordion.component.js +9 -4
- package/esm2015/lib/components/icon/icon.component.js +1 -1
- package/esm2015/lib/components/info/info.component.js +10 -3
- package/esm2015/lib/components/info/info.module.js +4 -2
- package/esm2015/lib/components/info/models/info.model.js +1 -1
- package/esm2015/lib/components/page-header/page-header.component.js +9 -3
- package/esm2015/lib/components/select/select.component.js +4 -2
- package/fesm2015/norwegian-core-components.js +31 -10
- package/fesm2015/norwegian-core-components.js.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +25 -0
- package/lib/components/info/info.component.d.ts +14 -0
- package/lib/components/info/models/info.model.d.ts +2 -0
- package/lib/components/page-header/page-header.component.d.ts +5 -0
- package/lib/components/select/select.component.d.ts +5 -0
- package/norwegian-core-components.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,15 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* @description
|
|
28
|
+
* A string input value to set subheader text of component.
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <nas-accordion [subheader]="'This is a subheader'">You can put any kind of elements and content here...</nas-accordion>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
subheader: string;
|
|
26
35
|
/**
|
|
27
36
|
* @description
|
|
28
37
|
* A string input value to set icon text of component. Specifies the icon name, defaults to 'small'.
|
|
@@ -157,6 +166,22 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
|
|
|
157
166
|
* ```
|
|
158
167
|
*/
|
|
159
168
|
info?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* A boolean input value to set the accordion to subheader positive style.
|
|
171
|
+
* @example
|
|
172
|
+
* ```html
|
|
173
|
+
* <nas-accordion subheader="This is subheader" subheaderPositive>You can put any kind of elements and content here...</nas-accordion>
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
subheaderPositive?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* A boolean input value to set the accordion to subheader negative style.
|
|
179
|
+
* @example
|
|
180
|
+
* ```html
|
|
181
|
+
* <nas-accordion subheader="This is subheader" subheaderNegative>You can put any kind of elements and content here...</nas-accordion>
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
subheaderNegative?: boolean;
|
|
160
185
|
/**
|
|
161
186
|
* @description
|
|
162
187
|
* Adds custom CSS class to the accordion. Accordion will sett additional custom styling.
|
|
@@ -34,6 +34,19 @@ export declare class InfoComponent extends NasComponentBase {
|
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
error?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @description
|
|
39
|
+
* A boolean input value to set the accordion to success info.
|
|
40
|
+
* @example
|
|
41
|
+
* ```html
|
|
42
|
+
* <nas-info [info]="info" success></nas-info>
|
|
43
|
+
* ```
|
|
44
|
+
* or
|
|
45
|
+
* ```html
|
|
46
|
+
* <nas-accordion [success]="isSuccessProperty"></nas-accordion>
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
success?: boolean;
|
|
37
50
|
/**
|
|
38
51
|
* @description
|
|
39
52
|
* String to set stack trace label on the accordion.
|
|
@@ -68,4 +81,5 @@ export declare class InfoComponent extends NasComponentBase {
|
|
|
68
81
|
removeInfoBox(): void;
|
|
69
82
|
getListClass(element?: string, modifiersInput?: any): ClassModel;
|
|
70
83
|
private scrollToInfo;
|
|
84
|
+
get modifiers(): Array<string>;
|
|
71
85
|
}
|
|
@@ -36,6 +36,11 @@ export declare class PageHeaderComponent extends NasComponentBase implements OnD
|
|
|
36
36
|
* Show the profile section.
|
|
37
37
|
*/
|
|
38
38
|
displayProfile: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @description
|
|
41
|
+
* Will display the Norwegian Reward logo, set this to true display it. It's false by default.
|
|
42
|
+
*/
|
|
43
|
+
reward: boolean;
|
|
39
44
|
/**
|
|
40
45
|
* @description
|
|
41
46
|
* Is user authenticated. Only valid if displayProfile is true
|
|
@@ -45,6 +45,11 @@ export declare class SelectComponent extends NasComponentBase implements OnChang
|
|
|
45
45
|
* Sets spaceless styling.
|
|
46
46
|
*/
|
|
47
47
|
spaceless?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @description
|
|
50
|
+
* Sets stretch styling.
|
|
51
|
+
*/
|
|
52
|
+
stretch?: boolean;
|
|
48
53
|
/**
|
|
49
54
|
* @description
|
|
50
55
|
* Sets compact styling.
|