@koobiq/components 17.1.0 → 17.3.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 (119) hide show
  1. package/alert/_alert-theme.scss +3 -3
  2. package/autocomplete/_autocomplete-theme.scss +2 -2
  3. package/badge/_badge-theme.scss +6 -5
  4. package/button/_button-theme.scss +4 -4
  5. package/button-toggle/_button-toggle-theme.scss +4 -1
  6. package/checkbox/_checkbox-theme.scss +35 -17
  7. package/code-block/_code-block-theme.scss +109 -105
  8. package/core/forms/_forms.scss +2 -2
  9. package/core/option/_option-action-theme.scss +1 -1
  10. package/core/option/_option-theme.scss +7 -4
  11. package/core/pop-up/index.d.ts +1 -0
  12. package/core/pop-up/pop-up-styles.d.ts +2 -0
  13. package/core/pop-up/pop-up.d.ts +5 -0
  14. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +5 -5
  15. package/core/styles/_koobiq-theme.scss +2 -4
  16. package/core/styles/theming/_components-theming.scss +27 -43
  17. package/core/styles/theming/_scrollbar-theme.scss +6 -5
  18. package/core/styles/typography/_typography.scss +70 -68
  19. package/datepicker/_datepicker-theme.scss +14 -11
  20. package/datepicker/datepicker-content.scss +8 -3
  21. package/datepicker/datepicker-toggle.scss +1 -0
  22. package/dl/_dl-theme.scss +2 -2
  23. package/dropdown/_dropdown-theme.scss +4 -4
  24. package/empty-state/_empty-state-theme.scss +2 -2
  25. package/esm2022/code-block/actionbar.component.mjs +1 -1
  26. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  27. package/esm2022/core/pop-up/index.mjs +2 -1
  28. package/esm2022/core/pop-up/pop-up-styles.mjs +26 -0
  29. package/esm2022/core/pop-up/pop-up.mjs +1 -1
  30. package/esm2022/core/version.mjs +2 -2
  31. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  32. package/esm2022/form-field/form-field.mjs +2 -2
  33. package/esm2022/form-field/stepper.mjs +2 -2
  34. package/esm2022/icon/icon-button.component.mjs +2 -2
  35. package/esm2022/list/list-selection.component.mjs +2 -2
  36. package/esm2022/list/list.component.mjs +2 -2
  37. package/esm2022/popover/popover.component.mjs +18 -2
  38. package/esm2022/select/select.component.mjs +2 -2
  39. package/esm2022/tabs/tab-body.component.mjs +3 -3
  40. package/esm2022/tabs/tab-group.component.mjs +1 -1
  41. package/esm2022/tabs/tab.component.mjs +3 -4
  42. package/esm2022/toast/toast.component.mjs +3 -3
  43. package/esm2022/tooltip/tooltip.component.mjs +42 -10
  44. package/fesm2022/koobiq-components-code-block.mjs +1 -1
  45. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  46. package/fesm2022/koobiq-components-core.mjs +29 -4
  47. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  48. package/fesm2022/koobiq-components-datepicker.mjs +2 -2
  49. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  50. package/fesm2022/koobiq-components-form-field.mjs +4 -4
  51. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  52. package/fesm2022/koobiq-components-icon.mjs +2 -2
  53. package/fesm2022/koobiq-components-list.mjs +4 -4
  54. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  55. package/fesm2022/koobiq-components-popover.mjs +17 -1
  56. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  57. package/fesm2022/koobiq-components-select.mjs +1 -1
  58. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  59. package/fesm2022/koobiq-components-tabs.mjs +5 -6
  60. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  61. package/fesm2022/koobiq-components-toast.mjs +2 -2
  62. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  63. package/fesm2022/koobiq-components-tooltip.mjs +41 -9
  64. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  65. package/file-upload/_file-upload-theme.scss +31 -27
  66. package/form-field/_form-field-theme.scss +6 -6
  67. package/form-field/form-field.scss +2 -2
  68. package/form-field/stepper.scss +1 -1
  69. package/icon/_icon-button-theme.scss +45 -26
  70. package/icon/_icon-item-theme.scss +1 -1
  71. package/icon/icon-button.scss +4 -4
  72. package/input/_input-theme.scss +1 -1
  73. package/link/_link-theme.scss +12 -6
  74. package/list/_list-theme.scss +8 -5
  75. package/list/list.scss +1 -0
  76. package/loader-overlay/_loader-overlay-theme.scss +10 -6
  77. package/markdown/_markdown-theme.scss +1 -1
  78. package/modal/_modal-theme.scss +6 -5
  79. package/navbar/_navbar-theme.scss +8 -8
  80. package/package.json +6 -12
  81. package/popover/_popover-theme.scss +4 -4
  82. package/popover/popover.component.d.ts +6 -5
  83. package/prebuilt-themes/dark-theme.css +1 -1
  84. package/prebuilt-themes/light-theme.css +1 -1
  85. package/progress-bar/_progress-bar-theme.scss +2 -2
  86. package/progress-spinner/_progress-spinner-theme.scss +3 -3
  87. package/radio/_radio-theme.scss +15 -19
  88. package/schematics/ng-add/index.js +4 -4
  89. package/scrollbar/_scrollbar-component-theme.scss +27 -12
  90. package/select/_select-theme.scss +2 -2
  91. package/sidepanel/_sidepanel-theme.scss +4 -4
  92. package/splitter/_splitter-theme.scss +1 -2
  93. package/tabs/_tabs-theme.scss +4 -3
  94. package/tags/_tag-theme.scss +7 -5
  95. package/timepicker/timepicker.scss +1 -0
  96. package/timezone/_timezone-option-theme.scss +3 -3
  97. package/toast/_toast-theme.scss +1 -1
  98. package/toast/toast.component.scss +13 -2
  99. package/toggle/_toggle-theme.scss +1 -1
  100. package/tooltip/_tooltip-theme.scss +13 -0
  101. package/tooltip/tooltip.component.d.ts +12 -3
  102. package/tooltip/tooltip.scss +5 -0
  103. package/tree/_tree-theme.scss +5 -5
  104. package/tree/toggle.scss +1 -1
  105. package/tree-select/_tree-select-theme.scss +2 -2
  106. package/card/README.md +0 -0
  107. package/card/_card-theme.scss +0 -62
  108. package/card/card.component.d.ts +0 -28
  109. package/card/card.component.scss +0 -37
  110. package/card/card.module.d.ts +0 -10
  111. package/card/index.d.ts +0 -1
  112. package/card/public-api.d.ts +0 -2
  113. package/esm2022/card/card.component.mjs +0 -79
  114. package/esm2022/card/card.module.mjs +0 -28
  115. package/esm2022/card/index.mjs +0 -2
  116. package/esm2022/card/koobiq-components-card.mjs +0 -5
  117. package/esm2022/card/public-api.mjs +0 -3
  118. package/fesm2022/koobiq-components-card.mjs +0 -110
  119. package/fesm2022/koobiq-components-card.mjs.map +0 -1
