@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/alert/_alert-theme.scss
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/common/tokens' as *;
|
|
5
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
@mixin kbq-alert($component, $
|
|
9
|
-
$style: map.get($component, $style-name);
|
|
8
|
+
@mixin kbq-alert-style($component, $type, $style-name) {
|
|
9
|
+
$style: map.get($component, $type, $style-name);
|
|
10
10
|
|
|
11
|
-
background:
|
|
11
|
+
background: kbq-css-variable(alert-#{$type}-#{$style-name}-background, map.get($style, background));
|
|
12
12
|
|
|
13
13
|
.kbq-alert__title {
|
|
14
|
-
color:
|
|
14
|
+
color: kbq-css-variable(alert-#{$type}-#{$style-name}-title, map.get($style, title));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.kbq-alert__text {
|
|
18
|
-
color:
|
|
18
|
+
color: kbq-css-variable(alert-#{$type}-#{$style-name}-text, map.get($style, text));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -28,61 +28,59 @@
|
|
|
28
28
|
|
|
29
29
|
.kbq-alert.kbq-alert_default {
|
|
30
30
|
&.kbq-alert_contrast {
|
|
31
|
-
@include kbq-alert($alert, default, contrast);
|
|
31
|
+
@include kbq-alert-style($alert, default, contrast);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.kbq-alert_error {
|
|
35
|
-
@include kbq-alert($alert, default, error);
|
|
35
|
+
@include kbq-alert-style($alert, default, error);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&.kbq-alert_warning {
|
|
39
|
-
@include kbq-alert($alert, default, warning);
|
|
39
|
+
@include kbq-alert-style($alert, default, warning);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&.kbq-alert_success {
|
|
43
|
-
@include kbq-alert($alert, default, success);
|
|
43
|
+
@include kbq-alert-style($alert, default, success);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&.kbq-alert_theme {
|
|
47
|
-
@include kbq-alert($alert, default, theme);
|
|
47
|
+
@include kbq-alert-style($alert, default, theme);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.kbq-alert.kbq-alert_colored {
|
|
52
52
|
&.kbq-alert_contrast {
|
|
53
|
-
@include kbq-alert($alert, colored, contrast);
|
|
53
|
+
@include kbq-alert-style($alert, colored, contrast);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&.kbq-alert_error {
|
|
57
|
-
@include kbq-alert($alert, colored, error);
|
|
57
|
+
@include kbq-alert-style($alert, colored, error);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&.kbq-alert_warning {
|
|
61
|
-
@include kbq-alert($alert, colored, warning);
|
|
61
|
+
@include kbq-alert-style($alert, colored, warning);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&.kbq-alert_success {
|
|
65
|
-
@include kbq-alert($alert, colored, success);
|
|
65
|
+
@include kbq-alert-style($alert, colored, success);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&.kbq-alert_theme {
|
|
69
|
-
@include kbq-alert($alert, colored, theme);
|
|
69
|
+
@include kbq-alert-style($alert, colored, theme);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
@mixin kbq-alert-typography($config) {
|
|
75
|
-
$tokens: map.get($config, tokens);
|
|
76
|
-
|
|
77
75
|
.kbq-alert {
|
|
78
|
-
@include kbq-typography-
|
|
76
|
+
@include kbq-typography-css-variables(alert, text);
|
|
79
77
|
|
|
80
78
|
.kbq-alert__title {
|
|
81
|
-
@include kbq-typography-
|
|
79
|
+
@include kbq-typography-css-variables(alert, title);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
&.kbq-alert_compact .kbq-alert__title {
|
|
85
|
-
@include kbq-typography-
|
|
83
|
+
@include kbq-typography-css-variables(alert, title-compact);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
}
|
|
@@ -4,15 +4,13 @@
|
|
|
4
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,96 +23,96 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.kbq-alert.kbq-alert_normal {
|
|
28
|
-
border-radius:
|
|
26
|
+
border-radius: kbq-css-variable(alert-size-normal-container-border-radius);
|
|
29
27
|
|
|
30
28
|
padding:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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);
|
|
35
33
|
|
|
36
34
|
& .kbq-alert__icon {
|
|
37
35
|
margin:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
kbq-css-variable(alert-size-normal-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);
|
|
42
40
|
|
|
43
41
|
&.kbq-alert__icon_title .kbq-icon {
|
|
44
|
-
margin-top:
|
|
42
|
+
margin-top: kbq-css-variable(alert-size-normal-icon-margin-addon-title);
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
display: inline-flex;
|
|
48
|
-
align-
|
|
46
|
+
align-items: flex-start;
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
& .kbq-alert__content {
|
|
52
50
|
padding:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
kbq-css-variable(alert-size-normal-content-padding-top)
|
|
52
|
+
kbq-css-variable(alert-size-normal-content-padding-right)
|
|
53
|
+
kbq-css-variable(alert-size-normal-content-padding-bottom)
|
|
54
|
+
kbq-css-variable(alert-size-normal-content-padding-left);
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
& .kbq-alert__title {
|
|
60
|
-
margin-bottom:
|
|
58
|
+
margin-bottom: kbq-css-variable(alert-size-normal-title-margin-bottom);
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
& .kbq-alert__button-stack {
|
|
64
|
-
padding-top:
|
|
62
|
+
padding-top: kbq-css-variable(alert-size-normal-button-stack-padding-top);
|
|
65
63
|
|
|
66
|
-
padding-bottom:
|
|
64
|
+
padding-bottom: kbq-css-variable(alert-size-normal-button-stack-padding-bottom);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
& .kbq-alert__close-button {
|
|
70
|
-
margin-top:
|
|
71
|
-
margin-left:
|
|
68
|
+
margin-top: kbq-css-variable(alert-size-normal-close-button-margin-top);
|
|
69
|
+
margin-left: kbq-css-variable(alert-size-normal-close-button-margin-left);
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
.kbq-alert.kbq-alert_compact {
|
|
76
|
-
border-radius:
|
|
74
|
+
border-radius: kbq-css-variable(alert-size-compact-container-border-radius);
|
|
77
75
|
|
|
78
76
|
padding:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
kbq-css-variable(alert-size-compact-container-padding-top)
|
|
78
|
+
kbq-css-variable(alert-size-compact-container-padding-right)
|
|
79
|
+
kbq-css-variable(alert-size-compact-container-padding-bottom)
|
|
80
|
+
kbq-css-variable(alert-size-compact-container-padding-left);
|
|
83
81
|
|
|
84
82
|
& .kbq-alert__icon {
|
|
85
|
-
margin-top:
|
|
83
|
+
margin-top: kbq-css-variable(alert-size-compact-icon-margin-top);
|
|
86
84
|
|
|
87
|
-
margin-right:
|
|
85
|
+
margin-right: kbq-css-variable(alert-size-compact-icon-margin-right);
|
|
88
86
|
|
|
89
87
|
&.kbq-alert__icon_title .kbq-icon {
|
|
90
|
-
margin-top:
|
|
88
|
+
margin-top: kbq-css-variable(alert-size-compact-icon-margin-addon-title);
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
display: inline-flex;
|
|
94
|
-
align-
|
|
92
|
+
align-items: flex-start;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
& .kbq-alert__content {
|
|
98
96
|
padding:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
kbq-css-variable(alert-size-compact-content-padding-top)
|
|
98
|
+
kbq-css-variable(alert-size-compact-content-padding-right)
|
|
99
|
+
kbq-css-variable(alert-size-compact-content-padding-bottom)
|
|
100
|
+
kbq-css-variable(alert-size-compact-content-padding-left);
|
|
103
101
|
}
|
|
104
102
|
|
|
105
103
|
& .kbq-alert__title {
|
|
106
|
-
margin-bottom:
|
|
104
|
+
margin-bottom: kbq-css-variable(alert-size-compact-title-margin-bottom);
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
& .kbq-alert__button-stack {
|
|
110
|
-
padding-top:
|
|
108
|
+
padding-top: kbq-css-variable(alert-size-compact-button-stack-padding-top);
|
|
111
109
|
|
|
112
|
-
padding-bottom:
|
|
110
|
+
padding-bottom: kbq-css-variable(alert-size-compact-button-stack-padding-bottom);
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
& .kbq-alert__close-button {
|
|
116
|
-
margin-top:
|
|
114
|
+
margin-top: kbq-css-variable(alert-size-compact-close-button-margin-top);
|
|
117
115
|
|
|
118
|
-
margin-left:
|
|
116
|
+
margin-left: kbq-css-variable(alert-size-compact-close-button-margin-left);
|
|
119
117
|
}
|
|
120
118
|
}
|
|
@@ -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
|
}
|
|
@@ -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-badge {
|
|
@@ -21,63 +18,46 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
21
18
|
box-sizing: border-box;
|
|
22
19
|
|
|
23
20
|
padding:
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
kbq-css-variable(badge-size-normal-vertical-padding)
|
|
22
|
+
kbq-css-variable(badge-size-normal-horizontal-padding);
|
|
26
23
|
|
|
27
24
|
border: {
|
|
28
|
-
width:
|
|
29
|
-
radius:
|
|
25
|
+
width: kbq-css-variable(badge-size-normal-border-width);
|
|
26
|
+
radius: kbq-css-variable(badge-size-normal-border-radius);
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
& .kbq-badge-caption {
|
|
33
|
-
padding-left:
|
|
34
|
-
var(--kbq-badge-size-normal-content-padding, map.get($tokens, badge-size-normal-content-padding));
|
|
30
|
+
padding-left: kbq-css-variable(badge-size-normal-content-padding);
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
& .kbq-icon_left {
|
|
38
|
-
margin-right:
|
|
39
|
-
--kbq-badge-size-normal-icon-left-margin-right,
|
|
40
|
-
map.get($tokens, badge-size-normal-icon-left-margin-right)
|
|
41
|
-
);
|
|
34
|
+
margin-right: kbq-css-variable(badge-size-normal-icon-left-margin-right);
|
|
42
35
|
}
|
|
43
36
|
|
|
44
37
|
& .kbq-icon_right {
|
|
45
|
-
margin-left:
|
|
46
|
-
--kbq-badge-size-normal-icon-right-margin-left,
|
|
47
|
-
map.get($tokens, badge-size-normal-icon-right-margin-left)
|
|
48
|
-
);
|
|
38
|
+
margin-left: kbq-css-variable(badge-size-normal-icon-right-margin-left);
|
|
49
39
|
}
|
|
50
40
|
|
|
51
41
|
&.kbq-badge_compact {
|
|
52
42
|
padding:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
--kbq-badge-size-compact-horizontal-padding,
|
|
56
|
-
map.get($tokens, badge-size-compact-horizontal-padding)
|
|
57
|
-
);
|
|
43
|
+
kbq-css-variable(badge-size-compact-vertical-padding)
|
|
44
|
+
kbq-css-variable(badge-size-compact-horizontal-padding);
|
|
58
45
|
|
|
59
46
|
border: {
|
|
60
|
-
width:
|
|
61
|
-
radius:
|
|
47
|
+
width: kbq-css-variable(badge-size-compact-border-width);
|
|
48
|
+
radius: kbq-css-variable(badge-size-compact-border-radius);
|
|
62
49
|
}
|
|
63
50
|
|
|
64
51
|
& .kbq-badge-caption {
|
|
65
|
-
padding-left:
|
|
66
|
-
var(--kbq-badge-size-compact-content-padding, map.get($tokens, badge-size-compact-content-padding));
|
|
52
|
+
padding-left: kbq-css-variable(badge-size-compact-content-padding);
|
|
67
53
|
}
|
|
68
54
|
|
|
69
55
|
& .kbq-icon_left {
|
|
70
|
-
margin-right:
|
|
71
|
-
--kbq-badge-size-compact-icon-left-margin-right,
|
|
72
|
-
map.get($tokens, badge-size-compact-icon-left-margin-right)
|
|
73
|
-
);
|
|
56
|
+
margin-right: kbq-css-variable(badge-size-compact-icon-left-margin-right);
|
|
74
57
|
}
|
|
75
58
|
|
|
76
59
|
& .kbq-icon_right {
|
|
77
|
-
margin-left:
|
|
78
|
-
--kbq-badge-size-compact-icon-right-margin-left,
|
|
79
|
-
map.get($tokens, badge-size-compact-icon-right-margin-left)
|
|
80
|
-
);
|
|
60
|
+
margin-left: kbq-css-variable(badge-size-compact-icon-right-margin-left);
|
|
81
61
|
}
|
|
82
62
|
}
|
|
83
63
|
}
|
package/button/_button-base.scss
CHANGED
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common/button';
|
|
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-button-base {
|
|
12
10
|
@include button.kbq-button-reset();
|
|
13
11
|
|
|
@@ -21,8 +19,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
21
19
|
|
|
22
20
|
margin: 0; /* Safari */
|
|
23
21
|
|
|
24
|
-
height:
|
|
25
|
-
min-height:
|
|
22
|
+
height: kbq-css-variable(button-size-height);
|
|
23
|
+
min-height: kbq-css-variable(button-size-height);
|
|
26
24
|
|
|
27
25
|
white-space: nowrap;
|
|
28
26
|
|
|
@@ -31,8 +29,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
31
29
|
|
|
32
30
|
vertical-align: baseline;
|
|
33
31
|
|
|
34
|
-
border:
|
|
35
|
-
border-radius:
|
|
32
|
+
border: kbq-css-variable(button-size-border-width) solid transparent;
|
|
33
|
+
border-radius: kbq-css-variable(button-size-border-radius);
|
|
36
34
|
|
|
37
35
|
&::-moz-focus-inner {
|
|
38
36
|
border: 0;
|
|
@@ -56,14 +54,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
& .kbq-icon_left {
|
|
59
|
-
margin-right:
|
|
60
|
-
--kbq-button-size-content-padding, map.get($tokens, button-size-content-padding)
|
|
61
|
-
);
|
|
57
|
+
margin-right: kbq-css-variable(button-size-content-padding);
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
& .kbq-icon_right {
|
|
65
|
-
margin-left:
|
|
66
|
-
--kbq-button-size-content-padding, map.get($tokens, button-size-content-padding)
|
|
67
|
-
);
|
|
61
|
+
margin-left: kbq-css-variable(button-size-content-padding);
|
|
68
62
|
}
|
|
69
63
|
}
|