@koobiq/components 16.0.0-beta.7 → 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 (172) 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/button-toggle/_button-toggle-theme.scss +26 -45
  6. package/button-toggle/button-toggle.scss +40 -87
  7. package/card/_card-theme.scss +1 -1
  8. package/core/option/_optgroup-theme.scss +1 -1
  9. package/core/option/_option-theme.scss +2 -2
  10. package/core/option/option.scss +4 -4
  11. package/core/styles/_koobiq-theme.scss +8 -0
  12. package/core/styles/common/_animation.scss +10 -6
  13. package/core/styles/common/_overlay.scss +1 -1
  14. package/core/styles/common/_select.scss +55 -41
  15. package/core/styles/theming/_components-theming.scss +244 -44
  16. package/core/styles/theming/_theming.scss +201 -30
  17. package/core/styles/typography/_typography.scss +175 -5
  18. package/datepicker/_datepicker-theme.scss +43 -57
  19. package/datepicker/calendar-body.scss +11 -26
  20. package/datepicker/calendar-header.scss +7 -31
  21. package/datepicker/calendar.scss +20 -25
  22. package/datepicker/datepicker-content.scss +17 -10
  23. package/datepicker/datepicker-input.scss +1 -1
  24. package/dropdown/_dropdown-theme.scss +2 -2
  25. package/dropdown/dropdown-item.scss +1 -1
  26. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +6 -6
  27. package/esm2022/badge/badge.component.mjs +65 -5
  28. package/esm2022/badge/badge.module.mjs +10 -6
  29. package/esm2022/button/button.component.mjs +3 -2
  30. package/esm2022/button-toggle/button-toggle.component.mjs +11 -11
  31. package/esm2022/code-block/actionbar.component.mjs +1 -1
  32. package/esm2022/core/option/option.mjs +2 -2
  33. package/esm2022/core/version.mjs +2 -2
  34. package/esm2022/datepicker/calendar-body.component.mjs +6 -4
  35. package/esm2022/datepicker/calendar-header.component.mjs +3 -3
  36. package/esm2022/datepicker/calendar.component.mjs +2 -2
  37. package/esm2022/datepicker/datepicker-toggle.component.mjs +2 -2
  38. package/esm2022/datepicker/datepicker.component.mjs +3 -3
  39. package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
  40. package/esm2022/dropdown/dropdown-trigger.directive.mjs +3 -2
  41. package/esm2022/file-upload/multiple-file-upload.component.mjs +5 -5
  42. package/esm2022/file-upload/single-file-upload.component.mjs +8 -9
  43. package/esm2022/form-field/form-field.mjs +2 -2
  44. package/esm2022/form-field/hint.mjs +15 -5
  45. package/esm2022/icon/icon-button.component.mjs +68 -0
  46. package/esm2022/icon/icon-item.component.mjs +27 -0
  47. package/esm2022/icon/icon.component.mjs +4 -89
  48. package/esm2022/icon/icon.module.mjs +4 -2
  49. package/esm2022/icon/public-api.mjs +3 -1
  50. package/esm2022/link/link.component.mjs +13 -2
  51. package/esm2022/list/list-selection.component.mjs +2 -2
  52. package/esm2022/list/list.component.mjs +2 -2
  53. package/esm2022/modal/modal.component.mjs +2 -2
  54. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  55. package/esm2022/popover/popover.component.mjs +4 -4
  56. package/esm2022/select/select-option.directive.mjs +15 -3
  57. package/esm2022/select/select.component.mjs +13 -9
  58. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  59. package/esm2022/tabs/tab-group.component.mjs +1 -1
  60. package/esm2022/timezone/timezone-option.component.mjs +2 -2
  61. package/esm2022/timezone/timezone-select.component.mjs +2 -2
  62. package/esm2022/toast/toast-animations.mjs +2 -1
  63. package/esm2022/toast/toast-container.component.mjs +21 -7
  64. package/esm2022/toast/toast.component.mjs +7 -2
  65. package/esm2022/toast/toast.service.mjs +2 -1
  66. package/esm2022/toggle/toggle.component.mjs +3 -3
  67. package/esm2022/tooltip/tooltip.component.mjs +4 -3
  68. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  69. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  70. package/esm2022/tree/control/tree-control.mjs +1 -1
  71. package/esm2022/tree/padding.directive.mjs +2 -2
  72. package/esm2022/tree/toggle.mjs +2 -4
  73. package/esm2022/tree/tree-base.mjs +1 -1
  74. package/esm2022/tree/tree-option.component.mjs +2 -2
  75. package/esm2022/tree-select/tree-select.component.mjs +6 -7
  76. package/fesm2022/koobiq-components-autocomplete.mjs +5 -5
  77. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  78. package/fesm2022/koobiq-components-badge.mjs +73 -9
  79. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  80. package/fesm2022/koobiq-components-button-toggle.mjs +10 -10
  81. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  82. package/fesm2022/koobiq-components-button.mjs +2 -1
  83. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  84. package/fesm2022/koobiq-components-code-block.mjs +1 -1
  85. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  86. package/fesm2022/koobiq-components-core.mjs +3 -3
  87. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  88. package/fesm2022/koobiq-components-datepicker.mjs +13 -11
  89. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  90. package/fesm2022/koobiq-components-dropdown.mjs +4 -3
  91. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  92. package/fesm2022/koobiq-components-file-upload.mjs +7 -8
  93. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  94. package/fesm2022/koobiq-components-form-field.mjs +16 -6
  95. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  96. package/fesm2022/koobiq-components-icon.mjs +9 -7
  97. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  98. package/fesm2022/koobiq-components-link.mjs +12 -1
  99. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  100. package/fesm2022/koobiq-components-list.mjs +4 -4
  101. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  102. package/fesm2022/koobiq-components-modal.mjs +2 -2
  103. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  104. package/fesm2022/koobiq-components-popover.mjs +5 -5
  105. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  106. package/fesm2022/koobiq-components-select.mjs +26 -10
  107. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  108. package/fesm2022/koobiq-components-sidepanel.mjs +2 -2
  109. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  110. package/fesm2022/koobiq-components-tabs.mjs +1 -1
  111. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  112. package/fesm2022/koobiq-components-timezone.mjs +4 -4
  113. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  114. package/fesm2022/koobiq-components-toast.mjs +25 -8
  115. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  116. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  117. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  118. package/fesm2022/koobiq-components-tooltip.mjs +3 -2
  119. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  120. package/fesm2022/koobiq-components-tree-select.mjs +5 -6
  121. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  122. package/fesm2022/koobiq-components-tree.mjs +8 -9
  123. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  124. package/file-upload/_file-upload-theme.scss +54 -40
  125. package/file-upload/file-upload.scss +2 -9
  126. package/file-upload/multiple-file-upload.component.scss +170 -59
  127. package/file-upload/single-file-upload.component.scss +42 -22
  128. package/form-field/_hint-theme.scss +5 -1
  129. package/form-field/hint.d.ts +4 -1
  130. package/form-field/hint.scss +9 -1
  131. package/icon/_icon-button-theme.scss +129 -0
  132. package/icon/_icon-item-theme.scss +41 -0
  133. package/icon/_icon-theme.scss +1 -233
  134. package/icon/icon-button.component.d.ts +22 -0
  135. package/icon/icon-button.scss +33 -0
  136. package/icon/icon-item.component.d.ts +10 -0
  137. package/icon/icon-item.scss +18 -0
  138. package/icon/icon.component.d.ts +1 -25
  139. package/icon/icon.module.d.ts +6 -4
  140. package/icon/icon.scss +0 -41
  141. package/icon/public-api.d.ts +2 -0
  142. package/link/_link-theme.scss +96 -89
  143. package/link/link.component.d.ts +4 -1
  144. package/list/_list-theme.scss +2 -2
  145. package/list/list.scss +1 -5
  146. package/markdown/_markdown-theme.scss +2 -2
  147. package/modal/_modal-theme.scss +10 -18
  148. package/modal/modal.scss +0 -1
  149. package/navbar/_navbar-theme.scss +1 -1
  150. package/package.json +11 -11
  151. package/popover/_popover-theme.scss +20 -83
  152. package/popover/popover.scss +60 -50
  153. package/prebuilt-themes/dark-theme.css +1 -1
  154. package/prebuilt-themes/light-theme.css +1 -1
  155. package/radio/_radio-theme.scss +2 -2
  156. package/select/_select-theme.scss +7 -7
  157. package/select/select-option.directive.d.ts +2 -0
  158. package/select/select.component.d.ts +1 -1
  159. package/sidepanel/_sidepanel-theme.scss +5 -0
  160. package/table/_table-theme.scss +1 -1
  161. package/toast/toast-animations.d.ts +1 -0
  162. package/toast/toast-container.component.d.ts +7 -3
  163. package/toast/toast.component.d.ts +2 -0
  164. package/toast/toast.service.d.ts +2 -0
  165. package/toggle/_toggle-theme.scss +9 -1
  166. package/toggle/toggle.scss +5 -2
  167. package/tooltip/tooltip.component.d.ts +1 -1
  168. package/tree/_tree-theme.scss +2 -2
  169. package/tree/control/base-tree-control.d.ts +1 -1
  170. package/tree/control/tree-control.d.ts +1 -1
  171. package/tree-select/_tree-select-theme.scss +7 -5
  172. package/tree-select/tree-select.component.d.ts +2 -2
