@koobiq/components 16.0.0-beta.8 → 16.0.0-beta.9

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 (73) hide show
  1. package/badge/_badge-theme.scss +13 -8
  2. package/badge/badge.component.d.ts +19 -1
  3. package/badge/badge.component.scss +28 -0
  4. package/badge/badge.module.d.ts +1 -1
  5. package/core/styles/_koobiq-theme.scss +2 -0
  6. package/core/styles/theming/_components-theming.scss +70 -26
  7. package/core/styles/theming/_theming.scss +199 -28
  8. package/core/styles/typography/_typography.scss +175 -5
  9. package/esm2022/badge/badge.component.mjs +65 -5
  10. package/esm2022/badge/badge.module.mjs +10 -6
  11. package/esm2022/core/version.mjs +2 -2
  12. package/esm2022/file-upload/multiple-file-upload.component.mjs +1 -1
  13. package/esm2022/file-upload/single-file-upload.component.mjs +1 -1
  14. package/esm2022/form-field/hint.mjs +15 -5
  15. package/esm2022/icon/icon-button.component.mjs +68 -0
  16. package/esm2022/icon/icon-item.component.mjs +27 -0
  17. package/esm2022/icon/icon.component.mjs +4 -89
  18. package/esm2022/icon/icon.module.mjs +4 -2
  19. package/esm2022/icon/public-api.mjs +3 -1
  20. package/esm2022/link/link.component.mjs +13 -2
  21. package/esm2022/select/select.component.mjs +6 -3
  22. package/esm2022/toast/toast-animations.mjs +2 -1
  23. package/esm2022/toast/toast-container.component.mjs +21 -7
  24. package/esm2022/toast/toast.component.mjs +7 -2
  25. package/esm2022/toast/toast.service.mjs +2 -1
  26. package/esm2022/tree/tree-base.mjs +1 -1
  27. package/esm2022/tree-select/tree-select.component.mjs +5 -5
  28. package/fesm2022/koobiq-components-badge.mjs +73 -9
  29. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  30. package/fesm2022/koobiq-components-core.mjs +1 -1
  31. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  32. package/fesm2022/koobiq-components-file-upload.mjs +2 -2
  33. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  34. package/fesm2022/koobiq-components-form-field.mjs +14 -4
  35. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  36. package/fesm2022/koobiq-components-icon.mjs +9 -7
  37. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  38. package/fesm2022/koobiq-components-link.mjs +12 -1
  39. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  40. package/fesm2022/koobiq-components-select.mjs +5 -2
  41. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  42. package/fesm2022/koobiq-components-toast.mjs +25 -8
  43. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  44. package/fesm2022/koobiq-components-tree-select.mjs +4 -4
  45. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  46. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  47. package/form-field/_hint-theme.scss +5 -1
  48. package/form-field/hint.d.ts +4 -1
  49. package/form-field/hint.scss +9 -1
  50. package/icon/_icon-button-theme.scss +129 -0
  51. package/icon/_icon-item-theme.scss +41 -0
  52. package/icon/_icon-theme.scss +1 -222
  53. package/icon/icon-button.component.d.ts +22 -0
  54. package/icon/icon-button.scss +33 -0
  55. package/icon/icon-item.component.d.ts +10 -0
  56. package/icon/icon-item.scss +18 -0
  57. package/icon/icon.component.d.ts +1 -25
  58. package/icon/icon.module.d.ts +6 -4
  59. package/icon/icon.scss +0 -41
  60. package/icon/public-api.d.ts +2 -0
  61. package/link/_link-theme.scss +96 -89
  62. package/link/link.component.d.ts +4 -1
  63. package/package.json +22 -22
  64. package/prebuilt-themes/dark-theme.css +1 -1
  65. package/prebuilt-themes/light-theme.css +1 -1
  66. package/select/_select-theme.scss +6 -6
  67. package/select/select.component.d.ts +1 -1
  68. package/toast/toast-animations.d.ts +1 -0
  69. package/toast/toast-container.component.d.ts +7 -3
  70. package/toast/toast.component.d.ts +2 -0
  71. package/toast/toast.service.d.ts +2 -0
  72. package/tree-select/_tree-select-theme.scss +6 -4
  73. package/tree-select/tree-select.component.d.ts +2 -2
@@ -9,7 +9,7 @@
9
9
  color: map.get($hint, text);
