From 2991fdadf2447fc8b880f5e4678470f698811fc5 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Sat, 30 Sep 2023 21:05:31 +0200 Subject: [PATCH] feat: update bootstrap italia version Closes #271 --- package-lock.json | 14 ++++++++++---- package.json | 2 +- projects/design-angular-kit/package.json | 4 ++-- .../design-angular-kit/src/lib/interfaces/core.ts | 2 +- .../alert-color-example.component.html | 4 ++++ 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 66e68386..42b2cdd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@angular/router": "^16.1.3", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", - "bootstrap-italia": "^2.6.0", + "bootstrap-italia": "^2.7.0", "core-js": "^3.31.1", "fp-ts": "^2.16.0", "io-ts": "^2.2.20", @@ -6907,9 +6907,9 @@ } }, "node_modules/bootstrap-italia": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/bootstrap-italia/-/bootstrap-italia-2.6.0.tgz", - "integrity": "sha512-jyIG/r7kNJlmtJ6ESqsxhCllKptepRdswjD4kSrhGXtYTd1zO+ukMFxWVdjfa84AUxMBfKyE5BRS6UtxT03r/A==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/bootstrap-italia/-/bootstrap-italia-2.7.0.tgz", + "integrity": "sha512-vi0G+chYxXxgYMzefq4UK1VZ9Wcnw9yqTSRSWqNMXvBywEBBiVE2MRhGmNrrpLWLVqselqmGHK3F9zthhEocHQ==", "dependencies": { "@popperjs/core": "^2.11.2", "@splidejs/splide": "^3.6.12", @@ -6917,6 +6917,7 @@ "accessible-autocomplete": "^2.0.4", "animejs": "^3.2.1", "bootstrap": "5.2.3", + "design-tokens-italia": "^1.1.1", "just-validate": "^3.5.1", "masonry-layout": "^4.2.2", "progressbar.js": "^1.1.0", @@ -9028,6 +9029,11 @@ "resolved": "https://registry.npmjs.org/desandro-matches-selector/-/desandro-matches-selector-2.0.2.tgz", "integrity": "sha512-+1q0nXhdzg1IpIJdMKalUwvvskeKnYyEe3shPRwedNcWtnhEKT3ZxvFjzywHDeGcKViIxTCAoOYQWP1qD7VNyg==" }, + "node_modules/design-tokens-italia": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/design-tokens-italia/-/design-tokens-italia-1.1.1.tgz", + "integrity": "sha512-WCDGP1ASq8s0MlwoJLhBGBl/kX/4PFU93xEBXsFELyYgdaDQMg9qZJH379f1HktMNWnLmKCBqd8qZju/o+0wVA==" + }, "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", diff --git a/package.json b/package.json index fc96f67f..c3ef229d 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@angular/router": "^16.1.3", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", - "bootstrap-italia": "^2.6.0", + "bootstrap-italia": "^2.7.0", "core-js": "^3.31.1", "fp-ts": "^2.16.0", "io-ts": "^2.2.20", diff --git a/projects/design-angular-kit/package.json b/projects/design-angular-kit/package.json index e02231f9..2b80c685 100644 --- a/projects/design-angular-kit/package.json +++ b/projects/design-angular-kit/package.json @@ -37,6 +37,6 @@ "@angular/platform-browser": "^16.0.0", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", - "bootstrap-italia": "^2.6.0" + "bootstrap-italia": "^2.7.0" } -} \ No newline at end of file +} diff --git a/projects/design-angular-kit/src/lib/interfaces/core.ts b/projects/design-angular-kit/src/lib/interfaces/core.ts index 6c52ec5a..dbdc1172 100644 --- a/projects/design-angular-kit/src/lib/interfaces/core.ts +++ b/projects/design-angular-kit/src/lib/interfaces/core.ts @@ -1,6 +1,6 @@ import { IconName } from './icon'; -export type AlertColor = 'info' | 'success' | 'warning' | 'danger'; +export type AlertColor = 'primary' | 'info' | 'success' | 'warning' | 'danger'; export type ButtonColor = 'primary' diff --git a/src/app/alert/alert-color-example/alert-color-example.component.html b/src/app/alert/alert-color-example/alert-color-example.component.html index f460ac98..9331f612 100644 --- a/src/app/alert/alert-color-example/alert-color-example.component.html +++ b/src/app/alert/alert-color-example/alert-color-example.component.html @@ -3,6 +3,10 @@

Esempi

+ + Questo è un alert di tipo "primary". + + Questo è un alert di tipo "info".