@koobiq/components 18.5.2 → 18.6.0

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.
Files changed (112) hide show
  1. package/accordion/_accordion-theme.scss +3 -3
  2. package/alert/_alert-theme.scss +3 -3
  3. package/badge/_badge-theme.scss +8 -4
  4. package/badge/badge-tokens.scss +8 -0
  5. package/badge/badge.component.d.ts +1 -0
  6. package/button/_button-theme.scss +2 -2
  7. package/button/button-tokens.scss +3 -6
  8. package/button/button.scss +13 -8
  9. package/button-toggle/_button-toggle-theme.scss +1 -1
  10. package/checkbox/_checkbox-theme.scss +4 -4
  11. package/checkbox/checkbox-tokens.scss +4 -4
  12. package/code-block/_code-block-theme.scss +4 -4
  13. package/core/forms/_forms-theme.scss +1 -1
  14. package/core/option/_optgroup-theme.scss +2 -2
  15. package/core/option/_option-action-theme.scss +1 -1
  16. package/core/option/_option-theme.scss +2 -2
  17. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +4 -4
  18. package/core/styles/theming/_theming.scss +2 -42
  19. package/core/styles/typography/_typography.scss +120 -159
  20. package/core/styles/visual/_layout.scss +1 -1
  21. package/datepicker/_datepicker-theme.scss +2 -2
  22. package/dl/_dl-theme.scss +2 -2
  23. package/dl/dl-tokens.scss +2 -2
  24. package/dropdown/_dropdown-theme.scss +8 -4
  25. package/empty-state/_empty-state-theme.scss +4 -4
  26. package/esm2022/badge/badge.component.mjs +4 -3
  27. package/esm2022/button/button.component.mjs +2 -2
  28. package/esm2022/checkbox/checkbox.mjs +2 -2
  29. package/esm2022/code-block/code-block.component.mjs +2 -2
  30. package/esm2022/core/option/action.mjs +2 -2
  31. package/esm2022/core/option/optgroup.mjs +2 -2
  32. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -2
  33. package/esm2022/core/version.mjs +2 -2
  34. package/esm2022/dl/dl.component.mjs +2 -2
  35. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  36. package/esm2022/icon/icon-button.component.mjs +2 -2
  37. package/esm2022/markdown/markdown.component.mjs +2 -2
  38. package/esm2022/select/select.component.mjs +3 -3
  39. package/esm2022/splitter/splitter.component.mjs +3 -3
  40. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  41. package/esm2022/toast/toast.component.mjs +3 -3
  42. package/esm2022/toggle/toggle.component.mjs +3 -3
  43. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  44. package/fesm2022/koobiq-components-badge.mjs +3 -2
  45. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  46. package/fesm2022/koobiq-components-button.mjs +2 -2
  47. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  48. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  49. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  50. package/fesm2022/koobiq-components-code-block.mjs +2 -2
  51. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  52. package/fesm2022/koobiq-components-core.mjs +7 -7
  53. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  54. package/fesm2022/koobiq-components-dl.mjs +2 -2
  55. package/fesm2022/koobiq-components-dropdown.mjs +2 -2
  56. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  57. package/fesm2022/koobiq-components-icon.mjs +2 -2
  58. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  59. package/fesm2022/koobiq-components-markdown.mjs +2 -2
  60. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  61. package/fesm2022/koobiq-components-select.mjs +2 -2
  62. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  63. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  64. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  65. package/fesm2022/koobiq-components-timezone.mjs +2 -2
  66. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  67. package/fesm2022/koobiq-components-toast.mjs +2 -2
  68. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  69. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  70. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  71. package/fesm2022/koobiq-components-tree-select.mjs +2 -2
  72. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  73. package/file-upload/_file-upload-theme.scss +7 -7
  74. package/form-field/_form-field-theme.scss +2 -2
  75. package/form-field/_hint-theme.scss +2 -2
  76. package/icon/_icon-button-theme.scss +2 -2
  77. package/input/_input-theme.scss +2 -2
  78. package/link/_link-theme.scss +3 -3
  79. package/list/_list-theme.scss +2 -2
  80. package/loader-overlay/_loader-overlay-theme.scss +4 -4
  81. package/markdown/_markdown-theme.scss +9 -9
  82. package/markdown/markdown-tokens.scss +23 -23
  83. package/modal/_modal-theme.scss +2 -2
  84. package/navbar/_navbar-theme.scss +2 -2
  85. package/package.json +6 -6
  86. package/popover/_popover-theme.scss +2 -2
  87. package/prebuilt-themes/dark-theme.css +1 -1
  88. package/prebuilt-themes/light-theme.css +1 -1
  89. package/prebuilt-themes/theme.css +1 -1
  90. package/progress-bar/_progress-bar-theme.scss +2 -2
  91. package/progress-spinner/_progress-spinner-theme.scss +2 -2
  92. package/radio/_radio-theme.scss +4 -4
  93. package/risk-level/_risk-level-theme.scss +1 -1
  94. package/schematics/collection.json +5 -0
  95. package/schematics/migrations/css-selectors/data.js +65 -0
  96. package/schematics/migrations/css-selectors/index.js +103 -0
  97. package/schematics/migrations/css-selectors/schema.json +25 -0
  98. package/schematics/ng-add/index.js +4 -4
  99. package/select/_select-theme.scss +5 -5
  100. package/sidepanel/_sidepanel-theme.scss +2 -2
  101. package/splitter/_splitter-theme.scss +1 -1
  102. package/table/_table-theme.scss +2 -2
  103. package/tabs/_tabs-theme.scss +1 -1
  104. package/tags/_tag-theme.scss +2 -2
  105. package/textarea/_textarea-theme.scss +1 -1
  106. package/timezone/_timezone-option-theme.scss +4 -4
  107. package/toast/_toast-theme.scss +2 -2
  108. package/toast/toast.component.scss +6 -1
  109. package/toggle/_toggle-theme.scss +5 -5
  110. package/tooltip/_tooltip-theme.scss +2 -2
  111. package/tree/_tree-theme.scss +2 -2
  112. package/tree-select/_tree-select-theme.scss +3 -3
