@koobiq/components 17.0.0-rc.5 → 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 -21
- package/alert/alert.component.scss +39 -41
- 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/README.md +1 -0
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +29 -65
- 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 +28 -22
- 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/datepicker/datepicker-animations.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/input/input-number.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/splitter/splitter.component.mjs +2 -2
- package/esm2022/tabs/tab-body.component.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +11 -3
- 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/tree-base.mjs +2 -2
- 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-datepicker.mjs +1 -1
- package/fesm2022/koobiq-components-datepicker.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-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs +3 -3
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- 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 +3 -3
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +1 -1
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +5 -5
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +1 -1
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +10 -2
- 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/fesm2022/koobiq-components-tree.mjs +1 -1
- package/fesm2022/koobiq-components-tree.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 +22 -19
- 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.component.d.ts +1 -1
- package/modal/modal.scss +19 -25
- 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/README.md +1 -0
- 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-body.component.d.ts +1 -1
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -8
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-list.scss +6 -5
- package/tags/tag.component.d.ts +1 -1
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +6 -8
- package/timepicker/timepicker.directive.d.ts +1 -1
- 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-base.d.ts +1 -1
- 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/tabs/_tabs-theme.scss
CHANGED
|
@@ -2,96 +2,111 @@
|
|
|
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-tab-item-state($
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
@mixin kbq-tab-item-state($component, $type, $sub-type, $style-name) {
|
|
9
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
10
|
+
|
|
11
|
+
$base: tabs-tab-item-#{$type}-#{$sub-type}-#{$style-name};
|
|
12
|
+
|
|
13
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
14
|
+
color: kbq-css-variable(#{$base}-text, map.get($style, text));
|
|
10
15
|
|
|
11
16
|
& .kbq-icon {
|
|
12
|
-
color: map.get($
|
|
17
|
+
color: kbq-css-variable(#{$base}-icon, map.get($style, icon));
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
@mixin kbq-tab-item-style($
|
|
17
|
-
@include kbq-tab-item-state(
|
|
21
|
+
@mixin kbq-tab-item-style($component, $type, $sub-type) {
|
|
22
|
+
@include kbq-tab-item-state($component, $type, $sub-type, default);
|
|
18
23
|
|
|
19
24
|
&:hover:not(.kbq-disabled) {
|
|
20
|
-
@include kbq-tab-item-state(
|
|
25
|
+
@include kbq-tab-item-state($component, $type, $sub-type, states-hover);
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
&.kbq-selected {
|
|
24
|
-
@include kbq-tab-item-state(
|
|
29
|
+
@include kbq-tab-item-state($component, $type, $sub-type, states-selected);
|
|
25
30
|
|
|
26
31
|
&:hover {
|
|
27
|
-
@include kbq-tab-item-state(
|
|
32
|
+
@include kbq-tab-item-state($component, $type, $sub-type, states-selected-hover);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
&.cdk-keyboard-focused {
|
|
32
|
-
border-color:
|
|
37
|
+
border-color: kbq-css-variable(
|
|
38
|
+
tabs-tab-item-#{$type}-#{$sub-type}-states-focused-border-color,
|
|
39
|
+
map.get($component, $type, $sub-type, states-focused, border-color)
|
|
40
|
+
);
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
&.kbq-disabled {
|
|
36
|
-
@include kbq-tab-item-state(
|
|
44
|
+
@include kbq-tab-item-state($component, $type, $sub-type, states-disabled);
|
|
37
45
|
|
|
38
46
|
&.kbq-selected {
|
|
39
|
-
@include kbq-tab-item-state(
|
|
47
|
+
@include kbq-tab-item-state($component, $type, $sub-type, states-selected-disabled);
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
@mixin kbq-tab-stack-style($tab-stack) {
|
|
45
|
-
.kbq-tab-header {
|
|
46
|
-
background: map.get($tab-stack, background);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
52
|
//noinspection ALL
|
|
51
53
|
@mixin kbq-tabs-theme($theme) {
|
|
52
54
|
$tab-item: map.get(map.get($theme, components), tab-item);
|
|
53
|
-
|
|
54
55
|
$tab-stack: map.get(map.get($theme, components), tab-stack);
|
|
55
56
|
|
|
56
|
-
$tab-stack_filled: map.get($tab-stack, filled);
|
|
57
|
-
$tab-item_filled: map.get($tab-item, filled);
|
|
58
|
-
|
|
59
|
-
$tab-stack_transparent: map.get($tab-stack, transparent);
|
|
60
|
-
$tab-item_transparent: map.get($tab-item, transparent);
|
|
61
|
-
|
|
62
57
|
.kbq-tab-group {
|
|
63
58
|
&.kbq-tab-group_filled {
|
|
64
59
|
&.kbq-tab-group_on-background {
|
|
65
|
-
|
|
60
|
+
.kbq-tab-header {
|
|
61
|
+
background: kbq-css-variable(
|
|
62
|
+
tabs-tab-stack-filled-on-background-background,
|
|
63
|
+
map.get($tab-stack, filled, on-background, background)
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
66
|
|
|
67
67
|
& .kbq-tab-label {
|
|
68
|
-
@include kbq-tab-item-style(
|
|
68
|
+
@include kbq-tab-item-style($tab-item, filled, on-background);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&.kbq-tab-group_on-surface {
|
|
73
|
-
|
|
73
|
+
.kbq-tab-header {
|
|
74
|
+
background: kbq-css-variable(
|
|
75
|
+
tabs-tab-stack-filled-on-surface-background,
|
|
76
|
+
map.get($tab-stack, filled, on-surface, background)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
74
79
|
|
|
75
80
|
& .kbq-tab-label {
|
|
76
|
-
@include kbq-tab-item-style(
|
|
81
|
+
@include kbq-tab-item-style($tab-item, filled, on-background);
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
&.kbq-tab-group_transparent {
|
|
82
87
|
&.kbq-tab-group_on-background {
|
|
83
|
-
|
|
88
|
+
.kbq-tab-header {
|
|
89
|
+
background: kbq-css-variable(
|
|
90
|
+
tabs-tab-stack-transparent-on-background-background,
|
|
91
|
+
map.get($tab-stack, transparent, on-background, background)
|
|
92
|
+
);
|
|
93
|
+
}
|
|
84
94
|
|
|
85
95
|
& .kbq-tab-label {
|
|
86
|
-
@include kbq-tab-item-style(
|
|
96
|
+
@include kbq-tab-item-style($tab-item, transparent, on-background);
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
&.kbq-tab-group_on-surface {
|
|
91
|
-
|
|
101
|
+
.kbq-tab-header {
|
|
102
|
+
background: kbq-css-variable(
|
|
103
|
+
tabs-tab-stack-transparent-on-surface-background,
|
|
104
|
+
map.get($tab-stack, transparent, on-surface, background)
|
|
105
|
+
);
|
|
106
|
+
}
|
|
92
107
|
|
|
93
108
|
& .kbq-tab-label {
|
|
94
|
-
@include kbq-tab-item-style(
|
|
109
|
+
@include kbq-tab-item-style($tab-item, transparent, on-background);
|
|
95
110
|
}
|
|
96
111
|
}
|
|
97
112
|
}
|
|
@@ -100,36 +115,56 @@
|
|
|
100
115
|
.kbq-tab-nav-bar {
|
|
101
116
|
&.kbq-tab-nav-bar_filled {
|
|
102
117
|
&.kbq-tab-nav-bar_on-background {
|
|
103
|
-
|
|
118
|
+
.kbq-tab-header {
|
|
119
|
+
background: kbq-css-variable(
|
|
120
|
+
tabs-tab-stack-filled-on-background-background,
|
|
121
|
+
map.get($tab-stack, filled, on-background, background)
|
|
122
|
+
);
|
|
123
|
+
}
|
|
104
124
|
|
|
105
125
|
& .kbq-tab-link {
|
|
106
|
-
@include kbq-tab-item-style(
|
|
126
|
+
@include kbq-tab-item-style($tab-item, filled, on-background);
|
|
107
127
|
}
|
|
108
128
|
}
|
|
109
129
|
|
|
110
130
|
&.kbq-tab-nav-bar_on-surface {
|
|
111
|
-
|
|
131
|
+
.kbq-tab-header {
|
|
132
|
+
background: kbq-css-variable(
|
|
133
|
+
tabs-tab-stack-filled-on-surface-background,
|
|
134
|
+
map.get($tab-stack, filled, on-surface, background)
|
|
135
|
+
);
|
|
136
|
+
}
|
|
112
137
|
|
|
113
138
|
& .kbq-tab-link {
|
|
114
|
-
@include kbq-tab-item-style(
|
|
139
|
+
@include kbq-tab-item-style($tab-item, filled, on-background);
|
|
115
140
|
}
|
|
116
141
|
}
|
|
117
142
|
}
|
|
118
143
|
|
|
119
144
|
&.kbq-tab-nav-bar_transparent {
|
|
120
145
|
&.kbq-tab-nav-bar_on-background {
|
|
121
|
-
|
|
146
|
+
.kbq-tab-header {
|
|
147
|
+
background: kbq-css-variable(
|
|
148
|
+
tabs-tab-stack-transparent-on-background-background,
|
|
149
|
+
map.get($tab-stack, transparent, on-background, background)
|
|
150
|
+
);
|
|
151
|
+
}
|
|
122
152
|
|
|
123
153
|
& .kbq-tab-link {
|
|
124
|
-
@include kbq-tab-item-style(
|
|
154
|
+
@include kbq-tab-item-style($tab-item, transparent, on-background);
|
|
125
155
|
}
|
|
126
156
|
}
|
|
127
157
|
|
|
128
158
|
&.kbq-tab-nav-bar_on-surface {
|
|
129
|
-
|
|
159
|
+
.kbq-tab-header {
|
|
160
|
+
background: kbq-css-variable(
|
|
161
|
+
tabs-tab-stack-transparent-on-surface-background,
|
|
162
|
+
map.get($tab-stack, transparent, on-surface, background)
|
|
163
|
+
);
|
|
164
|
+
}
|
|
130
165
|
|
|
131
166
|
& .kbq-tab-link {
|
|
132
|
-
@include kbq-tab-item-style(
|
|
167
|
+
@include kbq-tab-item-style($tab-item, transparent, on-background);
|
|
133
168
|
}
|
|
134
169
|
}
|
|
135
170
|
}
|
|
@@ -137,10 +172,8 @@
|
|
|
137
172
|
}
|
|
138
173
|
|
|
139
174
|
@mixin kbq-tabs-typography($config) {
|
|
140
|
-
$tokens: map.get($config, tokens);
|
|
141
|
-
|
|
142
175
|
.kbq-tab-label,
|
|
143
176
|
.kbq-tab-link {
|
|
144
|
-
@include kbq-typography-
|
|
177
|
+
@include kbq-typography-css-variables(tabs, text);
|
|
145
178
|
}
|
|
146
179
|
}
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*
|
|
12
12
|
* In the case of a new tab body that should immediately be centered with an animating transition,
|
|
13
13
|
* then left-origin-center or right-origin-center can be used, which will use left or right as its
|
|
14
|
-
*
|
|
14
|
+
* pseudo-prior state.
|
|
15
15
|
*/
|
|
16
16
|
export type KbqTabBodyPositionState = 'left' | 'center' | 'right' | 'left-origin-center' | 'right-origin-center';
|
|
17
17
|
/**
|
package/tabs/tab-group.scss
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/layout';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
10
|
-
|
|
11
9
|
.kbq-tab-group {
|
|
12
10
|
display: flex;
|
|
13
11
|
flex-direction: column;
|
|
@@ -24,10 +22,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
24
22
|
flex-direction: row;
|
|
25
23
|
|
|
26
24
|
.kbq-tab-list__content {
|
|
27
|
-
gap:
|
|
28
|
-
--kbq-tabs-size-tab-stack-vertical-content-gap-vartical,
|
|
29
|
-
map.get($tokens, tabs-size-tab-stack-vertical-content-gap-vertical)
|
|
30
|
-
) 0;
|
|
25
|
+
gap: kbq-css-variable(tabs-size-tab-stack-vertical-content-gap-vertical) 0;
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
& .kbq-tab-header__content {
|
package/tabs/tab-header.scss
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../tabs-common';
|
|
5
5
|
|
|
6
|
-
@use '../../core/styles/tokens'
|
|
6
|
+
@use '../../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
10
|
-
|
|
11
9
|
.kbq-tab-link {
|
|
12
10
|
vertical-align: top;
|
|
13
11
|
text-decoration: none;
|
|
@@ -38,10 +36,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
38
36
|
&.kbq-tab-group_vertical {
|
|
39
37
|
flex-direction: column;
|
|
40
38
|
flex-grow: 0;
|
|
41
|
-
|
|
42
|
-
gap: var(
|
|
43
|
-
--kbq-tabs-size-tab-stack-vertical-content-gap-vartical,
|
|
44
|
-
map.get($tokens, tabs-size-tab-stack-vertical-content-gap-vertical)
|
|
45
|
-
) 0;
|
|
39
|
+
gap: kbq-css-variable(tabs-size-tab-stack-vertical-content-gap-vertical) 0;
|
|
46
40
|
}
|
|
47
41
|
}
|
package/tags/_tag-theme.scss
CHANGED
|
@@ -3,74 +3,71 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
@mixin kbq-tag-state($
|
|
9
|
-
|
|
9
|
+
@mixin kbq-tag-state($component, $type, $style-name) {
|
|
10
|
+
$style: map.get($component, $type, $style-name);
|
|
11
|
+
|
|
12
|
+
$base: tag-#{$type}-#{$style-name};
|
|
13
|
+
|
|
14
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
10
15
|
|
|
11
16
|
& .kbq-icon {
|
|
12
|
-
color: map.get($
|
|
17
|
+
color: kbq-css-variable(#{$base}-icon, map.get($style, icon));
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
& .kbq-tag__text {
|
|
16
|
-
color: map.get($
|
|
21
|
+
color: kbq-css-variable(#{$base}-text, map.get($style, text));
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
@mixin kbq-tag-color($
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@include kbq-tag-state($default);
|
|
25
|
+
@mixin kbq-tag-color($component, $type) {
|
|
26
|
+
@include kbq-tag-state($component, $type, default);
|
|
24
27
|
|
|
25
28
|
&:hover,
|
|
26
29
|
&.kbq-hovered {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
@include kbq-tag-state($hover);
|
|
30
|
+
@include kbq-tag-state($component, $type, hover);
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
&.kbq-focused {
|
|
33
|
-
|
|
34
|
+
@include kbq-tag-state($component, $type, focus);
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
box-shadow:
|
|
37
|
+
inset 0 0 0 1px kbq-css-variable(tag-#{$type}-focus-outline, map.get($component, $type, focus, outline)),
|
|
38
|
+
0 0 0 1px kbq-css-variable(tag-#{$type}-focus-outline, map.get($component, $type, focus, outline));
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
&.kbq-disabled {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
@include kbq-tag-state($disabled);
|
|
42
|
+
@include kbq-tag-state($component, $type, disabled);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
@mixin kbq-tag-theme($theme) {
|
|
48
|
-
$tag: map.get(
|
|
47
|
+
$tag: map.get($theme, components, tag);
|
|
49
48
|
|
|
50
49
|
.kbq-tag {
|
|
51
50
|
&.kbq-theme {
|
|
52
|
-
@include kbq-tag-color(
|
|
51
|
+
@include kbq-tag-color($tag, theme-fade-on);
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
&.kbq-contrast-fade {
|
|
56
|
-
@include kbq-tag-color(
|
|
55
|
+
@include kbq-tag-color($tag, contrast-fade-on);
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
&.kbq-error {
|
|
60
|
-
@include kbq-tag-color(
|
|
59
|
+
@include kbq-tag-color($tag, error-fade-on);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
@mixin kbq-tag-typography($config) {
|
|
66
|
-
$tokens: map.get($config, tokens);
|
|
67
|
-
|
|
68
65
|
.kbq-tag {
|
|
69
|
-
@include kbq-typography-
|
|
66
|
+
@include kbq-typography-css-variables(tag, default);
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
.kbq-tag-input {
|
|
73
|
-
@include kbq-typography-
|
|
70
|
+
@include kbq-typography-css-variables(tag-input, default);
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
|
package/tags/tag-list.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;
|
|
@@ -26,8 +27,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
26
27
|
|
|
27
28
|
min-height: unset;
|
|
28
29
|
|
|
29
|
-
padding-top:
|
|
30
|
-
padding-bottom:
|
|
30
|
+
padding-top: kbq-css-variable(tag-size-padding-vertical);
|
|
31
|
+
padding-bottom: kbq-css-variable(tag-size-padding-vertical);
|
|
31
32
|
padding-left: 4px;
|
|
32
33
|
padding-right: unset;
|
|
33
34
|
}
|
|
@@ -41,7 +42,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
41
42
|
|
|
42
43
|
min-width: 0;
|
|
43
44
|
|
|
44
|
-
gap:
|
|
45
|
+
gap: kbq-css-variable(tag-list-size-content-gap);
|
|
45
46
|
|
|
46
47
|
& .kbq-tag-input {
|
|
47
48
|
max-width: 100%;
|
|
@@ -66,11 +67,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
66
67
|
var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) -
|
|
67
68
|
var(--kbq-form-field-size-border-width, $border-width)
|
|
68
69
|
)
|
|
69
|
-
|
|
70
|
+
kbq-css-variable(tag-input-size-padding-right)
|
|
70
71
|
calc(
|
|
71
72
|
var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) -
|
|
72
73
|
var(--kbq-form-field-size-border-width, $border-width)
|
|
73
74
|
)
|
|
74
|
-
|
|
75
|
+
kbq-css-variable(tag-input-size-padding-left);
|
|
75
76
|
}
|
|
76
77
|
}
|
package/tags/tag.component.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare class KbqTag extends KbqTagMixinBase implements IFocusableOption,
|
|
|
43
43
|
private _ngZone;
|
|
44
44
|
/** Emits when the tag is focused. */
|
|
45
45
|
readonly onFocus: Subject<KbqTagEvent>;
|
|
46
|
-
/** Emits when the tag is
|
|
46
|
+
/** Emits when the tag is blurred. */
|
|
47
47
|
readonly onBlur: Subject<KbqTagEvent>;
|
|
48
48
|
nativeElement: HTMLElement;
|
|
49
49
|
/** Whether the tag has focus. */
|
package/tags/tag.scss
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
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
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-tag {
|
|
10
8
|
position: relative;
|
|
11
9
|
|
|
@@ -14,8 +12,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
12
|
max-width: 100%;
|
|
15
13
|
|
|
16
14
|
padding:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
kbq-css-variable(tag-size-padding-vertical)
|
|
16
|
+
kbq-css-variable(tag-size-padding-horizontal);
|
|
19
17
|
|
|
20
18
|
border-radius: 4px;
|
|
21
19
|
|
|
@@ -32,8 +30,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
32
30
|
|
|
33
31
|
flex-shrink: 0;
|
|
34
32
|
|
|
35
|
-
margin-right:
|
|
36
|
-
var(--kbq-tag-size-close-button-margin-right, map.get($tokens, tag-size-close-button-margin-right));
|
|
33
|
+
margin-right: kbq-css-variable(tag-size-close-button-margin-right);
|
|
37
34
|
|
|
38
35
|
&:hover {
|
|
39
36
|
cursor: pointer;
|
|
@@ -49,11 +46,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
49
46
|
white-space: nowrap;
|
|
50
47
|
overflow: hidden;
|
|
51
48
|
|
|
52
|
-
margin: 0
|
|
49
|
+
margin: 0 kbq-css-variable(tag-size-content-gap-horizontal);
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
& .kbq-icon_left {
|
|
56
|
-
margin-left:
|
|
53
|
+
margin-left: kbq-css-variable(tag-size-icon-margin-left);
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@mixin kbq-textarea-typography($config) {
|
|
8
|
-
$tokens: map.get($config, tokens);
|
|
9
|
-
|
|
10
8
|
.kbq-textarea {
|
|
11
|
-
@include kbq-typography-
|
|
9
|
+
@include kbq-typography-css-variables(textarea, default);
|
|
12
10
|
}
|
|
13
11
|
}
|
package/textarea/textarea.scss
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
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
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-textarea {
|
|
10
8
|
display: inline-block;
|
|
11
9
|
|
|
@@ -22,11 +20,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
22
20
|
box-sizing: border-box;
|
|
23
21
|
|
|
24
22
|
padding:
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
kbq-css-variable(textarea-size-padding-vertical)
|
|
24
|
+
kbq-css-variable(textarea-size-padding-horizontal);
|
|
27
25
|
|
|
28
|
-
-webkit-appearance: none; // Chrome
|
|
29
|
-
vertical-align: bottom; // Chrome
|
|
26
|
+
-webkit-appearance: none; // Chrome textarea height sizing fix
|
|
27
|
+
vertical-align: bottom; // Chrome textarea height sizing fix
|
|
30
28
|
|
|
31
29
|
&:not(.kbq-textarea-resizable) {
|
|
32
30
|
box-sizing: border-box;
|
|
@@ -35,7 +33,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
35
33
|
|
|
36
34
|
&.kbq-textarea-resizable {
|
|
37
35
|
resize: vertical;
|
|
38
|
-
min-height:
|
|
36
|
+
min-height: kbq-css-variable(textarea-size-min-height);
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
39
|
|
|
@@ -119,7 +119,7 @@ export declare class KbqTimepicker<D> implements KbqFormFieldControl<D>, Control
|
|
|
119
119
|
private incrementTime;
|
|
120
120
|
private decrementTime;
|
|
121
121
|
/**
|
|
122
|
-
* @description Get params for arrow-keys (up/down) time
|
|
122
|
+
* @description Get params for arrow-keys (up/down) time value edit.
|
|
123
123
|
* @param cursorPosition Current cursor position in timeString
|
|
124
124
|
*/
|
|
125
125
|
private getTimeEditMetrics;
|
|
@@ -1,16 +1,11 @@
|
|
|
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
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-timepicker {
|
|
10
|
-
padding-right:
|
|
11
|
-
var(--kbq-timepicker-size-padding-right, #{map.get($tokens, timepicker-size-padding-right)}) -
|
|
12
|
-
var(--kbq-form-field-size-border-width, #{map.get($tokens, form-field-size-border-width)})
|
|
13
|
-
);
|
|
8
|
+
padding-right: kbq-css-variable(timepicker-size-padding-right);
|
|
14
9
|
}
|
|
15
10
|
|
|
16
11
|
.kbq-form-field-type-timepicker {
|
|
@@ -2,6 +2,7 @@
|
|
|
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
8
|
@mixin kbq-timezone-option-theme($theme) {
|
|
@@ -9,34 +10,32 @@
|
|
|
9
10
|
|
|
10
11
|
.kbq-timezone-option__offset,
|
|
11
12
|
.kbq-timezone-option__city {
|
|
12
|
-
color: map.get($timezone, text);
|
|
13
|
+
color: kbq-css-variable(timezone-text, map.get($timezone, text));
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.kbq-timezone-option__cities {
|
|
16
|
-
color: map.get($timezone, caption);
|
|
17
|
+
color: kbq-css-variable(timezone-caption, map.get($timezone, caption));
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.kbq-timezone-select__panel.kbq-select__panel .kbq-optgroup-label {
|
|
20
|
-
color: map.get($timezone, optgroup-label);
|
|
21
|
+
color: kbq-css-variable(timezone-optgroup-label, map.get($timezone, optgroup-label));
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
@mixin kbq-timezone-option-typography($config) {
|
|
25
|
-
$tokens: map.get($config, tokens);
|
|
26
|
-
|
|
27
26
|
.kbq-timezone-option__offset {
|
|
28
|
-
@include kbq-typography-
|
|
27
|
+
@include kbq-typography-css-variables(timezone-option, offset-text);
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.kbq-timezone-option__city {
|
|
32
|
-
@include kbq-typography-
|
|
31
|
+
@include kbq-typography-css-variables(timezone-option, text);
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
.kbq-timezone-option__cities {
|
|
36
|
-
@include kbq-typography-
|
|
35
|
+
@include kbq-typography-css-variables(timezone-option, caption);
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.kbq-timezone-select__panel.kbq-select__panel .kbq-optgroup-label {
|
|
40
|
-
@include kbq-typography-
|
|
39
|
+
@include kbq-typography-css-variables(timezone-option, optgroup-label);
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
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
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-timezone-option.kbq-option {
|
|
10
8
|
display: flex;
|
|
11
9
|
flex-direction: row;
|
|
12
10
|
align-items: flex-start;
|
|
13
11
|
|
|
14
|
-
padding:
|
|
15
|
-
column-gap:
|
|
12
|
+
padding: kbq-css-variable(timezone-option-size-padding);
|
|
13
|
+
column-gap: kbq-css-variable(timezone-option-size-column-gap);
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
.kbq-timezone-option__label {
|
|
@@ -30,10 +28,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
30
28
|
.kbq-timezone-option__cities {
|
|
31
29
|
display: -webkit-box;
|
|
32
30
|
-webkit-box-orient: vertical;
|
|
33
|
-
max-height:
|
|
31
|
+
max-height: kbq-css-variable(timezone-option-size-max-height);
|
|
34
32
|
overflow: hidden;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
.kbq-select__panel .kbq-timezone-option {
|
|
38
|
-
height:
|
|
36
|
+
height: kbq-css-variable(timezone-option-size-height);
|
|
39
37
|
}
|