@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
@@ -37,8 +37,8 @@
37
37
  $background: map.get($theme, background);
38
38
  $foreground: map.get($theme, foreground);
39
39
 
40
- background-color: kbq-color($background, background);
41
- color: kbq-color($foreground, text);
40
+ background-color: kbq-color($background, bg);
41
+ color: kbq-color($foreground, contrast);
42
42
  }
43
43
 
44
44
  .kbq-theme-loaded-marker {
@@ -46,52 +46,205 @@
46
46
  }
47
47
  }
48
48
 
49
- @function _theme_states($tokens, $scheme) {
50
- @return (
51
- focused-color: map.get($tokens, '#{$scheme}-states-focused-color'),
52
- selected-color: map.get($tokens, '#{$scheme}-states-selected-color'),
53
- pressed-shadow: map.get($tokens, '#{$scheme}-states-pressed-shadow'),
54
- disabled-opacity: map.get($tokens, '#{$scheme}-states-disabled-opacity')
55
- );
56
- }
57
-
58
49
  @function _theme_foreground($tokens, $scheme) {
59
50
  @return (
51
+ white: map.get($tokens, '#{$scheme}-foreground-white'),
52
+ white-secondary: map.get($tokens, '#{$scheme}-foreground-white-secondary'),
53
+ theme: map.get($tokens, '#{$scheme}-foreground-theme'),
54
+ theme-secondary: map.get($tokens, '#{$scheme}-foreground-theme-secondary'),
55
+ on-contrast: map.get($tokens, '#{$scheme}-foreground-on-contrast'),
56
+ contrast: map.get($tokens, '#{$scheme}-foreground-contrast'),
57
+ contrast-secondary: map.get($tokens, '#{$scheme}-foreground-contrast-secondary'),
58
+ contrast-tertiary: map.get($tokens, '#{$scheme}-foreground-contrast-tertiary'),
59
+ success: map.get($tokens, '#{$scheme}-foreground-success'),
60
+ // будет удалено, после удаления из компонентов ↓
61
+ success-less: map.get($tokens, '#{$scheme}-foreground-success-less'),
62
+ success-secondary: map.get($tokens, '#{$scheme}-foreground-success-secondary'),
63
+ warning: map.get($tokens, '#{$scheme}-foreground-warning'),
64
+ warning-secondary: map.get($tokens, '#{$scheme}-foreground-warning-secondary'),
65
+ error: map.get($tokens, '#{$scheme}-foreground-error'),
66
+ error-secondary: map.get($tokens, '#{$scheme}-foreground-error-secondary'),
67
+ error-tertiary: map.get($tokens, '#{$scheme}-foreground-error-tertiary'),
68
+ visited: map.get($tokens, '#{$scheme}-foreground-visited'),
69
+ // будет удалено, после удаления из компонентов ↓
70
+ error-less: map.get($tokens, '#{$scheme}-foreground-error-less'),
71
+ // будет удалено, после удаления из компонентов ↓
60
72
  text: map.get($tokens, '#{$scheme}-foreground-text'),
61
73
  text-less-contrast: map.get($tokens, '#{$scheme}-foreground-text-less-contrast'),
62
74
  text-disabled: map.get($tokens, '#{$scheme}-foreground-text-disabled'),
63
75
  text-error: map.get($tokens, '#{$scheme}-foreground-text-error'),
64
76
  text-success: map.get($tokens, '#{$scheme}-foreground-text-success'),
65
-
66
77
  divider: map.get($tokens, '#{$scheme}-foreground-divider'),
67
78
  border: map.get($tokens, '#{$scheme}-foreground-border'),
68
- icon: map.get($tokens, '#{$scheme}-foreground-icon'),
69
-
70
- contrast: map.get($tokens, '#{$scheme}-foreground-contrast'),
79
+ icon: map.get($tokens, '#{$scheme}-foreground-icon')
71
80
  );
72
81
  }
73
82
 
