@norwegian/core-components 6.32.0 → 6.33.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.
Files changed (24) hide show
  1. package/assets/documentation/number-field-new/number-field-new.md +1 -0
  2. package/esm2022/lib/components/airport-select/airport-select-dropdown/airport-select-dropdown.component.mjs +1 -1
  3. package/esm2022/lib/components/button/button.component.mjs +10 -13
  4. package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
  5. package/esm2022/lib/components/continue/continue.component.mjs +1 -1
  6. package/esm2022/lib/components/cover/cover.component.mjs +1 -1
  7. package/esm2022/lib/components/info/info.component.mjs +1 -1
  8. package/esm2022/lib/components/input-text/input-text.component.mjs +2 -2
  9. package/esm2022/lib/components/journey-selection/journey-selection.component.mjs +1 -1
  10. package/esm2022/lib/components/modal/modal.component.mjs +1 -1
  11. package/esm2022/lib/components/number-field/number-field.component.mjs +3 -3
  12. package/esm2022/lib/components/page-footer/page-footer.component.mjs +1 -1
  13. package/esm2022/lib/components/page-header/page-header.component.mjs +1 -1
  14. package/esm2022/lib/components/page-header-old/page-header-old.component.mjs +1 -1
  15. package/esm2022/lib/components/radio/radio.component.mjs +3 -3
  16. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +2 -2
  17. package/esm2022/lib/components/sort/sort.component.mjs +1 -1
  18. package/esm2022/lib/components/subsidy-discount/subsidy-discount.component.mjs +1 -1
  19. package/esm2022/lib/components/suggestions/suggestions.component.mjs +1 -1
  20. package/fesm2022/norwegian-core-components.mjs +30 -32
  21. package/fesm2022/norwegian-core-components.mjs.map +1 -1
  22. package/lib/components/button/button.component.d.ts +25 -28
  23. package/lib/components/input-text/input-text.component.d.ts +1 -1
  24. package/package.json +1 -1
