@koobiq/components 17.0.3 → 17.1.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 (58) hide show
  1. package/badge/badge.component.scss +2 -2
  2. package/button/button.scss +2 -6
  3. package/button-toggle/button-toggle.scss +8 -6
  4. package/checkbox/checkbox.scss +9 -18
  5. package/code-block/code-block.scss +1 -4
  6. package/core/styles/common/_groups.scss +2 -2
  7. package/core/styles/common/_select.scss +23 -60
  8. package/core/styles/common/_tokens.scss +52 -0
  9. package/core/styles/theming/_scrollbar-theme.scss +8 -19
  10. package/datepicker/_datepicker-theme.scss +1 -0
  11. package/datepicker/calendar-header.component.d.ts +10 -6
  12. package/datepicker/calendar.scss +2 -3
  13. package/datepicker/datepicker-input.directive.d.ts +10 -0
  14. package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
  15. package/esm2022/core/version.mjs +2 -2
  16. package/esm2022/datepicker/calendar-header.component.mjs +32 -9
  17. package/esm2022/datepicker/datepicker-input.directive.mjs +101 -21
  18. package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
  19. package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
  20. package/esm2022/navbar/vertical-navbar.component.mjs +8 -4
  21. package/esm2022/radio/radio.component.mjs +2 -2
  22. package/esm2022/toast/toast.component.mjs +7 -6
  23. package/esm2022/toast/toast.module.mjs +5 -1
  24. package/esm2022/toggle/toggle.component.mjs +3 -3
  25. package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
  26. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  27. package/fesm2022/koobiq-components-core.mjs +1 -1
  28. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  29. package/fesm2022/koobiq-components-datepicker.mjs +131 -28
  30. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  31. package/fesm2022/koobiq-components-file-upload.mjs +4 -4
  32. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  33. package/fesm2022/koobiq-components-navbar.mjs +7 -3
  34. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  35. package/fesm2022/koobiq-components-radio.mjs +2 -2
  36. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  37. package/fesm2022/koobiq-components-toast.mjs +8 -3
  38. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  39. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  40. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  41. package/file-upload/multiple-file-upload.component.scss +16 -33
  42. package/file-upload/single-file-upload.component.scss +8 -6
  43. package/form-field/form-field.scss +8 -14
  44. package/input/input.scss +4 -11
  45. package/navbar/vertical-navbar.component.d.ts +2 -1
  46. package/navbar/vertical-navbar.scss +9 -4
  47. package/package.json +4 -4
  48. package/prebuilt-themes/dark-theme.css +1 -1
  49. package/prebuilt-themes/light-theme.css +1 -1
  50. package/radio/radio.scss +9 -24
  51. package/schematics/ng-add/index.js +2 -2
  52. package/tabs/_tabs-common.scss +6 -14
  53. package/tags/tag-list.scss +2 -15
  54. package/toast/toast.module.d.ts +5 -4
  55. package/toggle/_toggle-theme.scss +5 -2
  56. package/toggle/toggle.scss +2 -16
  57. package/tooltip/tooltip.scss +1 -1
  58. package/tree/tree-option.scss +9 -20
package/radio/radio.scss CHANGED
@@ -44,12 +44,9 @@ $tokens: meta.module-variables(tokens) !default;
44
44
  order: 0;
45
45
  line-height: inherit;
46
46
 
47
- padding-left: calc(
48
- 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
- )
47
+ padding-left: kbq-sum-series-css-variables(
48
+ [radio-size-normal-outer-size,
49
+ radio-size-normal-horizontal-content-padding]
53
50
  );
54
51
  padding-right: 0;
55
52
 
@@ -73,12 +70,8 @@ $tokens: meta.module-variables(tokens) !default;
73
70
  }
74
71
 
75
72
  left: 0;
76
- top: calc(
77
- (
78
- var(--radio-font-normal-label-line-height, map.get($tokens, radio-font-normal-label-line-height)) -
79
- (var(--radio-size-normal-outer-size, map.get($tokens, radio-size-normal-outer-size)) + 2px)
80
- ) / 2
81
- );
73
+
74
+ top: kbq-css-half-difference(radio-font-normal-label-line-height, radio-size-normal-outer-size, 1px);
82
75
 
83
76
  width: kbq-css-variable(radio-size-normal-outer-size);
84
77
  height: kbq-css-variable(radio-size-normal-outer-size);
@@ -115,21 +108,13 @@ $tokens: meta.module-variables(tokens) !default;
115
108
 