@@ -18,11 +18,11 @@
18
18
  }
19
19
 
20
20
  .kbq-progress-bar-text {
21
- color: kbq-css-variable(progress-bar-text, map.get($progress-bar, text));
21
+ color: kbq-css-variable(progress-bar-text-color, map.get($progress-bar, text));
22
22
  }
23
23
 
24
24
  .kbq-progress-bar-caption {
25
- color: kbq-css-variable(progress-bar-caption, map.get($progress-bar, caption));
25
+ color: kbq-css-variable(progress-bar-caption-color, map.get($progress-bar, caption));
26
26
  }
27
27
  }
28
28
 
@@ -9,16 +9,16 @@
9
9
 
10
10
  .kbq-progress-spinner {
11
11
  .kbq-progress-spinner__circle {
12
- stroke: kbq-css-variable(progress-spinner-circle, map.get($progress-spinner, circle));
12
+ stroke: kbq-css-variable(progress-spinner-circle-background, map.get($progress-spinner, circle));
13
13
  }
14
14
  }
15
15
 
16
16
  .kbq-progress-spinner-text {
17
- color: kbq-css-variable(progress-spinner-text, map.get($progress-spinner, text));
17
+ color: kbq-css-variable(progress-spinner-text-color, map.get($progress-spinner, text));
18
18
  }
19
19
 
20
20
  .kbq-progress-spinner-caption {
21
- color: kbq-css-variable(progress-spinner-caption, map.get($progress-spinner, caption));
21
+ color: kbq-css-variable(progress-spinner-caption-color, map.get($progress-spinner, caption));
22
22
  }
23
23
  }
24
24
 
@@ -6,27 +6,17 @@
6
6
 
