@indigina/ui-kit 1.1.16 → 1.1.18

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.
@@ -76,5 +76,6 @@ export declare enum KitSvgIcon {
76
76
  MENU = "menu",
77
77
  MESSAGE = "message",
78
78
  RELOAD = "reload",
79
- WINDOW_RESTORE = "window-restore"
79
+ WINDOW_RESTORE = "window-restore",
80
+ BACK_ARROW = "back-arrow"
80
81
  }
@@ -0,0 +1,7 @@
1
+ export declare enum KitBadgeTheme {
2
+ SUCCESS = "success",
3
+ DEFAULT = "default",
4
+ DANGER = "danger",
5
+ PROCESSING = "processing",
6
+ WARNING = "warning"
7
+ }
@@ -0,0 +1,22 @@
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { KitBadgeTheme } from './kit-badge.const';
3
+ import * as i0 from "@angular/core";
4
+ export declare class KitBadgeDirective implements OnInit, OnDestroy {
5
+ private elementRef;
6
+ private renderer;
7
+ /**
8
+ * Defines the content of the badge
9
+ */
10
+ kitBadgeText?: string | number;
11
+ /**
12
+ * Defines the theme color of the badge
13
+ */
14
+ kitBadgeTheme: KitBadgeTheme;
15
+ private badgeElement;
16
+ constructor(elementRef: ElementRef, renderer: Renderer2);
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ private createBadge;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitBadgeDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KitBadgeDirective, "[kitBadge]", never, { "kitBadgeText": { "alias": "kitBadgeText"; "required": false; }; "kitBadgeTheme": { "alias": "kitBadgeTheme"; "required": false; }; }, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kit-badge.directive";
3
+ export declare class KitBadgeModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitBadgeModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitBadgeModule, [typeof i1.KitBadgeDirective], never, [typeof i1.KitBadgeDirective]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<KitBadgeModule>;
7
+ }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.16",
10
+ "version": "1.1.18",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"
package/public-api.d.ts CHANGED
@@ -86,3 +86,6 @@ export { KitCopyTextComponent } from './lib/components/kit-copy-text/kit-copy-te
86
86
  export { KitNavigationMenuModule } from './lib/components/kit-navigation-menu/kit-navigation-menu.module';
87
87
  export { KitNavigationMenuComponent } from './lib/components/kit-navigation-menu/kit-navigation-menu.component';
88
88
  export { KitNavigationMenuItem } from './lib/components/kit-navigation-menu/kit-navigation-menu.model';
89
+ export { KitBadgeModule } from './lib/directives/kit-badge/kit-badge.module';
90
+ export { KitBadgeDirective } from './lib/directives/kit-badge/kit-badge.directive';
91
+ export { KitBadgeTheme } from './lib/directives/kit-badge/kit-badge.const';
@@ -0,0 +1,54 @@
1
+ .kit-badge {
2
+ position: relative;
3
+ display: inline-block;
4
+
5
+ &-content {
6
+ position: absolute;
7
+ top: 0;
8
+ right: 0;
9
+ transform: translate(50%, -50%);
10
+
11
+ &.danger {
12
+ background: var(--ui-kit-color-red-1);
13
+ }
14
+
15
+ &.default {
16
+ background: var(--ui-kit-color-grey-13);
17
+ }
18
+
19
+ &.success {
20
+ background: var(--ui-kit-color-green-1);
21
+ }
22
+
23
+ &.processing {
24
+ background: var(--ui-kit-color-teal);
25
+ }
26
+
27
+ &.warning {
28
+ background: var(--ui-kit-color-orange);
29
+ }
30
+ }
31
+
32
+ &-text {
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ padding: 0 7px;
37
+ height: 20px;
38
+ color: var(--ui-kit-color-white);
39
+ font-size: 12px;
40
+ font-weight: 500;
41
+ border-radius: 16px;
42
+
43
+ &.default {
44
+ color: var(--ui-kit-color-grey-10);
45
+ }
46
+ }
47
+
48
+ &-status {
49
+ width: 6px;
50
+ height: 6px;
51
+ border: 2px solid var(--ui-kit-color-grey-13);
52
+ border-radius: 50%;
53
+ }
54
+ }
@@ -19,3 +19,4 @@
19
19
  @import "theming";
20
20
  @import "components/tooltip";
21
21
  @import "components/toastr";
22
+ @import "components/badge";
@@ -8,8 +8,9 @@
8
8
 
9
9
  /* custom palette */
10
10
  --ui-kit-color-main: #56a2f7;
11
- --ui-kit-color-hover: #002a3a;
12
- --ui-kit-color-selected: #3678c3;
11
+ --ui-kit-color-hover: #3678c3;
12
+ --ui-kit-color-selected: #3678c366;
13
+ --ui-kit-color-active: #002a3a;
13
14
 
14
15
  --ui-kit-color-grey-0: #252b30;
15
16
  --ui-kit-color-grey-2: #a7b2c3;
@@ -27,10 +28,16 @@
27
28
  --ui-kit-color-grey-14: #565963;
28
29
 
29
30
  --ui-kit-color-green: #00b0ad;
31
+ --ui-kit-color-green-1: #39c237;
30
32
 
31
33
  --ui-kit-color-red: #ef3e42;
32
34
  --ui-kit-color-red-20: #f8e0e0;
35
+ --ui-kit-color-red-1: #f5222d;
33
36
 
34
37
  --ui-kit-color-cobalt: #006890;
35
38
  --ui-kit-color-cobalt-darkest: #002a3a;
39
+
40
+ --ui-kit-color-teal: #23afd2;
41
+
42
+ --ui-kit-color-orange: #faad14;
36
43
  }