@norwegian/core-components 6.4.0 → 6.5.1

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.
@@ -133,11 +133,11 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
133
133
  /**
134
134
  * @property Input
135
135
  * @description
136
- * A boolean input value to set the accordion to info style.
136
+ * A boolean input value to set the accordion to warning style.
137
137
  * @example
138
138
  * <nas-accordion info>You can put any kind of elements and content here...</nas-accordion>
139
139
  */
140
- info?: boolean;
140
+ warning?: boolean;
141
141
  /**
142
142
  * @property Input
143
143
  * @description
@@ -211,5 +211,5 @@ export declare class AccordionComponent extends NasComponentBase implements OnIn
211
211
  toggle(): void;
212
212
  setHeaderType(): void;
213
213
  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; }; "info": { "alias": "info"; "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>;
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>;
215
215
  }
@@ -31,6 +31,24 @@ export declare class InfoComponent extends NasComponentBase {
31
31
  * <nas-accordion [error]="isErrorProperty"></nas-accordion>
32
32
  */
33
33
  error?: boolean;
34
+ /**
35
+ * @property Input
36
+ * @description
37
+ * A boolean input value to set the accordion to warning style.
38
+ * @example
39
+ * <nas-info [info]="info" warning></nas-info>
40
+ * or
41
+ * <nas-accordion [warning]="isWarningProperty"></nas-accordion>
42
+ */
43
+ warning?: boolean;
44
+ /**
45
+ * @property Input
46
+ * @description
47
+ * A boolean input value to set the accordion to information style.
48
+ * @example
49
+ * <nas-info [info]="info" information></nas-info>
50
+ */
51
+ information?: boolean;
34
52
  /**
35
53
  * @property Input
36
54
  * @description
@@ -41,6 +59,14 @@ export declare class InfoComponent extends NasComponentBase {
41
59
  * <nas-accordion [success]="isSuccessProperty"></nas-accordion>
42
60
  */
43
61
  success?: boolean;
62
+ /**
63
+ * @property Input
64
+ * @description
65
+ * A boolean input value to set the accordion to outlined info.
66
+ * @example
67
+ * <nas-info [info]="info" outlined></nas-info>
68
+ */
69
+ outlined?: boolean;
44
70
  /**
45
71
  * @property Input
46
72
  * @description
@@ -78,5 +104,5 @@ export declare class InfoComponent extends NasComponentBase {
78
104
  private scrollToInfo;
79
105
  get modifiers(): Array<string>;
80
106
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoComponent, never>;
81
- static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "nas-info", never, { "info": { "alias": "info"; "required": false; }; "error": { "alias": "error"; "required": false; }; "success": { "alias": "success"; "required": false; }; "stackTraceLabel": { "alias": "stackTraceLabel"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "show": { "alias": "show"; "required": false; }; "sanitized": { "alias": "sanitized"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "nas-info", never, { "info": { "alias": "info"; "required": false; }; "error": { "alias": "error"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "information": { "alias": "information"; "required": false; }; "success": { "alias": "success"; "required": false; }; "outlined": { "alias": "outlined"; "required": false; }; "stackTraceLabel": { "alias": "stackTraceLabel"; "required": false; }; "removeIcon": { "alias": "removeIcon"; "required": false; }; "show": { "alias": "show"; "required": false; }; "sanitized": { "alias": "sanitized"; "required": false; }; }, { "showChange": "showChange"; }, never, ["*"], false, never>;
82
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.4.0",
3
+ "version": "6.5.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 17.0.0",
6
6
  "@angular/core": ">=16.0.0 < 17.0.0"
@@ -50,7 +50,8 @@ $color-light: #fff;
50
50
  $color-dark: color(secondary, dark);
51
51
 
52
52
  $color-approve: #238e00;
53
- $color-information: #ffc;
53
+ $color-information: $color-light;
54
+ $color-warning: #ffc;
54
55
  $color-focus-ring: #3b99fc;
55
56
  $color-background-badge: #E0EBFF;
56
57
  $color-error: #f1d6dc;