@indigina/ui-kit 1.1.35 → 1.1.37

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 (29) hide show
  1. package/assets/icons/caret-up.svg +3 -0
  2. package/assets/icons/check-circle.svg +3 -2
  3. package/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +2 -2
  4. package/esm2022/lib/components/kit-button/kit-button.component.mjs +2 -2
  5. package/esm2022/lib/components/kit-card/kit-card.component.mjs +89 -0
  6. package/esm2022/lib/components/kit-card/kit-card.const.mjs +11 -0
  7. package/esm2022/lib/components/kit-card/kit-card.model.mjs +2 -0
  8. package/esm2022/lib/components/kit-card/kit-card.module.mjs +41 -0
  9. package/esm2022/lib/components/kit-input-label/kit-input-label.component.mjs +6 -3
  10. package/esm2022/lib/components/kit-input-label/kit-input-label.module.mjs +7 -3
  11. package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +2 -1
  12. package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
  13. package/esm2022/lib/components/kit-switch/kit-switch.component.mjs +2 -2
  14. package/esm2022/lib/components/kit-text-label/kit-text-label.component.mjs +2 -2
  15. package/esm2022/lib/directives/kit-tooltip/kit-tooltip.directive.mjs +4 -4
  16. package/esm2022/public-api.mjs +5 -1
  17. package/fesm2022/indigina-ui-kit.mjs +208 -81
  18. package/fesm2022/indigina-ui-kit.mjs.map +1 -1
  19. package/lib/components/kit-card/kit-card.component.d.ts +36 -0
  20. package/lib/components/kit-card/kit-card.const.d.ts +9 -0
  21. package/lib/components/kit-card/kit-card.model.d.ts +16 -0
  22. package/lib/components/kit-card/kit-card.module.d.ts +12 -0
  23. package/lib/components/kit-input-label/kit-input-label.component.d.ts +2 -0
  24. package/lib/components/kit-input-label/kit-input-label.module.d.ts +2 -1
  25. package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +4 -0
  28. package/styles/components/tooltip.scss +21 -7
  29. package/styles/theming.scss +6 -1