116
109
  .kbq-radio-button.kbq-radio-button_big {
117
110
  .kbq-radio-label-content {
118
- padding-left: calc(
119
- var(--kbq-radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) +
120
- var(
121
- --kbq-radio-size-big-horizontal-content-padding,
122
- map.get($tokens, radio-size-big-horizontal-content-padding)
123
- )
111
+ padding-left: kbq-sum-series-css-variables(
112
+ [radio-size-big-outer-size,
113
+ radio-size-big-horizontal-content-padding]
124
114
  );
125
115
 
126
116
  .kbq-radio-button__outer-circle {
127
- top: calc(
128
- (
129
- var(--radio-font-big-label-line-height, map.get($tokens, radio-font-big-label-line-height)) -
130
- (var(--radio-size-big-outer-size, map.get($tokens, radio-size-big-outer-size)) + 2px)
131
- ) / 2
132
- );
117
+ top: kbq-css-half-difference(radio-font-big-label-line-height, radio-size-big-outer-size, 1px);
133
118
 
134
119
  width: kbq-css-variable(radio-size-big-outer-size);
135
120
  height: kbq-css-variable(radio-size-big-outer-size);
@@ -52,8 +52,8 @@ 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.3");
56
- addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.0.3");
55
+ addPackageToPackageJson(tree, '@koobiq/cdk', "^17.1.0");
56
+ addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^17.1.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");
@@ -20,21 +20,13 @@ $tokens: meta.module-variables(tokens) !default;
20
20
 
21
21
  cursor: pointer;
22
22
 
23
- $padding-vertical: map.get($tokens, tabs-size-tab-item-padding-vertical);
24
- $padding-horizontal: map.get($tokens, tabs-size-tab-item-padding-horizontal);
25
- $border-width: map.get($tokens, tabs-size-tab-item-focus-outline-width);
26
-
27
- padding: calc(
28
- var(--kbq-tabs-size-tab-item-padding-vertical, $padding-vertical) - var(
29
- --kbq-tabs-size-tab-item-focus-outline-width,
30
- $border-width
31
- )
23
+ padding: kbq-difference-series-css-variables(
24
+ [tabs-size-tab-item-padding-vertical,
25
+ tabs-size-tab-item-focus-outline-width]
32
26
  )
33
- calc(
34
- var(--kbq-tabs-size-tab-item-padding-horizontal, $padding-horizontal) - var(
35
- --kbq-tabs-size-tab-item-focus-outline-width,
36
- $border-width
37
- )
27
+ kbq-difference-series-css-variables(
28
+ [tabs-size-tab-item-padding-horizontal,
29
+ tabs-size-tab-item-focus-outline-width]
38
30
  );
39
31
 
40
32
  border: {
@@ -58,22 +58,9 @@ $tokens: meta.module-variables(tokens) !default;
58
58
 
59
59
  .kbq-form-field-type-tag-list {
60
60
  & .kbq-form-field__container {
61
- $padding-vertical: map.get($tokens, tag-input-size-padding-vertical);
62
- $border-width: map.get($tokens, form-field-size-border-width);
63
-
64
- padding: calc(
65
- var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) - var(
66
- --kbq-form-field-size-border-width,
67
- $border-width
68
- )
69
- )
61
+ padding: kbq-difference-series-css-variables([tag-input-size-padding-vertical, form-field-size-border-width])
70
62
  kbq-css-variable(tag-input-size-padding-right)
71
- calc(
72
- var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) - var(
73
- --kbq-form-field-size-border-width,
74
- $border-width
75
- )
76
- )
63
+ kbq-difference-series-css-variables([tag-input-size-padding-vertical, form-field-size-border-width])
77
64
  kbq-css-variable(tag-input-size-padding-left);
78
65
  }
79
66
  }
@@ -3,11 +3,12 @@ import * as i1 from "./toast.component";
3
3
  import * as i2 from "./toast-container.component";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "@angular/cdk/overlay";
6
- import * as i5 from "@angular/cdk/a11y";
7
- import * as i6 from "@koobiq/components/icon";
8
- import * as i7 from "@koobiq/components/button";
6
+ import * as i5 from "@koobiq/components/title";
7
+ import * as i6 from "@angular/cdk/a11y";
8
+ import * as i7 from "@koobiq/components/icon";
9
+ import * as i8 from "@koobiq/components/button";
9
10
  export declare class KbqToastModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.A11yModule, typeof i6.KbqIconModule, typeof i7.KbqButtonModule], [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.KbqTitleModule, typeof i6.A11yModule, typeof i7.KbqIconModule, typeof i8.KbqButtonModule], [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqToastModule>;
13
14
  }
@@ -74,15 +74,18 @@
74
74
 
75
75
  @mixin kbq-toggle-theme($theme) {
76
76
  $toggle: map.get($theme, components, toggle);
77
+ $foreground: map.get($theme, foreground);
77
78
 
78
79
  .kbq-toggle {
79
- color: kbq-css-variable(foreground-contrast, map.get($theme, foreground, contrast));
80
-
81
80
  @include kbq-toggle-color($toggle, theme);
82
81
 
83
82
  &.kbq-error {
84
83
  @include kbq-toggle-color($toggle, error);
85
84
  }
85
+
86
+ &.kbq-disabled {
87
+ color: map.get($foreground, text-disabled);
88
+ }
86
89
  }
87
90
  }
88
91
 
@@ -31,14 +31,7 @@ $tokens: meta.module-variables(tokens) !default;
31
31
  }
32
32
 
33
33
  .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
34
- padding-top: calc(
35
- (
36
- var(
37
- --toggle-font-normal-label-line-height,
38
- map.get($tokens, toggle-font-normal-label-line-height)
39
- ) - var(--toggle-size-normal-height, map.get($tokens, toggle-size-normal-height))
40
- ) / 2
41
- );
34
+ padding-top: kbq-css-half-difference(toggle-font-normal-label-line-height, toggle-size-normal-height);
42
35
  }
43
36
  }
44
37
 
@@ -96,14 +89,7 @@ $tokens: meta.module-variables(tokens) !default;
96
89
 
97
90
  .kbq-toggle-layout {
98
91
  .kbq-toggle-bar-container:has(+ .kbq-toggle__content) {
99
- padding-top: calc(
100
- (
101
- var(--toggle-font-big-label-line-height, map.get($tokens, toggle-font-big-label-line-height)) - var(
102
- --toggle-size-big-height,
103
- map.get($tokens, toggle-size-big-height)
104
- )
105
- ) / 2
106
- );
92
+ padding-top: kbq-css-half-difference(toggle-font-big-label-line-height, toggle-size-big-height);
107
93
  }
108
94
  }
109
95
  }