@@ -40,6 +40,15 @@ export declare class ButtonComponent extends NasComponentBase {
40
40
  * <nas-button link>Click on me!</nas-button>
41
41
  */
42
42
  link?: boolean;
43
+ /**
44
+ * @property Input
45
+ * @description
46
+ * Boolean to set approved style of button (green).
47
+ *
48
+ * @example
49
+ * <nas-button approve>Approve!</nas-button>
50
+ */
51
+ approve?: boolean;
43
52
  /**
44
53
  * @property Input
45
54
  * @description
@@ -52,7 +61,7 @@ export declare class ButtonComponent extends NasComponentBase {
52
61
  /**
53
62
  * @property Input
54
63
  * @description
55
- * Boolean to set large style of button. Can be compined with primary, secondary and light.
64
+ * Boolean to set large style of button. Can be compined with primary, secondary, approved and light.
56
65
  *
57
66
  * @example
58
67
  * <nas-button large>Click on me!</nas-button>
@@ -62,7 +71,7 @@ export declare class ButtonComponent extends NasComponentBase {
62
71
  * @property Input
63
72
  * @description
64
73
  * Boolean to set block style of button. Will have block behaviour.
65
- * Can be compined with primary, secondary and light.
74
+ * Can be compined with primary, secondary, approved and light.
66
75
  *
67
76
  * @example
68
77
  * <nas-button block>Click on me!</nas-button>
@@ -72,7 +81,7 @@ export declare class ButtonComponent extends NasComponentBase {
72
81
  * @property Input
73
82
  * @description
74
83
  * Boolean to set flex style of button. Will have flex box behaviour.
75
- * Can be compined with primary, secondary and light.
84
+ * Can be compined with primary, secondary, approved and light.
76
85
  *
77
86
  * @example
78
87
  * <nas-button flex>Click on me!</nas-button>
@@ -82,7 +91,7 @@ export declare class ButtonComponent extends NasComponentBase {
82
91
  * @property Input
83
92
  * @description
84
93
  * Boolean to set compact style of button. Will be smaller, without "the line".
85
- * Can be compined with primary, secondary and light.
94
+ * Can be compined with primary, secondary, approved and light.
86
95
  *
87
96
  * @example
88
97
  * <nas-button compact>Click on me!</nas-button>
@@ -92,7 +101,7 @@ export declare class ButtonComponent extends NasComponentBase {
92
101
  * @property Input
93
102
  * @description
94
103
  * Boolean to set right style of button. Will be aligned at right.
95
- * Can be compined with primary, secondary and light.
104
+ * Can be compined with primary, secondary, approved and light.
96
105
  *
97
106
  * @example
98
107
  * <nas-button right>Click on me!</nas-button>
@@ -102,12 +111,21 @@ export declare class ButtonComponent extends NasComponentBase {
102
111
  * @property Input
103
112
  * @description
104
113
  * Boolean to set spaceless style of button. Will remove space around button.
105
- * Can be compined with primary, secondary and light.
114
+ * Can be compined with primary, secondary, approved and light.
106
115
  *
107
116
  * @example
108
117
  * <nas-button spaceless>Click on me!</nas-button>
109
118
  */
110
119
  spaceless?: boolean;
120
+ /**
121
+ * @property Input
122
+ * @description
123
+ * Boolean to set transparent style of button. Will be transparent.
124
+ *
125
+ * @example
126
+ * <nas-button transparent>Click on me!</nas-button>
127
+ */
128
+ transparent?: boolean;
111
129
  /**
112
130
  * @property Input
113
131
  * @description
@@ -220,27 +238,6 @@ export declare class ButtonComponent extends NasComponentBase {
220
238
  * <nas-button link href="https://www.norwegian.com" target="_blank">Click on me!</nas-button>
221
239
  */
222
240
  target: string;
223
- /**
224
- * @property Input
225
- * @description
226
- * Sets the icon on the input
227
- */
228
- icon: string;
229
- /**
230
- * @property Input
231
- * @description
232
- * Boolean to display the icon on the left side of the button text
233
- */
234
- iconLeft?: boolean;
235
- /**
236
- * @property Input
237
- * @description
238
- * Boolean to set the button-link styling on the button
239
- *
240
- * @example
241
- * <nas-button buttonlink>This is a button link!</nas-button>
242
- */
243
- buttonlink: boolean;
244
241
  /**
245
242
  * @property Output
246
243
  * @description
@@ -266,5 +263,5 @@ export declare class ButtonComponent extends NasComponentBase {
266
263
  emitTrackingEvent(): void;
267
264
  emitTrackingAndClickEvent(event: Event): void;
268
265
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
269
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "nas-button", never, { "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "link": { "alias": "link"; "required": false; }; "light": { "alias": "light"; "required": false; }; "large": { "alias": "large"; "required": false; }; "block": { "alias": "block"; "required": false; }; "flex": { "alias": "flex"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "right": { "alias": "right"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "href": { "alias": "href"; "required": false; }; "trackingvalue": { "alias": "trackingvalue"; "required": false; }; "canContinueOnDisabled": { "alias": "canContinueOnDisabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "overrideBaseCssClass": { "alias": "overrideBaseCssClass"; "required": false; }; "useRouterLink": { "alias": "useRouterLink"; "required": false; }; "id": { "alias": "id"; "required": false; }; "target": { "alias": "target"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "buttonlink": { "alias": "buttonlink"; "required": false; }; }, { "clickChange": "clickChange"; }, never, ["*"], false, never>;
266
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "nas-button", never, { "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "link": { "alias": "link"; "required": false; }; "approve": { "alias": "approve"; "required": false; }; "light": { "alias": "light"; "required": false; }; "large": { "alias": "large"; "required": false; }; "block": { "alias": "block"; "required": false; }; "flex": { "alias": "flex"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "right": { "alias": "right"; "required": false; }; "spaceless": { "alias": "spaceless"; "required": false; }; "transparent": { "alias": "transparent"; "required": false; }; "href": { "alias": "href"; "required": false; }; "trackingvalue": { "alias": "trackingvalue"; "required": false; }; "canContinueOnDisabled": { "alias": "canContinueOnDisabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "cssStyle": { "alias": "cssStyle"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "overrideBaseCssClass": { "alias": "overrideBaseCssClass"; "required": false; }; "useRouterLink": { "alias": "useRouterLink"; "required": false; }; "id": { "alias": "id"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, { "clickChange": "clickChange"; }, never, ["*"], false, never>;
270
267
  }
@@ -9,7 +9,7 @@ import { NasComponentBase } from '../../core/base/nas-component.base';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
11
11
  * @description
12
- * Norwegian Input-Text Component | Form Controls
12
+ * Norwegian Input-Text Component | New design | Beta
13
13
  */
14
14
  export declare class InputTextComponent extends NasComponentBase {
15
15
  inputReactive: ElementRef<HTMLElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norwegian/core-components",
3
- "version": "6.32.0",
3
+ "version": "6.33.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.0.0 < 19.0.0",
6
6
  "@angular/core": ">=16.0.0 < 19.0.0"