@@ -0,0 +1,36 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
3
+ import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
4
+ import { KitCard } from './kit-card.model';
5
+ import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.directive';
6
+ import { KitCardTheme } from './kit-card.const';
7
+ import * as i0 from "@angular/core";
8
+ export declare class KitCardComponent {
9
+ /**
10
+ * Defines card data
11
+ */
12
+ data: KitCard | null;
13
+ /**
14
+ * Defines card color theme
15
+ */
16
+ theme: KitCardTheme;
17
+ /**
18
+ * Defines whether the items list will be expanded
19
+ */
20
+ itemsExpanded: boolean;
21
+ /**
22
+ * An action which is emitted when action button clicked
23
+ */
24
+ buttonClicked: EventEmitter<void>;
25
+ /**
26
+ * An action which is emitted when toggle button clicked
27
+ */
28
+ toggleClicked: EventEmitter<boolean>;
29
+ readonly KitSvgIcon: typeof KitSvgIcon;
30
+ readonly KitButtonType: typeof KitButtonType;
31
+ readonly KitButtonKind: typeof KitButtonKind;
32
+ readonly KitTooltipPosition: typeof KitTooltipPosition;
33
+ toggleList(): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitCardComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitCardComponent, "kit-card", never, { "data": { "alias": "data"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "itemsExpanded": { "alias": "itemsExpanded"; "required": false; }; }, { "buttonClicked": "buttonClicked"; "toggleClicked": "toggleClicked"; }, never, never, false, never>;
36
+ }
@@ -0,0 +1,9 @@
1
+ export declare enum KitCardTheme {
2
+ DEFAULT = "default",
3
+ GREEN = "green",
4
+ PINK = "pink",
5
+ PURPLE = "purple",
6
+ ORANGE = "orange",
7
+ TEAL = "teal",
8
+ GREY = "grey"
9
+ }
@@ -0,0 +1,16 @@
1
+ import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
2
+ export interface KitCard {
3
+ title: string;
4
+ titleIcon: KitSvgIcon;
5
+ label: string;
6
+ count: number;
7
+ buttonLabel: string;
8
+ items: KitCardItem[];
9
+ titleIconType?: KitSvgIconType;
10
+ }
11
+ export interface KitCardItem {
12
+ label: string;
13
+ count: number;
14
+ link: string | null | (string | number)[];
15
+ tooltip?: string;
16
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./kit-card.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
5
+ import * as i4 from "../kit-button/kit-button.module";
6
+ import * as i5 from "@angular/router";
7
+ import * as i6 from "../../directives/kit-tooltip/kit-tooltip.module";
8
+ export declare class KitCardModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitCardModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitCardModule, [typeof i1.KitCardComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.KitButtonModule, typeof i5.RouterLink, typeof i6.KitTooltipModule, typeof i2.NgClass], [typeof i1.KitCardComponent]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<KitCardModule>;
12
+ }
@@ -1,5 +1,6 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
3
+ import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.directive';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class KitInputLabelComponent {
5
6
  /**
@@ -15,6 +16,7 @@ export declare class KitInputLabelComponent {
15
16
  */
16
17
  tooltip?: string;
17
18
  readonly KitSvgIcon: typeof KitSvgIcon;
19
+ readonly KitTooltipPosition: typeof KitTooltipPosition;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<KitInputLabelComponent, never>;
19
21
  static ɵcmp: i0.ɵɵComponentDeclaration<KitInputLabelComponent, "kit-input-label", never, { "text": { "alias": "text"; "required": false; }; "for": { "alias": "for"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, false, never>;
20
22
  }
@@ -3,8 +3,9 @@ import * as i1 from "./kit-input-label.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@progress/kendo-angular-label";
5
5
  import * as i4 from "../kit-svg-icon/kit-svg-icon.module";
6
+ import * as i5 from "../../directives/kit-tooltip/kit-tooltip.module";
6
7
  export declare class KitInputLabelModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<KitInputLabelModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitInputLabelModule, [typeof i1.KitInputLabelComponent], [typeof i2.CommonModule, typeof i3.LabelModule, typeof i4.KitSvgIconModule], [typeof i1.KitInputLabelComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitInputLabelModule, [typeof i1.KitInputLabelComponent], [typeof i2.CommonModule, typeof i3.LabelModule, typeof i4.KitSvgIconModule, typeof i5.KitTooltipModule], [typeof i1.KitInputLabelComponent]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<KitInputLabelModule>;
10
11
  }
@@ -80,6 +80,7 @@ export declare enum KitSvgIcon {
80
80
  BACK_ARROW = "back-arrow",
81
81
  USER = "user",
82
82
  CARET_DOWN = "caret-down",
83
+ CARET_UP = "caret-up",
83
84
  INFO_CIRCLE = "info-circle",
84
85
  CHECK_CIRCLE_FILLED = "check-circle-filled",
85
86
  WARNING_CIRCLE_FILLED = "warning-circle-filled",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.35",
10
+ "version": "1.1.37",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"
package/public-api.d.ts CHANGED
@@ -113,3 +113,7 @@ export { KitTabsComponent } from './lib/components/kit-tabs/kit-tabs.component';
113
113
  export { KitTabsType } from './lib/components/kit-tabs/kit-tabs.const';
114
114
  export { KitTabsSelectEvent } from './lib/components/kit-tabs/kit-tabs.model';
115
115
  export { KitTabComponent } from './lib/components/kit-tabs/kit-tab/kit-tab.component';
116
+ export { KitCardModule } from './lib/components/kit-card/kit-card.module';
117
+ export { KitCardComponent } from './lib/components/kit-card/kit-card.component';
118
+ export { KitCard, KitCardItem } from './lib/components/kit-card/kit-card.model';
119
+ export { KitCardTheme } from './lib/components/kit-card/kit-card.const';
@@ -1,11 +1,25 @@
1
- @import "../colors";
2
- @import "../spacings";
1
+ .kit-tooltip {
2
+ .k-popup {
3
+ max-width: 250px;
4
+ border: none;
5
+ box-shadow: none;
6
+ }
3
7
 
4
- .k-tooltip-wrapper {
5
8
  .k-tooltip {
6
- background: $color-primary-cobalt-darkest;
7
- padding: $spacing-24 $spacing-32;
8
- color: $color-white;
9
- border-radius: $spacing-12;
9
+ padding: 6px 10px;
10
+ color: var(--ui-kit-color-grey-10);
11
+ font-size: 12px;
12
+ font-weight: 500;
13
+ line-height: 14px;
14
+ border-radius: 4px;
15
+ border: 1px solid var(--ui-kit-color-grey-11);
16
+ background: var(--ui-kit-color-white);
17
+ box-shadow:
18
+ 0 1px 3px 0 rgba(0 0 0 / 0.10),
19
+ 0 1px 2px 0 rgba(0 0 0 / 0.06);
20
+ }
21
+
22
+ .k-callout {
23
+ display: none;
10
24
  }
11
25
  }
@@ -10,7 +10,7 @@
10
10
  --ui-kit-color-main: #56a2f7;
11
11
  --ui-kit-color-hover: #3678c3;
12
12
  --ui-kit-color-selected: #3678c366;
13
- --ui-kit-color-active: #002a3a;
13
+ --ui-kit-color-active: #3678c3;
14
14
  --ui-kit-color-focus: #56a2f733;
15
15
 
16
16
  --ui-kit-color-grey-0: #252b30;
@@ -31,6 +31,7 @@
31
31
  --ui-kit-color-green: #00b0ad;
32
32
  --ui-kit-color-green-1: #39c237;
33
33
  --ui-kit-color-green-2: #39c23733;
34
+ --ui-kit-color-green-3: #1cb589;
34
35
 
35
36
  --ui-kit-color-red: #ef3e42;
36
37
  --ui-kit-color-red-20: #f8e0e0;
@@ -44,4 +45,8 @@
44
45
 
45
46
  --ui-kit-color-orange: #faad14;
46
47
  --ui-kit-color-orange-1: #faad1433;
48
+
49
+ --ui-kit-color-pink: #cd1159;
50
+
51
+ --ui-kit-color-purple: #7673ce;
47
52
  }