@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/_alert-theme.scss +19 -33
- package/alert/alert.component.scss +41 -136
- package/autocomplete/_autocomplete-theme.scss +3 -2
- package/autocomplete/autocomplete.scss +7 -14
- package/badge/_badge-theme.scss +31 -45
- package/badge/badge.component.scss +15 -35
- package/button/_button-base.scss +7 -13
- package/button/_button-theme.scss +29 -85
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -16
- package/button-toggle/_button-toggle-theme.scss +18 -18
- package/button-toggle/button-toggle.scss +9 -32
- package/card/_card-theme.scss +19 -17
- package/card/card.component.scss +2 -4
- package/checkbox/_checkbox-theme.scss +44 -43
- package/checkbox/checkbox.scss +13 -18
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +21 -66
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/option/_optgroup-theme.scss +4 -5
- package/core/option/_option-action-theme.scss +7 -7
- package/core/option/_option-theme.scss +16 -20
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
- package/core/styles/common/_groups.scss +3 -5
- package/core/styles/common/_list.scss +14 -18
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_select.scss +11 -16
- package/core/styles/common/_tokens.scss +30 -9
- package/core/styles/theming/_components-theming.scss +151 -131
- package/core/styles/visual/_layout.scss +14 -16
- package/datepicker/_datepicker-theme.scss +24 -39
- package/datepicker/calendar-body.scss +3 -8
- package/datepicker/calendar-header.scss +4 -9
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +4 -12
- package/datepicker/datepicker-input.scss +0 -4
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +3 -1
- package/divider/divider.scss +9 -25
- package/dl/_dl-theme.scss +5 -6
- package/dl/dl.scss +5 -19
- package/dropdown/_dropdown-theme.scss +21 -21
- package/dropdown/dropdown-item.scss +3 -11
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1 -1
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +2 -2
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +4 -4
- package/fesm2022/koobiq-components-timepicker.mjs +9 -1
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -1
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +109 -68
- package/file-upload/file-upload.scss +0 -5
- package/file-upload/multiple-file-upload.component.scss +32 -98
- package/file-upload/single-file-upload.component.scss +12 -31
- package/form-field/_form-field-theme.scss +32 -34
- package/form-field/_hint-theme.scss +16 -19
- package/form-field/cleaner.scss +3 -8
- package/form-field/form-field.scss +11 -12
- package/form-field/hint.scss +3 -7
- package/form-field/password-toggle.scss +3 -9
- package/form-field/stepper.scss +4 -10
- package/icon/_icon-button-theme.scss +35 -35
- package/icon/_icon-item-theme.scss +46 -31
- package/icon/_icon-theme.scss +9 -15
- package/icon/icon-button.scss +5 -17
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +12 -7
- package/icon/icon.scss +0 -5
- package/input/_input-theme.scss +2 -3
- package/input/input.scss +2 -1
- package/link/_link-theme.scss +25 -42
- package/list/_list-theme.scss +18 -17
- package/list/list.scss +0 -4
- package/loader-overlay/_loader-overlay-theme.scss +13 -16
- package/loader-overlay/loader-overlay.scss +9 -32
- package/markdown/_markdown-theme.scss +41 -44
- package/markdown/markdown.scss +38 -88
- package/modal/_modal-confirm.scss +2 -6
- package/modal/_modal-theme.scss +11 -12
- package/modal/modal.scss +18 -24
- package/navbar/_navbar-item_horizontal.scss +24 -27
- package/navbar/_navbar-item_vertical.scss +28 -27
- package/navbar/_navbar-theme.scss +21 -22
- package/navbar/navbar-brand.scss +24 -26
- package/navbar/navbar-divider.scss +4 -7
- package/navbar/navbar-item.scss +5 -13
- package/navbar/navbar.scss +2 -5
- package/navbar/vertical-navbar.scss +3 -5
- package/package.json +9 -9
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover.scss +18 -24
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -10
- package/progress-bar/progress-bar.scss +6 -18
- package/progress-spinner/_progress-spinner-theme.scss +6 -7
- package/progress-spinner/progress-spinner.scss +8 -17
- package/radio/_radio-theme.scss +29 -37
- package/radio/radio.scss +17 -38
- package/risk-level/_risk-level-theme.scss +25 -30
- package/risk-level/risk-level.component.scss +5 -8
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/_scrollbar-component-theme.scss +14 -17
- package/scrollbar/scrollbar.component.scss +7 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.scss +3 -10
- package/sidepanel/_sidepanel-theme.scss +8 -9
- package/sidepanel/sidepanel.scss +19 -30
- package/splitter/_splitter-theme.scss +3 -3
- package/table/_table-theme.scss +9 -8
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +4 -7
- package/tabs/_tabs-theme.scss +77 -44
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-list.scss +6 -5
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +4 -6
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +8 -9
- package/timezone/timezone-option.component.scss +5 -7
- package/timezone/timezone-select.component.scss +2 -3
- package/toast/_toast-theme.scss +15 -14
- package/toast/toast-container.component.scss +4 -7
- package/toast/toast.component.scss +20 -25
- package/toggle/_toggle-theme.scss +48 -42
- package/toggle/toggle.scss +9 -21
- package/tooltip/_tooltip-theme.scss +13 -16
- package/tooltip/tooltip.scss +8 -10
- package/tree/_tree-theme.scss +20 -22
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -6
- package/tree-select/_tree-select-theme.scss +11 -13
- package/tree-select/tree-select.scss +0 -4
- package/core/styles/_variables.scss +0 -1
|
@@ -2,40 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
@mixin kbq-progress-bar-theme($theme) {
|
|
8
9
|
$progress-bar: map.get(map.get($theme, components), progress-bar);
|
|
9
10
|
|
|
10
11
|
.kbq-progress-bar.kbq-theme {
|
|
11
|
-
$bar: map.get($progress-bar, bar);
|
|
12
|
-
|
|
13
12
|
.kbq-progress-bar__inner {
|
|
14
|
-
background-color: map.get($bar, background);
|
|
13
|
+
background-color: kbq-css-variable(progress-bar-bar-background, map.get($progress-bar, bar, background));
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
.kbq-progress-bar__line {
|
|
18
|
-
background-color: map.get($bar, foreground);
|
|
17
|
+
background-color: kbq-css-variable(progress-bar-bar-foreground, map.get($progress-bar, bar, foreground));
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.kbq-progress-bar-text {
|
|
23
|
-
color: map.get($progress-bar, text);
|
|
22
|
+
color: kbq-css-variable(progress-bar-text, map.get($progress-bar, text));
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
.kbq-progress-bar-caption {
|
|
27
|
-
color: map.get($progress-bar, caption);
|
|
26
|
+
color: kbq-css-variable(progress-bar-caption, map.get($progress-bar, caption));
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
@mixin kbq-progress-bar-typography($config) {
|
|
32
|
-
$tokens: map.get($config, tokens);
|
|
33
|
-
|
|
34
31
|
.kbq-progress-bar-text {
|
|
35
|
-
@include kbq-typography-
|
|
32
|
+
@include kbq-typography-css-variables(progress-bar, label);
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
.kbq-progress-bar-caption {
|
|
39
|
-
@include kbq-typography-
|
|
36
|
+
@include kbq-typography-css-variables(progress-bar, caption);
|
|
40
37
|
}
|
|
41
38
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/functions/timing';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -25,37 +25,25 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
|
|
27
27
|
.kbq-progress-bar-text {
|
|
28
|
-
margin-bottom:
|
|
29
|
-
--kbq-progress-bar-size-container-content-gap,
|
|
30
|
-
map.get($tokens, progress-bar-size-container-content-gap)
|
|
31
|
-
);
|
|
28
|
+
margin-bottom: kbq-css-variable(progress-bar-size-container-content-gap);
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
.kbq-progress-bar-caption {
|
|
35
|
-
margin-top:
|
|
36
|
-
--kbq-progress-bar-size-container-content-gap,
|
|
37
|
-
map.get($tokens, progress-bar-size-container-content-gap)
|
|
38
|
-
);
|
|
32
|
+
margin-top: kbq-css-variable(progress-bar-size-container-content-gap);
|
|
39
33
|
}
|
|
40
34
|
|
|
41
35
|
& .kbq-progress-bar__inner {
|
|
42
36
|
overflow: hidden;
|
|
43
37
|
|
|
44
|
-
height:
|
|
45
|
-
border-radius:
|
|
46
|
-
--kbq-progress-bar-size-container-border-radius,
|
|
47
|
-
map.get($tokens, progress-bar-size-container-border-radius)
|
|
48
|
-
);
|
|
38
|
+
height: kbq-css-variable(progress-bar-size-bar-height);
|
|
39
|
+
border-radius: kbq-css-variable(progress-bar-size-container-border-radius);
|
|
49
40
|
}
|
|
50
41
|
|
|
51
42
|
& .kbq-progress-bar__line {
|
|
52
43
|
height: 100%;
|
|
53
44
|
transform-origin: top left;
|
|
54
45
|
|
|
55
|
-
border-radius:
|
|
56
|
-
--kbq-progress-bar-size-bar-border-radius,
|
|
57
|
-
map.get($tokens, progress-bar-size-bar-border-radius)
|
|
58
|
-
);
|
|
46
|
+
border-radius: kbq-css-variable(progress-bar-size-bar-border-radius);
|
|
59
47
|
}
|
|
60
48
|
|
|
61
49
|
&.kbq-progress-bar_determinate .kbq-progress-bar__line {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@use '../core/styles/theming/theming' as *;
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
@mixin kbq-progress-spinner-theme($theme) {
|
|
@@ -9,27 +10,25 @@
|
|
|
9
10
|
|
|
10
11
|
.kbq-progress-spinner {
|
|
11
12
|
.kbq-progress-spinner__circle {
|
|
12
|
-
stroke: map.get($progress-spinner, circle);
|
|
13
|
+
stroke: kbq-css-variable(progress-spinner-circle, map.get($progress-spinner, circle));
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.kbq-progress-spinner-text {
|
|
17
|
-
color: map.get($progress-spinner, text);
|
|
18
|
+
color: kbq-css-variable(progress-spinner-text, map.get($progress-spinner, text));
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.kbq-progress-spinner-caption {
|
|
21
|
-
color: map.get($progress-spinner, caption);
|
|
22
|
+
color: kbq-css-variable(progress-spinner-caption, map.get($progress-spinner, caption));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
@mixin kbq-progress-spinner-typography($config) {
|
|
26
|
-
$tokens: map.get($config, tokens);
|
|
27
|
-
|
|
28
27
|
.kbq-progress-spinner-text {
|
|
29
|
-
@include kbq-typography-
|
|
28
|
+
@include kbq-typography-css-variables(progress-spinner, label);
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
.kbq-progress-spinner-caption {
|
|
33
|
-
@include kbq-typography-
|
|
32
|
+
@include kbq-typography-css-variables(progress-spinner, caption);
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/functions/timing';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -18,10 +18,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: row;
|
|
20
20
|
|
|
21
|
-
gap:
|
|
22
|
-
--kbq-progress-spinner-size-compact-content-gap-horizontal,
|
|
23
|
-
map.get($tokens, progress-spinner-size-compact-content-gap-horizontal)
|
|
24
|
-
);
|
|
21
|
+
gap: kbq-css-variable(progress-spinner-size-compact-content-gap-horizontal);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
.kbq-progress-spinner__circle {
|
|
@@ -34,8 +31,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
.kbq-progress-spinner__inner {
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
34
|
+
width: kbq-css-variable(progress-spinner-size-compact-size);
|
|
35
|
+
height: kbq-css-variable(progress-spinner-size-compact-size);
|
|
39
36
|
|
|
40
37
|
transform: rotateZ(-90deg);
|
|
41
38
|
|
|
@@ -44,22 +41,16 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
44
41
|
|
|
45
42
|
.kbq-progress-spinner__content {
|
|
46
43
|
.kbq-progress-spinner-text {
|
|
47
|
-
margin-bottom:
|
|
48
|
-
--kbq-progress-spinner-size-compact-content-gap-vertical,
|
|
49
|
-
map.get($tokens, progress-spinner-size-compact-content-gap-vertical)
|
|
50
|
-
);
|
|
44
|
+
margin-bottom: kbq-css-variable(progress-spinner-size-compact-content-gap-vertical);
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
.kbq-progress-spinner_big {
|
|
55
|
-
gap:
|
|
56
|
-
--kbq-progress-spinner-size-big-content-gap-horizontal,
|
|
57
|
-
map.get($tokens, progress-spinner-size-big-content-gap-horizontal)
|
|
58
|
-
);
|
|
49
|
+
gap: kbq-css-variable(progress-spinner-size-big-content-gap-horizontal);
|
|
59
50
|
|
|
60
51
|
& .kbq-progress-spinner__inner {
|
|
61
|
-
width:
|
|
62
|
-
height:
|
|
52
|
+
width: kbq-css-variable(progress-spinner-size-big-size);
|
|
53
|
+
height: kbq-css-variable(progress-spinner-size-big-size);
|
|
63
54
|
}
|
|
64
55
|
|
|
65
56
|
& .kbq-progress-spinner__circle {
|
package/radio/_radio-theme.scss
CHANGED
|
@@ -2,58 +2,59 @@
|
|
|
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-radio-state($state) {
|
|
8
|
+
@mixin kbq-radio-state($component, $type, $state-name) {
|
|
9
|
+
$state: map.get($component, $type, $state-name);
|
|
10
|
+
|
|
8
11
|
& .kbq-radio-button__outer-circle {
|
|
9
|
-
border-color:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
border-color: kbq-css-variable(
|
|
13
|
+
radio-#{$type}-#{$state-name}-outer-circle-border, map.get($state, outer-circle-border));
|
|
14
|
+
background: kbq-css-variable(
|
|
15
|
+
radio-#{$type}-#{$state-name}-outer-circle-background, map.get($state, outer-circle-background));
|
|
16
|
+
box-shadow: kbq-css-variable(
|
|
17
|
+
radio-#{$type}-#{$state-name}-outer-circle-shadow, map.get($state, outer-circle-shadow));
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
& .kbq-radio-button__inner-circle {
|
|
15
|
-
background:
|
|
21
|
+
background: kbq-css-variable(
|
|
22
|
+
radio-#{$type}-#{$state-name}-inner-circle-background, map.get($state, inner-circle-background));
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
@mixin kbq-radio-color($
|
|
20
|
-
|
|
21
|
-
@include kbq-radio-state($default);
|
|
26
|
+
@mixin kbq-radio-color($component, $type-name) {
|
|
27
|
+
@include kbq-radio-state($component, $type-name, default);
|
|
22
28
|
|
|
23
29
|
& .kbq-hint .kbq-hint__text {
|
|
24
|
-
color: map.get($default, caption);
|
|
30
|
+
color: map.get($component, $type-name, default, caption);
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
&:hover {
|
|
28
|
-
|
|
29
|
-
@include kbq-radio-state($hover);
|
|
34
|
+
@include kbq-radio-state($component, $type-name, states-hover);
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
&.cdk-keyboard-focused {
|
|
33
|
-
|
|
34
|
-
@include kbq-radio-state($focused);
|
|
38
|
+
@include kbq-radio-state($component, $type-name, states-focused);
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
&.kbq-selected:not(.kbq-disabled) {
|
|
38
|
-
|
|
39
|
-
@include kbq-radio-state($selected);
|
|
42
|
+
@include kbq-radio-state($component, $type-name, states-checked);
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
&.kbq-selected.kbq-disabled {
|
|
43
|
-
|
|
44
|
-
@include kbq-radio-state($selected-disabled);
|
|
46
|
+
@include kbq-radio-state($component, $type-name, states-checked-disabled);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
&.kbq-disabled {
|
|
48
|
-
|
|
49
|
-
@include kbq-radio-state($disabled);
|
|
50
|
+
@include kbq-radio-state($component, $type-name, states-disabled);
|
|
50
51
|
|
|
51
52
|
& .kbq-radio-label {
|
|
52
53
|
cursor: default;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
& .kbq-hint .kbq-hint__text {
|
|
56
|
-
color: map.get($
|
|
57
|
+
color: map.get($component, $type-name, states-disabled, caption);
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -63,46 +64,37 @@
|
|
|
63
64
|
|
|
64
65
|
$radio: map.get(map.get($theme, components), radio);
|
|
65
66
|
|
|
66
|
-
$radio-theme: map.get($radio, theme);
|
|
67
|
-
$radio-error: map.get($radio, error);
|
|
68
|
-
|
|
69
|
-
.kbq-radio-group {
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
67
|
.kbq-radio-button {
|
|
74
68
|
& .kbq-radio-button__inner-circle {
|
|
75
69
|
border-width: 0 !important;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
@include kbq-radio-color($radio
|
|
72
|
+
@include kbq-radio-color($radio, theme);
|
|
79
73
|
|
|
80
|
-
color: map.get($foreground, contrast);
|
|
74
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
81
75
|
|
|
82
76
|
&.kbq-error {
|
|
83
|
-
@include kbq-radio-color($radio
|
|
77
|
+
@include kbq-radio-color($radio, error);
|
|
84
78
|
|
|
85
|
-
color: map.get($foreground, contrast);
|
|
79
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
82
|
}
|
|
89
83
|
|
|
90
84
|
@mixin kbq-radio-typography($config) {
|
|
91
|
-
$tokens: map.get($config, tokens);
|
|
92
|
-
|
|
93
85
|
.kbq-radio-button {
|
|
94
|
-
@include kbq-typography-
|
|
86
|
+
@include kbq-typography-css-variables(radio, normal-label);
|
|
95
87
|
|
|
96
88
|
& .kbq-hint .kbq-hint__text {
|
|
97
|
-
@include kbq-typography-
|
|
89
|
+
@include kbq-typography-css-variables(radio, normal-caption);
|
|
98
90
|
}
|
|
99
91
|
}
|
|
100
92
|
|
|
101
93
|
.kbq-radio-button.kbq-radio-button_big {
|
|
102
|
-
@include kbq-typography-
|
|
94
|
+
@include kbq-typography-css-variables(radio, big-label);
|
|
103
95
|
|
|
104
96
|
& .kbq-hint .kbq-hint__text {
|
|
105
|
-
@include kbq-typography-
|
|
97
|
+
@include kbq-typography-css-variables(radio, big-caption);
|
|
106
98
|
}
|
|
107
99
|
}
|
|
108
100
|
}
|
package/radio/radio.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;
|
|
@@ -11,11 +12,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
12
|
flex-direction: column;
|
|
12
13
|
|
|
13
14
|
&.kbq-radio-group_normal {
|
|
14
|
-
gap:
|
|
15
|
+
gap: kbq-css-variable(radio-size-normal-vertical-gap);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
&.kbq-radio-group_big {
|
|
18
|
-
gap:
|
|
19
|
+
gap: kbq-css-variable(radio-size-big-vertical-gap);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -46,10 +47,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
46
47
|
|
|
47
48
|
padding-left: calc(
|
|
48
49
|
var(--kbq-radio-size-normal-outer-size, map.get($tokens, radio-size-normal-outer-size)) +
|
|
49
|
-
var(
|
|
50
|
-
--kbq-radio-size-normal-horizontal-content-padding,
|
|
51
|
-
map.get($tokens, radio-size-normal-horizontal-content-padding)
|
|
52
|
-
)
|
|
50
|
+
var(--kbq-radio-size-normal-horizontal-content-padding, map.get($tokens, radio-size-normal-horizontal-content-padding))
|
|
53
51
|
);
|
|
54
52
|
padding-right: 0;
|
|
55
53
|
|
|
@@ -74,39 +72,29 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
74
72
|
|
|
75
73
|
left: 0;
|
|
76
74
|
|
|
77
|
-
width:
|
|
78
|
-
height:
|
|
75
|
+
width: kbq-css-variable(radio-size-normal-outer-size);
|
|
76
|
+
height: kbq-css-variable(radio-size-normal-outer-size);
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
.kbq-radio-button__inner-circle {
|
|
82
80
|
position: relative;
|
|
83
81
|
margin: auto;
|
|
84
82
|
|
|
85
|
-
width:
|
|
86
|
-
height:
|
|
83
|
+
width: kbq-css-variable(radio-size-normal-inner-size);
|
|
84
|
+
height: kbq-css-variable(radio-size-normal-inner-size);
|
|
87
85
|
}
|
|
88
86
|
|
|
89
87
|
.kbq-radio__text-container {
|
|
90
88
|
display: flex;
|
|
91
89
|
flex-direction: column;
|
|
92
|
-
|
|
93
|
-
& .kbq-radio__text {
|
|
94
|
-
|
|
95
|
-
}
|
|
96
90
|
}
|
|
97
91
|
|
|
98
92
|
& .kbq-hint {
|
|
99
|
-
margin-top:
|
|
100
|
-
--kbq-radio-size-normal-vertical-content-padding,
|
|
101
|
-
map.get($tokens, radio-size-normal-vertical-content-padding)
|
|
102
|
-
);
|
|
93
|
+
margin-top: kbq-css-variable(radio-size-normal-vertical-content-padding);
|
|
103
94
|
}
|
|
104
95
|
|
|
105
96
|
[dir='rtl'] & {
|
|
106
|
-
padding-right:
|
|
107
|
-
--kbq-radio-size-normal-horizontal-content-padding,
|
|
108
|
-
map.get($tokens, radio-size-normal-horizontal-content-padding)
|
|
109
|
-
);
|
|
97
|
+
padding-right: kbq-css-variable(radio-size-normal-horizontal-content-padding);
|
|
110
98
|
padding-left: 0;
|
|
111
99
|
}
|
|
112
100
|
}
|
|
@@ -121,36 +109,27 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
121
109
|
.kbq-radio-label-content {
|
|
122
110
|
padding-left: calc(
|
|
123
111
|
var(--kbq-radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) +
|
|
124
|
-
var(
|
|
125
|
-
--kbq-radio-size-big-horizontal-content-padding,
|
|
126
|
-
map.get($tokens, radio-size-big-horizontal-content-padding)
|
|
127
|
-
)
|
|
112
|
+
var(--kbq-radio-size-big-horizontal-content-padding, map.get($tokens, radio-size-big-horizontal-content-padding))
|
|
128
113
|
);
|
|
129
114
|
|
|
130
115
|
.kbq-radio-button__outer-circle {
|
|
131
116
|
top: 2px;
|
|
132
117
|
|
|
133
|
-
width:
|
|
134
|
-
height:
|
|
118
|
+
width: kbq-css-variable(radio-size-big-outer-size);
|
|
119
|
+
height: kbq-css-variable(radio-size-big-outer-size);
|
|
135
120
|
}
|
|
136
121
|
|
|
137
122
|
.kbq-radio-button__inner-circle {
|
|
138
|
-
width:
|
|
139
|
-
height:
|
|
123
|
+
width: kbq-css-variable(radio-size-big-inner-size);
|
|
124
|
+
height: kbq-css-variable(radio-size-big-inner-size);
|
|
140
125
|
}
|
|
141
126
|
|
|
142
127
|
& .kbq-hint {
|
|
143
|
-
margin-top:
|
|
144
|
-
--kbq-radio-size-big-vertical-content-padding,
|
|
145
|
-
map.get($tokens, radio-size-big-vertical-content-padding)
|
|
146
|
-
);
|
|
128
|
+
margin-top: kbq-css-variable(radio-size-big-vertical-content-padding);
|
|
147
129
|
}
|
|
148
130
|
|
|
149
131
|
[dir='rtl'] & {
|
|
150
|
-
padding-right:
|
|
151
|
-
--kbq-radio-size-big-horizontal-content-padding,
|
|
152
|
-
map.get($tokens, radio-size-big-horizontal-content-padding)
|
|
153
|
-
);
|
|
132
|
+
padding-right: kbq-css-variable(radio-size-big-horizontal-content-padding);
|
|
154
133
|
}
|
|
155
134
|
}
|
|
156
135
|
}
|
|
@@ -2,87 +2,82 @@
|
|
|
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-risk-level-filled-color($
|
|
8
|
+
@mixin kbq-risk-level-filled-color($component, $type, $sub-type, $style-name) {
|
|
9
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
10
|
+
$base: risk-level-#{$type}-#{$sub-type}-#{$style-name};
|
|
8
11
|
border: transparent;
|
|
9
12
|
|
|
10
|
-
color: map.get($
|
|
11
|
-
background: map.get($
|
|
13
|
+
color: kbq-css-variable(#{$base}-color, map.get($style, color));
|
|
14
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
@mixin kbq-risk-level-outline-color($
|
|
15
|
-
|
|
17
|
+
@mixin kbq-risk-level-outline-color($component, $type, $sub-type, $style-name) {
|
|
18
|
+
$style: map.get($component, $type, $sub-type, $style-name);
|
|
19
|
+
$base: risk-level-#{$type}-#{$sub-type}-#{$style-name};
|
|
16
20
|
|
|
17
|
-
color: map.get($
|
|
18
|
-
|
|
21
|
+
border-color: kbq-css-variable(#{$base}-border, map.get($style, border));
|
|
22
|
+
|
|
23
|
+
color: kbq-css-variable(#{$base}-color, map.get($style, color));
|
|
24
|
+
background: kbq-css-variable(#{$base}-background, map.get($style, background));
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
@mixin kbq-risk-level-theme($theme) {
|
|
22
28
|
$risk-level: map.get(map.get($theme, components), risk-level);
|
|
23
29
|
|
|
24
|
-
$filled: map.get($risk-level, filled);
|
|
25
|
-
$outline: map.get($risk-level, outline);
|
|
26
|
-
|
|
27
30
|
.kbq-risk-level_filled {
|
|
28
|
-
$fade-on: map.get($filled, fade-on);
|
|
29
|
-
|
|
30
31
|
&.kbq-risk-level_fade-contrast {
|
|
31
|
-
@include kbq-risk-level-filled-color(
|
|
32
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, contrast);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
&.kbq-risk-level_fade-success {
|
|
35
|
-
@include kbq-risk-level-filled-color(
|
|
36
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, success);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
&.kbq-risk-level_fade-warning {
|
|
39
|
-
@include kbq-risk-level-filled-color(
|
|
40
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, warning);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
&.kbq-risk-level_fade-error {
|
|
43
|
-
@include kbq-risk-level-filled-color(
|
|
44
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-on, error);
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
$fade-off: map.get($filled, fade-off);
|
|
47
|
-
|
|
48
47
|
&.kbq-risk-level_success {
|
|
49
|
-
@include kbq-risk-level-filled-color(
|
|
48
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, success);
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
&.kbq-risk-level_warning {
|
|
53
|
-
@include kbq-risk-level-filled-color(
|
|
52
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, warning);
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
&.kbq-risk-level_error {
|
|
57
|
-
@include kbq-risk-level-filled-color(
|
|
56
|
+
@include kbq-risk-level-filled-color($risk-level, filled, fade-off, error);
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
.kbq-risk-level_outline {
|
|
62
|
-
$fade-on: map.get($outline, fade-on);
|
|
63
|
-
|
|
64
61
|
&.kbq-risk-level_fade-contrast {
|
|
65
|
-
@include kbq-risk-level-outline-color(
|
|
62
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, contrast);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
&.kbq-risk-level_fade-success {
|
|
69
|
-
@include kbq-risk-level-outline-color(
|
|
66
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, success);
|
|
70
67
|
}
|
|
71
68
|
|
|
72
69
|
&.kbq-risk-level_fade-warning {
|
|
73
|
-
@include kbq-risk-level-outline-color(
|
|
70
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, warning);
|
|
74
71
|
}
|
|
75
72
|
|
|
76
73
|
&.kbq-risk-level_fade-error {
|
|
77
|
-
@include kbq-risk-level-outline-color(
|
|
74
|
+
@include kbq-risk-level-outline-color($risk-level, outline, fade-on, error);
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
@mixin kbq-risk-level-typography($config) {
|
|
83
|
-
$tokens: map.get($config, tokens);
|
|
84
|
-
|
|
85
80
|
.kbq-risk-level {
|
|
86
|
-
@include kbq-typography-
|
|
81
|
+
@include kbq-typography-css-variables(risk-level, text);
|
|
87
82
|
}
|
|
88
83
|
}
|
|
@@ -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-risk-level {
|
|
@@ -16,11 +13,11 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
16
13
|
border-style: solid;
|
|
17
14
|
|
|
18
15
|
padding:
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
kbq-css-variable(risk-level-size-padding-vertical)
|
|
17
|
+
kbq-css-variable(risk-level-size-padding-horizontal);
|
|
21
18
|
|
|
22
19
|
border: {
|
|
23
|
-
width:
|
|
24
|
-
radius:
|
|
20
|
+
width: kbq-css-variable(risk-level-size-border-width);
|
|
21
|
+
radius: kbq-css-variable(risk-level-size-border-radius);
|
|
25
22
|
}
|
|
26
23
|
}
|
|
@@ -52,13 +52,13 @@ function ngAdd(options) {
|
|
|
52
52
|
}
|
|
53
53
|
// Installing dependencies
|
|
54
54
|
addPackageToPackageJson(tree, '@angular/cdk', "^17.2.0");
|
|
55
|
-
addPackageToPackageJson(tree, '@koobiq/cdk', "^17.0.0-rc.
|
|
56
|
-
addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.0-rc.
|
|
57
|
-
addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.
|
|
58
|
-
addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.
|
|
55
|
+
addPackageToPackageJson(tree, '@koobiq/cdk', "^17.0.0-rc.7");
|
|
56
|
+
addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.0-rc.7");
|
|
57
|
+
addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
|
|
58
|
+
addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.1.2");
|
|
59
59
|
addPackageToPackageJson(tree, '@koobiq/icons', "^7.1.1");
|
|
60
|
-
addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.0.0-rc.
|
|
61
|
-
addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0-rc.
|
|
60
|
+
addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.0.0-rc.9");
|
|
61
|
+
addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0-rc.9");
|
|
62
62
|
addPackageToPackageJson(tree, '@messageformat/core', "^3.0.1");
|
|
63
63
|
addPackageToPackageJson(tree, 'luxon', "^3.4.4");
|
|
64
64
|
addPackageToPackageJson(tree, 'marked', "^9.0.0");
|