@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.7

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 (193) hide show
  1. package/alert/_alert-theme.scss +19 -33
  2. package/alert/alert.component.scss +41 -136
  3. package/autocomplete/_autocomplete-theme.scss +3 -2
  4. package/autocomplete/autocomplete.scss +7 -14
  5. package/badge/_badge-theme.scss +31 -45
  6. package/badge/badge.component.scss +15 -35
  7. package/button/_button-base.scss +7 -13
  8. package/button/_button-theme.scss +29 -85
  9. package/button/button.component.d.ts +3 -2
  10. package/button/button.scss +7 -16
  11. package/button-toggle/_button-toggle-theme.scss +18 -18
  12. package/button-toggle/button-toggle.scss +9 -32
  13. package/card/_card-theme.scss +19 -17
  14. package/card/card.component.scss +2 -4
  15. package/checkbox/_checkbox-theme.scss +44 -43
  16. package/checkbox/checkbox.scss +13 -18
  17. package/code-block/_code-block-theme.scss +27 -26
  18. package/code-block/actionbar.component.scss +7 -18
  19. package/code-block/code-block.scss +21 -66
  20. package/core/forms/_forms-theme.scss +4 -7
  21. package/core/forms/_forms.scss +13 -42
  22. package/core/option/_optgroup-theme.scss +4 -5
  23. package/core/option/_option-action-theme.scss +7 -7
  24. package/core/option/_option-theme.scss +16 -20
  25. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
  26. package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
  27. package/core/styles/common/_groups.scss +3 -5
  28. package/core/styles/common/_list.scss +14 -18
  29. package/core/styles/common/_popup.scss +5 -4
  30. package/core/styles/common/_select.scss +11 -16
  31. package/core/styles/common/_tokens.scss +30 -9
  32. package/core/styles/theming/_components-theming.scss +151 -131
  33. package/core/styles/visual/_layout.scss +14 -16
  34. package/datepicker/_datepicker-theme.scss +24 -39
  35. package/datepicker/calendar-body.scss +3 -8
  36. package/datepicker/calendar-header.scss +4 -9
  37. package/datepicker/calendar.scss +5 -16
  38. package/datepicker/datepicker-content.scss +4 -12
  39. package/datepicker/datepicker-input.scss +0 -4
  40. package/datepicker/datepicker-toggle.scss +3 -2
  41. package/divider/_divider-theme.scss +3 -1
  42. package/divider/divider.scss +9 -25
  43. package/dl/_dl-theme.scss +5 -6
  44. package/dl/dl.scss +5 -19
  45. package/dropdown/_dropdown-theme.scss +21 -21
  46. package/dropdown/dropdown-item.scss +3 -11
  47. package/dropdown/dropdown.scss +6 -14
  48. package/esm2022/alert/alert.component.mjs +2 -2
  49. package/esm2022/button/button.component.mjs +13 -6
  50. package/esm2022/code-block/actionbar.component.mjs +2 -2
  51. package/esm2022/code-block/code-block.component.mjs +2 -2
  52. package/esm2022/core/version.mjs +2 -2
  53. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  54. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  55. package/esm2022/form-field/form-field.mjs +2 -2
  56. package/esm2022/icon/icon-item.component.mjs +16 -6
  57. package/esm2022/markdown/markdown.component.mjs +2 -2
  58. package/esm2022/navbar/navbar-item.component.mjs +2 -2
  59. package/esm2022/navbar/navbar.component.mjs +2 -2
  60. package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
  61. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  62. package/esm2022/popover/popover.component.mjs +3 -3
  63. package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
  64. package/esm2022/select/select.component.mjs +3 -3
  65. package/esm2022/tabs/tab-group.component.mjs +2 -2
  66. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  67. package/esm2022/timepicker/timepicker.directive.mjs +10 -2
  68. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  69. package/esm2022/title/title.directive.mjs +2 -2
  70. package/esm2022/toast/toast.component.mjs +3 -3
  71. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  72. package/fesm2022/koobiq-components-alert.mjs +2 -2
  73. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  74. package/fesm2022/koobiq-components-button.mjs +12 -5
  75. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  76. package/fesm2022/koobiq-components-code-block.mjs +4 -4
  77. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  78. package/fesm2022/koobiq-components-core.mjs +1 -1
  79. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  80. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  81. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  82. package/fesm2022/koobiq-components-form-field.mjs +2 -2
  83. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  84. package/fesm2022/koobiq-components-icon.mjs +14 -4
  85. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  86. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  87. package/fesm2022/koobiq-components-navbar.mjs +6 -6
  88. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  89. package/fesm2022/koobiq-components-popover.mjs +4 -4
  90. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  91. package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
  92. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  93. package/fesm2022/koobiq-components-select.mjs +2 -2
  94. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  95. package/fesm2022/koobiq-components-tabs.mjs +4 -4
  96. package/fesm2022/koobiq-components-timepicker.mjs +9 -1
  97. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  98. package/fesm2022/koobiq-components-timezone.mjs +2 -2
  99. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  100. package/fesm2022/koobiq-components-title.mjs +1 -1
  101. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  102. package/fesm2022/koobiq-components-toast.mjs +2 -2
  103. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  104. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  105. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  106. package/file-upload/_file-upload-theme.scss +109 -68
  107. package/file-upload/file-upload.scss +0 -5
  108. package/file-upload/multiple-file-upload.component.scss +32 -98
  109. package/file-upload/single-file-upload.component.scss +12 -31
  110. package/form-field/_form-field-theme.scss +32 -34
  111. package/form-field/_hint-theme.scss +16 -19
  112. package/form-field/cleaner.scss +3 -8
  113. package/form-field/form-field.scss +11 -12
  114. package/form-field/hint.scss +3 -7
  115. package/form-field/password-toggle.scss +3 -9
  116. package/form-field/stepper.scss +4 -10
  117. package/icon/_icon-button-theme.scss +35 -35
  118. package/icon/_icon-item-theme.scss +46 -31
  119. package/icon/_icon-theme.scss +9 -15
  120. package/icon/icon-button.scss +5 -17
  121. package/icon/icon-item.component.d.ts +3 -1
  122. package/icon/icon-item.scss +12 -7
  123. package/icon/icon.scss +0 -5
  124. package/input/_input-theme.scss +2 -3
  125. package/input/input.scss +2 -1
  126. package/link/_link-theme.scss +25 -42
  127. package/list/_list-theme.scss +18 -17
  128. package/list/list.scss +0 -4
  129. package/loader-overlay/_loader-overlay-theme.scss +13 -16
  130. package/loader-overlay/loader-overlay.scss +9 -32
  131. package/markdown/_markdown-theme.scss +41 -44
  132. package/markdown/markdown.scss +38 -88
  133. package/modal/_modal-confirm.scss +2 -6
  134. package/modal/_modal-theme.scss +11 -12
  135. package/modal/modal.scss +18 -24
  136. package/navbar/_navbar-item_horizontal.scss +24 -27
  137. package/navbar/_navbar-item_vertical.scss +28 -27
  138. package/navbar/_navbar-theme.scss +21 -22
  139. package/navbar/navbar-brand.scss +24 -26
  140. package/navbar/navbar-divider.scss +4 -7
  141. package/navbar/navbar-item.scss +5 -13
  142. package/navbar/navbar.scss +2 -5
  143. package/navbar/vertical-navbar.scss +3 -5
  144. package/package.json +9 -9
  145. package/popover/_popover-theme.scss +9 -16
  146. package/popover/popover.scss +18 -24
  147. package/prebuilt-themes/dark-theme.css +1 -1
  148. package/prebuilt-themes/light-theme.css +1 -1
  149. package/progress-bar/_progress-bar-theme.scss +7 -10
  150. package/progress-bar/progress-bar.scss +6 -18
  151. package/progress-spinner/_progress-spinner-theme.scss +6 -7
  152. package/progress-spinner/progress-spinner.scss +8 -17
  153. package/radio/_radio-theme.scss +29 -37
  154. package/radio/radio.scss +17 -38
  155. package/risk-level/_risk-level-theme.scss +25 -30
  156. package/risk-level/risk-level.component.scss +5 -8
  157. package/schematics/ng-add/index.js +6 -6
  158. package/scrollbar/_scrollbar-component-theme.scss +14 -17
  159. package/scrollbar/scrollbar.component.scss +7 -20
  160. package/select/_select-theme.scss +14 -15
  161. package/select/select.scss +3 -10
  162. package/sidepanel/_sidepanel-theme.scss +8 -9
  163. package/sidepanel/sidepanel.scss +19 -30
  164. package/splitter/_splitter-theme.scss +3 -3
  165. package/table/_table-theme.scss +9 -8
  166. package/table/table.scss +12 -12
  167. package/tabs/_tabs-common.scss +4 -7
  168. package/tabs/_tabs-theme.scss +77 -44
  169. package/tabs/tab-group.scss +2 -7
  170. package/tabs/tab-header.scss +0 -4
  171. package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
  172. package/tags/_tag-theme.scss +23 -26
  173. package/tags/tag-list.scss +6 -5
  174. package/tags/tag.scss +6 -9
  175. package/textarea/_textarea-theme.scss +2 -4
  176. package/textarea/textarea.scss +4 -6
  177. package/timepicker/timepicker.scss +2 -7
  178. package/timezone/_timezone-option-theme.scss +8 -9
  179. package/timezone/timezone-option.component.scss +5 -7
  180. package/timezone/timezone-select.component.scss +2 -3
  181. package/toast/_toast-theme.scss +15 -14
  182. package/toast/toast-container.component.scss +4 -7
  183. package/toast/toast.component.scss +20 -25
  184. package/toggle/_toggle-theme.scss +48 -42
  185. package/toggle/toggle.scss +9 -21
  186. package/tooltip/_tooltip-theme.scss +13 -16
  187. package/tooltip/tooltip.scss +8 -10
  188. package/tree/_tree-theme.scss +20 -22
  189. package/tree/toggle.scss +3 -5
  190. package/tree/tree-option.scss +5 -6
  191. package/tree-select/_tree-select-theme.scss +11 -13
  192. package/tree-select/tree-select.scss +0 -4
  193. package/core/styles/_variables.scss +0 -1