@@ -45,14 +45,14 @@
45
45
  @mixin kbq-accordion-typography() {
46
46
  .kbq-accordion-header,
47
47
  .kbq-accordion-trigger {
48
- @include kbq-typography-level-to-styles_css-variables(typography, text-big);
48
+ @include kbq-typography-level-to-styles-css-variables(typography, text-big);
49
49
  }
50
50
 
51
51
  .kbq-accordion-trigger__caption {
52
- @include kbq-typography-level-to-styles_css-variables(typography, text-compact);
52
+ @include kbq-typography-level-to-styles-css-variables(typography, text-compact);
53
53
  }
54
54
 
55
55
  .kbq-accordion-content {
56
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
56
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
57
57
  }
58
58
  }
@@ -64,14 +64,14 @@
64
64
 
65
65
  @mixin kbq-alert-typography() {
66
66
  .kbq-alert {
67
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
67
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
68
68
 
69
69
  .kbq-alert__title {
70
- @include kbq-typography-level-to-styles_css-variables(typography, subheading);
70
+ @include kbq-typography-level-to-styles-css-variables(typography, subheading);
71
71
  }
72
72
 
73
73
  &.kbq-alert_compact .kbq-alert__title {
74
- @include kbq-typography-level-to-styles_css-variables(typography, text-big-strong);
74
+ @include kbq-typography-level-to-styles-css-variables(typography, text-big-strong);
75
75
  }
76
76
  }
77
77
  }
@@ -43,6 +43,10 @@
43
43
  @include kbq-badge-style(filled, fade-on, error);
44
44
  }
45
45
 
