@indigina/ui-kit 1.1.126 → 1.1.127
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/fesm2022/indigina-ui-kit.mjs +119 -119
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-button/kit-button.component.d.ts +5 -4
- package/lib/components/kit-button/kit-button.const.d.ts +6 -2
- package/lib/components/kit-collapsed-list/kit-collapsed-list.model.d.ts +6 -0
- package/lib/components/kit-data-field/kit-data-field.component.d.ts +13 -9
- package/lib/components/kit-data-field/kit-data-field.const.d.ts +4 -0
- package/lib/components/kit-scroll-navigation/kit-scroll-navigation-section/kit-scroll-navigation-section.component.d.ts +11 -6
- package/lib/components/kit-scroll-navigation/kit-scroll-navigation.component.d.ts +13 -5
- package/lib/directives/kit-badge/kit-badge.directive.d.ts +1 -1
- package/lib/directives/kit-tooltip/kit-tooltip.directive.d.ts +7 -5
- package/package.json +1 -1
- package/public-api.d.ts +2 -3
- package/styles/components/button-variants.scss +138 -136
- package/styles/theming.scss +3 -0
- package/lib/components/kit-scroll-navigation/kit-scroll-navigation.module.d.ts +0 -12
- package/lib/directives/kit-badge/kit-badge.module.d.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { KitButtonIconPosition, KitButtonKind, KitButtonType } from './kit-button.const';
|
|
2
|
+
import { EventEmitter, InputSignal } from '@angular/core';
|
|
3
|
+
import { KitButtonIconPosition, KitButtonKind, KitButtonState, KitButtonType } from './kit-button.const';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class KitButtonComponent {
|
|
6
6
|
/**
|
|
@@ -27,6 +27,7 @@ export declare class KitButtonComponent {
|
|
|
27
27
|
* Defines a kind of button (regular, mini, etc.)
|
|
28
28
|
*/
|
|
29
29
|
kind: KitButtonKind;
|
|
30
|
+
readonly state: InputSignal<KitButtonState>;
|
|
30
31
|
/**
|
|
31
32
|
* A place where the icon will be displayed
|
|
32
33
|
*/
|
|
@@ -43,7 +44,7 @@ export declare class KitButtonComponent {
|
|
|
43
44
|
* An action which is emitted as soon as user clicked the button
|
|
44
45
|
*/
|
|
45
46
|
clicked: EventEmitter<MouseEvent>;
|
|
46
|
-
readonly
|
|
47
|
+
readonly kitSvgIconType: typeof KitSvgIconType;
|
|
47
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitButtonComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitButtonComponent, "kit-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconType": { "alias": "iconType"; "required": false; }; "kind": { "alias": "kind"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "clicked": "clicked"; }, never, never, false, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitButtonComponent, "kit-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconType": { "alias": "iconType"; "required": false; }; "kind": { "alias": "kind"; "required": false; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "clicked": "clicked"; }, never, never, false, never>;
|
|
49
50
|
}
|
|
@@ -3,8 +3,7 @@ export declare enum KitButtonType {
|
|
|
3
3
|
GHOST = "ghost",
|
|
4
4
|
TEXT = "text",
|
|
5
5
|
LINK = "link",
|
|
6
|
-
DASHED = "dashed"
|
|
7
|
-
SUCCESS = "success"
|
|
6
|
+
DASHED = "dashed"
|
|
8
7
|
}
|
|
9
8
|
export declare enum KitButtonKind {
|
|
10
9
|
LARGE = "large",
|
|
@@ -15,3 +14,8 @@ export declare enum KitButtonIconPosition {
|
|
|
15
14
|
LEADING = "leading",
|
|
16
15
|
TRAILING = "trailing"
|
|
17
16
|
}
|
|
17
|
+
export declare enum KitButtonState {
|
|
18
|
+
DEFAULT = "default",
|
|
19
|
+
SUCCESS = "success",
|
|
20
|
+
WARNING = "warning"
|
|
21
|
+
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { KitButtonState } from '../kit-button/kit-button.const';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
1
3
|
export interface KitCollapsedListItem {
|
|
2
4
|
text: string;
|
|
3
5
|
value: string;
|
|
6
|
+
icon?: KitSvgIcon;
|
|
7
|
+
state?: KitButtonState;
|
|
8
|
+
tooltipText?: string;
|
|
9
|
+
badgeCount?: number;
|
|
4
10
|
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { KitDataFieldState } from './kit-data-field.const';
|
|
3
|
+
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
+
import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.const';
|
|
1
5
|
import * as i0 from "@angular/core";
|
|
2
6
|
export declare class KitDataFieldComponent {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
value?: string | number | null;
|
|
7
|
+
readonly label: InputSignal<string>;
|
|
8
|
+
readonly value: InputSignal<string | number | null | undefined>;
|
|
9
|
+
readonly state: InputSignal<KitDataFieldState>;
|
|
10
|
+
readonly tooltipText: InputSignal<string | undefined>;
|
|
11
|
+
readonly icon: InputSignal<KitSvgIcon | undefined>;
|
|
12
|
+
readonly iconType: InputSignal<KitSvgIconType | undefined>;
|
|
11
13
|
readonly defaultValue: string;
|
|
14
|
+
readonly kitSvgIconType: typeof KitSvgIconType;
|
|
15
|
+
readonly kitTooltipPosition: typeof KitTooltipPosition;
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDataFieldComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDataFieldComponent, "kit-data-field", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDataFieldComponent, "kit-data-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "tooltipText": { "alias": "tooltipText"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
18
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { ElementRef, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, TemplateRef } from '@angular/core';
|
|
2
|
+
import { KitButtonState } from '../../kit-button/kit-button.const';
|
|
3
|
+
import { KitSvgIcon } from '../../kit-svg-icon/kit-svg-icon.const';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class KitScrollNavigationSectionComponent {
|
|
4
|
-
/**
|
|
5
|
-
* Defines the navigation item title
|
|
6
|
-
*/
|
|
5
|
+
export declare class KitScrollNavigationSectionComponent implements OnChanges {
|
|
7
6
|
title: string;
|
|
7
|
+
buttonState?: KitButtonState;
|
|
8
|
+
buttonIcon?: KitSvgIcon;
|
|
9
|
+
tooltipText?: string;
|
|
10
|
+
badgeCount?: number;
|
|
11
|
+
propertyChanged?: EventEmitter<void>;
|
|
8
12
|
sectionTemplate: TemplateRef<HTMLElement> | null;
|
|
9
13
|
sectionContent: ElementRef | null;
|
|
14
|
+
ngOnChanges(): void;
|
|
10
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitScrollNavigationSectionComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitScrollNavigationSectionComponent, "kit-scroll-navigation-section", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitScrollNavigationSectionComponent, "kit-scroll-navigation-section", never, { "title": { "alias": "title"; "required": false; }; "buttonState": { "alias": "buttonState"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "badgeCount": { "alias": "badgeCount"; "required": false; }; }, { "propertyChanged": "propertyChanged"; }, never, ["*"], true, never>;
|
|
12
17
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, InputSignal, QueryList, WritableSignal } from '@angular/core';
|
|
2
2
|
import { KitScrollNavigationSectionComponent } from './kit-scroll-navigation-section/kit-scroll-navigation-section.component';
|
|
3
3
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
|
-
import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
|
|
4
|
+
import { KitButtonIconPosition, KitButtonKind, KitButtonState, KitButtonType } from '../kit-button/kit-button.const';
|
|
5
5
|
import { KitCollapsedListItem } from '../kit-collapsed-list/kit-collapsed-list.model';
|
|
6
6
|
import { KitCollapsedListComponent } from '../kit-collapsed-list/kit-collapsed-list.component';
|
|
7
|
+
import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.const';
|
|
8
|
+
import { KitBadgeTheme } from '../../directives/kit-badge/kit-badge.const';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class KitScrollNavigationComponent implements AfterViewInit {
|
|
9
11
|
readonly isNavigationBtnDisabled: InputSignal<boolean>;
|
|
@@ -11,17 +13,23 @@ export declare class KitScrollNavigationComponent implements AfterViewInit {
|
|
|
11
13
|
sections: QueryList<KitScrollNavigationSectionComponent> | null;
|
|
12
14
|
content: ElementRef | null;
|
|
13
15
|
collapsedList: KitCollapsedListComponent | null;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
16
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
17
|
+
readonly kitButtonType: typeof KitButtonType;
|
|
18
|
+
readonly kitButtonKind: typeof KitButtonKind;
|
|
19
|
+
readonly kitButtonState: typeof KitButtonState;
|
|
20
|
+
readonly kitButtonIconPosition: typeof KitButtonIconPosition;
|
|
21
|
+
readonly kitTooltipPosition: typeof KitTooltipPosition;
|
|
22
|
+
readonly kitBadgeTheme: typeof KitBadgeTheme;
|
|
17
23
|
protected readonly collapsedListItems: WritableSignal<KitCollapsedListItem[]>;
|
|
18
24
|
private disableScrollUpdates;
|
|
19
25
|
get currentVisibleItem(): KitCollapsedListItem | null;
|
|
20
26
|
ngAfterViewInit(): void;
|
|
21
27
|
onSectionScroll(): void;
|
|
22
28
|
scrollToSection(selectedItem: KitCollapsedListItem): void;
|
|
29
|
+
private updateListItems;
|
|
30
|
+
private handleSectionChanges;
|
|
23
31
|
private setLastSectionMinHeight;
|
|
24
32
|
private calculateLastSectionMinHeight;
|
|
25
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitScrollNavigationComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitScrollNavigationComponent, "kit-scroll-navigation", never, { "isNavigationBtnDisabled": { "alias": "isNavigationBtnDisabled"; "required": false; "isSignal": true; }; "dropdownDefaultText": { "alias": "dropdownDefaultText"; "required": false; "isSignal": true; }; }, {}, ["sections"], never,
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitScrollNavigationComponent, "kit-scroll-navigation", never, { "isNavigationBtnDisabled": { "alias": "isNavigationBtnDisabled"; "required": false; "isSignal": true; }; "dropdownDefaultText": { "alias": "dropdownDefaultText"; "required": false; "isSignal": true; }; }, {}, ["sections"], never, true, never>;
|
|
27
35
|
}
|
|
@@ -23,5 +23,5 @@ export declare class KitBadgeDirective implements OnDestroy {
|
|
|
23
23
|
private updateBadge;
|
|
24
24
|
private removeBadge;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitBadgeDirective, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KitBadgeDirective, "[kitBadge]", never, { "kitBadgeText": { "alias": "kitBadgeText"; "required": false; "isSignal": true; }; "kitBadgeTheme": { "alias": "kitBadgeTheme"; "required": false; "isSignal": true; }; "kitBadgeVisible": { "alias": "kitBadgeVisible"; "required": false; "isSignal": true; }; }, {}, never, never,
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KitBadgeDirective, "[kitBadge]", never, { "kitBadgeText": { "alias": "kitBadgeText"; "required": false; "isSignal": true; }; "kitBadgeTheme": { "alias": "kitBadgeTheme"; "required": false; "isSignal": true; }; "kitBadgeVisible": { "alias": "kitBadgeVisible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
27
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { InputSignal, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { TooltipDirective } from '@progress/kendo-angular-tooltip';
|
|
3
3
|
import { KitTooltipPosition } from './kit-tooltip.const';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class KitTooltipDirective extends TooltipDirective implements OnInit {
|
|
6
|
-
kitTooltipPosition: KitTooltipPosition
|
|
7
|
-
kitTooltipFilter: string
|
|
8
|
-
kitTooltipTemplateRef
|
|
6
|
+
readonly kitTooltipPosition: InputSignal<KitTooltipPosition>;
|
|
7
|
+
readonly kitTooltipFilter: InputSignal<string>;
|
|
8
|
+
readonly kitTooltipTemplateRef: InputSignal<TemplateRef<HTMLElement> | undefined>;
|
|
9
|
+
readonly kitTooltipVisible: InputSignal<boolean>;
|
|
9
10
|
constructor();
|
|
10
11
|
ngOnInit(): void;
|
|
12
|
+
private getShowOption;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitTooltipDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KitTooltipDirective, "[kitTooltip]", never, { "kitTooltipPosition": { "alias": "kitTooltipPosition"; "required": false; }; "kitTooltipFilter": { "alias": "kitTooltipFilter"; "required": false; }; "kitTooltipTemplateRef": { "alias": "kitTooltipTemplateRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KitTooltipDirective, "[kitTooltip]", never, { "kitTooltipPosition": { "alias": "kitTooltipPosition"; "required": false; "isSignal": true; }; "kitTooltipFilter": { "alias": "kitTooltipFilter"; "required": false; "isSignal": true; }; "kitTooltipTemplateRef": { "alias": "kitTooltipTemplateRef"; "required": false; "isSignal": true; }; "kitTooltipVisible": { "alias": "kitTooltipVisible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
15
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { KitButtonComponent } from './lib/components/kit-button/kit-button.component';
|
|
2
2
|
export { KitButtonModule } from './lib/components/kit-button/kit-button.module';
|
|
3
|
-
export { KitButtonType, KitButtonKind, KitButtonIconPosition } from './lib/components/kit-button/kit-button.const';
|
|
3
|
+
export { KitButtonType, KitButtonKind, KitButtonIconPosition, KitButtonState } from './lib/components/kit-button/kit-button.const';
|
|
4
4
|
export { KitSvgSpriteModule } from './lib/components/kit-svg-sprite/kit-svg-sprite.module';
|
|
5
5
|
export { KitSvgSpriteComponent } from './lib/components/kit-svg-sprite/kit-svg-sprite.component';
|
|
6
6
|
export { KitSvgIconComponent } from './lib/components/kit-svg-icon/kit-svg-icon.component';
|
|
@@ -96,7 +96,6 @@ export { KitNavigationMenuComponent } from './lib/components/kit-navigation-menu
|
|
|
96
96
|
export { KitNavigationMenuSubmenuComponent, } from './lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component';
|
|
97
97
|
export { KitNavigationMenuItem, KitNavigationMenuAppItem } from './lib/components/kit-navigation-menu/kit-navigation-menu.model';
|
|
98
98
|
export { KitNavigationMenuService } from './lib/components/kit-navigation-menu/kit-navigation-menu.service';
|
|
99
|
-
export { KitBadgeModule } from './lib/directives/kit-badge/kit-badge.module';
|
|
100
99
|
export { KitBadgeDirective } from './lib/directives/kit-badge/kit-badge.directive';
|
|
101
100
|
export { KitBadgeTheme } from './lib/directives/kit-badge/kit-badge.const';
|
|
102
101
|
export { KitAvatarModule } from './lib/components/kit-avatar/kit-avatar.module';
|
|
@@ -144,7 +143,6 @@ export { KitTileLayoutComponent } from './lib/components/kit-tilelayout/kit-tile
|
|
|
144
143
|
export { KitTileLayoutModule } from './lib/components/kit-tilelayout/kit-tilelayout.module';
|
|
145
144
|
export { KitTileLayoutItemComponent } from './lib/components/kit-tilelayout/kit-tilelayout-item.component';
|
|
146
145
|
export { KitTileLayoutColumnsConfig } from './lib/components/kit-tilelayout/kit-tilelayout.interface';
|
|
147
|
-
export { KitScrollNavigationModule } from './lib/components/kit-scroll-navigation/kit-scroll-navigation.module';
|
|
148
146
|
export { KitScrollNavigationComponent } from './lib/components/kit-scroll-navigation/kit-scroll-navigation.component';
|
|
149
147
|
export { KitScrollNavigationSectionComponent, } from './lib/components/kit-scroll-navigation/kit-scroll-navigation-section/kit-scroll-navigation-section.component';
|
|
150
148
|
export { KitEntitySectionComponent } from './lib/components/kit-entity-section/kit-entity-section.component';
|
|
@@ -159,6 +157,7 @@ export { KitFileCardComponent } from './lib/components/kit-file-card/kit-file-ca
|
|
|
159
157
|
export { KitFileCardModule } from './lib/components/kit-file-card/kit-file-card.module';
|
|
160
158
|
export { KitFileCardMessagesComponent } from './lib/components/kit-file-card/kit-file-card-messages.component';
|
|
161
159
|
export { KitDataFieldComponent } from './lib/components/kit-data-field/kit-data-field.component';
|
|
160
|
+
export { KitDataFieldState } from './lib/components/kit-data-field/kit-data-field.const';
|
|
162
161
|
export { KitSearchBarModule } from './lib/components/kit-search-bar/kit-search-bar.module';
|
|
163
162
|
export { KitSearchBarComponent } from './lib/components/kit-search-bar/kit-search-bar.component';
|
|
164
163
|
export { KitEmptySectionComponent } from './lib/components/kit-empty-section/kit-empty-section.component';
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
@function get-state-color($state) {
|
|
5
|
+
@return map.get((
|
|
6
|
+
default: (var(--ui-kit-color-main), var(--ui-kit-color-hover), var(--ui-kit-color-main), var(--ui-kit-color-background)),
|
|
7
|
+
success: (var(--ui-kit-color-green-1), var(--ui-kit-color-green-6), var(--ui-kit-color-green-7), var(--ui-kit-color-green-5)),
|
|
8
|
+
warning: (var(--ui-kit-color-orange), var(--ui-kit-color-orange-6), var(--ui-kit-color-orange-7), var(--ui-kit-color-orange-4)),
|
|
9
|
+
), $state)
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
@mixin setIconColor($color) {
|
|
2
13
|
&.fill {
|
|
3
14
|
fill: $color;
|
|
@@ -10,200 +21,191 @@
|
|
|
10
21
|
}
|
|
11
22
|
}
|
|
12
23
|
|
|
13
|
-
@mixin
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.kit-button-icon {
|
|
21
|
-
display: block;
|
|
22
|
-
}
|
|
24
|
+
@mixin applyStateColors($state) {
|
|
25
|
+
.#{$state} {
|
|
26
|
+
&.primary {
|
|
27
|
+
color: var(--ui-kit-color-white);
|
|
28
|
+
background: list.nth(get-state-color($state), 1);
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
transition: none;
|
|
28
|
-
|
|
29
|
-
&:focus {
|
|
30
|
-
box-shadow: none;
|
|
31
|
-
}
|
|
30
|
+
&:hover {
|
|
31
|
+
background: list.nth(get-state-color($state), 2);
|
|
32
|
+
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
&.active,
|
|
35
|
+
&:active {
|
|
36
|
+
background: list.nth(get-state-color($state), 1);
|
|
37
|
+
}
|
|
37
38
|
|
|
38
39
|
.kit-button-icon {
|
|
39
|
-
@include setIconColor(var(--ui-kit-color-
|
|
40
|
+
@include setIconColor(var(--ui-kit-color-white));
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
|
-
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
&.ghost {
|
|
45
|
+
color: var(--ui-kit-color-grey-10);
|
|
46
|
+
@if $state == warning {
|
|
47
|
+
border-color: var(--ui-kit-color-orange);
|
|
48
|
+
background: var(--ui-kit-color-orange-4);
|
|
49
|
+
} @else {
|
|
50
|
+
border-color: var(--ui-kit-color-grey-11);
|
|
51
|
+
background: var(--ui-kit-color-white);
|
|
52
|
+
}
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
54
|
+
&:hover {
|
|
55
|
+
color: list.nth(get-state-color($state), 2);
|
|
56
|
+
border-color: list.nth(get-state-color($state), 2);
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
.kit-button-icon {
|
|
59
|
+
@include setIconColor(list.nth(get-state-color($state), 2));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
&.active,
|
|
64
|
+
&:active {
|
|
65
|
+
color: list.nth(get-state-color($state), 3);
|
|
66
|
+
border-color: list.nth(get-state-color($state), 3);
|
|
67
|
+
background: list.nth(get-state-color($state), 4);
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
.kit-button-icon {
|
|
70
|
+
@include setIconColor(list.nth(get-state-color($state), 3));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
70
73
|
|
|
71
74
|
.kit-button-icon {
|
|
72
|
-
@include setIconColor(var(--ui-kit-color-
|
|
75
|
+
@include setIconColor(var(--ui-kit-color-grey-10));
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
&.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
border-color: var(--ui-kit-color-main);
|
|
80
|
-
background: var(--ui-kit-color-background);
|
|
79
|
+
&.text {
|
|
80
|
+
color: var(--ui-kit-color-grey-10);
|
|
81
|
+
background: none;
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
&:disabled {
|
|
84
|
+
border: none;
|
|
85
|
+
background: none;
|
|
84
86
|
}
|
|
85
|
-
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
&:hover,
|
|
89
|
+
&.active,
|
|
90
|
+
&:active {
|
|
91
|
+
background: var(--ui-kit-color-grey-13);
|
|
92
|
+
}
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
background: none;
|
|
94
|
+
&:hover {
|
|
95
|
+
color: list.nth(get-state-color($state), 2);
|
|
95
96
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
.kit-button-icon {
|
|
98
|
+
@include setIconColor(list.nth(get-state-color($state), 2));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
background: var(--ui-kit-color-grey-13);
|
|
105
|
-
}
|
|
102
|
+
&.active,
|
|
103
|
+
&:active {
|
|
104
|
+
color: var(--ui-kit-color-grey-10);
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
.kit-button-icon {
|
|
107
|
+
@include setIconColor(var(--ui-kit-color-grey-10));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
109
110
|
|
|
110
111
|
.kit-button-icon {
|
|
111
|
-
@include setIconColor(var(--ui-kit-color-
|
|
112
|
+
@include setIconColor(var(--ui-kit-color-grey-10));
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
&.
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
&.link {
|
|
117
|
+
color: list.nth(get-state-color($state), 1);
|
|
118
|
+
background: none;
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
&:disabled {
|
|
121
|
+
border: none;
|
|
122
|
+
background: none;
|
|
121
123
|
}
|
|
122
|
-
}
|
|
123
124
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
}
|
|
125
|
+
&:hover {
|
|
126
|
+
color: list.nth(get-state-color($state), 2);
|
|
128
127
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
.kit-button-icon {
|
|
129
|
+
@include setIconColor(list.nth(get-state-color($state), 2));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
133
|
+
&.active,
|
|
134
|
+
&:active {
|
|
135
|
+
color: list.nth(get-state-color($state), 1);
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
.kit-button-icon {
|
|
138
|
+
@include setIconColor(list.nth(get-state-color($state), 1));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
140
141
|
|
|
141
142
|
.kit-button-icon {
|
|
142
|
-
@include setIconColor(
|
|
143
|
+
@include setIconColor(list.nth(get-state-color($state), 1));
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
|
|
146
|
-
&.
|
|
147
|
-
|
|
148
|
-
color:
|
|
147
|
+
&.dashed {
|
|
148
|
+
color: list.nth(get-state-color($state), 1);
|
|
149
|
+
border-color: list.nth(get-state-color($state), 1);
|
|
150
|
+
border-style: dashed;
|
|
151
|
+
background: var(--ui-kit-color-white);
|
|
149
152
|
|
|
150
|
-
|
|
151
|
-
|
|
153
|
+
&:disabled {
|
|
154
|
+
border-style: dashed;
|
|
152
155
|
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.kit-button-icon {
|
|
156
|
-
@include setIconColor(var(--ui-kit-color-main));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
156
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
border-style: dashed;
|
|
164
|
-
background: var(--ui-kit-color-white);
|
|
157
|
+
&:hover {
|
|
158
|
+
color: list.nth(get-state-color($state), 2);
|
|
159
|
+
border-color: list.nth(get-state-color($state), 2);
|
|
165
160
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
.kit-button-icon {
|
|
162
|
+
@include setIconColor(list.nth(get-state-color($state), 2));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
169
165
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
166
|
+
&.active,
|
|
167
|
+
&:active {
|
|
168
|
+
color: list.nth(get-state-color($state), 1);
|
|
169
|
+
border-color: list.nth(get-state-color($state), 1);
|
|
173
170
|
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
.kit-button-icon {
|
|
172
|
+
@include setIconColor(list.nth(get-state-color($state), 1));
|
|
173
|
+
}
|
|
176
174
|
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.active,
|
|
180
|
-
&:active {
|
|
181
|
-
color: var(--ui-kit-color-main);
|
|
182
|
-
border-color: var(--ui-kit-color-main);
|
|
183
175
|
|
|
184
176
|
.kit-button-icon {
|
|
185
|
-
@include setIconColor(
|
|
177
|
+
@include setIconColor(list.nth(get-state-color($state), 1));
|
|
186
178
|
}
|
|
187
179
|
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
188
182
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
183
|
+
@mixin styles {
|
|
184
|
+
@include applyStateColors(default);
|
|
185
|
+
@include applyStateColors(success);
|
|
186
|
+
@include applyStateColors(warning);
|
|
187
|
+
|
|
188
|
+
.k-button-text {
|
|
189
|
+
display: flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
gap: 8px;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
.kit-button-icon {
|
|
195
|
+
display: block;
|
|
196
|
+
}
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
.k-button {
|
|
199
|
+
font-weight: 400;
|
|
200
|
+
border: 1px solid transparent;
|
|
201
|
+
transition: none;
|
|
201
202
|
|
|
202
|
-
&:
|
|
203
|
-
|
|
203
|
+
&:focus {
|
|
204
|
+
box-shadow: none;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
&:disabled {
|
|
208
|
+
color: var(--ui-kit-color-grey-12);
|
|
207
209
|
border: 1px solid var(--ui-kit-color-grey-11);
|
|
208
210
|
background: var(--ui-kit-color-grey-13);
|
|
209
211
|
|
package/styles/theming.scss
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
--ui-kit-color-green-4: #e0f2ed;
|
|
39
39
|
--ui-kit-color-green-5: #e5ffe5;
|
|
40
40
|
--ui-kit-color-green-6: #62dd5f;
|
|
41
|
+
--ui-kit-color-green-7: #17aa14;
|
|
41
42
|
|
|
42
43
|
--ui-kit-color-red: #ef3e42;
|
|
43
44
|
--ui-kit-color-red-20: #f8e0e0;
|
|
@@ -59,6 +60,8 @@
|
|
|
59
60
|
--ui-kit-color-orange-3: #fbecde;
|
|
60
61
|
--ui-kit-color-orange-4: #fff6e4;
|
|
61
62
|
--ui-kit-color-orange-5: #fd9638;
|
|
63
|
+
--ui-kit-color-orange-6: #fcc862;
|
|
64
|
+
--ui-kit-color-orange-7: #e39700;
|
|
62
65
|
|
|
63
66
|
--ui-kit-color-pink: #cd1159;
|
|
64
67
|
--ui-kit-color-pink-1: #fae7ee;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./kit-scroll-navigation.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "../kit-button/kit-button.module";
|
|
5
|
-
import * as i4 from "../kit-svg-icon/kit-svg-icon.module";
|
|
6
|
-
import * as i5 from "./kit-scroll-navigation-section/kit-scroll-navigation-section.component";
|
|
7
|
-
import * as i6 from "../kit-collapsed-list/kit-collapsed-list.component";
|
|
8
|
-
export declare class KitScrollNavigationModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KitScrollNavigationModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitScrollNavigationModule, [typeof i1.KitScrollNavigationComponent], [typeof i2.CommonModule, typeof i3.KitButtonModule, typeof i4.KitSvgIconModule, typeof i5.KitScrollNavigationSectionComponent, typeof i6.KitCollapsedListComponent], [typeof i1.KitScrollNavigationComponent, typeof i5.KitScrollNavigationSectionComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<KitScrollNavigationModule>;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|