package/modal/modal.scss CHANGED
@@ -1,11 +1,10 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
4
+ @use '../core/styles/common/tokens' as *;
5
5
 
6
6
  @use './modal-confirm';
7
7
 
8
- $tokens: meta.module-variables(tokens) !default;
9
8
 
10
9
  .kbq-modal {
11
10
  box-sizing: border-box;
@@ -14,7 +13,7 @@ $tokens: meta.module-variables(tokens) !default;
14
13
 
15
14
  top: 48px;
16
15
 
17
- border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
16
+ border-radius: kbq-css-variable(modal-size-border-radius);
18
17
 
19
18
  width: auto;
20
19
 
@@ -31,15 +30,15 @@ $tokens: meta.module-variables(tokens) !default;
31
30
  }
32
31
 
33
32
  &.kbq-modal_small {
34
- width: var(--kbq-modal-size-small-width, map.get($tokens, modal-size-small-width));
33
+ width: kbq-css-variable(modal-size-small-width);
35
34
  }
36
35
 
37
36
  &.kbq-modal_medium {
38
- width: var(--kbq-modal-size-medium-width, map.get($tokens, modal-size-medium-width));
37
+ width: kbq-css-variable(modal-size-medium-width);
39
38
  }
40
39
 
41
40
  &.kbq-modal_large {
42
- width: var(--kbq-modal-size-large-width, map.get($tokens, modal-size-large-width));
41
+ width: kbq-css-variable(modal-size-large-width);
43
42
  }
