@kigi/components 1.18.0-beta.3 → 1.18.0-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.18.0-beta.3",
3
+ "version": "1.18.0-beta.4",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -21,4 +21,5 @@ export interface ConfirmAlert {
21
21
  blockSpecialChars?: boolean
22
22
  buttons?: ButtonConfirmModal[]
23
23
  focusClose?: boolean
24
+ showCloseButton?: boolean
24
25
  }
@@ -56,6 +56,7 @@
56
56
  </svg>
57
57
  </div>
58
58
  <div class="information-wrapper">
59
+ <button ng-if="$ctrl.config.showCloseButton" class="close-button" ng-click="$ctrl.dismiss()">x</button>
59
60
  <h3>{{$ctrl.config.title}}</h3>
60
61
  <p ng-if="$ctrl.config.message"
61
62
  class="message">{{$ctrl.config.message}}</p>
@@ -57,6 +57,23 @@
57
57
  text-align: center;
58
58
  }
59
59
  }
60
+
61
+ .close-button {
62
+ position: absolute;
63
+ top: 10px;
64
+ right: 10px;
65
+
66
+ border: none;
67
+ background-color: transparent;
68
+ font-weight: bold;
69
+ color: var(--neutral2);
70
+ border-radius: 999px;
71
+ transition:all .500ms ease-in-out;
72
+
73
+ &:hover {
74
+ box-shadow:1px 1px 5px var(--neutral2);
75
+ }
76
+ }
60
77
  }
61
78
 
62
79
  .mbg-alert-icon {