10
10
 
11
11
  & .kbq-icon {
12
- color: map.get($hint, icon);
12
+ color: map.get($hint, icon) !important;
13
13
  }
14
14
  }
15
15
 
@@ -64,4 +64,8 @@
64
64
  .kbq-hint .kbq-hint__text {
65
65
  @include kbq-typography-level-to-styles($config, map.get($tokens, hint-font-normal-text));
66
66
  }
67
+
68
+ .kbq-hint.kbq-hint_compact .kbq-hint__text {
69
+ @include kbq-typography-level-to-styles($config, map.get($tokens, hint-font-compact-text));
70
+ }
67
71
  }
@@ -11,7 +11,10 @@ export declare const KbqHintMixinBase: CanColorCtor & typeof KbqHintBase;
11
11
  export declare class KbqHint extends KbqHintMixinBase {
12
12
  id: string;
13
13
  fillTextOff: boolean;
14
+ get compact(): any;
15
+ set compact(value: any);
16
+ private _compact;
14
17
  constructor(elementRef: ElementRef);
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqHint, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["kbqHint"], { "color": { "alias": "color"; "required": false; }; "id": { "alias": "id"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; }, {}, never, ["[kbq-icon]", "*"], false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["kbqHint"], { "color": { "alias": "color"; "required": false; }; "id": { "alias": "id"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["[kbq-icon]", "*"], false, never>;
17
20
  }
@@ -10,6 +10,14 @@ $tokens: meta.module-variables(tokens) !default;
10
10
  display: block;
11
11
 
12
12
  & .kbq-icon {
13
- margin-right: var(--kbq-hint-size-content-padding, map-get($tokens, hint-size-content-padding));
13
+ margin-right: var(--kbq-hint-size-normal-content-padding, map-get($tokens, hint-size-normal-content-padding));
14
+ }
15
+
16
+ &.kbq-hint_compact {
17
+ & .kbq-icon {
18
+ margin-right: var(
19
+ --kbq-hint-size-compact-content-padding, map-get($tokens, hint-size-compact-content-padding)
20
+ );
21
+ }
14
22
  }
15
23
  }
@@ -0,0 +1,129 @@
1
+ @use 'sass:map';
2
+
3
+ @use '../core/styles/theming/theming' as *;
4
+
5
+
6
+ @mixin kbq-icon-button-theme($themeObj) {
7
+ $icon-button: map.get(map.get($themeObj, components), icon-button);
8
+
9
+ $theme: map.get($icon-button, theme);
10
+ $contrast: map.get($icon-button, contrast);
11
+ $fade-contrast: map.get($icon-button, fade-contrast);
12
+ $error: map.get($icon-button, error);
13
+ $success: map.get($icon-button, success);
14
+ $warning: map.get($icon-button, warning);
15
+
16
+ .kbq-icon-button {
17
+ &:focus {
18
+ outline: none;
19
+ }
20
+
21
+ &.kbq-theme {
22
+ color: map.get($theme, default);
23
+
24
+ &:active,
25
+ &.kbq-active {
26
+ color: map.get($theme, state-active);
27
+ }
28
+
29
+ &:not(.kbq-disabled):hover {
30
+ color: map.get($theme, state-hover);
31
+ }
32
+
33
+ &.kbq-disabled {
34
+ color: map.get($theme, state-disabled);
35
+ }
36
+ }
37
+
38
+ &.kbq-contrast {
39
+ color: map.get($contrast, default);
40
+
41
+ &:active,
42
+ &.kbq-active {
43
+ color: map.get($contrast, state-active);
44
+ }
45
+
46
+ &:not(.kbq-disabled):hover {
47
+ color: map.get($contrast, state-hover);
48
+ }
49
+
50
+ &.kbq-disabled {
51
+ color: map.get($contrast, state-disabled);
52
+ }
53
+ }
54
+
55
+ &.kbq-contrast-fade {
56
+ color: map.get($fade-contrast, default);
57
+
58
+ &:active,
59
+ &.kbq-active {
60
+ color: map.get($fade-contrast, state-active);
61
+ }
62
+
63
+ &:not(.kbq-disabled):hover {
64
+ color: map.get($fade-contrast, state-hover);
65
+ }
66
+
67
+ &.kbq-disabled {
68
+ color: map.get($fade-contrast, state-disabled);
69
+ }
70
+ }
71
+
72
+ &.kbq-error {
73
+ color: map.get($error, default);
74
+
75
+ &:active,
76
+ &.kbq-active {
77
+ color: map.get($error, state-active);
78
+ }
79
+
80
+ &:not(.kbq-disabled):hover {
81
+ color: map.get($error, state-hover);
82
+ }
83
+
84
+ &.kbq-disabled {
85
+ color: map.get($error, state-disabled);
86
+ }
87
+ }
88
+
89
+ &.kbq-success {
90
+ color: map.get($success, default);
91
+
92
+ &:active,
93
+ &.kbq-active {
94
+ color: map.get($success, state-active);
95
+ }
96
+
97
+ &:not(.kbq-disabled):hover {
98
+ color: map.get($success, state-hover);
99
+ }
100
+
101
+ &.kbq-disabled {
102
+ color: map.get($success, state-disabled);
103
+ }
104
+ }
105
+
106
+ &.kbq-warning {
107
+ color: map.get($warning, default);
108
+
109
+ &:active,
110
+ &.kbq-active {
111
+ color: map.get($warning, state-active);
112
+ }
113
+
114
+ &:not(.kbq-disabled):hover {
115
+ color: map.get($warning, state-hover);
116
+ }
117
+
118
+ &.kbq-disabled {
119
+ color: map.get($warning, state-disabled);
120
+ }
121
+ }
122
+
123
+ &.cdk-keyboard-focused {
124
+ box-shadow:
125
+ inset 0 0 0 1px map.get(map.get($themeObj, states), focused-color),
126
+ 0 0 0 1px map.get(map.get($themeObj, states), focused-color);
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,41 @@
1
+ @use 'sass:map';
2
+
3
+ @use '../core/styles/theming/theming' as *;
4
+
5
+
6
+ @mixin kbq-icon-item-theme($themeObj) {
7
+ $icon-item: map.get(map.get($themeObj, components), icon-item);
8
+
9
+ $theme: map.get($icon-item, theme);
10
+ $contrast: map.get($icon-item, contrast);
11
+ $fade-contrast: map.get($icon-item, fade-contrast);
12
+ $error: map.get($icon-item, error);
13
+ $success: map.get($icon-item, success);
14
+
15
+ .kbq-icon-item {
16
+ &.kbq-theme {
17
+ color: map.get($theme, color);
18
+ background: map.get($theme, background);
19
+ }
20
+
21
+ &.kbq-contrast {
22
+ color: map.get($contrast, color);
23
+ background: map.get($contrast, background);
24
+ }
25
+
26
+ &.kbq-contrast-fade {
27
+ color: map.get($fade-contrast, color);
28
+ background: map.get($fade-contrast, background);
29
+ }
30
+
31
+ &.kbq-error {
32
+ color: map.get($error, color);
33
+ background: map.get($error, background);
34
+ }
35
+
36
+ &.kbq-success {
37
+ color: map.get($success, color);
38
+ background: map.get($success, background);
39
+ }
40
+ }
41
+ }
@@ -12,7 +12,7 @@
12
12
  $error: map.get($icon, error);
13
13
  $success: map.get($icon, success);
14
14
 
15
- .kbq-icon {
15
+ .kbq-icon:not(.kbq-icon-button, .kbq-icon-item) {
16
16
  &.kbq-theme {
17
17
  color: map.get($theme, color);
18
18
  }
@@ -32,226 +32,5 @@
32
32
  &.kbq-success {
33
33
  color: map.get($success, color);
34
34
  }
35
-
36
- &.kbq-disabled {
37
- cursor: default;
38
-
39
- pointer-events: none;
40
- }
41
- }
42
- }
43
-
44
- @mixin kbq-icon-item-theme($themeObj) {
45
- $icon-item: map.get(map.get($themeObj, components), icon-item);
46
-
47
- $theme: map.get($icon-item, theme);
48
- $contrast: map.get($icon-item, contrast);
49
- $fade-contrast: map.get($icon-item, fade-contrast);
50
- $error: map.get($icon-item, error);
51
- $success: map.get($icon-item, success);
52
-
53
- .kbq-icon-item {
54
- &.kbq-theme {
55
- color: map.get($theme, color);
56
- background: map.get($theme, background);
57
- }
58
-
59
- &.kbq-contrast {
60
- color: map.get($contrast, color);
61
- background: map.get($contrast, background);
62
- }
63
-
64
- &.kbq-contrast-fade {
65
- color: map.get($fade-contrast, color);
66
- background: map.get($fade-contrast, background);
67
- }
68
-
69
- &.kbq-error {
70
- color: map.get($error, color);
71
- background: map.get($error, background);
72
- }
73
-
74
- &.kbq-success {
75
- color: map.get($success, color);
76
- background: map.get($success, background);
77
- }
78
-
79
- &.kbq-disabled {
80
- cursor: default;
81
- }
82
- }
83
- }
84
-
85
- @mixin kbq-icon-button-theme($themeObj) {
86
- $icon-button: map.get(map.get($themeObj, components), icon-button);
87
-
88
- $theme: map.get($icon-button, theme);
89
- $contrast: map.get($icon-button, contrast);
90
- $fade-contrast: map.get($icon-button, fade-contrast);
91
- $error: map.get($icon-button, error);
92
- $success: map.get($icon-button, success);
93
-
94
- .kbq-icon_button {
95
- &.kbq-theme {
96
- &:active,
97
- &.kbq-active {
98
- color: map.get($theme, state-active);
99
- }
100
-
101
- &:not(.kbq-disabled):hover {
102
- color: map.get($theme, state-hover);
103
- }
104
-
105
- &.kbq-disabled {
106
- color: map.get($theme, state-disabled);
107
- }
108
- }
109
-
110
- &.kbq-contrast {
111
- &:active,
112
- &.kbq-active {
113
- color: map.get($contrast, state-active);
114
- }
115
-
116
- &:not(.kbq-disabled):hover {
117
- color: map.get($contrast, state-hover);
118
- }
119
-
120
- &.kbq-disabled {
121
- color: map.get($contrast, state-disabled);
122
- }
123
- }
124
-
125
- &.kbq-contrast-fade {
126
- &:active,
127
- &.kbq-active {
128
- color: map.get($fade-contrast, state-active);
129
- }
130
-
131
- &:not(.kbq-disabled):hover {
132
- color: map.get($fade-contrast, state-hover);
133
- }
134
-
135
- &.kbq-disabled {
136
- color: map.get($fade-contrast, state-disabled);
137
- }
138
- }
139
-
140
- &.kbq-error {
141
- &:active,
142
- &.kbq-active {
143
- color: map.get($error, state-active);
144
- }
145
-
146
- &:not(.kbq-disabled):hover {
147
- color: map.get($error, state-hover);
148
- }
149
-
150
- &.kbq-disabled {
151
- color: map.get($error, state-disabled);
152
- }
153
- }
154
-
155
- &.kbq-success {
156
- &:active,
157
- &.kbq-active {
158
- color: map.get($success, state-active);
159
- }
160
-
161
- &:not(.kbq-disabled):hover {
162
- color: map.get($success, state-hover);
163
- }
164
-
165
- &.kbq-disabled {
166
- color: map.get($success, state-disabled);
167
- }
168
- }
169
- }
170
-
171
- .kbq-icon.kbq-icon_button {
172
- &.kbq-theme {
173
- &:active,
174
- &.kbq-active {
175
- color: map.get($theme, state-active);
176
- }
177
-
178
- &:not(.kbq-disabled):hover {
179
- color: map.get($theme, state-hover);
180
- }
181
-
182
- &.kbq-disabled {
183
- color: map.get($theme, state-disabled);
184
- }
185
- }
186
-
187
- &.kbq-contrast {
188
- &:active,
189
- &.kbq-active {
190
- color: map.get($contrast, state-active);
191
- }
192
-
193
- &:not(.kbq-disabled):hover {
194
- color: map.get($contrast, state-hover);
195
- }
196
-
197
- &.kbq-disabled {
198
- color: map.get($contrast, state-disabled);
199
- }
200
- }
201
-
202
- &.kbq-contrast-fade {
203
- &:active,
204
- &.kbq-active {
205
- color: map.get($fade-contrast, state-active);
206
- }
207
-
208
- &:not(.kbq-disabled):hover {
209
- color: map.get($fade-contrast, state-hover);
210
- }
211
-
212
- &.kbq-disabled {
213
- color: map.get($fade-contrast, state-disabled);
214
- }
215
- }
216
-
217
- &.kbq-error {
218
- &:active,
219
- &.kbq-active {
220
- color: map.get($error, state-active);
221
- }
222
-
223
- &:not(.kbq-disabled):hover {
224
- color: map.get($error, state-hover);
225
- }
226
-
227
- &.kbq-disabled {
228
- color: map.get($error, state-disabled);
229
- }
230
- }
231
-
232
- &.kbq-success {
233
- &:active,
234
- &.kbq-active {
235
- color: map.get($success, state-active);
236
- }
237
-
238
- &:not(.kbq-disabled):hover {
239
- color: map.get($success, state-hover);
240
- }
241
-
242
- &.kbq-disabled {
243
- color: map.get($success, state-disabled);
244
- }
245
- }
246
-
247
- &:focus {
248
- outline: none;
249
- }
250
-
251
- &.cdk-keyboard-focused {
252
- box-shadow:
253
- inset 0 0 0 1px map.get(map.get($themeObj, states), focused-color),
254
- 0 0 0 1px map.get(map.get($themeObj, states), focused-color);
255
- }
256
35
  }
257
36
  }
@@ -0,0 +1,22 @@
1
+ import { FocusMonitor } from '@angular/cdk/a11y';
2
+ import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
3
+ import { CanColor, KbqFormFieldRef } from '@koobiq/components/core';
4
+ import { KbqIcon } from './icon.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class KbqIconButton extends KbqIcon implements OnDestroy, CanColor {
7
+ protected changeDetectorRef: ChangeDetectorRef;
8
+ private focusMonitor;
9
+ small: boolean;
10
+ get tabindex(): any;
11
+ set tabindex(value: any);
12
+ private _tabindex;
13
+ get disabled(): boolean;
14
+ set disabled(value: boolean);
15
+ private _disabled;
16
+ constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor);
17
+ ngOnDestroy(): void;
18
+ private runFocusMonitor;
19
+ private stopFocusMonitor;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconButton, [null, { attribute: "kbq-icon-button"; }, { optional: true; }, null, null]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconButton, "[kbq-icon-button]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
22
+ }
@@ -0,0 +1,33 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ @use '../core/styles/tokens';
5
+
6
+
7
+ $tokens: meta.module-variables(tokens) !default;
8
+
9
+
10
+ .kbq-icon-button {
11
+ &:not(.kbq-disabled) {
12
+ cursor: pointer;
13
+ }
14
+
15
+ padding:
16
+ var(--kbq-icon-button-size-small-vertical-padding, map-get($tokens, icon-button-size-small-vertical-padding))
17
+ var(
18
+ --kbq-icon-button-size-small-horizontal-padding,
19
+ map-get($tokens, icon-button-size-small-horizontal-padding)
20
+ );
21
+
22
+ &.kbq-icon-button_small {
23
+ padding:
24
+ var(
25
+ --kbq-icon-button-size-normal-vertical-padding,
26
+ map-get($tokens, icon-button-size-normal-vertical-padding)
27
+ )
28
+ var(
29
+ --kbq-icon-button-size-normal-horizontal-padding,
30
+ map-get($tokens, icon-button-size-normal-horizontal-padding)
31
+ );
32
+ }
33
+ }
@@ -0,0 +1,10 @@
1
+ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { CanColor, KbqFormFieldRef } from '@koobiq/components/core';
3
+ import { KbqIcon } from './icon.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class KbqIconItem extends KbqIcon implements CanColor {
6
+ protected changeDetectorRef: ChangeDetectorRef;
7
+ constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconItem, [null, { attribute: "kbq-icon-item"; }, { optional: true; }, null]>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,18 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ @use '../core/styles/tokens';
5
+
6
+
7
+ $tokens: meta.module-variables(tokens) !default;
8
+
9
+
10
+ .kbq-icon-item {
11
+ box-sizing: border-box;
12
+
13
+ border-radius: 50%;
14
+
15
+ padding:
16
+ var(--kbq-icon-item-size-vertical-padding, map-get($tokens, icon-item-size-vertical-padding))
17
+ var(--kbq-icon-item-size-horizontal-padding, map-get($tokens, icon-item-size-horizontal-padding));
18
+ }
@@ -1,5 +1,4 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef } from '@angular/core';
3
2
  import { CanColor, CanColorCtor, KbqFormFieldRef } from '@koobiq/components/core';
4
3
  import * as i0 from "@angular/core";
5
4
  /** @docs-private */
@@ -22,26 +21,3 @@ export declare class KbqIcon extends KbqIconMixinBase implements CanColor, After
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqIcon, [null, { attribute: "kbq-icon"; }, { optional: true; }, null]>;
23
22
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqIcon, "[kbq-icon]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "autoColor": { "alias": "autoColor"; "required": false; }; }, {}, never, ["*"], false, never>;
24
23
  }
25
- export declare class KbqIconButton extends KbqIcon implements OnDestroy, CanColor {
26
- protected changeDetectorRef: ChangeDetectorRef;
27
- private focusMonitor;
28
- small: boolean;
29
- get tabindex(): any;
30
- set tabindex(value: any);
31
- private _tabindex;
32
- get disabled(): boolean;
33
- set disabled(value: boolean);
34
- private _disabled;
35
- constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor);
36
- ngOnDestroy(): void;
37
- private runFocusMonitor;
38
- private stopFocusMonitor;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconButton, [null, { attribute: "kbq-icon-button"; }, { optional: true; }, null, null]>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconButton, "[kbq-icon-button]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
41
- }
42
- export declare class KbqIconItem extends KbqIcon implements CanColor {
43
- protected changeDetectorRef: ChangeDetectorRef;
44
- constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef);
45
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconItem, [null, { attribute: "kbq-icon-item"; }, { optional: true; }, null]>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
47
- }
@@ -1,10 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./icon.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/cdk/platform";
3
+ import * as i2 from "./icon-button.component";
4
+ import * as i3 from "./icon-item.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/cdk/a11y";
7
+ import * as i6 from "@angular/cdk/platform";
6
8
  export declare class KbqIconModule {
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqIconModule, [typeof i1.KbqIcon, typeof i1.KbqIconButton, typeof i1.KbqIconItem], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqIcon, typeof i1.KbqIconButton, typeof i1.KbqIconItem]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqIconModule, [typeof i1.KbqIcon, typeof i2.KbqIconButton, typeof i3.KbqIconItem], [typeof i4.CommonModule, typeof i5.A11yModule, typeof i6.PlatformModule], [typeof i1.KbqIcon, typeof i2.KbqIconButton, typeof i3.KbqIconItem]>;
9
11
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqIconModule>;
10
12
  }
