@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.
Files changed (243) hide show
  1. package/accordion/accordion-tokens.scss +1 -13
  2. package/alert/alert-tokens.scss +1 -36
  3. package/autocomplete/autocomplete-tokens.scss +1 -8
  4. package/autocomplete/autocomplete.scss +21 -1
  5. package/badge/badge-tokens.scss +1 -71
  6. package/button/button-tokens.scss +1 -140
  7. package/button-toggle/button-toggle-tokens.scss +1 -32
  8. package/checkbox/checkbox-tokens.scss +1 -50
  9. package/code-block/actionbar.component.d.ts +2 -2
  10. package/code-block/code-block-content.d.ts +28 -0
  11. package/code-block/code-block-tokens.scss +1 -139
  12. package/code-block/code-block.component.d.ts +3 -3
  13. package/code-block/code-block.module.d.ts +3 -3
  14. package/code-block/code-block.types.d.ts +10 -2
  15. package/core/forms/forms-tokens.scss +1 -8
  16. package/core/option/_option-theme.scss +10 -0
  17. package/core/option/option-tokens.scss +4 -0
  18. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +1 -50
  19. package/core/styles/_koobiq-theme.scss +3 -2
  20. package/core/styles/common/_list.scss +6 -8
  21. package/core/styles/common/_select.scss +3 -2
  22. package/core/styles/theming/scrollbar-tokens.scss +1 -16
  23. package/datepicker/datepicker-tokens.scss +1 -21
  24. package/divider/divider-tokens.scss +1 -7
  25. package/dl/dl-tokens.scss +1 -8
  26. package/dropdown/_dropdown-theme.scss +10 -0
  27. package/dropdown/dropdown-tokens.scss +5 -8
  28. package/dropdown/dropdown.scss +22 -3
  29. package/empty-state/empty-state-tokens.scss +1 -8
  30. package/esm2022/accordion/accordion-trigger.component.mjs +7 -19
  31. package/esm2022/accordion/accordion.component.mjs +2 -2
  32. package/esm2022/alert/alert.component.mjs +3 -3
  33. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +4 -3
  34. package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
  35. package/esm2022/badge/badge.component.mjs +2 -2
  36. package/esm2022/button/button.component.mjs +3 -3
  37. package/esm2022/button-toggle/button-toggle.component.mjs +5 -11
  38. package/esm2022/checkbox/checkbox.mjs +3 -3
  39. package/esm2022/code-block/actionbar.component.mjs +1 -1
  40. package/esm2022/code-block/code-block-content.mjs +382 -0
  41. package/esm2022/code-block/code-block.component.mjs +5 -5
  42. package/esm2022/code-block/code-block.module.mjs +7 -27
  43. package/esm2022/code-block/code-block.types.mjs +1 -1
  44. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  45. package/esm2022/core/option/optgroup.mjs +3 -3
  46. package/esm2022/core/option/option.mjs +3 -3
  47. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
  48. package/esm2022/core/version.mjs +2 -2
  49. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  50. package/esm2022/datepicker/calendar-header.component.mjs +3 -3
  51. package/esm2022/datepicker/datepicker-toggle.component.mjs +3 -3
  52. package/esm2022/datepicker/datepicker.component.mjs +5 -4
  53. package/esm2022/datepicker/month-view.component.mjs +3 -3
  54. package/esm2022/divider/divider.component.mjs +2 -2
  55. package/esm2022/dl/dl.component.mjs +2 -2
  56. package/esm2022/dropdown/dropdown-item.component.mjs +3 -3
  57. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  58. package/esm2022/empty-state/empty-state.component.mjs +2 -2
  59. package/esm2022/file-upload/multiple-file-upload.component.mjs +3 -3
  60. package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
  61. package/esm2022/form-field/cleaner.mjs +3 -9
  62. package/esm2022/form-field/form-field.mjs +4 -4
  63. package/esm2022/form-field/hint.mjs +2 -2
  64. package/esm2022/form-field/password-hint.mjs +5 -13
  65. package/esm2022/icon/icon-button.component.mjs +2 -2
  66. package/esm2022/icon/icon-item.component.mjs +2 -2
  67. package/esm2022/icon/icon.component.mjs +2 -2
  68. package/esm2022/list/list-selection.component.mjs +7 -15
  69. package/esm2022/list/list.component.mjs +2 -2
  70. package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
  71. package/esm2022/markdown/markdown.component.mjs +7 -21
  72. package/esm2022/modal/modal.component.mjs +5 -4
  73. package/esm2022/modal/modal.directive.mjs +5 -17
  74. package/esm2022/navbar/navbar-item.component.mjs +3 -3
  75. package/esm2022/navbar/navbar.component.mjs +2 -2
  76. package/esm2022/navbar/vertical-navbar.component.mjs +5 -13
  77. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  78. package/esm2022/popover/popover.component.mjs +3 -3
  79. package/esm2022/progress-bar/progress-bar.component.mjs +3 -3
  80. package/esm2022/progress-spinner/progress-spinner.component.mjs +3 -3
  81. package/esm2022/radio/radio.component.mjs +3 -3
  82. package/esm2022/risk-level/risk-level.component.mjs +2 -2
  83. package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
  84. package/esm2022/select/select.component.mjs +49 -16
  85. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  86. package/esm2022/sidepanel/sidepanel-directives.mjs +7 -29
  87. package/esm2022/tabs/paginated-tab-header.mjs +32 -30
  88. package/esm2022/tabs/public-api.mjs +8 -8
  89. package/esm2022/tabs/tab-body.component.mjs +3 -3
  90. package/esm2022/tabs/tab-group.component.mjs +34 -52
  91. package/esm2022/tabs/tab-header.component.mjs +17 -35
  92. package/esm2022/tabs/tab-nav-bar.mjs +292 -0
  93. package/esm2022/tabs/tab.component.mjs +6 -5
  94. package/esm2022/tabs/tabs.module.mjs +39 -45
  95. package/esm2022/tags/tag-list.component.mjs +2 -2
  96. package/esm2022/tags/tag.component.mjs +3 -3
  97. package/esm2022/timezone/timezone-option.component.mjs +3 -3
  98. package/esm2022/timezone/timezone-select.component.mjs +3 -3
  99. package/esm2022/toast/toast.component.mjs +3 -3
  100. package/esm2022/toggle/toggle.component.mjs +3 -3
  101. package/esm2022/tooltip/tooltip.component.mjs +3 -3
  102. package/esm2022/tree/toggle.mjs +2 -2
  103. package/esm2022/tree/tree-option.component.mjs +3 -3
  104. package/esm2022/tree/tree-selection.component.mjs +2 -2
  105. package/esm2022/tree/tree.mjs +2 -2
  106. package/esm2022/tree-select/tree-select.component.mjs +45 -9
  107. package/fesm2022/koobiq-components-accordion.mjs +8 -20
  108. package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
  109. package/fesm2022/koobiq-components-alert.mjs +2 -2
  110. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  111. package/fesm2022/koobiq-components-autocomplete.mjs +5 -4
  112. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  113. package/fesm2022/koobiq-components-badge.mjs +2 -2
  114. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  115. package/fesm2022/koobiq-components-button-toggle.mjs +4 -10
  116. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  117. package/fesm2022/koobiq-components-button.mjs +2 -2
  118. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  119. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  120. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  121. package/fesm2022/koobiq-components-code-block.mjs +389 -31
  122. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  123. package/fesm2022/koobiq-components-core.mjs +8 -8
  124. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  125. package/fesm2022/koobiq-components-datepicker.mjs +12 -11
  126. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  127. package/fesm2022/koobiq-components-divider.mjs +2 -2
  128. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  129. package/fesm2022/koobiq-components-dl.mjs +2 -2
  130. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  131. package/fesm2022/koobiq-components-dropdown.mjs +4 -4
  132. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  133. package/fesm2022/koobiq-components-empty-state.mjs +2 -2
  134. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  135. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  136. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  137. package/fesm2022/koobiq-components-form-field.mjs +11 -25
  138. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  139. package/fesm2022/koobiq-components-icon.mjs +6 -6
  140. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  141. package/fesm2022/koobiq-components-list.mjs +8 -16
  142. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  143. package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
  144. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  145. package/fesm2022/koobiq-components-markdown.mjs +6 -20
  146. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  147. package/fesm2022/koobiq-components-modal.mjs +8 -19
  148. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  149. package/fesm2022/koobiq-components-navbar.mjs +8 -16
  150. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  151. package/fesm2022/koobiq-components-popover.mjs +4 -4
  152. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  153. package/fesm2022/koobiq-components-progress-bar.mjs +2 -2
  154. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  155. package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
  156. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  157. package/fesm2022/koobiq-components-radio.mjs +2 -2
  158. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  159. package/fesm2022/koobiq-components-risk-level.mjs +2 -2
  160. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  161. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  162. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  163. package/fesm2022/koobiq-components-select.mjs +49 -16
  164. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  165. package/fesm2022/koobiq-components-sidepanel.mjs +8 -30
  166. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  167. package/fesm2022/koobiq-components-tabs.mjs +349 -208
  168. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  169. package/fesm2022/koobiq-components-tags.mjs +4 -4
  170. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  171. package/fesm2022/koobiq-components-timezone.mjs +4 -4
  172. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  173. package/fesm2022/koobiq-components-toast.mjs +2 -2
  174. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  175. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  176. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  177. package/fesm2022/koobiq-components-tooltip.mjs +2 -2
  178. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  179. package/fesm2022/koobiq-components-tree-select.mjs +45 -9
  180. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  181. package/fesm2022/koobiq-components-tree.mjs +8 -8
  182. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  183. package/file-upload/file-upload-tokens.scss +1 -52
  184. package/form-field/form-field-tokens.scss +1 -29
  185. package/form-field/form-field.scss +5 -6
  186. package/form-field/hint-tokens.scss +1 -22
  187. package/icon/icon-button-tokens.scss +1 -30
  188. package/icon/icon-item-tokens.scss +1 -26
  189. package/icon/icon-tokens.scss +2 -10
  190. package/link/_link-theme.scss +27 -5
  191. package/link/link-tokens.scss +1 -21
  192. package/list/_list-theme.scss +10 -0
  193. package/list/list-tokens.scss +17 -42
  194. package/loader-overlay/loader-overlay-tokens.scss +1 -12
  195. package/markdown/markdown-tokens.scss +1 -34
  196. package/modal/modal-tokens.scss +1 -12
  197. package/navbar/navbar-tokens.scss +1 -28
  198. package/package.json +7 -9
  199. package/popover/popover-tokens.scss +1 -12
  200. package/prebuilt-themes/dark-theme.css +1 -1
  201. package/prebuilt-themes/light-theme.css +1 -1
  202. package/prebuilt-themes/theme.css +1 -1
  203. package/progress-bar/progress-bar-tokens.scss +1 -10
  204. package/progress-spinner/progress-spinner-tokens.scss +1 -9
  205. package/radio/radio-tokens.scss +11 -70
  206. package/risk-level/risk-level-tokens.scss +1 -32
  207. package/schematics/ng-add/index.js +5 -8
  208. package/scrollbar/scrollbar-tokens.scss +1 -16
  209. package/select/select-tokens.scss +1 -8
  210. package/select/select.component.d.ts +40 -4
  211. package/select/select.scss +20 -0
  212. package/sidepanel/sidepanel-tokens.scss +1 -11
  213. package/tabs/_tabs-common.scss +27 -5
  214. package/tabs/_tabs-theme.scss +6 -16
  215. package/tabs/paginated-tab-header.d.ts +23 -21
  216. package/tabs/public-api.d.ts +7 -7
  217. package/tabs/tab-group.component.d.ts +21 -24
  218. package/tabs/tab-group.scss +27 -29
  219. package/tabs/tab-header.component.d.ts +13 -19
  220. package/tabs/tab-header.scss +5 -27
  221. package/tabs/tab-link.scss +14 -0
  222. package/tabs/tab-nav-bar.d.ts +92 -0
  223. package/tabs/tab-nav-bar.scss +36 -0
  224. package/tabs/tab.component.d.ts +1 -0
  225. package/tabs/tabs-tokens.scss +1 -92
  226. package/tabs/tabs.module.d.ts +12 -12
  227. package/tags/tag-tokens.scss +1 -74
  228. package/timezone/timezone-option-tokens.scss +5 -11
  229. package/toast/toast-tokens.scss +1 -22
  230. package/toggle/toggle-tokens.scss +1 -52
  231. package/tooltip/tooltip-tokens.scss +1 -21
  232. package/tree/tree-option.scss +11 -0
  233. package/tree/tree-tokens.scss +1 -37
  234. package/tree-select/_tree-select-theme.scss +5 -1
  235. package/tree-select/tree-select-tokens.scss +2 -6
  236. package/tree-select/tree-select.component.d.ts +45 -5
  237. package/esm2022/tabs/tab-nav-bar/index.mjs +0 -2
  238. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -119
  239. package/select/README.md +0 -0
  240. package/tabs/README.md +0 -0
  241. package/tabs/tab-nav-bar/index.d.ts +0 -1
  242. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +0 -42
  243. package/tabs/tab-nav-bar/tab-nav-bar.scss +0 -35