46
+ &.kbq-badge_contrast {
47
+ @include kbq-badge-style(filled, fade-off, contrast);
48
+ }
49
+
46
50
  &.kbq-badge_theme {
47
51
  @include kbq-badge-style(filled, fade-off, theme);
48
52
  }
@@ -85,18 +89,18 @@
85
89
 
86
90
  @mixin kbq-badge-typography() {
87
91
  .kbq-badge {
88
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal-medium);
92
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
89
93
 
90
94
  & .kbq-badge-caption {
91
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
95
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
92
96
  }
93
97
  }
94
98
 
95
99
  .kbq-badge_compact {
96
- @include kbq-typography-level-to-styles_css-variables(typography, text-compact-medium);
100
+ @include kbq-typography-level-to-styles-css-variables(typography, text-compact-medium);
97
101
 
98
102
  & .kbq-badge-caption {
99
- @include kbq-typography-level-to-styles_css-variables(typography, text-compact);
103
+ @include kbq-typography-level-to-styles-css-variables(typography, text-compact);
100
104
  }
101
105
  }
102
106
  }
@@ -25,6 +25,10 @@
25
25
  }
26
26
 
27
27
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
28
+ --kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
29
+ --kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
30
+ --kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
31
+ --kbq-badge-filled-fade-off-contrast-icon: var(--kbq-icon-on-contrast);
28
32
  --kbq-badge-filled-fade-off-theme-background: var(--kbq-background-theme);
29
33
  --kbq-badge-filled-fade-off-theme-color: var(--kbq-foreground-white);
30
34
  --kbq-badge-filled-fade-off-theme-caption: var(--kbq-foreground-white);
@@ -89,6 +93,10 @@
89
93
  }
90
94
 
91
95
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
96
+ --kbq-badge-filled-fade-off-contrast-background: var(--kbq-background-contrast);
97
+ --kbq-badge-filled-fade-off-contrast-color: var(--kbq-foreground-on-contrast);
98
+ --kbq-badge-filled-fade-off-contrast-caption: var(--kbq-foreground-on-contrast);
99
+ --kbq-badge-filled-fade-off-contrast-icon: var(--kbq-icon-on-contrast);
92
100
  --kbq-badge-filled-fade-off-theme-background: var(--kbq-background-theme);
93
101
  --kbq-badge-filled-fade-off-theme-color: var(--kbq-foreground-white);
94
102
  --kbq-badge-filled-fade-off-theme-caption: var(--kbq-foreground-white);
