@alfalab/core-components-select 19.1.0 → 19.1.1-alfasans

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 (345) hide show
  1. package/Component.responsive.d.ts +1 -1
  2. package/Component.responsive.js.map +1 -1
  3. package/components/arrow/index.css +4 -4
  4. package/components/arrow/index.module.css.js +1 -1
  5. package/components/arrow/index.module.css.js.map +1 -1
  6. package/components/base-checkmark/index.css +12 -12
  7. package/components/base-checkmark/index.module.css.js +1 -1
  8. package/components/base-checkmark/index.module.css.js.map +1 -1
  9. package/components/base-option/index.css +19 -17
  10. package/components/base-option/index.module.css.js +1 -1
  11. package/components/base-option/index.module.css.js.map +1 -1
  12. package/components/base-select/Component.d.ts +5 -5
  13. package/components/base-select/Component.js.map +1 -1
  14. package/components/base-select/index.css +11 -11
  15. package/components/base-select/index.module.css.js +1 -1
  16. package/components/base-select/index.module.css.js.map +1 -1
  17. package/components/base-select/mobile.css +11 -11
  18. package/components/base-select/mobile.module.css.js +1 -1
  19. package/components/base-select/mobile.module.css.js.map +1 -1
  20. package/components/base-select/types/component-types.d.ts +4 -4
  21. package/components/checkmark/index.css +11 -11
  22. package/components/checkmark/index.module.css.js +1 -1
  23. package/components/checkmark/index.module.css.js.map +1 -1
  24. package/components/checkmark-mobile/index.css +6 -6
  25. package/components/checkmark-mobile/index.module.css.js +1 -1
  26. package/components/checkmark-mobile/index.module.css.js.map +1 -1
  27. package/components/clear-button/index.css +4 -4
  28. package/components/clear-button/index.module.css.js +1 -1
  29. package/components/field/Component.d.ts +1 -1
  30. package/components/field/index.css +22 -18
  31. package/components/field/index.module.css.js +1 -1
  32. package/components/field/index.module.css.js.map +1 -1
  33. package/components/footer/Component.d.ts +1 -1
  34. package/components/footer/index.css +4 -4
  35. package/components/footer/index.module.css.js +1 -1
  36. package/components/footer/index.module.css.js.map +1 -1
  37. package/components/native-select/Component.d.ts +1 -1
  38. package/components/optgroup/index.css +8 -7
  39. package/components/optgroup/index.module.css.js +1 -1
  40. package/components/optgroup/index.module.css.js.map +1 -1
  41. package/components/option/Component.d.ts +1 -2
  42. package/components/option/desktop/index.css +24 -22
  43. package/components/option/desktop/index.module.css.js +1 -1
  44. package/components/option/desktop/index.module.css.js.map +1 -1
  45. package/components/option/mobile/index.css +21 -19
  46. package/components/option/mobile/index.module.css.js +1 -1
  47. package/components/option/mobile/index.module.css.js.map +1 -1
  48. package/components/options-list/Component.d.ts +25 -25
  49. package/components/options-list/Component.js +3 -3
  50. package/components/options-list/Component.js.map +1 -1
  51. package/components/options-list/index.css +13 -13
  52. package/components/options-list/index.module.css.js +1 -1
  53. package/components/options-list/index.module.css.js.map +1 -1
  54. package/components/search/Component.js.map +1 -1
  55. package/components/search/index.css +1 -1
  56. package/components/search/index.module.css.js +1 -1
  57. package/components/search/index.module.css.js.map +1 -1
  58. package/components/virtual-options-list/Component.d.ts +25 -25
  59. package/components/virtual-options-list/Component.js.map +1 -1
  60. package/components/virtual-options-list/index.css +13 -13
  61. package/components/virtual-options-list/index.module.css.js +1 -1
  62. package/components/virtual-options-list/index.module.css.js.map +1 -1
  63. package/cssm/Component.responsive.d.ts +1 -1
  64. package/cssm/Component.responsive.js.map +1 -1
  65. package/cssm/components/base-option/index.module.css +5 -3
  66. package/cssm/components/base-select/Component.d.ts +5 -5
  67. package/cssm/components/base-select/Component.js.map +1 -1
  68. package/cssm/components/base-select/types/component-types.d.ts +4 -4
  69. package/cssm/components/field/Component.d.ts +1 -1
  70. package/cssm/components/field/index.module.css +9 -5
  71. package/cssm/components/footer/Component.d.ts +1 -1
  72. package/cssm/components/native-select/Component.d.ts +1 -1
  73. package/cssm/components/optgroup/index.module.css +4 -3
  74. package/cssm/components/option/Component.d.ts +1 -2
  75. package/cssm/components/option/desktop/index.module.css +5 -3
  76. package/cssm/components/option/mobile/index.module.css +5 -3
  77. package/cssm/components/options-list/Component.d.ts +25 -25
  78. package/cssm/components/options-list/Component.js +3 -3
  79. package/cssm/components/options-list/Component.js.map +1 -1
  80. package/cssm/components/search/Component.js.map +1 -1
  81. package/cssm/components/virtual-options-list/Component.d.ts +25 -25
  82. package/cssm/components/virtual-options-list/Component.js.map +1 -1
  83. package/cssm/desktop/Component.desktop.d.ts +1 -1
  84. package/cssm/hooks/use-native-scrollbar.d.ts +1 -1
  85. package/cssm/hooks/use-native-scrollbar.js.map +1 -1
  86. package/cssm/presets/useLazyLoading/hook.d.ts +2 -2
  87. package/cssm/presets/useLazyLoading/hook.js.map +1 -1
  88. package/cssm/presets/useSelectWithApply/hook.d.ts +97 -131
  89. package/cssm/presets/useSelectWithApply/hook.js.map +1 -1
  90. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +36 -69
  91. package/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js.map +1 -1
  92. package/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +1 -1
  93. package/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +1 -1
  94. package/cssm/presets/useSelectWithLoading/hook.d.ts +1 -1
  95. package/cssm/typings.d.ts +21 -21
  96. package/cssm/utils.d.ts +4 -4
  97. package/cssm/utils.js.map +1 -1
  98. package/desktop/Component.desktop.d.ts +1 -1
  99. package/esm/Component.responsive.d.ts +1 -1
  100. package/esm/Component.responsive.js.map +1 -1
  101. package/esm/components/arrow/index.css +4 -4
  102. package/esm/components/arrow/index.module.css.js +1 -1
  103. package/esm/components/arrow/index.module.css.js.map +1 -1
  104. package/esm/components/base-checkmark/index.css +12 -12
  105. package/esm/components/base-checkmark/index.module.css.js +1 -1
  106. package/esm/components/base-checkmark/index.module.css.js.map +1 -1
  107. package/esm/components/base-option/index.css +19 -17
  108. package/esm/components/base-option/index.module.css.js +1 -1
  109. package/esm/components/base-option/index.module.css.js.map +1 -1
  110. package/esm/components/base-select/Component.d.ts +5 -5
  111. package/esm/components/base-select/Component.js.map +1 -1
  112. package/esm/components/base-select/index.css +11 -11
  113. package/esm/components/base-select/index.module.css.js +1 -1
  114. package/esm/components/base-select/index.module.css.js.map +1 -1
  115. package/esm/components/base-select/mobile.css +11 -11
  116. package/esm/components/base-select/mobile.module.css.js +1 -1
  117. package/esm/components/base-select/mobile.module.css.js.map +1 -1
  118. package/esm/components/base-select/types/component-types.d.ts +4 -4
  119. package/esm/components/checkmark/index.css +11 -11
  120. package/esm/components/checkmark/index.module.css.js +1 -1
  121. package/esm/components/checkmark/index.module.css.js.map +1 -1
  122. package/esm/components/checkmark-mobile/index.css +6 -6
  123. package/esm/components/checkmark-mobile/index.module.css.js +1 -1
  124. package/esm/components/checkmark-mobile/index.module.css.js.map +1 -1
  125. package/esm/components/clear-button/index.css +4 -4
  126. package/esm/components/clear-button/index.module.css.js +1 -1
  127. package/esm/components/field/Component.d.ts +1 -1
  128. package/esm/components/field/index.css +22 -18
  129. package/esm/components/field/index.module.css.js +1 -1
  130. package/esm/components/field/index.module.css.js.map +1 -1
  131. package/esm/components/footer/Component.d.ts +1 -1
  132. package/esm/components/footer/index.css +4 -4
  133. package/esm/components/footer/index.module.css.js +1 -1
  134. package/esm/components/footer/index.module.css.js.map +1 -1
  135. package/esm/components/native-select/Component.d.ts +1 -1
  136. package/esm/components/optgroup/index.css +8 -7
  137. package/esm/components/optgroup/index.module.css.js +1 -1
  138. package/esm/components/optgroup/index.module.css.js.map +1 -1
  139. package/esm/components/option/Component.d.ts +1 -2
  140. package/esm/components/option/desktop/index.css +24 -22
  141. package/esm/components/option/desktop/index.module.css.js +1 -1
  142. package/esm/components/option/desktop/index.module.css.js.map +1 -1
  143. package/esm/components/option/mobile/index.css +21 -19
  144. package/esm/components/option/mobile/index.module.css.js +1 -1
  145. package/esm/components/option/mobile/index.module.css.js.map +1 -1
  146. package/esm/components/options-list/Component.d.ts +25 -25
  147. package/esm/components/options-list/Component.js +3 -3
  148. package/esm/components/options-list/Component.js.map +1 -1
  149. package/esm/components/options-list/index.css +13 -13
  150. package/esm/components/options-list/index.module.css.js +1 -1
  151. package/esm/components/options-list/index.module.css.js.map +1 -1
  152. package/esm/components/search/Component.js.map +1 -1
  153. package/esm/components/search/index.css +1 -1
  154. package/esm/components/search/index.module.css.js +1 -1
  155. package/esm/components/search/index.module.css.js.map +1 -1
  156. package/esm/components/virtual-options-list/Component.d.ts +25 -25
  157. package/esm/components/virtual-options-list/Component.js.map +1 -1
  158. package/esm/components/virtual-options-list/index.css +13 -13
  159. package/esm/components/virtual-options-list/index.module.css.js +1 -1
  160. package/esm/components/virtual-options-list/index.module.css.js.map +1 -1
  161. package/esm/desktop/Component.desktop.d.ts +1 -1
  162. package/esm/hooks/use-native-scrollbar.d.ts +1 -1
  163. package/esm/hooks/use-native-scrollbar.js.map +1 -1
  164. package/esm/presets/useLazyLoading/hook.d.ts +2 -2
  165. package/esm/presets/useLazyLoading/hook.js.map +1 -1
  166. package/esm/presets/useSelectWithApply/hook.d.ts +97 -131
  167. package/esm/presets/useSelectWithApply/hook.js.map +1 -1
  168. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +36 -69
  169. package/esm/presets/useSelectWithApply/options-list-with-apply/Component.js.map +1 -1
  170. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +1 -1
  171. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  172. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  173. package/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js.map +1 -1
  174. package/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +1 -1
  175. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  176. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  177. package/esm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js.map +1 -1
  178. package/esm/presets/useSelectWithLoading/hook.d.ts +1 -1
  179. package/esm/presets/useSelectWithLoading/index.css +1 -1
  180. package/esm/presets/useSelectWithLoading/index.module.css.js +1 -1
  181. package/esm/typings.d.ts +21 -21
  182. package/esm/utils.d.ts +4 -4
  183. package/esm/utils.js.map +1 -1
  184. package/hooks/use-native-scrollbar.d.ts +1 -1
  185. package/hooks/use-native-scrollbar.js.map +1 -1
  186. package/modern/Component.responsive.d.ts +1 -1
  187. package/modern/Component.responsive.js.map +1 -1
  188. package/modern/components/arrow/index.css +4 -4
  189. package/modern/components/arrow/index.module.css.js +1 -1
  190. package/modern/components/arrow/index.module.css.js.map +1 -1
  191. package/modern/components/base-checkmark/index.css +12 -12
  192. package/modern/components/base-checkmark/index.module.css.js +1 -1
  193. package/modern/components/base-checkmark/index.module.css.js.map +1 -1
  194. package/modern/components/base-option/index.css +19 -17
  195. package/modern/components/base-option/index.module.css.js +1 -1
  196. package/modern/components/base-option/index.module.css.js.map +1 -1
  197. package/modern/components/base-select/Component.d.ts +5 -5
  198. package/modern/components/base-select/Component.js.map +1 -1
  199. package/modern/components/base-select/index.css +11 -11
  200. package/modern/components/base-select/index.module.css.js +1 -1
  201. package/modern/components/base-select/index.module.css.js.map +1 -1
  202. package/modern/components/base-select/mobile.css +11 -11
  203. package/modern/components/base-select/mobile.module.css.js +1 -1
  204. package/modern/components/base-select/mobile.module.css.js.map +1 -1
  205. package/modern/components/base-select/types/component-types.d.ts +4 -4
  206. package/modern/components/checkmark/index.css +11 -11
  207. package/modern/components/checkmark/index.module.css.js +1 -1
  208. package/modern/components/checkmark/index.module.css.js.map +1 -1
  209. package/modern/components/checkmark-mobile/index.css +6 -6
  210. package/modern/components/checkmark-mobile/index.module.css.js +1 -1
  211. package/modern/components/checkmark-mobile/index.module.css.js.map +1 -1
  212. package/modern/components/clear-button/index.css +4 -4
  213. package/modern/components/clear-button/index.module.css.js +1 -1
  214. package/modern/components/field/Component.d.ts +1 -1
  215. package/modern/components/field/index.css +22 -18
  216. package/modern/components/field/index.module.css.js +1 -1
  217. package/modern/components/field/index.module.css.js.map +1 -1
  218. package/modern/components/footer/Component.d.ts +1 -1
  219. package/modern/components/footer/index.css +4 -4
  220. package/modern/components/footer/index.module.css.js +1 -1
  221. package/modern/components/footer/index.module.css.js.map +1 -1
  222. package/modern/components/native-select/Component.d.ts +1 -1
  223. package/modern/components/optgroup/index.css +8 -7
  224. package/modern/components/optgroup/index.module.css.js +1 -1
  225. package/modern/components/optgroup/index.module.css.js.map +1 -1
  226. package/modern/components/option/Component.d.ts +1 -2
  227. package/modern/components/option/desktop/index.css +24 -22
  228. package/modern/components/option/desktop/index.module.css.js +1 -1
  229. package/modern/components/option/desktop/index.module.css.js.map +1 -1
  230. package/modern/components/option/mobile/index.css +21 -19
  231. package/modern/components/option/mobile/index.module.css.js +1 -1
  232. package/modern/components/option/mobile/index.module.css.js.map +1 -1
  233. package/modern/components/options-list/Component.d.ts +25 -25
  234. package/modern/components/options-list/Component.js +3 -3
  235. package/modern/components/options-list/Component.js.map +1 -1
  236. package/modern/components/options-list/index.css +13 -13
  237. package/modern/components/options-list/index.module.css.js +1 -1
  238. package/modern/components/options-list/index.module.css.js.map +1 -1
  239. package/modern/components/search/Component.js.map +1 -1
  240. package/modern/components/search/index.css +1 -1
  241. package/modern/components/search/index.module.css.js +1 -1
  242. package/modern/components/search/index.module.css.js.map +1 -1
  243. package/modern/components/virtual-options-list/Component.d.ts +25 -25
  244. package/modern/components/virtual-options-list/Component.js.map +1 -1
  245. package/modern/components/virtual-options-list/index.css +13 -13
  246. package/modern/components/virtual-options-list/index.module.css.js +1 -1
  247. package/modern/components/virtual-options-list/index.module.css.js.map +1 -1
  248. package/modern/desktop/Component.desktop.d.ts +1 -1
  249. package/modern/hooks/use-native-scrollbar.d.ts +1 -1
  250. package/modern/hooks/use-native-scrollbar.js.map +1 -1
  251. package/modern/presets/useLazyLoading/hook.d.ts +2 -2
  252. package/modern/presets/useLazyLoading/hook.js.map +1 -1
  253. package/modern/presets/useSelectWithApply/hook.d.ts +97 -131
  254. package/modern/presets/useSelectWithApply/hook.js.map +1 -1
  255. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +36 -69
  256. package/modern/presets/useSelectWithApply/options-list-with-apply/Component.js.map +1 -1
  257. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +1 -1
  258. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  259. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  260. package/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js.map +1 -1
  261. package/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +1 -1
  262. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  263. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  264. package/modern/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js.map +1 -1
  265. package/modern/presets/useSelectWithLoading/hook.d.ts +1 -1
  266. package/modern/presets/useSelectWithLoading/index.css +1 -1
  267. package/modern/presets/useSelectWithLoading/index.module.css.js +1 -1
  268. package/modern/typings.d.ts +21 -21
  269. package/modern/utils.d.ts +4 -4
  270. package/modern/utils.js.map +1 -1
  271. package/moderncssm/Component.responsive.d.ts +1 -1
  272. package/moderncssm/Component.responsive.js.map +1 -1
  273. package/moderncssm/components/base-option/index.module.css +2 -1
  274. package/moderncssm/components/base-select/Component.d.ts +5 -5
  275. package/moderncssm/components/base-select/Component.js.map +1 -1
  276. package/moderncssm/components/base-select/types/component-types.d.ts +4 -4
  277. package/moderncssm/components/field/Component.d.ts +1 -1
  278. package/moderncssm/components/field/index.module.css +6 -3
  279. package/moderncssm/components/footer/Component.d.ts +1 -1
  280. package/moderncssm/components/native-select/Component.d.ts +1 -1
  281. package/moderncssm/components/optgroup/index.module.css +1 -1
  282. package/moderncssm/components/option/Component.d.ts +1 -2
  283. package/moderncssm/components/option/desktop/index.module.css +2 -1
  284. package/moderncssm/components/option/mobile/index.module.css +2 -1
  285. package/moderncssm/components/options-list/Component.d.ts +25 -25
  286. package/moderncssm/components/options-list/Component.js +3 -3
  287. package/moderncssm/components/options-list/Component.js.map +1 -1
  288. package/moderncssm/components/search/Component.js.map +1 -1
  289. package/moderncssm/components/virtual-options-list/Component.d.ts +25 -25
  290. package/moderncssm/components/virtual-options-list/Component.js.map +1 -1
  291. package/moderncssm/desktop/Component.desktop.d.ts +1 -1
  292. package/moderncssm/hooks/use-native-scrollbar.d.ts +1 -1
  293. package/moderncssm/hooks/use-native-scrollbar.js.map +1 -1
  294. package/moderncssm/presets/useLazyLoading/hook.d.ts +2 -2
  295. package/moderncssm/presets/useLazyLoading/hook.js.map +1 -1
  296. package/moderncssm/presets/useSelectWithApply/hook.d.ts +97 -131
  297. package/moderncssm/presets/useSelectWithApply/hook.js.map +1 -1
  298. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +36 -69
  299. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js.map +1 -1
  300. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +1 -1
  301. package/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +1 -1
  302. package/moderncssm/presets/useSelectWithLoading/hook.d.ts +1 -1
  303. package/moderncssm/typings.d.ts +21 -21
  304. package/moderncssm/utils.d.ts +4 -4
  305. package/moderncssm/utils.js.map +1 -1
  306. package/package.json +15 -15
  307. package/presets/useLazyLoading/hook.d.ts +2 -2
  308. package/presets/useLazyLoading/hook.js.map +1 -1
  309. package/presets/useSelectWithApply/hook.d.ts +97 -130
  310. package/presets/useSelectWithApply/hook.js.map +1 -1
  311. package/presets/useSelectWithApply/options-list-with-apply/Component.d.ts +36 -69
  312. package/presets/useSelectWithApply/options-list-with-apply/Component.js.map +1 -1
  313. package/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +1 -1
  314. package/presets/useSelectWithApply/options-list-with-apply/footer/index.css +3 -3
  315. package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js +1 -1
  316. package/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css.js.map +1 -1
  317. package/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +1 -1
  318. package/presets/useSelectWithApply/options-list-with-apply/header/index.css +4 -4
  319. package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js +1 -1
  320. package/presets/useSelectWithApply/options-list-with-apply/header/index.module.css.js.map +1 -1
  321. package/presets/useSelectWithLoading/hook.d.ts +1 -1
  322. package/presets/useSelectWithLoading/index.css +1 -1
  323. package/presets/useSelectWithLoading/index.module.css.js +1 -1
  324. package/src/components/arrow/index.module.css +1 -1
  325. package/src/components/base-checkmark/index.module.css +1 -1
  326. package/src/components/base-option/index.module.css +1 -1
  327. package/src/components/base-select/index.module.css +1 -1
  328. package/src/components/base-select/mobile.module.css +1 -1
  329. package/src/components/checkmark/index.module.css +1 -1
  330. package/src/components/checkmark-mobile/index.module.css +1 -1
  331. package/src/components/field/index.module.css +1 -1
  332. package/src/components/footer/index.module.css +1 -1
  333. package/src/components/optgroup/index.module.css +1 -1
  334. package/src/components/option/desktop/index.module.css +1 -1
  335. package/src/components/option/index.module.css +1 -1
  336. package/src/components/option/mobile/index.module.css +1 -1
  337. package/src/components/options-list/Component.tsx +3 -3
  338. package/src/components/options-list/index.module.css +1 -1
  339. package/src/components/search/index.module.css +1 -1
  340. package/src/components/virtual-options-list/index.module.css +1 -1
  341. package/src/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +1 -1
  342. package/src/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +1 -1
  343. package/typings.d.ts +21 -21
  344. package/utils.d.ts +4 -4
  345. package/utils.js.map +1 -1
