@alfalab/core-components 19.11.1 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1846) hide show
  1. package/alert/esm/index.css +0 -5
  2. package/alert/index.css +0 -5
  3. package/alert/modern/index.css +0 -5
  4. package/amount/esm/index.css +0 -5
  5. package/amount/index.css +0 -5
  6. package/amount/modern/index.css +0 -5
  7. package/amount-input/default.css +0 -3
  8. package/amount-input/esm/default.css +0 -3
  9. package/amount-input/esm/index.css +0 -5
  10. package/amount-input/esm/inverted.css +0 -5
  11. package/amount-input/index.css +0 -5
  12. package/amount-input/inverted.css +0 -5
  13. package/amount-input/modern/default.css +0 -3
  14. package/amount-input/modern/index.css +0 -5
  15. package/amount-input/modern/inverted.css +0 -5
  16. package/attach/esm/index.css +0 -3
  17. package/attach/index.css +0 -3
  18. package/attach/modern/index.css +0 -3
  19. package/backdrop/esm/index.css +0 -3
  20. package/backdrop/index.css +0 -3
  21. package/backdrop/modern/index.css +0 -3
  22. package/badge/esm/index.css +0 -3
  23. package/badge/index.css +0 -3
  24. package/badge/modern/index.css +0 -3
  25. package/bank-card/Component.js +1 -1
  26. package/bank-card/esm/Component.js +1 -1
  27. package/bank-card/esm/index.css +40 -24
  28. package/bank-card/index.css +40 -24
  29. package/bank-card/modern/Component.js +1 -1
  30. package/bank-card/modern/index.css +40 -24
  31. package/base-modal/Component.js +20 -13
  32. package/base-modal/esm/Component.js +22 -15
  33. package/base-modal/esm/index.css +1 -4
  34. package/base-modal/esm/index.js +1 -1
  35. package/base-modal/esm/utils.d.ts +3 -2
  36. package/base-modal/esm/utils.js +36 -15
  37. package/base-modal/index.css +1 -4
  38. package/base-modal/index.js +1 -0
  39. package/base-modal/modern/Component.js +22 -15
  40. package/base-modal/modern/index.css +1 -4
  41. package/base-modal/modern/index.js +1 -1
  42. package/base-modal/modern/utils.d.ts +3 -2
  43. package/base-modal/modern/utils.js +35 -14
  44. package/base-modal/utils.d.ts +3 -2
  45. package/base-modal/utils.js +36 -14
  46. package/bottom-sheet/{Component-75c61faf.d.ts → Component-47f23852.d.ts} +0 -0
  47. package/bottom-sheet/Component-47f23852.js +53 -0
  48. package/bottom-sheet/component.js +1 -1
  49. package/bottom-sheet/components/footer/index.css +0 -3
  50. package/bottom-sheet/components/swipeable-backdrop/Component.js +1 -1
  51. package/bottom-sheet/{cssm/Component-3a3629ef.d.ts → esm/Component-2f048341.d.ts} +0 -0
  52. package/bottom-sheet/esm/Component-2f048341.js +49 -0
  53. package/bottom-sheet/esm/component.js +1 -1
  54. package/bottom-sheet/esm/components/footer/index.css +0 -3
  55. package/bottom-sheet/esm/components/swipeable-backdrop/Component.js +1 -1
  56. package/bottom-sheet/esm/index.css +0 -3
  57. package/bottom-sheet/esm/index.js +1 -1
  58. package/bottom-sheet/index.css +0 -3
  59. package/bottom-sheet/index.js +1 -1
  60. package/bottom-sheet/modern/components/footer/index.css +0 -3
  61. package/bottom-sheet/modern/components/swipeable-backdrop/Component.js +3 -1
  62. package/bottom-sheet/modern/index.css +0 -3
  63. package/button/default.css +0 -3
  64. package/button/esm/default.css +0 -3
  65. package/button/esm/index.css +0 -3
  66. package/button/esm/inverted.css +0 -3
  67. package/button/index.css +0 -3
  68. package/button/inverted.css +0 -3
  69. package/button/modern/default.css +0 -3
  70. package/button/modern/index.css +0 -3
  71. package/button/modern/inverted.css +0 -3
  72. package/calendar/Component.js +1 -1
  73. package/calendar/components/days-table/Component.js +1 -1
  74. package/calendar/components/days-table/index.css +0 -3
  75. package/calendar/components/days-table/index.js +1 -1
  76. package/calendar/components/header/Component.js +1 -1
  77. package/calendar/components/header/index.css +0 -5
  78. package/calendar/components/header/index.js +1 -1
  79. package/calendar/components/months-table/Component.js +1 -1
  80. package/calendar/components/months-table/index.css +0 -5
  81. package/calendar/components/months-table/index.js +1 -1
  82. package/calendar/components/select-button/Component.js +1 -1
  83. package/calendar/components/select-button/index.css +0 -3
  84. package/calendar/components/select-button/index.js +1 -1
  85. package/calendar/components/years-table/Component.js +1 -1
  86. package/calendar/components/years-table/index.css +0 -5
  87. package/calendar/components/years-table/index.js +1 -1
  88. package/calendar/esm/Component.js +1 -1
  89. package/calendar/esm/components/days-table/Component.js +1 -1
  90. package/calendar/esm/components/days-table/index.css +0 -3
  91. package/calendar/esm/components/days-table/index.js +1 -1
  92. package/calendar/esm/components/header/Component.js +1 -1
  93. package/calendar/esm/components/header/index.css +0 -5
  94. package/calendar/esm/components/header/index.js +1 -1
  95. package/calendar/esm/components/months-table/Component.js +1 -1
  96. package/calendar/esm/components/months-table/index.css +0 -5
  97. package/calendar/esm/components/months-table/index.js +1 -1
  98. package/calendar/esm/components/select-button/Component.js +1 -1
  99. package/calendar/esm/components/select-button/index.css +0 -3
  100. package/calendar/esm/components/select-button/index.js +1 -1
  101. package/calendar/esm/components/years-table/Component.js +1 -1
  102. package/calendar/esm/components/years-table/index.css +0 -5
  103. package/calendar/esm/components/years-table/index.js +1 -1
  104. package/calendar/esm/index.css +0 -5
  105. package/calendar/esm/index.js +1 -1
  106. package/calendar/{cssm/tslib.es6-ce870b46.d.ts → esm/tslib.es6-fca4e183.d.ts} +0 -0
  107. package/calendar/esm/{tslib.es6-380d0bf1.js → tslib.es6-fca4e183.js} +0 -0
  108. package/calendar/index.css +0 -5
  109. package/calendar/index.js +1 -1
  110. package/calendar/modern/components/days-table/index.css +0 -3
  111. package/calendar/modern/components/header/index.css +0 -5
  112. package/calendar/modern/components/months-table/index.css +0 -5
  113. package/calendar/modern/components/select-button/index.css +0 -3
  114. package/calendar/modern/components/years-table/index.css +0 -5
  115. package/calendar/modern/index.css +0 -5
  116. package/calendar/{esm/tslib.es6-380d0bf1.d.ts → tslib.es6-8fcb4075.d.ts} +0 -0
  117. package/calendar/{cssm/tslib.es6-ce870b46.js → tslib.es6-8fcb4075.js} +0 -0
  118. package/calendar-input/Component.d.ts +1 -1
  119. package/calendar-input/esm/index.css +0 -3
  120. package/calendar-input/index.css +0 -3
  121. package/calendar-input/modern/index.css +0 -3
  122. package/calendar-range/esm/index.css +0 -3
  123. package/calendar-range/index.css +0 -3
  124. package/calendar-range/modern/index.css +0 -3
  125. package/calendar-with-skeleton/esm/index.css +0 -3
  126. package/calendar-with-skeleton/index.css +0 -3
  127. package/calendar-with-skeleton/modern/index.css +0 -3
  128. package/cdn-icon/esm/index.css +0 -5
  129. package/cdn-icon/index.css +0 -5
  130. package/cdn-icon/modern/index.css +0 -5
  131. package/checkbox/esm/index.css +0 -3
  132. package/checkbox/index.css +0 -3
  133. package/checkbox/modern/index.css +0 -3
  134. package/checkbox-group/Component.d.ts +1 -1
  135. package/checkbox-group/Component.js +1 -1
  136. package/checkbox-group/esm/Component.d.ts +1 -1
  137. package/checkbox-group/esm/Component.js +1 -1
  138. package/checkbox-group/esm/index.css +0 -3
  139. package/checkbox-group/index.css +0 -3
  140. package/checkbox-group/modern/Component.d.ts +1 -1
  141. package/checkbox-group/modern/Component.js +1 -1
  142. package/checkbox-group/modern/index.css +0 -3
  143. package/circular-progress-bar/esm/index.css +0 -3
  144. package/circular-progress-bar/index.css +0 -3
  145. package/circular-progress-bar/modern/index.css +0 -3
  146. package/collapse/esm/index.css +0 -5
  147. package/collapse/index.css +0 -5
  148. package/collapse/modern/index.css +0 -5
  149. package/confirmation/components/code-input/index.css +1 -3
  150. package/confirmation/components/countdown/index.css +0 -3
  151. package/confirmation/components/countdown-loader/index.css +0 -3
  152. package/confirmation/components/sign-confirmation/index.css +0 -3
  153. package/confirmation/esm/components/code-input/index.css +1 -3
  154. package/confirmation/esm/components/countdown/index.css +0 -3
  155. package/confirmation/esm/components/countdown-loader/index.css +0 -3
  156. package/confirmation/esm/components/sign-confirmation/index.css +0 -3
  157. package/confirmation/esm/index.css +0 -3
  158. package/confirmation/index.css +0 -3
  159. package/confirmation/modern/components/code-input/index.css +1 -3
  160. package/confirmation/modern/components/countdown/index.css +0 -3
  161. package/confirmation/modern/components/countdown-loader/index.css +0 -3
  162. package/confirmation/modern/components/sign-confirmation/index.css +0 -3
  163. package/confirmation/modern/index.css +0 -3
  164. package/date-input/esm/index.css +0 -5
  165. package/date-input/index.css +0 -5
  166. package/date-input/modern/index.css +0 -5
  167. package/divider/esm/index.css +0 -3
  168. package/divider/index.css +0 -3
  169. package/divider/modern/index.css +0 -3
  170. package/drawer/esm/index.css +0 -3
  171. package/drawer/index.css +0 -3
  172. package/drawer/modern/index.css +0 -3
  173. package/dropzone/Component.d.ts +13 -3
  174. package/dropzone/Component.js +20 -12
  175. package/dropzone/components/index.d.ts +1 -0
  176. package/dropzone/components/index.js +10 -0
  177. package/dropzone/components/overlay/Component.d.ts +13 -0
  178. package/dropzone/components/overlay/Component.js +25 -0
  179. package/dropzone/components/overlay/index.css +50 -0
  180. package/{alert/cssm → dropzone/components/overlay}/index.d.ts +0 -0
  181. package/dropzone/components/overlay/index.js +10 -0
  182. package/dropzone/esm/Component.d.ts +13 -3
  183. package/dropzone/esm/Component.js +20 -12
  184. package/dropzone/esm/components/index.d.ts +1 -0
  185. package/dropzone/esm/components/index.js +4 -0
  186. package/dropzone/esm/components/overlay/Component.d.ts +13 -0
  187. package/dropzone/esm/components/overlay/Component.js +18 -0
  188. package/dropzone/esm/components/overlay/index.css +50 -0
  189. package/{amount-input/cssm → dropzone/esm/components/overlay}/index.d.ts +0 -0
  190. package/dropzone/esm/components/overlay/index.js +4 -0
  191. package/dropzone/esm/index.css +22 -56
  192. package/dropzone/esm/index.js +2 -1
  193. package/dropzone/index.css +22 -56
  194. package/dropzone/index.js +2 -1
  195. package/dropzone/modern/Component.d.ts +13 -3
  196. package/dropzone/modern/Component.js +20 -12
  197. package/dropzone/modern/components/index.d.ts +1 -0
  198. package/dropzone/modern/components/index.js +4 -0
  199. package/dropzone/modern/components/overlay/Component.d.ts +13 -0
  200. package/dropzone/modern/components/overlay/Component.js +16 -0
  201. package/dropzone/modern/components/overlay/index.css +50 -0
  202. package/{attach/cssm → dropzone/modern/components/overlay}/index.d.ts +0 -0
  203. package/dropzone/modern/components/overlay/index.js +4 -0
  204. package/dropzone/modern/index.css +22 -56
  205. package/dropzone/modern/index.js +1 -0
  206. package/file-upload-item/Component.d.ts +2 -1
  207. package/file-upload-item/esm/Component.d.ts +2 -1
  208. package/file-upload-item/esm/index.css +0 -3
  209. package/file-upload-item/index.css +0 -3
  210. package/file-upload-item/modern/Component.d.ts +2 -1
  211. package/file-upload-item/modern/index.css +0 -3
  212. package/form-control/Component.d.ts +2 -2
  213. package/form-control/Component.js +1 -1
  214. package/form-control/default.css +0 -3
  215. package/form-control/esm/Component.d.ts +2 -2
  216. package/form-control/esm/Component.js +1 -1
  217. package/form-control/esm/default.css +0 -3
  218. package/form-control/esm/index.css +0 -5
  219. package/form-control/esm/inverted.css +1 -4
  220. package/form-control/index.css +0 -5
  221. package/form-control/inverted.css +1 -4
  222. package/form-control/modern/Component.d.ts +2 -2
  223. package/form-control/modern/Component.js +1 -1
  224. package/form-control/modern/default.css +0 -3
  225. package/form-control/modern/index.css +0 -5
  226. package/form-control/modern/inverted.css +1 -4
  227. package/grid/Component.js +1 -1
  228. package/grid/col/Component.js +1 -1
  229. package/grid/col/index.js +1 -1
  230. package/grid/esm/Component.js +1 -1
  231. package/grid/esm/col/Component.js +1 -1
  232. package/grid/esm/col/index.js +1 -1
  233. package/{calendar/tslib.es6-50162ba7.d.ts → grid/esm/gutters.module-b39da5b6.d.ts} +0 -0
  234. package/grid/esm/{gutters.module-c9c70930.js → gutters.module-b39da5b6.js} +0 -0
  235. package/grid/esm/index.js +1 -1
  236. package/grid/esm/row/Component.js +1 -1
  237. package/grid/esm/row/index.js +1 -1
  238. package/grid/{cssm/tslib.es6-3084c748.d.ts → gutters.module-d3fcf523.d.ts} +0 -0
  239. package/grid/{gutters.module-ec984f94.js → gutters.module-d3fcf523.js} +0 -0
  240. package/grid/index.js +1 -1
  241. package/grid/modern/Component.js +1 -1
  242. package/grid/modern/col/Component.js +1 -1
  243. package/grid/modern/col/index.js +1 -1
  244. package/grid/modern/{gutters.module-157a0bab.js → gutters.module-3f6357c5.js} +0 -0
  245. package/grid/modern/index.js +1 -1
  246. package/grid/modern/row/Component.js +1 -1
  247. package/grid/modern/row/index.js +1 -1
  248. package/grid/row/Component.js +1 -1
  249. package/grid/row/index.js +1 -1
  250. package/icon-button/default.css +0 -3
  251. package/icon-button/esm/default.css +0 -3
  252. package/icon-button/esm/index.css +0 -5
  253. package/icon-button/esm/inverted.css +0 -3
  254. package/icon-button/index.css +0 -5
  255. package/icon-button/inverted.css +0 -3
  256. package/icon-button/modern/default.css +0 -3
  257. package/icon-button/modern/index.css +0 -5
  258. package/icon-button/modern/inverted.css +0 -3
  259. package/input/Component.d.ts +2 -2
  260. package/input/default.css +3 -3
  261. package/input/esm/Component.d.ts +2 -2
  262. package/input/esm/default.css +3 -3
  263. package/input/esm/index.css +0 -3
  264. package/input/esm/inverted.css +3 -3
  265. package/input/index.css +0 -3
  266. package/input/inverted.css +3 -3
  267. package/input/modern/Component.d.ts +2 -2
  268. package/input/modern/default.css +3 -3
  269. package/input/modern/index.css +0 -3
  270. package/input/modern/inverted.css +3 -3
  271. package/input-autocomplete/{Component-d1c7e395.d.ts → Component-4eb14ed5.d.ts} +0 -0
  272. package/input-autocomplete/Component-4eb14ed5.js +81 -0
  273. package/input-autocomplete/Component.d.ts +2 -2
  274. package/input-autocomplete/Component.js +1 -1
  275. package/input-autocomplete/autocomplete-field/Component.js +1 -1
  276. package/input-autocomplete/autocomplete-field/index.css +2 -2
  277. package/input-autocomplete/autocomplete-field/index.d.ts +1 -1
  278. package/input-autocomplete/autocomplete-field/index.js +1 -1
  279. package/input-autocomplete/{cssm/Component-a04a9434.d.ts → esm/Component-580300ee.d.ts} +0 -0
  280. package/input-autocomplete/esm/Component-580300ee.js +74 -0
  281. package/input-autocomplete/esm/Component.d.ts +2 -2
  282. package/input-autocomplete/esm/Component.js +1 -1
  283. package/input-autocomplete/esm/autocomplete-field/Component.js +1 -1
  284. package/input-autocomplete/esm/autocomplete-field/index.css +2 -2
  285. package/input-autocomplete/esm/autocomplete-field/index.d.ts +1 -1
  286. package/input-autocomplete/esm/autocomplete-field/index.js +1 -1
  287. package/input-autocomplete/esm/index.js +1 -1
  288. package/input-autocomplete/index.js +1 -1
  289. package/input-autocomplete/modern/Component.d.ts +2 -2
  290. package/input-autocomplete/modern/autocomplete-field/Component.js +1 -1
  291. package/input-autocomplete/modern/autocomplete-field/index.css +2 -2
  292. package/intl-phone-input/{component-c769f9ab.d.ts → component-287e197d.d.ts} +0 -0
  293. package/intl-phone-input/component-287e197d.js +72 -0
  294. package/intl-phone-input/component.js +3 -3
  295. package/intl-phone-input/components/flag-icon/component.js +1 -1
  296. package/intl-phone-input/components/flag-icon/index.css +784 -784
  297. package/intl-phone-input/components/index.js +1 -1
  298. package/intl-phone-input/components/select/component.js +2 -2
  299. package/intl-phone-input/components/select/index.css +6 -9
  300. package/intl-phone-input/components/select/index.js +1 -1
  301. package/intl-phone-input/components/select-field/component.js +1 -1
  302. package/intl-phone-input/components/select-field/index.css +8 -11
  303. package/intl-phone-input/components/select-field/index.d.ts +1 -1
  304. package/intl-phone-input/components/select-field/index.js +1 -1
  305. package/intl-phone-input/{cssm/component-88f82cfc.d.ts → esm/component-8145572d.d.ts} +0 -0
  306. package/intl-phone-input/esm/component-8145572d.js +65 -0
  307. package/intl-phone-input/esm/component.js +3 -3
  308. package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
  309. package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
  310. package/intl-phone-input/esm/components/index.js +1 -1
  311. package/intl-phone-input/esm/components/select/component.js +2 -2
  312. package/intl-phone-input/esm/components/select/index.css +6 -9
  313. package/intl-phone-input/esm/components/select/index.js +1 -1
  314. package/intl-phone-input/esm/components/select-field/component.js +1 -1
  315. package/intl-phone-input/esm/components/select-field/index.css +8 -11
  316. package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
  317. package/intl-phone-input/esm/components/select-field/index.js +1 -1
  318. package/intl-phone-input/esm/index.css +3 -3
  319. package/intl-phone-input/esm/index.js +1 -1
  320. package/intl-phone-input/{cssm/libphonenumber-js.min-d3a9d490.d.ts → esm/libphonenumber-js.min-d12da39d.d.ts} +0 -0
  321. package/intl-phone-input/{cssm/libphonenumber-js.min-d3a9d490.js → esm/libphonenumber-js.min-d12da39d.js} +0 -0
  322. package/intl-phone-input/index.css +3 -3
  323. package/intl-phone-input/index.js +1 -1
  324. package/intl-phone-input/{esm/libphonenumber-js.min-5193d589.d.ts → libphonenumber-js.min-02942ad2.d.ts} +0 -0
  325. package/intl-phone-input/{esm/libphonenumber-js.min-5193d589.js → libphonenumber-js.min-02942ad2.js} +0 -0
  326. package/intl-phone-input/modern/component.js +2 -2
  327. package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
  328. package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
  329. package/intl-phone-input/modern/components/select/component.js +1 -1
  330. package/intl-phone-input/modern/components/select/index.css +6 -9
  331. package/intl-phone-input/modern/components/select-field/component.js +1 -1
  332. package/intl-phone-input/modern/components/select-field/index.css +8 -11
  333. package/intl-phone-input/modern/index.css +3 -3
  334. package/intl-phone-input/{libphonenumber-js.min-b3a8fa4e.d.ts → modern/libphonenumber-js.min-d12da39d.d.ts} +0 -0
  335. package/intl-phone-input/{libphonenumber-js.min-b3a8fa4e.js → modern/libphonenumber-js.min-d12da39d.js} +0 -0
  336. package/link/default.css +0 -3
  337. package/link/esm/default.css +0 -3
  338. package/link/esm/index.css +0 -3
  339. package/link/esm/inverted.css +0 -3
  340. package/link/index.css +0 -3
  341. package/link/inverted.css +0 -3
  342. package/link/modern/default.css +0 -3
  343. package/link/modern/index.css +0 -3
  344. package/link/modern/inverted.css +0 -3
  345. package/list/esm/index.css +0 -3
  346. package/list/index.css +0 -3
  347. package/list/modern/index.css +0 -3
  348. package/list-header/esm/index.css +0 -3
  349. package/list-header/index.css +0 -3
  350. package/list-header/modern/index.css +0 -3
  351. package/masked-input/Component.d.ts +1 -1
  352. package/masked-input/esm/Component.d.ts +1 -1
  353. package/masked-input/modern/Component.d.ts +1 -1
  354. package/modal/Component.desktop.js +2 -2
  355. package/modal/Component.mobile.js +2 -2
  356. package/modal/Component.responsive.d.ts +3 -3
  357. package/modal/Component.responsive.js +2 -2
  358. package/modal/components/closer/Component.js +1 -1
  359. package/modal/components/closer/index.css +0 -5
  360. package/modal/components/content/Component.desktop.js +1 -1
  361. package/modal/components/content/Component.mobile.js +1 -1
  362. package/modal/components/content/desktop.css +20 -7
  363. package/modal/components/content/mobile.css +20 -7
  364. package/modal/components/footer/Component.desktop.js +1 -1
  365. package/modal/components/footer/Component.mobile.js +1 -1
  366. package/modal/components/footer/desktop.css +20 -7
  367. package/modal/components/footer/layout.css +0 -5
  368. package/modal/components/footer/mobile.css +20 -7
  369. package/modal/components/header/Component.desktop.js +1 -1
  370. package/modal/components/header/Component.js +1 -1
  371. package/modal/components/header/Component.mobile.js +1 -1
  372. package/modal/components/header/desktop.css +20 -7
  373. package/modal/components/header/mobile.css +20 -7
  374. package/modal/desktop.css +0 -5
  375. package/modal/desktop.js +2 -2
  376. package/modal/esm/Component.desktop.js +2 -2
  377. package/modal/esm/Component.mobile.js +2 -2
  378. package/modal/esm/Component.responsive.js +2 -2
  379. package/modal/esm/components/closer/Component.js +1 -1
  380. package/modal/esm/components/closer/index.css +0 -5
  381. package/modal/esm/components/content/Component.desktop.js +1 -1
  382. package/modal/esm/components/content/Component.mobile.js +1 -1
  383. package/modal/esm/components/content/desktop.css +20 -7
  384. package/modal/esm/components/content/mobile.css +20 -7
  385. package/modal/esm/components/footer/Component.desktop.js +1 -1
  386. package/modal/esm/components/footer/Component.mobile.js +1 -1
  387. package/modal/esm/components/footer/desktop.css +20 -7
  388. package/modal/esm/components/footer/layout.css +0 -5
  389. package/modal/esm/components/footer/mobile.css +20 -7
  390. package/modal/esm/components/header/Component.desktop.js +1 -1
  391. package/modal/esm/components/header/Component.js +1 -1
  392. package/modal/esm/components/header/Component.mobile.js +1 -1
  393. package/modal/esm/components/header/desktop.css +20 -7
  394. package/modal/esm/components/header/mobile.css +20 -7
  395. package/modal/esm/desktop.css +0 -5
  396. package/modal/esm/desktop.js +2 -2
  397. package/modal/esm/index.js +2 -2
  398. package/modal/esm/mobile.css +0 -5
  399. package/modal/esm/mobile.js +2 -2
  400. package/modal/esm/responsive.js +2 -2
  401. package/modal/esm/{transitions.module-1f138c91.js → transitions.module-1ef342f7.js} +0 -0
  402. package/{grid/esm/gutters.module-c9c70930.d.ts → modal/esm/tslib.es6-ebe3bc3b.d.ts} +0 -0
  403. package/modal/esm/{tslib.es6-f7ad96ab.js → tslib.es6-ebe3bc3b.js} +0 -0
  404. package/modal/index.js +2 -2
  405. package/modal/mobile.css +0 -5
  406. package/modal/mobile.js +2 -2
  407. package/modal/modern/Component.desktop.js +1 -1
  408. package/modal/modern/Component.mobile.js +1 -1
  409. package/modal/modern/Component.responsive.js +1 -1
  410. package/modal/modern/components/closer/index.css +0 -5
  411. package/modal/modern/components/content/desktop.css +20 -7
  412. package/modal/modern/components/content/mobile.css +20 -7
  413. package/modal/modern/components/footer/desktop.css +20 -7
  414. package/modal/modern/components/footer/layout.css +0 -5
  415. package/modal/modern/components/footer/mobile.css +20 -7
  416. package/modal/modern/components/header/desktop.css +20 -7
  417. package/modal/modern/components/header/mobile.css +20 -7
  418. package/modal/modern/desktop.css +0 -5
  419. package/modal/modern/desktop.js +1 -1
  420. package/modal/modern/index.js +1 -1
  421. package/modal/modern/mobile.css +0 -5
  422. package/modal/modern/mobile.js +1 -1
  423. package/modal/modern/responsive.js +1 -1
  424. package/modal/modern/{transitions.module-1f138c91.js → transitions.module-1ef342f7.js} +0 -0
  425. package/modal/responsive.js +2 -2
  426. package/modal/{transitions.module-886c7414.js → transitions.module-22352f4f.js} +0 -0
  427. package/{grid/gutters.module-ec984f94.d.ts → modal/tslib.es6-8c57e210.d.ts} +0 -0
  428. package/{calendar/tslib.es6-50162ba7.js → modal/tslib.es6-8c57e210.js} +0 -0
  429. package/notification/esm/index.css +0 -5
  430. package/notification/index.css +0 -5
  431. package/notification/modern/index.css +0 -5
  432. package/package.json +3 -3
  433. package/password-input/component.d.ts +1 -1
  434. package/password-input/component.js +8 -4
  435. package/password-input/esm/component.d.ts +1 -1
  436. package/password-input/esm/component.js +7 -4
  437. package/password-input/esm/index.css +10 -2
  438. package/password-input/esm/index.js +1 -0
  439. package/password-input/index.css +10 -2
  440. package/password-input/index.js +1 -0
  441. package/password-input/modern/component.d.ts +1 -1
  442. package/password-input/modern/component.js +6 -3
  443. package/password-input/modern/index.css +10 -2
  444. package/password-input/modern/index.js +1 -0
  445. package/picker-button/Component-952ada36.d.ts +812 -0
  446. package/picker-button/Component-952ada36.js +63 -0
  447. package/picker-button/Component.js +2 -2
  448. package/picker-button/esm/Component-9625a611.d.ts +812 -0
  449. package/picker-button/esm/Component-9625a611.js +57 -0
  450. package/picker-button/esm/Component.js +2 -2
  451. package/picker-button/esm/field/Component.js +1 -1
  452. package/picker-button/esm/field/index.css +3 -8
  453. package/picker-button/esm/field/index.d.ts +1 -1
  454. package/picker-button/esm/field/index.js +1 -1
  455. package/picker-button/esm/index.css +2 -2
  456. package/picker-button/esm/index.js +1 -1
  457. package/picker-button/field/Component.js +1 -1
  458. package/picker-button/field/index.css +3 -8
  459. package/picker-button/field/index.d.ts +1 -1
  460. package/picker-button/field/index.js +1 -1
  461. package/picker-button/index.css +2 -2
  462. package/picker-button/index.js +1 -1
  463. package/picker-button/modern/Component.js +1 -1
  464. package/picker-button/modern/field/Component.d.ts +7 -3
  465. package/picker-button/modern/field/Component.js +1 -1
  466. package/picker-button/modern/field/index.css +3 -8
  467. package/picker-button/modern/index.css +2 -2
  468. package/plate/esm/index.css +0 -3
  469. package/plate/index.css +0 -3
  470. package/plate/modern/index.css +0 -3
  471. package/popover/Component.d.ts +4 -0
  472. package/popover/Component.js +24 -2
  473. package/popover/esm/Component.d.ts +4 -0
  474. package/popover/esm/Component.js +25 -3
  475. package/popover/esm/index.css +0 -3
  476. package/popover/esm/index.js +1 -0
  477. package/popover/index.css +0 -3
  478. package/popover/index.js +1 -0
  479. package/popover/modern/Component.d.ts +4 -0
  480. package/popover/modern/Component.js +25 -2
  481. package/popover/modern/index.css +0 -3
  482. package/popover/modern/index.js +1 -0
  483. package/progress-bar/esm/index.css +0 -3
  484. package/progress-bar/index.css +0 -3
  485. package/progress-bar/modern/index.css +0 -3
  486. package/pure-input/esm/index.css +3 -3
  487. package/pure-input/index.css +3 -3
  488. package/pure-input/modern/index.css +3 -3
  489. package/radio/esm/index.css +0 -3
  490. package/radio/index.css +0 -3
  491. package/radio/modern/index.css +0 -3
  492. package/radio-group/Component.d.ts +1 -1
  493. package/radio-group/Component.js +1 -1
  494. package/radio-group/esm/Component.d.ts +1 -1
  495. package/radio-group/esm/Component.js +1 -1
  496. package/radio-group/esm/index.css +0 -3
  497. package/radio-group/index.css +0 -3
  498. package/radio-group/modern/Component.d.ts +1 -1
  499. package/radio-group/modern/Component.js +1 -1
  500. package/radio-group/modern/index.css +0 -3
  501. package/select/Component.d.ts +2 -2
  502. package/select/Component.js +1 -1
  503. package/select/components/arrow/Component.js +1 -1
  504. package/select/components/arrow/index.css +3 -8
  505. package/select/components/base-select/Component.js +2 -2
  506. package/select/components/base-select/index.css +7 -10
  507. package/select/components/base-select/index.js +1 -1
  508. package/select/components/checkmark/Component.js +1 -1
  509. package/select/components/checkmark/index.css +3 -6
  510. package/select/components/field/Component.d.ts +1 -1
  511. package/select/components/field/Component.js +2 -2
  512. package/select/components/field/index.css +9 -12
  513. package/select/components/field/index.js +1 -1
  514. package/select/components/index.js +1 -1
  515. package/select/components/native-select/Component.js +1 -1
  516. package/select/components/native-select/index.js +1 -1
  517. package/select/components/optgroup/Component.js +1 -1
  518. package/select/components/optgroup/index.css +6 -9
  519. package/select/components/option/Component.js +2 -2
  520. package/select/components/option/index.css +20 -23
  521. package/select/components/option/index.js +1 -1
  522. package/select/components/options-list/Component.js +1 -1
  523. package/select/components/options-list/index.css +5 -8
  524. package/select/components/virtual-options-list/Component.js +1 -1
  525. package/select/components/virtual-options-list/index.css +11 -14
  526. package/select/esm/Component.d.ts +2 -2
  527. package/select/esm/Component.js +1 -1
  528. package/select/esm/components/arrow/Component.js +1 -1
  529. package/select/esm/components/arrow/index.css +3 -8
  530. package/select/esm/components/base-select/Component.js +2 -2
  531. package/select/esm/components/base-select/index.css +7 -10
  532. package/select/esm/components/base-select/index.js +1 -1
  533. package/select/esm/components/checkmark/Component.js +1 -1
  534. package/select/esm/components/checkmark/index.css +3 -6
  535. package/select/esm/components/field/Component.d.ts +1 -1
  536. package/select/esm/components/field/Component.js +2 -2
  537. package/select/esm/components/field/index.css +9 -12
  538. package/select/esm/components/field/index.js +1 -1
  539. package/select/esm/components/index.js +1 -1
  540. package/select/esm/components/native-select/Component.js +1 -1
  541. package/select/esm/components/native-select/index.js +1 -1
  542. package/select/esm/components/optgroup/Component.js +1 -1
  543. package/select/esm/components/optgroup/index.css +6 -9
  544. package/select/esm/components/option/Component.js +2 -2
  545. package/select/esm/components/option/index.css +20 -23
  546. package/select/esm/components/option/index.js +1 -1
  547. package/select/esm/components/options-list/Component.js +1 -1
  548. package/select/esm/components/options-list/index.css +5 -8
  549. package/select/esm/components/virtual-options-list/Component.js +1 -1
  550. package/select/esm/components/virtual-options-list/index.css +11 -14
  551. package/select/esm/index.js +1 -1
  552. package/select/esm/presets/index.js +1 -1
  553. package/select/esm/presets/useLazyLoading/hook.js +2 -2
  554. package/select/esm/presets/useLazyLoading/index.css +2 -2
  555. package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
  556. package/select/esm/presets/useSelectWithLoading/index.css +2 -2
  557. package/{modal/tslib.es6-942ff754.d.ts → select/esm/tslib.es6-8b45cf3d.d.ts} +0 -0
  558. package/select/esm/{tslib.es6-16156773.js → tslib.es6-8b45cf3d.js} +0 -0
  559. package/select/esm/typings.d.ts +2 -2
  560. package/select/index.js +1 -1
  561. package/select/modern/Component.d.ts +2 -2
  562. package/select/modern/components/arrow/Component.js +1 -1
  563. package/select/modern/components/arrow/index.css +3 -8
  564. package/select/modern/components/base-select/Component.js +1 -1
  565. package/select/modern/components/base-select/index.css +7 -10
  566. package/select/modern/components/checkmark/Component.js +1 -1
  567. package/select/modern/components/checkmark/index.css +3 -6
  568. package/select/modern/components/field/Component.d.ts +1 -1
  569. package/select/modern/components/field/Component.js +1 -1
  570. package/select/modern/components/field/index.css +9 -12
  571. package/select/modern/components/optgroup/Component.js +1 -1
  572. package/select/modern/components/optgroup/index.css +6 -9
  573. package/select/modern/components/option/Component.js +1 -1
  574. package/select/modern/components/option/index.css +20 -23
  575. package/select/modern/components/options-list/Component.js +1 -1
  576. package/select/modern/components/options-list/index.css +5 -8
  577. package/select/modern/components/virtual-options-list/Component.js +1 -1
  578. package/select/modern/components/virtual-options-list/index.css +11 -14
  579. package/select/modern/presets/useLazyLoading/hook.js +1 -1
  580. package/select/modern/presets/useLazyLoading/index.css +2 -2
  581. package/select/modern/presets/useSelectWithLoading/hook.js +1 -1
  582. package/select/modern/presets/useSelectWithLoading/index.css +2 -2
  583. package/select/modern/typings.d.ts +2 -2
  584. package/select/presets/index.js +1 -1
  585. package/select/presets/useLazyLoading/hook.js +2 -2
  586. package/select/presets/useLazyLoading/index.css +2 -2
  587. package/select/presets/useSelectWithLoading/hook.js +2 -2
  588. package/select/presets/useSelectWithLoading/index.css +2 -2
  589. package/{select-with-tags/cssm/tslib.es6-ce870b46.d.ts → select/tslib.es6-eca95c76.d.ts} +0 -0
  590. package/select/{cssm/tslib.es6-f8106a15.js → tslib.es6-eca95c76.js} +0 -0
  591. package/select/typings.d.ts +2 -2
  592. package/select-with-tags/component.js +1 -1
  593. package/select-with-tags/components/index.js +1 -1
  594. package/select-with-tags/components/tag/component.js +1 -1
  595. package/select-with-tags/components/tag/index.js +1 -1
  596. package/select-with-tags/components/tag-list/component.js +1 -1
  597. package/select-with-tags/components/tag-list/index.css +0 -3
  598. package/select-with-tags/components/tag-list/index.js +1 -1
  599. package/select-with-tags/esm/component.js +1 -1
  600. package/select-with-tags/esm/components/index.js +1 -1
  601. package/select-with-tags/esm/components/tag/component.js +1 -1
  602. package/select-with-tags/esm/components/tag/index.js +1 -1
  603. package/select-with-tags/esm/components/tag-list/component.js +1 -1
  604. package/select-with-tags/esm/components/tag-list/index.css +0 -3
  605. package/select-with-tags/esm/components/tag-list/index.js +1 -1
  606. package/select-with-tags/esm/index.js +1 -1
  607. package/{modal/cssm/tslib.es6-ce870b46.d.ts → select-with-tags/esm/tslib.es6-b33b0ccb.d.ts} +0 -0
  608. package/select-with-tags/esm/{tslib.es6-804a16a0.js → tslib.es6-b33b0ccb.js} +0 -0
  609. package/select-with-tags/esm/utils/index.js +1 -1
  610. package/select-with-tags/esm/utils/match.js +1 -1
  611. package/select-with-tags/index.js +1 -1
  612. package/select-with-tags/modern/components/tag-list/index.css +0 -3
  613. package/{modal/esm/tslib.es6-f7ad96ab.d.ts → select-with-tags/tslib.es6-f7cea14b.d.ts} +0 -0
  614. package/{modal/cssm/tslib.es6-ce870b46.js → select-with-tags/tslib.es6-f7cea14b.js} +0 -0
  615. package/select-with-tags/utils/index.js +1 -1
  616. package/select-with-tags/utils/match.js +1 -1
  617. package/skeleton/esm/index.css +0 -3
  618. package/skeleton/index.css +0 -3
  619. package/skeleton/modern/index.css +0 -3
  620. package/slider/esm/index.css +0 -3
  621. package/slider/index.css +0 -3
  622. package/slider/modern/index.css +0 -3
  623. package/slider-input/esm/index.css +0 -3
  624. package/slider-input/index.css +0 -3
  625. package/slider-input/modern/index.css +0 -3
  626. package/space/Component.js +1 -1
  627. package/space/{Item-25b63883.d.ts → Item-0663dca1.d.ts} +0 -0
  628. package/space/{Item-25b63883.js → Item-0663dca1.js} +0 -0
  629. package/space/Item.js +1 -1
  630. package/space/esm/Component.js +1 -1
  631. package/space/{cssm/Item-09e1c4dc.d.ts → esm/Item-2e3eb353.d.ts} +0 -0
  632. package/space/esm/{Item-e38f68be.js → Item-2e3eb353.js} +0 -0
  633. package/space/esm/Item.js +1 -1
  634. package/space/esm/index.css +0 -5
  635. package/space/esm/index.js +1 -1
  636. package/space/index.css +0 -5
  637. package/space/index.js +1 -1
  638. package/space/modern/index.css +0 -5
  639. package/status/esm/index.css +0 -3
  640. package/status/index.css +0 -3
  641. package/status/modern/index.css +0 -3
  642. package/stepped-progress-bar/esm/index.css +0 -3
  643. package/stepped-progress-bar/index.css +0 -3
  644. package/stepped-progress-bar/modern/index.css +0 -3
  645. package/switch/esm/index.css +0 -3
  646. package/switch/index.css +0 -3
  647. package/switch/modern/index.css +0 -3
  648. package/tabs/components/primary-tablist/Component.desktop.js +2 -2
  649. package/tabs/components/primary-tablist/Component.js +1 -1
  650. package/tabs/components/primary-tablist/Component.mobile.js +2 -2
  651. package/tabs/components/primary-tablist/Component.responsive.js +2 -2
  652. package/tabs/components/primary-tablist/index.css +0 -3
  653. package/tabs/components/primary-tablist/mobile.css +20 -7
  654. package/tabs/components/scrollable-container/index.css +0 -5
  655. package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
  656. package/tabs/components/secondary-tablist/Component.js +1 -1
  657. package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
  658. package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
  659. package/tabs/components/secondary-tablist/index.css +0 -5
  660. package/tabs/components/secondary-tablist/mobile.css +20 -7
  661. package/tabs/components/tabs/Component.desktop.js +3 -3
  662. package/tabs/components/tabs/Component.mobile.js +3 -3
  663. package/tabs/components/tabs/Component.responsive.js +3 -3
  664. package/tabs/desktop.js +3 -3
  665. package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
  666. package/tabs/esm/components/primary-tablist/Component.js +1 -1
  667. package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
  668. package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
  669. package/tabs/esm/components/primary-tablist/index.css +0 -3
  670. package/tabs/esm/components/primary-tablist/mobile.css +20 -7
  671. package/tabs/esm/components/scrollable-container/index.css +0 -5
  672. package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
  673. package/tabs/esm/components/secondary-tablist/Component.js +1 -1
  674. package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
  675. package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
  676. package/tabs/esm/components/secondary-tablist/index.css +0 -5
  677. package/tabs/esm/components/secondary-tablist/mobile.css +20 -7
  678. package/tabs/esm/components/tabs/Component.desktop.js +3 -3
  679. package/tabs/esm/components/tabs/Component.mobile.js +3 -3
  680. package/tabs/esm/components/tabs/Component.responsive.js +3 -3
  681. package/tabs/esm/desktop.js +3 -3
  682. package/tabs/esm/index.js +3 -3
  683. package/tabs/esm/{index.module-a937ba0c.js → index.module-4dc6bbaa.js} +0 -0
  684. package/tabs/esm/{index.module-bc41e7d6.js → index.module-936763a2.js} +0 -0
  685. package/tabs/esm/mobile.js +3 -3
  686. package/tabs/esm/responsive.js +3 -3
  687. package/{select-with-tags/esm/tslib.es6-804a16a0.d.ts → tabs/esm/tslib.es6-4c8e5e12.d.ts} +0 -0
  688. package/tabs/esm/{tslib.es6-76e00eac.js → tslib.es6-4c8e5e12.js} +0 -0
  689. package/tabs/index.js +3 -3
  690. package/tabs/{index.module-f954e53a.js → index.module-c431d803.js} +0 -0
  691. package/tabs/{index.module-a9002643.js → index.module-c4eddd2e.js} +0 -0
  692. package/tabs/mobile.js +3 -3
  693. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  694. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  695. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  696. package/tabs/modern/components/primary-tablist/index.css +0 -3
  697. package/tabs/modern/components/primary-tablist/mobile.css +20 -7
  698. package/tabs/modern/components/scrollable-container/index.css +0 -5
  699. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  700. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  701. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  702. package/tabs/modern/components/secondary-tablist/index.css +0 -5
  703. package/tabs/modern/components/secondary-tablist/mobile.css +20 -7
  704. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  705. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  706. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  707. package/tabs/modern/desktop.js +2 -2
  708. package/tabs/modern/index.js +2 -2
  709. package/tabs/modern/{index.module-a937ba0c.js → index.module-4dc6bbaa.js} +0 -0
  710. package/tabs/modern/{index.module-bc41e7d6.js → index.module-936763a2.js} +0 -0
  711. package/tabs/modern/mobile.js +2 -2
  712. package/tabs/modern/responsive.js +2 -2
  713. package/tabs/responsive.js +3 -3
  714. package/{select-with-tags/tslib.es6-40228fff.d.ts → tabs/tslib.es6-32178775.d.ts} +0 -0
  715. package/{modal/tslib.es6-942ff754.js → tabs/tslib.es6-32178775.js} +0 -0
  716. package/tag/default.css +0 -3
  717. package/tag/esm/default.css +0 -3
  718. package/tag/esm/index.css +0 -3
  719. package/tag/esm/inverted.css +0 -3
  720. package/tag/index.css +0 -3
  721. package/tag/inverted.css +0 -3
  722. package/tag/modern/default.css +0 -3
  723. package/tag/modern/index.css +0 -3
  724. package/tag/modern/inverted.css +0 -3
  725. package/textarea/Component.d.ts +2 -2
  726. package/textarea/default.css +3 -3
  727. package/textarea/esm/Component.d.ts +2 -2
  728. package/textarea/esm/default.css +3 -3
  729. package/textarea/esm/index.css +0 -3
  730. package/textarea/esm/inverted.css +3 -3
  731. package/textarea/index.css +0 -3
  732. package/textarea/inverted.css +3 -3
  733. package/textarea/modern/Component.d.ts +2 -2
  734. package/textarea/modern/default.css +3 -3
  735. package/textarea/modern/index.css +0 -3
  736. package/textarea/modern/inverted.css +3 -3
  737. package/themes/backdrop/click.css +0 -3
  738. package/themes/button/click.css +0 -10
  739. package/themes/button/corp.css +4 -13
  740. package/themes/button/mobile.css +0 -9
  741. package/themes/calendar/click.css +0 -5
  742. package/themes/checkbox/click.css +0 -5
  743. package/themes/checkbox/mobile.css +0 -8
  744. package/themes/click.css +589 -302
  745. package/themes/compiled/mobile-dark-bluetint.css +723 -0
  746. package/themes/compiled/mobile-dark-bluetint.d.ts +2 -0
  747. package/themes/compiled/mobile-dark-bluetint.js +9 -0
  748. package/themes/confirmation/click.css +0 -5
  749. package/themes/corp.css +494 -27
  750. package/themes/dark.css +134 -0
  751. package/themes/dark.d.ts +2 -0
  752. package/themes/dark.js +10 -0
  753. package/themes/dist/amount/click.css +4 -0
  754. package/themes/dist/backdrop/click.css +4 -0
  755. package/themes/dist/button/click.css +13 -0
  756. package/themes/dist/button/corp.css +21 -0
  757. package/themes/dist/button/mobile.css +19 -0
  758. package/themes/dist/button/site.css +5 -0
  759. package/themes/dist/calendar/click.css +11 -0
  760. package/themes/dist/calendar-input/mobile.css +3 -0
  761. package/themes/dist/checkbox/click.css +9 -0
  762. package/themes/dist/checkbox/mobile.css +19 -0
  763. package/themes/dist/click.css +693 -0
  764. package/themes/dist/compiled/mobile-dark-bluetint.css +1752 -0
  765. package/themes/dist/compiled/mobile-dark-bluetint.d.ts +2 -0
  766. package/themes/dist/compiled/mobile-dark-bluetint.js +11 -0
  767. package/themes/dist/confirmation/click.css +12 -0
  768. package/themes/dist/confirmation/mobile.css +7 -0
  769. package/themes/dist/corp.css +517 -0
  770. package/themes/dist/dark.css +134 -0
  771. package/themes/dist/dark.d.ts +2 -0
  772. package/themes/dist/dark.js +12 -0
  773. package/themes/dist/dropzone/click.css +5 -0
  774. package/themes/dist/esm/compiled/mobile-dark-bluetint.d.ts +2 -0
  775. package/themes/dist/esm/compiled/mobile-dark-bluetint.js +4 -0
  776. package/themes/dist/esm/dark.d.ts +2 -0
  777. package/themes/dist/esm/dark.js +6 -0
  778. package/themes/dist/form-control/click.css +31 -0
  779. package/themes/dist/form-control/mobile.css +34 -0
  780. package/themes/dist/form-control/site.css +5 -0
  781. package/themes/dist/input/click.css +8 -0
  782. package/themes/dist/input/corp.css +3 -0
  783. package/themes/dist/input/mobile.css +13 -0
  784. package/themes/dist/input/site.css +4 -0
  785. package/themes/dist/link/click.css +25 -0
  786. package/themes/dist/list/click.css +4 -0
  787. package/themes/dist/mixins/amount/click.css +4 -0
  788. package/themes/dist/mixins/backdrop/click.css +4 -0
  789. package/themes/dist/mixins/button/click.css +13 -0
  790. package/themes/dist/mixins/button/corp.css +21 -0
  791. package/themes/dist/mixins/button/mobile.css +19 -0
  792. package/themes/dist/mixins/button/site.css +5 -0
  793. package/themes/dist/mixins/calendar/click.css +11 -0
  794. package/themes/dist/mixins/calendar-input/mobile.css +3 -0
  795. package/themes/dist/mixins/checkbox/click.css +9 -0
  796. package/themes/dist/mixins/checkbox/mobile.css +19 -0
  797. package/themes/dist/mixins/click.css +46 -0
  798. package/themes/dist/mixins/confirmation/click.css +12 -0
  799. package/themes/dist/mixins/confirmation/mobile.css +7 -0
  800. package/themes/dist/mixins/corp.css +9 -0
  801. package/themes/dist/mixins/dark.css +134 -0
  802. package/themes/dist/mixins/dropzone/click.css +5 -0
  803. package/themes/dist/mixins/form-control/click.css +31 -0
  804. package/themes/dist/mixins/form-control/mobile.css +34 -0
  805. package/themes/dist/mixins/form-control/site.css +5 -0
  806. package/themes/dist/mixins/input/click.css +8 -0
  807. package/themes/dist/mixins/input/corp.css +3 -0
  808. package/themes/dist/mixins/input/mobile.css +13 -0
  809. package/themes/dist/mixins/input/site.css +4 -0
  810. package/themes/dist/mixins/link/click.css +25 -0
  811. package/themes/dist/mixins/list/click.css +4 -0
  812. package/themes/dist/mixins/mobile.css +25 -0
  813. package/themes/dist/mixins/modal/click.css +29 -0
  814. package/themes/dist/mixins/radio/click.css +9 -0
  815. package/themes/dist/mixins/radio/mobile.css +19 -0
  816. package/themes/dist/mixins/select/click.css +18 -0
  817. package/themes/dist/mixins/site.css +11 -0
  818. package/themes/dist/mixins/skeleton/click.css +8 -0
  819. package/themes/dist/mixins/slider/click.css +16 -0
  820. package/themes/dist/mixins/slider/mobile.css +5 -0
  821. package/themes/dist/mixins/slider-input/mobile.css +3 -0
  822. package/themes/dist/mixins/switch/click.css +5 -0
  823. package/themes/dist/mixins/tabs/click.css +20 -0
  824. package/themes/dist/mixins/tabs/corp.css +4 -0
  825. package/themes/dist/mixins/tabs/site.css +8 -0
  826. package/themes/dist/mixins/tag/click.css +11 -0
  827. package/themes/dist/mixins/tag/mobile.css +14 -0
  828. package/themes/dist/mixins/toast-plate/click.css +8 -0
  829. package/themes/dist/mobile.css +594 -0
  830. package/themes/dist/modal/click.css +29 -0
  831. package/themes/dist/modern/compiled/mobile-dark-bluetint.d.ts +2 -0
  832. package/themes/dist/modern/compiled/mobile-dark-bluetint.js +4 -0
  833. package/themes/dist/modern/dark.d.ts +2 -0
  834. package/themes/dist/modern/dark.js +6 -0
  835. package/themes/dist/package.json +12 -0
  836. package/themes/dist/radio/click.css +9 -0
  837. package/themes/dist/radio/mobile.css +19 -0
  838. package/themes/dist/select/click.css +18 -0
  839. package/{dark-theme-styles-injector → themes/dist}/send-stats.js +0 -0
  840. package/themes/dist/site.css +511 -0
  841. package/themes/dist/skeleton/click.css +8 -0
  842. package/themes/dist/slider/click.css +16 -0
  843. package/themes/dist/slider/mobile.css +5 -0
  844. package/themes/dist/slider-input/mobile.css +3 -0
  845. package/themes/dist/switch/click.css +5 -0
  846. package/themes/dist/tabs/click.css +20 -0
  847. package/themes/dist/tabs/corp.css +4 -0
  848. package/themes/dist/tabs/site.css +8 -0
  849. package/themes/dist/tag/click.css +11 -0
  850. package/themes/dist/tag/mobile.css +14 -0
  851. package/themes/dist/toast-plate/click.css +8 -0
  852. package/themes/dropzone/click.css +5 -0
  853. package/themes/esm/compiled/mobile-dark-bluetint.d.ts +2 -0
  854. package/themes/esm/compiled/mobile-dark-bluetint.js +1 -0
  855. package/themes/esm/dark.d.ts +2 -0
  856. package/themes/esm/dark.js +6 -0
  857. package/themes/form-control/click.css +0 -8
  858. package/themes/form-control/mobile.css +0 -7
  859. package/themes/input/click.css +0 -4
  860. package/themes/input/mobile.css +0 -9
  861. package/themes/link/click.css +6 -19
  862. package/themes/list/click.css +0 -3
  863. package/themes/mixins/backdrop/click.css +0 -3
  864. package/themes/mixins/button/click.css +0 -10
  865. package/themes/mixins/button/corp.css +4 -13
  866. package/themes/mixins/button/mobile.css +0 -9
  867. package/themes/mixins/calendar/click.css +0 -5
  868. package/themes/mixins/checkbox/click.css +0 -5
  869. package/themes/mixins/checkbox/mobile.css +0 -8
  870. package/themes/mixins/click.css +2 -0
  871. package/themes/mixins/confirmation/click.css +0 -5
  872. package/themes/mixins/dark.css +134 -0
  873. package/themes/mixins/dropzone/click.css +5 -0
  874. package/themes/mixins/form-control/click.css +0 -8
  875. package/themes/mixins/form-control/mobile.css +0 -7
  876. package/themes/mixins/input/click.css +0 -4
  877. package/themes/mixins/input/mobile.css +0 -9
  878. package/themes/mixins/link/click.css +6 -19
  879. package/themes/mixins/list/click.css +0 -3
  880. package/themes/mixins/modal/click.css +0 -10
  881. package/themes/mixins/radio/click.css +0 -5
  882. package/themes/mixins/radio/mobile.css +0 -8
  883. package/themes/mixins/skeleton/click.css +0 -4
  884. package/themes/mixins/slider/click.css +0 -10
  885. package/themes/mixins/switch/click.css +0 -3
  886. package/themes/mixins/tabs/click.css +0 -6
  887. package/themes/mixins/tabs/corp.css +0 -3
  888. package/themes/mixins/tabs/site.css +0 -4
  889. package/themes/mixins/tag/click.css +0 -5
  890. package/themes/mixins/tag/mobile.css +0 -7
  891. package/themes/mixins/toast-plate/click.css +0 -4
  892. package/themes/mobile.css +512 -133
  893. package/themes/modal/click.css +0 -10
  894. package/themes/modern/compiled/mobile-dark-bluetint.d.ts +2 -0
  895. package/themes/modern/compiled/mobile-dark-bluetint.js +1 -0
  896. package/themes/modern/dark.d.ts +2 -0
  897. package/themes/modern/dark.js +6 -0
  898. package/themes/package.json +1 -10
  899. package/themes/radio/click.css +0 -5
  900. package/themes/radio/mobile.css +0 -8
  901. package/themes/send-stats.js +82 -0
  902. package/themes/site.css +496 -24
  903. package/themes/skeleton/click.css +0 -4
  904. package/themes/slider/click.css +0 -10
  905. package/themes/switch/click.css +0 -3
  906. package/themes/tabs/click.css +0 -6
  907. package/themes/tabs/corp.css +0 -3
  908. package/themes/tabs/site.css +0 -4
  909. package/themes/tag/click.css +0 -5
  910. package/themes/tag/mobile.css +0 -7
  911. package/themes/toast-plate/click.css +0 -4
  912. package/toast/esm/index.css +0 -5
  913. package/toast/index.css +0 -5
  914. package/toast/modern/index.css +0 -5
  915. package/toast-plate/esm/index.css +20 -4
  916. package/toast-plate/index.css +20 -4
  917. package/toast-plate/modern/index.css +20 -4
  918. package/tooltip/{Component-84e0384c.d.ts → Component-fd17e172.d.ts} +0 -0
  919. package/tooltip/{Component-84e0384c.js → Component-fd17e172.js} +0 -0
  920. package/tooltip/Component.js +1 -1
  921. package/tooltip/component.responsive.js +1 -1
  922. package/tooltip/{cssm/Component-1d6b7d3e.d.ts → esm/Component-d059ddd0.d.ts} +0 -0
  923. package/tooltip/esm/{Component-24cdba1a.js → Component-d059ddd0.js} +0 -0
  924. package/tooltip/esm/Component.js +1 -1
  925. package/tooltip/esm/component.responsive.js +1 -1
  926. package/tooltip/esm/index.css +0 -3
  927. package/tooltip/esm/index.d.ts +1 -1
  928. package/tooltip/esm/index.js +1 -1
  929. package/tooltip/esm/responsive.js +1 -1
  930. package/tooltip/index.css +0 -3
  931. package/tooltip/index.d.ts +1 -1
  932. package/tooltip/index.js +1 -1
  933. package/tooltip/modern/index.css +0 -3
  934. package/tooltip/responsive.js +1 -1
  935. package/typography/colors.css +0 -3
  936. package/{select/cssm/tslib.es6-f8106a15.d.ts → typography/colors.module-7d312c25.d.ts} +0 -0
  937. package/typography/{colors.module-420a9860.js → colors.module-7d312c25.js} +0 -0
  938. package/typography/{common.module-b0f51443.js → common.module-c6130e05.js} +0 -0
  939. package/typography/component.js +2 -2
  940. package/typography/esm/colors.css +0 -3
  941. package/{select/esm/tslib.es6-16156773.d.ts → typography/esm/colors.module-c988507f.d.ts} +0 -0
  942. package/typography/esm/{colors.module-d9df1b1f.js → colors.module-c988507f.js} +0 -0
  943. package/typography/esm/{common.module-a1e46866.js → common.module-15dfca9d.js} +0 -0
  944. package/typography/esm/component.js +2 -2
  945. package/typography/esm/index.js +2 -2
  946. package/typography/esm/text/component.d.ts +36 -2
  947. package/typography/esm/text/component.js +5 -5
  948. package/typography/esm/text/index.css +0 -5
  949. package/typography/esm/text/index.js +1 -1
  950. package/typography/esm/title/component.d.ts +39 -1
  951. package/typography/esm/title/component.js +5 -5
  952. package/typography/esm/title/index.css +0 -5
  953. package/typography/esm/title/index.js +2 -2
  954. package/typography/esm/title-responsive/component.js +2 -2
  955. package/typography/esm/title-responsive/index.css +0 -5
  956. package/typography/esm/title-responsive/index.js +2 -2
  957. package/typography/index.js +2 -2
  958. package/typography/modern/colors.css +0 -3
  959. package/typography/modern/{colors.module-e0852db7.js → colors.module-3f74b55a.js} +0 -0
  960. package/typography/modern/{common.module-a1e46866.js → common.module-15dfca9d.js} +0 -0
  961. package/typography/modern/component.js +2 -2
  962. package/typography/modern/index.js +2 -2
  963. package/typography/modern/text/component.d.ts +36 -2
  964. package/typography/modern/text/component.js +3 -3
  965. package/typography/modern/text/index.css +0 -5
  966. package/typography/modern/text/index.js +1 -1
  967. package/typography/modern/title/component.d.ts +39 -1
  968. package/typography/modern/title/component.js +3 -3
  969. package/typography/modern/title/index.css +0 -5
  970. package/typography/modern/title/index.js +2 -2
  971. package/typography/modern/title-responsive/component.js +2 -2
  972. package/typography/modern/title-responsive/index.css +0 -5
  973. package/typography/modern/title-responsive/index.js +2 -2
  974. package/typography/text/component.d.ts +36 -2
  975. package/typography/text/component.js +4 -4
  976. package/typography/text/index.css +0 -5
  977. package/typography/text/index.js +1 -1
  978. package/typography/title/component.d.ts +39 -1
  979. package/typography/title/component.js +4 -4
  980. package/typography/title/index.css +0 -5
  981. package/typography/title/index.js +2 -2
  982. package/typography/title-responsive/component.js +2 -2
  983. package/typography/title-responsive/index.css +0 -5
  984. package/typography/title-responsive/index.js +2 -2
  985. package/vars/colors-bluetint.css +41 -27
  986. package/vars/colors-bluetint.d.ts +2 -0
  987. package/vars/colors-bluetint.js +10 -0
  988. package/vars/colors-indigo.css +22 -4
  989. package/vars/colors-indigo.d.ts +2 -0
  990. package/vars/colors-indigo.js +10 -0
  991. package/vars/dist/border-radius.css +9 -0
  992. package/vars/dist/colors-addons.css +55 -0
  993. package/vars/dist/colors-bluetint.css +246 -0
  994. package/vars/dist/colors-bluetint.d.ts +2 -0
  995. package/vars/dist/colors-bluetint.js +12 -0
  996. package/vars/dist/colors-indigo.css +268 -0
  997. package/vars/dist/colors-indigo.d.ts +2 -0
  998. package/vars/dist/colors-indigo.js +12 -0
  999. package/vars/dist/colors-transparent.css +22 -0
  1000. package/vars/dist/colors.css +71 -0
  1001. package/vars/dist/cssm/border-radius.css +9 -0
  1002. package/vars/dist/cssm/colors-addons.css +55 -0
  1003. package/vars/dist/cssm/colors-bluetint.css +246 -0
  1004. package/vars/dist/cssm/colors-bluetint.d.ts +2 -0
  1005. package/vars/dist/cssm/colors-bluetint.js +12 -0
  1006. package/vars/dist/cssm/colors-indigo.css +264 -0
  1007. package/vars/dist/cssm/colors-indigo.d.ts +2 -0
  1008. package/vars/dist/cssm/colors-indigo.js +12 -0
  1009. package/vars/dist/cssm/colors-transparent.css +22 -0
  1010. package/vars/dist/cssm/colors.css +71 -0
  1011. package/vars/dist/cssm/gaps.css +30 -0
  1012. package/vars/dist/cssm/index.css +495 -0
  1013. package/{amount/cssm/types/amount-props.js → vars/dist/cssm/mixins.css} +0 -0
  1014. package/vars/dist/cssm/shadows-indigo.css +38 -0
  1015. package/vars/dist/cssm/typography.css +6 -0
  1016. package/vars/dist/esm/colors-bluetint.d.ts +2 -0
  1017. package/vars/dist/esm/colors-bluetint.js +6 -0
  1018. package/vars/dist/esm/colors-indigo.d.ts +2 -0
  1019. package/vars/dist/esm/colors-indigo.js +6 -0
  1020. package/vars/dist/gaps.css +30 -0
  1021. package/vars/dist/index.css +9 -0
  1022. package/vars/dist/mixins.css +4 -0
  1023. package/vars/dist/modern/colors-bluetint.d.ts +2 -0
  1024. package/vars/dist/modern/colors-bluetint.js +6 -0
  1025. package/vars/dist/modern/colors-indigo.d.ts +2 -0
  1026. package/vars/dist/modern/colors-indigo.js +6 -0
  1027. package/vars/dist/package.json +13 -0
  1028. package/vars/dist/send-stats.js +82 -0
  1029. package/vars/dist/shadows-indigo.css +38 -0
  1030. package/vars/dist/typography.css +486 -0
  1031. package/vars/esm/colors-bluetint.d.ts +2 -0
  1032. package/vars/esm/colors-bluetint.js +6 -0
  1033. package/vars/esm/colors-indigo.d.ts +2 -0
  1034. package/vars/esm/colors-indigo.js +6 -0
  1035. package/vars/modern/colors-bluetint.d.ts +2 -0
  1036. package/vars/modern/colors-bluetint.js +6 -0
  1037. package/vars/modern/colors-indigo.d.ts +2 -0
  1038. package/vars/modern/colors-indigo.js +6 -0
  1039. package/vars/package.json +1 -11
  1040. package/vars/send-stats.js +82 -0
  1041. package/vars/typography.css +36 -0
  1042. package/with-suffix/Component.d.ts +2 -2
  1043. package/with-suffix/esm/Component.d.ts +2 -2
  1044. package/with-suffix/modern/Component.d.ts +2 -2
  1045. package/alert/cssm/Component.d.ts +0 -5
  1046. package/alert/cssm/Component.js +0 -58
  1047. package/alert/cssm/index.js +0 -11
  1048. package/alert/cssm/index.module.css +0 -42
  1049. package/amount/cssm/component.d.ts +0 -9
  1050. package/amount/cssm/component.js +0 -35
  1051. package/amount/cssm/index.d.ts +0 -8
  1052. package/amount/cssm/index.js +0 -14
  1053. package/amount/cssm/index.module.css +0 -25
  1054. package/amount/cssm/pure/component.d.ts +0 -10
  1055. package/amount/cssm/pure/component.js +0 -30
  1056. package/amount/cssm/pure/index.d.ts +0 -1
  1057. package/amount/cssm/pure/index.js +0 -11
  1058. package/amount/cssm/pure/index.module.css +0 -3
  1059. package/amount/cssm/types/amount-props.d.ts +0 -29
  1060. package/amount/cssm/types/index.d.ts +0 -2
  1061. package/amount/cssm/types/index.js +0 -1
  1062. package/amount-input/cssm/Component.d.ts +0 -98
  1063. package/amount-input/cssm/Component.js +0 -168
  1064. package/amount-input/cssm/default.module.css +0 -20
  1065. package/amount-input/cssm/index.js +0 -16
  1066. package/amount-input/cssm/index.module.css +0 -40
  1067. package/amount-input/cssm/inverted.module.css +0 -21
  1068. package/amount-input/cssm/utils/index.d.ts +0 -10
  1069. package/amount-input/cssm/utils/index.js +0 -40
  1070. package/attach/cssm/Component.d.ts +0 -133
  1071. package/attach/cssm/Component.js +0 -145
  1072. package/attach/cssm/index.js +0 -18
  1073. package/attach/cssm/index.module.css +0 -108
  1074. package/attach/cssm/utils/index.d.ts +0 -2
  1075. package/attach/cssm/utils/index.js +0 -11
  1076. package/backdrop/cssm/Component.d.ts +0 -36
  1077. package/backdrop/cssm/Component.js +0 -62
  1078. package/backdrop/cssm/index.d.ts +0 -1
  1079. package/backdrop/cssm/index.js +0 -11
  1080. package/backdrop/cssm/index.module.css +0 -49
  1081. package/backdrop/cssm/vars.css +0 -13
  1082. package/badge/cssm/Component.d.ts +0 -34
  1083. package/badge/cssm/Component.js +0 -26
  1084. package/badge/cssm/index.d.ts +0 -1
  1085. package/badge/cssm/index.js +0 -10
  1086. package/badge/cssm/index.module.css +0 -117
  1087. package/bank-card/cssm/Component.d.ts +0 -41
  1088. package/bank-card/cssm/Component.js +0 -70
  1089. package/bank-card/cssm/index.d.ts +0 -1
  1090. package/bank-card/cssm/index.js +0 -15
  1091. package/bank-card/cssm/index.module.css +0 -617
  1092. package/bank-card/cssm/utils.d.ts +0 -8
  1093. package/bank-card/cssm/utils.js +0 -27
  1094. package/base-modal/cssm/Component.d.ts +0 -125
  1095. package/base-modal/cssm/Component.js +0 -236
  1096. package/base-modal/cssm/index.d.ts +0 -2
  1097. package/base-modal/cssm/index.js +0 -23
  1098. package/base-modal/cssm/index.module.css +0 -64
  1099. package/base-modal/cssm/utils.d.ts +0 -5
  1100. package/base-modal/cssm/utils.js +0 -80
  1101. package/bottom-sheet/Component-75c61faf.js +0 -56
  1102. package/bottom-sheet/cssm/Component-3a3629ef.js +0 -56
  1103. package/bottom-sheet/cssm/component.d.ts +0 -55
  1104. package/bottom-sheet/cssm/component.js +0 -150
  1105. package/bottom-sheet/cssm/components/footer/Component.d.ts +0 -13
  1106. package/bottom-sheet/cssm/components/footer/Component.js +0 -26
  1107. package/bottom-sheet/cssm/components/footer/index.module.css +0 -28
  1108. package/bottom-sheet/cssm/components/swipeable-backdrop/Component.d.ts +0 -0
  1109. package/bottom-sheet/cssm/components/swipeable-backdrop/Component.js +0 -9
  1110. package/bottom-sheet/cssm/index.d.ts +0 -1
  1111. package/bottom-sheet/cssm/index.js +0 -18
  1112. package/bottom-sheet/cssm/index.module.css +0 -94
  1113. package/bottom-sheet/esm/Component-00c8f157.d.ts +0 -50
  1114. package/bottom-sheet/esm/Component-00c8f157.js +0 -52
  1115. package/button/cssm/Component.d.ts +0 -63
  1116. package/button/cssm/Component.js +0 -129
  1117. package/button/cssm/default.module.css +0 -196
  1118. package/button/cssm/index.d.ts +0 -1
  1119. package/button/cssm/index.js +0 -16
  1120. package/button/cssm/index.module.css +0 -190
  1121. package/button/cssm/inverted.module.css +0 -184
  1122. package/calendar/cssm/Component.d.ts +0 -67
  1123. package/calendar/cssm/Component.js +0 -103
  1124. package/calendar/cssm/components/days-table/Component.d.ts +0 -32
  1125. package/calendar/cssm/components/days-table/Component.js +0 -77
  1126. package/calendar/cssm/components/days-table/index.d.ts +0 -1
  1127. package/calendar/cssm/components/days-table/index.js +0 -16
  1128. package/calendar/cssm/components/days-table/index.module.css +0 -243
  1129. package/calendar/cssm/components/header/Component.d.ts +0 -46
  1130. package/calendar/cssm/components/header/Component.js +0 -38
  1131. package/calendar/cssm/components/header/index.d.ts +0 -1
  1132. package/calendar/cssm/components/header/index.js +0 -14
  1133. package/calendar/cssm/components/header/index.module.css +0 -113
  1134. package/calendar/cssm/components/months-table/Component.d.ts +0 -18
  1135. package/calendar/cssm/components/months-table/Component.js +0 -30
  1136. package/calendar/cssm/components/months-table/index.d.ts +0 -1
  1137. package/calendar/cssm/components/months-table/index.js +0 -16
  1138. package/calendar/cssm/components/months-table/index.module.css +0 -51
  1139. package/calendar/cssm/components/select-button/Component.d.ts +0 -24
  1140. package/calendar/cssm/components/select-button/Component.js +0 -20
  1141. package/calendar/cssm/components/select-button/index.d.ts +0 -1
  1142. package/calendar/cssm/components/select-button/index.js +0 -12
  1143. package/calendar/cssm/components/select-button/index.module.css +0 -82
  1144. package/calendar/cssm/components/years-table/Component.d.ts +0 -21
  1145. package/calendar/cssm/components/years-table/Component.js +0 -44
  1146. package/calendar/cssm/components/years-table/index.d.ts +0 -1
  1147. package/calendar/cssm/components/years-table/index.js +0 -15
  1148. package/calendar/cssm/components/years-table/index.module.css +0 -62
  1149. package/calendar/cssm/index.d.ts +0 -4
  1150. package/calendar/cssm/index.js +0 -40
  1151. package/calendar/cssm/index.module.css +0 -58
  1152. package/calendar/cssm/typings.d.ts +0 -15
  1153. package/calendar/cssm/typings.js +0 -1
  1154. package/calendar/cssm/useCalendar.d.ts +0 -89
  1155. package/calendar/cssm/useCalendar.js +0 -283
  1156. package/calendar/cssm/usePeriod.d.ts +0 -23
  1157. package/calendar/cssm/usePeriod.js +0 -67
  1158. package/calendar/cssm/utils.d.ts +0 -78
  1159. package/calendar/cssm/utils.js +0 -191
  1160. package/calendar/cssm/vars.css +0 -20
  1161. package/calendar-input/cssm/Component.d.ts +0 -169
  1162. package/calendar-input/cssm/Component.js +0 -161
  1163. package/calendar-input/cssm/index.d.ts +0 -2
  1164. package/calendar-input/cssm/index.js +0 -25
  1165. package/calendar-input/cssm/index.module.css +0 -87
  1166. package/calendar-input/cssm/stories.module.css +0 -33
  1167. package/calendar-input/cssm/utils.d.ts +0 -13
  1168. package/calendar-input/cssm/utils.js +0 -38
  1169. package/calendar-range/cssm/Component.d.ts +0 -55
  1170. package/calendar-range/cssm/Component.js +0 -196
  1171. package/calendar-range/cssm/index.d.ts +0 -1
  1172. package/calendar-range/cssm/index.js +0 -16
  1173. package/calendar-range/cssm/index.module.css +0 -38
  1174. package/calendar-range/cssm/useCalendarMaxMinDates.d.ts +0 -16
  1175. package/calendar-range/cssm/useCalendarMaxMinDates.js +0 -20
  1176. package/calendar-range/cssm/useCalendarMonthes.d.ts +0 -14
  1177. package/calendar-range/cssm/useCalendarMonthes.js +0 -44
  1178. package/calendar-range/cssm/utils.d.ts +0 -11
  1179. package/calendar-range/cssm/utils.js +0 -22
  1180. package/calendar-with-skeleton/cssm/Component.d.ts +0 -24
  1181. package/calendar-with-skeleton/cssm/Component.js +0 -74
  1182. package/calendar-with-skeleton/cssm/index.d.ts +0 -1
  1183. package/calendar-with-skeleton/cssm/index.js +0 -13
  1184. package/calendar-with-skeleton/cssm/index.module.css +0 -63
  1185. package/card-image/cssm/Component.d.ts +0 -50
  1186. package/card-image/cssm/Component.js +0 -38
  1187. package/card-image/cssm/index.d.ts +0 -1
  1188. package/card-image/cssm/index.js +0 -13
  1189. package/card-image/cssm/index.module.css +0 -35
  1190. package/cdn-icon/cssm/Component.d.ts +0 -18
  1191. package/cdn-icon/cssm/Component.js +0 -30
  1192. package/cdn-icon/cssm/index.d.ts +0 -1
  1193. package/cdn-icon/cssm/index.js +0 -9
  1194. package/cdn-icon/cssm/index.module.css +0 -19
  1195. package/checkbox/cssm/Component.d.ts +0 -112
  1196. package/checkbox/cssm/Component.js +0 -93
  1197. package/checkbox/cssm/index.d.ts +0 -1
  1198. package/checkbox/cssm/index.js +0 -13
  1199. package/checkbox/cssm/index.module.css +0 -229
  1200. package/checkbox-group/cssm/Component.d.ts +0 -50
  1201. package/checkbox-group/cssm/Component.js +0 -79
  1202. package/checkbox-group/cssm/index.d.ts +0 -1
  1203. package/checkbox-group/cssm/index.js +0 -10
  1204. package/checkbox-group/cssm/index.module.css +0 -94
  1205. package/circular-progress-bar/cssm/Component.d.ts +0 -37
  1206. package/circular-progress-bar/cssm/Component.js +0 -49
  1207. package/circular-progress-bar/cssm/index.d.ts +0 -1
  1208. package/circular-progress-bar/cssm/index.js +0 -11
  1209. package/circular-progress-bar/cssm/index.module.css +0 -96
  1210. package/collapse/cssm/Component.d.ts +0 -41
  1211. package/collapse/cssm/Component.js +0 -63
  1212. package/collapse/cssm/index.d.ts +0 -1
  1213. package/collapse/cssm/index.js +0 -14
  1214. package/collapse/cssm/index.module.css +0 -39
  1215. package/confirmation/cssm/component.d.ts +0 -136
  1216. package/confirmation/cssm/component.js +0 -110
  1217. package/confirmation/cssm/components/code-input/component.d.ts +0 -16
  1218. package/confirmation/cssm/components/code-input/component.js +0 -156
  1219. package/confirmation/cssm/components/code-input/index.d.ts +0 -1
  1220. package/confirmation/cssm/components/code-input/index.js +0 -12
  1221. package/confirmation/cssm/components/code-input/index.module.css +0 -93
  1222. package/confirmation/cssm/components/code-input/utils.d.ts +0 -10
  1223. package/confirmation/cssm/components/code-input/utils.js +0 -19
  1224. package/confirmation/cssm/components/countdown/component.d.ts +0 -23
  1225. package/confirmation/cssm/components/countdown/component.js +0 -115
  1226. package/confirmation/cssm/components/countdown/index.d.ts +0 -1
  1227. package/confirmation/cssm/components/countdown/index.js +0 -16
  1228. package/confirmation/cssm/components/countdown/index.module.css +0 -87
  1229. package/confirmation/cssm/components/countdown-loader/component.d.ts +0 -7
  1230. package/confirmation/cssm/components/countdown-loader/component.js +0 -26
  1231. package/confirmation/cssm/components/countdown-loader/index.d.ts +0 -1
  1232. package/confirmation/cssm/components/countdown-loader/index.js +0 -9
  1233. package/confirmation/cssm/components/countdown-loader/index.module.css +0 -28
  1234. package/confirmation/cssm/components/index.d.ts +0 -3
  1235. package/confirmation/cssm/components/index.js +0 -25
  1236. package/confirmation/cssm/components/sign-confirmation/component.d.ts +0 -37
  1237. package/confirmation/cssm/components/sign-confirmation/component.js +0 -62
  1238. package/confirmation/cssm/components/sign-confirmation/index.d.ts +0 -1
  1239. package/confirmation/cssm/components/sign-confirmation/index.js +0 -22
  1240. package/confirmation/cssm/components/sign-confirmation/index.module.css +0 -110
  1241. package/confirmation/cssm/index.d.ts +0 -2
  1242. package/confirmation/cssm/index.js +0 -28
  1243. package/confirmation/cssm/index.module.css +0 -121
  1244. package/confirmation/cssm/vars.css +0 -22
  1245. package/dark-theme-styles-injector/component.d.ts +0 -17
  1246. package/dark-theme-styles-injector/component.js +0 -22
  1247. package/dark-theme-styles-injector/cssm/component.d.ts +0 -17
  1248. package/dark-theme-styles-injector/cssm/component.js +0 -22
  1249. package/dark-theme-styles-injector/cssm/index.d.ts +0 -1
  1250. package/dark-theme-styles-injector/cssm/index.js +0 -10
  1251. package/dark-theme-styles-injector/esm/component.d.ts +0 -17
  1252. package/dark-theme-styles-injector/esm/component.js +0 -14
  1253. package/dark-theme-styles-injector/esm/index.d.ts +0 -1
  1254. package/dark-theme-styles-injector/esm/index.js +0 -4
  1255. package/dark-theme-styles-injector/index.d.ts +0 -1
  1256. package/dark-theme-styles-injector/index.js +0 -10
  1257. package/dark-theme-styles-injector/modern/component.d.ts +0 -17
  1258. package/dark-theme-styles-injector/modern/component.js +0 -19
  1259. package/dark-theme-styles-injector/modern/index.d.ts +0 -1
  1260. package/dark-theme-styles-injector/modern/index.js +0 -4
  1261. package/dark-theme-styles-injector/package.json +0 -3
  1262. package/date-input/cssm/Component.d.ts +0 -47
  1263. package/date-input/cssm/Component.js +0 -90
  1264. package/date-input/cssm/index.d.ts +0 -2
  1265. package/date-input/cssm/index.js +0 -25
  1266. package/date-input/cssm/index.module.css +0 -30
  1267. package/date-input/cssm/utils/date-correction-pipe.d.ts +0 -9
  1268. package/date-input/cssm/utils/date-correction-pipe.js +0 -57
  1269. package/date-input/cssm/utils/format.d.ts +0 -7
  1270. package/date-input/cssm/utils/format.js +0 -23
  1271. package/date-input/cssm/utils/index.d.ts +0 -3
  1272. package/date-input/cssm/utils/index.js +0 -20
  1273. package/date-input/cssm/utils/native-supports.d.ts +0 -7
  1274. package/date-input/cssm/utils/native-supports.js +0 -18
  1275. package/divider/cssm/Component.d.ts +0 -14
  1276. package/divider/cssm/Component.js +0 -18
  1277. package/divider/cssm/index.d.ts +0 -1
  1278. package/divider/cssm/index.js +0 -10
  1279. package/divider/cssm/index.module.css +0 -22
  1280. package/drawer/cssm/Component.d.ts +0 -20
  1281. package/drawer/cssm/Component.js +0 -92
  1282. package/drawer/cssm/index.d.ts +0 -1
  1283. package/drawer/cssm/index.js +0 -14
  1284. package/drawer/cssm/index.module.css +0 -84
  1285. package/dropzone/cssm/Component.d.ts +0 -47
  1286. package/dropzone/cssm/Component.js +0 -70
  1287. package/dropzone/cssm/index.d.ts +0 -1
  1288. package/dropzone/cssm/index.js +0 -12
  1289. package/dropzone/cssm/index.module.css +0 -78
  1290. package/dropzone/cssm/utils.d.ts +0 -3
  1291. package/dropzone/cssm/utils.js +0 -8
  1292. package/file-upload-item/cssm/Component.d.ts +0 -71
  1293. package/file-upload-item/cssm/Component.js +0 -68
  1294. package/file-upload-item/cssm/index.d.ts +0 -1
  1295. package/file-upload-item/cssm/index.js +0 -18
  1296. package/file-upload-item/cssm/index.module.css +0 -102
  1297. package/file-upload-item/cssm/utils.d.ts +0 -5
  1298. package/file-upload-item/cssm/utils.js +0 -46
  1299. package/form-control/cssm/Component.d.ts +0 -152
  1300. package/form-control/cssm/Component.js +0 -92
  1301. package/form-control/cssm/default.module.css +0 -94
  1302. package/form-control/cssm/index.d.ts +0 -1
  1303. package/form-control/cssm/index.js +0 -12
  1304. package/form-control/cssm/index.module.css +0 -233
  1305. package/form-control/cssm/inverted.module.css +0 -99
  1306. package/grid/cssm/Component.d.ts +0 -8
  1307. package/grid/cssm/Component.js +0 -18
  1308. package/grid/cssm/col/Component.d.ts +0 -54
  1309. package/grid/cssm/col/Component.js +0 -29
  1310. package/grid/cssm/col/index.d.ts +0 -1
  1311. package/grid/cssm/col/index.js +0 -13
  1312. package/grid/cssm/col/index.module.css +0 -1863
  1313. package/grid/cssm/gutters.module.css +0 -607
  1314. package/grid/cssm/index.d.ts +0 -1
  1315. package/grid/cssm/index.js +0 -16
  1316. package/grid/cssm/row/Component.d.ts +0 -43
  1317. package/grid/cssm/row/Component.js +0 -33
  1318. package/grid/cssm/row/index.d.ts +0 -1
  1319. package/grid/cssm/row/index.js +0 -13
  1320. package/grid/cssm/row/index.module.css +0 -39
  1321. package/grid/cssm/tslib.es6-3084c748.js +0 -24
  1322. package/grid/cssm/typings.d.ts +0 -16
  1323. package/grid/cssm/typings.js +0 -1
  1324. package/grid/cssm/utils/index.d.ts +0 -3
  1325. package/grid/cssm/utils/index.js +0 -37
  1326. package/icon-button/cssm/Component.d.ts +0 -61
  1327. package/icon-button/cssm/Component.js +0 -67
  1328. package/icon-button/cssm/default.module.css +0 -82
  1329. package/icon-button/cssm/index.d.ts +0 -1
  1330. package/icon-button/cssm/index.js +0 -13
  1331. package/icon-button/cssm/index.module.css +0 -40
  1332. package/icon-button/cssm/inverted.module.css +0 -73
  1333. package/input/cssm/Component.d.ts +0 -236
  1334. package/input/cssm/Component.js +0 -146
  1335. package/input/cssm/default.module.css +0 -75
  1336. package/input/cssm/index.d.ts +0 -1
  1337. package/input/cssm/index.js +0 -16
  1338. package/input/cssm/index.module.css +0 -162
  1339. package/input/cssm/inverted.module.css +0 -75
  1340. package/input-autocomplete/Component-d1c7e395.js +0 -81
  1341. package/input-autocomplete/cssm/Component-a04a9434.js +0 -80
  1342. package/input-autocomplete/cssm/Component.d.ts +0 -128
  1343. package/input-autocomplete/cssm/Component.js +0 -27
  1344. package/input-autocomplete/cssm/autocomplete-field/Component.d.ts +0 -0
  1345. package/input-autocomplete/cssm/autocomplete-field/Component.js +0 -12
  1346. package/input-autocomplete/cssm/autocomplete-field/index.d.ts +0 -1
  1347. package/input-autocomplete/cssm/autocomplete-field/index.js +0 -12
  1348. package/input-autocomplete/cssm/autocomplete-field/index.module.css +0 -3
  1349. package/input-autocomplete/cssm/index.d.ts +0 -1
  1350. package/input-autocomplete/cssm/index.js +0 -14
  1351. package/input-autocomplete/esm/Component-f25078cf.d.ts +0 -37
  1352. package/input-autocomplete/esm/Component-f25078cf.js +0 -74
  1353. package/intl-phone-input/component-c769f9ab.js +0 -72
  1354. package/intl-phone-input/cssm/component-88f82cfc.js +0 -71
  1355. package/intl-phone-input/cssm/component.d.ts +0 -67
  1356. package/intl-phone-input/cssm/component.js +0 -151
  1357. package/intl-phone-input/cssm/components/flag-icon/component.d.ts +0 -20
  1358. package/intl-phone-input/cssm/components/flag-icon/component.js +0 -21
  1359. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
  1360. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
  1361. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
  1362. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
  1363. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
  1364. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
  1365. package/intl-phone-input/cssm/components/flag-icon/index.d.ts +0 -1
  1366. package/intl-phone-input/cssm/components/flag-icon/index.js +0 -10
  1367. package/intl-phone-input/cssm/components/flag-icon/index.module.css +0 -4703
  1368. package/intl-phone-input/cssm/components/index.d.ts +0 -3
  1369. package/intl-phone-input/cssm/components/index.js +0 -19
  1370. package/intl-phone-input/cssm/components/select/component.d.ts +0 -10
  1371. package/intl-phone-input/cssm/components/select/component.js +0 -43
  1372. package/intl-phone-input/cssm/components/select/index.d.ts +0 -1
  1373. package/intl-phone-input/cssm/components/select/index.js +0 -17
  1374. package/intl-phone-input/cssm/components/select/index.module.css +0 -43
  1375. package/intl-phone-input/cssm/components/select-field/component.d.ts +0 -0
  1376. package/intl-phone-input/cssm/components/select-field/component.js +0 -14
  1377. package/intl-phone-input/cssm/components/select-field/index.d.ts +0 -1
  1378. package/intl-phone-input/cssm/components/select-field/index.js +0 -14
  1379. package/intl-phone-input/cssm/components/select-field/index.module.css +0 -56
  1380. package/intl-phone-input/cssm/index.d.ts +0 -1
  1381. package/intl-phone-input/cssm/index.js +0 -24
  1382. package/intl-phone-input/cssm/index.module.css +0 -7
  1383. package/intl-phone-input/cssm/useCaretAvoidCountryCode.d.ts +0 -8
  1384. package/intl-phone-input/cssm/useCaretAvoidCountryCode.js +0 -39
  1385. package/intl-phone-input/cssm/usePreventCaretReset.d.ts +0 -8
  1386. package/intl-phone-input/cssm/usePreventCaretReset.js +0 -34
  1387. package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.d.ts +0 -6
  1388. package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.js +0 -22
  1389. package/intl-phone-input/esm/component-92fd3e2a.d.ts +0 -35
  1390. package/intl-phone-input/esm/component-92fd3e2a.js +0 -65
  1391. package/intl-phone-input/modern/libphonenumber-js.min-5193d589.d.ts +0 -1
  1392. package/intl-phone-input/modern/libphonenumber-js.min-5193d589.js +0 -1567
  1393. package/keyboard-focusable/cssm/Component.d.ts +0 -12
  1394. package/keyboard-focusable/cssm/Component.js +0 -14
  1395. package/keyboard-focusable/cssm/index.d.ts +0 -1
  1396. package/keyboard-focusable/cssm/index.js +0 -9
  1397. package/link/cssm/Component.d.ts +0 -97
  1398. package/link/cssm/Component.js +0 -94
  1399. package/link/cssm/default.module.css +0 -68
  1400. package/link/cssm/index.d.ts +0 -1
  1401. package/link/cssm/index.js +0 -14
  1402. package/link/cssm/index.module.css +0 -64
  1403. package/link/cssm/inverted.module.css +0 -62
  1404. package/list/cssm/Component.d.ts +0 -24
  1405. package/list/cssm/Component.js +0 -31
  1406. package/list/cssm/index.d.ts +0 -1
  1407. package/list/cssm/index.js +0 -10
  1408. package/list/cssm/index.module.css +0 -60
  1409. package/list-header/cssm/Component.d.ts +0 -26
  1410. package/list-header/cssm/Component.js +0 -22
  1411. package/list-header/cssm/index.d.ts +0 -1
  1412. package/list-header/cssm/index.js +0 -11
  1413. package/list-header/cssm/index.module.css +0 -34
  1414. package/loader/cssm/Component.d.ts +0 -14
  1415. package/loader/cssm/Component.js +0 -21
  1416. package/loader/cssm/index.d.ts +0 -1
  1417. package/loader/cssm/index.js +0 -10
  1418. package/loader/cssm/index.module.css +0 -40
  1419. package/masked-input/cssm/Component.d.ts +0 -86
  1420. package/masked-input/cssm/Component.js +0 -117
  1421. package/masked-input/cssm/index.d.ts +0 -1
  1422. package/masked-input/cssm/index.js +0 -14
  1423. package/masked-input/cssm/index.module.css +0 -3
  1424. package/modal/cssm/Component.desktop.d.ts +0 -51
  1425. package/modal/cssm/Component.desktop.js +0 -66
  1426. package/modal/cssm/Component.mobile.d.ts +0 -23
  1427. package/modal/cssm/Component.mobile.js +0 -53
  1428. package/modal/cssm/Component.responsive.d.ts +0 -19
  1429. package/modal/cssm/Component.responsive.js +0 -68
  1430. package/modal/cssm/Context.d.ts +0 -4
  1431. package/modal/cssm/Context.js +0 -7
  1432. package/modal/cssm/components/closer/Component.d.ts +0 -17
  1433. package/modal/cssm/components/closer/Component.js +0 -26
  1434. package/modal/cssm/components/closer/index.module.css +0 -56
  1435. package/modal/cssm/components/content/Component.d.ts +0 -19
  1436. package/modal/cssm/components/content/Component.desktop.d.ts +0 -14
  1437. package/modal/cssm/components/content/Component.desktop.js +0 -22
  1438. package/modal/cssm/components/content/Component.js +0 -22
  1439. package/modal/cssm/components/content/Component.mobile.d.ts +0 -5
  1440. package/modal/cssm/components/content/Component.mobile.js +0 -18
  1441. package/modal/cssm/components/content/desktop.module.css +0 -52
  1442. package/modal/cssm/components/content/index.module.css +0 -44
  1443. package/modal/cssm/components/content/mobile.module.css +0 -36
  1444. package/modal/cssm/components/footer/Component.d.ts +0 -27
  1445. package/modal/cssm/components/footer/Component.desktop.d.ts +0 -14
  1446. package/modal/cssm/components/footer/Component.desktop.js +0 -23
  1447. package/modal/cssm/components/footer/Component.js +0 -28
  1448. package/modal/cssm/components/footer/Component.mobile.d.ts +0 -5
  1449. package/modal/cssm/components/footer/Component.mobile.js +0 -19
  1450. package/modal/cssm/components/footer/desktop.module.css +0 -66
  1451. package/modal/cssm/components/footer/index.module.css +0 -47
  1452. package/modal/cssm/components/footer/layout.module.css +0 -88
  1453. package/modal/cssm/components/footer/mobile.module.css +0 -42
  1454. package/modal/cssm/components/header/Component.d.ts +0 -27
  1455. package/modal/cssm/components/header/Component.desktop.d.ts +0 -14
  1456. package/modal/cssm/components/header/Component.desktop.js +0 -25
  1457. package/modal/cssm/components/header/Component.js +0 -35
  1458. package/modal/cssm/components/header/Component.mobile.d.ts +0 -5
  1459. package/modal/cssm/components/header/Component.mobile.js +0 -21
  1460. package/modal/cssm/components/header/desktop.module.css +0 -75
  1461. package/modal/cssm/components/header/index.module.css +0 -66
  1462. package/modal/cssm/components/header/mobile.module.css +0 -51
  1463. package/modal/cssm/desktop.d.ts +0 -1
  1464. package/modal/cssm/desktop.js +0 -28
  1465. package/modal/cssm/desktop.module.css +0 -62
  1466. package/modal/cssm/index.d.ts +0 -2
  1467. package/modal/cssm/index.js +0 -39
  1468. package/modal/cssm/mobile.d.ts +0 -1
  1469. package/modal/cssm/mobile.js +0 -28
  1470. package/modal/cssm/mobile.module.css +0 -29
  1471. package/modal/cssm/responsive.d.ts +0 -1
  1472. package/modal/cssm/responsive.js +0 -38
  1473. package/modal/cssm/transitions.module.css +0 -24
  1474. package/modal/cssm/utils.d.ts +0 -5
  1475. package/modal/cssm/utils.js +0 -80
  1476. package/modal/cssm/vars.css +0 -25
  1477. package/mq/cssm/Component.d.ts +0 -17
  1478. package/mq/cssm/Component.js +0 -26
  1479. package/mq/cssm/index.d.ts +0 -2
  1480. package/mq/cssm/index.js +0 -11
  1481. package/mq/cssm/useMatchMedia.d.ts +0 -6
  1482. package/mq/cssm/useMatchMedia.js +0 -25
  1483. package/mq/cssm/utils.d.ts +0 -21
  1484. package/mq/cssm/utils.js +0 -69
  1485. package/notification/cssm/Component.d.ts +0 -97
  1486. package/notification/cssm/Component.js +0 -153
  1487. package/notification/cssm/index.d.ts +0 -1
  1488. package/notification/cssm/index.js +0 -17
  1489. package/notification/cssm/index.module.css +0 -61
  1490. package/notification/cssm/utils/index.d.ts +0 -4
  1491. package/notification/cssm/utils/index.js +0 -32
  1492. package/notification-manager/cssm/component-d28c47be.d.ts +0 -43
  1493. package/notification-manager/cssm/component-d28c47be.js +0 -67
  1494. package/notification-manager/cssm/component.d.ts +0 -51
  1495. package/notification-manager/cssm/component.js +0 -31
  1496. package/notification-manager/cssm/components/index.d.ts +0 -1
  1497. package/notification-manager/cssm/components/index.js +0 -9
  1498. package/notification-manager/cssm/components/notification/component.d.ts +0 -0
  1499. package/notification-manager/cssm/components/notification/component.js +0 -9
  1500. package/notification-manager/cssm/components/notification/index.d.ts +0 -1
  1501. package/notification-manager/cssm/components/notification/index.js +0 -9
  1502. package/notification-manager/cssm/index.d.ts +0 -1
  1503. package/notification-manager/cssm/index.js +0 -14
  1504. package/notification-manager/cssm/index.module.css +0 -59
  1505. package/password-input/cssm/component.d.ts +0 -55
  1506. package/password-input/cssm/component.js +0 -72
  1507. package/password-input/cssm/index.d.ts +0 -1
  1508. package/password-input/cssm/index.js +0 -13
  1509. package/password-input/cssm/index.module.css +0 -7
  1510. package/phone-input/cssm/Component.d.ts +0 -10
  1511. package/phone-input/cssm/Component.js +0 -134
  1512. package/phone-input/cssm/index.d.ts +0 -1
  1513. package/phone-input/cssm/index.js +0 -11
  1514. package/phone-input/cssm/utils/index.d.ts +0 -17
  1515. package/phone-input/cssm/utils/index.js +0 -35
  1516. package/picker-button/Component-a07d50b1.d.ts +0 -808
  1517. package/picker-button/Component-a07d50b1.js +0 -63
  1518. package/picker-button/cssm/Component-c7d52094.d.ts +0 -808
  1519. package/picker-button/cssm/Component-c7d52094.js +0 -62
  1520. package/picker-button/cssm/Component.d.ts +0 -18
  1521. package/picker-button/cssm/Component.js +0 -30
  1522. package/picker-button/cssm/field/Component.d.ts +0 -0
  1523. package/picker-button/cssm/field/Component.js +0 -13
  1524. package/picker-button/cssm/field/index.d.ts +0 -1
  1525. package/picker-button/cssm/field/index.js +0 -13
  1526. package/picker-button/cssm/field/index.module.css +0 -23
  1527. package/picker-button/cssm/index.d.ts +0 -1
  1528. package/picker-button/cssm/index.js +0 -16
  1529. package/picker-button/cssm/index.module.css +0 -3
  1530. package/picker-button/esm/Component-174802a0.d.ts +0 -808
  1531. package/picker-button/esm/Component-174802a0.js +0 -57
  1532. package/plate/cssm/Component.d.ts +0 -74
  1533. package/plate/cssm/Component.js +0 -101
  1534. package/plate/cssm/index.d.ts +0 -1
  1535. package/plate/cssm/index.js +0 -13
  1536. package/plate/cssm/index.module.css +0 -170
  1537. package/popover/cssm/Component.d.ts +0 -93
  1538. package/popover/cssm/Component.js +0 -105
  1539. package/popover/cssm/index.d.ts +0 -1
  1540. package/popover/cssm/index.js +0 -15
  1541. package/popover/cssm/index.module.css +0 -124
  1542. package/portal/cssm/Component.d.ts +0 -12
  1543. package/portal/cssm/Component.js +0 -25
  1544. package/portal/cssm/index.d.ts +0 -1
  1545. package/portal/cssm/index.js +0 -10
  1546. package/portal/cssm/utils.d.ts +0 -5
  1547. package/portal/cssm/utils.js +0 -25
  1548. package/progress-bar/cssm/Component.d.ts +0 -22
  1549. package/progress-bar/cssm/Component.js +0 -19
  1550. package/progress-bar/cssm/index.d.ts +0 -1
  1551. package/progress-bar/cssm/index.js +0 -10
  1552. package/progress-bar/cssm/index.module.css +0 -47
  1553. package/pure-input/cssm/Component.d.ts +0 -48
  1554. package/pure-input/cssm/Component.js +0 -74
  1555. package/pure-input/cssm/index.d.ts +0 -1
  1556. package/pure-input/cssm/index.js +0 -12
  1557. package/pure-input/cssm/index.module.css +0 -155
  1558. package/radio/cssm/Component.d.ts +0 -120
  1559. package/radio/cssm/Component.js +0 -82
  1560. package/radio/cssm/index.d.ts +0 -1
  1561. package/radio/cssm/index.js +0 -12
  1562. package/radio/cssm/index.module.css +0 -212
  1563. package/radio-group/cssm/Component.d.ts +0 -60
  1564. package/radio-group/cssm/Component.js +0 -93
  1565. package/radio-group/cssm/index.d.ts +0 -1
  1566. package/radio-group/cssm/index.js +0 -10
  1567. package/radio-group/cssm/index.module.css +0 -94
  1568. package/select/cssm/Component.d.ts +0 -110
  1569. package/select/cssm/Component.js +0 -38
  1570. package/select/cssm/components/arrow/Component.d.ts +0 -4
  1571. package/select/cssm/components/arrow/Component.js +0 -19
  1572. package/select/cssm/components/arrow/index.d.ts +0 -1
  1573. package/select/cssm/components/arrow/index.js +0 -10
  1574. package/select/cssm/components/arrow/index.module.css +0 -40
  1575. package/select/cssm/components/base-select/Component.d.ts +0 -5
  1576. package/select/cssm/components/base-select/Component.js +0 -227
  1577. package/select/cssm/components/base-select/index.d.ts +0 -1
  1578. package/select/cssm/components/base-select/index.js +0 -17
  1579. package/select/cssm/components/base-select/index.module.css +0 -79
  1580. package/select/cssm/components/checkmark/Component.d.ts +0 -4
  1581. package/select/cssm/components/checkmark/Component.js +0 -21
  1582. package/select/cssm/components/checkmark/index.d.ts +0 -1
  1583. package/select/cssm/components/checkmark/index.js +0 -10
  1584. package/select/cssm/components/checkmark/index.module.css +0 -54
  1585. package/select/cssm/components/field/Component.d.ts +0 -24
  1586. package/select/cssm/components/field/Component.js +0 -40
  1587. package/select/cssm/components/field/index.d.ts +0 -1
  1588. package/select/cssm/components/field/index.js +0 -14
  1589. package/select/cssm/components/field/index.module.css +0 -66
  1590. package/select/cssm/components/index.d.ts +0 -7
  1591. package/select/cssm/components/index.js +0 -40
  1592. package/select/cssm/components/native-select/Component.d.ts +0 -25
  1593. package/select/cssm/components/native-select/Component.js +0 -29
  1594. package/select/cssm/components/native-select/index.d.ts +0 -1
  1595. package/select/cssm/components/native-select/index.js +0 -10
  1596. package/select/cssm/components/optgroup/Component.d.ts +0 -4
  1597. package/select/cssm/components/optgroup/Component.js +0 -21
  1598. package/select/cssm/components/optgroup/index.d.ts +0 -1
  1599. package/select/cssm/components/optgroup/index.js +0 -10
  1600. package/select/cssm/components/optgroup/index.module.css +0 -65
  1601. package/select/cssm/components/option/Component.d.ts +0 -4
  1602. package/select/cssm/components/option/Component.js +0 -31
  1603. package/select/cssm/components/option/index.d.ts +0 -1
  1604. package/select/cssm/components/option/index.js +0 -13
  1605. package/select/cssm/components/option/index.module.css +0 -147
  1606. package/select/cssm/components/options-list/Component.d.ts +0 -5
  1607. package/select/cssm/components/options-list/Component.js +0 -44
  1608. package/select/cssm/components/options-list/index.d.ts +0 -1
  1609. package/select/cssm/components/options-list/index.js +0 -14
  1610. package/select/cssm/components/options-list/index.module.css +0 -44
  1611. package/select/cssm/components/virtual-options-list/Component.d.ts +0 -10
  1612. package/select/cssm/components/virtual-options-list/Component.js +0 -104
  1613. package/select/cssm/components/virtual-options-list/index.d.ts +0 -1
  1614. package/select/cssm/components/virtual-options-list/index.js +0 -14
  1615. package/select/cssm/components/virtual-options-list/index.module.css +0 -79
  1616. package/select/cssm/index.d.ts +0 -5
  1617. package/select/cssm/index.js +0 -56
  1618. package/select/cssm/presets/index.d.ts +0 -2
  1619. package/select/cssm/presets/index.js +0 -19
  1620. package/select/cssm/presets/useLazyLoading/hook.d.ts +0 -46
  1621. package/select/cssm/presets/useLazyLoading/hook.js +0 -1098
  1622. package/select/cssm/presets/useLazyLoading/index.module.css +0 -7
  1623. package/select/cssm/presets/useSelectWithLoading/hook.d.ts +0 -11
  1624. package/select/cssm/presets/useSelectWithLoading/hook.js +0 -36
  1625. package/select/cssm/presets/useSelectWithLoading/index.module.css +0 -7
  1626. package/select/cssm/typings.d.ts +0 -434
  1627. package/select/cssm/typings.js +0 -1
  1628. package/select/cssm/utils.d.ts +0 -38
  1629. package/select/cssm/utils.js +0 -93
  1630. package/select/cssm/vars.css +0 -10
  1631. package/select/tslib.es6-e98a9028.d.ts +0 -32
  1632. package/select/tslib.es6-e98a9028.js +0 -49
  1633. package/select-with-tags/cssm/component.d.ts +0 -21
  1634. package/select-with-tags/cssm/component.js +0 -88
  1635. package/select-with-tags/cssm/components/index.d.ts +0 -2
  1636. package/select-with-tags/cssm/components/index.js +0 -19
  1637. package/select-with-tags/cssm/components/tag/component.d.ts +0 -3
  1638. package/select-with-tags/cssm/components/tag/component.js +0 -33
  1639. package/select-with-tags/cssm/components/tag/index.d.ts +0 -1
  1640. package/select-with-tags/cssm/components/tag/index.js +0 -13
  1641. package/select-with-tags/cssm/components/tag/index.module.css +0 -50
  1642. package/select-with-tags/cssm/components/tag-list/component.d.ts +0 -20
  1643. package/select-with-tags/cssm/components/tag-list/component.js +0 -133
  1644. package/select-with-tags/cssm/components/tag-list/index.d.ts +0 -1
  1645. package/select-with-tags/cssm/components/tag-list/index.js +0 -18
  1646. package/select-with-tags/cssm/components/tag-list/index.module.css +0 -158
  1647. package/select-with-tags/cssm/index.d.ts +0 -1
  1648. package/select-with-tags/cssm/index.js +0 -21
  1649. package/select-with-tags/cssm/tslib.es6-ce870b46.js +0 -40
  1650. package/select-with-tags/cssm/types.d.ts +0 -63
  1651. package/select-with-tags/cssm/types.js +0 -1
  1652. package/select-with-tags/cssm/utils/calculate-collapse-size.d.ts +0 -2
  1653. package/select-with-tags/cssm/utils/calculate-collapse-size.js +0 -47
  1654. package/select-with-tags/cssm/utils/index.d.ts +0 -1
  1655. package/select-with-tags/cssm/utils/index.js +0 -9
  1656. package/select-with-tags/cssm/utils/match.d.ts +0 -4
  1657. package/select-with-tags/cssm/utils/match.js +0 -31
  1658. package/select-with-tags/tslib.es6-40228fff.js +0 -40
  1659. package/skeleton/cssm/Component.d.ts +0 -22
  1660. package/skeleton/cssm/Component.js +0 -22
  1661. package/skeleton/cssm/index.d.ts +0 -1
  1662. package/skeleton/cssm/index.js +0 -10
  1663. package/skeleton/cssm/index.module.css +0 -107
  1664. package/skeleton/cssm/stories.module.css +0 -4
  1665. package/slider/cssm/Component.d.ts +0 -69
  1666. package/slider/cssm/Component.js +0 -97
  1667. package/slider/cssm/index.d.ts +0 -1
  1668. package/slider/cssm/index.js +0 -12
  1669. package/slider/cssm/index.module.css +0 -239
  1670. package/slider-input/cssm/Component.d.ts +0 -149
  1671. package/slider-input/cssm/Component.js +0 -102
  1672. package/slider-input/cssm/index.d.ts +0 -1
  1673. package/slider-input/cssm/index.js +0 -12
  1674. package/slider-input/cssm/index.module.css +0 -96
  1675. package/space/cssm/Component.d.ts +0 -47
  1676. package/space/cssm/Component.js +0 -54
  1677. package/space/cssm/Item-09e1c4dc.js +0 -49
  1678. package/space/cssm/Item.d.ts +0 -0
  1679. package/space/cssm/Item.js +0 -6
  1680. package/space/cssm/index.d.ts +0 -1
  1681. package/space/cssm/index.js +0 -11
  1682. package/space/cssm/index.module.css +0 -37
  1683. package/space/cssm/utils.d.ts +0 -11
  1684. package/space/cssm/utils.js +0 -15
  1685. package/space/esm/Item-e38f68be.d.ts +0 -47
  1686. package/spinner/cssm/Component.d.ts +0 -25
  1687. package/spinner/cssm/Component.js +0 -21
  1688. package/spinner/cssm/index.d.ts +0 -1
  1689. package/spinner/cssm/index.js +0 -10
  1690. package/spinner/cssm/index.module.css +0 -39
  1691. package/stack/cssm/component.d.ts +0 -15
  1692. package/stack/cssm/component.js +0 -18
  1693. package/stack/cssm/context.d.ts +0 -29
  1694. package/stack/cssm/context.js +0 -34
  1695. package/stack/cssm/index.d.ts +0 -2
  1696. package/stack/cssm/index.js +0 -11
  1697. package/status/cssm/Component.d.ts +0 -22
  1698. package/status/cssm/Component.js +0 -20
  1699. package/status/cssm/index.d.ts +0 -1
  1700. package/status/cssm/index.js +0 -11
  1701. package/status/cssm/index.module.css +0 -106
  1702. package/stepped-progress-bar/cssm/Component.d.ts +0 -25
  1703. package/stepped-progress-bar/cssm/Component.js +0 -30
  1704. package/stepped-progress-bar/cssm/components/step-bar/Component.d.ts +0 -6
  1705. package/stepped-progress-bar/cssm/components/step-bar/Component.js +0 -18
  1706. package/stepped-progress-bar/cssm/components/step-bar/index.d.ts +0 -1
  1707. package/stepped-progress-bar/cssm/components/step-bar/index.js +0 -10
  1708. package/stepped-progress-bar/cssm/components/step-bar/index.module.css +0 -15
  1709. package/stepped-progress-bar/cssm/index.d.ts +0 -1
  1710. package/stepped-progress-bar/cssm/index.js +0 -13
  1711. package/stepped-progress-bar/cssm/index.module.css +0 -30
  1712. package/switch/cssm/Component.d.ts +0 -103
  1713. package/switch/cssm/Component.js +0 -83
  1714. package/switch/cssm/index.d.ts +0 -1
  1715. package/switch/cssm/index.js +0 -12
  1716. package/switch/cssm/index.module.css +0 -179
  1717. package/tabs/cssm/components/primary-tablist/Component.d.ts +0 -13
  1718. package/tabs/cssm/components/primary-tablist/Component.desktop.d.ts +0 -4
  1719. package/tabs/cssm/components/primary-tablist/Component.desktop.js +0 -24
  1720. package/tabs/cssm/components/primary-tablist/Component.js +0 -50
  1721. package/tabs/cssm/components/primary-tablist/Component.mobile.d.ts +0 -5
  1722. package/tabs/cssm/components/primary-tablist/Component.mobile.js +0 -28
  1723. package/tabs/cssm/components/primary-tablist/Component.responsive.d.ts +0 -4
  1724. package/tabs/cssm/components/primary-tablist/Component.responsive.js +0 -31
  1725. package/tabs/cssm/components/primary-tablist/index.module.css +0 -187
  1726. package/tabs/cssm/components/primary-tablist/mobile.module.css +0 -60
  1727. package/tabs/cssm/components/scrollable-container/Component.d.ts +0 -18
  1728. package/tabs/cssm/components/scrollable-container/Component.js +0 -36
  1729. package/tabs/cssm/components/scrollable-container/index.d.ts +0 -1
  1730. package/tabs/cssm/components/scrollable-container/index.js +0 -11
  1731. package/tabs/cssm/components/scrollable-container/index.module.css +0 -52
  1732. package/tabs/cssm/components/secondary-tablist/Component.d.ts +0 -15
  1733. package/tabs/cssm/components/secondary-tablist/Component.desktop.d.ts +0 -5
  1734. package/tabs/cssm/components/secondary-tablist/Component.desktop.js +0 -24
  1735. package/tabs/cssm/components/secondary-tablist/Component.js +0 -32
  1736. package/tabs/cssm/components/secondary-tablist/Component.mobile.d.ts +0 -5
  1737. package/tabs/cssm/components/secondary-tablist/Component.mobile.js +0 -28
  1738. package/tabs/cssm/components/secondary-tablist/Component.responsive.d.ts +0 -4
  1739. package/tabs/cssm/components/secondary-tablist/Component.responsive.js +0 -31
  1740. package/tabs/cssm/components/secondary-tablist/index.module.css +0 -85
  1741. package/tabs/cssm/components/secondary-tablist/mobile.module.css +0 -48
  1742. package/tabs/cssm/components/tab/Component.d.ts +0 -4
  1743. package/tabs/cssm/components/tab/Component.js +0 -21
  1744. package/tabs/cssm/components/tab/index.d.ts +0 -1
  1745. package/tabs/cssm/components/tab/index.js +0 -10
  1746. package/tabs/cssm/components/tab/index.module.css +0 -7
  1747. package/tabs/cssm/components/tabs/Component.d.ts +0 -4
  1748. package/tabs/cssm/components/tabs/Component.desktop.d.ts +0 -5
  1749. package/tabs/cssm/components/tabs/Component.desktop.js +0 -33
  1750. package/tabs/cssm/components/tabs/Component.js +0 -28
  1751. package/tabs/cssm/components/tabs/Component.mobile.d.ts +0 -5
  1752. package/tabs/cssm/components/tabs/Component.mobile.js +0 -35
  1753. package/tabs/cssm/components/tabs/Component.responsive.d.ts +0 -5
  1754. package/tabs/cssm/components/tabs/Component.responsive.js +0 -40
  1755. package/tabs/cssm/desktop.d.ts +0 -7
  1756. package/tabs/cssm/desktop.js +0 -30
  1757. package/tabs/cssm/index.d.ts +0 -7
  1758. package/tabs/cssm/index.js +0 -37
  1759. package/tabs/cssm/mobile.d.ts +0 -7
  1760. package/tabs/cssm/mobile.js +0 -32
  1761. package/tabs/cssm/responsive.d.ts +0 -7
  1762. package/tabs/cssm/responsive.js +0 -37
  1763. package/tabs/cssm/tslib.es6-ce870b46.d.ts +0 -32
  1764. package/tabs/cssm/tslib.es6-ce870b46.js +0 -40
  1765. package/tabs/cssm/typings.d.ts +0 -116
  1766. package/tabs/cssm/typings.js +0 -1
  1767. package/tabs/cssm/useTabs.d.ts +0 -16
  1768. package/tabs/cssm/useTabs.js +0 -95
  1769. package/tabs/cssm/vars.css +0 -35
  1770. package/tabs/esm/tslib.es6-76e00eac.d.ts +0 -32
  1771. package/tabs/tslib.es6-1f7f7608.d.ts +0 -32
  1772. package/tabs/tslib.es6-1f7f7608.js +0 -40
  1773. package/tag/cssm/Component.d.ts +0 -71
  1774. package/tag/cssm/Component.js +0 -89
  1775. package/tag/cssm/default.module.css +0 -75
  1776. package/tag/cssm/index.d.ts +0 -1
  1777. package/tag/cssm/index.js +0 -14
  1778. package/tag/cssm/index.module.css +0 -155
  1779. package/tag/cssm/inverted.module.css +0 -76
  1780. package/textarea/cssm/Component.d.ts +0 -214
  1781. package/textarea/cssm/Component.js +0 -140
  1782. package/textarea/cssm/default.module.css +0 -97
  1783. package/textarea/cssm/index.d.ts +0 -1
  1784. package/textarea/cssm/index.js +0 -17
  1785. package/textarea/cssm/index.module.css +0 -149
  1786. package/textarea/cssm/inverted.module.css +0 -97
  1787. package/themes/colors/colors-bluetint.css +0 -112
  1788. package/themes/colors/colors-bluetint.js +0 -112
  1789. package/themes/colors/colors-indigo.css +0 -118
  1790. package/themes/colors/colors-indigo.js +0 -118
  1791. package/themes/mixins/colors/colors-bluetint.css +0 -112
  1792. package/themes/mixins/colors/colors-indigo.css +0 -118
  1793. package/toast/cssm/component.d.ts +0 -88
  1794. package/toast/cssm/component.js +0 -125
  1795. package/toast/cssm/index.d.ts +0 -1
  1796. package/toast/cssm/index.js +0 -17
  1797. package/toast/cssm/index.module.css +0 -53
  1798. package/toast-plate/cssm/component.d.ts +0 -109
  1799. package/toast-plate/cssm/component.js +0 -88
  1800. package/toast-plate/cssm/index.d.ts +0 -1
  1801. package/toast-plate/cssm/index.js +0 -16
  1802. package/toast-plate/cssm/index.module.css +0 -582
  1803. package/tooltip/cssm/Component-1d6b7d3e.js +0 -172
  1804. package/tooltip/cssm/Component.d.ts +0 -0
  1805. package/tooltip/cssm/Component.js +0 -12
  1806. package/tooltip/cssm/component.responsive.d.ts +0 -28
  1807. package/tooltip/cssm/component.responsive.js +0 -31
  1808. package/tooltip/cssm/index.d.ts +0 -1
  1809. package/tooltip/cssm/index.js +0 -12
  1810. package/tooltip/cssm/index.module.css +0 -54
  1811. package/tooltip/cssm/responsive.d.ts +0 -1
  1812. package/tooltip/cssm/responsive.js +0 -15
  1813. package/tooltip/esm/Component-24cdba1a.d.ts +0 -125
  1814. package/typography/colors.module-420a9860.d.ts +0 -32
  1815. package/typography/cssm/colors.d.ts +0 -3
  1816. package/typography/cssm/colors.js +0 -18
  1817. package/typography/cssm/colors.module.css +0 -62
  1818. package/typography/cssm/component.d.ts +0 -9
  1819. package/typography/cssm/component.js +0 -22
  1820. package/typography/cssm/index.d.ts +0 -1
  1821. package/typography/cssm/index.js +0 -19
  1822. package/typography/cssm/margins.module.css +0 -1
  1823. package/typography/cssm/text/component.d.ts +0 -41
  1824. package/typography/cssm/text/component.js +0 -22
  1825. package/typography/cssm/text/index.d.ts +0 -1
  1826. package/typography/cssm/text/index.js +0 -12
  1827. package/typography/cssm/text/index.module.css +0 -78
  1828. package/typography/cssm/title/common.module.css +0 -16
  1829. package/typography/cssm/title/component.d.ts +0 -50
  1830. package/typography/cssm/title/component.js +0 -19
  1831. package/typography/cssm/title/index.d.ts +0 -4
  1832. package/typography/cssm/title/index.js +0 -25
  1833. package/typography/cssm/title/index.module.css +0 -107
  1834. package/typography/cssm/title-responsive/component.d.ts +0 -4
  1835. package/typography/cssm/title-responsive/component.js +0 -25
  1836. package/typography/cssm/title-responsive/index.d.ts +0 -1
  1837. package/typography/cssm/title-responsive/index.js +0 -14
  1838. package/typography/cssm/title-responsive/index.module.css +0 -281
  1839. package/typography/cssm/tslib.es6-ce870b46.d.ts +0 -32
  1840. package/typography/cssm/tslib.es6-ce870b46.js +0 -40
  1841. package/typography/esm/colors.module-d9df1b1f.d.ts +0 -32
  1842. package/with-suffix/cssm/Component.d.ts +0 -89
  1843. package/with-suffix/cssm/Component.js +0 -97
  1844. package/with-suffix/cssm/index.d.ts +0 -1
  1845. package/with-suffix/cssm/index.js +0 -12
  1846. package/with-suffix/cssm/index.module.css +0 -41
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { OptionsListProps } from "../../typings";
3
- type VirtualOptionsList = OptionsListProps & {
4
- /**
5
- * Число отрисованных пунктов до\после видимого окна
6
- */
7
- overscan?: number;
8
- };
9
- declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, }: VirtualOptionsList) => JSX.Element;
10
- export { VirtualOptionsList };
@@ -1,104 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
-
3
- var React = require('react');
4
- var cn = require('classnames');
5
- var utils = require('../../utils.js');
6
- require('../optgroup/index.module.css');
7
- var components_optgroup_Component = require('../optgroup/Component.js');
8
- var reactVirtual = require('react-virtual');
9
- var styles = require('./index.module.css');
10
-
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
- var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
15
- var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
16
-
17
- /* eslint-disable react-hooks/exhaustive-deps */
18
- var VirtualOptionsList = function (_a) {
19
- var _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.flatOptions, flatOptions = _c === void 0 ? [] : _c, _d = _a.highlightedIndex, highlightedIndex = _d === void 0 ? -1 : _d, className = _a.className, Option = _a.Option, open = _a.open, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.overscan, overscan = _f === void 0 ? 10 : _f, _g = _a.Optgroup, Optgroup = _g === void 0 ? components_optgroup_Component.Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? 5 : _h, onScroll = _a.onScroll;
20
- var listRef = React.useRef(null);
21
- var parentRef = React.useRef(null);
22
- var _j = React.useState(0), visibleOptionsInvalidateKey = _j[0], setVisibleOptionsInvalidateKey = _j[1];
23
- var prevHighlightedIndex = utils.usePrevious(highlightedIndex) || -1;
24
- var rowVirtualizer = reactVirtual.useVirtual({
25
- size: flatOptions.length,
26
- parentRef: parentRef,
27
- overscan: overscan,
28
- });
29
- // Сколл к выбранному пункту при открытии меню
30
- React.useEffect(function () {
31
- if (open) {
32
- rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
33
- }
34
- }, [open]);
35
- // Скролл к пункту, которого нет на экране
36
- React.useEffect(function () {
37
- if (highlightedIndex === -1)
38
- return;
39
- if (!rowVirtualizer.virtualItems.some(function (option) { return option.index === highlightedIndex; })) {
40
- rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
41
- }
42
- }, [highlightedIndex]);
43
- // Циклическая навигация
44
- React.useEffect(function () {
45
- var notDisabled = function (option) { return !option.disabled; };
46
- var firstNonDisabled = flatOptions.findIndex(notDisabled);
47
- var lastNonDisabled = utils.lastIndexOf(flatOptions, notDisabled);
48
- if (prevHighlightedIndex <= firstNonDisabled &&
49
- highlightedIndex === flatOptions.length - 1) {
50
- rowVirtualizer.scrollToIndex(lastNonDisabled);
51
- }
52
- if (prevHighlightedIndex >= lastNonDisabled && highlightedIndex === 0) {
53
- rowVirtualizer.scrollToIndex(0);
54
- }
55
- }, [prevHighlightedIndex, highlightedIndex]);
56
- React.useEffect(function () {
57
- setVisibleOptionsInvalidateKey(
58
- /**
59
- * react-virtual может несколько раз отрендерить список с одним элементом,
60
- * поэтому нужно еще раз пересчитать высоту, когда список ВИДИМЫХ пунктов будет отрендерен полностью
61
- * Также, высоту нужно пересчитывать при изменении ОБЩЕГО кол-ва пунктов меню
62
- */
63
- rowVirtualizer.virtualItems.length > 1 ? flatOptions.length : 1);
64
- }, [rowVirtualizer.virtualItems.length, flatOptions.length]);
65
- utils.useVisibleOptions({
66
- visibleOptions: visibleOptions,
67
- invalidate: visibleOptionsInvalidateKey,
68
- listRef: listRef,
69
- styleTargetRef: parentRef,
70
- open: open,
71
- });
72
- // Т.к. рендерится плоский список, необходимо знать индекс, когда начинается новая группа
73
- var groupStartIndexes = React.useMemo(function () {
74
- var currentIndex = 0;
75
- return options.reduce(function (acc, option, index) {
76
- if (utils.isGroup(option)) {
77
- acc[currentIndex] = index;
78
- currentIndex += option.options.length;
79
- }
80
- else {
81
- currentIndex += 1;
82
- }
83
- return acc;
84
- }, {});
85
- }, [options]);
86
- return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].virtualOptionsList, styles__default['default'][size], className), ref: parentRef, "data-test-id": dataTestId, onScroll: onScroll },
87
- React__default['default'].createElement("div", { className: styles__default['default'].inner, style: {
88
- height: rowVirtualizer.totalSize + "px",
89
- }, ref: listRef }, rowVirtualizer.virtualItems.map(function (virtualRow) {
90
- var _a;
91
- var option = flatOptions[virtualRow.index];
92
- var group = options[groupStartIndexes[virtualRow.index]];
93
- return (React__default['default'].createElement("div", { key: virtualRow.index, ref: virtualRow.measureRef, className: cn__default['default'](styles__default['default'].virtualRow, (_a = {},
94
- _a[styles__default['default'].highlighted] = highlightedIndex === virtualRow.index,
95
- _a)), style: {
96
- transform: "translateY(" + virtualRow.start + "px)",
97
- } },
98
- group && React__default['default'].createElement(Optgroup, { label: group.label }),
99
- !utils.isGroup(option) && Option({ option: option, index: virtualRow.index })));
100
- })),
101
- emptyPlaceholder && options.length === 0 && (React__default['default'].createElement("div", { className: styles__default['default'].emptyPlaceholder }, emptyPlaceholder))));
102
- };
103
-
104
- exports.VirtualOptionsList = VirtualOptionsList;
@@ -1 +0,0 @@
1
- export * from "./Component";
@@ -1,14 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
-
3
- require('react');
4
- require('classnames');
5
- require('../../utils.js');
6
- require('../optgroup/index.module.css');
7
- require('../optgroup/Component.js');
8
- require('react-virtual');
9
- require('./index.module.css');
10
- var components_virtualOptionsList_Component = require('./Component.js');
11
-
12
-
13
-
14
- exports.VirtualOptionsList = components_virtualOptionsList_Component.VirtualOptionsList;
@@ -1,79 +0,0 @@
1
- :root {
2
- --color-light-border-primary: #dbdee1;
3
- --color-light-text-secondary: #546272;
4
-
5
- /* TODO: цвета добавлены руками. Обновить токены */
6
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
7
- }
8
- :root {
9
-
10
- /* Hard */
11
-
12
- /* Up */
13
-
14
- /* Hard up */
15
- }
16
- :root {
17
- --gap-s: 12px;
18
- --gap-m: 16px;
19
- --gap-xl: 24px;
20
- }
21
- :root {
22
-
23
- /* options list */
24
- --select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
25
- --select-option-divider-display: none;
26
- --select-option-divider-background: var(--color-light-border-primary);
27
-
28
- /* option */
29
-
30
- --select-option-left-padding: var(--gap-s);
31
- --select-option-right-padding: var(--gap-s);
32
-
33
- /* checkmark */
34
-
35
- /* optgroup */
36
- }
37
- .virtualOptionsList {
38
- overflow: auto;
39
- width: 100%;
40
- outline: none;
41
- box-sizing: border-box;
42
- position: relative;
43
- }
44
- .inner {
45
- position: relative;
46
- width: 100%;
47
- }
48
- .virtualRow {
49
- position: absolute;
50
- top: 0;
51
- left: 0;
52
- width: 100%
53
- }
54
- .virtualRow:before {
55
- content: '';
56
- position: absolute;
57
- z-index: 1;
58
- left: var(--select-option-left-padding);
59
- right: var(--select-option-right-padding);
60
- top: 0;
61
- height: 1px;
62
- background: var(--select-option-divider-background);
63
- display: var(--select-option-divider-display);
64
- }
65
- .virtualRow:first-child:before {
66
- display: none;
67
- }
68
- .highlighted:before,
69
- .highlighted + .virtualRow:before {
70
- display: none;
71
- }
72
- .emptyPlaceholder {
73
- padding: var(--gap-m) var(--gap-s);
74
- color: var(--select-options-list-empty-placeholder-color);
75
- }
76
- .l .emptyPlaceholder,
77
- .xl .emptyPlaceholder {
78
- padding: var(--gap-xl) var(--gap-m);
79
- }
@@ -1,5 +0,0 @@
1
- export * from "./Component";
2
- export * from "./components/index";
3
- export * from "./presets/index";
4
- export * from "./typings";
5
- export * from "./utils";
@@ -1,56 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
-
3
- require('./tslib.es6-f8106a15.js');
4
- require('react');
5
- require('classnames');
6
- require('@alfalab/hooks');
7
- require('../../form-control/cssm');
8
- var utils = require('./utils.js');
9
- require('./components/field/index.module.css');
10
- var components_field_Component = require('./components/field/Component.js');
11
- require('./components/arrow/index.module.css');
12
- var components_arrow_Component = require('./components/arrow/Component.js');
13
- require('react-merge-refs');
14
- require('./components/optgroup/index.module.css');
15
- var components_optgroup_Component = require('./components/optgroup/Component.js');
16
- require('./components/options-list/index.module.css');
17
- var components_optionsList_Component = require('./components/options-list/Component.js');
18
- require('./components/checkmark/index.module.css');
19
- require('./components/checkmark/Component.js');
20
- require('./components/option/index.module.css');
21
- var components_option_Component = require('./components/option/Component.js');
22
- require('resize-observer');
23
- require('../../popover/cssm');
24
- require('downshift');
25
- require('./components/native-select/Component.js');
26
- var components_baseSelect_Component = require('./components/base-select/Component.js');
27
- require('./components/base-select/index.module.css');
28
- var Component = require('./Component.js');
29
- require('react-virtual');
30
- require('./components/virtual-options-list/index.module.css');
31
- var components_virtualOptionsList_Component = require('./components/virtual-options-list/Component.js');
32
- require('../../skeleton/cssm');
33
- require('./presets/useSelectWithLoading/index.module.css');
34
- var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
35
- var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
36
- require('./presets/useLazyLoading/index.module.css');
37
-
38
-
39
-
40
- exports.isGroup = utils.isGroup;
41
- exports.isOptionShape = utils.isOptionShape;
42
- exports.joinOptions = utils.joinOptions;
43
- exports.lastIndexOf = utils.lastIndexOf;
44
- exports.processOptions = utils.processOptions;
45
- exports.usePrevious = utils.usePrevious;
46
- exports.useVisibleOptions = utils.useVisibleOptions;
47
- exports.Field = components_field_Component.Field;
48
- exports.Arrow = components_arrow_Component.Arrow;
49
- exports.Optgroup = components_optgroup_Component.Optgroup;
50
- exports.OptionsList = components_optionsList_Component.OptionsList;
51
- exports.Option = components_option_Component.Option;
52
- exports.BaseSelect = components_baseSelect_Component.BaseSelect;
53
- exports.Select = Component.Select;
54
- exports.VirtualOptionsList = components_virtualOptionsList_Component.VirtualOptionsList;
55
- exports.useSelectWithLoading = presets_useSelectWithLoading_hook.useSelectWithLoading;
56
- exports.useLazyLoading = presets_useLazyLoading_hook.useLazyLoading;
@@ -1,2 +0,0 @@
1
- export * from "./useSelectWithLoading/hook";
2
- export * from "./useLazyLoading/hook";
@@ -1,19 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
-
3
- require('../tslib.es6-f8106a15.js');
4
- require('react');
5
- require('classnames');
6
- require('../components/checkmark/index.module.css');
7
- require('../components/checkmark/Component.js');
8
- require('../components/option/index.module.css');
9
- require('../components/option/Component.js');
10
- require('../../../skeleton/cssm');
11
- require('./useSelectWithLoading/index.module.css');
12
- var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
13
- var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
14
- require('./useLazyLoading/index.module.css');
15
-
16
-
17
-
18
- exports.useSelectWithLoading = presets_useSelectWithLoading_hook.useSelectWithLoading;
19
- exports.useLazyLoading = presets_useLazyLoading_hook.useLazyLoading;
@@ -1,46 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { OptionShape } from "../../typings";
4
- type OptionsFetcherResponse = {
5
- options: OptionShape[];
6
- hasMore: boolean;
7
- };
8
- type useLazyLoadingProps = {
9
- /** Количество элементов на "странице" */
10
- limit?: number;
11
- /** Начальный номер "страницы" */
12
- initialOffset?: number;
13
- /** Скелетон загружаемых элементов */
14
- skeleton?: React.ReactNode;
15
- /**
16
- * Функция-загрузчик опций.
17
- * @param offset - текущая страница
18
- * @param limit - количество элементов на странице
19
- * @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
20
- * @returns Promise<{
21
- * options - список опций следующей "страницы". Они аппендятся к предыдущим
22
- * hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
23
- * }>
24
- */
25
- optionsFetcher<T>(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
26
- };
27
- declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, }: useLazyLoadingProps): {
28
- optionsProps: {
29
- Option: (props: any) => JSX.Element;
30
- options: OptionShape[];
31
- optionsListProps: {
32
- ref: React.RefObject<HTMLDivElement>;
33
- inputProps: {
34
- onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
35
- value: string;
36
- }) => void;
37
- value: string;
38
- };
39
- };
40
- onOpen: (payload: {
41
- open?: boolean | undefined;
42
- }) => void;
43
- };
44
- reset: () => void;
45
- };
46
- export { useLazyLoading };
@@ -1,1098 +0,0 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
-
3
- var tslib_es6 = require('../../tslib.es6-f8106a15.js');
4
- var React = require('react');
5
- require('classnames');
6
- require('../../components/checkmark/index.module.css');
7
- require('../../components/checkmark/Component.js');
8
- require('../../components/option/index.module.css');
9
- var components_option_Component = require('../../components/option/Component.js');
10
- var coreComponentsSkeleton = require('../../../../skeleton/cssm');
11
- var styles = require('./index.module.css');
12
-
13
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
-
15
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
- var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
17
-
18
- /**
19
- * Copyright 2016 Google Inc. All Rights Reserved.
20
- *
21
- * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
22
- *
23
- * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
24
- *
25
- */
26
- (function () {
27
- // Exit early if we're not running in a browser.
28
- if (typeof window !== 'object') {
29
- return;
30
- }
31
- // Exit early if all IntersectionObserver and IntersectionObserverEntry
32
- // features are natively supported.
33
- if ('IntersectionObserver' in window &&
34
- 'IntersectionObserverEntry' in window &&
35
- 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
36
- // Minimal polyfill for Edge 15's lack of `isIntersecting`
37
- // See: https://github.com/w3c/IntersectionObserver/issues/211
38
- if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {
39
- Object.defineProperty(window.IntersectionObserverEntry.prototype, 'isIntersecting', {
40
- get: function () {
41
- return this.intersectionRatio > 0;
42
- }
43
- });
44
- }
45
- return;
46
- }
47
- /**
48
- * Returns the embedding frame element, if any.
49
- * @param {!Document} doc
50
- * @return {!Element}
51
- */
52
- function getFrameElement(doc) {
53
- try {
54
- return doc.defaultView && doc.defaultView.frameElement || null;
55
- }
56
- catch (e) {
57
- // Ignore the error.
58
- return null;
59
- }
60
- }
61
- /**
62
- * A local reference to the root document.
63
- */
64
- var document = (function (startDoc) {
65
- var doc = startDoc;
66
- var frame = getFrameElement(doc);
67
- while (frame) {
68
- doc = frame.ownerDocument;
69
- frame = getFrameElement(doc);
70
- }
71
- return doc;
72
- })(window.document);
73
- /**
74
- * An IntersectionObserver registry. This registry exists to hold a strong
75
- * reference to IntersectionObserver instances currently observing a target
76
- * element. Without this registry, instances without another reference may be
77
- * garbage collected.
78
- */
79
- var registry = [];
80
- /**
81
- * The signal updater for cross-origin intersection. When not null, it means
82
- * that the polyfill is configured to work in a cross-origin mode.
83
- * @type {function(DOMRect|ClientRect, DOMRect|ClientRect)}
84
- */
85
- var crossOriginUpdater = null;
86
- /**
87
- * The current cross-origin intersection. Only used in the cross-origin mode.
88
- * @type {DOMRect|ClientRect}
89
- */
90
- var crossOriginRect = null;
91
- /**
92
- * Creates the global IntersectionObserverEntry constructor.
93
- * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
94
- * @param {Object} entry A dictionary of instance properties.
95
- * @constructor
96
- */
97
- function IntersectionObserverEntry(entry) {
98
- this.time = entry.time;
99
- this.target = entry.target;
100
- this.rootBounds = ensureDOMRect(entry.rootBounds);
101
- this.boundingClientRect = ensureDOMRect(entry.boundingClientRect);
102
- this.intersectionRect = ensureDOMRect(entry.intersectionRect || getEmptyRect());
103
- this.isIntersecting = !!entry.intersectionRect;
104
- // Calculates the intersection ratio.
105
- var targetRect = this.boundingClientRect;
106
- var targetArea = targetRect.width * targetRect.height;
107
- var intersectionRect = this.intersectionRect;
108
- var intersectionArea = intersectionRect.width * intersectionRect.height;
109
- // Sets intersection ratio.
110
- if (targetArea) {
111
- // Round the intersection ratio to avoid floating point math issues:
112
- // https://github.com/w3c/IntersectionObserver/issues/324
113
- this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));
114
- }
115
- else {
116
- // If area is zero and is intersecting, sets to 1, otherwise to 0
117
- this.intersectionRatio = this.isIntersecting ? 1 : 0;
118
- }
119
- }
120
- /**
121
- * Creates the global IntersectionObserver constructor.
122
- * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
123
- * @param {Function} callback The function to be invoked after intersection
124
- * changes have queued. The function is not invoked if the queue has
125
- * been emptied by calling the `takeRecords` method.
126
- * @param {Object=} opt_options Optional configuration options.
127
- * @constructor
128
- */
129
- function IntersectionObserver(callback, opt_options) {
130
- var options = opt_options || {};
131
- if (typeof callback != 'function') {
132
- throw new Error('callback must be a function');
133
- }
134
- if (options.root &&
135
- options.root.nodeType != 1 &&
136
- options.root.nodeType != 9) {
137
- throw new Error('root must be a Document or Element');
138
- }
139
- // Binds and throttles `this._checkForIntersections`.
140
- this._checkForIntersections = throttle(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);
141
- // Private properties.
142
- this._callback = callback;
143
- this._observationTargets = [];
144
- this._queuedEntries = [];
145
- this._rootMarginValues = this._parseRootMargin(options.rootMargin);
146
- // Public properties.
147
- this.thresholds = this._initThresholds(options.threshold);
148
- this.root = options.root || null;
149
- this.rootMargin = this._rootMarginValues.map(function (margin) {
150
- return margin.value + margin.unit;
151
- }).join(' ');
152
- /** @private @const {!Array<!Document>} */
153
- this._monitoringDocuments = [];
154
- /** @private @const {!Array<function()>} */
155
- this._monitoringUnsubscribes = [];
156
- }
157
- /**
158
- * The minimum interval within which the document will be checked for
159
- * intersection changes.
160
- */
161
- IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;
162
- /**
163
- * The frequency in which the polyfill polls for intersection changes.
164
- * this can be updated on a per instance basis and must be set prior to
165
- * calling `observe` on the first target.
166
- */
167
- IntersectionObserver.prototype.POLL_INTERVAL = null;
168
- /**
169
- * Use a mutation observer on the root element
170
- * to detect intersection changes.
171
- */
172
- IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;
173
- /**
174
- * Sets up the polyfill in the cross-origin mode. The result is the
175
- * updater function that accepts two arguments: `boundingClientRect` and
176
- * `intersectionRect` - just as these fields would be available to the
177
- * parent via `IntersectionObserverEntry`. This function should be called
178
- * each time the iframe receives intersection information from the parent
179
- * window, e.g. via messaging.
180
- * @return {function(DOMRect|ClientRect, DOMRect|ClientRect)}
181
- */
182
- IntersectionObserver._setupCrossOriginUpdater = function () {
183
- if (!crossOriginUpdater) {
184
- /**
185
- * @param {DOMRect|ClientRect} boundingClientRect
186
- * @param {DOMRect|ClientRect} intersectionRect
187
- */
188
- crossOriginUpdater = function (boundingClientRect, intersectionRect) {
189
- if (!boundingClientRect || !intersectionRect) {
190
- crossOriginRect = getEmptyRect();
191
- }
192
- else {
193
- crossOriginRect = convertFromParentRect(boundingClientRect, intersectionRect);
194
- }
195
- registry.forEach(function (observer) {
196
- observer._checkForIntersections();
197
- });
198
- };
199
- }
200
- return crossOriginUpdater;
201
- };
202
- /**
203
- * Resets the cross-origin mode.
204
- */
205
- IntersectionObserver._resetCrossOriginUpdater = function () {
206
- crossOriginUpdater = null;
207
- crossOriginRect = null;
208
- };
209
- /**
210
- * Starts observing a target element for intersection changes based on
211
- * the thresholds values.
212
- * @param {Element} target The DOM element to observe.
213
- */
214
- IntersectionObserver.prototype.observe = function (target) {
215
- var isTargetAlreadyObserved = this._observationTargets.some(function (item) {
216
- return item.element == target;
217
- });
218
- if (isTargetAlreadyObserved) {
219
- return;
220
- }
221
- if (!(target && target.nodeType == 1)) {
222
- throw new Error('target must be an Element');
223
- }
224
- this._registerInstance();
225
- this._observationTargets.push({ element: target, entry: null });
226
- this._monitorIntersections(target.ownerDocument);
227
- this._checkForIntersections();
228
- };
229
- /**
230
- * Stops observing a target element for intersection changes.
231
- * @param {Element} target The DOM element to observe.
232
- */
233
- IntersectionObserver.prototype.unobserve = function (target) {
234
- this._observationTargets =
235
- this._observationTargets.filter(function (item) {
236
- return item.element != target;
237
- });
238
- this._unmonitorIntersections(target.ownerDocument);
239
- if (this._observationTargets.length == 0) {
240
- this._unregisterInstance();
241
- }
242
- };
243
- /**
244
- * Stops observing all target elements for intersection changes.
245
- */
246
- IntersectionObserver.prototype.disconnect = function () {
247
- this._observationTargets = [];
248
- this._unmonitorAllIntersections();
249
- this._unregisterInstance();
250
- };
251
- /**
252
- * Returns any queue entries that have not yet been reported to the
253
- * callback and clears the queue. This can be used in conjunction with the
254
- * callback to obtain the absolute most up-to-date intersection information.
255
- * @return {Array} The currently queued entries.
256
- */
257
- IntersectionObserver.prototype.takeRecords = function () {
258
- var records = this._queuedEntries.slice();
259
- this._queuedEntries = [];
260
- return records;
261
- };
262
- /**
263
- * Accepts the threshold value from the user configuration object and
264
- * returns a sorted array of unique threshold values. If a value is not
265
- * between 0 and 1 and error is thrown.
266
- * @private
267
- * @param {Array|number=} opt_threshold An optional threshold value or
268
- * a list of threshold values, defaulting to [0].
269
- * @return {Array} A sorted list of unique and valid threshold values.
270
- */
271
- IntersectionObserver.prototype._initThresholds = function (opt_threshold) {
272
- var threshold = opt_threshold || [0];
273
- if (!Array.isArray(threshold))
274
- threshold = [threshold];
275
- return threshold.sort().filter(function (t, i, a) {
276
- if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {
277
- throw new Error('threshold must be a number between 0 and 1 inclusively');
278
- }
279
- return t !== a[i - 1];
280
- });
281
- };
282
- /**
283
- * Accepts the rootMargin value from the user configuration object
284
- * and returns an array of the four margin values as an object containing
285
- * the value and unit properties. If any of the values are not properly
286
- * formatted or use a unit other than px or %, and error is thrown.
287
- * @private
288
- * @param {string=} opt_rootMargin An optional rootMargin value,
289
- * defaulting to '0px'.
290
- * @return {Array<Object>} An array of margin objects with the keys
291
- * value and unit.
292
- */
293
- IntersectionObserver.prototype._parseRootMargin = function (opt_rootMargin) {
294
- var marginString = opt_rootMargin || '0px';
295
- var margins = marginString.split(/\s+/).map(function (margin) {
296
- var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin);
297
- if (!parts) {
298
- throw new Error('rootMargin must be specified in pixels or percent');
299
- }
300
- return { value: parseFloat(parts[1]), unit: parts[2] };
301
- });
302
- // Handles shorthand.
303
- margins[1] = margins[1] || margins[0];
304
- margins[2] = margins[2] || margins[0];
305
- margins[3] = margins[3] || margins[1];
306
- return margins;
307
- };
308
- /**
309
- * Starts polling for intersection changes if the polling is not already
310
- * happening, and if the page's visibility state is visible.
311
- * @param {!Document} doc
312
- * @private
313
- */
314
- IntersectionObserver.prototype._monitorIntersections = function (doc) {
315
- var win = doc.defaultView;
316
- if (!win) {
317
- // Already destroyed.
318
- return;
319
- }
320
- if (this._monitoringDocuments.indexOf(doc) != -1) {
321
- // Already monitoring.
322
- return;
323
- }
324
- // Private state for monitoring.
325
- var callback = this._checkForIntersections;
326
- var monitoringInterval = null;
327
- var domObserver = null;
328
- // If a poll interval is set, use polling instead of listening to
329
- // resize and scroll events or DOM mutations.
330
- if (this.POLL_INTERVAL) {
331
- monitoringInterval = win.setInterval(callback, this.POLL_INTERVAL);
332
- }
333
- else {
334
- addEvent(win, 'resize', callback, true);
335
- addEvent(doc, 'scroll', callback, true);
336
- if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in win) {
337
- domObserver = new win.MutationObserver(callback);
338
- domObserver.observe(doc, {
339
- attributes: true,
340
- childList: true,
341
- characterData: true,
342
- subtree: true
343
- });
344
- }
345
- }
346
- this._monitoringDocuments.push(doc);
347
- this._monitoringUnsubscribes.push(function () {
348
- // Get the window object again. When a friendly iframe is destroyed, it
349
- // will be null.
350
- var win = doc.defaultView;
351
- if (win) {
352
- if (monitoringInterval) {
353
- win.clearInterval(monitoringInterval);
354
- }
355
- removeEvent(win, 'resize', callback, true);
356
- }
357
- removeEvent(doc, 'scroll', callback, true);
358
- if (domObserver) {
359
- domObserver.disconnect();
360
- }
361
- });
362
- // Also monitor the parent.
363
- var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
364
- if (doc != rootDoc) {
365
- var frame = getFrameElement(doc);
366
- if (frame) {
367
- this._monitorIntersections(frame.ownerDocument);
368
- }
369
- }
370
- };
371
- /**
372
- * Stops polling for intersection changes.
373
- * @param {!Document} doc
374
- * @private
375
- */
376
- IntersectionObserver.prototype._unmonitorIntersections = function (doc) {
377
- var index = this._monitoringDocuments.indexOf(doc);
378
- if (index == -1) {
379
- return;
380
- }
381
- var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
382
- // Check if any dependent targets are still remaining.
383
- var hasDependentTargets = this._observationTargets.some(function (item) {
384
- var itemDoc = item.element.ownerDocument;
385
- // Target is in this context.
386
- if (itemDoc == doc) {
387
- return true;
388
- }
389
- // Target is nested in this context.
390
- while (itemDoc && itemDoc != rootDoc) {
391
- var frame = getFrameElement(itemDoc);
392
- itemDoc = frame && frame.ownerDocument;
393
- if (itemDoc == doc) {
394
- return true;
395
- }
396
- }
397
- return false;
398
- });
399
- if (hasDependentTargets) {
400
- return;
401
- }
402
- // Unsubscribe.
403
- var unsubscribe = this._monitoringUnsubscribes[index];
404
- this._monitoringDocuments.splice(index, 1);
405
- this._monitoringUnsubscribes.splice(index, 1);
406
- unsubscribe();
407
- // Also unmonitor the parent.
408
- if (doc != rootDoc) {
409
- var frame = getFrameElement(doc);
410
- if (frame) {
411
- this._unmonitorIntersections(frame.ownerDocument);
412
- }
413
- }
414
- };
415
- /**
416
- * Stops polling for intersection changes.
417
- * @param {!Document} doc
418
- * @private
419
- */
420
- IntersectionObserver.prototype._unmonitorAllIntersections = function () {
421
- var unsubscribes = this._monitoringUnsubscribes.slice(0);
422
- this._monitoringDocuments.length = 0;
423
- this._monitoringUnsubscribes.length = 0;
424
- for (var i = 0; i < unsubscribes.length; i++) {
425
- unsubscribes[i]();
426
- }
427
- };
428
- /**
429
- * Scans each observation target for intersection changes and adds them
430
- * to the internal entries queue. If new entries are found, it
431
- * schedules the callback to be invoked.
432
- * @private
433
- */
434
- IntersectionObserver.prototype._checkForIntersections = function () {
435
- if (!this.root && crossOriginUpdater && !crossOriginRect) {
436
- // Cross origin monitoring, but no initial data available yet.
437
- return;
438
- }
439
- var rootIsInDom = this._rootIsInDom();
440
- var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();
441
- this._observationTargets.forEach(function (item) {
442
- var target = item.element;
443
- var targetRect = getBoundingClientRect(target);
444
- var rootContainsTarget = this._rootContainsTarget(target);
445
- var oldEntry = item.entry;
446
- var intersectionRect = rootIsInDom && rootContainsTarget &&
447
- this._computeTargetAndRootIntersection(target, targetRect, rootRect);
448
- var rootBounds = null;
449
- if (!this._rootContainsTarget(target)) {
450
- rootBounds = getEmptyRect();
451
- }
452
- else if (!crossOriginUpdater || this.root) {
453
- rootBounds = rootRect;
454
- }
455
- var newEntry = item.entry = new IntersectionObserverEntry({
456
- time: now(),
457
- target: target,
458
- boundingClientRect: targetRect,
459
- rootBounds: rootBounds,
460
- intersectionRect: intersectionRect
461
- });
462
- if (!oldEntry) {
463
- this._queuedEntries.push(newEntry);
464
- }
465
- else if (rootIsInDom && rootContainsTarget) {
466
- // If the new entry intersection ratio has crossed any of the
467
- // thresholds, add a new entry.
468
- if (this._hasCrossedThreshold(oldEntry, newEntry)) {
469
- this._queuedEntries.push(newEntry);
470
- }
471
- }
472
- else {
473
- // If the root is not in the DOM or target is not contained within
474
- // root but the previous entry for this target had an intersection,
475
- // add a new record indicating removal.
476
- if (oldEntry && oldEntry.isIntersecting) {
477
- this._queuedEntries.push(newEntry);
478
- }
479
- }
480
- }, this);
481
- if (this._queuedEntries.length) {
482
- this._callback(this.takeRecords(), this);
483
- }
484
- };
485
- /**
486
- * Accepts a target and root rect computes the intersection between then
487
- * following the algorithm in the spec.
488
- * TODO(philipwalton): at this time clip-path is not considered.
489
- * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
490
- * @param {Element} target The target DOM element
491
- * @param {Object} targetRect The bounding rect of the target.
492
- * @param {Object} rootRect The bounding rect of the root after being
493
- * expanded by the rootMargin value.
494
- * @return {?Object} The final intersection rect object or undefined if no
495
- * intersection is found.
496
- * @private
497
- */
498
- IntersectionObserver.prototype._computeTargetAndRootIntersection =
499
- function (target, targetRect, rootRect) {
500
- // If the element isn't displayed, an intersection can't happen.
501
- if (window.getComputedStyle(target).display == 'none')
502
- return;
503
- var intersectionRect = targetRect;
504
- var parent = getParentNode(target);
505
- var atRoot = false;
506
- while (!atRoot && parent) {
507
- var parentRect = null;
508
- var parentComputedStyle = parent.nodeType == 1 ?
509
- window.getComputedStyle(parent) : {};
510
- // If the parent isn't displayed, an intersection can't happen.
511
- if (parentComputedStyle.display == 'none')
512
- return null;
513
- if (parent == this.root || parent.nodeType == /* DOCUMENT */ 9) {
514
- atRoot = true;
515
- if (parent == this.root || parent == document) {
516
- if (crossOriginUpdater && !this.root) {
517
- if (!crossOriginRect ||
518
- crossOriginRect.width == 0 && crossOriginRect.height == 0) {
519
- // A 0-size cross-origin intersection means no-intersection.
520
- parent = null;
521
- parentRect = null;
522
- intersectionRect = null;
523
- }
524
- else {
525
- parentRect = crossOriginRect;
526
- }
527
- }
528
- else {
529
- parentRect = rootRect;
530
- }
531
- }
532
- else {
533
- // Check if there's a frame that can be navigated to.
534
- var frame = getParentNode(parent);
535
- var frameRect = frame && getBoundingClientRect(frame);
536
- var frameIntersect = frame &&
537
- this._computeTargetAndRootIntersection(frame, frameRect, rootRect);
538
- if (frameRect && frameIntersect) {
539
- parent = frame;
540
- parentRect = convertFromParentRect(frameRect, frameIntersect);
541
- }
542
- else {
543
- parent = null;
544
- intersectionRect = null;
545
- }
546
- }
547
- }
548
- else {
549
- // If the element has a non-visible overflow, and it's not the <body>
550
- // or <html> element, update the intersection rect.
551
- // Note: <body> and <html> cannot be clipped to a rect that's not also
552
- // the document rect, so no need to compute a new intersection.
553
- var doc = parent.ownerDocument;
554
- if (parent != doc.body &&
555
- parent != doc.documentElement &&
556
- parentComputedStyle.overflow != 'visible') {
557
- parentRect = getBoundingClientRect(parent);
558
- }
559
- }
560
- // If either of the above conditionals set a new parentRect,
561
- // calculate new intersection data.
562
- if (parentRect) {
563
- intersectionRect = computeRectIntersection(parentRect, intersectionRect);
564
- }
565
- if (!intersectionRect)
566
- break;
567
- parent = parent && getParentNode(parent);
568
- }
569
- return intersectionRect;
570
- };
571
- /**
572
- * Returns the root rect after being expanded by the rootMargin value.
573
- * @return {ClientRect} The expanded root rect.
574
- * @private
575
- */
576
- IntersectionObserver.prototype._getRootRect = function () {
577
- var rootRect;
578
- if (this.root && !isDoc(this.root)) {
579
- rootRect = getBoundingClientRect(this.root);
580
- }
581
- else {
582
- // Use <html>/<body> instead of window since scroll bars affect size.
583
- var doc = isDoc(this.root) ? this.root : document;
584
- var html = doc.documentElement;
585
- var body = doc.body;
586
- rootRect = {
587
- top: 0,
588
- left: 0,
589
- right: html.clientWidth || body.clientWidth,
590
- width: html.clientWidth || body.clientWidth,
591
- bottom: html.clientHeight || body.clientHeight,
592
- height: html.clientHeight || body.clientHeight
593
- };
594
- }
595
- return this._expandRectByRootMargin(rootRect);
596
- };
597
- /**
598
- * Accepts a rect and expands it by the rootMargin value.
599
- * @param {DOMRect|ClientRect} rect The rect object to expand.
600
- * @return {ClientRect} The expanded rect.
601
- * @private
602
- */
603
- IntersectionObserver.prototype._expandRectByRootMargin = function (rect) {
604
- var margins = this._rootMarginValues.map(function (margin, i) {
605
- return margin.unit == 'px' ? margin.value :
606
- margin.value * (i % 2 ? rect.width : rect.height) / 100;
607
- });
608
- var newRect = {
609
- top: rect.top - margins[0],
610
- right: rect.right + margins[1],
611
- bottom: rect.bottom + margins[2],
612
- left: rect.left - margins[3]
613
- };
614
- newRect.width = newRect.right - newRect.left;
615
- newRect.height = newRect.bottom - newRect.top;
616
- return newRect;
617
- };
618
- /**
619
- * Accepts an old and new entry and returns true if at least one of the
620
- * threshold values has been crossed.
621
- * @param {?IntersectionObserverEntry} oldEntry The previous entry for a
622
- * particular target element or null if no previous entry exists.
623
- * @param {IntersectionObserverEntry} newEntry The current entry for a
624
- * particular target element.
625
- * @return {boolean} Returns true if a any threshold has been crossed.
626
- * @private
627
- */
628
- IntersectionObserver.prototype._hasCrossedThreshold =
629
- function (oldEntry, newEntry) {
630
- // To make comparing easier, an entry that has a ratio of 0
631
- // but does not actually intersect is given a value of -1
632
- var oldRatio = oldEntry && oldEntry.isIntersecting ?
633
- oldEntry.intersectionRatio || 0 : -1;
634
- var newRatio = newEntry.isIntersecting ?
635
- newEntry.intersectionRatio || 0 : -1;
636
- // Ignore unchanged ratios
637
- if (oldRatio === newRatio)
638
- return;
639
- for (var i = 0; i < this.thresholds.length; i++) {
640
- var threshold = this.thresholds[i];
641
- // Return true if an entry matches a threshold or if the new ratio
642
- // and the old ratio are on the opposite sides of a threshold.
643
- if (threshold == oldRatio || threshold == newRatio ||
644
- threshold < oldRatio !== threshold < newRatio) {
645
- return true;
646
- }
647
- }
648
- };
649
- /**
650
- * Returns whether or not the root element is an element and is in the DOM.
651
- * @return {boolean} True if the root element is an element and is in the DOM.
652
- * @private
653
- */
654
- IntersectionObserver.prototype._rootIsInDom = function () {
655
- return !this.root || containsDeep(document, this.root);
656
- };
657
- /**
658
- * Returns whether or not the target element is a child of root.
659
- * @param {Element} target The target element to check.
660
- * @return {boolean} True if the target element is a child of root.
661
- * @private
662
- */
663
- IntersectionObserver.prototype._rootContainsTarget = function (target) {
664
- var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
665
- return (containsDeep(rootDoc, target) &&
666
- (!this.root || rootDoc == target.ownerDocument));
667
- };
668
- /**
669
- * Adds the instance to the global IntersectionObserver registry if it isn't
670
- * already present.
671
- * @private
672
- */
673
- IntersectionObserver.prototype._registerInstance = function () {
674
- if (registry.indexOf(this) < 0) {
675
- registry.push(this);
676
- }
677
- };
678
- /**
679
- * Removes the instance from the global IntersectionObserver registry.
680
- * @private
681
- */
682
- IntersectionObserver.prototype._unregisterInstance = function () {
683
- var index = registry.indexOf(this);
684
- if (index != -1)
685
- registry.splice(index, 1);
686
- };
687
- /**
688
- * Returns the result of the performance.now() method or null in browsers
689
- * that don't support the API.
690
- * @return {number} The elapsed time since the page was requested.
691
- */
692
- function now() {
693
- return window.performance && performance.now && performance.now();
694
- }
695
- /**
696
- * Throttles a function and delays its execution, so it's only called at most
697
- * once within a given time period.
698
- * @param {Function} fn The function to throttle.
699
- * @param {number} timeout The amount of time that must pass before the
700
- * function can be called again.
701
- * @return {Function} The throttled function.
702
- */
703
- function throttle(fn, timeout) {
704
- var timer = null;
705
- return function () {
706
- if (!timer) {
707
- timer = setTimeout(function () {
708
- fn();
709
- timer = null;
710
- }, timeout);
711
- }
712
- };
713
- }
714
- /**
715
- * Adds an event handler to a DOM node ensuring cross-browser compatibility.
716
- * @param {Node} node The DOM node to add the event handler to.
717
- * @param {string} event The event name.
718
- * @param {Function} fn The event handler to add.
719
- * @param {boolean} opt_useCapture Optionally adds the even to the capture
720
- * phase. Note: this only works in modern browsers.
721
- */
722
- function addEvent(node, event, fn, opt_useCapture) {
723
- if (typeof node.addEventListener == 'function') {
724
- node.addEventListener(event, fn, opt_useCapture || false);
725
- }
726
- else if (typeof node.attachEvent == 'function') {
727
- node.attachEvent('on' + event, fn);
728
- }
729
- }
730
- /**
731
- * Removes a previously added event handler from a DOM node.
732
- * @param {Node} node The DOM node to remove the event handler from.
733
- * @param {string} event The event name.
734
- * @param {Function} fn The event handler to remove.
735
- * @param {boolean} opt_useCapture If the event handler was added with this
736
- * flag set to true, it should be set to true here in order to remove it.
737
- */
738
- function removeEvent(node, event, fn, opt_useCapture) {
739
- if (typeof node.removeEventListener == 'function') {
740
- node.removeEventListener(event, fn, opt_useCapture || false);
741
- }
742
- else if (typeof node.detatchEvent == 'function') {
743
- node.detatchEvent('on' + event, fn);
744
- }
745
- }
746
- /**
747
- * Returns the intersection between two rect objects.
748
- * @param {Object} rect1 The first rect.
749
- * @param {Object} rect2 The second rect.
750
- * @return {?Object|?ClientRect} The intersection rect or undefined if no
751
- * intersection is found.
752
- */
753
- function computeRectIntersection(rect1, rect2) {
754
- var top = Math.max(rect1.top, rect2.top);
755
- var bottom = Math.min(rect1.bottom, rect2.bottom);
756
- var left = Math.max(rect1.left, rect2.left);
757
- var right = Math.min(rect1.right, rect2.right);
758
- var width = right - left;
759
- var height = bottom - top;
760
- return (width >= 0 && height >= 0) && {
761
- top: top,
762
- bottom: bottom,
763
- left: left,
764
- right: right,
765
- width: width,
766
- height: height
767
- } || null;
768
- }
769
- /**
770
- * Shims the native getBoundingClientRect for compatibility with older IE.
771
- * @param {Element} el The element whose bounding rect to get.
772
- * @return {DOMRect|ClientRect} The (possibly shimmed) rect of the element.
773
- */
774
- function getBoundingClientRect(el) {
775
- var rect;
776
- try {
777
- rect = el.getBoundingClientRect();
778
- }
779
- catch (err) {
780
- // Ignore Windows 7 IE11 "Unspecified error"
781
- // https://github.com/w3c/IntersectionObserver/pull/205
782
- }
783
- if (!rect)
784
- return getEmptyRect();
785
- // Older IE
786
- if (!(rect.width && rect.height)) {
787
- rect = {
788
- top: rect.top,
789
- right: rect.right,
790
- bottom: rect.bottom,
791
- left: rect.left,
792
- width: rect.right - rect.left,
793
- height: rect.bottom - rect.top
794
- };
795
- }
796
- return rect;
797
- }
798
- /**
799
- * Returns an empty rect object. An empty rect is returned when an element
800
- * is not in the DOM.
801
- * @return {ClientRect} The empty rect.
802
- */
803
- function getEmptyRect() {
804
- return {
805
- top: 0,
806
- bottom: 0,
807
- left: 0,
808
- right: 0,
809
- width: 0,
810
- height: 0
811
- };
812
- }
813
- /**
814
- * Ensure that the result has all of the necessary fields of the DOMRect.
815
- * Specifically this ensures that `x` and `y` fields are set.
816
- *
817
- * @param {?DOMRect|?ClientRect} rect
818
- * @return {?DOMRect}
819
- */
820
- function ensureDOMRect(rect) {
821
- // A `DOMRect` object has `x` and `y` fields.
822
- if (!rect || 'x' in rect) {
823
- return rect;
824
- }
825
- // A IE's `ClientRect` type does not have `x` and `y`. The same is the case
826
- // for internally calculated Rect objects. For the purposes of
827
- // `IntersectionObserver`, it's sufficient to simply mirror `left` and `top`
828
- // for these fields.
829
- return {
830
- top: rect.top,
831
- y: rect.top,
832
- bottom: rect.bottom,
833
- left: rect.left,
834
- x: rect.left,
835
- right: rect.right,
836
- width: rect.width,
837
- height: rect.height
838
- };
839
- }
840
- /**
841
- * Inverts the intersection and bounding rect from the parent (frame) BCR to
842
- * the local BCR space.
843
- * @param {DOMRect|ClientRect} parentBoundingRect The parent's bound client rect.
844
- * @param {DOMRect|ClientRect} parentIntersectionRect The parent's own intersection rect.
845
- * @return {ClientRect} The local root bounding rect for the parent's children.
846
- */
847
- function convertFromParentRect(parentBoundingRect, parentIntersectionRect) {
848
- var top = parentIntersectionRect.top - parentBoundingRect.top;
849
- var left = parentIntersectionRect.left - parentBoundingRect.left;
850
- return {
851
- top: top,
852
- left: left,
853
- height: parentIntersectionRect.height,
854
- width: parentIntersectionRect.width,
855
- bottom: top + parentIntersectionRect.height,
856
- right: left + parentIntersectionRect.width
857
- };
858
- }
859
- /**
860
- * Checks to see if a parent element contains a child element (including inside
861
- * shadow DOM).
862
- * @param {Node} parent The parent element.
863
- * @param {Node} child The child element.
864
- * @return {boolean} True if the parent node contains the child node.
865
- */
866
- function containsDeep(parent, child) {
867
- var node = child;
868
- while (node) {
869
- if (node == parent)
870
- return true;
871
- node = getParentNode(node);
872
- }
873
- return false;
874
- }
875
- /**
876
- * Gets the parent node of an element or its host element if the parent node
877
- * is a shadow root.
878
- * @param {Node} node The node whose parent to get.
879
- * @return {Node|null} The parent node or null if no parent exists.
880
- */
881
- function getParentNode(node) {
882
- var parent = node.parentNode;
883
- if (node.nodeType == /* DOCUMENT */ 9 && node != document) {
884
- // If this node is a document node, look for the embedding frame.
885
- return getFrameElement(node);
886
- }
887
- // If the parent has element that is assigned through shadow root slot
888
- if (parent && parent.assignedSlot) {
889
- parent = parent.assignedSlot.parentNode;
890
- }
891
- if (parent && parent.nodeType == 11 && parent.host) {
892
- // If the parent is a shadow root, return the host element.
893
- return parent.host;
894
- }
895
- return parent;
896
- }
897
- /**
898
- * Returns true if `node` is a Document.
899
- * @param {!Node} node
900
- * @returns {boolean}
901
- */
902
- function isDoc(node) {
903
- return node && node.nodeType === 9;
904
- }
905
- // Exposes the constructors globally.
906
- window.IntersectionObserver = IntersectionObserver;
907
- window.IntersectionObserverEntry = IntersectionObserverEntry;
908
- }());
909
-
910
- var DEBOUNCE_TIMEOUT = 300;
911
- var actions = {
912
- fetchOptionsStart: function () {
913
- return { type: 'FETCH_OPTIONS_START' };
914
- },
915
- fetchOptionsBreak: function () {
916
- return { type: 'FETCH_OPTIONS_BREAK' };
917
- },
918
- fetchOptionsSuccess: function (payload) {
919
- return { type: 'FETCH_OPTIONS_SUCCESS', payload: payload };
920
- },
921
- setIsOpened: function (opened) {
922
- return { type: 'SET_IS_OPENED', payload: opened };
923
- },
924
- setQueryString: function (qs) {
925
- return { type: 'SET_QUERY_STRING', payload: qs };
926
- },
927
- reset: function () {
928
- return { type: 'RESET' };
929
- },
930
- };
931
- function useLazyLoading(_a) {
932
- var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React__default['default'].createElement(coreComponentsSkeleton.Skeleton, { className: styles__default['default'].skeleton, visible: true }) : _d;
933
- var initialOptions = [];
934
- var initialLoading = false;
935
- var lazyLoadingInitialState = {
936
- opened: false,
937
- offset: initialOffset,
938
- options: initialOptions,
939
- loading: initialLoading,
940
- allOptionsLoaded: false,
941
- queryString: '',
942
- };
943
- var lazyLoadingReducer = function (state, action) {
944
- switch (action.type) {
945
- case 'FETCH_OPTIONS_START': {
946
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { loading: true });
947
- }
948
- case 'FETCH_OPTIONS_BREAK': {
949
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { loading: false });
950
- }
951
- case 'FETCH_OPTIONS_SUCCESS': {
952
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { options: tslib_es6.__spreadArrays(state.options, action.payload.options), offset: state.offset + (action.payload.options.length ? 1 : 0), allOptionsLoaded: !action.payload.hasMore, loading: false });
953
- }
954
- case 'SET_IS_OPENED': {
955
- return tslib_es6.__assign(tslib_es6.__assign({}, state), { opened: action.payload });
956
- }
957
- case 'SET_QUERY_STRING': {
958
- return tslib_es6.__assign(tslib_es6.__assign({}, lazyLoadingInitialState), { opened: state.opened, loading: true, queryString: action.payload });
959
- }
960
- case 'RESET': {
961
- return tslib_es6.__assign({}, lazyLoadingInitialState);
962
- }
963
- default: {
964
- return state;
965
- }
966
- }
967
- };
968
- var _e = React.useReducer(lazyLoadingReducer, lazyLoadingInitialState), _f = _e[0], opened = _f.opened, offset = _f.offset, options = _f.options, loading = _f.loading, allOptionsLoaded = _f.allOptionsLoaded, queryString = _f.queryString, dispatch = _e[1];
969
- var abortFetchingOptionsRef = React.useRef();
970
- var fetchNextOffsetOptions = React.useCallback(function () {
971
- dispatch(actions.fetchOptionsStart());
972
- new Promise(function (resolve, reject) {
973
- var _a;
974
- // eslint-disable-next-line no-unused-expressions
975
- (_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
976
- abortFetchingOptionsRef.current = reject;
977
- optionsFetcher(offset, limit, queryString).then(function (res) {
978
- resolve(res);
979
- });
980
- })
981
- .then(function (res) {
982
- dispatch(actions.fetchOptionsSuccess(res));
983
- abortFetchingOptionsRef.current = undefined;
984
- })
985
- .catch(
986
- // eslint-disable-next-line @typescript-eslint/no-empty-function
987
- function () { });
988
- }, [optionsFetcher, offset, limit, queryString]);
989
- var listRef = React.useRef(null);
990
- React.useEffect(function () {
991
- var _a;
992
- var observer;
993
- if (opened && !loading && !allOptionsLoaded) {
994
- observer = new IntersectionObserver(function (_a) {
995
- var entry = _a[0];
996
- if (entry.isIntersecting) {
997
- if (observer) {
998
- observer.disconnect();
999
- }
1000
- fetchNextOffsetOptions();
1001
- }
1002
- }, {
1003
- root: listRef.current,
1004
- });
1005
- /*
1006
- * Обсервим пересечение последней опции с контейнером.
1007
- * Таким образом, загрузка следующей "страницы" начнется когда юзер доскроллит список
1008
- * до верхнего края последней опции, что обеспечивает плавность
1009
- */
1010
- var options_1 = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
1011
- var lastOption = options_1 === null || options_1 === void 0 ? void 0 : options_1[options_1.length - 1];
1012
- if (lastOption) {
1013
- observer.observe(lastOption);
1014
- }
1015
- }
1016
- return function () {
1017
- if (observer) {
1018
- observer.disconnect();
1019
- }
1020
- };
1021
- }, [offset, fetchNextOffsetOptions, opened, allOptionsLoaded, initialOffset, loading]);
1022
- var onOpen = React.useCallback(function (payload) {
1023
- var _a, _b;
1024
- if (payload.open) {
1025
- if (options.length === initialOptions.length) {
1026
- fetchNextOffsetOptions();
1027
- }
1028
- }
1029
- else {
1030
- // eslint-disable-next-line no-unused-expressions
1031
- (_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
1032
- dispatch(actions.fetchOptionsBreak());
1033
- }
1034
- dispatch(actions.setIsOpened((_b = payload.open) !== null && _b !== void 0 ? _b : false));
1035
- }, [initialOptions.length, fetchNextOffsetOptions, options.length]);
1036
- var fetchNextOptionsRef = React.useRef();
1037
- var fetchNextOptionsTimerRef = React.useRef();
1038
- React.useEffect(function () {
1039
- fetchNextOptionsRef.current = fetchNextOffsetOptions;
1040
- }, [fetchNextOffsetOptions]);
1041
- var onQueryStringChange = React.useCallback(function (_, payload) {
1042
- var _a, _b;
1043
- dispatch(actions.setQueryString(payload.value));
1044
- /* eslint-disable no-unused-expressions */
1045
- /*
1046
- * Если во время загрузки опций юзер ввел новый текст в инпут,
1047
- * нужно прервать текущую загрузку, чтобы неактуальные опции не попали в выдачу
1048
- */
1049
- (_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
1050
- (_b = listRef.current) === null || _b === void 0 ? void 0 : _b.scrollTo({ top: 0 });
1051
- /* Дебаунсим ввод текста, чтобы не отправлять запрос к новым опциям на каждый чих */
1052
- if (fetchNextOptionsTimerRef.current) {
1053
- clearTimeout(fetchNextOptionsTimerRef.current);
1054
- }
1055
- fetchNextOptionsTimerRef.current = setTimeout(function () {
1056
- var _a;
1057
- /*
1058
- * После дебаунса необходимо вызвать функцию-загрузчик,
1059
- * содержащую актуальные на данный момент данные оффсета и queryString.
1060
- * Поэтому мы не можем обратиться напрямую к функции fetchNextOptions,
1061
- * так как она будет замкнута на старые значения, актуальные на момент вызова хэндлера,
1062
- * так что берем ее из обновляемого рефа
1063
- */
1064
- (_a = fetchNextOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(fetchNextOptionsRef);
1065
- }, DEBOUNCE_TIMEOUT);
1066
- /* eslint-enable */
1067
- }, []);
1068
- var renderOption = React.useCallback(function (props) { return React__default['default'].createElement(components_option_Component.Option, tslib_es6.__assign({}, props, { highlighted: loading ? false : props.highlighted })); }, [loading]);
1069
- var skeletonOptions = React.useMemo(function () {
1070
- return Array(loading ? limit : 0)
1071
- .fill(0)
1072
- .map(function (_, key) { return ({
1073
- key: "loading-" + key,
1074
- disabled: true,
1075
- content: skeleton,
1076
- }); });
1077
- }, [loading, limit, skeleton]);
1078
- var reset = React.useCallback(function () {
1079
- dispatch(actions.reset());
1080
- }, []);
1081
- return {
1082
- optionsProps: {
1083
- Option: renderOption,
1084
- options: tslib_es6.__spreadArrays(options, skeletonOptions),
1085
- optionsListProps: {
1086
- ref: listRef,
1087
- inputProps: {
1088
- onChange: onQueryStringChange,
1089
- value: queryString,
1090
- },
1091
- },
1092
- onOpen: onOpen,
1093
- },
1094
- reset: reset,
1095
- };
1096
- }
1097
-
1098
- exports.useLazyLoading = useLazyLoading;