@@ -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,237 +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
- &[disabled],
80
- &.kbq-disabled {
81
- cursor: default;
82
- }
83
- }
84
- }
85
-
86
- @mixin kbq-icon-button-theme($themeObj) {
87
- $icon-button: map.get(map.get($themeObj, components), icon-button);
88
-
89
- $theme: map.get($icon-button, theme);
90
- $contrast: map.get($icon-button, contrast);
91
- $fade-contrast: map.get($icon-button, fade-contrast);
92
- $error: map.get($icon-button, error);
93
- $success: map.get($icon-button, success);
94
-
95
- .kbq-icon_button {
96
- &.kbq-theme {
97
- &:active,
98
- &.kbq-active {
99
- color: map.get($theme, state-active);
100
- }
101
-
102
- &:not([disabled], .kbq-disabled):hover {
103
- color: map.get($theme, state-hover);
104
- }
105
-
106
- &[disabled],
107
- &.kbq-disabled {
108
- color: map.get($theme, state-disabled);
109
- }
110
- }
111
-
112
- &.kbq-contrast {
113
- &:active,
114
- &.kbq-active {
115
- color: map.get($contrast, state-active);
116
- }
117
-
118
- &:not([disabled], .kbq-disabled):hover {
119
- color: map.get($contrast, state-hover);
120
- }
121
-
122
- &[disabled],
123
- &.kbq-disabled {
124
- color: map.get($contrast, state-disabled);
125
- }
126
- }
127
-
128
- &.kbq-contrast-fade {
129
- &:active,
130
- &.kbq-active {
131
- color: map.get($fade-contrast, state-active);
132
- }
133
-
134
- &:not([disabled], .kbq-disabled):hover {
135
- color: map.get($fade-contrast, state-hover);
136
- }
137
-
138
- &[disabled],
139
- &.kbq-disabled {
140
- color: map.get($fade-contrast, state-disabled);
141
- }
142
- }
143
-
144
- &.kbq-error {
145
- &:active,
146
- &.kbq-active {
147
- color: map.get($error, state-active);
148
- }
149
-
150
- &:not([disabled], .kbq-disabled):hover {
151
- color: map.get($error, state-hover);
152
- }
153
-
154
- &[disabled],
155
- &.kbq-disabled {
156
- color: map.get($error, state-disabled);
157
- }
158
- }
159
-
160
- &.kbq-success {
161
- &:active,
162
- &.kbq-active {
163
- color: map.get($success, state-active);
164
- }
165
-
166
- &:not([disabled], .kbq-disabled):hover {
167
- color: map.get($success, state-hover);
168
- }
169
-
170
- &[disabled],
171
- &.kbq-disabled {
172
- color: map.get($success, state-disabled);
173
- }
174
- }
175
- }
176
-
177
- .kbq-icon.kbq-icon_button {
178
- &.kbq-theme {
179
- &:active,
180
- &.kbq-active {
181
- color: map.get($theme, state-active);
182
- }
183
-
184
- &:not([disabled], .kbq-disabled):hover {
185
- color: map.get($theme, state-hover);
186
- }
187
-
188
- &[disabled],
189
- &.kbq-disabled {
190
- color: map.get($theme, state-disabled);
191
- }
192
- }
193
-
194
- &.kbq-contrast {
195
- &:active,
196
- &.kbq-active {
197
- color: map.get($contrast, state-active);
198
- }
199
-
200
- &:not([disabled], .kbq-disabled):hover {
201
- color: map.get($contrast, state-hover);
202
- }
203
-
204
- &[disabled],
205
- &.kbq-disabled {
206
- color: map.get($contrast, state-disabled);
207
- }
208
- }
209
-
210
- &.kbq-contrast-fade {
211
- &:active,
212
- &.kbq-active {
213
- color: map.get($fade-contrast, state-active);
214
- }
215
-
216
- &:not([disabled], .kbq-disabled):hover {
217
- color: map.get($fade-contrast, state-hover);
218
- }
219
-
220
- &[disabled],
221
- &.kbq-disabled {
222
- color: map.get($fade-contrast, state-disabled);
223
- }
224
- }
225
-
226
- &.kbq-error {
227
- &:active,
228
- &.kbq-active {
229
- color: map.get($error, state-active);
230
- }
231
-
232
- &:not([disabled], .kbq-disabled):hover {
233
- color: map.get($error, state-hover);
234
- }
235
-
236
- &[disabled],
237
- &.kbq-disabled {
238
- color: map.get($error, state-disabled);
239
- }
240
- }
241
-
242
- &.kbq-success {
243
- &:active,
244
- &.kbq-active {
245
- color: map.get($success, state-active);
246
- }
247
-
248
- &:not([disabled],.kbq-disabled):hover {
249
- color: map.get($success, state-hover);
250
- }
251
-
252
- &[disabled],
253
- &.kbq-disabled {
254
- color: map.get($success, state-disabled);
255
- }
256
- }
257
-
258
- &:focus {
259
- outline: none;
260
- }
261
-
262
- &.cdk-keyboard-focused {
263
- box-shadow:
264
- inset 0 0 0 1px map.get(map.get($themeObj, states), focused-color),
265
- 0 0 0 1px map.get(map.get($themeObj, states), focused-color);
266
- }
267
35
  }
268
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';