@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.8
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 +49 -141
- 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 +18 -38
- 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 +14 -34
- 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 +23 -21
- 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/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/locales/locale-service.d.ts +1 -0
- 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/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- 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 +5 -11
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- 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/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- 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/radio/radio.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +18 -114
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-group.component.mjs +54 -12
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toast/toast.service.mjs +17 -12
- package/esm2022/tooltip/tooltip.component.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +9 -37
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.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-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.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 +124 -7
- 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-dropdown.mjs +5 -5
- package/fesm2022/koobiq-components-dropdown.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 +6 -6
- 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-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.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-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.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 +46 -142
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-tabs.mjs +56 -14
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +20 -7
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -1
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +6 -6
- 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 +19 -13
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs +37 -44
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +2 -2
- 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 +35 -99
- 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 +5 -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 +3 -5
- 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 +28 -28
- package/navbar/_navbar-item_vertical.scss +31 -30
- 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 +11 -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 +20 -39
- 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 +13 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.component.d.ts +2 -32
- package/select/select.module.d.ts +1 -1
- 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.component.d.ts +9 -3
- 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-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- 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.d.ts +2 -1
- 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/toast/toast.service.d.ts +8 -4
- 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 +12 -14
- package/tree-select/tree-select.component.d.ts +4 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -5
- package/core/styles/_variables.scss +0 -1
package/alert/_alert-theme.scss
CHANGED
|
@@ -2,99 +2,85 @@
|
|
|
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-alert-
|
|
8
|
-
|
|
8
|
+
@mixin kbq-alert-style($component, $type, $style-name) {
|
|
9
|
+
$style: map.get($component, $type, $style-name);
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
color: map.get($style, title);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.kbq-alert__text {
|
|
15
|
-
color: map.get($style, text);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin kbq-alert-colored($style) {
|
|
20
|
-
background: map.get($style, background);
|
|
11
|
+
background: kbq-css-variable(alert-#{$type}-#{$style-name}-background, map.get($style, background));
|
|
21
12
|
|
|
22
13
|
.kbq-alert__title {
|
|
23
|
-
color: map.get($style, title);
|
|
14
|
+
color: kbq-css-variable(alert-#{$type}-#{$style-name}-title, map.get($style, title));
|
|
24
15
|
}
|
|
25
16
|
|
|
26
17
|
.kbq-alert__text {
|
|
27
|
-
color: map.get($style, text);
|
|
18
|
+
color: kbq-css-variable(alert-#{$type}-#{$style-name}-text, map.get($style, text));
|
|
28
19
|
}
|
|
29
20
|
}
|
|
30
21
|
|
|
31
22
|
@mixin kbq-alert-theme($theme) {
|
|
32
23
|
$alert: map.get(map.get($theme, components), alert);
|
|
33
24
|
|
|
34
|
-
$default: map.get($alert, default);
|
|
35
|
-
$colored: map.get($alert, colored);
|
|
36
|
-
|
|
37
25
|
.kbq-alert__close:focus {
|
|
38
26
|
outline: none;
|
|
39
27
|
}
|
|
40
28
|
|
|
41
29
|
.kbq-alert.kbq-alert_default {
|
|
42
30
|
&.kbq-alert_contrast {
|
|
43
|
-
@include kbq-alert-
|
|
31
|
+
@include kbq-alert-style($alert, default, contrast);
|
|
44
32
|
}
|
|
45
33
|
|
|
46
34
|
&.kbq-alert_error {
|
|
47
|
-
@include kbq-alert-
|
|
35
|
+
@include kbq-alert-style($alert, default, error);
|
|
48
36
|
}
|
|
49
37
|
|
|
50
38
|
&.kbq-alert_warning {
|
|
51
|
-
@include kbq-alert-
|
|
39
|
+
@include kbq-alert-style($alert, default, warning);
|
|
52
40
|
}
|
|
53
41
|
|
|
54
42
|
&.kbq-alert_success {
|
|
55
|
-
@include kbq-alert-
|
|
43
|
+
@include kbq-alert-style($alert, default, success);
|
|
56
44
|
}
|
|
57
45
|
|
|
58
46
|
&.kbq-alert_theme {
|
|
59
|
-
@include kbq-alert-
|
|
47
|
+
@include kbq-alert-style($alert, default, theme);
|
|
60
48
|
}
|
|
61
49
|
}
|
|
62
50
|
|
|
63
51
|
.kbq-alert.kbq-alert_colored {
|
|
64
52
|
&.kbq-alert_contrast {
|
|
65
|
-
@include kbq-alert-
|
|
53
|
+
@include kbq-alert-style($alert, colored, contrast);
|
|
66
54
|
}
|
|
67
55
|
|
|
68
56
|
&.kbq-alert_error {
|
|
69
|
-
@include kbq-alert-
|
|
57
|
+
@include kbq-alert-style($alert, colored, error);
|
|
70
58
|
}
|
|
71
59
|
|
|
72
60
|
&.kbq-alert_warning {
|
|
73
|
-
@include kbq-alert-
|
|
61
|
+
@include kbq-alert-style($alert, colored, warning);
|
|
74
62
|
}
|
|
75
63
|
|
|
76
64
|
&.kbq-alert_success {
|
|
77
|
-
@include kbq-alert-
|
|
65
|
+
@include kbq-alert-style($alert, colored, success);
|
|
78
66
|
}
|
|
79
67
|
|
|
80
68
|
&.kbq-alert_theme {
|
|
81
|
-
@include kbq-alert-
|
|
69
|
+
@include kbq-alert-style($alert, colored, theme);
|
|
82
70
|
}
|
|
83
71
|
}
|
|
84
72
|
}
|
|
85
73
|
|
|
86
74
|
@mixin kbq-alert-typography($config) {
|
|
87
|
-
$tokens: map.get($config, tokens);
|
|
88
|
-
|
|
89
75
|
.kbq-alert {
|
|
90
|
-
@include kbq-typography-
|
|
76
|
+
@include kbq-typography-css-variables(alert, text);
|
|
91
77
|
|
|
92
78
|
.kbq-alert__title {
|
|
93
|
-
@include kbq-typography-
|
|
79
|
+
@include kbq-typography-css-variables(alert, title);
|
|
94
80
|
}
|
|
95
81
|
|
|
96
82
|
&.kbq-alert_compact .kbq-alert__title {
|
|
97
|
-
@include kbq-typography-
|
|
83
|
+
@include kbq-typography-css-variables(alert, title-compact);
|
|
98
84
|
}
|
|
99
85
|
}
|
|
100
86
|
}
|
|
@@ -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-alert {
|
|
10
8
|
display: flex;
|
|
11
9
|
|
|
12
10
|
box-sizing: border-box;
|
|
13
11
|
|
|
14
12
|
& .kbq-alert__content_title {
|
|
15
|
-
margin-bottom:
|
|
13
|
+
margin-bottom: kbq-css-variable(size-xxs);
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
16
|
|
|
@@ -25,41 +23,25 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.kbq-alert.kbq-alert_normal {
|
|
28
|
-
border-radius:
|
|
29
|
-
--kbq-alert-size-normal-container-border-radius,
|
|
30
|
-
map.get($tokens, alert-size-normal-container-border-radius)
|
|
31
|
-
);
|
|
26
|
+
border-radius: kbq-css-variable(alert-size-normal-container-border-radius);
|
|
32
27
|
|
|
33
28
|
padding:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
)
|
|
38
|
-
var(
|
|
39
|
-
--kbq-alert-size-normal-container-padding-right,
|
|
40
|
-
map.get($tokens, alert-size-normal-container-padding-right)
|
|
41
|
-
)
|
|
42
|
-
var(
|
|
43
|
-
--kbq-alert-size-normal-container-padding-bottom,
|
|
44
|
-
map.get($tokens, alert-size-normal-container-padding-bottom)
|
|
45
|
-
)
|
|
46
|
-
var(
|
|
47
|
-
--kbq-alert-size-normal-container-padding-left,
|
|
48
|
-
map.get($tokens, alert-size-normal-container-padding-left)
|
|
49
|
-
);
|
|
29
|
+
kbq-css-variable(alert-size-normal-container-padding-top)
|
|
30
|
+
kbq-css-variable(alert-size-normal-container-padding-right)
|
|
31
|
+
kbq-css-variable(alert-size-normal-container-padding-bottom)
|
|
32
|
+
kbq-css-variable(alert-size-normal-container-padding-left);
|
|
50
33
|
|
|
51
34
|
& .kbq-alert__icon {
|
|
52
35
|
margin:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
&.kbq-alert__icon_title
|
|
59
|
-
margin-top:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
);
|
|
36
|
+
kbq-css-variable(alert-size-normal-no-title-icon-margin-top)
|
|
37
|
+
kbq-css-variable(alert-size-normal-icon-margin-right)
|
|
38
|
+
kbq-css-variable(alert-size-normal-icon-margin-bottom)
|
|
39
|
+
kbq-css-variable(alert-size-normal-icon-margin-left);
|
|
40
|
+
|
|
41
|
+
&.kbq-alert__icon_title {
|
|
42
|
+
margin-top: kbq-css-variable(alert-size-normal-icon-margin-top);
|
|
43
|
+
|
|
44
|
+
padding-top: kbq-css-variable(alert-size-normal-no-title-icon-padding-top);
|
|
63
45
|
}
|
|
64
46
|
|
|
65
47
|
display: inline-flex;
|
|
@@ -68,92 +50,47 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
68
50
|
|
|
69
51
|
& .kbq-alert__content {
|
|
70
52
|
padding:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
)
|
|
75
|
-
var(
|
|
76
|
-
--kbq-alert-size-normal-content-padding-right,
|
|
77
|
-
map.get($tokens, alert-size-normal-content-padding-right)
|
|
78
|
-
)
|
|
79
|
-
var(
|
|
80
|
-
--kbq-alert-size-normal-content-padding-bottom,
|
|
81
|
-
map.get($tokens, alert-size-normal-content-padding-bottom)
|
|
82
|
-
)
|
|
83
|
-
var(
|
|
84
|
-
--kbq-alert-size-normal-content-padding-left,
|
|
85
|
-
map.get($tokens, alert-size-normal-content-padding-left)
|
|
86
|
-
);
|
|
53
|
+
kbq-css-variable(alert-size-normal-content-padding-top)
|
|
54
|
+
kbq-css-variable(alert-size-normal-content-padding-right)
|
|
55
|
+
kbq-css-variable(alert-size-normal-content-padding-bottom)
|
|
56
|
+
kbq-css-variable(alert-size-normal-content-padding-left);
|
|
87
57
|
}
|
|
88
58
|
|
|
89
59
|
& .kbq-alert__title {
|
|
90
|
-
margin-bottom:
|
|
91
|
-
--kbq-alert-size-normal-title-margin-bottom,
|
|
92
|
-
map.get($tokens, alert-size-normal-title-margin-bottom)
|
|
93
|
-
);
|
|
60
|
+
margin-bottom: kbq-css-variable(alert-size-normal-title-margin-bottom);
|
|
94
61
|
}
|
|
95
62
|
|
|
96
63
|
& .kbq-alert__button-stack {
|
|
97
|
-
padding-top:
|
|
98
|
-
|
|
99
|
-
map.get($tokens, alert-size-normal-button-stack-padding-top)
|
|
100
|
-
);
|
|
101
|
-
|
|
102
|
-
padding-bottom: var(
|
|
103
|
-
--kbq-alert-size-normal-button-stack-padding-bottom,
|
|
104
|
-
map.get($tokens, alert-size-normal-button-stack-padding-bottom)
|
|
105
|
-
);
|
|
64
|
+
padding-top: kbq-css-variable(alert-size-normal-button-stack-padding-top);
|
|
65
|
+
padding-bottom: kbq-css-variable(alert-size-normal-button-stack-padding-bottom);
|
|
106
66
|
}
|
|
107
67
|
|
|
108
68
|
& .kbq-alert__close-button {
|
|
109
|
-
margin-top:
|
|
110
|
-
|
|
111
|
-
map.get($tokens, alert-size-normal-close-button-margin-top)
|
|
112
|
-
);
|
|
113
|
-
margin-left: var(
|
|
114
|
-
--kbq-alert-size-normal-close-button-margin-left,
|
|
115
|
-
map.get($tokens, alert-size-normal-close-button-margin-left)
|
|
116
|
-
);
|
|
69
|
+
margin-top: kbq-css-variable(alert-size-normal-close-button-margin-top);
|
|
70
|
+
margin-left: kbq-css-variable(alert-size-normal-close-button-margin-left);
|
|
117
71
|
}
|
|
118
72
|
}
|
|
119
73
|
|
|
120
74
|
.kbq-alert.kbq-alert_compact {
|
|
121
|
-
border-radius:
|
|
122
|
-
--kbq-alert-size-compact-container-border-radius,
|
|
123
|
-
map.get($tokens, alert-size-compact-container-border-radius)
|
|
124
|
-
);
|
|
75
|
+
border-radius: kbq-css-variable(alert-size-compact-container-border-radius);
|
|
125
76
|
|
|
126
77
|
padding:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
)
|
|
131
|
-
var(
|
|
132
|
-
--kbq-alert-size-compact-container-padding-right,
|
|
133
|
-
map.get($tokens, alert-size-compact-container-padding-right)
|
|
134
|
-
)
|
|
135
|
-
var(
|
|
136
|
-
--kbq-alert-size-compact-container-padding-bottom,
|
|
137
|
-
map.get($tokens, alert-size-compact-container-padding-bottom)
|
|
138
|
-
)
|
|
139
|
-
var(
|
|
140
|
-
--kbq-alert-size-compact-container-padding-left,
|
|
141
|
-
map.get($tokens, alert-size-compact-container-padding-left)
|
|
142
|
-
);
|
|
78
|
+
kbq-css-variable(alert-size-compact-container-padding-top)
|
|
79
|
+
kbq-css-variable(alert-size-compact-container-padding-right)
|
|
80
|
+
kbq-css-variable(alert-size-compact-container-padding-bottom)
|
|
81
|
+
kbq-css-variable(alert-size-compact-container-padding-left);
|
|
143
82
|
|
|
144
83
|
& .kbq-alert__icon {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
margin-right:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
map.get($tokens, alert-size-compact-icon-margin-addon-title)
|
|
156
|
-
);
|
|
84
|
+
|
|
85
|
+
margin-top: kbq-css-variable(alert-size-compact-no-title-icon-margin-top);
|
|
86
|
+
margin-right: kbq-css-variable(alert-size-compact-icon-margin-right);
|
|
87
|
+
|
|
88
|
+
padding-top: kbq-css-variable(alert-size-compact-no-title-icon-padding-top);
|
|
89
|
+
|
|
90
|
+
&.kbq-alert__icon_title {
|
|
91
|
+
margin-top: kbq-css-variable(alert-size-compact-icon-margin-top);
|
|
92
|
+
|
|
93
|
+
padding-top: kbq-css-variable(alert-size-compact-icon-padding-top);
|
|
157
94
|
}
|
|
158
95
|
|
|
159
96
|
display: inline-flex;
|
|
@@ -162,52 +99,23 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
162
99
|
|
|
163
100
|
& .kbq-alert__content {
|
|
164
101
|
padding:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
)
|
|
169
|
-
var(
|
|
170
|
-
--kbq-alert-size-compact-content-padding-right,
|
|
171
|
-
map.get($tokens, alert-size-compact-content-padding-right)
|
|
172
|
-
)
|
|
173
|
-
var(
|
|
174
|
-
--kbq-alert-size-compact-content-padding-bottom,
|
|
175
|
-
map.get($tokens, alert-size-compact-content-padding-bottom)
|
|
176
|
-
)
|
|
177
|
-
var(
|
|
178
|
-
--kbq-alert-size-compact-content-padding-left,
|
|
179
|
-
map.get($tokens, alert-size-compact-content-padding-left)
|
|
180
|
-
);
|
|
102
|
+
kbq-css-variable(alert-size-compact-content-padding-top)
|
|
103
|
+
kbq-css-variable(alert-size-compact-content-padding-right)
|
|
104
|
+
kbq-css-variable(alert-size-compact-content-padding-bottom)
|
|
105
|
+
kbq-css-variable(alert-size-compact-content-padding-left);
|
|
181
106
|
}
|
|
182
107
|
|
|
183
108
|
& .kbq-alert__title {
|
|
184
|
-
margin-bottom:
|
|
185
|
-
--kbq-alert-size-compact-title-margin-bottom,
|
|
186
|
-
map.get($tokens, alert-size-compact-title-margin-bottom)
|
|
187
|
-
);
|
|
109
|
+
margin-bottom: kbq-css-variable(alert-size-compact-title-margin-bottom);
|
|
188
110
|
}
|
|
189
111
|
|
|
190
112
|
& .kbq-alert__button-stack {
|
|
191
|
-
padding-top:
|
|
192
|
-
|
|
193
|
-
map.get($tokens, alert-size-compact-button-stack-padding-top)
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
padding-bottom: var(
|
|
197
|
-
--kbq-alert-size-compact-button-stack-padding-bottom,
|
|
198
|
-
map.get($tokens, alert-size-compact-button-stack-padding-bottom)
|
|
199
|
-
);
|
|
113
|
+
padding-top: kbq-css-variable(alert-size-compact-button-stack-padding-top);
|
|
114
|
+
padding-bottom: kbq-css-variable(alert-size-compact-button-stack-padding-bottom);
|
|
200
115
|
}
|
|
201
116
|
|
|
202
117
|
& .kbq-alert__close-button {
|
|
203
|
-
margin-top:
|
|
204
|
-
|
|
205
|
-
map.get($tokens, alert-size-compact-close-button-margin-top)
|
|
206
|
-
);
|
|
207
|
-
|
|
208
|
-
margin-left: var(
|
|
209
|
-
--kbq-alert-size-compact-close-button-margin-left,
|
|
210
|
-
map.get($tokens, alert-size-compact-close-button-margin-left)
|
|
211
|
-
);
|
|
118
|
+
margin-top: kbq-css-variable(alert-size-compact-close-button-margin-top);
|
|
119
|
+
margin-left: kbq-css-variable(alert-size-compact-close-button-margin-left);
|
|
212
120
|
}
|
|
213
121
|
}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/common/popup';
|
|
4
4
|
@use '../core/styles/theming/theming';
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
@mixin kbq-autocomplete-theme($theme) {
|
|
8
9
|
$select-panel: map.get(map.get($theme, components), select-panel);
|
|
9
10
|
|
|
10
11
|
.kbq-autocomplete-panel {
|
|
11
|
-
box-shadow: map.get($select-panel, shadow);
|
|
12
|
-
background: map.get($select-panel, background);
|
|
12
|
+
box-shadow: kbq-css-variable(select-panel-shadow, map.get($select-panel, shadow));
|
|
13
|
+
background: kbq-css-variable(select-panel-background, map.get($select-panel, background));
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -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-autocomplete-panel {
|
|
@@ -21,16 +18,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
21
18
|
width: 100%;
|
|
22
19
|
max-width: none;
|
|
23
20
|
|
|
24
|
-
max-height:
|
|
21
|
+
max-height: kbq-css-variable(autocomplete-size-panel-max-height);
|
|
25
22
|
|
|
26
|
-
border-bottom-left-radius:
|
|
27
|
-
|
|
28
|
-
);
|
|
29
|
-
border-bottom-right-radius: var(
|
|
30
|
-
--kbq-autocomplete-size-panel-border-radius, map.get($tokens, autocomplete-size-panel-border-radius)
|
|
31
|
-
);
|
|
23
|
+
border-bottom-left-radius: kbq-css-variable(autocomplete-size-panel-border-radius);
|
|
24
|
+
border-bottom-right-radius: kbq-css-variable(autocomplete-size-panel-border-radius);
|
|
32
25
|
|
|
33
|
-
padding:
|
|
26
|
+
padding: kbq-css-variable(autocomplete-size-panel-padding);
|
|
34
27
|
|
|
35
28
|
&.kbq-autocomplete_visible {
|
|
36
29
|
visibility: visible;
|
|
@@ -42,8 +35,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
42
35
|
|
|
43
36
|
.kbq-autocomplete-panel-above & {
|
|
44
37
|
border-radius:
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
kbq-css-variable(autocomplete-size-panel-border-radius)
|
|
39
|
+
kbq-css-variable(autocomplete-size-panel-border-radius)
|
|
47
40
|
0 0;
|
|
48
41
|
}
|
|
49
42
|
|
package/badge/_badge-theme.scss
CHANGED
|
@@ -2,122 +2,108 @@
|
|
|
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-badge-style($
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
@mixin kbq-badge-style($component, $type, $sub-type, $style-name) {
|
|
9
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
10
|
+
|
|
11
|
+
color: kbq-css-variable(badge-#{$type}-#{$sub-type}-#{$style-name}-color, map.get($style, color));
|
|
12
|
+
background: kbq-css-variable(badge-#{$type}-#{$sub-type}-#{$style-name}-background, map.get($style, background));
|
|
10
13
|
|
|
11
14
|
& .kbq-badge-caption {
|
|
12
|
-
color: map.get($
|
|
15
|
+
color: kbq-css-variable(badge-#{$type}-#{$sub-type}-#{$style-name}-caption, map.get($style, caption));
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
& .kbq-icon {
|
|
16
|
-
color: map.get($
|
|
19
|
+
color: kbq-css-variable(badge-#{$type}-#{$sub-type}-#{$style-name}-icon, map.get($style, icon)) !important;
|
|
17
20
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin kbq-badge-filled-color($badge) {
|
|
21
|
-
@include kbq-badge-style($badge);
|
|
22
|
-
|
|
23
|
-
border: transparent;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin kbq-badge-outline-color($badge) {
|
|
27
|
-
@include kbq-badge-style($badge);
|
|
28
21
|
|
|
29
|
-
|
|
22
|
+
@if $type == filled {
|
|
23
|
+
border: transparent;
|
|
24
|
+
} @else {
|
|
25
|
+
border-color: map.get($component, border);
|
|
26
|
+
}
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
@mixin kbq-badge-theme($theme) {
|
|
33
30
|
$badge: map.get(map.get($theme, components), badge);
|
|
34
31
|
|
|
35
|
-
$filled: map.get($badge, filled);
|
|
36
|
-
$outline: map.get($badge, outline);
|
|
37
|
-
|
|
38
32
|
.kbq-badge-filled {
|
|
39
|
-
$fade-on: map.get($filled, fade-on);
|
|
40
|
-
|
|
41
33
|
&.kbq-badge_fade-contrast {
|
|
42
|
-
@include kbq-badge-
|
|
34
|
+
@include kbq-badge-style($badge, filled, fade-on, contrast);
|
|
43
35
|
}
|
|
44
36
|
|
|
45
37
|
&.kbq-badge_fade-theme {
|
|
46
|
-
@include kbq-badge-
|
|
38
|
+
@include kbq-badge-style($badge, filled, fade-on, theme);
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
&.kbq-badge_fade-success {
|
|
50
|
-
@include kbq-badge-
|
|
42
|
+
@include kbq-badge-style($badge, filled, fade-on, success);
|
|
51
43
|
}
|
|
52
44
|
|
|
53
45
|
&.kbq-badge_fade-warning {
|
|
54
|
-
@include kbq-badge-
|
|
46
|
+
@include kbq-badge-style($badge, filled, fade-on, warning);
|
|
55
47
|
}
|
|
56
48
|
|
|
57
49
|
&.kbq-badge_fade-error {
|
|
58
|
-
@include kbq-badge-
|
|
50
|
+
@include kbq-badge-style($badge, filled, fade-on, error);
|
|
59
51
|
}
|
|
60
52
|
|
|
61
|
-
$fade-off: map.get($filled, fade-off);
|
|
62
|
-
|
|
63
53
|
&.kbq-badge_theme {
|
|
64
|
-
@include kbq-badge-
|
|
54
|
+
@include kbq-badge-style($badge, filled, fade-off, theme);
|
|
65
55
|
}
|
|
66
56
|
|
|
67
57
|
&.kbq-badge_success {
|
|
68
|
-
@include kbq-badge-
|
|
58
|
+
@include kbq-badge-style($badge, filled, fade-off, success);
|
|
69
59
|
}
|
|
70
60
|
|
|
71
61
|
&.kbq-badge_warning {
|
|
72
|
-
@include kbq-badge-
|
|
62
|
+
@include kbq-badge-style($badge, filled, fade-off, warning);
|
|
73
63
|
}
|
|
74
64
|
|
|
75
65
|
&.kbq-badge_error {
|
|
76
|
-
@include kbq-badge-
|
|
66
|
+
@include kbq-badge-style($badge, filled, fade-off, error);
|
|
77
67
|
}
|
|
78
68
|
}
|
|
79
69
|
|
|
80
70
|
.kbq-badge-outline {
|
|
81
|
-
$fade-on: map.get($outline, fade-on);
|
|
82
|
-
|
|
83
71
|
&.kbq-badge_fade-contrast {
|
|
84
|
-
@include kbq-badge-
|
|
72
|
+
@include kbq-badge-style($badge, outline, fade-on, contrast);
|
|
85
73
|
}
|
|
86
74
|
|
|
87
75
|
&.kbq-badge_fade-theme {
|
|
88
|
-
@include kbq-badge-
|
|
76
|
+
@include kbq-badge-style($badge, outline, fade-on, theme);
|
|
89
77
|
}
|
|
90
78
|
|
|
91
79
|
&.kbq-badge_fade-success {
|
|
92
|
-
@include kbq-badge-
|
|
80
|
+
@include kbq-badge-style($badge, outline, fade-on, success);
|
|
93
81
|
}
|
|
94
82
|
|
|
95
83
|
&.kbq-badge_fade-warning {
|
|
96
|
-
@include kbq-badge-
|
|
84
|
+
@include kbq-badge-style($badge, outline, fade-on, warning);
|
|
97
85
|
}
|
|
98
86
|
|
|
99
87
|
&.kbq-badge_fade-error {
|
|
100
|
-
@include kbq-badge-
|
|
88
|
+
@include kbq-badge-style($badge, outline, fade-on, error);
|
|
101
89
|
}
|
|
102
90
|
}
|
|
103
91
|
}
|
|
104
92
|
|
|
105
93
|
@mixin kbq-badge-typography($config) {
|
|
106
|
-
$tokens: map.get($config, tokens);
|
|
107
|
-
|
|
108
94
|
.kbq-badge {
|
|
109
|
-
@include kbq-typography-
|
|
95
|
+
@include kbq-typography-css-variables(badge, normal-default);
|
|
110
96
|
|
|
111
97
|
& .kbq-badge-caption {
|
|
112
|
-
@include kbq-typography-
|
|
98
|
+
@include kbq-typography-css-variables(badge, normal-caption);
|
|
113
99
|
}
|
|
114
100
|
}
|
|
115
101
|
|
|
116
102
|
.kbq-badge_compact {
|
|
117
|
-
@include kbq-typography-
|
|
103
|
+
@include kbq-typography-css-variables(badge, compact-default);
|
|
118
104
|
|
|
119
105
|
& .kbq-badge-caption {
|
|
120
|
-
@include kbq-typography-
|
|
106
|
+
@include kbq-typography-css-variables(badge, compact-caption);
|
|
121
107
|
}
|
|
122
108
|
}
|
|
123
109
|
}
|