@@ -7,6 +7,7 @@ export declare enum KbqBadgeColors {
7
7
  FadeSuccess = "fade-success",
8
8
  FadeWarning = "fade-warning",
9
9
  FadeError = "fade-error",
10
+ Contrast = "contrast",
10
11
  Theme = "theme",
11
12
  Success = "success",
12
13
  Warning = "warning",
@@ -87,7 +87,7 @@
87
87
  &.kbq-button_outline,
88
88
  &.kbq-button_transparent {
89
89
  &.cdk-keyboard-focused {
90
- $focused-color: var(--kbq-states-focused-color);
90
+ $focused-color: var(--kbq-states-line-focus-theme);
91
91
  outline: 1px solid $focused-color;
92
92
  border-color: $focused-color;
93
93
  }
@@ -98,7 +98,7 @@
98
98
  @mixin kbq-button-typography() {
99
99
  .kbq-button,
100
100
  .kbq-button-icon {
101
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal-medium);
101
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
102
102
  }
103
103
 
104
104
  .kbq-button-icon.kbq-button-wrapper {
@@ -1,9 +1,3 @@
1
- .kbq-button-icon {
2
- --kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
3
- --kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
4
- --kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
5
- }
6
-
7
1
  .kbq-button,
8
2
  .kbq-button-icon {
9
3
  --kbq-button-size-height: var(--kbq-size-3xl);
@@ -11,6 +5,9 @@
11
5
  --kbq-button-size-border-radius: var(--kbq-size-border-radius);
12
6
  --kbq-button-size-horizontal-padding: var(--kbq-size-m);
13
7
  --kbq-button-size-content-padding: var(--kbq-size-xs);
8
+ --kbq-button-icon-size-horizontal-padding: var(--kbq-size-s);
9
+ --kbq-button-icon-size-vertical-padding: var(--kbq-size-s);
10
+ --kbq-button-icon-size-content-padding: var(--kbq-size-xxs);
14
11
  }
15
12
 
16
13
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
@@ -7,16 +7,22 @@
7
7
  .kbq-button {
8
8
  @extend %kbq-button-base;
9
9
 
10
- // base padding + compensation (4px) - border-width (2px)
11
- padding-left: kbq-sum-series-css-variables([button-size-horizontal-padding, 4px]);
12
- padding-right: kbq-sum-series-css-variables([button-size-horizontal-padding, 4px]);
10
+ // base padding - border-width
11
+ padding-left: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
12
+ padding-right: kbq-difference-series-css-variables([button-size-horizontal-padding, button-size-border-width]);
13
13
 
14
14
  &.kbq-button-icon_left {
15
- padding-left: var(--kbq-button-size-horizontal-padding);
15
+ padding-left: kbq-difference-series-css-variables(
16
+ [button-icon-size-horizontal-padding,
17
+ button-size-border-width]
18
+ );
16
19
  }
17
20
 
18
21
  &.kbq-button-icon_right {
19
- padding-right: var(--kbq-button-size-horizontal-padding);
22
+ padding-right: kbq-difference-series-css-variables(
23
+ [button-icon-size-horizontal-padding,
24
+ button-size-border-width]
25
+ );
20
26
  }
21
27
  }
22
28
 
@@ -27,9 +33,8 @@
27
33
  .kbq-button-icon {
28
34
  @extend %kbq-button-base;
29
35
 
30
- padding-left: var(--kbq-button-icon-size-horizontal-padding);
31
-
32
- padding-right: var(--kbq-button-icon-size-horizontal-padding);
36
+ padding-left: kbq-difference-series-css-variables([button-icon-size-horizontal-padding, button-size-border-width]);
37
+ padding-right: kbq-difference-series-css-variables([button-icon-size-horizontal-padding, button-size-border-width]);
33
38
  }
34
39
 
35
40
  .kbq-button-overlay {
@@ -57,6 +57,6 @@
57
57
 
58
58
  @mixin kbq-button-toggle-typography() {
59
59
  .kbq-button-toggle .kbq-button-toggle-wrapper {
60
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal-medium);
60
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal-medium);
61
61
  }
62
62
  }
@@ -98,18 +98,18 @@
98
98
 
99
99
  @mixin kbq-checkbox-typography() {
100
100
  .kbq-checkbox {
101
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
101
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
102
102
 
103
103
  & .kbq-hint .kbq-hint__text {
104
- @include kbq-typography-level-to-styles_css-variables(typography, text-compact);
104
+ @include kbq-typography-level-to-styles-css-variables(typography, text-compact);
105
105
  }
106
106
  }
107
107
 
108
108
  .kbq-checkbox.kbq-checkbox_big {
109
- @include kbq-typography-level-to-styles_css-variables(typography, text-big);
109
+ @include kbq-typography-level-to-styles-css-variables(typography, text-big);
110
110
 
111
111
  & .kbq-hint .kbq-hint__text {
112
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
112
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
113
113
  }
114
114
  }
115
115
  }
@@ -15,7 +15,7 @@
15
15
 
16
16
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
17
17
  --kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
18
- --kbq-checkbox-theme-default-color: var(--kbq-neutral-white);
18
+ --kbq-checkbox-theme-default-color: var(--kbq-icon-white);
19
19
  --kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
20
20
  --kbq-checkbox-theme-default-background: var(--kbq-background-bg);
21
21
  --kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -37,7 +37,7 @@
37
37
  --kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
38
38
  --kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
39
39
  --kbq-checkbox-error-default-border: var(--kbq-line-error);
40
- --kbq-checkbox-error-default-color: var(--kbq-neutral-white);
40
+ --kbq-checkbox-error-default-color: var(--kbq-icon-white);
41
41
  --kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
42
42
  --kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
43
43
  --kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -62,7 +62,7 @@
62
62
 
63
63
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
64
64
  --kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
65
- --kbq-checkbox-theme-default-color: var(--kbq-neutral-white);
65
+ --kbq-checkbox-theme-default-color: var(--kbq-icon-white);
66
66
  --kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
67
67
  --kbq-checkbox-theme-default-background: var(--kbq-background-bg);
68
68
  --kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -84,7 +84,7 @@
84
84
  --kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
85
85
  --kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
86
86
  --kbq-checkbox-error-default-border: var(--kbq-line-error);
87
- --kbq-checkbox-error-default-color: var(--kbq-neutral-white);
87
+ --kbq-checkbox-error-default-color: var(--kbq-icon-white);
88
88
  --kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
89
89
  --kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
90
90
  --kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -346,12 +346,12 @@
346
346
  .kbq-tab-group.kbq-focused {
347
347
  // paint focus border from the top since because of border constraints
348
348
  .kbq-tab-header {
349
- box-shadow: 0 2px 0 -1px var(--kbq-states-focused-color);
349
+ box-shadow: 0 2px 0 -1px var(--kbq-states-line-focus-theme);
350
350
  }
351
351
 
352
352
  .kbq-tab-body__wrapper {
353
- border-color: var(--kbq-states-focused-color);
354
- box-shadow: inset 0 0 0.1 1px var(--kbq-states-focused-color);
353
+ border-color: var(--kbq-states-line-focus-theme);
354
+ box-shadow: inset 0 0 0.1 1px var(--kbq-states-line-focus-theme);
355
355
  }
356
356
  }
357
357
  }
@@ -359,7 +359,7 @@
359
359
 
360
360
  @mixin kbq-code-block-typography() {
361
361
  .kbq-code-block {
362
- @include kbq-typography-level-to-styles_css-variables(typography, mono-codeblock);
362
+ @include kbq-typography-level-to-styles-css-variables(typography, mono-codeblock);
363
363
 
364
364
  & .kbq-code-block__code {
365
365
  font: inherit;
@@ -17,6 +17,6 @@
17
17
 
18
18
  @mixin kbq-forms-typography() {
19
19
  .kbq-form__label {
20
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
20
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
21
21
  }
22
22
  }
@@ -6,12 +6,12 @@
6
6
  }
7
7
 
8
8
  .kbq-disabled .kbq-optgroup-label {
9
- color: var(--kbq-foreground-text-disabled);
9
+ color: var(--kbq-states-foreground-disabled);
10
10
  }
11
11
  }
12
12
 
13
13
  @mixin kbq-optgroup-typography() {
14
14
  .kbq-optgroup-label {
15
- @include kbq-typography-level-to-styles_css-variables(typography, subheading);
15
+ @include kbq-typography-level-to-styles-css-variables(typography, subheading);
16
16
  }
17
17
  }
@@ -3,7 +3,7 @@
3
3
  @mixin kbq-option-action-theme() {
4
4
  .kbq-option-action {
5
5
  &.cdk-keyboard-focused {
6
- border-color: var(--kbq-states-focused-color);
6
+ border-color: var(--kbq-states-line-focus-theme);
7
7
  }
8
8
 
9
9
  &:active,
@@ -45,10 +45,10 @@
45
45
 
46
46
  @mixin kbq-option-typography() {
47
47
  .kbq-option {
48
- @include kbq-typography-level-to-styles_css-variables(typography, text-normal);
48
+ @include kbq-typography-level-to-styles-css-variables(typography, text-normal);
49
49
  }
50
50
 
51
51
  .kbq-list-option-caption {
52
- @include kbq-typography-level-to-styles_css-variables(typography, text-compact);
52
+ @include kbq-typography-level-to-styles-css-variables(typography, text-compact);
53
53
  }
54
54
  }
@@ -15,7 +15,7 @@
15
15
 
16
16
  :where(.kbq-light, .theme-light, .kbq-theme-light) {
17
17
  --kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
18
- --kbq-checkbox-theme-default-color: var(--kbq-neutral-white);
18
+ --kbq-checkbox-theme-default-color: var(--kbq-icon-white);
19
19
  --kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
20
20
  --kbq-checkbox-theme-default-background: var(--kbq-background-bg);
21
21
  --kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -37,7 +37,7 @@
37
37
  --kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
38
38
  --kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
39
39
  --kbq-checkbox-error-default-border: var(--kbq-line-error);
40
- --kbq-checkbox-error-default-color: var(--kbq-neutral-white);
40
+ --kbq-checkbox-error-default-color: var(--kbq-icon-white);
41
41
  --kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
42
42
  --kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
43
43
  --kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -62,7 +62,7 @@
62
62
 
63
63
  :where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
64
64
  --kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);
65
- --kbq-checkbox-theme-default-color: var(--kbq-neutral-white);
65
+ --kbq-checkbox-theme-default-color: var(--kbq-icon-white);
66
66
  --kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);
67
67
  --kbq-checkbox-theme-default-background: var(--kbq-background-bg);
68
68
  --kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -84,7 +84,7 @@
84
84
  --kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);
85
85
  --kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);
86
86
  --kbq-checkbox-error-default-border: var(--kbq-line-error);
87
- --kbq-checkbox-error-default-color: var(--kbq-neutral-white);
87
+ --kbq-checkbox-error-default-color: var(--kbq-icon-white);
88
88
  --kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);