@@ -39,7 +39,7 @@ $trigger-margin: 8px;
39
39
  z-index: -1;
40
40
  }
41
41
 
42
- $arrow-offset: calc((var(--kbq-tooltip-size-arrow-size, #{map.get($tokens, tooltip-size-arrow-size)}) - 1px) / -2);
42
+ $arrow-offset: calc((#{kbq-css-variable(tooltip-size-arrow-size)} - 1px) / -2);
43
43
  $arrow-padding: calc((18px + $trigger-margin) / 2);
44
44
 
45
45
  @include pop-up.popup-arrow-positions(kbq-tooltip, $arrow-offset, $arrow-padding);
@@ -10,11 +10,6 @@ $tokens: meta.module-variables(tokens) !default;
10
10
  .kbq-tree-option {
11
11
  @include common.kbq-no-select;
12
12
 
13
- $padding-vertical: map.get($tokens, tree-size-container-padding-vertical);
14
- $padding-right: map.get($tokens, tree-size-container-padding-right);
15
-
16
- $outline-width: map.get($tokens, tree-size-container-focus-outline-width);
17
-
18
13
  box-sizing: border-box;
19
14
 
20
15
  display: flex;
@@ -28,23 +23,17 @@ $tokens: meta.module-variables(tokens) !default;
28
23
  border-style: solid;
29
24
  border-color: transparent;
30
25
 
31
- padding-top: calc(
32
- var(--kbq-tree-size-container-padding-vertical, $padding-vertical) - var(
33
- --kbq-tree-size-container-focus-outline-width,
34
- $outline-width
35
- )
26
+ padding-top: kbq-difference-series-css-variables(
27
+ [ tree-size-container-padding-vertical,
28
+ tree-size-container-focus-outline-width]
36
29
  );
37
- padding-right: calc(
38
- var(--kbq-tree-size-container-padding-right, $padding-right) - var(
39
- --kbq-tree-size-container-focus-outline-width,
40
- $outline-width
41
- )
30
+ padding-right: kbq-difference-series-css-variables(
31
+ [ tree-size-container-padding-right,
32
+ tree-size-container-focus-outline-width]
42
33
  );
43
- padding-bottom: calc(
44
- var(--kbq-tree-size-container-padding-vertical, $padding-vertical) - var(
45
- --kbq-tree-size-container-focus-outline-width,
46
- $outline-width
47
- )
34
+ padding-bottom: kbq-difference-series-css-variables(
35
+ [ tree-size-container-padding-vertical,
36
+ tree-size-container-focus-outline-width]
48
37
  );
49
38
 
50
39
  gap: kbq-css-variable(tree-size-container-content-gap-horizontal);