74
83
  @function _theme_background($tokens, $scheme) {
75
84
  @return (
76
- background: map.get($tokens, '#{$scheme}-background-background'),
77
85
  bg: map.get($tokens, '#{$scheme}-background-bg'),
86
+ bg-secondary: map.get($tokens, '#{$scheme}-background-bg-secondary'),
87
+ card: map.get($tokens, '#{$scheme}-background-card'),
88
+ contrast: map.get($tokens, '#{$scheme}-background-contrast'),
89
+ contrast-fade: map.get($tokens, '#{$scheme}-background-contrast-fade'),
90
+ night: map.get($tokens, '#{$scheme}-background-night'),
91
+ error: map.get($tokens, '#{$scheme}-background-error'),
92
+ error-fade: map.get($tokens, '#{$scheme}-background-error-fade'),
93
+ error-less: map.get($tokens, '#{$scheme}-background-error-less'),
94
+ success: map.get($tokens, '#{$scheme}-background-success'),
95
+ success-fade: map.get($tokens, '#{$scheme}-background-success-fade'),
96
+ // surfacce — удалить после удаления из компонентов
97
+ surface: map.get($tokens, '#{$scheme}-background-surface'),
98
+ theme: map.get($tokens, '#{$scheme}-background-theme'),
99
+ theme-fade: map.get($tokens, '#{$scheme}-background-theme-fade'),
100
+ warning: map.get($tokens, '#{$scheme}-background-warning'),
101
+ warning-fade: map.get($tokens, '#{$scheme}-background-warning-fade'),
102
+ transparent: map.get($tokens, '#{$scheme}-background-transparent'),
103
+
104
+ // будет удалено, после удаления из компонентов ↓
105
+ background: map.get($tokens, '#{$scheme}-background-background'),
78
106
  background-disabled: map.get($tokens, '#{$scheme}-background-background-disabled'),
79
107
  background-less-contrast: map.get($tokens, '#{$scheme}-background-background-less-contrast'),
80
108
  background-under: map.get($tokens, '#{$scheme}-background-background-under'),
81
-
109
+ overlay: map.get($tokens, '#{$scheme}-background-overlay'),
110
+ overlay-inverse: map.get($tokens, '#{$scheme}-background-overlay-inverse'),
82
111
  overlay-hover: map.get($tokens, '#{$scheme}-background-overlay-hover'),
83
112
  overlay-active: map.get($tokens, '#{$scheme}-background-overlay-active'),
84
113
  overlay-disabled: map.get($tokens, '#{$scheme}-background-overlay-disabled')
85
114
  );
86
115
  }
87
116
 