89
89
  --kbq-checkbox-error-default-background: var(--kbq-states-background-error-less);
90
90
  --kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);
@@ -75,16 +75,7 @@
75
75
  error-tertiary: map.get($tokens, '#{$scheme}-foreground-error-tertiary'),
76
76
  visited: map.get($tokens, '#{$scheme}-foreground-visited'),
77
77
  // будет удалено, после удаления из компонентов ↓
78
- error-less: map.get($tokens, '#{$scheme}-foreground-error-less'),
79
- // будет удалено, после удаления из компонентов ↓
80
- text: map.get($tokens, '#{$scheme}-foreground-text'),
81
- text-less-contrast: map.get($tokens, '#{$scheme}-foreground-text-less-contrast'),
82
- text-disabled: map.get($tokens, '#{$scheme}-foreground-text-disabled'),
83
- text-error: map.get($tokens, '#{$scheme}-foreground-text-error'),
84
- text-success: map.get($tokens, '#{$scheme}-foreground-text-success'),
85
- divider: map.get($tokens, '#{$scheme}-foreground-divider'),
86
- border: map.get($tokens, '#{$scheme}-foreground-border'),
87
- icon: map.get($tokens, '#{$scheme}-foreground-icon')
78
+ error-less: map.get($tokens, '#{$scheme}-foreground-error-less')
88
79
  );
