@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.
- package/alert/_alert-theme.scss +19 -33
- package/alert/alert.component.scss +41 -136
- package/autocomplete/_autocomplete-theme.scss +3 -2
- package/autocomplete/autocomplete.scss +7 -14
- package/badge/_badge-theme.scss +31 -45
- package/badge/badge.component.scss +15 -35
- package/button/_button-base.scss +7 -13
- package/button/_button-theme.scss +29 -85
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -16
- package/button-toggle/_button-toggle-theme.scss +18 -18
- package/button-toggle/button-toggle.scss +9 -32
- package/card/_card-theme.scss +19 -17
- package/card/card.component.scss +2 -4
- package/checkbox/_checkbox-theme.scss +44 -43
- package/checkbox/checkbox.scss +13 -18
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +21 -66
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/option/_optgroup-theme.scss +4 -5
- package/core/option/_option-action-theme.scss +7 -7
- package/core/option/_option-theme.scss +16 -20
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
- package/core/styles/common/_groups.scss +3 -5
- package/core/styles/common/_list.scss +14 -18
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_select.scss +11 -16
- package/core/styles/common/_tokens.scss +30 -9
- package/core/styles/theming/_components-theming.scss +151 -131
- package/core/styles/visual/_layout.scss +14 -16
- package/datepicker/_datepicker-theme.scss +24 -39
- package/datepicker/calendar-body.scss +3 -8
- package/datepicker/calendar-header.scss +4 -9
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +4 -12
- package/datepicker/datepicker-input.scss +0 -4
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +3 -1
- package/divider/divider.scss +9 -25
- package/dl/_dl-theme.scss +5 -6
- package/dl/dl.scss +5 -19
- package/dropdown/_dropdown-theme.scss +21 -21
- package/dropdown/dropdown-item.scss +3 -11
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1 -1
- package/fesm2022/koobiq-components-core.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 +2 -2
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- 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-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +4 -4
- package/fesm2022/koobiq-components-timepicker.mjs +9 -1
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -1
- package/fesm2022/koobiq-components-title.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-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +109 -68
- package/file-upload/file-upload.scss +0 -5
- package/file-upload/multiple-file-upload.component.scss +32 -98
- package/file-upload/single-file-upload.component.scss +12 -31
- package/form-field/_form-field-theme.scss +32 -34
- package/form-field/_hint-theme.scss +16 -19
- package/form-field/cleaner.scss +3 -8
- package/form-field/form-field.scss +11 -12
- package/form-field/hint.scss +3 -7
- package/form-field/password-toggle.scss +3 -9
- package/form-field/stepper.scss +4 -10
- package/icon/_icon-button-theme.scss +35 -35
- package/icon/_icon-item-theme.scss +46 -31
- package/icon/_icon-theme.scss +9 -15
- package/icon/icon-button.scss +5 -17
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +12 -7
- package/icon/icon.scss +0 -5
- package/input/_input-theme.scss +2 -3
- package/input/input.scss +2 -1
- package/link/_link-theme.scss +25 -42
- package/list/_list-theme.scss +18 -17
- package/list/list.scss +0 -4
- package/loader-overlay/_loader-overlay-theme.scss +13 -16
- package/loader-overlay/loader-overlay.scss +9 -32
- package/markdown/_markdown-theme.scss +41 -44
- package/markdown/markdown.scss +38 -88
- package/modal/_modal-confirm.scss +2 -6
- package/modal/_modal-theme.scss +11 -12
- package/modal/modal.scss +18 -24
- package/navbar/_navbar-item_horizontal.scss +24 -27
- package/navbar/_navbar-item_vertical.scss +28 -27
- package/navbar/_navbar-theme.scss +21 -22
- package/navbar/navbar-brand.scss +24 -26
- package/navbar/navbar-divider.scss +4 -7
- package/navbar/navbar-item.scss +5 -13
- package/navbar/navbar.scss +2 -5
- package/navbar/vertical-navbar.scss +3 -5
- package/package.json +9 -9
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover.scss +18 -24
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -10
- package/progress-bar/progress-bar.scss +6 -18
- package/progress-spinner/_progress-spinner-theme.scss +6 -7
- package/progress-spinner/progress-spinner.scss +8 -17
- package/radio/_radio-theme.scss +29 -37
- package/radio/radio.scss +17 -38
- package/risk-level/_risk-level-theme.scss +25 -30
- package/risk-level/risk-level.component.scss +5 -8
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/_scrollbar-component-theme.scss +14 -17
- package/scrollbar/scrollbar.component.scss +7 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.scss +3 -10
- package/sidepanel/_sidepanel-theme.scss +8 -9
- package/sidepanel/sidepanel.scss +19 -30
- package/splitter/_splitter-theme.scss +3 -3
- package/table/_table-theme.scss +9 -8
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +4 -7
- package/tabs/_tabs-theme.scss +77 -44
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-list.scss +6 -5
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +4 -6
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +8 -9
- package/timezone/timezone-option.component.scss +5 -7
- package/timezone/timezone-select.component.scss +2 -3
- package/toast/_toast-theme.scss +15 -14
- package/toast/toast-container.component.scss +4 -7
- package/toast/toast.component.scss +20 -25
- package/toggle/_toggle-theme.scss +48 -42
- package/toggle/toggle.scss +9 -21
- package/tooltip/_tooltip-theme.scss +13 -16
- package/tooltip/tooltip.scss +8 -10
- package/tree/_tree-theme.scss +20 -22
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -6
- package/tree-select/_tree-select-theme.scss +11 -13
- package/tree-select/tree-select.scss +0 -4
- 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:
|
|
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:
|
|
33
|
+
width: kbq-css-variable(modal-size-small-width);
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
&.kbq-modal_medium {
|
|
38
|
-
width:
|
|
37
|
+
width: kbq-css-variable(modal-size-medium-width);
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
&.kbq-modal_large {
|
|
42
|
-
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:
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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:
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
133
|
-
|
|
128
|
+
kbq-css-variable(modal-size-footer-padding-vertical)
|
|
129
|
+
kbq-css-variable(modal-size-footer-padding-horizontal);
|
|
134
130
|
|
|
135
|
-
gap:
|
|
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:
|
|
23
|
-
min-width:
|
|
19
|
+
min-height: kbq-css-variable(size-5xl);
|
|
20
|
+
min-width: kbq-css-variable(size-5xl);
|
|
24
21
|
|
|
25
|
-
padding:
|
|
22
|
+
padding: kbq-css-variable(size-s);
|
|
26
23
|
|
|
27
24
|
justify-content: center;
|
|
28
25
|
|
|
29
26
|
&:after {
|
|
30
|
-
top:
|
|
31
|
-
right:
|
|
32
|
-
bottom:
|
|
33
|
-
left:
|
|
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:
|
|
38
|
-
padding-right:
|
|
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:
|
|
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:
|
|
43
|
+
padding: kbq-css-variable(size-l) kbq-css-variable(size-m);
|
|
47
44
|
|
|
48
45
|
&:after {
|
|
49
|
-
top:
|
|
46
|
+
top: kbq-css-variable(size-s);
|
|
50
47
|
right: 0;
|
|
51
|
-
bottom:
|
|
48
|
+
bottom: kbq-css-variable(size-s);
|
|
52
49
|
left: 0;
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
& > .kbq-icon {
|
|
56
|
-
padding-right:
|
|
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:
|
|
62
|
+
padding-right: kbq-css-variable(size-xxs);
|
|
66
63
|
|
|
67
64
|
&:after {
|
|
68
|
-
top:
|
|
69
|
-
right:
|
|
70
|
-
bottom:
|
|
71
|
-
left:
|
|
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:
|
|
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:
|
|
91
|
-
right:
|
|
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
|
|
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:
|
|
15
|
+
gap: kbq-css-variable(size-m);;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
&.kbq-expanded {
|
|
18
|
-
height:
|
|
19
|
+
height: kbq-css-variable(size-5xl);
|
|
19
20
|
|
|
20
|
-
padding:
|
|
21
|
+
padding: kbq-css-variable(size-l) kbq-css-variable(size-xl);
|
|
21
22
|
|
|
22
|
-
gap:
|
|
23
|
+
gap: kbq-css-variable(size-m);
|
|
23
24
|
|
|
24
25
|
&:after {
|
|
25
|
-
top:
|
|
26
|
-
right:
|
|
27
|
-
bottom:
|
|
28
|
-
left:
|
|
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:
|
|
40
|
-
right:
|
|
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:
|
|
45
|
+
padding: kbq-css-variable(size-s);
|
|
45
46
|
|
|
46
|
-
height:
|
|
47
|
-
width:
|
|
47
|
+
height: kbq-css-variable(size-5xl);
|
|
48
|
+
width: kbq-css-variable(size-5xl);
|
|
48
49
|
|
|
49
50
|
&:after {
|
|
50
|
-
top:
|
|
51
|
-
right:
|
|
52
|
-
bottom:
|
|
53
|
-
left:
|
|
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
|
|
61
|
+
padding: 0 kbq-css-variable(size-m);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
&.kbq-collapsed {
|
|
65
|
-
height:
|
|
66
|
-
width:
|
|
66
|
+
height: kbq-css-variable(size-5xl);
|
|
67
|
+
width: kbq-css-variable(size-5xl);
|
|
67
68
|
|
|
68
|
-
padding:
|
|
69
|
+
padding: kbq-css-variable(size-l);
|
|
69
70
|
|
|
70
71
|
justify-content: center;
|
|
71
72
|
|
|
72
73
|
&:after {
|
|
73
|
-
top:
|
|
74
|
-
right:
|
|
75
|
-
bottom:
|
|
76
|
-
left:
|
|
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:
|
|
85
|
-
right:
|
|
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
|
-
$
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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,
|
|
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-
|
|
117
|
+
@include kbq-typography-css-variables(navbar, title);
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
}
|
package/navbar/navbar-brand.scss
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
44
|
+
gap: kbq-css-variable(size-s);
|
|
47
45
|
|
|
48
46
|
&:after {
|
|
49
|
-
top:
|
|
50
|
-
right:
|
|
51
|
-
bottom:
|
|
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:
|
|
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:
|
|
70
|
-
padding-bottom:
|
|
67
|
+
padding-top: kbq-css-variable(size-xxs);
|
|
68
|
+
padding-bottom: kbq-css-variable(size-xxs);
|
|
71
69
|
|
|
72
|
-
height:
|
|
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:
|
|
85
|
-
width:
|
|
82
|
+
height: kbq-css-variable(size-4xl);
|
|
83
|
+
width: kbq-css-variable(size-4xl);
|
|
86
84
|
|
|
87
|
-
margin:
|
|
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:
|
|
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:
|
|
108
|
-
bottom: -
|
|
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:
|
|
115
|
-
width:
|
|
112
|
+
height: kbq-css-variable(size-5xl);
|
|
113
|
+
width: kbq-css-variable(size-5xl);
|
|
116
114
|
|
|
117
115
|
&:after {
|
|
118
|
-
top:
|
|
119
|
-
right:
|
|
120
|
-
bottom:
|
|
121
|
-
left:
|
|
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:
|
|
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:
|
|
26
|
-
margin-right:
|
|
22
|
+
margin-left: kbq-css-variable(size-m);
|
|
23
|
+
margin-right: kbq-css-variable(size-m);
|
|
27
24
|
}
|
package/navbar/navbar-item.scss
CHANGED
|
@@ -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:
|
|
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:
|
|
29
|
-
min-height:
|
|
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:
|
|
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 {
|
package/navbar/navbar.scss
CHANGED
|
@@ -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:
|
|
28
|
+
margin-left: kbq-css-variable(size-xxl);
|
|
32
29
|
}
|