package/icon/icon.scss CHANGED
@@ -7,47 +7,6 @@
7
7
  $tokens: meta.module-variables(tokens) !default;
8
8
 
9
9
 
10
- @mixin kbq-icon-size($padding, $line-height, $font-size) {
11
- padding: $padding;
12
- line-height: $line-height;
13
- font-size: $font-size;
14
- }
15
-
16
- .kbq-icon_button {
17
- &:not(.kbq-disabled) {
18
- cursor: pointer;
19
- }
20
-
21
- padding:
22
- var(--kbq-icon-button-size-small-vertical-padding, map-get($tokens, icon-button-size-small-vertical-padding))
23
- var(
24
- --kbq-icon-button-size-small-horizontal-padding,
25
- map-get($tokens, icon-button-size-small-horizontal-padding)
26
- );
27
-
28
- &.kbq-icon-button_small {
29
- padding:
30
- var(
31
- --kbq-icon-button-size-normal-vertical-padding,
32
- map-get($tokens, icon-button-size-normal-vertical-padding)
33
- )
34
- var(
35
- --kbq-icon-button-size-normal-horizontal-padding,
36
- map-get($tokens, icon-button-size-normal-horizontal-padding)
37
- );
38
- }
39
- }
40
-
41
- .kbq-icon-item {
42
- box-sizing: border-box;
43
-
44
- border-radius: 50%;
45
-
46
- padding:
47
- var(--kbq-icon-item-size-vertical-padding, map-get($tokens, icon-item-size-vertical-padding))
48
- var(--kbq-icon-item-size-horizontal-padding, map-get($tokens, icon-item-size-horizontal-padding));
49
- }
50
-
51
10
  .kbq-icon-rotate_90 {
52
11
  transform: rotate(90deg);
53
12
  }
@@ -1,2 +1,4 @@
1
1
  export * from './icon.module';
2
2
  export * from './icon.component';
3
+ export * from './icon-button.component';
4
+ export * from './icon-item.component';