117
+ @function _theme_icon($tokens, $scheme) {
118
+ @return (
119
+ on-contrast: map.get($tokens, '#{$scheme}-icon-on-contrast'),
120
+ white: map.get($tokens, '#{$scheme}-icon-white'),
121
+ theme: map.get($tokens, '#{$scheme}-icon-theme'),
122
+ contrast: map.get($tokens, '#{$scheme}-icon-contrast'),
123
+ contrast-fade: map.get($tokens, '#{$scheme}-icon-contrast-fade'),
124
+ success: map.get($tokens, '#{$scheme}-icon-success'),
125
+ warning: map.get($tokens, '#{$scheme}-icon-warning'),
126
+ error: map.get($tokens, '#{$scheme}-icon-error'),
127
+ visited: map.get($tokens, '#{$scheme}-icon-visited')
128
+ );
129
+ }
130
+
131
+ @function _theme_line($tokens, $scheme) {
132
+ @return (
133
+ theme: map.get($tokens, '#{$scheme}-line-theme'),
134
+ theme-fade: map.get($tokens, '#{$scheme}-line-theme-fade'),
135
+ contrast: map.get($tokens, '#{$scheme}-line-contrast'),
136
+ contrast-fade: map.get($tokens, '#{$scheme}-line-contrast-fade'),
137
+ success: map.get($tokens, '#{$scheme}-line-success'),
138
+ success-fade: map.get($tokens, '#{$scheme}-line-success-fade'),
139
+ warning: map.get($tokens, '#{$scheme}-line-warning'),
140
+ warning-fade: map.get($tokens, '#{$scheme}-line-warning-fade'),
141
+ error: map.get($tokens, '#{$scheme}-line-error'),
142
+ error-fade: map.get($tokens, '#{$scheme}-line-error-fade'),
143
+ visited: map.get($tokens, '#{$scheme}-line-visited'),
144
+ );
145
+ }
146
+
147
+ @function _theme_states-background($tokens, $scheme) {
148
+ @return (
149
+ disabled: map.get($tokens, '#{$scheme}-states-background-disabled'),
150
+ transparent-hover: map.get($tokens, '#{$scheme}-states-background-transparent-hover'),
151
+ transparent-active: map.get($tokens, '#{$scheme}-states-background-transparent-active'),
152
+ contrast-hover: map.get($tokens, '#{$scheme}-states-background-contrast-hover'),
153
+ contrast-active: map.get($tokens, '#{$scheme}-states-background-contrast-active'),
154
+ contrast-fade-hover: map.get($tokens, '#{$scheme}-states-background-contrast-fade-hover'),
155
+ contrast-fade-active: map.get($tokens, '#{$scheme}-states-background-contrast-fade-active'),
156
+ theme-hover: map.get($tokens, '#{$scheme}-states-background-theme-hover'),
157
+ theme-active: map.get($tokens, '#{$scheme}-states-background-theme-active'),
158
+ theme-fade-hover: map.get($tokens, '#{$scheme}-states-background-theme-fade-hover'),
159
+ theme-fade-active: map.get($tokens, '#{$scheme}-states-background-theme-fade-active'),
160
+ error-hover: map.get($tokens, '#{$scheme}-states-background-error-hover'),
161
+ error-active: map.get($tokens, '#{$scheme}-states-background-error-active'),
162
+ error-fade-hover: map.get($tokens, '#{$scheme}-states-background-error-fade-hover'),
163
+ error-fade-active: map.get($tokens, '#{$scheme}-states-background-error-fade-active'),
164
+ // будет удалено, после удаления из компонентов ↓
165
+ error-less: map.get($tokens, '#{$scheme}-states-background-error-less'),
166
+ ghost-hover: map.get($tokens, '#{$scheme}-states-background-ghost-hover'),
167
+ ghost-active: map.get($tokens, '#{$scheme}-states-background-ghost-active')
168
+ );
169
+ }
170
+
171
+ @function _theme_states-foreground($tokens, $scheme) {
172
+ @return (
173
+ disabled: map.get($tokens, '#{$scheme}-states-foreground-disabled'),
174
+ theme-hover: map.get($tokens, '#{$scheme}-states-foreground-theme-hover'),
175
+ theme-active: map.get($tokens, '#{$scheme}-states-foreground-theme-active'),
176
+ visited-hover: map.get($tokens, '#{$scheme}-states-foreground-visited-hover'),
177
+ visited-active: map.get($tokens, '#{$scheme}-states-foreground-visited-active')
178
+ );
179
+ }
180
+
181
+ @function _theme_states-icon($tokens, $scheme) {
182
+ @return (
183
+ theme-hover: map.get($tokens, '#{$scheme}-states-icon-theme-hover'),
184
+ theme-active: map.get($tokens, '#{$scheme}-states-icon-theme-active'),
185
+ contrast-hover: map.get($tokens, '#{$scheme}-states-icon-contrast-hover'),
186
+ contrast-active: map.get($tokens, '#{$scheme}-states-icon-contrast-active'),
187
+ contrast-fade-hover: map.get($tokens, '#{$scheme}-states-icon-contrast-fade-hover'),
188
+ contrast-fade-active: map.get($tokens, '#{$scheme}-states-icon-contrast-fade-active'),
189
+ error-hover: map.get($tokens, '#{$scheme}-states-icon-error-hover'),
190
+ error-active: map.get($tokens, '#{$scheme}-states-icon-error-active'),
191
+ success-hover: map.get($tokens, '#{$scheme}-states-icon-success-hover'),
192
+ success-active: map.get($tokens, '#{$scheme}-states-icon-success-active'),
193
+ disabled: map.get($tokens, '#{$scheme}-states-icon-disabled'),
194
+ warning-hover: map.get($tokens, '#{$scheme}-states-icon-warning-hover'),
195
+ warning-active: map.get($tokens, '#{$scheme}-states-icon-warning-active'),
196
+ visited-hover: map.get($tokens, '#{$scheme}-states-icon-visited-hover'),
197
+ visited-active: map.get($tokens, '#{$scheme}-states-icon-visited-active')
198
+ );
199
+ }
200
+
201
+ @function _theme_states-line($tokens, $scheme) {
202
+ @return (
203
+ focus: map.get($tokens, '#{$scheme}-states-line-focus'),
204
+ focus-theme: map.get($tokens, '#{$scheme}-states-line-focus-theme'),
205
+ focus-error: map.get($tokens, '#{$scheme}-states-line-focus-error'),
206
+ disabled: map.get($tokens, '#{$scheme}-states-line-disabled')
207
+ );
208
+ }
209
+
210
+ @function _theme_states-others($tokens, $scheme) {
211
+ @return (
212
+ brand: map.get($tokens, '#{$scheme}-states-others-brand')
213
+ );
214
+ }
215
+
216
+ @function _theme_states($tokens, $scheme) {
217
+ @return (
218
+ background: _theme_states-background($tokens, $scheme),
219
+ foreground: _theme_states-foreground($tokens, $scheme),
220
+ icon: _theme_states-icon($tokens, $scheme),
221
+ line: _theme_states-line($tokens, $scheme),
222
+ others: _theme_states-others($tokens, $scheme),
223
+
224
+ // будет удалено, после удаления из компонентов ↓
225
+ focused-color: map.get($tokens, '#{$scheme}-states-focused-color'),
226
+ focused-color-error: map.get($tokens, '#{$scheme}-states-focused-color-error'),
227
+ selected-color: map.get($tokens, '#{$scheme}-states-selected-color'),
228
+ pressed-shadow: map.get($tokens, '#{$scheme}-states-pressed-shadow'),
229
+ disabled-opacity: map.get($tokens, '#{$scheme}-states-disabled-opacity')
230
+ );
231
+ }
232
+
88
233
  @function kbq-palette($base-palette, $default) {
89
234
  @return map.merge($base-palette, (default: $default));
90
235
  }