44
43
 
45
44
  // todo реализуем когда будем делать 2.0, пока нет возможности отслеживать наличие/отсутствие футера
@@ -75,7 +74,7 @@ $tokens: meta.module-variables(tokens) !default;
75
74
  .kbq-modal-content {
76
75
  position: relative;
77
76
 
78
- border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
77
+ border-radius: kbq-css-variable(modal-size-border-radius);
79
78
 
80
79
  background-clip: padding-box;
81
80
  }
@@ -86,13 +85,13 @@ $tokens: meta.module-variables(tokens) !default;
86
85
  justify-content: space-between;
87
86
 
88
87
  padding:
89
- var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
90
- var(--kbq-modal-size-header-padding-right, map.get($tokens, modal-size-header-padding-right))
91
- var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
92
- var(--kbq-modal-size-header-padding-left, map.get($tokens, modal-size-header-padding-left));
88
+ kbq-css-variable(modal-size-header-padding-vertical)
89
+ kbq-css-variable(modal-size-header-padding-right)
90
+ kbq-css-variable(modal-size-header-padding-vertical)
91
+ kbq-css-variable(modal-size-header-padding-left);
93
92
 
94
93
  & + .kbq-modal-body {
95
- padding-top: var(--kbq-modal-size-content-padding-top, map.get($tokens, modal-size-content-padding-top));
94
+ padding-top: kbq-css-variable(modal-size-content-padding-top);
96
95
  }
97
96
  }
98
97
 
@@ -111,13 +110,10 @@ $tokens: meta.module-variables(tokens) !default;
111
110
  max-height: calc(100vh - 260px);
112
111
 
113
112
  padding:
114
- var(
115
- --kbq-modal-size-content-padding-top-without-header,
116
- map.get($tokens, modal-size-content-padding-top-without-header)
117
- )
118
- var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal))
119
- var(--kbq-modal-size-content-padding-bottom, map.get($tokens, modal-size-content-padding-bottom))
120
- var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal));
113
+ kbq-css-variable(modal-size-content-padding-top-without-header)
114
+ kbq-css-variable(modal-size-content-padding-horizontal)
115
+ kbq-css-variable(modal-size-content-padding-bottom)
116
+ kbq-css-variable(modal-size-content-padding-horizontal);
121
117
 