7
7
  @mixin kbq-radio-state($component, $type, $state-name) {
8
8
  $state: map.get($component, $type, $state-name);
9
+ $base-path: radio-#{$type}-#{$state-name};
9
10
 
10
11
  & .kbq-radio-button__outer-circle {
11
- border-color: kbq-css-variable(
12
- radio-#{$type}-#{$state-name}-outer-circle-border,
13
- map.get($state, outer-circle-border)
14
- );
15
- background: kbq-css-variable(
16
- radio-#{$type}-#{$state-name}-outer-circle-background,
17
- map.get($state, outer-circle-background)
18
- );
19
- box-shadow: kbq-css-variable(
20
- radio-#{$type}-#{$state-name}-outer-circle-shadow,
21
- map.get($state, outer-circle-shadow)
22
- );
12
+ border-color: kbq-css-variable(#{$base-path}-outer-circle-border, map.get($state, outer-circle-border));
13
+ background: kbq-css-variable(#{$base-path}-outer-circle-background, map.get($state, outer-circle-background));
14
+ // FIXME: move under &.cdk-keyboard-focused, because used only for focused state.
15
+ box-shadow: kbq-css-variable(#{$base-path}-outer-circle-shadow, map.get($state, outer-circle-shadow));
23
16
  }
24
17
 
25
18
  & .kbq-radio-button__inner-circle {
26
- background: kbq-css-variable(
27
- radio-#{$type}-#{$state-name}-inner-circle-background,
28
- map.get($state, inner-circle-background)
29
- );
19
+ background: kbq-css-variable(#{$base-path}-inner-circle-background, map.get($state, inner-circle-background));
30
20
  }
31
21
  }
32
22
 
@@ -34,7 +24,7 @@
34
24
  @include kbq-radio-state($component, $type-name, default);
35
25
 
36
26
  & .kbq-hint .kbq-hint__text {
37
- color: map.get($component, $type-name, default, caption);
27
+ color: kbq-css-variable(radio-#{$type-name}-default-caption, map.get($component, $type-name, default, caption));
38
28
  }
39
29
 
40
30
  &:hover {
@@ -58,11 +48,17 @@
58
48
 
59
49
  & .kbq-radio-label {
60
50
  cursor: default;
61
- color: map.get($component, $type-name, states-disabled, caption);
51
+ color: kbq-css-variable(
52
+ radio-#{$type-name}-states-disabled-caption,
53
+ map.get($component, $type-name, states-disabled, caption)
54
+ );
62
55
  }
63
56
 
64
57
  & .kbq-hint .kbq-hint__text {
65
- color: map.get($component, $type-name, states-disabled, caption);
58
+ color: kbq-css-variable(
59
+ radio-#{$type-name}-states-disabled-caption,
60
+ map.get($component, $type-name, states-disabled, caption)
61
+ );
66
62
  }
67
63
  }
68
64
  }
@@ -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.1.0");
56
- addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.1.0");
55
+ addPackageToPackageJson(tree, '@koobiq/cdk', "^17.3.0");
56
+ addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.3.0");
57
57
  addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.1.2");
58
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");
61
- addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.0.0");
60
+ addPackageToPackageJson(tree, '@koobiq/tokens-builder', "^3.3.1");
61
+ addPackageToPackageJson(tree, '@koobiq/design-tokens', "^3.3.1");
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");
@@ -8,21 +8,30 @@
8
8
  .os-scrollbar {
9
9
  .os-scrollbar-handle {
10
10
  &::before {
11
- border-color: kbq-css-variable(scrollbar-default, map.get($scrollbar, default));
12
- background-color: kbq-css-variable(scrollbar-default, map.get($scrollbar, default));
11
+ border-color: kbq-css-variable(scrollbar-thumb-default-background, map.get($scrollbar, default));
12
+ background-color: kbq-css-variable(
13
+ scrollbar-thumb-default-background,
14
+ map.get($scrollbar, default)
15
+ );
13
16
  }
14
17
 
15
18
  &:hover {
16
19
  &::before {
17
- border-color: kbq-css-variable(scrollbar-hover, map.get($scrollbar, hover));
18
- background-color: kbq-css-variable(scrollbar-hover, map.get($scrollbar, hover));
20
+ border-color: kbq-css-variable(scrollbar-thumb-hover-background, map.get($scrollbar, hover));
21
+ background-color: kbq-css-variable(
22
+ scrollbar-thumb-hover-background,
23
+ map.get($scrollbar, hover)
24
+ );
19
25
  }
20
26
  }
21
27
 
22
28
  &:active {
23
29
  &::before {
24
- border-color: kbq-css-variable(scrollbar-active, map.get($scrollbar, active));
25
- background-color: kbq-css-variable(scrollbar-active, map.get($scrollbar, active));
30
+ border-color: kbq-css-variable(scrollbar-thumb-active-background, map.get($scrollbar, active));
31
+ background-color: kbq-css-variable(
32
+ scrollbar-thumb-active-background,
33
+ map.get($scrollbar, active)
34
+ );
26
35
  }
27
36
  }
28
37
  }
@@ -30,17 +39,23 @@
30
39
  .os-scrollbar-track,
31
40
  .os-scrollbar-handle {
32
41
  border-style: solid;
33
- border-color: kbq-css-variable(scrollbar-track-default, map.get($scrollbar, track, default)) !important;
34
- background-color: kbq-css-variable(scrollbar-track-default, map.get($scrollbar, track, default));
42
+ border-color: kbq-css-variable(
43
+ scrollbar-track-default-border,
44
+ map.get($scrollbar, track, default)
45
+ ) !important;
46
+ background-color: kbq-css-variable(
47
+ scrollbar-track-default-background,
48
+ map.get($scrollbar, track, default)
49
+ );
35
50
 
36
51
  &:hover {
37
- border-color: kbq-css-variable(scrollbar-track-hover, map.get($scrollbar, track, hover));
38
- background: kbq-css-variable(scrollbar-track-hover, map.get($scrollbar, track, hover));
52
+ border-color: kbq-css-variable(scrollbar-track-hover-border, map.get($scrollbar, track, hover));
53
+ background: kbq-css-variable(scrollbar-track-hover-background, map.get($scrollbar, track, hover));
39
54
  }
40
55
 
41
56
  &:active {
42
- border-color: kbq-css-variable(scrollbar-track-active, map.get($scrollbar, track, active));
43
- background: kbq-css-variable(scrollbar-track-active, map.get($scrollbar, track, active));
57
+ border-color: kbq-css-variable(scrollbar-track-active-border, map.get($scrollbar, track, active));
58
+ background: kbq-css-variable(scrollbar-track-active-background, map.get($scrollbar, track, active));
44
59
  }
45
60
  }
46
61
  }
@@ -33,8 +33,8 @@
33
33
  }
34
34
 
35
35
  .kbq-select__panel {
36
- box-shadow: kbq-css-variable(select-panel-shadow, map.get($select-panel, shadow));
37
- background: kbq-css-variable(select-panel-background, map.get($select-panel, background));
36
+ box-shadow: kbq-css-variable(select-panel-dropdown-shadow, map.get($select-panel, shadow));
37
+ background: kbq-css-variable(select-panel-dropdown-background, map.get($select-panel, background));
38
38
 
39
39
  & .kbq-select__footer {
40
40
  border-color: kbq-css-variable(divider-color, map.get($divider, color));
@@ -8,17 +8,17 @@
8
8
  $sidepanel: map.get($theme, components, sidepanel);
9
9
 
10
10
  .kbq-sidepanel-title {
11
- color: kbq-css-variable(sidepanel-header-text, map.get($sidepanel, header-text));
11
+ color: kbq-css-variable(sidepanel-header-text-color, map.get($sidepanel, header-text));
12
12
  }
13
13
 
14
14
  .kbq-sidepanel-content {
15
- background-color: kbq-css-variable(sidepanel-background, map.get($sidepanel, background));
16
- color: kbq-css-variable(sidepanel-content-text, map.get($sidepanel, content-text));
15
+ background-color: kbq-css-variable(sidepanel-container-background, map.get($sidepanel, background));
16
+ color: kbq-css-variable(sidepanel-content-text-color, map.get($sidepanel, content-text));
17
17
  }
18
18
 
19
19
  .kbq-sidepanel-container_shadowed {
20
20
  .kbq-sidepanel-content {
21
- box-shadow: kbq-css-variable(sidepanel-box-shadow, map.get($sidepanel, box-shadow));
21
+ box-shadow: kbq-css-variable(sidepanel-container-box-shadow, map.get($sidepanel, box-shadow));
22
22
  }
23
23
  }
24
24
  }
@@ -17,9 +17,8 @@
17
17
  cursor: row-resize;
18
18
  }
19
19
 
20
- // todo
21
20
  &[disabled] {
22
- background-color: kbq-css-variable(background-disabled, map.get($background, disabled));
21
+ background-color: kbq-css-variable(background-background-disabled, map.get($background, disabled));
23
22
 
24
23
  cursor: default;
25
24
  }
@@ -10,10 +10,10 @@
10
10
  $base: tabs-tab-item-#{$type}-#{$sub-type}-#{$style-name};
11
11
 
12
12
  background: kbq-css-variable(#{$base}-background, map.get($style, background));
13
- color: kbq-css-variable(#{$base}-text, map.get($style, text));
13
+ color: kbq-css-variable(#{$base}-text-color, map.get($style, text));
14
14
 
15
15
  & .kbq-icon {
16
- color: kbq-css-variable(#{$base}-icon, map.get($style, icon));
16
+ color: kbq-css-variable(#{$base}-icon-color, map.get($style, icon));
17
17
  }
18
18
  }
19
19
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  &.cdk-keyboard-focused {
36
36
  border-color: kbq-css-variable(
37
- tabs-tab-item-#{$type}-#{$sub-type}-states-focused-border-color,
37
+ tabs-tab-item-#{$type}-#{$sub-type}-states-focused-focus-outline-color,
38
38
  map.get($component, $type, $sub-type, states-focused, border-color)
39
39
  );
40
40
  }
@@ -76,6 +76,7 @@
76
76
  );
77
77
  }
78
78
 
79
+ // FIXME: need check, tab-group has different subtype
79
80
  & .kbq-tab-label {
80
81
  @include kbq-tab-item-style($tab-item, filled, on-background);
81
82
  }
@@ -26,19 +26,21 @@
26
26
 
27
27
  &:hover,
28
28
  &.kbq-hovered {
29
- @include kbq-tag-state($component, $type, hover);
29
+ @include kbq-tag-state($component, $type, states-hover);
30
30
  }
31
31
 
32
32
  &.kbq-focused {
33
- @include kbq-tag-state($component, $type, focus);
33
+ @include kbq-tag-state($component, $type, states-focus);
34
34
 
35
35
  box-shadow:
36
- inset 0 0 0.1px 1px kbq-css-variable(tag-#{$type}-focus-outline, map.get($component, $type, focus, outline)),
37
- 0 0 0.1px 1px kbq-css-variable(tag-#{$type}-focus-outline, map.get($component, $type, focus, outline));
36
+ inset 0 0 0.1px 1px
37
+ kbq-css-variable(tag-#{$type}-states-focus-outline, map.get($component, $type, focus, outline)),
38
+ 0 0 0.1px 1px
39
+ kbq-css-variable(tag-#{$type}-states-focus-outline, map.get($component, $type, focus, outline));
38
40
  }
39
41
 
40
42
  &.kbq-disabled {
41
- @include kbq-tag-state($component, $type, disabled);
43
+ @include kbq-tag-state($component, $type, states-disabled);
42
44
  }
43
45
  }
44
46
 
@@ -4,6 +4,7 @@
4
4
  @use '../core/styles/common/tokens' as *;
5
5
 
6
6
  .kbq-timepicker {
7
+ // FIXME: default token doesn't exist
7
8
  padding-right: kbq-css-variable(timepicker-size-padding-right);
8
9
  }
9
10
 
@@ -9,15 +9,15 @@
9
9
 
10
10
  .kbq-timezone-option__offset,
11
11
  .kbq-timezone-option__city {
12
- color: kbq-css-variable(timezone-text, map.get($timezone, text));
12
+ color: kbq-css-variable(timezone-option-text, map.get($timezone, text));
13
13
  }
14
14
 
15
15
  .kbq-timezone-option__cities {
16
- color: kbq-css-variable(timezone-caption, map.get($timezone, caption));
16
+ color: kbq-css-variable(timezone-option-caption, map.get($timezone, caption));
17
17
  }
18
18
 
19
19
  .kbq-timezone-select__panel.kbq-select__panel .kbq-optgroup-label {
20
- color: kbq-css-variable(timezone-optgroup-label, map.get($timezone, optgroup-label));
20
+ color: kbq-css-variable(timezone-option-optgroup-label, map.get($timezone, optgroup-label));
21
21
  }
22
22
  }
23
23
 
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  &.kbq-toast_warning {
36
- @include kbq-toast($toast, success);
36
+ @include kbq-toast($toast, warning);
37
37
  }
38
38
 
39
39
  &.kbq-toast_error {
@@ -26,7 +26,7 @@ $tokens: meta.module-variables(tokens) !default;
26
26
  height: kbq-css-variable(toast-size-icon-height);
27
27
  max-height: kbq-css-variable(toast-size-icon-height);
28
28
 
29
- border-radius: kbq-css-variable(toast-size-border-radius);
29
+ border-radius: kbq-css-variable(toast-size-container-border-radius);
30
30
 
31
31
  margin-right: kbq-css-variable(toast-size-icon-margin-right);
32
32
 
@@ -84,6 +84,17 @@ $tokens: meta.module-variables(tokens) !default;
84
84
  }
85
85
 
86
86
  .kbq-toast__close-button {
87
- margin-top: kbq-css-variable(toast-size-close-button-margin-top);
87
+ margin-top: kbq-difference-series-css-variables(
88
+ [toast-size-content-padding-top,
89
+ calc(
90
+ kbq-difference-series-css-variables(
91
+ [kbq-sum-series-css-variables(
92
+ [calc(kbq-css-variable(icon-button-size-small-vertical-padding) * 2),
93
+ 16px]
94
+ ),
95
+ toast-font-title-line-height]
96
+ ) / 2
97
+ )]
98
+ );
88
99
  margin-right: kbq-css-variable(toast-size-close-button-margin-right);
89
100
  }
@@ -84,7 +84,7 @@
84
84
  }
85
85
 
86
86
  &.kbq-disabled {
87
- color: map.get($foreground, text-disabled);
87
+ color: kbq-css-variable(foreground-text-disabled, map.get($foreground, text-disabled));
88
88
  }
89
89
  }
90
90
  }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
+ // FIXME: @use properties are used, which are most likely not applied. Need to check
4
5
  @use '../core/pop-up/pop-up' as *;
5
6
  @use '../core/styles/typography/typography-utils' as *;
6
7
  @use '../core/styles/common/tokens' as *;
@@ -36,10 +37,22 @@
36
37
  .kbq-tooltip.kbq-contrast-fade {
37
38
  @include kbq-tooltip-color($tooltip, contrast-fade-on);
38
39
  }
40
+
41
+ .kbq-tooltip.kbq-warning {
42
+ @include kbq-tooltip-color($tooltip, warning-fade-off);
43
+ }
44
+
45
+ .kbq-tooltip.kbq-error {
46
+ @include kbq-tooltip-color($tooltip, error-fade-off);
47
+ }
39
48
  }
40
49
 
41
50
  @mixin kbq-tooltip-typography($config) {
42
51
  .kbq-tooltip {
43
52
  @include kbq-typography-css-variables(tooltip, default);
53
+
54
+ .kbq-tooltip__header {
55
+ @include kbq-typography-css-variables(tooltip, title);
56
+ }
44
57
  }
45
58
  }
@@ -1,7 +1,7 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
2
  import { Directionality } from '@angular/cdk/bidi';
3
3
  import { Overlay, OverlayConfig, ScrollDispatcher, ScrollStrategy } from '@angular/cdk/overlay';
4
- import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, TemplateRef, Type, ViewContainerRef } from '@angular/core';
4
+ import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, NgZone, OnDestroy, TemplateRef, Type, ViewContainerRef } from '@angular/core';
5
5
  import { KbqComponentColors, KbqPopUp, KbqPopUpTrigger, PopUpPlacements } from '@koobiq/components/core';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare enum TooltipModifier {
@@ -19,9 +19,11 @@ export declare const KBQ_TOOLTIP_OPEN_TIME_PROVIDER: {
19
19
  };
20
20
  export declare const MIN_TIME_FOR_DELAY = 2000;
21
21
  export declare class KbqTooltipComponent extends KbqPopUp {
22
+ private injector;
22
23
  private openTime;
23
24
  prefix: string;
24
- constructor(changeDetectorRef: ChangeDetectorRef, openTime: any);
25
+ elementRef: ElementRef;
26
+ constructor(changeDetectorRef: ChangeDetectorRef, injector: Injector, openTime: any);
25
27
  show(delay: number): void;
26
28
  updateClassMap(placement: string, customClass: string, { modifier }: {
27
29
  modifier: any;
@@ -57,9 +59,14 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
57
59
  protected _trigger: string;
58
60
  get customClass(): string;
59
61
  set customClass(value: string);
62
+ get context(): any;
63
+ set context(ctx: any);
64
+ private _context;
60
65
  get color(): string;
61
66
  set color(value: KbqComponentColors | string);
62
67
  private _color;
68
+ arrow: boolean;
69
+ offset: number | null;
63
70
  placementChange: EventEmitter<any>;
64
71
  visibleChange: EventEmitter<boolean>;
65
72
  private get hasClickInTrigger();
@@ -74,7 +81,9 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
74
81
  getOverlayHandleComponentType(): Type<KbqTooltipComponent>;
75
82
  updateClassMap(newPlacement?: string): void;
76
83
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqTooltipTrigger, [null, null, null, null, null, null, { optional: true; }, null]>;
77
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "kbqVisible"; "required": false; }; "tooltipPlacement": { "alias": "kbqPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "kbqPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "kbqEnterDelay"; "required": false; }; "leaveDelay": { "alias": "kbqLeaveDelay"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "color": { "alias": "kbqTooltipColor"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, false, never>;
84
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "kbqVisible"; "required": false; }; "tooltipPlacement": { "alias": "kbqPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "kbqPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "kbqEnterDelay"; "required": false; }; "leaveDelay": { "alias": "kbqLeaveDelay"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "context": { "alias": "kbqTooltipContext"; "required": false; }; "color": { "alias": "kbqTooltipColor"; "required": false; }; "arrow": { "alias": "kbqTooltipArrow"; "required": false; }; "offset": { "alias": "kbqTooltipOffset"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, false, never>;
85
+ static ngAcceptInputType_arrow: unknown;
86
+ static ngAcceptInputType_offset: unknown;
78
87
  }
79
88
  export declare class KbqWarningTooltipTrigger extends KbqTooltipTrigger {
80
89
  get content(): string | TemplateRef<any>;
@@ -6,6 +6,7 @@
6
6
  @use '../core/styles/common/tokens' as *;
7
7
 
8
8
  $trigger-margin: 8px;
9
+ $trigger-margin_without-arrow: 4px;
9
10
 
10
11
  .kbq-tooltip__inner {
11
12
  border-radius: kbq-css-variable(tooltip-size-border-radius);
@@ -26,6 +27,10 @@ $trigger-margin: 8px;
26
27
  .kbq-tooltip__inner {
27
28
  padding: kbq-css-variable(tooltip-size-padding-vertical) kbq-css-variable(tooltip-size-padding-horizontal);
28
29
  }
30
+
31
+ &.kbq-tooltip_arrowless {
32
+ @include pop-up.popup-margins(kbq-tooltip, $trigger-margin_without-arrow);
33
+ }
29
34
  }
30
35
 
31
36
  .kbq-tooltip__arrow {
@@ -11,19 +11,19 @@
11
11
  background: kbq-css-variable(tree-#{$state-name}-container-background, map.get($state, container-background));
12
12
 
13
13
  .kbq-option-text {
14
- color: kbq-css-variable(tree-#{$state-name}-text, map.get($state, text));
14
+ color: kbq-css-variable(tree-#{$state-name}-text-color, map.get($state, text));
15
15
  }
16
16
 
17
17
  .kbq-tree-node-toggle .kbq-icon {
18
- color: kbq-css-variable(tree-#{$state-name}-tree-toggle, map.get($state, tree-toggle));
18
+ color: kbq-css-variable(tree-#{$state-name}-tree-toggle-color, map.get($state, tree-toggle));
19
19
  }
20
20
 
21
21
  .kbq-option-action .kbq-icon {
22
- color: kbq-css-variable(tree-#{$state-name}-action-button, map.get($state, action-button));
22
+ color: kbq-css-variable(tree-#{$state-name}-action-button-color, map.get($state, action-button));
23
23
  }
24
24
 
25
25
  .kbq-option-caption {
26
- color: kbq-css-variable(tree-#{$state-name}-caption, map.get($state, caption));
26
+ color: kbq-css-variable(tree-#{$state-name}-caption-color, map.get($state, caption));
27
27
  }
28
28
  }
29
29
 
@@ -44,7 +44,7 @@
44
44
  &.kbq-focused,
45
45
  &.kbq-active {
46
46
  border-color: kbq-css-variable(
47
- tree-states-focused-focus-outline,
47
+ tree-states-focused-focus-outline-color,
48
48
  map.get($tree-item, states-focused, focus-outline)
49
49
  );
50
50
  }
package/tree/toggle.scss CHANGED
@@ -10,7 +10,7 @@
10
10
  flex-shrink: 0;
11
11
 
12
12
  height: 100%;
13
-
13
+ // FIXME: default token doesn't exist
14
14
  padding-left: kbq-css-variable(tree-size-toggle-padding);
15
15
  padding-right: kbq-css-variable(tree-size-toggle-padding);
16
16
 
@@ -31,8 +31,8 @@
31
31
  }
32
32
 
33
33
  .kbq-tree-select__panel {
34
- box-shadow: kbq-css-variable(select-panel-shadow, map.get($select-panel, shadow));
35
- background: kbq-css-variable(select-panel-background, map.get($select-panel, background));
34
+ box-shadow: kbq-css-variable(select-panel-dropdown-shadow, map.get($select-panel, shadow));
35
+ background: kbq-css-variable(select-panel-dropdown-background, map.get($select-panel, background));
36
36
 
37
37
  & .kbq-select__footer {
38
38
  border-color: kbq-css-variable(divider-color, map.get($divider, color));
package/card/README.md DELETED
File without changes
@@ -1,62 +0,0 @@
1
- @use 'sass:map';
2
-
3
- @use '../core/styles/common/tokens' as *;
4
-
5
- @mixin kbq-card-style($component, $style-name) {
6
- $style: map.get($component, $style-name);
7
-
8
- box-shadow:
9
- inset -1px 0 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow)),
10
- inset 0 1px 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow)),
11
- inset 0 -1px 0 0 kbq-css-variable(card-#{$style-name}-shadow, map.get($style, shadow));
12
-
13
- background-color: kbq-css-variable(card-#{$style-name}-background, map.get($style, background));
14
-
15
- border-left-color: kbq-css-variable(card-#{$style-name}-vertical-line, map.get($style, vertical-line));
16
- }
17
-
18
- @mixin kbq-card-theme($theme) {
19
- $foreground: map.get($theme, foreground);
20
- $background: map.get($theme, background);
21
-
22
- $card: map.get(map.get($theme, components), card);
23
- $popup: map.get(map.get($theme, components), popup);
24
-
25
- .kbq-card {
26
- color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
27
-
28
- &.kbq-card_error {
29
- @include kbq-card-style($card, error);
30
- }
31
-
32
- &.kbq-card_warning {
33
- @include kbq-card-style($card, warning);
34
- }
35
-
36
- &.kbq-card_success {
37
- @include kbq-card-style($card, success);
38
- }
39
-
40
- &.kbq-card_info {
41
- @include kbq-card-style($card, info);
42
- }
43
-
44
- &.kbq-card_white {
45
- background-color: kbq-css-variable(popup-background, map.get($popup, background));
46
- }
47
-
48
- &.kbq-selected {
49
- background-color: kbq-css-variable(states-selected-color, map.get($theme, states, selected-color));
50
- }
51
-
52
- &:not(.kbq-card_readonly):hover {
53
- .kbq-card__overlay {
54
- background: kbq-css-variable(background-overlay-hover, map.get($background, overlay-hover));
55
- }
56
- }
57
-
58
- &.cdk-keyboard-focused {
59
- box-shadow: 0 0 0.1px 2px kbq-css-variable(states-focused-color, map.get($theme, states, focused-color));
60
- }
61
- }
62
- }
@@ -1,28 +0,0 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { ElementRef, EventEmitter, OnDestroy } from '@angular/core';
3
- import { CanColorCtor } from '@koobiq/components/core';
4
- import * as i0 from "@angular/core";
5
- /** @docs-private */
6
- export declare class KbqCardBase {
7
- elementRef: ElementRef;
8
- constructor(elementRef: ElementRef);
9
- }
10
- /** @docs-private */
11
- export declare const KbqCardBaseMixin: CanColorCtor & typeof KbqCardBase;
12
- export declare class KbqCard extends KbqCardBaseMixin implements OnDestroy {
13
- private _focusMonitor;
14
- readonly: boolean;
15
- selected: boolean;
16
- selectedChange: EventEmitter<boolean>;
17
- get tabIndex(): number | null;
18
- set tabIndex(value: number | null);
19
- private _tabIndex;
20
- constructor(elementRef: ElementRef, _focusMonitor: FocusMonitor);
21
- ngOnDestroy(): void;
22
- focus(): void;
23
- onClick($event: MouseEvent): void;
24
- onKeyDown($event: KeyboardEvent): void;
25
- private get hostElement();
26
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqCard, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqCard, "kbq-card", never, { "color": { "alias": "color"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*"], false, never>;
28
- }