91
236
 
92
237
  @function _theme_palette($tokens, $scheme, $name) {
93
238
  @return kbq-palette(
94
- map.get($tokens, '#{$scheme}-#{$name}-palette'), map.get($tokens, '#{$scheme}-#{$name}-default')
239
+ map.get($tokens, '#{$scheme}-#{$name}-palette'),
240
+ map.get($tokens, '#{$scheme}-#{$name}-default')
241
+ )
242
+ }
243
+
244
+ @function _theme_palette_neutral($tokens, $scheme) {
245
+ @return (
246
+ white: map.get($tokens, '#{$scheme}-neutral-white'),
247
+ black: map.get($tokens, '#{$scheme}-neutral-black'),
95
248
  )
96
249
  }
97
250
 
@@ -103,16 +256,25 @@
103
256
 
104
257
  background: _theme_background($tokens, $scheme),
105
258
  foreground: _theme_foreground($tokens, $scheme),
259
+ icon: _theme_icon($tokens, $scheme),
260
+ line: _theme_line($tokens, $scheme),
261
+ states: _theme_states($tokens, $scheme),
106
262
 
107
263
  theme: _theme_palette($tokens, $scheme, theme),
108
- secondary: _theme_palette($tokens, $scheme, secondary),
109
- error: _theme_palette($tokens, $scheme, error),
110
-
111
- warning: _theme_palette($tokens, $scheme, warning),
112
264
  success: _theme_palette($tokens, $scheme, success),
265
+ warning: _theme_palette($tokens, $scheme, warning),
266
+ error: _theme_palette($tokens, $scheme, error),
267
+ contrast: _theme_palette($tokens, $scheme, contrast),
268
+ neutral: _theme_palette_neutral($tokens, $scheme),
269
+ white: _theme_palette($tokens, $scheme, white),
270
+ black: _theme_palette($tokens, $scheme, black),
271
+ brand: _theme_palette($tokens, $scheme, brand),
272
+ purple: _theme_palette($tokens, $scheme, purple),
273
+
274
+ // будет удалено, после удаления из компонентов ↓
275
+ secondary: _theme_palette($tokens, $scheme, secondary),
113
276
  info: _theme_palette($tokens, $scheme, info),