122
118
  word-wrap: break-word;
123
119
  }
@@ -129,12 +125,10 @@ $tokens: meta.module-variables(tokens) !default;
129
125
  align-items: center;
130
126
 
131
127
  padding:
132
- var(--kbq-modal-size-footer-padding-vertical, map.get($tokens, modal-size-footer-padding-vertical))
133
- var(--kbq-modal-size-footer-padding-horizontal, map.get($tokens, modal-size-footer-padding-horizontal));
128
+ kbq-css-variable(modal-size-footer-padding-vertical)
129
+ kbq-css-variable(modal-size-footer-padding-horizontal);
134
130
 
135
- gap: var(
136
- --kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
137
- );
131
+ gap: kbq-css-variable(modal-size-footer-content-gap-horizontal);
138
132
  }
139
133
 
140
134
  .kbq-modal-mask {
@@ -3,10 +3,7 @@
3
3
 
4
4
  @use '../core/styles/common/list';
5
5
 
6
- @use '../core/styles/tokens';
7
-
8
-
9
- $tokens: meta.module-variables(tokens) !default;
6
+ @use '../core/styles/common/tokens' as *;
10
7
 
11
8
 
12
9
  .kbq-navbar-item.kbq-horizontal {
@@ -19,41 +16,41 @@ $tokens: meta.module-variables(tokens) !default;
19
16
  outline: none;
20
17
  -webkit-tap-highlight-color: transparent;
21
18
 
22
- min-height: map.get($tokens, size-5xl);
23
- min-width: map.get($tokens, size-5xl);
19
+ min-height: kbq-css-variable(size-5xl);
20
+ min-width: kbq-css-variable(size-5xl);
24
21
 
25
- padding: map.get($tokens, size-s);
22
+ padding: kbq-css-variable(size-s);
26
23
 
27
24
  justify-content: center;
28
25
 
29
26
  &:after {
30
- top: map.get($tokens, size-s);
31
- right: map.get($tokens, size-s);
32
- bottom: map.get($tokens, size-s);
33
- left: map.get($tokens, size-s);
27
+ top: kbq-css-variable(size-s);
28
+ right: kbq-css-variable(size-s);
29
+ bottom: kbq-css-variable(size-s);
30
+ left: kbq-css-variable(size-s);
34
31
  }
35
32
 
36
33
  & .kbq-navbar-item__title {
37
- padding-left: map.get($tokens, size-xxs);
38
- padding-right: map.get($tokens, size-xxs);
34
+ padding-left: kbq-css-variable(size-xxs);
35
+ padding-right: kbq-css-variable(size-xxs);
39
36
  }
40
37
 
41
38
  & .kbq-navbar-item__arrow-icon {
42
- padding-left: map.get($tokens, size-xxs);
39
+ padding-left: kbq-css-variable(size-xxs);
43
40
  }
44
41
 
45
42
  &.kbq-navbar-item_with-title:not(.kbq-navbar-item_collapsed) {
46
- padding: map.get($tokens, size-l) map.get($tokens, size-m);
43
+ padding: kbq-css-variable(size-l) kbq-css-variable(size-m);
47
44
 
48
45
  &:after {
49
- top: map.get($tokens, size-s);
46
+ top: kbq-css-variable(size-s);
50
47
  right: 0;
51
- bottom: map.get($tokens, size-s);
48
+ bottom: kbq-css-variable(size-s);
52
49
  left: 0;
53
50
  }
54
51
 
55
52
  & > .kbq-icon {
56
- padding-right: map.get($tokens, size-xxs);
53
+ padding-right: kbq-css-variable(size-xxs);
57
54
  }
58
55
  }
59
56
 
@@ -62,20 +59,20 @@ $tokens: meta.module-variables(tokens) !default;
62
59
 
63
60
  justify-content: center;
64
61
 
65
- padding-right: map.get($tokens, size-xxs);
62
+ padding-right: kbq-css-variable(size-xxs);
66
63
 
67
64
  &:after {
68
- top: map.get($tokens, size-s);
69
- right: map.get($tokens, size-xxs);
70
- bottom: map.get($tokens, size-s);
71
- left: map.get($tokens, size-s);
65
+ top: kbq-css-variable(size-s);
66
+ right: kbq-css-variable(size-xxs);
67
+ bottom: kbq-css-variable(size-s);
68
+ left: kbq-css-variable(size-s);
72
69
  }
73
70
  }
74
71
 
75
72
  &.kbq-navbar-item_collapsed {
76
73
  justify-content: center;
77
74
 
78
- padding: map.get($tokens, size-s);
75
+ padding: kbq-css-variable(size-s);
79
76
 
80
77
  & .kbq-navbar-item__container {
81
78
  display: none;
@@ -87,11 +84,11 @@ $tokens: meta.module-variables(tokens) !default;
87
84
 
88
85
  z-index: 1;
89
86
 
90
- top: map.get($tokens, size-xs);
91
- right: map.get($tokens, size-xs);
87
+ top: kbq-css-variable(size-xs);
88
+ right: kbq-css-variable(size-xs);
92
89
  }
93
90
 
94
91
  &.kbq-navbar-item_has-nested {
95
- padding: 0 map.get($tokens, size-m);
92
+ padding: 0 kbq-css-variable(size-m);
96
93
  }
97
94
  }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../core/styles/tokens';
5
+ @use '../core/styles/common/tokens' as *;
5
6
 
6
7
 
7
8
  $tokens: meta.module-variables(tokens) !default;
@@ -11,21 +12,21 @@ $tokens: meta.module-variables(tokens) !default;
11
12
  align-items: flex-start;
12
13
 
13
14
  & .kbq-navbar-item__container {
14
- gap: map.get($tokens, size-m);;
15
+ gap: kbq-css-variable(size-m);;
15
16
  }
16
17
 
17
18
  &.kbq-expanded {
18
- height: map.get($tokens, size-5xl);
19
+ height: kbq-css-variable(size-5xl);
19
20
 
20
- padding: map.get($tokens, size-l) map.get($tokens, size-xl);
21
+ padding: kbq-css-variable(size-l) kbq-css-variable(size-xl);
21
22
 
22
- gap: map.get($tokens, size-m);
23
+ gap: kbq-css-variable(size-m);
23
24
 
24
25
  &:after {
25
- top: map.get($tokens, size-xxs);
26
- right: map.get($tokens, size-s);
27
- bottom: map.get($tokens, size-xxs);
28
- left: map.get($tokens, size-s);
26
+ top: kbq-css-variable(size-xxs);
27
+ right: kbq-css-variable(size-s);
28
+ bottom: kbq-css-variable(size-xxs);
29
+ left: kbq-css-variable(size-s);
29
30
  }
30
31
 
31
32
  &.kbq-navbar-bento {
@@ -36,44 +37,44 @@ $tokens: meta.module-variables(tokens) !default;
36
37
  justify-content: center;
37
38
  align-items: center;
38
39
 
39
- top: map.get($tokens, size-xxs);
40
- right: map.get($tokens, size-xxs);
40
+ top: kbq-css-variable(size-xxs);
41
+ right: kbq-css-variable(size-xxs);
41
42
 
42
43
  z-index: 1;
43
44
 
44
- padding: map.get($tokens, size-s);
45
+ padding: kbq-css-variable(size-s);
45
46
 
46
- height: map.get($tokens, size-5xl);
47
- width: map.get($tokens, size-5xl);
47
+ height: kbq-css-variable(size-5xl);
48
+ width: kbq-css-variable(size-5xl);
48
49
 
49
50
  &:after {
50
- top: map.get($tokens, size-s);
51
- right: map.get($tokens, size-s);
52
- bottom: map.get($tokens, size-s);
53
- left: map.get($tokens, size-s);
51
+ top: kbq-css-variable(size-s);
52
+ right: kbq-css-variable(size-s);
53
+ bottom: kbq-css-variable(size-s);
54
+ left: kbq-css-variable(size-s);
54
55
  }
55
56
  }
56
57
 
57
58
  &.kbq-navbar-item_has-nested {
58
59
  align-items: center;
59
60
 
60
- padding: 0 map.get($tokens, size-m);
61
+ padding: 0 kbq-css-variable(size-m);
61
62
  }
62
63
  }
63
64
 
64
65
  &.kbq-collapsed {
65
- height: map.get($tokens, size-5xl);
66
- width: map.get($tokens, size-5xl);
66
+ height: kbq-css-variable(size-5xl);
67
+ width: kbq-css-variable(size-5xl);
67
68
 
68
- padding: map.get($tokens, size-l);
69
+ padding: kbq-css-variable(size-l);
69
70
 
70
71
  justify-content: center;
71
72
 
72
73
  &:after {
73
- top: map.get($tokens, size-s);
74
- right: map.get($tokens, size-s);
75
- bottom: map.get($tokens, size-s);
76
- left: map.get($tokens, size-s);
74
+ top: kbq-css-variable(size-s);
75
+ right: kbq-css-variable(size-s);
76
+ bottom: kbq-css-variable(size-s);
77
+ left: kbq-css-variable(size-s);
77
78
  }
78
79
 
79
80
  & .kbq-badge {
@@ -81,8 +82,8 @@ $tokens: meta.module-variables(tokens) !default;
81
82
 
82
83
  z-index: 1;
83
84
 
84
- top: map.get($tokens, size-xs);
85
- right: map.get($tokens, size-xs);
85
+ top: kbq-css-variable(size-xs);
86
+ right: kbq-css-variable(size-xs);
86
87
  }
87
88
 
88
89
  & .kbq-navbar-item__container {
@@ -2,45 +2,44 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../core/styles/typography/typography-utils' as *;
5
+ @use '../core/styles/common/tokens' as *;
5
6
 
6
7
 
7
- @mixin kbq-navbar-item($state) {
8
+ @mixin kbq-navbar-item($component, $state-name) {
9
+ $state: map.get($component, $state-name);
10
+
8
11
  &:not(.kbq-navbar-item_has-nested) {
9
12
  &:after {
10
13
  display: block;
11
- background: map.get($state, background);
14
+ background: kbq-css-variable(navbar-item-#{$state-name}-background, map.get($state, background));
12
15
  }
13
16
  }
14
17
 
15
18
  .kbq-navbar-title {
16
- color: map.get($state, text);
19
+ color: kbq-css-variable(navbar-item-#{$state-name}-text, map.get($state, text));
17
20
  }
18
21
 
19
22
  & > .kbq-icon {
20
- color: map.get($state, icon-left) !important;
23
+ color: kbq-css-variable(navbar-item-#{$state-name}-icon-left, map.get($state, icon-left)) !important;
21
24
  }
22
25
 
23
26
  .kbq-navbar-item__arrow-icon {
24
- color: map.get($state, icon-right) !important;
27
+ color: kbq-css-variable(navbar-item-#{$state-name}-icon-right, map.get($state, icon-right)) !important;
25
28
  }
26
29
  }
27
30
 
28
31
 
29
32
  @mixin kbq-navbar-theme($theme) {
30
- $line: map.get($theme, line);
31
- $states-line: map.get(map.get($theme, states), line);
32
-
33
- $navbar: map.get(map.get($theme, components), navbar);
33
+ $navbar: map.get($theme, components, navbar);
34
34
  $item: map.get($navbar, item);
35
35
 
36
-
37
36
  .kbq-navbar,
38
37
  .kbq-vertical-navbar .kbq-vertical-navbar__container {
39
- background-color: map.get($navbar, background);
38
+ background-color: kbq-css-variable(navbar-background, map.get($navbar, background));
40
39
  }
41
40
 
42
41
  .kbq-vertical-navbar .kbq-vertical-navbar__container {
43
- border-right: 1px solid map.get($navbar, border);
42
+ border-right: 1px solid kbq-css-variable(navbar-border, map.get($navbar, border));
44
43
  }
45
44
 
46
45
  .kbq-navbar-item,
@@ -48,10 +47,10 @@
48
47
  .kbq-navbar-toggle {
49
48
  cursor: pointer;
50
49
 
51
- @include kbq-navbar-item(map.get($item, default));
50
+ @include kbq-navbar-item($item, default);
52
51
 
53
52
  &:hover:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
54
- @include kbq-navbar-item(map.get($item, hover));
53
+ @include kbq-navbar-item($item, hover);
55
54
  }
56
55
 
57
56
  &.cdk-focused.cdk-keyboard-focused {
@@ -59,13 +58,15 @@
59
58
 
60
59
  &:after {
61
60
  display: block;
62
- box-shadow: inset 0 0 0 2px map.get($states-line, focus-theme)
61
+ box-shadow: inset 0 0 0 2px kbq-css-variable(
62
+ states-line-focus-theme, map.get($theme, states, line, focus-theme)
63
+ )
63
64
  };
64
65
  }
65
66
 
66
67
  &:active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand),
67
68
  &.kbq-active:not(.kbq-disabled, .kbq-vertical.kbq-navbar-brand) {
68
- @include kbq-navbar-item(map.get($item, selected));
69
+ @include kbq-navbar-item($item, selected);
69
70
  }
70
71
 
71
72
  &.kbq-navbar-focusable-item {
@@ -73,7 +74,7 @@
73
74
  }
74
75
 
75
76
  &.kbq-disabled {
76
- @include kbq-navbar-item(map.get($item, disabled));
77
+ @include kbq-navbar-item($item, disabled);
77
78
 
78
79
  pointer-events: none;
79
80
  cursor: default;
@@ -93,7 +94,7 @@
93
94
  }
94
95
 
95
96
  .kbq-navbar-divider {
96
- background: map.get($line, contrast-fade);
97
+ background: kbq-css-variable(line-contrast-fade, map.get($theme, line, contrast-fade));
97
98
  }
98
99
  }
99
100
 
@@ -107,15 +108,13 @@ button {
107
108
  }
108
109
 
109
110
  @mixin kbq-navbar-typography($config) {
110
- $tokens: map.get($config, tokens);
111
-
112
111
  .kbq-navbar-title {
113
- @include kbq-typography-level-to-styles($config, 'text-normal-strong');
112
+ @include kbq-typography-level-to-styles($config, text-normal-strong);
114
113
  }
115
114
 
116
115
  .kbq-navbar-brand {
117
116
  .kbq-navbar-title {
118
- @include kbq-typography-level-to-styles($config, map.get($tokens, navbar-font-title));
117
+ @include kbq-typography-css-variables(navbar, title);
119
118
  }
120
119
  }
121
120
  }
@@ -2,6 +2,7 @@
2
2
  @use 'sass:map';
3
3
 
4
4
  @use '../core/styles/tokens';
5
+ @use '../core/styles/common/tokens' as *;
5
6
 
6
7
 
7
8
  $tokens: meta.module-variables(tokens) !default;
@@ -15,7 +16,7 @@ $tokens: meta.module-variables(tokens) !default;
15
16
 
16
17
  display: flex;
17
18
 
18
- border-radius: map.get($tokens, size-s);
19
+ border-radius: kbq-css-variable(size-s);
19
20
 
20
21
  &:after {
21
22
  position: absolute;
@@ -23,10 +24,7 @@ $tokens: meta.module-variables(tokens) !default;
23
24
 
24
25
  display: none;
25
26
 
26
- border-radius: var(
27
- --kbq-navbar-item-size-content-border-radius,
28
- map.get($tokens, navbar-item-size-content-border-radius)
29
- );
27
+ border-radius: kbq-css-variable(navbar-item-size-content-border-radius);
30
28
  }
31
29
 
32
30
  & .kbq-navbar-title {
@@ -39,21 +37,21 @@ a.kbq-navbar-brand {
39
37
  }
40
38
 
41
39
  .kbq-navbar-brand.kbq-horizontal {
42
- padding: map.get($tokens, size-s) map.get($tokens, size-xs) map.get($tokens, size-s) map.get($tokens, size-xxs);
40
+ padding: kbq-css-variable(size-s) kbq-css-variable(size-xs) kbq-css-variable(size-s) kbq-css-variable(size-xxs);
43
41
 
44
42
  align-items: center;
45
43
 
46
- gap: map.get($tokens, size-s);
44
+ gap: kbq-css-variable(size-s);
47
45
 
48
46
  &:after {
49
- top: map.get($tokens, size-xxs);
50
- right: map.get($tokens, size-xxs);
51
- bottom: map.get($tokens, size-xxs);
47
+ top: kbq-css-variable(size-xxs);
48
+ right: kbq-css-variable(size-xxs);
49
+ bottom: kbq-css-variable(size-xxs);
52
50
  left: 0;
53
51
  }
54
52
 
55
53
  & .kbq-navbar-title {
56
- padding-right: map.get($tokens, size-m);
54
+ padding-right: kbq-css-variable(size-m);
57
55
  }
58
56
  }
59
57
 
@@ -66,10 +64,10 @@ a.kbq-navbar-brand {
66
64
  display: block;
67
65
  align-items: center;
68
66
 
69
- padding-top: map.get($tokens, size-xxs);
70
- padding-bottom: map.get($tokens, size-xxs);
67
+ padding-top: kbq-css-variable(size-xxs);
68
+ padding-bottom: kbq-css-variable(size-xxs);
71
69
 
72
- height: map.get($tokens, size-3xl);
70
+ height: kbq-css-variable(size-3xl);
73
71
 
74
72
  padding-left: 0;
75
73
 
@@ -81,10 +79,10 @@ a.kbq-navbar-brand {
81
79
  &.kbq-expanded {
82
80
  position: relative;
83
81
 
84
- height: map.get($tokens, size-4xl);
85
- width: map.get($tokens, size-4xl);
82
+ height: kbq-css-variable(size-4xl);
83
+ width: kbq-css-variable(size-4xl);
86
84
 
87
- margin: map.get($tokens, size-l) map.get($tokens, size-l) map.get($tokens, size-4xl);
85
+ margin: kbq-css-variable(size-l) kbq-css-variable(size-l) kbq-css-variable(size-4xl);
88
86
 
89
87
  flex-direction: column;
90
88
 
@@ -96,7 +94,7 @@ a.kbq-navbar-brand {
96
94
  }
97
95
 
98
96
  & .kbq-navbar-logo {
99
- min-height: map.get($tokens, size-4xl);
97
+ min-height: kbq-css-variable(size-4xl);
100
98
 
101
99
  justify-content: center;
102
100
  }
@@ -104,21 +102,21 @@ a.kbq-navbar-brand {
104
102
  & .kbq-navbar-title {
105
103
  position: absolute;
106
104
 
107
- left: map.get($tokens, size-xxs);
108
- bottom: - map.get($tokens, size-4xl);
105
+ left: kbq-css-variable(size-xxs);
106
+ bottom: - kbq-css-variable(size-4xl);
109
107
  max-width: 200px;
110
108
  }
111
109
  }
112
110
 
113
111
  &.kbq-collapsed {
114
- height: map.get($tokens, size-5xl);
115
- width: map.get($tokens, size-5xl);
112
+ height: kbq-css-variable(size-5xl);
113
+ width: kbq-css-variable(size-5xl);
116
114
 
117
115
  &:after {
118
- top: map.get($tokens, size-xxs);
119
- right: map.get($tokens, size-xxs);
120
- bottom: map.get($tokens, size-xxs);
121
- left: map.get($tokens, size-xxs);
116
+ top: kbq-css-variable(size-xxs);
117
+ right: kbq-css-variable(size-xxs);
118
+ bottom: kbq-css-variable(size-xxs);
119
+ left: kbq-css-variable(size-xxs);
122
120
  }
123
121
 
124
122
  & .kbq-navbar-title {
@@ -1,10 +1,7 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
5
-
6
-
7
- $tokens: meta.module-variables(tokens) !default;
4
+ @use '../core/styles/common/tokens' as *;
8
5
 
9
6
 
10
7
  .kbq-navbar-divider {
@@ -14,7 +11,7 @@ $tokens: meta.module-variables(tokens) !default;
14
11
  .kbq-navbar-divider.kbq-vertical {
15
12
  height: 1px;
16
13
 
17
- margin: map.get($tokens, size-s) map.get($tokens, size-l);
14
+ margin: kbq-css-variable(size-s) kbq-css-variable(size-l);
18
15
  }
19
16
 
20
17
  .kbq-navbar-divider.kbq-horizontal {
@@ -22,6 +19,6 @@ $tokens: meta.module-variables(tokens) !default;
22
19
 
23
20
  height: 12px;
24
21
 
25
- margin-left: map.get($tokens, size-m);
26
- margin-right: map.get($tokens, size-m);
22
+ margin-left: kbq-css-variable(size-m);
23
+ margin-right: kbq-css-variable(size-m);
27
24
  }
@@ -3,14 +3,12 @@
3
3
 
4
4
  @use '../core/styles/common/list';
5
5
 
6
- @use '../core/styles/tokens';
6
+ @use '../core/styles/common/tokens' as *;
7
7
 
8
8
  @use 'navbar-item_vertical';
9
9
  @use 'navbar-item_horizontal';
10
10
 
11
11
 
12
- $tokens: meta.module-variables(tokens) !default;
13
-
14
12
  .kbq-navbar-item {
15
13
  box-sizing: border-box;
16
14
 
@@ -19,14 +17,11 @@ $tokens: meta.module-variables(tokens) !default;
19
17
  display: flex;
20
18
  align-items: center;
21
19
 
22
- border-radius: var(
23
- --kbq-navbar-item-size-content-border-radius,
24
- map.get($tokens, navbar-item-size-content-border-radius)
25
- );
20
+ border-radius: kbq-css-variable(navbar-item-size-content-border-radius);
26
21
 
27
22
  & .kbq-icon {
28
- min-width: map.get($tokens, size-l);
29
- min-height: map.get($tokens, size-l);
23
+ min-width: kbq-css-variable(size-l);
24
+ min-height: kbq-css-variable(size-l);
30
25
  }
31
26
 
32
27
  &:after {
@@ -35,10 +30,7 @@ $tokens: meta.module-variables(tokens) !default;
35
30
 
36
31
  display: none;
37
32
 
38
- border-radius: var(
39
- --kbq-navbar-item-size-content-border-radius,
40
- map.get($tokens, navbar-item-size-content-border-radius)
41
- );
33
+ border-radius: kbq-css-variable(navbar-item-size-content-border-radius);
42
34
  }
43
35
 
44
36
  &.kbq-horizontal {
@@ -1,10 +1,7 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/tokens';
5
-
6
-
7
- $tokens: meta.module-variables(tokens) !default;
4
+ @use '../core/styles/common/tokens' as *;
8
5
 
9
6
 
10
7
  .kbq-navbar {
@@ -28,5 +25,5 @@ $tokens: meta.module-variables(tokens) !default;
28
25
  }
29
26
 
30
27
  .kbq-navbar .kbq-navbar-container + .kbq-navbar-container {
31
- margin-left: map.get($tokens, size-xxl);
28
+ margin-left: kbq-css-variable(size-xxl);
32
29
  }