@@ -4,8 +4,9 @@
4
4
  --color-light-text-tertiary: rgba(5, 8, 29, 0.38);
5
5
  }
6
6
  :root {
7
- --font-family-system:
8
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
7
+ --font-family-alfasans:
8
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
9
+ Helvetica, sans-serif;
9
10
  }
10
11
  :root {
11
12
  --focus-color: var(--color-light-status-info);
@@ -18,60 +19,63 @@
18
19
  :root {
19
20
  --select-arrow-hover-opacity: 0.7;
20
21
  }
21
- .select__component_1ir9n {
22
+ .select__component_1xfb3 {
22
23
  width: 100%;
23
24
  outline: none;
24
25
  }
25
- .select__field_1ir9n:not(.select__disabled_1ir9n) {
26
+ .select__field_1xfb3:not(.select__disabled_1xfb3) {
26
27
  cursor: pointer;
27
28
  }
28
- .select__field_1ir9n:not(.select__disabled_1ir9n):hover .select__arrow_1ir9n {
29
+ .select__field_1xfb3:not(.select__disabled_1xfb3):hover .select__arrow_1xfb3 {
29
30
  opacity: var(--select-arrow-hover-opacity);
30
31
  }
31
- .select__disabled_1ir9n {
32
+ .select__disabled_1xfb3 {
32
33
  cursor: var(--disabled-cursor);
33
34
  }
34
- .select__placeholder_1ir9n {
35
+ .select__placeholder_1xfb3 {
35
36
  color: var(--input-placeholder-color);
36
37
  transition: color 0.2s ease;
37
- animation: select__show-placeholder_1ir9n 0.2s ease;
38
+ animation: select__show-placeholder_1xfb3 0.2s ease;
38
39
  }
39
- .select__placeholder_1ir9n.select__focused_1ir9n {
40
+ .select__placeholder_1xfb3.select__focused_1xfb3 {
40
41
  color: var(--input-focus-placeholder-color);
41
42
  }
42
- .select__contentWrapper_1ir9n {
43
+ .select__contentWrapper_1xfb3 {
43
44
  font-size: 16px;
44
45
  line-height: 20px;
45
46
  font-weight: 400;
46
- font-family: var(--font-family-system);
47
+ letter-spacing: -0.24px;
48
+ font-family: var(--font-family-alfasans);
47
49
 
48
50
  white-space: nowrap;
49
51
  text-overflow: ellipsis;
50
52
  overflow: hidden;
51
53
  width: 100%;
52
54
  }
53
- .select__contentWrapper_1ir9n.select__size-40_1ir9n {
55
+ .select__contentWrapper_1xfb3.select__size-40_1xfb3 {
54
56
  font-size: 14px;
55
57
  line-height: 18px;
56
58
  font-weight: 400;
57
- font-family: var(--font-family-system);
59
+ letter-spacing: -0.08px;
60
+ font-family: var(--font-family-alfasans);
58
61
  }
59
- .select__value_1ir9n {
62
+ .select__value_1xfb3 {
60
63
  overflow: hidden;
61
64
  text-overflow: ellipsis;
62
65
  text-align: left;
63
66
  }
64
- .select__value_1ir9n.select__size-40_1ir9n {
67
+ .select__value_1xfb3.select__size-40_1xfb3 {
65
68
  font-size: 14px;
66
69
  line-height: 18px;
67
70
  font-weight: 400;
68
- font-family: var(--font-family-system);
71
+ letter-spacing: -0.08px;
72
+ font-family: var(--font-family-alfasans);
69
73
  }
70
- .select__focusVisible_1ir9n {
74
+ .select__focusVisible_1xfb3 {
71
75
  outline: 2px solid var(--focus-color);
72
76
  outline-offset: 2px;
73
77
  }
74
- @keyframes select__show-placeholder_1ir9n {
78
+ @keyframes select__show-placeholder_1xfb3 {
75
79
  from {
76
80
  opacity: 0;
77
81
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"component":"select__component_1ir9n","field":"select__field_1ir9n","disabled":"select__disabled_1ir9n","arrow":"select__arrow_1ir9n","placeholder":"select__placeholder_1ir9n","show-placeholder":"select__show-placeholder_1ir9n","focused":"select__focused_1ir9n","contentWrapper":"select__contentWrapper_1ir9n","size-40":"select__size-40_1ir9n","value":"select__value_1ir9n","focusVisible":"select__focusVisible_1ir9n"};
3
+ const styles = {"component":"select__component_1xfb3","field":"select__field_1xfb3","disabled":"select__disabled_1xfb3","arrow":"select__arrow_1xfb3","placeholder":"select__placeholder_1xfb3","show-placeholder":"select__show-placeholder_1xfb3","focused":"select__focused_1xfb3","contentWrapper":"select__contentWrapper_1xfb3","size-40":"select__size-40_1xfb3","value":"select__value_1xfb3","focusVisible":"select__focusVisible_1xfb3"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../../../input/src/vars.css';\n@import '../../vars.css';\n\n.component {\n width: 100%;\n outline: none;\n}\n\n.field:not(.disabled) {\n cursor: pointer;\n\n &:hover {\n & .arrow {\n opacity: var(--select-arrow-hover-opacity);\n }\n }\n}\n\n.disabled {\n cursor: var(--disabled-cursor);\n}\n\n.placeholder {\n color: var(--input-placeholder-color);\n transition: color 0.2s ease;\n animation: show-placeholder 0.2s ease;\n\n &.focused {\n color: var(--input-focus-placeholder-color);\n }\n}\n\n.contentWrapper {\n @mixin paragraph_component;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 100%;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n }\n}\n\n.value {\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: left;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n }\n}\n\n.focusVisible {\n @mixin focus-outline;\n}\n\n@keyframes show-placeholder {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,yBAAyB,CAAC,OAAO,CAAC,qBAAqB,CAAC,UAAU,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAAC,aAAa,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,SAAS,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,qBAAqB,CAAC,cAAc,CAAC,4BAA4B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/field/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../../../input/src/vars.css';\n@import '../../vars.css';\n\n.component {\n width: 100%;\n outline: none;\n}\n\n.field:not(.disabled) {\n cursor: pointer;\n\n &:hover {\n & .arrow {\n opacity: var(--select-arrow-hover-opacity);\n }\n }\n}\n\n.disabled {\n cursor: var(--disabled-cursor);\n}\n\n.placeholder {\n color: var(--input-placeholder-color);\n transition: color 0.2s ease;\n animation: show-placeholder 0.2s ease;\n\n &.focused {\n color: var(--input-focus-placeholder-color);\n }\n}\n\n.contentWrapper {\n @mixin paragraph_component;\n\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 100%;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n }\n}\n\n.value {\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: left;\n\n &.size-40 {\n @mixin paragraph_component_secondary;\n }\n}\n\n.focusVisible {\n @mixin focus-outline;\n}\n\n@keyframes show-placeholder {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,WAAW,CAAC,yBAAyB,CAAC,OAAO,CAAC,qBAAqB,CAAC,UAAU,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAAC,aAAa,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,SAAS,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,qBAAqB,CAAC,cAAc,CAAC,4BAA4B,CAAC;;;;"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type FooterProps = {
2
+ export type FooterProps = {
3
3
  handleClear?: () => void;
4
4
  handleApply?: () => void;
5
5
  showClear?: boolean;
@@ -6,20 +6,20 @@
6
6
  --gap-m: 16px;
7
7
  --gap-16: var(--gap-m);
8
8
  }
9
- .select__footer_72tfz {
9
+ .select__footer_ribch {
10
10
  display: flex;
11
11
  box-sizing: border-box;
12
12
  width: 100%;
13
13
  padding: var(--gap-16) var(--gap-16);
14
14
  background-color: var(--color-light-modal-bg-primary);
15
15
  }
16
- .select__footer_72tfz .select__button_72tfz:first-of-type {
16
+ .select__footer_ribch .select__button_ribch:first-of-type {
17
17
  margin-right: var(--gap-16);
18
18
  }
19
- .select__button_72tfz {
19
+ .select__button_ribch {
20
20
  width: 50%;
21
21
  }
22
- .select__highlighted_72tfz {
22
+ .select__highlighted_ribch {
23
23
  border-top: 1px solid var(--color-light-neutral-300);
24
24
  background-color: var(--color-light-modal-bg-primary);
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"footer":"select__footer_72tfz","button":"select__button_72tfz","highlighted":"select__highlighted_72tfz"};
3
+ const styles = {"footer":"select__footer_ribch","button":"select__button_ribch","highlighted":"select__highlighted_ribch"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../vars.css';\n\n.footer {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n padding: var(--gap-16) var(--gap-16);\n background-color: var(--color-light-modal-bg-primary);\n\n & .button:first-of-type {\n margin-right: var(--gap-16);\n }\n}\n\n.button {\n width: 50%;\n}\n\n.highlighted {\n border-top: 1px solid var(--color-light-neutral-300);\n background-color: var(--color-light-modal-bg-primary);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/footer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../vars.css';\n\n.footer {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n padding: var(--gap-16) var(--gap-16);\n background-color: var(--color-light-modal-bg-primary);\n\n & .button:first-of-type {\n margin-right: var(--gap-16);\n }\n}\n\n.button {\n width: 50%;\n}\n\n.highlighted {\n border-top: 1px solid var(--color-light-neutral-300);\n background-color: var(--color-light-modal-bg-primary);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  import React, { type SelectHTMLAttributes } from 'react';
2
2
  import { type GroupShape, type OptionShape } from '../../typings';
3
- export declare type NativeSelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
3
+ export type NativeSelectProps = SelectHTMLAttributes<HTMLSelectElement> & {
4
4
  /**
5
5
  * Список вариантов выбора
6
6
  */
@@ -11,8 +11,9 @@
11
11
  --gap-16: var(--gap-m);
12
12
  }
13
13
  :root {
14
- --font-family-system:
15
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
14
+ --font-family-alfasans:
15
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
16
+ Helvetica, sans-serif;
16
17
  }
17
18
  :root {
18
19
 
@@ -23,7 +24,7 @@
23
24
  --select-optgroup-l-left-padding: var(--gap-16);
24
25
  --select-optgroup-l-right-padding: var(--gap-16);
25
26
  }
26
- .select__optgroup_1rx6d {
27
+ .select__optgroup_10iyv {
27
28
  position: relative;
28
29
  display: flex;
29
30
  align-items: center;
@@ -33,21 +34,21 @@
33
34
  background: var(--select-optgroup-background);
34
35
  min-height: 40px;
35
36
  }
36
- .select__optgroup_1rx6d + *[role='option']:before {
37
+ .select__optgroup_10iyv + *[role='option']:before {
37
38
  display: none;
38
39
  }
39
- .select__label_1rx6d {
40
+ .select__label_10iyv {
40
41
  font-size: 12px;
41
42
  line-height: 16px;
42
43
  font-weight: 400;
43
44
  letter-spacing: 1.25px;
44
45
  text-transform: uppercase;
45
- font-family: var(--font-family-system);
46
+ font-family: var(--font-family-alfasans);
46
47
 
47
48
  display: block;
48
49
  color: var(--select-optgroup-color);
49
50
  }
50
- .select__size-72_1rx6d {
51
+ .select__size-72_10iyv {
51
52
  padding-left: var(--select-optgroup-l-left-padding);
52
53
  padding-right: var(--select-optgroup-l-right-padding);
53
54
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"optgroup":"select__optgroup_1rx6d","label":"select__label_1rx6d","size-72":"select__size-72_1rx6d"};
3
+ const styles = {"optgroup":"select__optgroup_10iyv","label":"select__label_10iyv","size-72":"select__size-72_10iyv"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/optgroup/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../vars.css';\n\n.optgroup {\n position: relative;\n display: flex;\n align-items: center;\n padding: var(--gap-12) var(--select-optgroup-right-padding) var(--gap-4)\n var(--select-optgroup-left-padding);\n box-sizing: border-box;\n background: var(--select-optgroup-background);\n min-height: 40px;\n\n & + *[role='option']:before {\n display: none;\n }\n}\n\n.label {\n @mixin paragraph_caps;\n\n display: block;\n color: var(--select-optgroup-color);\n}\n\n.size-72 {\n padding-left: var(--select-optgroup-l-left-padding);\n padding-right: var(--select-optgroup-l-right-padding);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,UAAU,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAAC,SAAS,CAAC,uBAAuB,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/optgroup/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../vars.css';\n\n.optgroup {\n position: relative;\n display: flex;\n align-items: center;\n padding: var(--gap-12) var(--select-optgroup-right-padding) var(--gap-4)\n var(--select-optgroup-left-padding);\n box-sizing: border-box;\n background: var(--select-optgroup-background);\n min-height: 40px;\n\n & + *[role='option']:before {\n display: none;\n }\n}\n\n.label {\n @mixin paragraph_caps;\n\n display: block;\n color: var(--select-optgroup-color);\n}\n\n.size-72 {\n padding-left: var(--select-optgroup-l-left-padding);\n padding-right: var(--select-optgroup-l-right-padding);\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,UAAU,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,CAAC,SAAS,CAAC,uBAAuB,CAAC;;;;"}
@@ -1,9 +1,8 @@
1
- /// <reference types="@alfalab/core-components-env" />
2
1
  import { type FC } from 'react';
3
2
  import { type OptionCommonProps } from '../../typings';
4
3
  import type stylesDesktop from './desktop/index.module.css';
5
4
  import type stylesMobile from './mobile/index.module.css';
6
- declare type OptionPrivateProps = {
5
+ type OptionPrivateProps = {
7
6
  /**
8
7
  * Мобильная версия option.
9
8
  */
@@ -14,8 +14,9 @@
14
14
  --gap-16: var(--gap-m);
15
15
  }
16
16
  :root {
17
- --font-family-system:
18
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
17
+ --font-family-alfasans:
18
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
19
+ Helvetica, sans-serif;
19
20
  }
20
21
  :root {
21
22
  --disabled-cursor: not-allowed;
@@ -43,11 +44,12 @@
43
44
  --select-option-active-color: var(--color-light-text-primary);
44
45
  --select-option-disabled-color: var(--color-light-text-secondary);
45
46
  }
46
- .select__option_uwrj7 {
47
+ .select__option_14fo6 {
47
48
  font-size: 16px;
48
49
  line-height: 20px;
49
50
  font-weight: 400;
50
- font-family: var(--font-family-system);
51
+ letter-spacing: -0.24px;
52
+ font-family: var(--font-family-alfasans);
51
53
 
52
54
  display: flex;
53
55
  align-items: center;
@@ -60,11 +62,11 @@
60
62
  position: relative;
61
63
  cursor: pointer;
62
64
  }
63
- .select__option_uwrj7:not(.select__disabled_uwrj7):active {
65
+ .select__option_14fo6:not(.select__disabled_14fo6):active {
64
66
  background: var(--select-option-active-background);
65
67
  color: var(--select-option-active-color);
66
68
  }
67
- .select__option_uwrj7:before {
69
+ .select__option_14fo6:before {
68
70
  content: '';
69
71
  position: absolute;
70
72
  left: var(--select-option-left-padding);
@@ -75,59 +77,59 @@
75
77
  display: var(--select-option-divider-display);
76
78
  transition: opacity 0.2s ease;
77
79
  }
78
- .select__option_uwrj7:first-child:before {
80
+ .select__option_14fo6:first-child:before {
79
81
  display: none;
80
82
  }
81
- .select__size-48_uwrj7 {
83
+ .select__size-48_14fo6 {
82
84
  min-height: var(--size-s-height);
83
85
  }
84
- .select__size-56_uwrj7 {
86
+ .select__size-56_14fo6 {
85
87
  min-height: var(--size-m-height);
86
88
  }
87
- .select__size-64_uwrj7 {
89
+ .select__size-64_14fo6 {
88
90
  min-height: var(--size-l-height);
89
91
  }
90
- .select__size-72_uwrj7 {
92
+ .select__size-72_14fo6 {
91
93
  min-height: var(--size-xl-height);
92
94
  padding-left: var(--select-option-l-left-padding);
93
95
  padding-right: var(--select-option-l-right-padding);
94
96
  }
95
- .select__size-72_uwrj7:before {
97
+ .select__size-72_14fo6:before {
96
98
  left: var(--select-option-l-left-padding);
97
99
  right: var(--select-option-l-right-padding);
98
100
  }
99
- .select__selected_uwrj7 {
101
+ .select__selected_14fo6 {
100
102
  background: var(--select-option-selected-background);
101
103
  color: var(--select-option-selected-color);
102
104
  cursor: default;
103
105
  }
104
- .select__highlighted_uwrj7 {
106
+ .select__highlighted_14fo6 {
105
107
  background: var(--select-option-hover-background);
106
108
  color: var(--select-option-hover-color);
107
109
  }
108
- .select__highlighted_uwrj7:before,
109
- .select__highlighted_uwrj7 + .select__option_uwrj7:before {
110
+ .select__highlighted_14fo6:before,
111
+ .select__highlighted_14fo6 + .select__option_14fo6:before {
110
112
  opacity: 0;
111
113
  }
112
- .select__disabled_uwrj7 {
114
+ .select__disabled_14fo6 {
113
115
  cursor: var(--disabled-cursor);
114
116
  background: var(--select-option-disabled-background);
115
117
  color: var(--select-option-disabled-color);
116
118
  }
117
- .select__content_uwrj7 {
119
+ .select__content_14fo6 {
118
120
  overflow: hidden;
119
121
  flex: 1;
120
122
  text-overflow: ellipsis;
121
123
  }
122
- .select__textContent_uwrj7 {
124
+ .select__textContent_14fo6 {
123
125
  padding-top: var(--gap-12);
124
126
  padding-bottom: var(--gap-12);
125
127
  }
126
- .select__highlighted_uwrj7 {
128
+ .select__highlighted_14fo6 {
127
129
  background: var(--select-option-hover-background);
128
130
  color: var(--select-option-hover-color);
129
131
  }
130
- .select__highlighted_uwrj7:before,
131
- .select__highlighted_uwrj7 + .select__option_uwrj7:before {
132
+ .select__highlighted_14fo6:before,
133
+ .select__highlighted_14fo6 + .select__option_14fo6:before {
132
134
  opacity: 0;
133
135
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"option":"select__option_uwrj7","disabled":"select__disabled_uwrj7","size-48":"select__size-48_uwrj7","size-56":"select__size-56_uwrj7","size-64":"select__size-64_uwrj7","size-72":"select__size-72_uwrj7","selected":"select__selected_uwrj7","highlighted":"select__highlighted_uwrj7","content":"select__content_uwrj7","textContent":"select__textContent_uwrj7"};
3
+ const styles = {"option":"select__option_14fo6","disabled":"select__disabled_14fo6","size-48":"select__size-48_14fo6","size-56":"select__size-56_14fo6","size-64":"select__size-64_14fo6","size-72":"select__size-72_14fo6","selected":"select__selected_14fo6","highlighted":"select__highlighted_14fo6","content":"select__content_14fo6","textContent":"select__textContent_14fo6"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../../src/components/option/desktop/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../../vars.css';\n@import '../index.module.css';\n\n.highlighted {\n background: var(--select-option-hover-background);\n color: var(--select-option-hover-color);\n\n &:before,\n & + .option:before {\n opacity: 0;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,wBAAwB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,CAAC,aAAa,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../../src/components/option/desktop/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../../vars.css';\n@import '../index.module.css';\n\n.highlighted {\n background: var(--select-option-hover-background);\n color: var(--select-option-hover-color);\n\n &:before,\n & + .option:before {\n opacity: 0;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,wBAAwB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,CAAC,aAAa,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
@@ -14,8 +14,9 @@
14
14
  --gap-16: var(--gap-m);
15
15
  }
16
16
  :root {
17
- --font-family-system:
18
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
17
+ --font-family-alfasans:
18
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
19
+ Helvetica, sans-serif;
19
20
  }
20
21
  :root {
21
22
  --disabled-cursor: not-allowed;
@@ -43,11 +44,12 @@
43
44
  --select-option-active-color: var(--color-light-text-primary);
44
45
  --select-option-disabled-color: var(--color-light-text-secondary);
45
46
  }
46
- .select__option_13qw6 {
47
+ .select__option_tnjuk {
47
48
  font-size: 16px;
48
49
  line-height: 20px;
49
50
  font-weight: 400;
50
- font-family: var(--font-family-system);
51
+ letter-spacing: -0.24px;
52
+ font-family: var(--font-family-alfasans);
51
53
 
52
54
  display: flex;
53
55
  align-items: center;
@@ -60,11 +62,11 @@
60
62
  position: relative;
61
63
  cursor: pointer;
62
64
  }
63
- .select__option_13qw6:not(.select__disabled_13qw6):active {
65
+ .select__option_tnjuk:not(.select__disabled_tnjuk):active {
64
66
  background: var(--select-option-active-background);
65
67
  color: var(--select-option-active-color);
66
68
  }
67
- .select__option_13qw6:before {
69
+ .select__option_tnjuk:before {
68
70
  content: '';
69
71
  position: absolute;
70
72
  left: var(--select-option-left-padding);
@@ -75,51 +77,51 @@
75
77
  display: var(--select-option-divider-display);
76
78
  transition: opacity 0.2s ease;
77
79
  }
78
- .select__option_13qw6:first-child:before {
80
+ .select__option_tnjuk:first-child:before {
79
81
  display: none;
80
82
  }
81
- .select__size-48_13qw6 {
83
+ .select__size-48_tnjuk {
82
84
  min-height: var(--size-s-height);
83
85
  }
84
- .select__size-56_13qw6 {
86
+ .select__size-56_tnjuk {
85
87
  min-height: var(--size-m-height);
86
88
  }
87
- .select__size-64_13qw6 {
89
+ .select__size-64_tnjuk {
88
90
  min-height: var(--size-l-height);
89
91
  }
90
- .select__size-72_13qw6 {
92
+ .select__size-72_tnjuk {
91
93
  min-height: var(--size-xl-height);
92
94
  padding-left: var(--select-option-l-left-padding);
93
95
  padding-right: var(--select-option-l-right-padding);
94
96
  }
95
- .select__size-72_13qw6:before {
97
+ .select__size-72_tnjuk:before {
96
98
  left: var(--select-option-l-left-padding);
97
99
  right: var(--select-option-l-right-padding);
98
100
  }
99
- .select__selected_13qw6 {
101
+ .select__selected_tnjuk {
100
102
  background: var(--select-option-selected-background);
101
103
  color: var(--select-option-selected-color);
102
104
  cursor: default;
103
105
  }
104
- .select__highlighted_13qw6 {
106
+ .select__highlighted_tnjuk {
105
107
  background: var(--select-option-hover-background);
106
108
  color: var(--select-option-hover-color);
107
109
  }
108
- .select__highlighted_13qw6:before,
109
- .select__highlighted_13qw6 + .select__option_13qw6:before {
110
+ .select__highlighted_tnjuk:before,
111
+ .select__highlighted_tnjuk + .select__option_tnjuk:before {
110
112
  opacity: 0;
111
113
  }
112
- .select__disabled_13qw6 {
114
+ .select__disabled_tnjuk {
113
115
  cursor: var(--disabled-cursor);
114
116
  background: var(--select-option-disabled-background);
115
117
  color: var(--select-option-disabled-color);
116
118
  }
117
- .select__content_13qw6 {
119
+ .select__content_tnjuk {
118
120
  overflow: hidden;
119
121
  flex: 1;
120
122
  text-overflow: ellipsis;
121
123
  }
122
- .select__textContent_13qw6 {
124
+ .select__textContent_tnjuk {
123
125
  padding-top: var(--gap-12);
124
126
  padding-bottom: var(--gap-12);
125
127
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- const styles = {"option":"select__option_13qw6","disabled":"select__disabled_13qw6","size-48":"select__size-48_13qw6","size-56":"select__size-56_13qw6","size-64":"select__size-64_13qw6","size-72":"select__size-72_13qw6","selected":"select__selected_13qw6","highlighted":"select__highlighted_13qw6","content":"select__content_13qw6","textContent":"select__textContent_13qw6"};
3
+ const styles = {"option":"select__option_tnjuk","disabled":"select__disabled_tnjuk","size-48":"select__size-48_tnjuk","size-56":"select__size-56_tnjuk","size-64":"select__size-64_tnjuk","size-72":"select__size-72_tnjuk","selected":"select__selected_tnjuk","highlighted":"select__highlighted_tnjuk","content":"select__content_tnjuk","textContent":"select__textContent_tnjuk"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../../src/components/option/mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n@import '../../../vars.css';\n@import '../index.module.css';\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,wBAAwB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,CAAC,aAAa,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../../src/components/option/mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../../../vars.css';\n@import '../index.module.css';\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,QAAQ,CAAC,sBAAsB,CAAC,UAAU,CAAC,wBAAwB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,CAAC,aAAa,CAAC,2BAA2B,CAAC,SAAS,CAAC,uBAAuB,CAAC,aAAa,CAAC,2BAA2B,CAAC;;;;"}
@@ -1,36 +1,36 @@
1
1
  import React from 'react';
2
2
  import { type GroupShape, type OptionShape } from '../../typings';
3
3
  export declare const OptionsList: React.ForwardRefExoticComponent<Pick<import("../../typings").SelectProps, "client"> & {
4
- className?: string | undefined;
5
- optionGroupClassName?: string | undefined;
6
- scrollbarClassName?: string | undefined;
7
- footerClassName?: string | undefined;
8
- size?: 40 | 48 | 56 | 64 | 72 | undefined;
4
+ className?: string;
5
+ optionGroupClassName?: string;
6
+ scrollbarClassName?: string;
7
+ footerClassName?: string;
8
+ size?: 40 | 48 | 56 | 64 | 72;
9
9
  Option: React.ComponentType<import("../../typings").OptionProps>;
10
10
  getOptionProps: (option: OptionShape, index: number) => import("../../typings").OptionProps;
11
- groupOptionProps?: import("../../typings").AnyObject | undefined;
12
- selectedItems?: OptionShape[] | undefined;
11
+ groupOptionProps?: import("../../typings").AnyObject;
12
+ selectedItems?: OptionShape[];
13
13
  setSelectedItems: (selected: OptionShape[]) => void;
14
14
  toggleMenu: () => void;
15
15
  header?: React.ReactNode;
16
16
  footer?: React.ReactNode;
17
- options?: (OptionShape | GroupShape)[] | undefined;
18
- flatOptions?: OptionShape[] | undefined;
19
- highlightedIndex?: number | undefined;
20
- open?: boolean | undefined;
21
- Optgroup?: React.ComponentType<import("../../typings").OptgroupProps> | undefined;
17
+ options?: Array<OptionShape | GroupShape>;
18
+ flatOptions?: OptionShape[];
19
+ highlightedIndex?: number;
20
+ open?: boolean;
21
+ Optgroup?: import("../../typings").BaseSelectProps["Optgroup"];
22
22
  emptyPlaceholder?: React.ReactNode;
23
- visibleOptions?: number | undefined;
24
- onScroll?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
25
- dataTestId?: string | undefined;
26
- inputProps?: import("@alfalab/core-components-input").InputProps | undefined;
27
- showFooter?: boolean | undefined;
28
- nativeScrollbar?: boolean | undefined;
29
- optionsListWidth?: "field" | "content" | undefined;
30
- onApply?: (() => void) | undefined;
31
- onClear?: (() => void) | undefined;
32
- setHighlightedIndex?: ((index: number) => void) | undefined;
33
- search?: string | undefined;
34
- multiple?: boolean | undefined;
35
- limitDynamicOptionGroupSize?: boolean | undefined;
23
+ visibleOptions?: number;
24
+ onScroll?: (event: React.MouseEvent<HTMLDivElement>) => void;
25
+ dataTestId?: string;
26
+ inputProps?: import("@alfalab/core-components-input").InputProps;
27
+ showFooter?: boolean;
28
+ nativeScrollbar?: boolean;
29
+ optionsListWidth?: import("../../typings").BaseSelectProps["optionsListWidth"];
30
+ onApply?: () => void;
31
+ onClear?: () => void;
32
+ setHighlightedIndex?: (index: number) => void;
33
+ search?: string;
34
+ multiple?: boolean;
35
+ limitDynamicOptionGroupSize?: import("../../typings").BaseSelectProps["limitDynamicOptionGroupSize"];
36
36
  } & React.RefAttributes<HTMLDivElement>>;
@@ -40,7 +40,7 @@ const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, fo
40
40
  return (React.createElement(Optgroup$1, { className: optionGroupClassName, label: group.label, key: group.label, size: size, options: group.options, selectedItems: groupSelectedItems, setSelectedItems: handleSelectedItems, search: search, multiple: multiple, ...groupOptionProps }, group.options.map((option) => renderOption(option, counter()))));
41
41
  };
42
42
  const actualOptionsCount = limitDynamicOptionGroupSize && options.length > 0;
43
- const [measured, height] = useVisibleOptions({
43
+ const [measured, maxHeight] = useVisibleOptions({
44
44
  visibleOptions,
45
45
  listRef,
46
46
  open,
@@ -72,7 +72,7 @@ const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, fo
72
72
  return (React.createElement(Scrollbar, { className: cn(styles.scrollable, scrollbarClassName), verticalBarClassName: cn(styles.verticalBar, {
73
73
  [styles.verticalBarWithHeader]: Boolean(header),
74
74
  [styles.verticalBarWithFooter]: Boolean(footer),
75
- }), ref: scrollbarRef, style: { height }, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: scrollableNodeProps, contentNodeProps: { ref: listRef }, maskProps: {
75
+ }), ref: scrollbarRef, style: { maxHeight }, horizontalAutoStretch: optionsListWidth === 'content', scrollableNodeProps: scrollableNodeProps, contentNodeProps: { ref: listRef }, maskProps: {
76
76
  /*
77
77
  * Для корректного подсчета высоты опций(иначе для optionsListWidth: 'field'
78
78
  * высота опции всегда будет равна высоте одной строчки)
@@ -82,7 +82,7 @@ const OptionsList = forwardRef(({ size = 48, className, optionGroupClassName, fo
82
82
  }),
83
83
  } }, renderListItems()));
84
84
  };
85
- const renderWithNativeScrollbar = () => (React.createElement("div", { className: cn(styles.scrollable, scrollbarClassName), ref: mergeRefs([listRef, ref]), onScroll: handleScroll, style: { height } }, renderListItems()));
85
+ const renderWithNativeScrollbar = () => (React.createElement("div", { className: cn(styles.scrollable, scrollbarClassName), ref: mergeRefs([listRef, ref]), onScroll: handleScroll, style: { maxHeight } }, renderListItems()));
86
86
  const resetHighlightedIndex = () => setHighlightedIndex?.(-1);
87
87
  return (React.createElement("div", { ...(nativeScrollbar && { 'data-test-id': dataTestId }), className: cn(styles.optionsList, styles[`size-${size}`], className) },
88
88
  header && (React.createElement("div", { className: cn(styles.optionsListHeader, {