114
-
115
- states: _theme_states($tokens, $scheme),
277
+ // будет удалено, после удаления из компонентов ↑
116
278
 
117
279
  components: kbq-components-theme($tokens, $scheme),
118
280
  tokens: $tokens
@@ -127,16 +289,25 @@
127
289
 
128
290
  background: _theme_background($tokens, $scheme),
129
291
  foreground: _theme_foreground($tokens, $scheme),
292
+ icon: _theme_icon($tokens, $scheme),
293
+ line: _theme_line($tokens, $scheme),
294
+ states: _theme_states($tokens, $scheme),
130
295
 
131
296
  theme: _theme_palette($tokens, $scheme, theme),
132
- secondary: _theme_palette($tokens, $scheme, secondary),
133
- error: _theme_palette($tokens, $scheme, error),
134
-
135
- warning: _theme_palette($tokens, $scheme, warning),
136
297
  success: _theme_palette($tokens, $scheme, success),
298
+ warning: _theme_palette($tokens, $scheme, warning),
299
+ error: _theme_palette($tokens, $scheme, error),
300
+ contrast: _theme_palette($tokens, $scheme, contrast),
301
+ neutral: _theme_palette_neutral($tokens, $scheme),
302
+ white: _theme_palette($tokens, $scheme, white),
303
+ black: _theme_palette($tokens, $scheme, black),
304
+ brand: _theme_palette($tokens, $scheme, brand),
305
+ purple: _theme_palette($tokens, $scheme, purple),
306
+
307
+ // будет удалено, после удаления из компонентов ↓
308
+ secondary: _theme_palette($tokens, $scheme, secondary),
137
309
  info: _theme_palette($tokens, $scheme, info),
138
-
139
- states: _theme_states($tokens, $scheme),
310
+ // будет удалено, после удаления из компонентов ↑
140
311
 
141
312
  components: kbq-components-theme($tokens, $scheme),
142
313
  tokens: $tokens
@@ -8,6 +8,7 @@
8
8
  $typography: map.get(map.get($tokens, koobiq), typography);
9
9
 
10
10
  $config: (
11
+ //legacy will be deleted
11
12
  display-1: map.get($typography, display-1),
12
13
  display-2: map.get($typography, display-2),
13
14
  display-3: map.get($typography, display-3),
@@ -30,11 +31,46 @@
30
31
  caption-mono-strong: map.get($typography, caption-mono-strong),
31
32
  caption-tabular: map.get($typography, caption-tabular),
32
33
 
33
- small-text: map.get($typography, small-text),
34
+ //small-text: map.get($typography, small-text),
34
35
  extra-small-text: map.get($typography, extra-small-text),
35
36
  extra-small-text-caps: map.get($typography, extra-small-text-caps),
36
37
  extra-small-text-mono: map.get($typography, extra-small-text-mono),
37
- extra-small-text-strong: map.get($typography, extra-small-text-strong)
38
+ extra-small-text-strong: map.get($typography, extra-small-text-strong),
39
+
40
+ //new
41
+ display-big: map.get($typography, display-big),
42
+ display-normal: map.get($typography, display-normal),
43
+ display-compact: map.get($typography, display-compact),
44
+ text-big: map.get($typography, text-big),
45
+ text-big-strong: map.get($typography, text-big-strong),
46
+ text-normal: map.get($typography, text-normal),
47
+ text-normal-strong: map.get($typography, text-normal-strong),
48
+ text-compact: map.get($typography, text-compact),
49
+ text-compact-strong: map.get($typography, text-compact-strong),
50
+ caps-big: map.get($typography, caps-big),
51
+ caps-big-strong: map.get($typography, caps-big-strong),
52
+ caps-normal: map.get($typography, caps-normal),
53
+ caps-normal-strong: map.get($typography, caps-normal-strong),
54
+ caps-compact: map.get($typography, caps-compact),
55
+ caps-compact-strong: map.get($typography, caps-compact-strong),
56
+ mono-big: map.get($typography, mono-big),
57
+ mono-big-strong: map.get($typography, mono-big-strong),
58
+ mono-normal: map.get($typography, mono-normal),
59
+ mono-normal-strong: map.get($typography, mono-normal-strong),
60
+ mono-compact: map.get($typography, mono-compact),
61
+ mono-compact-strong: map.get($typography, mono-compact-strong),
62
+ tabular-big: map.get($typography, tabular-big),
63
+ tabular-big-strong: map.get($typography, tabular-big-strong),
64
+ tabular-normal: map.get($typography, tabular-normal),
65
+ tabular-normal-strong: map.get($typography, tabular-normal-strong),
66
+ tabular-compact: map.get($typography, tabular-compact),
67
+ tabular-compact-strong: map.get($typography, tabular-compact-strong),
68
+ italic-big: map.get($typography, italic-big),
69
+ italic-big-strong: map.get($typography, italic-big-strong),
70
+ italic-normal: map.get($typography, italic-normal),
71
+ italic-normal-strong: map.get($typography, italic-normal-strong),
72
+ italic-compact: map.get($typography, italic-compact),
73
+ italic-compact-strong: map.get($typography, italic-compact-strong)
38
74
  );