89
80
  }
90
81
 
@@ -107,16 +98,8 @@
107
98
  warning: map.get($tokens, '#{$scheme}-background-warning'),
108
99
  warning-fade: map.get($tokens, '#{$scheme}-background-warning-fade'),
109
100
  transparent: map.get($tokens, '#{$scheme}-background-transparent'),
110
- // будет удалено, после удаления из компонентов ↓
111
- background: map.get($tokens, '#{$scheme}-background-background'),
112
- background-disabled: map.get($tokens, '#{$scheme}-background-background-disabled'),
113
- background-less-contrast: map.get($tokens, '#{$scheme}-background-background-less-contrast'),
114
- background-under: map.get($tokens, '#{$scheme}-background-background-under'),
115
101
  overlay: map.get($tokens, '#{$scheme}-background-overlay'),
116
- overlay-inverse: map.get($tokens, '#{$scheme}-background-overlay-inverse'),
117
- overlay-hover: map.get($tokens, '#{$scheme}-background-overlay-hover'),
118
- overlay-active: map.get($tokens, '#{$scheme}-background-overlay-active'),
119
- overlay-disabled: map.get($tokens, '#{$scheme}-background-overlay-disabled')
102
+ overlay-inverse: map.get($tokens, '#{$scheme}-background-overlay-inverse')
120
103
  );
