@indigina/ui-kit 1.1.36 → 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.
- package/assets/icons/caret-up.svg +3 -0
- package/assets/icons/check-circle.svg +3 -2
- package/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/kit-button/kit-button.component.mjs +2 -2
- package/esm2022/lib/components/kit-card/kit-card.component.mjs +89 -0
- package/esm2022/lib/components/kit-card/kit-card.const.mjs +11 -0
- package/esm2022/lib/components/kit-card/kit-card.model.mjs +2 -0
- package/esm2022/lib/components/kit-card/kit-card.module.mjs +41 -0
- package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +2 -1
- package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
- package/esm2022/lib/components/kit-switch/kit-switch.component.mjs +2 -2
- package/esm2022/lib/components/kit-text-label/kit-text-label.component.mjs +2 -2
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/indigina-ui-kit.mjs +135 -12
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-card/kit-card.component.d.ts +36 -0
- package/lib/components/kit-card/kit-card.const.d.ts +9 -0
- package/lib/components/kit-card/kit-card.model.d.ts +16 -0
- package/lib/components/kit-card/kit-card.module.d.ts +12 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- 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,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
|
+
}
|
|
@@ -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
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';
|
package/styles/theming.scss
CHANGED
|
@@ -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: #
|
|
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
|
}
|