39
75
 
40
76
  @each $key, $level in $config {
@@ -80,6 +116,7 @@
80
116
 
81
117
 
82
118
  @mixin kbq-base-typography($config) {
119
+ //legacy will be deleted
83
120
  .kbq-display-1 {
84
121
  @include kbq-typography-level-to-styles($config, display-1);
85
122
  }
@@ -152,13 +189,146 @@
152
189
  @include kbq-typography-level-to-styles($config, caption-mono-strong);
153
190
  }
154
191
 
155
- .kbq-small-text {
156
- @include kbq-typography-level-to-styles($config, small-text);
157
- }
192
+ //.kbq-small-text {
193
+ // @include kbq-typography-level-to-styles($config, small-text);
194
+ //}
158
195
 
159
196
  .kbq-extra-small-text {
160
197
  @include kbq-typography-level-to-styles($config, extra-small-text);
161
198
  }
199
+
200
+ // new
201
+ .kbq-display-big {
202
+ @include kbq-typography-level-to-styles($config, display-big);
203
+ }
204
+
205
+ .kbq-display-normal {
206
+ @include kbq-typography-level-to-styles($config, display-normal);
207
+ }
208
+
209
+ .kbq-display-compact {
210
+ @include kbq-typography-level-to-styles($config, display-compact);
211
+ }
212
+
213
+ .kbq-text-big {
214
+ @include kbq-typography-level-to-styles($config, text-big);
215
+ }
216
+
217
+ .kbq-text-big-strong {
218
+ @include kbq-typography-level-to-styles($config, text-big-strong);
219
+ }
220
+
221
+ .kbq-text-normal {
222
+ @include kbq-typography-level-to-styles($config, text-normal);
223
+ }
224
+
225
+ .kbq-text-normal-strong {
226
+ @include kbq-typography-level-to-styles($config, text-normal-strong);
227
+ }
228
+
229
+ .kbq-text-compact {
230
+ @include kbq-typography-level-to-styles($config, text-compact);
231
+ }
232
+
233
+ .kbq-text-compact-strong {
234
+ @include kbq-typography-level-to-styles($config, text-compact-strong);
235
+ }
236
+
237
+ .kbq-caps-big {
238
+ @include kbq-typography-level-to-styles($config, caps-big);
239
+ }
240
+
241
+ .kbq-caps-big-strong {
242
+ @include kbq-typography-level-to-styles($config, caps-big-strong);
243
+ }
244
+
245
+ .kbq-caps-normal {
246
+ @include kbq-typography-level-to-styles($config, caps-normal);
247
+ }
248
+
249
+ .kbq-caps-normal-strong {
250
+ @include kbq-typography-level-to-styles($config, caps-normal-strong);
251
+ }
252
+
253
+ .kbq-caps-compact {
254
+ @include kbq-typography-level-to-styles($config, caps-compact);
255
+ }
256
+
257
+ .kbq-caps-compact-strong {
258
+ @include kbq-typography-level-to-styles($config, caps-compact-strong);
259
+ }
260
+
261
+ .kbq-mono-big {
262
+ @include kbq-typography-level-to-styles($config, mono-big);
263
+ }
264
+
265
+ .kbq-mono-big-strong {
266
+ @include kbq-typography-level-to-styles($config, mono-big-strong);
267
+ }
268
+
269
+ .kbq-mono-normal {
270
+ @include kbq-typography-level-to-styles($config, mono-normal);
271
+ }
272
+
273
+ .kbq-mono-normal-strong {
274
+ @include kbq-typography-level-to-styles($config, mono-normal-strong);
275
+ }
276
+
277
+ .kbq-mono-compact {
278
+ @include kbq-typography-level-to-styles($config, mono-compact);
279
+ }
280
+
281
+ .kbq-mono-compact-strong {
282
+ @include kbq-typography-level-to-styles($config, mono-compact-strong);
283
+ }
284
+
285
+ .kbq-tabular-big {
286
+ @include kbq-typography-level-to-styles($config, tabular-big);
287
+ }
288
+
289
+ .kbq-tabular-big-strong {
290
+ @include kbq-typography-level-to-styles($config, tabular-big-strong);
291
+ }
292
+
293
+ .kbq-tabular-normal {
294
+ @include kbq-typography-level-to-styles($config, tabular-normal);
295
+ }
296
+
297
+ .kbq-tabular-normal-strong {
298
+ @include kbq-typography-level-to-styles($config, tabular-normal-strong);
299
+ }
300
+
301
+ .kbq-tabular-compact {
302
+ @include kbq-typography-level-to-styles($config, tabular-compact);
303
+ }
304
+
305
+ .kbq-tabular-compact-strong {
306
+ @include kbq-typography-level-to-styles($config, tabular-compact-strong);
307
+ }
308
+
309
+ .kbq-italic-big {
310
+ @include kbq-typography-level-to-styles($config, italic-big);
311
+ }
312
+
313
+ .kbq-italic-big-strong {
314
+ @include kbq-typography-level-to-styles($config, italic-big-strong);
315
+ }
316
+
317
+ .kbq-italic-normal {
318
+ @include kbq-typography-level-to-styles($config, italic-normal);
319
+ }
320
+
321
+ .kbq-italic-normal-strong {
322
+ @include kbq-typography-level-to-styles($config, italic-normal-strong);
323
+ }
324
+
325
+ .kbq-italic-compact {
326
+ @include kbq-typography-level-to-styles($config, italic-compact);
327
+ }
328
+
329
+ .kbq-italic-compact-strong {
330
+ @include kbq-typography-level-to-styles($config, italic-compact-strong);
331
+ }
162
332
  }