121
104
  }
122
105
 
@@ -213,22 +196,13 @@
213
196
  );
214
197
  }
215
198
 
216
- @function _theme_states-others($tokens, $scheme) {
217
- @return (brand: map.get($tokens, '#{$scheme}-states-others-brand'));
218
- }
219
-
220
199
  @function _theme_states($tokens, $scheme) {
221
200
  @return (
222
201
  background: _theme_states-background($tokens, $scheme),
223
202
  foreground: _theme_states-foreground($tokens, $scheme),
224
203
  icon: _theme_states-icon($tokens, $scheme),
225
204
  line: _theme_states-line($tokens, $scheme),
226
- others: _theme_states-others($tokens, $scheme),
227
205
  // будет удалено, после удаления из компонентов ↓
228
- focused-color: map.get($tokens, '#{$scheme}-states-focused-color'),
229
- focused-color-error: map.get($tokens, '#{$scheme}-states-focused-color-error'),
230
- selected-color: map.get($tokens, '#{$scheme}-states-selected-color'),
231
- pressed-shadow: map.get($tokens, '#{$scheme}-states-pressed-shadow'),
232
206
  disabled-opacity: map.get($tokens, '#{$scheme}-states-disabled-opacity')
233
207
  );
234
208
  }
@@ -249,10 +223,6 @@
249
223
  );
250
224
  }
251
225
 
252
- @function _theme_palette_neutral($tokens, $scheme) {
253
- @return (white: map.get($tokens, '#{$scheme}-neutral-white'), black: map.get($tokens, '#{$scheme}-neutral-black'));
254
- }
255
-
256
226
  @function kbq-light-theme($tokens) {
257
227
  $scheme: 'light';
258
228
 
@@ -269,14 +239,9 @@
269
239
  warning: _theme_palette($tokens, $scheme, warning),
270
240
  error: _theme_palette($tokens, $scheme, error),
271
241
  contrast: _theme_palette($tokens, $scheme, contrast),
272
- neutral: _theme_palette_neutral($tokens, $scheme),
273
242
  white: _theme_palette($tokens, $scheme, white),
274
243
  black: _theme_palette($tokens, $scheme, black),
275
- brand: _theme_palette($tokens, $scheme, brand),
276
244
  purple: _theme_palette($tokens, $scheme, purple),
277
- // будет удалено, после удаления из компонентов ↓
278
- info: _theme_palette($tokens, $scheme, info),
279
- // будет удалено, после удаления из компонентов ↑
280
245
  components: kbq-components-theme($tokens, $scheme),
281
246
  tokens: $tokens
282
247
  );
@@ -298,14 +263,9 @@
298
263
  warning: _theme_palette($tokens, $scheme, warning),
299
264
  error: _theme_palette($tokens, $scheme, error),
300
265
  contrast: _theme_palette($tokens, $scheme, contrast),
301
- neutral: _theme_palette_neutral($tokens, $scheme),
302
266
  white: _theme_palette($tokens, $scheme, white),
303
267
  black: _theme_palette($tokens, $scheme, black),
304
- brand: _theme_palette($tokens, $scheme, brand),
305
268
  purple: _theme_palette($tokens, $scheme, purple),
306
- // будет удалено, после удаления из компонентов ↓
307
- info: _theme_palette($tokens, $scheme, info),
308
- // будет удалено, после удаления из компонентов ↑
309
269
  components: kbq-components-theme($tokens, $scheme),
310
270
  tokens: $tokens
311
271
  );