@koobiq/components 18.7.1 → 18.9.0
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/accordion/accordion-tokens.scss +1 -13
- package/alert/alert-tokens.scss +1 -36
- package/autocomplete/autocomplete-tokens.scss +1 -8
- package/autocomplete/autocomplete.scss +21 -1
- package/badge/badge-tokens.scss +1 -71
- package/button/button-tokens.scss +1 -140
- package/button-toggle/button-toggle-tokens.scss +1 -32
- package/checkbox/checkbox-tokens.scss +1 -50
- package/code-block/actionbar.component.d.ts +2 -2
- package/code-block/code-block-content.d.ts +28 -0
- package/code-block/code-block-tokens.scss +1 -139
- package/code-block/code-block.component.d.ts +3 -3
- package/code-block/code-block.module.d.ts +3 -3
- package/code-block/code-block.types.d.ts +10 -2
- package/core/forms/forms-tokens.scss +1 -8
- package/core/option/_option-theme.scss +10 -0
- package/core/option/option-tokens.scss +4 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +1 -50
- package/core/styles/_koobiq-theme.scss +3 -2
- package/core/styles/common/_list.scss +6 -8
- package/core/styles/common/_select.scss +3 -2
- package/core/styles/theming/scrollbar-tokens.scss +1 -16
- package/datepicker/datepicker-tokens.scss +1 -21
- package/divider/divider-tokens.scss +1 -7
- package/dl/dl-tokens.scss +1 -8
- package/dropdown/_dropdown-theme.scss +10 -0
- package/dropdown/dropdown-tokens.scss +5 -8
- package/dropdown/dropdown.scss +22 -3
- package/empty-state/empty-state-tokens.scss +1 -8
- package/esm2022/accordion/accordion-trigger.component.mjs +7 -19
- package/esm2022/accordion/accordion.component.mjs +2 -2
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +4 -3
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +5 -11
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/code-block/actionbar.component.mjs +1 -1
- package/esm2022/code-block/code-block-content.mjs +382 -0
- package/esm2022/code-block/code-block.component.mjs +5 -5
- package/esm2022/code-block/code-block.module.mjs +7 -27
- package/esm2022/code-block/code-block.types.mjs +1 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +3 -3
- package/esm2022/datepicker/datepicker-toggle.component.mjs +3 -3
- package/esm2022/datepicker/datepicker.component.mjs +5 -4
- package/esm2022/datepicker/month-view.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +2 -2
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/empty-state/empty-state.component.mjs +2 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +3 -3
- package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
- package/esm2022/form-field/cleaner.mjs +3 -9
- package/esm2022/form-field/form-field.mjs +4 -4
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +5 -13
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +2 -2
- package/esm2022/icon/icon.component.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +7 -15
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
- package/esm2022/markdown/markdown.component.mjs +7 -21
- package/esm2022/modal/modal.component.mjs +5 -4
- package/esm2022/modal/modal.directive.mjs +5 -17
- package/esm2022/navbar/navbar-item.component.mjs +3 -3
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +5 -13
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/progress-spinner/progress-spinner.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +3 -3
- package/esm2022/risk-level/risk-level.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +49 -16
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +7 -29
- package/esm2022/tabs/paginated-tab-header.mjs +32 -30
- package/esm2022/tabs/public-api.mjs +8 -8
- package/esm2022/tabs/tab-body.component.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +34 -52
- package/esm2022/tabs/tab-header.component.mjs +17 -35
- package/esm2022/tabs/tab-nav-bar.mjs +292 -0
- package/esm2022/tabs/tab.component.mjs +6 -5
- package/esm2022/tabs/tabs.module.mjs +39 -45
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tree/toggle.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +3 -3
- package/esm2022/tree/tree-selection.component.mjs +2 -2
- package/esm2022/tree/tree.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +45 -9
- package/fesm2022/koobiq-components-accordion.mjs +8 -20
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +5 -4
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +4 -10
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +389 -31
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +8 -8
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +12 -11
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +2 -2
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +4 -4
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +2 -2
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +11 -25
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +6 -6
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +8 -16
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +6 -20
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +8 -19
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +8 -16
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +2 -2
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +2 -2
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +49 -16
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +8 -30
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +349 -208
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +4 -4
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +4 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +45 -9
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +8 -8
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/file-upload-tokens.scss +1 -52
- package/form-field/form-field-tokens.scss +1 -29
- package/form-field/form-field.scss +5 -6
- package/form-field/hint-tokens.scss +1 -22
- package/icon/icon-button-tokens.scss +1 -30
- package/icon/icon-item-tokens.scss +1 -26
- package/icon/icon-tokens.scss +2 -10
- package/link/_link-theme.scss +27 -5
- package/link/link-tokens.scss +1 -21
- package/list/_list-theme.scss +10 -0
- package/list/list-tokens.scss +17 -42
- package/loader-overlay/loader-overlay-tokens.scss +1 -12
- package/markdown/markdown-tokens.scss +1 -34
- package/modal/modal-tokens.scss +1 -12
- package/navbar/navbar-tokens.scss +1 -28
- package/package.json +7 -9
- package/popover/popover-tokens.scss +1 -12
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/progress-bar-tokens.scss +1 -10
- package/progress-spinner/progress-spinner-tokens.scss +1 -9
- package/radio/radio-tokens.scss +11 -70
- package/risk-level/risk-level-tokens.scss +1 -32
- package/schematics/ng-add/index.js +5 -8
- package/scrollbar/scrollbar-tokens.scss +1 -16
- package/select/select-tokens.scss +1 -8
- package/select/select.component.d.ts +40 -4
- package/select/select.scss +20 -0
- package/sidepanel/sidepanel-tokens.scss +1 -11
- package/tabs/_tabs-common.scss +27 -5
- package/tabs/_tabs-theme.scss +6 -16
- package/tabs/paginated-tab-header.d.ts +23 -21
- package/tabs/public-api.d.ts +7 -7
- package/tabs/tab-group.component.d.ts +21 -24
- package/tabs/tab-group.scss +27 -29
- package/tabs/tab-header.component.d.ts +13 -19
- package/tabs/tab-header.scss +5 -27
- package/tabs/tab-link.scss +14 -0
- package/tabs/tab-nav-bar.d.ts +92 -0
- package/tabs/tab-nav-bar.scss +36 -0
- package/tabs/tab.component.d.ts +1 -0
- package/tabs/tabs-tokens.scss +1 -92
- package/tabs/tabs.module.d.ts +12 -12
- package/tags/tag-tokens.scss +1 -74
- package/timezone/timezone-option-tokens.scss +5 -11
- package/toast/toast-tokens.scss +1 -22
- package/toggle/toggle-tokens.scss +1 -52
- package/tooltip/tooltip-tokens.scss +1 -21
- package/tree/tree-option.scss +11 -0
- package/tree/tree-tokens.scss +1 -37
- package/tree-select/_tree-select-theme.scss +5 -1
- package/tree-select/tree-select-tokens.scss +2 -6
- package/tree-select/tree-select.component.d.ts +45 -5
- package/esm2022/tabs/tab-nav-bar/index.mjs +0 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -119
- package/select/README.md +0 -0
- package/tabs/README.md +0 -0
- package/tabs/tab-nav-bar/index.d.ts +0 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -42
- package/tabs/tab-nav-bar/tab-nav-bar.scss +0 -35
package/tabs/tab-group.scss
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
@use '../core/styles/common/layout';
|
|
2
2
|
|
|
3
|
-
@use '../core/styles/common/tokens' as *;
|
|
4
|
-
|
|
5
3
|
.kbq-tab-group {
|
|
6
4
|
display: flex;
|
|
7
5
|
flex-direction: column;
|
|
@@ -12,43 +10,43 @@
|
|
|
12
10
|
&.kbq-tab-group_inverted-header {
|
|
13
11
|
flex-direction: column-reverse;
|
|
14
12
|
}
|
|
15
|
-
}
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
&.kbq-tab-group_vertical {
|
|
15
|
+
flex-direction: row;
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
.kbq-tab-list__content {
|
|
18
|
+
gap: var(--kbq-tabs-size-tab-stack-vertical-content-gap-vertical) 0;
|
|
19
|
+
}
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
& .kbq-tab-header__container {
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
}
|
|
26
24
|
}
|
|
27
|
-
}
|
|
28
25
|
|
|
29
|
-
.kbq-tab-body__wrapper {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
26
|
+
.kbq-tab-body__wrapper {
|
|
27
|
+
display: flex;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
position: relative;
|
|
30
|
+
}
|
|
34
31
|
|
|
35
|
-
.kbq-tab-body {
|
|
36
|
-
|
|
32
|
+
.kbq-tab-body {
|
|
33
|
+
@include layout.kbq-fill;
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
display: block;
|
|
36
|
+
overflow: hidden;
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
&.kbq-tab-body__active {
|
|
39
|
+
position: relative;
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
overflow-x: hidden;
|
|
42
|
+
overflow-y: auto;
|
|
46
43
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
z-index: 1;
|
|
45
|
+
flex-grow: 1;
|
|
46
|
+
}
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
.kbq-tab-group.kbq-tab-group_dynamic-height &.kbq-tab-body__active {
|
|
49
|
+
overflow-y: hidden;
|
|
50
|
+
}
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
|
-
import { ChangeDetectorRef, ElementRef, NgZone, QueryList } from '@angular/core';
|
|
1
|
+
import { ElementRef, QueryList } from '@angular/core';
|
|
5
2
|
import { KbqPaginatedTabHeader } from './paginated-tab-header';
|
|
6
3
|
import { KbqTabLabelWrapper } from './tab-label-wrapper.directive';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
@@ -19,20 +16,17 @@ export type ScrollDirection = 'after' | 'before';
|
|
|
19
16
|
* @docs-private
|
|
20
17
|
*/
|
|
21
18
|
export declare class KbqTabHeader extends KbqPaginatedTabHeader {
|
|
22
|
-
|
|
23
|
-
readonly changeDetectorRef: ChangeDetectorRef;
|
|
24
|
-
/** The index of the active tab. */
|
|
25
|
-
vertical: boolean;
|
|
19
|
+
/** Whether the tabs are underlined. */
|
|
26
20
|
underlined: boolean;
|
|
27
|
-
items: QueryList<KbqTabLabelWrapper>;
|
|
28
|
-
tabListContainer: ElementRef;
|
|
29
|
-
tabList: ElementRef;
|
|
30
|
-
nextPaginator: ElementRef<HTMLElement>;
|
|
31
|
-
previousPaginator: ElementRef<HTMLElement>;
|
|
32
|
-
get activeTabOffsetWidth(): string;
|
|
33
|
-
get activeTabOffsetLeft(): string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
static
|
|
37
|
-
static
|
|
21
|
+
readonly items: QueryList<KbqTabLabelWrapper>;
|
|
22
|
+
readonly tabListContainer: ElementRef;
|
|
23
|
+
readonly tabList: ElementRef;
|
|
24
|
+
readonly nextPaginator: ElementRef<HTMLElement>;
|
|
25
|
+
readonly previousPaginator: ElementRef<HTMLElement>;
|
|
26
|
+
protected get activeTabOffsetWidth(): string | null;
|
|
27
|
+
protected get activeTabOffsetLeft(): string | null;
|
|
28
|
+
protected itemSelected(event: KeyboardEvent): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabHeader, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTabHeader, "kbq-tab-header", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "underlined": { "alias": "underlined"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, ["items"], ["*"], false, never>;
|
|
31
|
+
static ngAcceptInputType_underlined: unknown;
|
|
38
32
|
}
|
package/tabs/tab-header.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../core/styles/common/vendor-prefixes';
|
|
2
|
-
@use 'tabs-common'
|
|
3
|
-
|
|
2
|
+
@use './tabs-common';
|
|
3
|
+
|
|
4
|
+
@include tabs-common.paginated-tab-header;
|
|
4
5
|
|
|
5
6
|
.kbq-tab-header {
|
|
6
7
|
display: flex;
|
|
@@ -53,44 +54,21 @@
|
|
|
53
54
|
transition: all 0.2s ease-in-out;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
.kbq-tab-
|
|
57
|
-
@include vendor-prefixes.user-select(none);
|
|
58
|
-
|
|
59
|
-
position: relative;
|
|
60
|
-
display: none;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
z-index: 2;
|
|
65
|
-
-webkit-tap-highlight-color: transparent;
|
|
66
|
-
touch-action: none;
|
|
67
|
-
|
|
68
|
-
padding-left: 12px;
|
|
69
|
-
padding-right: 12px;
|
|
70
|
-
|
|
71
|
-
.kbq-tab-header__pagination-controls_enabled & {
|
|
72
|
-
display: flex;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.kbq-tab-header__content {
|
|
57
|
+
.kbq-tab-header__container {
|
|
77
58
|
display: flex;
|
|
78
59
|
flex-grow: 1;
|
|
79
|
-
|
|
80
60
|
z-index: 1;
|
|
81
61
|
overflow: hidden;
|
|
82
62
|
}
|
|
83
63
|
|
|
84
64
|
.kbq-tab-list {
|
|
85
65
|
position: relative;
|
|
86
|
-
|
|
87
66
|
width: 100%;
|
|
88
|
-
|
|
89
67
|
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
90
68
|
}
|
|
91
69
|
|
|
92
70
|
.kbq-tab-label {
|
|
93
|
-
@include tab-label;
|
|
71
|
+
@include tabs-common.tab-label;
|
|
94
72
|
@include vendor-prefixes.user-select(none);
|
|
95
73
|
|
|
96
74
|
.kbq-tab-group_stretch-labels & {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use './tabs-common';
|
|
2
|
+
|
|
3
|
+
.kbq-tab-link {
|
|
4
|
+
vertical-align: top;
|
|
5
|
+
text-decoration: none;
|
|
6
|
+
-webkit-tap-highlight-color: transparent;
|
|
7
|
+
|
|
8
|
+
@include tabs-common.tab-label;
|
|
9
|
+
|
|
10
|
+
& .kbq-tab-group_stretch-labels & {
|
|
11
|
+
flex-basis: 0;
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { KbqPaginatedTabHeader } from './paginated-tab-header';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Navigation component matching the styles of the tab group header.
|
|
6
|
+
*/
|
|
7
|
+
export declare class KbqTabNavBar extends KbqPaginatedTabHeader implements AfterContentInit {
|
|
8
|
+
readonly tabListContainer: ElementRef;
|
|
9
|
+
readonly tabList: ElementRef;
|
|
10
|
+
readonly nextPaginator: ElementRef<HTMLElement>;
|
|
11
|
+
readonly previousPaginator: ElementRef<HTMLElement>;
|
|
12
|
+
readonly items: QueryList<KbqTabLink>;
|
|
13
|
+
/** Whether the nav bar background should be transparent. */
|
|
14
|
+
transparent: boolean;
|
|
15
|
+
onSurface: boolean;
|
|
16
|
+
/** Whether the nav bar should be underlined. */
|
|
17
|
+
underlined: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Associated tab panel controlled by the nav bar.
|
|
20
|
+
*/
|
|
21
|
+
tabNavPanel?: KbqTabNavPanel;
|
|
22
|
+
get role(): string | null;
|
|
23
|
+
protected get activeTabOffsetWidth(): string | null;
|
|
24
|
+
protected get activeTabOffsetLeft(): string | null;
|
|
25
|
+
ngAfterContentInit(): void;
|
|
26
|
+
protected itemSelected(): void;
|
|
27
|
+
/** Notifies the component that the active link has been changed. */
|
|
28
|
+
updateActiveLink(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabNavBar, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTabNavBar, "[kbqTabNavBar], [kbq-tab-nav-bar]", ["kbqTabNavBar"], { "transparent": { "alias": "transparent"; "required": false; }; "onSurface": { "alias": "onSurface"; "required": false; }; "underlined": { "alias": "underlined"; "required": false; }; "tabNavPanel": { "alias": "tabNavPanel"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
31
|
+
static ngAcceptInputType_transparent: unknown;
|
|
32
|
+
static ngAcceptInputType_onSurface: unknown;
|
|
33
|
+
static ngAcceptInputType_underlined: unknown;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Link inside of a KbqTabNavBar.
|
|
37
|
+
*/
|
|
38
|
+
export declare class KbqTabLink implements OnDestroy, AfterViewInit {
|
|
39
|
+
/** Unique id for the link. */
|
|
40
|
+
id: string;
|
|
41
|
+
/** Whether the link is active. */
|
|
42
|
+
get active(): boolean;
|
|
43
|
+
set active(value: boolean);
|
|
44
|
+
/** Whether the tab link is active or not. */
|
|
45
|
+
private _active;
|
|
46
|
+
get vertical(): boolean;
|
|
47
|
+
get underlined(): boolean;
|
|
48
|
+
/** Whether the tab link is disabled. */
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
/** Link tab index. */
|
|
51
|
+
set tabIndex(value: number);
|
|
52
|
+
get tabIndex(): number;
|
|
53
|
+
private _tabIndex;
|
|
54
|
+
/** Link aria-selected attribute value. */
|
|
55
|
+
protected get ariaSelected(): string | null;
|
|
56
|
+
/** Link role attribute value. */
|
|
57
|
+
protected get role(): string | null;
|
|
58
|
+
/** Link aria-controls attribute value. */
|
|
59
|
+
protected get ariaControls(): string | null;
|
|
60
|
+
/** Link aria-current attribute value. */
|
|
61
|
+
protected get ariaCurrent(): string | null;
|
|
62
|
+
readonly elementRef: ElementRef<any>;
|
|
63
|
+
private readonly focusMonitor;
|
|
64
|
+
private readonly renderer;
|
|
65
|
+
private readonly tabNavBar;
|
|
66
|
+
constructor();
|
|
67
|
+
ngAfterViewInit(): void;
|
|
68
|
+
ngOnDestroy(): void;
|
|
69
|
+
private addClassModifierForIcons;
|
|
70
|
+
/** Focuses the tab link. */
|
|
71
|
+
focus(): void;
|
|
72
|
+
/** Handles the focus event. */
|
|
73
|
+
protected handleFocus(): void;
|
|
74
|
+
/** Handles the keydown event. */
|
|
75
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabLink, never>;
|
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTabLink, "[kbqTabLink], [kbq-tab-link]", ["kbqTabLink"], { "id": { "alias": "id"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
78
|
+
static ngAcceptInputType_active: unknown;
|
|
79
|
+
static ngAcceptInputType_disabled: unknown;
|
|
80
|
+
static ngAcceptInputType_tabIndex: unknown;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Tab panel component associated with KbqTabNav.
|
|
84
|
+
*/
|
|
85
|
+
export declare class KbqTabNavPanel {
|
|
86
|
+
/** Unique id for the tab panel. */
|
|
87
|
+
id: string;
|
|
88
|
+
/** Id of the active tab in the nav bar. */
|
|
89
|
+
activeTabId?: string;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabNavPanel, never>;
|
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTabNavPanel, "[kbqTabNavPanel]", ["kbqTabNavPanel"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use './tabs-common';
|
|
2
|
+
|
|
3
|
+
@include tabs-common.paginated-tab-header();
|
|
4
|
+
|
|
5
|
+
.kbq-tab-nav-bar {
|
|
6
|
+
display: flex;
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.kbq-tab-link__container {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-grow: 1;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.kbq-tab-list {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.kbq-tab-list__content {
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.kbq-tab-group_vertical {
|
|
27
|
+
.kbq-tab-link__container {
|
|
28
|
+
overflow-y: scroll;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.kbq-tab-list__content {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--kbq-tabs-size-tab-stack-vertical-content-gap-vertical);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/tabs/tab.component.d.ts
CHANGED
|
@@ -65,4 +65,5 @@ export declare class KbqTab extends KbqTabMixinBase implements OnInit, CanDisabl
|
|
|
65
65
|
protected setTemplateLabelInput(value: KbqTabLabel): void;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTab, never>;
|
|
67
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTab, "kbq-tab", ["kbqTab"], { "disabled": { "alias": "disabled"; "required": false; }; "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; }; "textLabel": { "alias": "label"; "required": false; }; "empty": { "alias": "empty"; "required": false; }; "tabId": { "alias": "tabId"; "required": false; }; }, {}, ["templateLabel", "explicitContent"], ["*"], false, never>;
|
|
68
|
+
static ngAcceptInputType_empty: unknown;
|
|
68
69
|
}
|
package/tabs/tabs-tokens.scss
CHANGED
|
@@ -7,98 +7,7 @@
|
|
|
7
7
|
--kbq-tabs-size-tab-item-focus-outline-width: var(--kbq-size-3xs);
|
|
8
8
|
--kbq-tabs-size-tab-stack-horizontal-border-radius: var(--kbq-size-s);
|
|
9
9
|
--kbq-tabs-size-tab-stack-vertical-content-gap-vertical: var(--kbq-size-s);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
13
|
-
--kbq-tabs-tab-item-filled-on-background-default-background: transparent;
|
|
14
|
-
--kbq-tabs-tab-item-filled-on-background-default-text-color: var(--kbq-foreground-contrast);
|
|
15
|
-
--kbq-tabs-tab-item-filled-on-background-default-icon-color: var(--kbq-icon-contrast);
|
|
16
|
-
--kbq-tabs-tab-item-filled-on-background-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
17
|
-
--kbq-tabs-tab-item-filled-on-background-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);
|
|
18
|
-
--kbq-tabs-tab-item-filled-on-background-states-selected-background: var(
|
|
19
|
-
--kbq-states-background-transparent-active
|
|
20
|
-
);
|
|
21
|
-
--kbq-tabs-tab-item-filled-on-background-states-selected-hover-background: var(
|
|
22
|
-
--kbq-states-background-transparent-active
|
|
23
|
-
);
|
|
24
|
-
--kbq-tabs-tab-item-filled-on-background-states-selected-disabled-background: var(
|
|
25
|
-
--kbq-states-background-transparent-active
|
|
26
|
-
);
|
|
27
|
-
--kbq-tabs-tab-item-filled-on-background-states-selected-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
28
|
-
--kbq-tabs-tab-item-filled-on-background-states-selected-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
29
|
-
--kbq-tabs-tab-item-filled-on-background-states-disabled-background: transparent;
|
|
30
|
-
--kbq-tabs-tab-item-filled-on-background-states-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
31
|
-
--kbq-tabs-tab-item-filled-on-background-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
32
|
-
--kbq-tabs-tab-item-filled-on-surface-default-background: transparent;
|
|
33
|
-
--kbq-tabs-tab-item-filled-on-surface-default-text-color: var(--kbq-foreground-contrast);
|
|
34
|
-
--kbq-tabs-tab-item-filled-on-surface-default-icon-color: var(--kbq-icon-contrast);
|
|
35
|
-
--kbq-tabs-tab-item-filled-on-surface-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
36
|
-
--kbq-tabs-tab-item-filled-on-surface-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);
|
|
37
|
-
--kbq-tabs-tab-item-filled-on-surface-states-selected-background: var(--kbq-states-background-transparent-active);
|
|
38
|
-
--kbq-tabs-tab-item-filled-on-surface-states-selected-hover-background: var(
|
|
39
|
-
--kbq-states-background-transparent-active
|
|
40
|
-
);
|
|
41
|
-
--kbq-tabs-tab-item-filled-on-surface-states-selected-disabled-background: var(
|
|
42
|
-
--kbq-states-background-transparent-active
|
|
43
|
-
);
|
|
44
|
-
--kbq-tabs-tab-item-filled-on-surface-states-selected-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
45
|
-
--kbq-tabs-tab-item-filled-on-surface-states-selected-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
46
|
-
--kbq-tabs-tab-item-filled-on-surface-states-disabled-background: transparent;
|
|
47
|
-
--kbq-tabs-tab-item-filled-on-surface-states-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
48
|
-
--kbq-tabs-tab-item-filled-on-surface-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
49
|
-
--kbq-tabs-tab-item-transparent-on-background-default-background: transparent;
|
|
50
|
-
--kbq-tabs-tab-item-transparent-on-background-default-text-color: var(--kbq-foreground-contrast);
|
|
51
|
-
--kbq-tabs-tab-item-transparent-on-background-default-icon-color: var(--kbq-icon-contrast);
|
|
52
|
-
--kbq-tabs-tab-item-transparent-on-background-states-hover-background: var(
|
|
53
|
-
--kbq-states-background-transparent-hover
|
|
54
|
-
);
|
|
55
|
-
--kbq-tabs-tab-item-transparent-on-background-states-focused-focus-outline-color: var(
|
|
56
|
-
--kbq-states-line-focus-theme
|
|
57
|
-
);
|
|
58
|
-
--kbq-tabs-tab-item-transparent-on-background-states-selected-background: var(
|
|
59
|
-
--kbq-states-background-transparent-active
|
|
60
|
-
);
|
|
61
|
-
--kbq-tabs-tab-item-transparent-on-background-states-selected-hover-background: var(
|
|
62
|
-
--kbq-states-background-transparent-active
|
|
63
|
-
);
|
|
64
|
-
--kbq-tabs-tab-item-transparent-on-background-states-selected-disabled-background: var(
|
|
65
|
-
--kbq-states-background-transparent-active
|
|
66
|
-
);
|
|
67
|
-
--kbq-tabs-tab-item-transparent-on-background-states-selected-disabled-text-color: var(
|
|
68
|
-
--kbq-states-foreground-disabled
|
|
69
|
-
);
|
|
70
|
-
--kbq-tabs-tab-item-transparent-on-background-states-selected-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
71
|
-
--kbq-tabs-tab-item-transparent-on-background-states-disabled-background: transparent;
|
|
72
|
-
--kbq-tabs-tab-item-transparent-on-background-states-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
73
|
-
--kbq-tabs-tab-item-transparent-on-background-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
74
|
-
--kbq-tabs-tab-item-transparent-on-surface-default-background: transparent;
|
|
75
|
-
--kbq-tabs-tab-item-transparent-on-surface-default-text-color: var(--kbq-foreground-contrast);
|
|
76
|
-
--kbq-tabs-tab-item-transparent-on-surface-default-icon-color: var(--kbq-icon-contrast);
|
|
77
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-hover-background: var(--kbq-states-background-transparent-hover);
|
|
78
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);
|
|
79
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-selected-background: var(
|
|
80
|
-
--kbq-states-background-transparent-active
|
|
81
|
-
);
|
|
82
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-selected-hover-background: var(
|
|
83
|
-
--kbq-states-background-transparent-active
|
|
84
|
-
);
|
|
85
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-selected-disabled-background: var(
|
|
86
|
-
--kbq-states-background-transparent-active
|
|
87
|
-
);
|
|
88
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-selected-disabled-text-color: var(
|
|
89
|
-
--kbq-states-foreground-disabled
|
|
90
|
-
);
|
|
91
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-selected-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
92
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-disabled-background: transparent;
|
|
93
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-disabled-text-color: var(--kbq-states-foreground-disabled);
|
|
94
|
-
--kbq-tabs-tab-item-transparent-on-surface-states-disabled-icon-color: var(--kbq-states-icon-disabled);
|
|
95
|
-
--kbq-tabs-tab-stack-filled-on-background-background: var(--kbq-background-bg);
|
|
96
|
-
--kbq-tabs-tab-stack-filled-on-surface-background: var(--kbq-background-contrast-fade);
|
|
97
|
-
--kbq-tabs-tab-stack-transparent-on-background-background: transparent;
|
|
98
|
-
--kbq-tabs-tab-stack-transparent-on-surface-background: transparent;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
10
|
+
/* THEME TOKENS */
|
|
102
11
|
--kbq-tabs-tab-item-filled-on-background-default-background: transparent;
|
|
103
12
|
--kbq-tabs-tab-item-filled-on-background-default-text-color: var(--kbq-foreground-contrast);
|
|
104
13
|
--kbq-tabs-tab-item-filled-on-background-default-icon-color: var(--kbq-icon-contrast);
|
package/tabs/tabs.module.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ import * as i1 from "./tab-group.component";
|
|
|
3
3
|
import * as i2 from "./tab-label.directive";
|
|
4
4
|
import * as i3 from "./tab.component";
|
|
5
5
|
import * as i4 from "./tab-label-wrapper.directive";
|
|
6
|
-
import * as i5 from "./tab-
|
|
7
|
-
import * as i6 from "./tab-
|
|
8
|
-
import * as i7 from "./tab-
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "@angular/cdk/
|
|
11
|
-
import * as i10 from "@angular/cdk/
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
import * as i12 from "@koobiq/components/
|
|
14
|
-
import * as i13 from "@koobiq/components/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "
|
|
6
|
+
import * as i5 from "./tab-body.component";
|
|
7
|
+
import * as i6 from "./tab-header.component";
|
|
8
|
+
import * as i7 from "./tab-content.directive";
|
|
9
|
+
import * as i8 from "@angular/cdk/portal";
|
|
10
|
+
import * as i9 from "@angular/cdk/a11y";
|
|
11
|
+
import * as i10 from "@angular/cdk/scrolling";
|
|
12
|
+
import * as i11 from "@koobiq/components/core";
|
|
13
|
+
import * as i12 from "@koobiq/components/icon";
|
|
14
|
+
import * as i13 from "@koobiq/components/tooltip";
|
|
15
|
+
import * as i14 from "@angular/cdk/observers";
|
|
16
|
+
import * as i15 from "./tab-nav-bar";
|
|
17
17
|
export declare class KbqTabsModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabsModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTabsModule, [typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i4.KbqTabLabelWrapper, typeof i5.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTabsModule, [typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i4.KbqTabLabelWrapper, typeof i5.KbqTabBody, typeof i5.KbqTabBodyPortal, typeof i6.KbqTabHeader, typeof i7.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler], [typeof i8.PortalModule, typeof i9.A11yModule, typeof i10.CdkScrollableModule, typeof i11.KbqCommonModule, typeof i12.KbqIconModule, typeof i13.KbqToolTipModule, typeof i14.CdkObserveContent, typeof i15.KbqTabNavBar, typeof i15.KbqTabLink, typeof i15.KbqTabNavPanel], [typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i4.KbqTabLabelWrapper, typeof i5.KbqTabBody, typeof i5.KbqTabBodyPortal, typeof i6.KbqTabHeader, typeof i7.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler, typeof i15.KbqTabNavBar, typeof i15.KbqTabLink, typeof i15.KbqTabNavPanel]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTabsModule>;
|
|
21
21
|
}
|
package/tags/tag-tokens.scss
CHANGED
|
@@ -7,63 +7,7 @@
|
|
|
7
7
|
--kbq-tag-size-content-gap-horizontal: var(--kbq-size-3xs);
|
|
8
8
|
--kbq-tag-size-icon-margin-left: var(--kbq-size-3xs);
|
|
9
9
|
--kbq-tag-size-close-button-margin-right: var(--kbq-size-3xs);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
13
|
-
--kbq-tag-theme-fade-on-default-background: var(--kbq-background-theme-fade);
|
|
14
|
-
--kbq-tag-theme-fade-on-default-text: var(--kbq-foreground-theme);
|
|
15
|
-
--kbq-tag-theme-fade-on-default-icon: var(--kbq-icon-theme);
|
|
16
|
-
--kbq-tag-theme-fade-on-default-close-button: var(--kbq-icon-theme);
|
|
17
|
-
--kbq-tag-theme-fade-on-states-hover-background: var(--kbq-states-background-theme-fade-hover);
|
|
18
|
-
--kbq-tag-theme-fade-on-states-hover-text: var(--kbq-foreground-theme);
|
|
19
|
-
--kbq-tag-theme-fade-on-states-hover-icon: var(--kbq-icon-theme);
|
|
20
|
-
--kbq-tag-theme-fade-on-states-hover-close-button: var(--kbq-icon-theme);
|
|
21
|
-
--kbq-tag-theme-fade-on-states-focus-background: var(--kbq-background-theme-fade);
|
|
22
|
-
--kbq-tag-theme-fade-on-states-focus-text: var(--kbq-foreground-theme);
|
|
23
|
-
--kbq-tag-theme-fade-on-states-focus-icon: var(--kbq-icon-theme);
|
|
24
|
-
--kbq-tag-theme-fade-on-states-focus-close-button: var(--kbq-icon-theme);
|
|
25
|
-
--kbq-tag-theme-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);
|
|
26
|
-
--kbq-tag-theme-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
27
|
-
--kbq-tag-theme-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
28
|
-
--kbq-tag-theme-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
29
|
-
--kbq-tag-theme-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);
|
|
30
|
-
--kbq-tag-contrast-fade-on-default-background: var(--kbq-background-contrast-fade);
|
|
31
|
-
--kbq-tag-contrast-fade-on-default-text: var(--kbq-foreground-contrast);
|
|
32
|
-
--kbq-tag-contrast-fade-on-default-icon: var(--kbq-icon-contrast-fade);
|
|
33
|
-
--kbq-tag-contrast-fade-on-default-close-button: var(--kbq-icon-contrast-fade);
|
|
34
|
-
--kbq-tag-contrast-fade-on-states-hover-background: var(--kbq-states-background-contrast-fade-hover);
|
|
35
|
-
--kbq-tag-contrast-fade-on-states-hover-text: var(--kbq-foreground-contrast);
|
|
36
|
-
--kbq-tag-contrast-fade-on-states-hover-icon: var(--kbq-icon-contrast-fade);
|
|
37
|
-
--kbq-tag-contrast-fade-on-states-hover-close-button: var(--kbq-icon-contrast-fade);
|
|
38
|
-
--kbq-tag-contrast-fade-on-states-focus-background: var(--kbq-background-contrast-fade);
|
|
39
|
-
--kbq-tag-contrast-fade-on-states-focus-text: var(--kbq-foreground-contrast);
|
|
40
|
-
--kbq-tag-contrast-fade-on-states-focus-icon: var(--kbq-icon-contrast-fade);
|
|
41
|
-
--kbq-tag-contrast-fade-on-states-focus-close-button: var(--kbq-icon-contrast-fade);
|
|
42
|
-
--kbq-tag-contrast-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);
|
|
43
|
-
--kbq-tag-contrast-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
44
|
-
--kbq-tag-contrast-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
45
|
-
--kbq-tag-contrast-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
46
|
-
--kbq-tag-contrast-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);
|
|
47
|
-
--kbq-tag-error-fade-on-default-background: var(--kbq-background-error-fade);
|
|
48
|
-
--kbq-tag-error-fade-on-default-text: var(--kbq-foreground-error);
|
|
49
|
-
--kbq-tag-error-fade-on-default-icon: var(--kbq-icon-error);
|
|
50
|
-
--kbq-tag-error-fade-on-default-close-button: var(--kbq-icon-error);
|
|
51
|
-
--kbq-tag-error-fade-on-states-hover-background: var(--kbq-states-background-error-fade-hover);
|
|
52
|
-
--kbq-tag-error-fade-on-states-hover-text: var(--kbq-foreground-error);
|
|
53
|
-
--kbq-tag-error-fade-on-states-hover-icon: var(--kbq-icon-error);
|
|
54
|
-
--kbq-tag-error-fade-on-states-hover-close-button: var(--kbq-icon-error);
|
|
55
|
-
--kbq-tag-error-fade-on-states-focus-background: var(--kbq-background-error-fade);
|
|
56
|
-
--kbq-tag-error-fade-on-states-focus-text: var(--kbq-foreground-error);
|
|
57
|
-
--kbq-tag-error-fade-on-states-focus-icon: var(--kbq-icon-error);
|
|
58
|
-
--kbq-tag-error-fade-on-states-focus-close-button: var(--kbq-icon-error);
|
|
59
|
-
--kbq-tag-error-fade-on-states-focus-outline: var(--kbq-states-line-focus-error);
|
|
60
|
-
--kbq-tag-error-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
61
|
-
--kbq-tag-error-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
62
|
-
--kbq-tag-error-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
63
|
-
--kbq-tag-error-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
10
|
+
/* THEME TOKENS */
|
|
67
11
|
--kbq-tag-theme-fade-on-default-background: var(--kbq-background-theme-fade);
|
|
68
12
|
--kbq-tag-theme-fade-on-default-text: var(--kbq-foreground-theme);
|
|
69
13
|
--kbq-tag-theme-fade-on-default-icon: var(--kbq-icon-theme);
|
|
@@ -115,21 +59,4 @@
|
|
|
115
59
|
--kbq-tag-error-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
116
60
|
--kbq-tag-error-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
117
61
|
--kbq-tag-error-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);
|
|
118
|
-
--kbq-tag-warning-fade-on-default-background: var(--kbq-background-warning-fade);
|
|
119
|
-
--kbq-tag-warning-fade-on-default-text: var(--kbq-foreground-warning);
|
|
120
|
-
--kbq-tag-warning-fade-on-default-icon: var(--kbq-icon-warning);
|
|
121
|
-
--kbq-tag-warning-fade-on-default-close-button: var(--kbq-icon-warning);
|
|
122
|
-
--kbq-tag-warning-fade-on-states-hover-background: var(--kbq-states-background-warning-fade-hover);
|
|
123
|
-
--kbq-tag-warning-fade-on-states-hover-text: var(--kbq-foreground-warning);
|
|
124
|
-
--kbq-tag-warning-fade-on-states-hover-icon: var(--kbq-icon-warning);
|
|
125
|
-
--kbq-tag-warning-fade-on-states-hover-close-button: var(--kbq-icon-warning);
|
|
126
|
-
--kbq-tag-warning-fade-on-states-focus-background: var(--kbq-background-warning-fade);
|
|
127
|
-
--kbq-tag-warning-fade-on-states-focus-text: var(--kbq-foreground-warning);
|
|
128
|
-
--kbq-tag-warning-fade-on-states-focus-icon: var(--kbq-icon-warning);
|
|
129
|
-
--kbq-tag-warning-fade-on-states-focus-close-button: var(--kbq-icon-warning);
|
|
130
|
-
--kbq-tag-warning-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);
|
|
131
|
-
--kbq-tag-warning-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
132
|
-
--kbq-tag-warning-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
133
|
-
--kbq-tag-warning-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
134
|
-
--kbq-tag-warning-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);
|
|
135
62
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../list/list-tokens';
|
|
2
|
+
|
|
1
3
|
.kbq-timezone-select__panel {
|
|
2
4
|
--kbq-select-size-single-padding-left: var(--kbq-size-m);
|
|
3
5
|
--kbq-select-size-single-padding-right: var(--kbq-size-xxs);
|
|
@@ -11,20 +13,12 @@
|
|
|
11
13
|
--kbq-timezone-option-size-height: auto;
|
|
12
14
|
--kbq-timezone-option-size-max-height: 5em;
|
|
13
15
|
--kbq-timezone-option-size-optgroup-label-padding: 12px 12px 4px 12px;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
17
|
-
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
18
|
-
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
19
|
-
--kbq-timezone-option-text: var(--kbq-foreground-contrast);
|
|
20
|
-
--kbq-timezone-option-caption: var(--kbq-foreground-contrast-secondary);
|
|
21
|
-
--kbq-timezone-option-optgroup-label: var(--kbq-foreground-contrast-secondary);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
16
|
+
/* THEME TOKENS */
|
|
25
17
|
--kbq-select-panel-dropdown-background: var(--kbq-background-card);
|
|
26
18
|
--kbq-select-panel-dropdown-shadow: var(--kbq-shadow-popup);
|
|
27
19
|
--kbq-timezone-option-text: var(--kbq-foreground-contrast);
|
|
28
20
|
--kbq-timezone-option-caption: var(--kbq-foreground-contrast-secondary);
|
|
29
21
|
--kbq-timezone-option-optgroup-label: var(--kbq-foreground-contrast-secondary);
|
|
22
|
+
/* LIST THEME TOKENS */
|
|
23
|
+
@include list-tokens.list-theme-tokens;
|
|
30
24
|
}
|
package/toast/toast-tokens.scss
CHANGED
|
@@ -17,28 +17,7 @@
|
|
|
17
17
|
--kbq-toast-size-close-button-margin-right: var(--kbq-size-xxs);
|
|
18
18
|
--kbq-toast-size-button-stack-padding-top: var(--kbq-size-s);
|
|
19
19
|
--kbq-toast-size-button-stack-content-gap-horizontal: var(--kbq-size-m);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
23
|
-
--kbq-toast-contrast-container-background: var(--kbq-background-card);
|
|
24
|
-
--kbq-toast-contrast-container-title: var(--kbq-foreground-contrast);
|
|
25
|
-
--kbq-toast-contrast-container-text: var(--kbq-foreground-contrast-secondary);
|
|
26
|
-
--kbq-toast-contrast-container-shadow: var(--kbq-shadow-popup);
|
|
27
|
-
--kbq-toast-error-container-background: var(--kbq-background-card);
|
|
28
|
-
--kbq-toast-error-container-title: var(--kbq-foreground-contrast);
|
|
29
|
-
--kbq-toast-error-container-text: var(--kbq-foreground-contrast-secondary);
|
|
30
|
-
--kbq-toast-error-container-shadow: var(--kbq-shadow-popup);
|
|
31
|
-
--kbq-toast-warning-container-background: var(--kbq-background-card);
|
|
32
|
-
--kbq-toast-warning-container-title: var(--kbq-foreground-contrast);
|
|
33
|
-
--kbq-toast-warning-container-text: var(--kbq-foreground-contrast-secondary);
|
|
34
|
-
--kbq-toast-warning-container-shadow: var(--kbq-shadow-popup);
|
|
35
|
-
--kbq-toast-success-container-background: var(--kbq-background-card);
|
|
36
|
-
--kbq-toast-success-container-title: var(--kbq-foreground-contrast);
|
|
37
|
-
--kbq-toast-success-container-text: var(--kbq-foreground-contrast-secondary);
|
|
38
|
-
--kbq-toast-success-container-shadow: var(--kbq-shadow-popup);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
20
|
+
/* THEME TOKENS */
|
|
42
21
|
--kbq-toast-contrast-container-background: var(--kbq-background-card);
|
|
43
22
|
--kbq-toast-contrast-container-title: var(--kbq-foreground-contrast);
|
|
44
23
|
--kbq-toast-contrast-container-text: var(--kbq-foreground-contrast-secondary);
|