163
333
 
164
334
  @mixin kbq-markdown-base-typography($config) {
@@ -1,7 +1,6 @@
1
1
  @use 'sass:meta';
2
2
  @use 'sass:map';
3
3
 
4
- @use '../core/styles/common/popup';
5
4
  @use '../core/styles/theming/theming';
6
5
  @use '../core/styles/typography/typography-utils' as *;
7
6
 
@@ -10,77 +9,68 @@ $kbq-datepicker-selected-fade-amount: 0.6;
10
9
  $kbq-datepicker-today-fade-amount: 0.2;
11
10
 
12
11
  @mixin kbq-datepicker-theme($theme) {
13
- $foreground: map.get($theme, foreground);
14
- $background: map.get($theme, background);
15
-
16
- $primary: map.get($theme, theme);
17
- $secondary: map.get($theme, secondary);
18
-
19
12
  $datepicker: map.get(map.get($theme, components), datepicker);
20
13
 
21
- .kbq-calendar__table-header {
22
- color: theming.kbq-color($secondary, 60);
23
- }
14
+ $container: map.get($datepicker, container);
15
+ $header: map.get($datepicker, header);
16
+ $cell: map.get($datepicker, cell);
24
17
 
25
- .kbq-datepicker-toggle__button.kbq-button-icon {
26
- border-color: transparent;
27
- border-radius: 0;
28
- background: transparent;
29
- opacity: 1;
18
+ .kbq-datepicker__content {
19
+ background: map.get($container, background);
20
+ box-shadow: map.get($container, box-shadow);
21
+ }
30
22
 
31
- .kbq-icon {
32
- color: theming.kbq-color($foreground, icon);
33
- }
23
+ .kbq-calendar__table-header {
24
+ color: map.get($header, text);
34
25
  }
35
26
 
36
27
  .kbq-calendar__table-header-divider::after {
37
- background: map.get($foreground, divider);
28
+ background: map.get($header, divider);
38
29
  }
39
30
 
40
31
  .kbq-calendar__body-cell-content {
41
- color: map.get($foreground, text);
42
- border-color: transparent;
43
- }
32
+ $default: map.get($cell, default);
44
33
 
45
- .kbq-calendar__body_disabled > .kbq-calendar__body-cell-content:not(.kbq-selected) {
46
- color: map.get($foreground, text-disabled);
47
- }
34
+ background: map.get($default, background);
35
+ color: map.get($default, text);
48
36
 
49
- .cdk-keyboard-focused .kbq-calendar__body_active,
50
- .cdk-program-focused .kbq-calendar__body_active {
51
- & > .kbq-calendar__body-cell-content {
52
- border-color: map.get(map.get($theme, states), focused-color);
53
- box-shadow: 0 0 0 1px map.get(map.get($theme, states), focused-color);
37
+ &.kbq-calendar__body-today {
38
+ $today: map.get($cell, today);
39
+
40
+ background: map.get($today, background);
41
+ color: map.get($today, text);
54
42
  }
55
- }
56
43
 
57
- .kbq-calendar__body-cell:not(.kbq-calendar__body_disabled):hover {
58
- & > .kbq-calendar__body-cell-content:not(.kbq-selected) {
59
- background-color: theming.kbq-color($secondary, A8);
44
+ &:hover:not(.kbq-disabled) {
45
+ $hover: map.get($cell, hover);
46
+
47
+ background: map.get($hover, background);
60
48
  }
61
- }
62
49
 
63
- .kbq-calendar__body-today {
64
- color: map.get($datepicker, state-selected-today-color);
65
- }
50
+ &:active:not(.kbq-disabled) {
51
+ $active: map.get($cell, active);
66
52
 
67
- .kbq-calendar__body_disabled > .kbq-calendar__body-today:not(.kbq-selected) {
68
- border-color: map.get($background, background-disabled);
69
- }
53
+ background: map.get($active, background);
54
+ }
70
55
 
71
- .kbq-calendar__body-cell-content.kbq-selected {
72
- background: map.get($datepicker, state-selected-background);
73
- color: map.get($datepicker, state-selected-color);
74
- }
56
+ &.kbq-selected:not(.kbq-disabled) {
57
+ $selected: map.get($cell, selected);
75
58
 
76
- .kbq-calendar__body_disabled > .kbq-selected {
77
- background-color: map.get($datepicker, state-selected-background);
78
- }
59
+ background: map.get($selected, background);
60
+ color: map.get($selected, text);
79
61
 
80
- .kbq-datepicker__content {
81
- @include popup.popup-params($theme);
62
+ &:hover {
63
+ $selected-hover: map.get($cell, selected-hover);
82
64
 
83
- color: map.get($foreground, text);
65
+ background: map.get($selected-hover, background);
66
+ }
67
+ }
68
+
69
+ &.kbq-disabled {
70
+ $disabled: map.get($cell, disabled);
71
+
72
+ background: map.get($disabled, background);
73
+ }
84
74
  }
85
75
  }
86
76
 
@@ -88,14 +78,10 @@ $kbq-datepicker-today-fade-amount: 0.2;
88
78
  $tokens: map.get($config, tokens);
89
79
 
90
80
  .kbq-calendar {
91
- @include kbq-typography-level-to-styles($config, map.get($tokens, datepicker-calendar-font-default));
81
+ @include kbq-typography-level-to-styles($config, map.get($tokens, datepicker-font-text));
92
82
  }
93
83
 
94
84
  .kbq-calendar__table-header th {
95
- @include kbq-typography-level-to-styles($config, map.get($tokens, datepicker-calendar-font-header));
96
- }
97
-
98
- .kbq-calendar__body-today {
99
- @include kbq-typography-level-to-styles($config, map.get($tokens, datepicker-body-font-today));
85
+ @include kbq-typography-level-to-styles($config, map.get($tokens, datepicker-font-text));
100
86
  }
101
87
  }