@@ -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
- .kbq-tab-group_vertical {
18
- flex-direction: row;
14
+ &.kbq-tab-group_vertical {
15
+ flex-direction: row;
19
16
 
20
- .kbq-tab-list__content {
21
- gap: var(--kbq-tabs-size-tab-stack-vertical-content-gap-vertical) 0;
22
- }
17
+ .kbq-tab-list__content {
18
+ gap: var(--kbq-tabs-size-tab-stack-vertical-content-gap-vertical) 0;
19
+ }
23
20
 
24
- & .kbq-tab-header__content {
25
- overflow-y: auto;
21
+ & .kbq-tab-header__container {
22
+ overflow-y: auto;
23
+ }
26
24
  }
27
- }
28
25
 
29
- .kbq-tab-body__wrapper {
30
- display: flex;
31
- overflow: hidden;
32
- position: relative;
33
- }
26
+ .kbq-tab-body__wrapper {
27
+ display: flex;
28
+ overflow: hidden;
29
+ position: relative;
30
+ }
34
31
 
35
- .kbq-tab-body {
36
- @include layout.kbq-fill;
32
+ .kbq-tab-body {
33
+ @include layout.kbq-fill;
37
34
 
38
- display: block;
39
- overflow: hidden;
35
+ display: block;
36
+ overflow: hidden;
40
37
 
41
- &.kbq-tab-body__active {
42
- position: relative;
38
+ &.kbq-tab-body__active {
39
+ position: relative;
43
40
 
44
- overflow-x: hidden;
45
- overflow-y: auto;
41
+ overflow-x: hidden;
42
+ overflow-y: auto;
46
43
 
47
- z-index: 1;
48
- flex-grow: 1;
49
- }
44
+ z-index: 1;
45
+ flex-grow: 1;
46
+ }
50
47
 
51
- .kbq-tab-group.kbq-tab-group_dynamic-height &.kbq-tab-body__active {
52
- overflow-y: hidden;
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 { Directionality } from '@angular/cdk/bidi';
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
- readonly elementRef: ElementRef;
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
- constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, ngZone: NgZone, platform: Platform, dir: Directionality, animationMode?: string);
35
- itemSelected(event: KeyboardEvent): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabHeader, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqTabHeader, "kbq-tab-header", never, { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "underlined": { "alias": "underlined"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, ["items"], ["*"], false, never>;
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
  }
@@ -1,6 +1,7 @@
1
1
  @use '../core/styles/common/vendor-prefixes';
2
- @use 'tabs-common' as *;
3
- @use '../core/styles/common/tokens' as *;
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-header__pagination {
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
+ }
@@ -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
  }
@@ -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);
@@ -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-nav-bar/tab-nav-bar";
7
- import * as i6 from "./tab-body.component";
8
- import * as i7 from "./tab-header.component";
9
- import * as i8 from "./tab-content.directive";
10
- import * as i9 from "@angular/cdk/portal";
11
- import * as i10 from "@angular/cdk/a11y";
12
- import * as i11 from "@angular/cdk/scrolling";
13
- import * as i12 from "@koobiq/components/core";
14
- import * as i13 from "@koobiq/components/icon";
15
- import * as i14 from "@koobiq/components/tooltip";
16
- import * as i15 from "@angular/common";
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.KbqTabNav, typeof i5.KbqTabLink, typeof i6.KbqTabBody, typeof i6.KbqTabBodyPortal, typeof i7.KbqTabHeader, typeof i8.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqUnderlinedTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler], [typeof i9.PortalModule, typeof i10.A11yModule, typeof i11.CdkScrollableModule, typeof i12.KbqCommonModule, typeof i13.KbqIconModule, typeof i14.KbqToolTipModule, typeof i15.NgStyle], [typeof i12.KbqCommonModule, typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i5.KbqTabNav, typeof i5.KbqTabLink, typeof i8.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqUnderlinedTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler]>;
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
  }
@@ -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
  }
@@ -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);