@alfalab/core-components 20.2.0 → 20.4.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 (1662) hide show
  1. package/alert/cssm/Component.d.ts +5 -0
  2. package/alert/cssm/Component.js +58 -0
  3. package/alert/cssm/index.d.ts +1 -0
  4. package/alert/cssm/index.js +11 -0
  5. package/alert/cssm/index.module.css +37 -0
  6. package/amount/cssm/component.d.ts +9 -0
  7. package/amount/cssm/component.js +35 -0
  8. package/amount/cssm/index.d.ts +8 -0
  9. package/amount/cssm/index.js +14 -0
  10. package/amount/cssm/index.module.css +20 -0
  11. package/amount/cssm/pure/component.d.ts +10 -0
  12. package/amount/cssm/pure/component.js +30 -0
  13. package/amount/cssm/pure/index.d.ts +1 -0
  14. package/amount/cssm/pure/index.js +11 -0
  15. package/amount/cssm/pure/index.module.css +3 -0
  16. package/amount/cssm/types/amount-props.d.ts +29 -0
  17. package/amount/cssm/types/amount-props.js +1 -0
  18. package/amount/cssm/types/index.d.ts +2 -0
  19. package/amount/cssm/types/index.js +1 -0
  20. package/amount-input/cssm/Component.d.ts +98 -0
  21. package/amount-input/cssm/Component.js +168 -0
  22. package/amount-input/cssm/default.module.css +17 -0
  23. package/amount-input/cssm/index.d.ts +1 -0
  24. package/amount-input/cssm/index.js +16 -0
  25. package/amount-input/cssm/index.module.css +35 -0
  26. package/amount-input/cssm/inverted.module.css +16 -0
  27. package/amount-input/cssm/utils/index.d.ts +10 -0
  28. package/amount-input/cssm/utils/index.js +40 -0
  29. package/attach/cssm/Component.d.ts +133 -0
  30. package/attach/cssm/Component.js +145 -0
  31. package/attach/cssm/index.d.ts +1 -0
  32. package/attach/cssm/index.js +18 -0
  33. package/attach/cssm/index.module.css +105 -0
  34. package/attach/cssm/utils/index.d.ts +2 -0
  35. package/attach/cssm/utils/index.js +11 -0
  36. package/backdrop/cssm/Component.d.ts +36 -0
  37. package/backdrop/cssm/Component.js +62 -0
  38. package/backdrop/cssm/index.d.ts +1 -0
  39. package/backdrop/cssm/index.js +11 -0
  40. package/backdrop/cssm/index.module.css +46 -0
  41. package/backdrop/cssm/vars.css +8 -0
  42. package/badge/cssm/Component.d.ts +34 -0
  43. package/badge/cssm/Component.js +26 -0
  44. package/badge/cssm/index.d.ts +1 -0
  45. package/badge/cssm/index.js +10 -0
  46. package/badge/cssm/index.module.css +114 -0
  47. package/bank-card/cssm/Component.d.ts +41 -0
  48. package/bank-card/cssm/Component.js +70 -0
  49. package/bank-card/cssm/index.d.ts +1 -0
  50. package/bank-card/cssm/index.js +15 -0
  51. package/bank-card/cssm/index.module.css +634 -0
  52. package/bank-card/cssm/utils.d.ts +8 -0
  53. package/bank-card/cssm/utils.js +27 -0
  54. package/base-modal/cssm/Component.d.ts +125 -0
  55. package/base-modal/cssm/Component.js +243 -0
  56. package/base-modal/cssm/index.d.ts +2 -0
  57. package/base-modal/cssm/index.js +24 -0
  58. package/base-modal/cssm/index.module.css +61 -0
  59. package/base-modal/cssm/utils.d.ts +6 -0
  60. package/base-modal/cssm/utils.js +102 -0
  61. package/bottom-sheet/cssm/Component-24200d96.d.ts +50 -0
  62. package/bottom-sheet/cssm/Component-24200d96.js +53 -0
  63. package/bottom-sheet/cssm/component.d.ts +55 -0
  64. package/bottom-sheet/cssm/component.js +150 -0
  65. package/bottom-sheet/cssm/components/footer/Component.d.ts +13 -0
  66. package/bottom-sheet/cssm/components/footer/Component.js +26 -0
  67. package/bottom-sheet/cssm/components/footer/index.module.css +25 -0
  68. package/bottom-sheet/cssm/components/swipeable-backdrop/Component.d.ts +0 -0
  69. package/bottom-sheet/cssm/components/swipeable-backdrop/Component.js +9 -0
  70. package/bottom-sheet/cssm/index.d.ts +1 -0
  71. package/bottom-sheet/cssm/index.js +18 -0
  72. package/bottom-sheet/cssm/index.module.css +91 -0
  73. package/button/cssm/Component.d.ts +63 -0
  74. package/button/cssm/Component.js +129 -0
  75. package/button/cssm/default.module.css +193 -0
  76. package/button/cssm/index.d.ts +1 -0
  77. package/button/cssm/index.js +16 -0
  78. package/button/cssm/index.module.css +187 -0
  79. package/button/cssm/inverted.module.css +181 -0
  80. package/calendar/Component.js +1 -1
  81. package/calendar/components/days-table/Component.js +1 -1
  82. package/calendar/components/days-table/index.js +1 -1
  83. package/calendar/components/header/Component.js +1 -1
  84. package/calendar/components/header/index.js +1 -1
  85. package/calendar/components/months-table/Component.js +1 -1
  86. package/calendar/components/months-table/index.js +1 -1
  87. package/calendar/components/select-button/Component.js +1 -1
  88. package/calendar/components/select-button/index.js +1 -1
  89. package/calendar/components/years-table/Component.js +1 -1
  90. package/calendar/components/years-table/index.js +1 -1
  91. package/calendar/cssm/Component.d.ts +67 -0
  92. package/calendar/cssm/Component.js +103 -0
  93. package/calendar/cssm/components/days-table/Component.d.ts +32 -0
  94. package/calendar/cssm/components/days-table/Component.js +77 -0
  95. package/calendar/cssm/components/days-table/index.d.ts +1 -0
  96. package/calendar/cssm/components/days-table/index.js +16 -0
  97. package/calendar/cssm/components/days-table/index.module.css +240 -0
  98. package/calendar/cssm/components/header/Component.d.ts +46 -0
  99. package/calendar/cssm/components/header/Component.js +38 -0
  100. package/calendar/cssm/components/header/index.d.ts +1 -0
  101. package/calendar/cssm/components/header/index.js +14 -0
  102. package/calendar/cssm/components/header/index.module.css +108 -0
  103. package/calendar/cssm/components/months-table/Component.d.ts +18 -0
  104. package/calendar/cssm/components/months-table/Component.js +30 -0
  105. package/calendar/cssm/components/months-table/index.d.ts +1 -0
  106. package/calendar/cssm/components/months-table/index.js +16 -0
  107. package/calendar/cssm/components/months-table/index.module.css +46 -0
  108. package/calendar/cssm/components/select-button/Component.d.ts +24 -0
  109. package/calendar/cssm/components/select-button/Component.js +20 -0
  110. package/calendar/cssm/components/select-button/index.d.ts +1 -0
  111. package/calendar/cssm/components/select-button/index.js +12 -0
  112. package/calendar/cssm/components/select-button/index.module.css +79 -0
  113. package/calendar/cssm/components/years-table/Component.d.ts +21 -0
  114. package/calendar/cssm/components/years-table/Component.js +44 -0
  115. package/calendar/cssm/components/years-table/index.d.ts +1 -0
  116. package/calendar/cssm/components/years-table/index.js +15 -0
  117. package/calendar/cssm/components/years-table/index.module.css +57 -0
  118. package/calendar/cssm/index.d.ts +4 -0
  119. package/calendar/cssm/index.js +40 -0
  120. package/calendar/cssm/index.module.css +53 -0
  121. package/calendar/{esm/tslib.es6-4cdbe0cb.d.ts → cssm/tslib.es6-ce870b46.d.ts} +0 -0
  122. package/calendar/{tslib.es6-74210174.js → cssm/tslib.es6-ce870b46.js} +0 -0
  123. package/calendar/cssm/typings.d.ts +15 -0
  124. package/calendar/cssm/typings.js +1 -0
  125. package/calendar/cssm/useCalendar.d.ts +89 -0
  126. package/calendar/cssm/useCalendar.js +283 -0
  127. package/calendar/cssm/usePeriod.d.ts +23 -0
  128. package/calendar/cssm/usePeriod.js +67 -0
  129. package/calendar/cssm/utils.d.ts +78 -0
  130. package/calendar/cssm/utils.js +191 -0
  131. package/calendar/cssm/vars.css +20 -0
  132. package/calendar/esm/Component.js +1 -1
  133. package/calendar/esm/components/days-table/Component.js +1 -1
  134. package/calendar/esm/components/days-table/index.js +1 -1
  135. package/calendar/esm/components/header/Component.js +1 -1
  136. package/calendar/esm/components/header/index.js +1 -1
  137. package/calendar/esm/components/months-table/Component.js +1 -1
  138. package/calendar/esm/components/months-table/index.js +1 -1
  139. package/calendar/esm/components/select-button/Component.js +1 -1
  140. package/calendar/esm/components/select-button/index.js +1 -1
  141. package/calendar/esm/components/years-table/Component.js +1 -1
  142. package/calendar/esm/components/years-table/index.js +1 -1
  143. package/calendar/esm/index.js +1 -1
  144. package/calendar/{tslib.es6-74210174.d.ts → esm/tslib.es6-decc30d3.d.ts} +0 -0
  145. package/calendar/esm/{tslib.es6-4cdbe0cb.js → tslib.es6-decc30d3.js} +0 -0
  146. package/calendar/index.js +1 -1
  147. package/{gallery/esm/tslib.es6-5424b006.d.ts → calendar/tslib.es6-af3fab91.d.ts} +0 -0
  148. package/{gallery/tslib.es6-36496c07.js → calendar/tslib.es6-af3fab91.js} +0 -0
  149. package/calendar-input/cssm/Component.d.ts +169 -0
  150. package/calendar-input/cssm/Component.js +161 -0
  151. package/calendar-input/cssm/index.d.ts +2 -0
  152. package/calendar-input/cssm/index.js +25 -0
  153. package/calendar-input/cssm/index.module.css +84 -0
  154. package/calendar-input/cssm/stories.module.css +28 -0
  155. package/calendar-input/cssm/utils.d.ts +13 -0
  156. package/calendar-input/cssm/utils.js +38 -0
  157. package/calendar-range/cssm/Component.d.ts +55 -0
  158. package/calendar-range/cssm/Component.js +196 -0
  159. package/calendar-range/cssm/index.d.ts +1 -0
  160. package/calendar-range/cssm/index.js +16 -0
  161. package/calendar-range/cssm/index.module.css +35 -0
  162. package/calendar-range/cssm/useCalendarMaxMinDates.d.ts +16 -0
  163. package/calendar-range/cssm/useCalendarMaxMinDates.js +20 -0
  164. package/calendar-range/cssm/useCalendarMonthes.d.ts +14 -0
  165. package/calendar-range/cssm/useCalendarMonthes.js +44 -0
  166. package/calendar-range/cssm/utils.d.ts +11 -0
  167. package/calendar-range/cssm/utils.js +22 -0
  168. package/calendar-with-skeleton/cssm/Component.d.ts +24 -0
  169. package/calendar-with-skeleton/cssm/Component.js +74 -0
  170. package/calendar-with-skeleton/cssm/index.d.ts +1 -0
  171. package/calendar-with-skeleton/cssm/index.js +13 -0
  172. package/calendar-with-skeleton/cssm/index.module.css +60 -0
  173. package/card-image/cssm/Component.d.ts +50 -0
  174. package/card-image/cssm/Component.js +38 -0
  175. package/card-image/cssm/index.d.ts +1 -0
  176. package/card-image/cssm/index.js +13 -0
  177. package/card-image/cssm/index.module.css +35 -0
  178. package/cdn-icon/cssm/Component.d.ts +18 -0
  179. package/cdn-icon/cssm/Component.js +30 -0
  180. package/cdn-icon/cssm/index.d.ts +1 -0
  181. package/cdn-icon/cssm/index.js +9 -0
  182. package/cdn-icon/cssm/index.module.css +14 -0
  183. package/chart/Component.d.ts +5 -0
  184. package/chart/Component.js +269 -0
  185. package/chart/components/Dot/index.css +23 -0
  186. package/chart/components/Dot/index.d.ts +5 -0
  187. package/chart/components/Dot/index.js +53 -0
  188. package/chart/components/Legends/index.css +40 -0
  189. package/chart/components/Legends/index.d.ts +14 -0
  190. package/chart/components/Legends/index.js +46 -0
  191. package/chart/components/LinearGradient.d.ts +5 -0
  192. package/chart/components/LinearGradient.js +14 -0
  193. package/chart/components/Tick/index.css +27 -0
  194. package/chart/components/Tick/index.d.ts +4 -0
  195. package/chart/components/Tick/index.js +28 -0
  196. package/chart/components/TooltipContent/index.css +65 -0
  197. package/chart/components/TooltipContent/index.d.ts +10 -0
  198. package/chart/components/TooltipContent/index.js +36 -0
  199. package/chart/cssm/Component.d.ts +5 -0
  200. package/chart/cssm/Component.js +272 -0
  201. package/chart/cssm/components/Dot/index.d.ts +5 -0
  202. package/chart/cssm/components/Dot/index.js +52 -0
  203. package/chart/cssm/components/Dot/index.module.css +22 -0
  204. package/chart/cssm/components/Legends/index.d.ts +14 -0
  205. package/chart/cssm/components/Legends/index.js +45 -0
  206. package/chart/cssm/components/Legends/index.module.css +39 -0
  207. package/chart/cssm/components/LinearGradient.d.ts +5 -0
  208. package/chart/cssm/components/LinearGradient.js +14 -0
  209. package/chart/cssm/components/Tick/index.d.ts +4 -0
  210. package/chart/cssm/components/Tick/index.js +27 -0
  211. package/chart/cssm/components/Tick/index.module.css +26 -0
  212. package/chart/cssm/components/TooltipContent/index.d.ts +10 -0
  213. package/chart/cssm/components/TooltipContent/index.js +35 -0
  214. package/chart/cssm/components/TooltipContent/index.module.css +64 -0
  215. package/chart/cssm/hooks/useSettings/index.d.ts +16 -0
  216. package/chart/cssm/hooks/useSettings/index.js +47 -0
  217. package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  218. package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
  219. package/chart/cssm/hooks/useSettings/utils/setDatas.d.ts +6 -0
  220. package/chart/cssm/hooks/useSettings/utils/setDatas.js +39 -0
  221. package/chart/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  222. package/chart/cssm/hooks/useSettings/utils/setGradientCharts.js +27 -0
  223. package/chart/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  224. package/chart/cssm/hooks/useSettings/utils/setLegendMargin.js +16 -0
  225. package/chart/cssm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  226. package/chart/cssm/hooks/useSettings/utils/sortByIndex.js +12 -0
  227. package/chart/cssm/icons/Circle.d.ts +7 -0
  228. package/chart/cssm/icons/Circle.js +15 -0
  229. package/chart/cssm/icons/CircleLine.d.ts +8 -0
  230. package/chart/cssm/icons/CircleLine.js +16 -0
  231. package/chart/cssm/icons/FilledCircle.d.ts +7 -0
  232. package/chart/cssm/icons/FilledCircle.js +19 -0
  233. package/chart/cssm/icons/Point.d.ts +7 -0
  234. package/chart/cssm/icons/Point.js +16 -0
  235. package/chart/cssm/icons/StrokeCircle.d.ts +7 -0
  236. package/chart/cssm/icons/StrokeCircle.js +15 -0
  237. package/chart/cssm/index.d.ts +1 -0
  238. package/chart/cssm/index.js +27 -0
  239. package/chart/cssm/index.module.css +25 -0
  240. package/{gallery/tslib.es6-36496c07.d.ts → chart/cssm/tslib.es6-2be2aee7.d.ts} +0 -0
  241. package/chart/cssm/tslib.es6-2be2aee7.js +26 -0
  242. package/chart/cssm/types/brush.types.d.ts +41 -0
  243. package/chart/cssm/types/brush.types.js +1 -0
  244. package/chart/cssm/types/cartesianGrid.types.d.ts +23 -0
  245. package/chart/cssm/types/cartesianGrid.types.js +1 -0
  246. package/chart/cssm/types/chart.types.d.ts +61 -0
  247. package/chart/cssm/types/chart.types.js +1 -0
  248. package/chart/cssm/types/composedChart.types.d.ts +33 -0
  249. package/chart/cssm/types/composedChart.types.js +1 -0
  250. package/chart/cssm/types/legend.types.d.ts +30 -0
  251. package/chart/cssm/types/legend.types.js +1 -0
  252. package/chart/cssm/types/options.types.d.ts +59 -0
  253. package/chart/cssm/types/options.types.js +1 -0
  254. package/chart/cssm/types/payload.types.d.ts +29 -0
  255. package/chart/cssm/types/payload.types.js +1 -0
  256. package/chart/cssm/types/responsiveContainer.types.d.ts +10 -0
  257. package/chart/cssm/types/responsiveContainer.types.js +1 -0
  258. package/chart/cssm/types/seria.types.d.ts +59 -0
  259. package/chart/cssm/types/seria.types.js +1 -0
  260. package/chart/cssm/types/tooltip.types.d.ts +70 -0
  261. package/chart/cssm/types/tooltip.types.js +1 -0
  262. package/chart/cssm/types/utils/axis.types.d.ts +68 -0
  263. package/chart/cssm/types/utils/axis.types.js +1 -0
  264. package/chart/cssm/types/utils/coordinates.types.d.ts +11 -0
  265. package/chart/cssm/types/utils/coordinates.types.js +1 -0
  266. package/chart/cssm/types/utils/data.types.d.ts +17 -0
  267. package/chart/cssm/types/utils/data.types.js +1 -0
  268. package/chart/cssm/types/utils/dot.types.d.ts +73 -0
  269. package/chart/cssm/types/utils/dot.types.js +1 -0
  270. package/chart/cssm/types/utils/gradient.types.d.ts +29 -0
  271. package/chart/cssm/types/utils/gradient.types.js +1 -0
  272. package/chart/cssm/types/utils/tick.types.d.ts +19 -0
  273. package/chart/cssm/types/utils/tick.types.js +1 -0
  274. package/chart/cssm/types/xAxis.types.d.ts +16 -0
  275. package/chart/cssm/types/xAxis.types.js +1 -0
  276. package/chart/cssm/types/yAxis.types.d.ts +8 -0
  277. package/chart/cssm/types/yAxis.types.js +1 -0
  278. package/chart/esm/Component.d.ts +5 -0
  279. package/chart/esm/Component.js +264 -0
  280. package/chart/esm/components/Dot/index.css +23 -0
  281. package/chart/esm/components/Dot/index.d.ts +5 -0
  282. package/chart/esm/components/Dot/index.js +46 -0
  283. package/chart/esm/components/Legends/index.css +40 -0
  284. package/chart/esm/components/Legends/index.d.ts +14 -0
  285. package/chart/esm/components/Legends/index.js +39 -0
  286. package/chart/esm/components/LinearGradient.d.ts +5 -0
  287. package/chart/esm/components/LinearGradient.js +8 -0
  288. package/chart/esm/components/Tick/index.css +27 -0
  289. package/chart/esm/components/Tick/index.d.ts +4 -0
  290. package/chart/esm/components/Tick/index.js +21 -0
  291. package/chart/esm/components/TooltipContent/index.css +65 -0
  292. package/chart/esm/components/TooltipContent/index.d.ts +10 -0
  293. package/chart/esm/components/TooltipContent/index.js +29 -0
  294. package/chart/esm/hooks/useSettings/index.d.ts +16 -0
  295. package/chart/esm/hooks/useSettings/index.js +45 -0
  296. package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  297. package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.js +15 -0
  298. package/chart/esm/hooks/useSettings/utils/setDatas.d.ts +6 -0
  299. package/chart/esm/hooks/useSettings/utils/setDatas.js +37 -0
  300. package/chart/esm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  301. package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +25 -0
  302. package/chart/esm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  303. package/chart/esm/hooks/useSettings/utils/setLegendMargin.js +14 -0
  304. package/chart/esm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  305. package/chart/esm/hooks/useSettings/utils/sortByIndex.js +10 -0
  306. package/chart/esm/icons/Circle.d.ts +7 -0
  307. package/chart/esm/icons/Circle.js +9 -0
  308. package/chart/esm/icons/CircleLine.d.ts +8 -0
  309. package/chart/esm/icons/CircleLine.js +10 -0
  310. package/chart/esm/icons/FilledCircle.d.ts +7 -0
  311. package/chart/esm/icons/FilledCircle.js +13 -0
  312. package/chart/esm/icons/Point.d.ts +7 -0
  313. package/chart/esm/icons/Point.js +10 -0
  314. package/chart/esm/icons/StrokeCircle.d.ts +7 -0
  315. package/chart/esm/icons/StrokeCircle.js +9 -0
  316. package/chart/esm/index.css +15 -0
  317. package/chart/esm/index.d.ts +1 -0
  318. package/chart/esm/index.js +22 -0
  319. package/{grid/esm/gutters.module-c9c70930.d.ts → chart/esm/tslib.es6-defbba9d.d.ts} +0 -0
  320. package/chart/esm/tslib.es6-defbba9d.js +28 -0
  321. package/chart/esm/types/brush.types.d.ts +41 -0
  322. package/chart/esm/types/brush.types.js +1 -0
  323. package/chart/esm/types/cartesianGrid.types.d.ts +23 -0
  324. package/chart/esm/types/cartesianGrid.types.js +1 -0
  325. package/chart/esm/types/chart.types.d.ts +61 -0
  326. package/chart/esm/types/chart.types.js +1 -0
  327. package/chart/esm/types/composedChart.types.d.ts +33 -0
  328. package/chart/esm/types/composedChart.types.js +1 -0
  329. package/chart/esm/types/legend.types.d.ts +30 -0
  330. package/chart/esm/types/legend.types.js +1 -0
  331. package/chart/esm/types/options.types.d.ts +59 -0
  332. package/chart/esm/types/options.types.js +1 -0
  333. package/chart/esm/types/payload.types.d.ts +29 -0
  334. package/chart/esm/types/payload.types.js +1 -0
  335. package/chart/esm/types/responsiveContainer.types.d.ts +10 -0
  336. package/chart/esm/types/responsiveContainer.types.js +1 -0
  337. package/chart/esm/types/seria.types.d.ts +59 -0
  338. package/chart/esm/types/seria.types.js +1 -0
  339. package/chart/esm/types/tooltip.types.d.ts +70 -0
  340. package/chart/esm/types/tooltip.types.js +1 -0
  341. package/chart/esm/types/utils/axis.types.d.ts +68 -0
  342. package/chart/esm/types/utils/axis.types.js +1 -0
  343. package/chart/esm/types/utils/coordinates.types.d.ts +11 -0
  344. package/chart/esm/types/utils/coordinates.types.js +1 -0
  345. package/chart/esm/types/utils/data.types.d.ts +17 -0
  346. package/chart/esm/types/utils/data.types.js +1 -0
  347. package/chart/esm/types/utils/dot.types.d.ts +73 -0
  348. package/chart/esm/types/utils/dot.types.js +1 -0
  349. package/chart/esm/types/utils/gradient.types.d.ts +29 -0
  350. package/chart/esm/types/utils/gradient.types.js +1 -0
  351. package/chart/esm/types/utils/tick.types.d.ts +19 -0
  352. package/chart/esm/types/utils/tick.types.js +1 -0
  353. package/chart/esm/types/xAxis.types.d.ts +16 -0
  354. package/chart/esm/types/xAxis.types.js +1 -0
  355. package/chart/esm/types/yAxis.types.d.ts +8 -0
  356. package/chart/esm/types/yAxis.types.js +1 -0
  357. package/chart/hooks/useSettings/index.d.ts +16 -0
  358. package/chart/hooks/useSettings/index.js +47 -0
  359. package/chart/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  360. package/chart/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
  361. package/chart/hooks/useSettings/utils/setDatas.d.ts +6 -0
  362. package/chart/hooks/useSettings/utils/setDatas.js +39 -0
  363. package/chart/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  364. package/chart/hooks/useSettings/utils/setGradientCharts.js +27 -0
  365. package/chart/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  366. package/chart/hooks/useSettings/utils/setLegendMargin.js +16 -0
  367. package/chart/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  368. package/chart/hooks/useSettings/utils/sortByIndex.js +12 -0
  369. package/chart/icons/Circle.d.ts +7 -0
  370. package/chart/icons/Circle.js +15 -0
  371. package/chart/icons/CircleLine.d.ts +8 -0
  372. package/chart/icons/CircleLine.js +16 -0
  373. package/chart/icons/FilledCircle.d.ts +7 -0
  374. package/chart/icons/FilledCircle.js +19 -0
  375. package/chart/icons/Point.d.ts +7 -0
  376. package/chart/icons/Point.js +16 -0
  377. package/chart/icons/StrokeCircle.d.ts +7 -0
  378. package/chart/icons/StrokeCircle.js +15 -0
  379. package/chart/index.css +15 -0
  380. package/chart/index.d.ts +1 -0
  381. package/chart/index.js +22 -0
  382. package/chart/modern/Component.d.ts +5 -0
  383. package/chart/modern/Component.js +258 -0
  384. package/chart/modern/components/Dot/index.css +23 -0
  385. package/chart/modern/components/Dot/index.d.ts +5 -0
  386. package/chart/modern/components/Dot/index.js +45 -0
  387. package/chart/modern/components/Legends/index.css +40 -0
  388. package/chart/modern/components/Legends/index.d.ts +14 -0
  389. package/chart/modern/components/Legends/index.js +38 -0
  390. package/chart/modern/components/LinearGradient.d.ts +5 -0
  391. package/chart/modern/components/LinearGradient.js +7 -0
  392. package/chart/modern/components/Tick/index.css +27 -0
  393. package/chart/modern/components/Tick/index.d.ts +4 -0
  394. package/chart/modern/components/Tick/index.js +20 -0
  395. package/chart/modern/components/TooltipContent/index.css +65 -0
  396. package/chart/modern/components/TooltipContent/index.d.ts +10 -0
  397. package/chart/modern/components/TooltipContent/index.js +28 -0
  398. package/chart/modern/hooks/useSettings/index.d.ts +16 -0
  399. package/chart/modern/hooks/useSettings/index.js +43 -0
  400. package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  401. package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.js +14 -0
  402. package/chart/modern/hooks/useSettings/utils/setDatas.d.ts +6 -0
  403. package/chart/modern/hooks/useSettings/utils/setDatas.js +32 -0
  404. package/chart/modern/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  405. package/chart/modern/hooks/useSettings/utils/setGradientCharts.js +35 -0
  406. package/chart/modern/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  407. package/chart/modern/hooks/useSettings/utils/setLegendMargin.js +14 -0
  408. package/chart/modern/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  409. package/chart/modern/hooks/useSettings/utils/sortByIndex.js +10 -0
  410. package/chart/modern/icons/Circle.d.ts +7 -0
  411. package/chart/modern/icons/Circle.js +8 -0
  412. package/chart/modern/icons/CircleLine.d.ts +8 -0
  413. package/chart/modern/icons/CircleLine.js +9 -0
  414. package/chart/modern/icons/FilledCircle.d.ts +7 -0
  415. package/chart/modern/icons/FilledCircle.js +12 -0
  416. package/chart/modern/icons/Point.d.ts +7 -0
  417. package/chart/modern/icons/Point.js +7 -0
  418. package/chart/modern/icons/StrokeCircle.d.ts +7 -0
  419. package/chart/modern/icons/StrokeCircle.js +8 -0
  420. package/chart/modern/index.css +15 -0
  421. package/chart/modern/index.d.ts +1 -0
  422. package/chart/modern/index.js +21 -0
  423. package/chart/modern/types/brush.types.d.ts +41 -0
  424. package/chart/modern/types/brush.types.js +1 -0
  425. package/chart/modern/types/cartesianGrid.types.d.ts +23 -0
  426. package/chart/modern/types/cartesianGrid.types.js +1 -0
  427. package/chart/modern/types/chart.types.d.ts +61 -0
  428. package/chart/modern/types/chart.types.js +1 -0
  429. package/chart/modern/types/composedChart.types.d.ts +33 -0
  430. package/chart/modern/types/composedChart.types.js +1 -0
  431. package/chart/modern/types/legend.types.d.ts +30 -0
  432. package/chart/modern/types/legend.types.js +1 -0
  433. package/chart/modern/types/options.types.d.ts +59 -0
  434. package/chart/modern/types/options.types.js +1 -0
  435. package/chart/modern/types/payload.types.d.ts +29 -0
  436. package/chart/modern/types/payload.types.js +1 -0
  437. package/chart/modern/types/responsiveContainer.types.d.ts +10 -0
  438. package/chart/modern/types/responsiveContainer.types.js +1 -0
  439. package/chart/modern/types/seria.types.d.ts +59 -0
  440. package/chart/modern/types/seria.types.js +1 -0
  441. package/chart/modern/types/tooltip.types.d.ts +70 -0
  442. package/chart/modern/types/tooltip.types.js +1 -0
  443. package/chart/modern/types/utils/axis.types.d.ts +68 -0
  444. package/chart/modern/types/utils/axis.types.js +1 -0
  445. package/chart/modern/types/utils/coordinates.types.d.ts +11 -0
  446. package/chart/modern/types/utils/coordinates.types.js +1 -0
  447. package/chart/modern/types/utils/data.types.d.ts +17 -0
  448. package/chart/modern/types/utils/data.types.js +1 -0
  449. package/chart/modern/types/utils/dot.types.d.ts +73 -0
  450. package/chart/modern/types/utils/dot.types.js +1 -0
  451. package/chart/modern/types/utils/gradient.types.d.ts +29 -0
  452. package/chart/modern/types/utils/gradient.types.js +1 -0
  453. package/chart/modern/types/utils/tick.types.d.ts +19 -0
  454. package/chart/modern/types/utils/tick.types.js +1 -0
  455. package/chart/modern/types/xAxis.types.d.ts +16 -0
  456. package/chart/modern/types/xAxis.types.js +1 -0
  457. package/chart/modern/types/yAxis.types.d.ts +8 -0
  458. package/chart/modern/types/yAxis.types.js +1 -0
  459. package/chart/package.json +3 -0
  460. package/chart/send-stats.js +82 -0
  461. package/{grid/gutters.module-ec984f94.d.ts → chart/tslib.es6-62c2b032.d.ts} +0 -0
  462. package/chart/tslib.es6-62c2b032.js +26 -0
  463. package/chart/types/brush.types.d.ts +41 -0
  464. package/chart/types/brush.types.js +1 -0
  465. package/chart/types/cartesianGrid.types.d.ts +23 -0
  466. package/chart/types/cartesianGrid.types.js +1 -0
  467. package/chart/types/chart.types.d.ts +61 -0
  468. package/chart/types/chart.types.js +1 -0
  469. package/chart/types/composedChart.types.d.ts +33 -0
  470. package/chart/types/composedChart.types.js +1 -0
  471. package/chart/types/legend.types.d.ts +30 -0
  472. package/chart/types/legend.types.js +1 -0
  473. package/chart/types/options.types.d.ts +59 -0
  474. package/chart/types/options.types.js +1 -0
  475. package/chart/types/payload.types.d.ts +29 -0
  476. package/chart/types/payload.types.js +1 -0
  477. package/chart/types/responsiveContainer.types.d.ts +10 -0
  478. package/chart/types/responsiveContainer.types.js +1 -0
  479. package/chart/types/seria.types.d.ts +59 -0
  480. package/chart/types/seria.types.js +1 -0
  481. package/chart/types/tooltip.types.d.ts +70 -0
  482. package/chart/types/tooltip.types.js +1 -0
  483. package/chart/types/utils/axis.types.d.ts +68 -0
  484. package/chart/types/utils/axis.types.js +1 -0
  485. package/chart/types/utils/coordinates.types.d.ts +11 -0
  486. package/chart/types/utils/coordinates.types.js +1 -0
  487. package/chart/types/utils/data.types.d.ts +17 -0
  488. package/chart/types/utils/data.types.js +1 -0
  489. package/chart/types/utils/dot.types.d.ts +73 -0
  490. package/chart/types/utils/dot.types.js +1 -0
  491. package/chart/types/utils/gradient.types.d.ts +29 -0
  492. package/chart/types/utils/gradient.types.js +1 -0
  493. package/chart/types/utils/tick.types.d.ts +19 -0
  494. package/chart/types/utils/tick.types.js +1 -0
  495. package/chart/types/xAxis.types.d.ts +16 -0
  496. package/chart/types/xAxis.types.js +1 -0
  497. package/chart/types/yAxis.types.d.ts +8 -0
  498. package/chart/types/yAxis.types.js +1 -0
  499. package/checkbox/cssm/Component.d.ts +112 -0
  500. package/checkbox/cssm/Component.js +93 -0
  501. package/checkbox/cssm/index.d.ts +1 -0
  502. package/checkbox/cssm/index.js +13 -0
  503. package/checkbox/cssm/index.module.css +226 -0
  504. package/checkbox-group/cssm/Component.d.ts +50 -0
  505. package/checkbox-group/cssm/Component.js +79 -0
  506. package/checkbox-group/cssm/index.d.ts +1 -0
  507. package/checkbox-group/cssm/index.js +10 -0
  508. package/checkbox-group/cssm/index.module.css +91 -0
  509. package/circular-progress-bar/cssm/Component.d.ts +37 -0
  510. package/circular-progress-bar/cssm/Component.js +49 -0
  511. package/circular-progress-bar/cssm/index.d.ts +1 -0
  512. package/circular-progress-bar/cssm/index.js +11 -0
  513. package/circular-progress-bar/cssm/index.module.css +93 -0
  514. package/collapse/cssm/Component.d.ts +41 -0
  515. package/collapse/cssm/Component.js +63 -0
  516. package/collapse/cssm/index.d.ts +1 -0
  517. package/collapse/cssm/index.js +14 -0
  518. package/collapse/cssm/index.module.css +34 -0
  519. package/confirmation/component.d.ts +28 -0
  520. package/confirmation/component.js +21 -7
  521. package/confirmation/components/code-input/component.js +1 -1
  522. package/confirmation/components/code-input/index.css +11 -8
  523. package/confirmation/components/countdown/component.js +1 -1
  524. package/confirmation/components/countdown/index.css +13 -13
  525. package/confirmation/components/countdown-loader/component.js +1 -1
  526. package/confirmation/components/countdown-loader/index.css +2 -2
  527. package/confirmation/components/index.d.ts +1 -0
  528. package/confirmation/components/index.js +3 -0
  529. package/confirmation/components/overlimit/component.d.ts +12 -0
  530. package/confirmation/components/overlimit/component.js +71 -0
  531. package/confirmation/components/overlimit/index.css +90 -0
  532. package/confirmation/components/overlimit/index.d.ts +1 -0
  533. package/confirmation/components/overlimit/index.js +15 -0
  534. package/confirmation/components/sign-confirmation/component.js +1 -1
  535. package/confirmation/components/sign-confirmation/index.css +13 -13
  536. package/confirmation/cssm/component.d.ts +164 -0
  537. package/confirmation/cssm/component.js +125 -0
  538. package/confirmation/cssm/components/code-input/component.d.ts +16 -0
  539. package/confirmation/cssm/components/code-input/component.js +156 -0
  540. package/confirmation/cssm/components/code-input/index.d.ts +1 -0
  541. package/confirmation/cssm/components/code-input/index.js +12 -0
  542. package/confirmation/cssm/components/code-input/index.module.css +94 -0
  543. package/confirmation/cssm/components/code-input/utils.d.ts +10 -0
  544. package/confirmation/cssm/components/code-input/utils.js +19 -0
  545. package/confirmation/cssm/components/countdown/component.d.ts +23 -0
  546. package/confirmation/cssm/components/countdown/component.js +115 -0
  547. package/confirmation/cssm/components/countdown/index.d.ts +1 -0
  548. package/confirmation/cssm/components/countdown/index.js +16 -0
  549. package/confirmation/cssm/components/countdown/index.module.css +84 -0
  550. package/confirmation/cssm/components/countdown-loader/component.d.ts +7 -0
  551. package/confirmation/cssm/components/countdown-loader/component.js +26 -0
  552. package/confirmation/cssm/components/countdown-loader/index.d.ts +1 -0
  553. package/confirmation/cssm/components/countdown-loader/index.js +9 -0
  554. package/confirmation/cssm/components/countdown-loader/index.module.css +25 -0
  555. package/confirmation/cssm/components/index.d.ts +4 -0
  556. package/confirmation/cssm/components/index.js +29 -0
  557. package/confirmation/cssm/components/overlimit/component.d.ts +12 -0
  558. package/confirmation/cssm/components/overlimit/component.js +72 -0
  559. package/confirmation/cssm/components/overlimit/index.d.ts +1 -0
  560. package/confirmation/cssm/components/overlimit/index.js +18 -0
  561. package/confirmation/cssm/components/overlimit/index.module.css +89 -0
  562. package/confirmation/cssm/components/sign-confirmation/component.d.ts +37 -0
  563. package/confirmation/cssm/components/sign-confirmation/component.js +62 -0
  564. package/confirmation/cssm/components/sign-confirmation/index.d.ts +1 -0
  565. package/confirmation/cssm/components/sign-confirmation/index.js +22 -0
  566. package/confirmation/cssm/components/sign-confirmation/index.module.css +107 -0
  567. package/confirmation/cssm/index.d.ts +2 -0
  568. package/confirmation/cssm/index.js +32 -0
  569. package/confirmation/cssm/index.module.css +118 -0
  570. package/confirmation/cssm/vars.css +17 -0
  571. package/confirmation/esm/component.d.ts +28 -0
  572. package/confirmation/esm/component.js +21 -7
  573. package/confirmation/esm/components/code-input/component.js +1 -1
  574. package/confirmation/esm/components/code-input/index.css +11 -8
  575. package/confirmation/esm/components/countdown/component.js +1 -1
  576. package/confirmation/esm/components/countdown/index.css +13 -13
  577. package/confirmation/esm/components/countdown-loader/component.js +1 -1
  578. package/confirmation/esm/components/countdown-loader/index.css +2 -2
  579. package/confirmation/esm/components/index.d.ts +1 -0
  580. package/confirmation/esm/components/index.js +2 -0
  581. package/confirmation/esm/components/overlimit/component.d.ts +12 -0
  582. package/confirmation/esm/components/overlimit/component.js +65 -0
  583. package/confirmation/esm/components/overlimit/index.css +90 -0
  584. package/confirmation/esm/components/overlimit/index.d.ts +1 -0
  585. package/confirmation/esm/components/overlimit/index.js +9 -0
  586. package/confirmation/esm/components/sign-confirmation/component.js +1 -1
  587. package/confirmation/esm/components/sign-confirmation/index.css +13 -13
  588. package/confirmation/esm/index.css +14 -14
  589. package/confirmation/esm/index.js +2 -0
  590. package/confirmation/index.css +14 -14
  591. package/confirmation/index.js +3 -0
  592. package/confirmation/modern/component.d.ts +28 -0
  593. package/confirmation/modern/component.js +20 -6
  594. package/confirmation/modern/components/code-input/component.js +1 -1
  595. package/confirmation/modern/components/code-input/index.css +11 -8
  596. package/confirmation/modern/components/countdown/component.js +1 -1
  597. package/confirmation/modern/components/countdown/index.css +13 -13
  598. package/confirmation/modern/components/countdown-loader/component.js +1 -1
  599. package/confirmation/modern/components/countdown-loader/index.css +2 -2
  600. package/confirmation/modern/components/index.d.ts +1 -0
  601. package/confirmation/modern/components/index.js +2 -0
  602. package/confirmation/modern/components/overlimit/component.d.ts +12 -0
  603. package/confirmation/modern/components/overlimit/component.js +64 -0
  604. package/confirmation/modern/components/overlimit/index.css +90 -0
  605. package/confirmation/modern/components/overlimit/index.d.ts +1 -0
  606. package/confirmation/modern/components/overlimit/index.js +9 -0
  607. package/confirmation/modern/components/sign-confirmation/component.js +1 -1
  608. package/confirmation/modern/components/sign-confirmation/index.css +13 -13
  609. package/confirmation/modern/index.css +14 -14
  610. package/confirmation/modern/index.js +2 -0
  611. package/date-input/cssm/Component.d.ts +47 -0
  612. package/date-input/cssm/Component.js +90 -0
  613. package/date-input/cssm/index.d.ts +2 -0
  614. package/date-input/cssm/index.js +25 -0
  615. package/date-input/cssm/index.module.css +25 -0
  616. package/date-input/cssm/utils/date-correction-pipe.d.ts +9 -0
  617. package/date-input/cssm/utils/date-correction-pipe.js +57 -0
  618. package/date-input/cssm/utils/format.d.ts +7 -0
  619. package/date-input/cssm/utils/format.js +23 -0
  620. package/date-input/cssm/utils/index.d.ts +3 -0
  621. package/date-input/cssm/utils/index.js +20 -0
  622. package/date-input/cssm/utils/native-supports.d.ts +7 -0
  623. package/date-input/cssm/utils/native-supports.js +18 -0
  624. package/divider/cssm/Component.d.ts +14 -0
  625. package/divider/cssm/Component.js +18 -0
  626. package/divider/cssm/index.d.ts +1 -0
  627. package/divider/cssm/index.js +10 -0
  628. package/divider/cssm/index.module.css +19 -0
  629. package/drawer/cssm/Component.d.ts +20 -0
  630. package/drawer/cssm/Component.js +92 -0
  631. package/drawer/cssm/index.d.ts +1 -0
  632. package/drawer/cssm/index.js +14 -0
  633. package/drawer/cssm/index.module.css +81 -0
  634. package/dropzone/cssm/Component.d.ts +57 -0
  635. package/dropzone/cssm/Component.js +79 -0
  636. package/dropzone/cssm/components/index.d.ts +1 -0
  637. package/dropzone/cssm/components/index.js +11 -0
  638. package/dropzone/cssm/components/overlay/Component.d.ts +13 -0
  639. package/dropzone/cssm/components/overlay/Component.js +24 -0
  640. package/dropzone/cssm/components/overlay/index.d.ts +1 -0
  641. package/dropzone/cssm/components/overlay/index.js +11 -0
  642. package/dropzone/cssm/components/overlay/index.module.css +49 -0
  643. package/dropzone/cssm/index.d.ts +1 -0
  644. package/dropzone/cssm/index.js +14 -0
  645. package/dropzone/cssm/index.module.css +44 -0
  646. package/dropzone/cssm/utils.d.ts +3 -0
  647. package/dropzone/cssm/utils.js +8 -0
  648. package/file-upload-item/Component.d.ts +1 -1
  649. package/file-upload-item/Component.js +1 -1
  650. package/file-upload-item/cssm/Component.d.ts +72 -0
  651. package/file-upload-item/cssm/Component.js +68 -0
  652. package/file-upload-item/cssm/index.d.ts +1 -0
  653. package/file-upload-item/cssm/index.js +18 -0
  654. package/file-upload-item/cssm/index.module.css +99 -0
  655. package/file-upload-item/cssm/utils.d.ts +5 -0
  656. package/file-upload-item/cssm/utils.js +46 -0
  657. package/file-upload-item/esm/Component.d.ts +1 -1
  658. package/file-upload-item/esm/Component.js +1 -1
  659. package/file-upload-item/esm/index.css +16 -16
  660. package/file-upload-item/index.css +16 -16
  661. package/file-upload-item/modern/Component.d.ts +1 -1
  662. package/file-upload-item/modern/Component.js +1 -1
  663. package/file-upload-item/modern/index.css +16 -16
  664. package/form-control/cssm/Component.d.ts +152 -0
  665. package/form-control/cssm/Component.js +92 -0
  666. package/form-control/cssm/default.module.css +91 -0
  667. package/form-control/cssm/index.d.ts +1 -0
  668. package/form-control/cssm/index.js +12 -0
  669. package/form-control/cssm/index.module.css +228 -0
  670. package/form-control/cssm/inverted.module.css +96 -0
  671. package/gallery/Component.js +3 -3
  672. package/gallery/components/header/Component.js +2 -2
  673. package/gallery/components/header/buttons.js +1 -1
  674. package/gallery/components/header/index.css +3 -3
  675. package/gallery/components/header/index.js +1 -1
  676. package/gallery/components/header-info-block/Component.js +1 -1
  677. package/gallery/components/header-info-block/index.css +5 -5
  678. package/gallery/components/image-preview/Component.js +1 -1
  679. package/gallery/components/image-preview/index.css +12 -12
  680. package/gallery/components/image-viewer/component.js +2 -2
  681. package/gallery/components/image-viewer/index.css +19 -19
  682. package/gallery/components/image-viewer/index.js +2 -2
  683. package/gallery/components/image-viewer/slide.js +1 -1
  684. package/gallery/components/index.js +2 -2
  685. package/gallery/components/navigation-bar/Component.js +1 -1
  686. package/gallery/components/navigation-bar/index.css +6 -6
  687. package/gallery/cssm/Component.d.ts +26 -0
  688. package/gallery/cssm/Component.js +139 -0
  689. package/gallery/cssm/components/header/Component.d.ts +3 -0
  690. package/gallery/cssm/components/header/Component.js +60 -0
  691. package/gallery/cssm/components/header/buttons.d.ts +11 -0
  692. package/gallery/cssm/components/header/buttons.js +33 -0
  693. package/gallery/cssm/components/header/index.d.ts +1 -0
  694. package/gallery/cssm/components/header/index.js +23 -0
  695. package/gallery/cssm/components/header/index.module.css +29 -0
  696. package/gallery/cssm/components/header-info-block/Component.d.ts +7 -0
  697. package/gallery/cssm/components/header-info-block/Component.js +23 -0
  698. package/gallery/cssm/components/header-info-block/index.d.ts +1 -0
  699. package/gallery/cssm/components/header-info-block/index.js +11 -0
  700. package/gallery/cssm/components/header-info-block/index.module.css +35 -0
  701. package/gallery/cssm/components/image-preview/Component.d.ts +11 -0
  702. package/gallery/cssm/components/image-preview/Component.js +38 -0
  703. package/gallery/cssm/components/image-preview/index.d.ts +1 -0
  704. package/gallery/cssm/components/image-preview/index.js +12 -0
  705. package/gallery/cssm/components/image-preview/index.module.css +84 -0
  706. package/gallery/cssm/components/image-viewer/component.d.ts +3 -0
  707. package/gallery/cssm/components/image-viewer/component.js +129 -0
  708. package/gallery/cssm/components/image-viewer/index.d.ts +1 -0
  709. package/gallery/cssm/components/image-viewer/index.js +22 -0
  710. package/gallery/cssm/components/image-viewer/index.module.css +144 -0
  711. package/gallery/cssm/components/image-viewer/slide.d.ts +15 -0
  712. package/gallery/cssm/components/image-viewer/slide.js +41 -0
  713. package/gallery/cssm/components/index.d.ts +4 -0
  714. package/gallery/cssm/components/index.js +41 -0
  715. package/gallery/cssm/components/navigation-bar/Component.d.ts +3 -0
  716. package/gallery/cssm/components/navigation-bar/Component.js +70 -0
  717. package/gallery/cssm/components/navigation-bar/index.d.ts +1 -0
  718. package/gallery/cssm/components/navigation-bar/index.js +15 -0
  719. package/gallery/cssm/components/navigation-bar/index.module.css +41 -0
  720. package/gallery/cssm/context.d.ts +24 -0
  721. package/gallery/cssm/context.js +26 -0
  722. package/gallery/cssm/index.d.ts +1 -0
  723. package/gallery/cssm/index.js +41 -0
  724. package/gallery/cssm/index.module.css +20 -0
  725. package/{modal/esm/tslib.es6-5fa93a0c.d.ts → gallery/cssm/tslib.es6-ce870b46.d.ts} +0 -0
  726. package/{modal/tslib.es6-6063ff78.js → gallery/cssm/tslib.es6-ce870b46.js} +0 -0
  727. package/gallery/cssm/types.d.ts +13 -0
  728. package/gallery/cssm/types.js +1 -0
  729. package/gallery/cssm/utils/index.d.ts +2 -0
  730. package/gallery/cssm/utils/index.js +13 -0
  731. package/gallery/cssm/utils/split-filename.d.ts +2 -0
  732. package/gallery/cssm/utils/split-filename.js +16 -0
  733. package/gallery/cssm/utils/utils.d.ts +7 -0
  734. package/gallery/cssm/utils/utils.js +24 -0
  735. package/gallery/cssm/vars.css +0 -0
  736. package/gallery/esm/Component.js +3 -3
  737. package/gallery/esm/components/header/Component.js +2 -2
  738. package/gallery/esm/components/header/buttons.js +1 -1
  739. package/gallery/esm/components/header/index.css +3 -3
  740. package/gallery/esm/components/header/index.js +1 -1
  741. package/gallery/esm/components/header-info-block/Component.js +1 -1
  742. package/gallery/esm/components/header-info-block/index.css +5 -5
  743. package/gallery/esm/components/image-preview/Component.js +1 -1
  744. package/gallery/esm/components/image-preview/index.css +12 -12
  745. package/gallery/esm/components/image-viewer/component.js +2 -2
  746. package/gallery/esm/components/image-viewer/index.css +19 -19
  747. package/gallery/esm/components/image-viewer/index.js +2 -2
  748. package/gallery/esm/components/image-viewer/slide.js +1 -1
  749. package/gallery/esm/components/index.js +2 -2
  750. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  751. package/gallery/esm/components/navigation-bar/index.css +6 -6
  752. package/gallery/esm/index.css +3 -3
  753. package/gallery/esm/index.js +2 -2
  754. package/gallery/esm/{slide-c6c2a8da.d.ts → slide-2c5303bf.d.ts} +0 -0
  755. package/gallery/esm/{slide-c6c2a8da.js → slide-2c5303bf.js} +1 -1
  756. package/{modal/tslib.es6-6063ff78.d.ts → gallery/esm/tslib.es6-e5bfa024.d.ts} +0 -0
  757. package/gallery/esm/{tslib.es6-5424b006.js → tslib.es6-e5bfa024.js} +0 -0
  758. package/gallery/index.css +3 -3
  759. package/gallery/index.js +2 -2
  760. package/gallery/modern/Component.js +2 -2
  761. package/gallery/modern/components/header/Component.js +1 -1
  762. package/gallery/modern/components/header/index.css +3 -3
  763. package/gallery/modern/components/header-info-block/Component.js +1 -1
  764. package/gallery/modern/components/header-info-block/index.css +5 -5
  765. package/gallery/modern/components/image-preview/Component.js +1 -1
  766. package/gallery/modern/components/image-preview/index.css +12 -12
  767. package/gallery/modern/components/image-viewer/component.js +1 -1
  768. package/gallery/modern/components/image-viewer/index.css +19 -19
  769. package/gallery/modern/components/image-viewer/index.js +1 -1
  770. package/gallery/modern/components/image-viewer/slide.js +1 -1
  771. package/gallery/modern/components/index.js +1 -1
  772. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  773. package/gallery/modern/components/navigation-bar/index.css +6 -6
  774. package/gallery/modern/index.css +3 -3
  775. package/gallery/modern/index.js +1 -1
  776. package/gallery/modern/{slide-cbb4ff18.d.ts → slide-31efe610.d.ts} +0 -0
  777. package/gallery/modern/{slide-cbb4ff18.js → slide-31efe610.js} +1 -1
  778. package/gallery/{slide-a45fd2cc.d.ts → slide-5f9593b7.d.ts} +0 -0
  779. package/gallery/{slide-a45fd2cc.js → slide-5f9593b7.js} +1 -1
  780. package/{select/esm/tslib.es6-3d459325.d.ts → gallery/tslib.es6-d5e3524f.d.ts} +0 -0
  781. package/{tabs/tslib.es6-7a15cf39.js → gallery/tslib.es6-d5e3524f.js} +0 -0
  782. package/grid/Component.js +1 -1
  783. package/grid/col/Component.js +1 -1
  784. package/grid/col/index.js +1 -1
  785. package/grid/cssm/Component.d.ts +8 -0
  786. package/grid/cssm/Component.js +18 -0
  787. package/grid/cssm/col/Component.d.ts +54 -0
  788. package/grid/cssm/col/Component.js +29 -0
  789. package/grid/cssm/col/index.d.ts +1 -0
  790. package/grid/cssm/col/index.js +13 -0
  791. package/grid/cssm/col/index.module.css +1863 -0
  792. package/grid/cssm/gutters.module.css +607 -0
  793. package/grid/cssm/index.d.ts +1 -0
  794. package/grid/cssm/index.js +16 -0
  795. package/grid/cssm/row/Component.d.ts +43 -0
  796. package/grid/cssm/row/Component.js +33 -0
  797. package/grid/cssm/row/index.d.ts +1 -0
  798. package/grid/cssm/row/index.js +13 -0
  799. package/grid/cssm/row/index.module.css +39 -0
  800. package/{select/tslib.es6-2a25a340.d.ts → grid/cssm/tslib.es6-3084c748.d.ts} +0 -0
  801. package/grid/cssm/tslib.es6-3084c748.js +24 -0
  802. package/grid/cssm/typings.d.ts +16 -0
  803. package/grid/cssm/typings.js +1 -0
  804. package/grid/cssm/utils/index.d.ts +3 -0
  805. package/grid/cssm/utils/index.js +37 -0
  806. package/grid/esm/Component.js +1 -1
  807. package/grid/esm/col/Component.js +1 -1
  808. package/grid/esm/col/index.js +1 -1
  809. package/{tabs/esm/tslib.es6-417b0fd8.d.ts → grid/esm/gutters.module-b39da5b6.d.ts} +0 -0
  810. package/grid/esm/{gutters.module-c9c70930.js → gutters.module-b39da5b6.js} +0 -0
  811. package/grid/esm/index.js +1 -1
  812. package/grid/esm/row/Component.js +1 -1
  813. package/grid/esm/row/index.js +1 -1
  814. package/{tabs/tslib.es6-7a15cf39.d.ts → grid/gutters.module-d3fcf523.d.ts} +0 -0
  815. package/grid/{gutters.module-ec984f94.js → gutters.module-d3fcf523.js} +0 -0
  816. package/grid/index.js +1 -1
  817. package/grid/modern/Component.js +1 -1
  818. package/grid/modern/col/Component.js +1 -1
  819. package/grid/modern/col/index.js +1 -1
  820. package/grid/modern/{gutters.module-157a0bab.js → gutters.module-3f6357c5.js} +0 -0
  821. package/grid/modern/index.js +1 -1
  822. package/grid/modern/row/Component.js +1 -1
  823. package/grid/modern/row/index.js +1 -1
  824. package/grid/row/Component.js +1 -1
  825. package/grid/row/index.js +1 -1
  826. package/icon-button/cssm/Component.d.ts +61 -0
  827. package/icon-button/cssm/Component.js +67 -0
  828. package/icon-button/cssm/default.module.css +79 -0
  829. package/icon-button/cssm/index.d.ts +1 -0
  830. package/icon-button/cssm/index.js +13 -0
  831. package/icon-button/cssm/index.module.css +35 -0
  832. package/icon-button/cssm/inverted.module.css +70 -0
  833. package/input/cssm/Component.d.ts +236 -0
  834. package/input/cssm/Component.js +146 -0
  835. package/input/cssm/default.module.css +75 -0
  836. package/input/cssm/index.d.ts +1 -0
  837. package/input/cssm/index.js +16 -0
  838. package/input/cssm/index.module.css +159 -0
  839. package/input/cssm/inverted.module.css +75 -0
  840. package/input-autocomplete/{Component-d64387ad.d.ts → Component-658ecc84.d.ts} +0 -0
  841. package/input-autocomplete/{Component-d64387ad.js → Component-658ecc84.js} +1 -1
  842. package/input-autocomplete/Component.d.ts +1 -1
  843. package/input-autocomplete/Component.js +1 -1
  844. package/input-autocomplete/autocomplete-field/Component.js +1 -1
  845. package/input-autocomplete/autocomplete-field/index.css +2 -2
  846. package/input-autocomplete/autocomplete-field/index.d.ts +1 -1
  847. package/input-autocomplete/autocomplete-field/index.js +1 -1
  848. package/input-autocomplete/{esm/Component-c71c7025.d.ts → cssm/Component-a04a9434.d.ts} +0 -0
  849. package/input-autocomplete/cssm/Component-a04a9434.js +80 -0
  850. package/input-autocomplete/cssm/Component.d.ts +128 -0
  851. package/input-autocomplete/cssm/Component.js +27 -0
  852. package/input-autocomplete/cssm/autocomplete-field/Component.d.ts +0 -0
  853. package/input-autocomplete/cssm/autocomplete-field/Component.js +12 -0
  854. package/input-autocomplete/cssm/autocomplete-field/index.d.ts +1 -0
  855. package/input-autocomplete/cssm/autocomplete-field/index.js +12 -0
  856. package/input-autocomplete/cssm/autocomplete-field/index.module.css +3 -0
  857. package/input-autocomplete/cssm/index.d.ts +1 -0
  858. package/input-autocomplete/cssm/index.js +14 -0
  859. package/input-autocomplete/esm/Component-35cb3144.d.ts +37 -0
  860. package/input-autocomplete/esm/{Component-c71c7025.js → Component-35cb3144.js} +1 -1
  861. package/input-autocomplete/esm/Component.d.ts +1 -1
  862. package/input-autocomplete/esm/Component.js +1 -1
  863. package/input-autocomplete/esm/autocomplete-field/Component.js +1 -1
  864. package/input-autocomplete/esm/autocomplete-field/index.css +2 -2
  865. package/input-autocomplete/esm/autocomplete-field/index.d.ts +1 -1
  866. package/input-autocomplete/esm/autocomplete-field/index.js +1 -1
  867. package/input-autocomplete/esm/index.js +1 -1
  868. package/input-autocomplete/index.js +1 -1
  869. package/input-autocomplete/modern/Component.d.ts +1 -1
  870. package/input-autocomplete/modern/autocomplete-field/Component.js +1 -1
  871. package/input-autocomplete/modern/autocomplete-field/index.css +2 -2
  872. package/intl-phone-input/{component-49c310ce.d.ts → component-2901b48c.d.ts} +0 -0
  873. package/intl-phone-input/{component-49c310ce.js → component-2901b48c.js} +1 -1
  874. package/intl-phone-input/component.d.ts +1 -1
  875. package/intl-phone-input/component.js +3 -3
  876. package/intl-phone-input/components/flag-icon/component.js +1 -1
  877. package/intl-phone-input/components/flag-icon/index.css +784 -784
  878. package/intl-phone-input/components/index.js +1 -1
  879. package/intl-phone-input/components/select/component.js +2 -2
  880. package/intl-phone-input/components/select/index.css +6 -6
  881. package/intl-phone-input/components/select/index.js +1 -1
  882. package/intl-phone-input/components/select-field/component.js +1 -1
  883. package/intl-phone-input/components/select-field/index.css +8 -8
  884. package/intl-phone-input/components/select-field/index.d.ts +1 -1
  885. package/intl-phone-input/components/select-field/index.js +1 -1
  886. package/intl-phone-input/{esm/component-5dd5159a.d.ts → cssm/component-88f82cfc.d.ts} +0 -0
  887. package/intl-phone-input/cssm/component-88f82cfc.js +71 -0
  888. package/intl-phone-input/cssm/component.d.ts +67 -0
  889. package/intl-phone-input/cssm/component.js +151 -0
  890. package/intl-phone-input/cssm/components/flag-icon/component.d.ts +20 -0
  891. package/intl-phone-input/cssm/components/flag-icon/component.js +21 -0
  892. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
  893. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
  894. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
  895. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
  896. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
  897. package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
  898. package/intl-phone-input/cssm/components/flag-icon/index.d.ts +1 -0
  899. package/intl-phone-input/cssm/components/flag-icon/index.js +10 -0
  900. package/intl-phone-input/cssm/components/flag-icon/index.module.css +4703 -0
  901. package/intl-phone-input/cssm/components/index.d.ts +3 -0
  902. package/intl-phone-input/cssm/components/index.js +19 -0
  903. package/intl-phone-input/cssm/components/select/component.d.ts +10 -0
  904. package/intl-phone-input/cssm/components/select/component.js +43 -0
  905. package/intl-phone-input/cssm/components/select/index.d.ts +1 -0
  906. package/intl-phone-input/cssm/components/select/index.js +17 -0
  907. package/intl-phone-input/cssm/components/select/index.module.css +40 -0
  908. package/intl-phone-input/cssm/components/select-field/component.d.ts +0 -0
  909. package/intl-phone-input/cssm/components/select-field/component.js +14 -0
  910. package/intl-phone-input/cssm/components/select-field/index.d.ts +1 -0
  911. package/intl-phone-input/cssm/components/select-field/index.js +14 -0
  912. package/intl-phone-input/cssm/components/select-field/index.module.css +53 -0
  913. package/intl-phone-input/cssm/index.d.ts +1 -0
  914. package/intl-phone-input/cssm/index.js +24 -0
  915. package/intl-phone-input/cssm/index.module.css +7 -0
  916. package/intl-phone-input/{esm/libphonenumber-js.min-22dfe739.d.ts → cssm/libphonenumber-js.min-d3a9d490.d.ts} +0 -0
  917. package/intl-phone-input/{esm/libphonenumber-js.min-22dfe739.js → cssm/libphonenumber-js.min-d3a9d490.js} +0 -0
  918. package/intl-phone-input/cssm/useCaretAvoidCountryCode.d.ts +8 -0
  919. package/intl-phone-input/cssm/useCaretAvoidCountryCode.js +39 -0
  920. package/intl-phone-input/cssm/usePreventCaretReset.d.ts +8 -0
  921. package/intl-phone-input/cssm/usePreventCaretReset.js +34 -0
  922. package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.d.ts +6 -0
  923. package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.js +22 -0
  924. package/intl-phone-input/esm/component-b0494269.d.ts +35 -0
  925. package/intl-phone-input/esm/{component-5dd5159a.js → component-b0494269.js} +1 -1
  926. package/intl-phone-input/esm/component.d.ts +1 -1
  927. package/intl-phone-input/esm/component.js +3 -3
  928. package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
  929. package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
  930. package/intl-phone-input/esm/components/index.js +1 -1
  931. package/intl-phone-input/esm/components/select/component.js +2 -2
  932. package/intl-phone-input/esm/components/select/index.css +6 -6
  933. package/intl-phone-input/esm/components/select/index.js +1 -1
  934. package/intl-phone-input/esm/components/select-field/component.js +1 -1
  935. package/intl-phone-input/esm/components/select-field/index.css +8 -8
  936. package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
  937. package/intl-phone-input/esm/components/select-field/index.js +1 -1
  938. package/intl-phone-input/esm/index.css +3 -3
  939. package/intl-phone-input/esm/index.js +1 -1
  940. package/intl-phone-input/{libphonenumber-js.min-a9c5caaf.d.ts → esm/libphonenumber-js.min-4d9b997b.d.ts} +0 -0
  941. package/intl-phone-input/{libphonenumber-js.min-a9c5caaf.js → esm/libphonenumber-js.min-4d9b997b.js} +0 -0
  942. package/intl-phone-input/index.css +3 -3
  943. package/intl-phone-input/index.js +1 -1
  944. package/intl-phone-input/{modern/libphonenumber-js.min-22dfe739.d.ts → libphonenumber-js.min-893b6a4c.d.ts} +0 -0
  945. package/intl-phone-input/{modern/libphonenumber-js.min-22dfe739.js → libphonenumber-js.min-893b6a4c.js} +0 -0
  946. package/intl-phone-input/modern/component.d.ts +1 -1
  947. package/intl-phone-input/modern/component.js +2 -2
  948. package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
  949. package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
  950. package/intl-phone-input/modern/components/select/component.js +1 -1
  951. package/intl-phone-input/modern/components/select/index.css +6 -6
  952. package/intl-phone-input/modern/components/select-field/component.js +1 -1
  953. package/intl-phone-input/modern/components/select-field/index.css +8 -8
  954. package/intl-phone-input/modern/index.css +3 -3
  955. package/intl-phone-input/modern/libphonenumber-js.min-4d9b997b.d.ts +1 -0
  956. package/intl-phone-input/modern/libphonenumber-js.min-4d9b997b.js +1567 -0
  957. package/keyboard-focusable/cssm/Component.d.ts +12 -0
  958. package/keyboard-focusable/cssm/Component.js +14 -0
  959. package/keyboard-focusable/cssm/index.d.ts +1 -0
  960. package/keyboard-focusable/cssm/index.js +9 -0
  961. package/link/cssm/Component.d.ts +97 -0
  962. package/link/cssm/Component.js +94 -0
  963. package/link/cssm/default.module.css +65 -0
  964. package/link/cssm/index.d.ts +1 -0
  965. package/link/cssm/index.js +14 -0
  966. package/link/cssm/index.module.css +61 -0
  967. package/link/cssm/inverted.module.css +59 -0
  968. package/list/cssm/Component.d.ts +24 -0
  969. package/list/cssm/Component.js +31 -0
  970. package/list/cssm/index.d.ts +1 -0
  971. package/list/cssm/index.js +10 -0
  972. package/list/cssm/index.module.css +57 -0
  973. package/list-header/cssm/Component.d.ts +26 -0
  974. package/list-header/cssm/Component.js +22 -0
  975. package/list-header/cssm/index.d.ts +1 -0
  976. package/list-header/cssm/index.js +11 -0
  977. package/list-header/cssm/index.module.css +31 -0
  978. package/loader/cssm/Component.d.ts +14 -0
  979. package/loader/cssm/Component.js +21 -0
  980. package/loader/cssm/index.d.ts +1 -0
  981. package/loader/cssm/index.js +10 -0
  982. package/loader/cssm/index.module.css +40 -0
  983. package/masked-input/cssm/Component.d.ts +86 -0
  984. package/masked-input/cssm/Component.js +117 -0
  985. package/masked-input/cssm/index.d.ts +1 -0
  986. package/masked-input/cssm/index.js +14 -0
  987. package/masked-input/cssm/index.module.css +3 -0
  988. package/modal/Component.desktop.js +2 -2
  989. package/modal/Component.mobile.js +2 -2
  990. package/modal/Component.responsive.d.ts +3 -3
  991. package/modal/Component.responsive.js +2 -2
  992. package/modal/components/closer/Component.js +1 -1
  993. package/modal/components/content/Component.desktop.js +1 -1
  994. package/modal/components/content/Component.mobile.js +1 -1
  995. package/modal/components/footer/Component.desktop.js +1 -1
  996. package/modal/components/footer/Component.mobile.js +1 -1
  997. package/modal/components/header/Component.desktop.js +1 -1
  998. package/modal/components/header/Component.js +1 -1
  999. package/modal/components/header/Component.mobile.js +1 -1
  1000. package/modal/cssm/Component.desktop.d.ts +51 -0
  1001. package/modal/cssm/Component.desktop.js +66 -0
  1002. package/modal/cssm/Component.mobile.d.ts +23 -0
  1003. package/modal/cssm/Component.mobile.js +53 -0
  1004. package/modal/cssm/Component.responsive.d.ts +19 -0
  1005. package/modal/cssm/Component.responsive.js +68 -0
  1006. package/modal/cssm/Context.d.ts +4 -0
  1007. package/modal/cssm/Context.js +7 -0
  1008. package/modal/cssm/components/closer/Component.d.ts +17 -0
  1009. package/modal/cssm/components/closer/Component.js +26 -0
  1010. package/modal/cssm/components/closer/index.module.css +51 -0
  1011. package/modal/cssm/components/content/Component.d.ts +19 -0
  1012. package/modal/cssm/components/content/Component.desktop.d.ts +14 -0
  1013. package/modal/cssm/components/content/Component.desktop.js +22 -0
  1014. package/modal/cssm/components/content/Component.js +22 -0
  1015. package/modal/cssm/components/content/Component.mobile.d.ts +5 -0
  1016. package/modal/cssm/components/content/Component.mobile.js +18 -0
  1017. package/modal/cssm/components/content/desktop.module.css +47 -0
  1018. package/modal/cssm/components/content/index.module.css +39 -0
  1019. package/modal/cssm/components/content/mobile.module.css +31 -0
  1020. package/modal/cssm/components/footer/Component.d.ts +27 -0
  1021. package/modal/cssm/components/footer/Component.desktop.d.ts +14 -0
  1022. package/modal/cssm/components/footer/Component.desktop.js +23 -0
  1023. package/modal/cssm/components/footer/Component.js +28 -0
  1024. package/modal/cssm/components/footer/Component.mobile.d.ts +5 -0
  1025. package/modal/cssm/components/footer/Component.mobile.js +19 -0
  1026. package/modal/cssm/components/footer/desktop.module.css +61 -0
  1027. package/modal/cssm/components/footer/index.module.css +44 -0
  1028. package/modal/cssm/components/footer/layout.module.css +83 -0
  1029. package/modal/cssm/components/footer/mobile.module.css +37 -0
  1030. package/modal/cssm/components/header/Component.d.ts +27 -0
  1031. package/modal/cssm/components/header/Component.desktop.d.ts +14 -0
  1032. package/modal/cssm/components/header/Component.desktop.js +25 -0
  1033. package/modal/cssm/components/header/Component.js +35 -0
  1034. package/modal/cssm/components/header/Component.mobile.d.ts +5 -0
  1035. package/modal/cssm/components/header/Component.mobile.js +21 -0
  1036. package/modal/cssm/components/header/desktop.module.css +70 -0
  1037. package/modal/cssm/components/header/index.module.css +63 -0
  1038. package/modal/cssm/components/header/mobile.module.css +46 -0
  1039. package/modal/cssm/desktop.d.ts +1 -0
  1040. package/modal/cssm/desktop.js +28 -0
  1041. package/modal/cssm/desktop.module.css +57 -0
  1042. package/modal/cssm/index.d.ts +2 -0
  1043. package/modal/cssm/index.js +39 -0
  1044. package/modal/cssm/mobile.d.ts +1 -0
  1045. package/modal/cssm/mobile.js +28 -0
  1046. package/modal/cssm/mobile.module.css +24 -0
  1047. package/modal/cssm/responsive.d.ts +1 -0
  1048. package/modal/cssm/responsive.js +38 -0
  1049. package/modal/cssm/transitions.module.css +24 -0
  1050. package/{typography/colors.module-ded492e1.d.ts → modal/cssm/tslib.es6-ce870b46.d.ts} +0 -0
  1051. package/modal/cssm/tslib.es6-ce870b46.js +40 -0
  1052. package/modal/cssm/utils.d.ts +5 -0
  1053. package/modal/cssm/utils.js +80 -0
  1054. package/modal/cssm/vars.css +20 -0
  1055. package/modal/desktop.js +2 -2
  1056. package/modal/esm/Component.desktop.js +2 -2
  1057. package/modal/esm/Component.mobile.js +2 -2
  1058. package/modal/esm/Component.responsive.js +2 -2
  1059. package/modal/esm/components/closer/Component.js +1 -1
  1060. package/modal/esm/components/content/Component.desktop.js +1 -1
  1061. package/modal/esm/components/content/Component.mobile.js +1 -1
  1062. package/modal/esm/components/footer/Component.desktop.js +1 -1
  1063. package/modal/esm/components/footer/Component.mobile.js +1 -1
  1064. package/modal/esm/components/header/Component.desktop.js +1 -1
  1065. package/modal/esm/components/header/Component.js +1 -1
  1066. package/modal/esm/components/header/Component.mobile.js +1 -1
  1067. package/modal/esm/desktop.js +2 -2
  1068. package/modal/esm/index.js +2 -2
  1069. package/modal/esm/mobile.js +2 -2
  1070. package/modal/esm/responsive.js +2 -2
  1071. package/modal/esm/{transitions.module-06135f59.js → transitions.module-45fbb621.js} +0 -0
  1072. package/{typography/esm/colors.module-d21f47ee.d.ts → modal/esm/tslib.es6-4214739e.d.ts} +0 -0
  1073. package/modal/esm/{tslib.es6-5fa93a0c.js → tslib.es6-4214739e.js} +0 -0
  1074. package/modal/index.js +2 -2
  1075. package/modal/mobile.js +2 -2
  1076. package/modal/modern/Component.desktop.js +1 -1
  1077. package/modal/modern/Component.mobile.js +1 -1
  1078. package/modal/modern/Component.responsive.js +1 -1
  1079. package/modal/modern/desktop.js +1 -1
  1080. package/modal/modern/index.js +1 -1
  1081. package/modal/modern/mobile.js +1 -1
  1082. package/modal/modern/responsive.js +1 -1
  1083. package/modal/modern/{transitions.module-06135f59.js → transitions.module-45fbb621.js} +0 -0
  1084. package/modal/responsive.js +2 -2
  1085. package/modal/{transitions.module-b05e467d.js → transitions.module-b67d0f1c.js} +0 -0
  1086. package/modal/tslib.es6-ccd35f7f.d.ts +32 -0
  1087. package/modal/tslib.es6-ccd35f7f.js +40 -0
  1088. package/mq/cssm/Component.d.ts +17 -0
  1089. package/mq/cssm/Component.js +26 -0
  1090. package/mq/cssm/index.d.ts +2 -0
  1091. package/mq/cssm/index.js +11 -0
  1092. package/mq/cssm/useMatchMedia.d.ts +6 -0
  1093. package/mq/cssm/useMatchMedia.js +25 -0
  1094. package/mq/cssm/utils.d.ts +21 -0
  1095. package/mq/cssm/utils.js +69 -0
  1096. package/notification/cssm/Component.d.ts +97 -0
  1097. package/notification/cssm/Component.js +153 -0
  1098. package/notification/cssm/index.d.ts +1 -0
  1099. package/notification/cssm/index.js +17 -0
  1100. package/notification/cssm/index.module.css +56 -0
  1101. package/notification/cssm/utils/index.d.ts +4 -0
  1102. package/notification/cssm/utils/index.js +32 -0
  1103. package/notification-manager/cssm/component-d28c47be.d.ts +43 -0
  1104. package/notification-manager/cssm/component-d28c47be.js +67 -0
  1105. package/notification-manager/cssm/component.d.ts +51 -0
  1106. package/notification-manager/cssm/component.js +31 -0
  1107. package/notification-manager/cssm/components/index.d.ts +1 -0
  1108. package/notification-manager/cssm/components/index.js +9 -0
  1109. package/notification-manager/cssm/components/notification/component.d.ts +0 -0
  1110. package/notification-manager/cssm/components/notification/component.js +9 -0
  1111. package/notification-manager/cssm/components/notification/index.d.ts +1 -0
  1112. package/notification-manager/cssm/components/notification/index.js +9 -0
  1113. package/notification-manager/cssm/index.d.ts +1 -0
  1114. package/notification-manager/cssm/index.js +14 -0
  1115. package/notification-manager/cssm/index.module.css +59 -0
  1116. package/package.json +13 -1
  1117. package/password-input/cssm/component.d.ts +55 -0
  1118. package/password-input/cssm/component.js +76 -0
  1119. package/password-input/cssm/index.d.ts +1 -0
  1120. package/password-input/cssm/index.js +14 -0
  1121. package/password-input/cssm/index.module.css +15 -0
  1122. package/phone-input/cssm/Component.d.ts +10 -0
  1123. package/phone-input/cssm/Component.js +134 -0
  1124. package/phone-input/cssm/index.d.ts +1 -0
  1125. package/phone-input/cssm/index.js +11 -0
  1126. package/phone-input/cssm/utils/index.d.ts +17 -0
  1127. package/phone-input/cssm/utils/index.js +35 -0
  1128. package/picker-button/{Component-a2e04b2b.d.ts → Component-cb99627b.d.ts} +4 -0
  1129. package/picker-button/{Component-a2e04b2b.js → Component-cb99627b.js} +1 -1
  1130. package/picker-button/Component.d.ts +1 -1
  1131. package/picker-button/Component.js +2 -2
  1132. package/picker-button/{esm/Component-69cca889.d.ts → cssm/Component-c7d52094.d.ts} +4 -0
  1133. package/picker-button/cssm/Component-c7d52094.js +62 -0
  1134. package/picker-button/cssm/Component.d.ts +18 -0
  1135. package/picker-button/cssm/Component.js +30 -0
  1136. package/picker-button/cssm/field/Component.d.ts +0 -0
  1137. package/picker-button/cssm/field/Component.js +13 -0
  1138. package/picker-button/cssm/field/index.d.ts +1 -0
  1139. package/picker-button/cssm/field/index.js +13 -0
  1140. package/picker-button/cssm/field/index.module.css +18 -0
  1141. package/picker-button/cssm/index.d.ts +1 -0
  1142. package/picker-button/cssm/index.js +16 -0
  1143. package/picker-button/cssm/index.module.css +3 -0
  1144. package/picker-button/esm/Component-94ad1b6c.d.ts +816 -0
  1145. package/picker-button/esm/{Component-69cca889.js → Component-94ad1b6c.js} +1 -1
  1146. package/picker-button/esm/Component.d.ts +1 -1
  1147. package/picker-button/esm/Component.js +2 -2
  1148. package/picker-button/esm/field/Component.js +1 -1
  1149. package/picker-button/esm/field/index.css +3 -3
  1150. package/picker-button/esm/field/index.d.ts +1 -1
  1151. package/picker-button/esm/field/index.js +1 -1
  1152. package/picker-button/esm/index.css +2 -2
  1153. package/picker-button/esm/index.js +1 -1
  1154. package/picker-button/field/Component.js +1 -1
  1155. package/picker-button/field/index.css +3 -3
  1156. package/picker-button/field/index.d.ts +1 -1
  1157. package/picker-button/field/index.js +1 -1
  1158. package/picker-button/index.css +2 -2
  1159. package/picker-button/index.js +1 -1
  1160. package/picker-button/modern/Component.d.ts +1 -1
  1161. package/picker-button/modern/Component.js +1 -1
  1162. package/picker-button/modern/field/Component.d.ts +4 -0
  1163. package/picker-button/modern/field/Component.js +1 -1
  1164. package/picker-button/modern/field/index.css +3 -3
  1165. package/picker-button/modern/index.css +2 -2
  1166. package/plate/cssm/Component.d.ts +74 -0
  1167. package/plate/cssm/Component.js +101 -0
  1168. package/plate/cssm/index.d.ts +1 -0
  1169. package/plate/cssm/index.js +13 -0
  1170. package/plate/cssm/index.module.css +167 -0
  1171. package/popover/cssm/Component.d.ts +97 -0
  1172. package/popover/cssm/Component.js +127 -0
  1173. package/popover/cssm/index.d.ts +1 -0
  1174. package/popover/cssm/index.js +16 -0
  1175. package/popover/cssm/index.module.css +121 -0
  1176. package/portal/cssm/Component.d.ts +12 -0
  1177. package/portal/cssm/Component.js +25 -0
  1178. package/portal/cssm/index.d.ts +1 -0
  1179. package/portal/cssm/index.js +10 -0
  1180. package/portal/cssm/utils.d.ts +5 -0
  1181. package/portal/cssm/utils.js +25 -0
  1182. package/progress-bar/cssm/Component.d.ts +22 -0
  1183. package/progress-bar/cssm/Component.js +19 -0
  1184. package/progress-bar/cssm/index.d.ts +1 -0
  1185. package/progress-bar/cssm/index.js +10 -0
  1186. package/progress-bar/cssm/index.module.css +44 -0
  1187. package/pure-input/cssm/Component.d.ts +48 -0
  1188. package/pure-input/cssm/Component.js +74 -0
  1189. package/pure-input/cssm/index.d.ts +1 -0
  1190. package/pure-input/cssm/index.js +12 -0
  1191. package/pure-input/cssm/index.module.css +155 -0
  1192. package/radio/cssm/Component.d.ts +120 -0
  1193. package/radio/cssm/Component.js +82 -0
  1194. package/radio/cssm/index.d.ts +1 -0
  1195. package/radio/cssm/index.js +12 -0
  1196. package/radio/cssm/index.module.css +209 -0
  1197. package/radio-group/cssm/Component.d.ts +60 -0
  1198. package/radio-group/cssm/Component.js +93 -0
  1199. package/radio-group/cssm/index.d.ts +1 -0
  1200. package/radio-group/cssm/index.js +10 -0
  1201. package/radio-group/cssm/index.module.css +91 -0
  1202. package/select/Component.d.ts +1 -1
  1203. package/select/Component.js +1 -1
  1204. package/select/components/arrow/Component.js +1 -1
  1205. package/select/components/arrow/index.css +3 -3
  1206. package/select/components/base-select/Component.js +22 -7
  1207. package/select/components/base-select/index.css +7 -7
  1208. package/select/components/base-select/index.js +1 -1
  1209. package/select/components/checkmark/Component.js +1 -1
  1210. package/select/components/checkmark/index.css +3 -3
  1211. package/select/components/field/Component.js +2 -2
  1212. package/select/components/field/index.css +9 -9
  1213. package/select/components/field/index.js +1 -1
  1214. package/select/components/index.js +1 -1
  1215. package/select/components/native-select/Component.js +1 -1
  1216. package/select/components/native-select/index.js +1 -1
  1217. package/select/components/optgroup/Component.js +1 -1
  1218. package/select/components/optgroup/index.css +6 -6
  1219. package/select/components/option/Component.js +2 -2
  1220. package/select/components/option/index.css +20 -20
  1221. package/select/components/option/index.js +1 -1
  1222. package/select/components/options-list/Component.js +1 -1
  1223. package/select/components/options-list/index.css +5 -5
  1224. package/select/components/virtual-options-list/Component.js +1 -1
  1225. package/select/components/virtual-options-list/index.css +11 -11
  1226. package/select/cssm/Component.d.ts +110 -0
  1227. package/select/cssm/Component.js +38 -0
  1228. package/select/cssm/components/arrow/Component.d.ts +4 -0
  1229. package/select/cssm/components/arrow/Component.js +19 -0
  1230. package/select/cssm/components/arrow/index.d.ts +1 -0
  1231. package/select/cssm/components/arrow/index.js +10 -0
  1232. package/select/cssm/components/arrow/index.module.css +35 -0
  1233. package/select/cssm/components/base-select/Component.d.ts +5 -0
  1234. package/select/cssm/components/base-select/Component.js +242 -0
  1235. package/select/cssm/components/base-select/index.d.ts +1 -0
  1236. package/select/cssm/components/base-select/index.js +17 -0
  1237. package/select/cssm/components/base-select/index.module.css +76 -0
  1238. package/select/cssm/components/checkmark/Component.d.ts +4 -0
  1239. package/select/cssm/components/checkmark/Component.js +21 -0
  1240. package/select/cssm/components/checkmark/index.d.ts +1 -0
  1241. package/select/cssm/components/checkmark/index.js +10 -0
  1242. package/select/cssm/components/checkmark/index.module.css +51 -0
  1243. package/select/cssm/components/field/Component.d.ts +24 -0
  1244. package/select/cssm/components/field/Component.js +40 -0
  1245. package/select/cssm/components/field/index.d.ts +1 -0
  1246. package/select/cssm/components/field/index.js +14 -0
  1247. package/select/cssm/components/field/index.module.css +63 -0
  1248. package/select/cssm/components/index.d.ts +7 -0
  1249. package/select/cssm/components/index.js +40 -0
  1250. package/select/cssm/components/native-select/Component.d.ts +25 -0
  1251. package/select/cssm/components/native-select/Component.js +29 -0
  1252. package/select/cssm/components/native-select/index.d.ts +1 -0
  1253. package/select/cssm/components/native-select/index.js +10 -0
  1254. package/select/cssm/components/optgroup/Component.d.ts +4 -0
  1255. package/select/cssm/components/optgroup/Component.js +21 -0
  1256. package/select/cssm/components/optgroup/index.d.ts +1 -0
  1257. package/select/cssm/components/optgroup/index.js +10 -0
  1258. package/select/cssm/components/optgroup/index.module.css +62 -0
  1259. package/select/cssm/components/option/Component.d.ts +4 -0
  1260. package/select/cssm/components/option/Component.js +31 -0
  1261. package/select/cssm/components/option/index.d.ts +1 -0
  1262. package/select/cssm/components/option/index.js +13 -0
  1263. package/select/cssm/components/option/index.module.css +144 -0
  1264. package/select/cssm/components/options-list/Component.d.ts +5 -0
  1265. package/select/cssm/components/options-list/Component.js +44 -0
  1266. package/select/cssm/components/options-list/index.d.ts +1 -0
  1267. package/select/cssm/components/options-list/index.js +14 -0
  1268. package/select/cssm/components/options-list/index.module.css +41 -0
  1269. package/select/cssm/components/virtual-options-list/Component.d.ts +10 -0
  1270. package/select/cssm/components/virtual-options-list/Component.js +104 -0
  1271. package/select/cssm/components/virtual-options-list/index.d.ts +1 -0
  1272. package/select/cssm/components/virtual-options-list/index.js +14 -0
  1273. package/select/cssm/components/virtual-options-list/index.module.css +76 -0
  1274. package/select/cssm/index.d.ts +5 -0
  1275. package/select/cssm/index.js +56 -0
  1276. package/select/cssm/presets/index.d.ts +2 -0
  1277. package/select/cssm/presets/index.js +19 -0
  1278. package/select/cssm/presets/useLazyLoading/hook.d.ts +46 -0
  1279. package/select/cssm/presets/useLazyLoading/hook.js +1098 -0
  1280. package/select/cssm/presets/useLazyLoading/index.module.css +7 -0
  1281. package/select/cssm/presets/useSelectWithLoading/hook.d.ts +11 -0
  1282. package/select/cssm/presets/useSelectWithLoading/hook.js +36 -0
  1283. package/select/cssm/presets/useSelectWithLoading/index.module.css +7 -0
  1284. package/select/cssm/tslib.es6-f8106a15.d.ts +32 -0
  1285. package/select/{tslib.es6-2a25a340.js → cssm/tslib.es6-f8106a15.js} +0 -0
  1286. package/select/cssm/typings.d.ts +438 -0
  1287. package/select/cssm/typings.js +1 -0
  1288. package/select/cssm/utils.d.ts +38 -0
  1289. package/select/cssm/utils.js +93 -0
  1290. package/select/cssm/vars.css +10 -0
  1291. package/select/esm/Component.d.ts +1 -1
  1292. package/select/esm/Component.js +1 -1
  1293. package/select/esm/components/arrow/Component.js +1 -1
  1294. package/select/esm/components/arrow/index.css +3 -3
  1295. package/select/esm/components/base-select/Component.js +22 -7
  1296. package/select/esm/components/base-select/index.css +7 -7
  1297. package/select/esm/components/base-select/index.js +1 -1
  1298. package/select/esm/components/checkmark/Component.js +1 -1
  1299. package/select/esm/components/checkmark/index.css +3 -3
  1300. package/select/esm/components/field/Component.js +2 -2
  1301. package/select/esm/components/field/index.css +9 -9
  1302. package/select/esm/components/field/index.js +1 -1
  1303. package/select/esm/components/index.js +1 -1
  1304. package/select/esm/components/native-select/Component.js +1 -1
  1305. package/select/esm/components/native-select/index.js +1 -1
  1306. package/select/esm/components/optgroup/Component.js +1 -1
  1307. package/select/esm/components/optgroup/index.css +6 -6
  1308. package/select/esm/components/option/Component.js +2 -2
  1309. package/select/esm/components/option/index.css +20 -20
  1310. package/select/esm/components/option/index.js +1 -1
  1311. package/select/esm/components/options-list/Component.js +1 -1
  1312. package/select/esm/components/options-list/index.css +5 -5
  1313. package/select/esm/components/virtual-options-list/Component.js +1 -1
  1314. package/select/esm/components/virtual-options-list/index.css +11 -11
  1315. package/select/esm/index.js +1 -1
  1316. package/select/esm/presets/index.js +1 -1
  1317. package/select/esm/presets/useLazyLoading/hook.js +2 -2
  1318. package/select/esm/presets/useLazyLoading/index.css +2 -2
  1319. package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
  1320. package/select/esm/presets/useSelectWithLoading/index.css +2 -2
  1321. package/select/esm/tslib.es6-abde084a.d.ts +32 -0
  1322. package/select/esm/{tslib.es6-3d459325.js → tslib.es6-abde084a.js} +0 -0
  1323. package/select/esm/typings.d.ts +4 -0
  1324. package/select/index.js +1 -1
  1325. package/select/modern/Component.d.ts +1 -1
  1326. package/select/modern/components/arrow/Component.js +1 -1
  1327. package/select/modern/components/arrow/index.css +3 -3
  1328. package/select/modern/components/base-select/Component.js +21 -6
  1329. package/select/modern/components/base-select/index.css +7 -7
  1330. package/select/modern/components/checkmark/Component.js +1 -1
  1331. package/select/modern/components/checkmark/index.css +3 -3
  1332. package/select/modern/components/field/Component.js +1 -1
  1333. package/select/modern/components/field/index.css +9 -9
  1334. package/select/modern/components/optgroup/Component.js +1 -1
  1335. package/select/modern/components/optgroup/index.css +6 -6
  1336. package/select/modern/components/option/Component.js +1 -1
  1337. package/select/modern/components/option/index.css +20 -20
  1338. package/select/modern/components/options-list/Component.js +1 -1
  1339. package/select/modern/components/options-list/index.css +5 -5
  1340. package/select/modern/components/virtual-options-list/Component.js +1 -1
  1341. package/select/modern/components/virtual-options-list/index.css +11 -11
  1342. package/select/modern/presets/useLazyLoading/hook.js +1 -1
  1343. package/select/modern/presets/useLazyLoading/index.css +2 -2
  1344. package/select/modern/presets/useSelectWithLoading/hook.js +1 -1
  1345. package/select/modern/presets/useSelectWithLoading/index.css +2 -2
  1346. package/select/modern/typings.d.ts +4 -0
  1347. package/select/presets/index.js +1 -1
  1348. package/select/presets/useLazyLoading/hook.js +2 -2
  1349. package/select/presets/useLazyLoading/index.css +2 -2
  1350. package/select/presets/useSelectWithLoading/hook.js +2 -2
  1351. package/select/presets/useSelectWithLoading/index.css +2 -2
  1352. package/select/tslib.es6-0f234b35.d.ts +32 -0
  1353. package/select/tslib.es6-0f234b35.js +49 -0
  1354. package/select/typings.d.ts +4 -0
  1355. package/select-with-tags/component.d.ts +1 -1
  1356. package/select-with-tags/cssm/component.d.ts +21 -0
  1357. package/select-with-tags/cssm/component.js +88 -0
  1358. package/select-with-tags/cssm/components/index.d.ts +2 -0
  1359. package/select-with-tags/cssm/components/index.js +19 -0
  1360. package/select-with-tags/cssm/components/tag/component.d.ts +3 -0
  1361. package/select-with-tags/cssm/components/tag/component.js +33 -0
  1362. package/select-with-tags/cssm/components/tag/index.d.ts +1 -0
  1363. package/select-with-tags/cssm/components/tag/index.js +13 -0
  1364. package/select-with-tags/cssm/components/tag/index.module.css +50 -0
  1365. package/select-with-tags/cssm/components/tag-list/component.d.ts +20 -0
  1366. package/select-with-tags/cssm/components/tag-list/component.js +133 -0
  1367. package/select-with-tags/cssm/components/tag-list/index.d.ts +1 -0
  1368. package/select-with-tags/cssm/components/tag-list/index.js +18 -0
  1369. package/select-with-tags/cssm/components/tag-list/index.module.css +155 -0
  1370. package/select-with-tags/cssm/index.d.ts +1 -0
  1371. package/select-with-tags/cssm/index.js +21 -0
  1372. package/select-with-tags/cssm/tslib.es6-ce870b46.d.ts +32 -0
  1373. package/select-with-tags/cssm/tslib.es6-ce870b46.js +40 -0
  1374. package/select-with-tags/cssm/types.d.ts +63 -0
  1375. package/select-with-tags/cssm/types.js +1 -0
  1376. package/select-with-tags/cssm/utils/calculate-collapse-size.d.ts +2 -0
  1377. package/select-with-tags/cssm/utils/calculate-collapse-size.js +47 -0
  1378. package/select-with-tags/cssm/utils/index.d.ts +1 -0
  1379. package/select-with-tags/cssm/utils/index.js +9 -0
  1380. package/select-with-tags/cssm/utils/match.d.ts +4 -0
  1381. package/select-with-tags/cssm/utils/match.js +31 -0
  1382. package/select-with-tags/esm/component.d.ts +1 -1
  1383. package/select-with-tags/modern/component.d.ts +1 -1
  1384. package/skeleton/cssm/Component.d.ts +22 -0
  1385. package/skeleton/cssm/Component.js +22 -0
  1386. package/skeleton/cssm/index.d.ts +1 -0
  1387. package/skeleton/cssm/index.js +10 -0
  1388. package/skeleton/cssm/index.module.css +104 -0
  1389. package/skeleton/cssm/stories.module.css +4 -0
  1390. package/slider/cssm/Component.d.ts +69 -0
  1391. package/slider/cssm/Component.js +97 -0
  1392. package/slider/cssm/index.d.ts +1 -0
  1393. package/slider/cssm/index.js +12 -0
  1394. package/slider/cssm/index.module.css +236 -0
  1395. package/slider-input/cssm/Component.d.ts +149 -0
  1396. package/slider-input/cssm/Component.js +102 -0
  1397. package/slider-input/cssm/index.d.ts +1 -0
  1398. package/slider-input/cssm/index.js +12 -0
  1399. package/slider-input/cssm/index.module.css +93 -0
  1400. package/space/cssm/Component.d.ts +47 -0
  1401. package/space/cssm/Component.js +54 -0
  1402. package/space/cssm/Item-09e1c4dc.d.ts +47 -0
  1403. package/space/cssm/Item-09e1c4dc.js +49 -0
  1404. package/space/cssm/Item.d.ts +0 -0
  1405. package/space/cssm/Item.js +6 -0
  1406. package/space/cssm/index.d.ts +1 -0
  1407. package/space/cssm/index.js +11 -0
  1408. package/space/cssm/index.module.css +32 -0
  1409. package/space/cssm/utils.d.ts +11 -0
  1410. package/space/cssm/utils.js +15 -0
  1411. package/spinner/cssm/Component.d.ts +25 -0
  1412. package/spinner/cssm/Component.js +21 -0
  1413. package/spinner/cssm/index.d.ts +1 -0
  1414. package/spinner/cssm/index.js +10 -0
  1415. package/spinner/cssm/index.module.css +39 -0
  1416. package/stack/cssm/component.d.ts +15 -0
  1417. package/stack/cssm/component.js +18 -0
  1418. package/stack/cssm/context.d.ts +29 -0
  1419. package/stack/cssm/context.js +34 -0
  1420. package/stack/cssm/index.d.ts +2 -0
  1421. package/stack/cssm/index.js +11 -0
  1422. package/status/cssm/Component.d.ts +22 -0
  1423. package/status/cssm/Component.js +20 -0
  1424. package/status/cssm/index.d.ts +1 -0
  1425. package/status/cssm/index.js +11 -0
  1426. package/status/cssm/index.module.css +103 -0
  1427. package/stepped-progress-bar/cssm/Component.d.ts +25 -0
  1428. package/stepped-progress-bar/cssm/Component.js +30 -0
  1429. package/stepped-progress-bar/cssm/components/step-bar/Component.d.ts +6 -0
  1430. package/stepped-progress-bar/cssm/components/step-bar/Component.js +18 -0
  1431. package/stepped-progress-bar/cssm/components/step-bar/index.d.ts +1 -0
  1432. package/stepped-progress-bar/cssm/components/step-bar/index.js +10 -0
  1433. package/stepped-progress-bar/cssm/components/step-bar/index.module.css +15 -0
  1434. package/stepped-progress-bar/cssm/index.d.ts +1 -0
  1435. package/stepped-progress-bar/cssm/index.js +13 -0
  1436. package/stepped-progress-bar/cssm/index.module.css +27 -0
  1437. package/switch/cssm/Component.d.ts +103 -0
  1438. package/switch/cssm/Component.js +83 -0
  1439. package/switch/cssm/index.d.ts +1 -0
  1440. package/switch/cssm/index.js +12 -0
  1441. package/switch/cssm/index.module.css +176 -0
  1442. package/tabs/components/primary-tablist/Component.desktop.js +2 -2
  1443. package/tabs/components/primary-tablist/Component.js +1 -1
  1444. package/tabs/components/primary-tablist/Component.mobile.js +2 -2
  1445. package/tabs/components/primary-tablist/Component.responsive.js +2 -2
  1446. package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
  1447. package/tabs/components/secondary-tablist/Component.js +1 -1
  1448. package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
  1449. package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
  1450. package/tabs/components/tabs/Component.desktop.js +3 -3
  1451. package/tabs/components/tabs/Component.mobile.js +3 -3
  1452. package/tabs/components/tabs/Component.responsive.js +3 -3
  1453. package/tabs/cssm/components/primary-tablist/Component.d.ts +13 -0
  1454. package/tabs/cssm/components/primary-tablist/Component.desktop.d.ts +4 -0
  1455. package/tabs/cssm/components/primary-tablist/Component.desktop.js +24 -0
  1456. package/tabs/cssm/components/primary-tablist/Component.js +50 -0
  1457. package/tabs/cssm/components/primary-tablist/Component.mobile.d.ts +5 -0
  1458. package/tabs/cssm/components/primary-tablist/Component.mobile.js +28 -0
  1459. package/tabs/cssm/components/primary-tablist/Component.responsive.d.ts +4 -0
  1460. package/tabs/cssm/components/primary-tablist/Component.responsive.js +31 -0
  1461. package/tabs/cssm/components/primary-tablist/index.module.css +184 -0
  1462. package/tabs/cssm/components/primary-tablist/mobile.module.css +55 -0
  1463. package/tabs/cssm/components/scrollable-container/Component.d.ts +18 -0
  1464. package/tabs/cssm/components/scrollable-container/Component.js +36 -0
  1465. package/tabs/cssm/components/scrollable-container/index.d.ts +1 -0
  1466. package/tabs/cssm/components/scrollable-container/index.js +11 -0
  1467. package/tabs/cssm/components/scrollable-container/index.module.css +47 -0
  1468. package/tabs/cssm/components/secondary-tablist/Component.d.ts +15 -0
  1469. package/tabs/cssm/components/secondary-tablist/Component.desktop.d.ts +5 -0
  1470. package/tabs/cssm/components/secondary-tablist/Component.desktop.js +24 -0
  1471. package/tabs/cssm/components/secondary-tablist/Component.js +32 -0
  1472. package/tabs/cssm/components/secondary-tablist/Component.mobile.d.ts +5 -0
  1473. package/tabs/cssm/components/secondary-tablist/Component.mobile.js +28 -0
  1474. package/tabs/cssm/components/secondary-tablist/Component.responsive.d.ts +4 -0
  1475. package/tabs/cssm/components/secondary-tablist/Component.responsive.js +31 -0
  1476. package/tabs/cssm/components/secondary-tablist/index.module.css +80 -0
  1477. package/tabs/cssm/components/secondary-tablist/mobile.module.css +43 -0
  1478. package/tabs/cssm/components/tab/Component.d.ts +4 -0
  1479. package/tabs/cssm/components/tab/Component.js +21 -0
  1480. package/tabs/cssm/components/tab/index.d.ts +1 -0
  1481. package/tabs/cssm/components/tab/index.js +10 -0
  1482. package/tabs/cssm/components/tab/index.module.css +7 -0
  1483. package/tabs/cssm/components/tabs/Component.d.ts +4 -0
  1484. package/tabs/cssm/components/tabs/Component.desktop.d.ts +5 -0
  1485. package/tabs/cssm/components/tabs/Component.desktop.js +33 -0
  1486. package/tabs/cssm/components/tabs/Component.js +28 -0
  1487. package/tabs/cssm/components/tabs/Component.mobile.d.ts +5 -0
  1488. package/tabs/cssm/components/tabs/Component.mobile.js +35 -0
  1489. package/tabs/cssm/components/tabs/Component.responsive.d.ts +5 -0
  1490. package/tabs/cssm/components/tabs/Component.responsive.js +40 -0
  1491. package/tabs/cssm/desktop.d.ts +7 -0
  1492. package/tabs/cssm/desktop.js +30 -0
  1493. package/tabs/cssm/index.d.ts +7 -0
  1494. package/tabs/cssm/index.js +37 -0
  1495. package/tabs/cssm/mobile.d.ts +7 -0
  1496. package/tabs/cssm/mobile.js +32 -0
  1497. package/tabs/cssm/responsive.d.ts +7 -0
  1498. package/tabs/cssm/responsive.js +37 -0
  1499. package/tabs/cssm/tslib.es6-ce870b46.d.ts +32 -0
  1500. package/tabs/cssm/tslib.es6-ce870b46.js +40 -0
  1501. package/tabs/cssm/typings.d.ts +116 -0
  1502. package/tabs/cssm/typings.js +1 -0
  1503. package/tabs/cssm/useTabs.d.ts +16 -0
  1504. package/tabs/cssm/useTabs.js +95 -0
  1505. package/tabs/cssm/vars.css +30 -0
  1506. package/tabs/desktop.js +3 -3
  1507. package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
  1508. package/tabs/esm/components/primary-tablist/Component.js +1 -1
  1509. package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
  1510. package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
  1511. package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
  1512. package/tabs/esm/components/secondary-tablist/Component.js +1 -1
  1513. package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
  1514. package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
  1515. package/tabs/esm/components/tabs/Component.desktop.js +3 -3
  1516. package/tabs/esm/components/tabs/Component.mobile.js +3 -3
  1517. package/tabs/esm/components/tabs/Component.responsive.js +3 -3
  1518. package/tabs/esm/desktop.js +3 -3
  1519. package/tabs/esm/index.js +3 -3
  1520. package/tabs/esm/{index.module-95ac737a.js → index.module-c8448fef.js} +0 -0
  1521. package/tabs/esm/{index.module-1dc9f24d.js → index.module-fbbc84ff.js} +0 -0
  1522. package/tabs/esm/mobile.js +3 -3
  1523. package/tabs/esm/responsive.js +3 -3
  1524. package/tabs/esm/tslib.es6-787ef7a5.d.ts +32 -0
  1525. package/tabs/esm/{tslib.es6-417b0fd8.js → tslib.es6-787ef7a5.js} +0 -0
  1526. package/tabs/index.js +3 -3
  1527. package/tabs/{index.module-0ed2b345.js → index.module-91539407.js} +0 -0
  1528. package/tabs/{index.module-23528269.js → index.module-95d8761b.js} +0 -0
  1529. package/tabs/mobile.js +3 -3
  1530. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  1531. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  1532. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  1533. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  1534. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  1535. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  1536. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  1537. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  1538. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  1539. package/tabs/modern/desktop.js +2 -2
  1540. package/tabs/modern/index.js +2 -2
  1541. package/tabs/modern/{index.module-95ac737a.js → index.module-c8448fef.js} +0 -0
  1542. package/tabs/modern/{index.module-1dc9f24d.js → index.module-fbbc84ff.js} +0 -0
  1543. package/tabs/modern/mobile.js +2 -2
  1544. package/tabs/modern/responsive.js +2 -2
  1545. package/tabs/responsive.js +3 -3
  1546. package/tabs/tslib.es6-da6ab86a.d.ts +32 -0
  1547. package/tabs/tslib.es6-da6ab86a.js +40 -0
  1548. package/tag/cssm/Component.d.ts +71 -0
  1549. package/tag/cssm/Component.js +89 -0
  1550. package/tag/cssm/default.module.css +72 -0
  1551. package/tag/cssm/index.d.ts +1 -0
  1552. package/tag/cssm/index.js +14 -0
  1553. package/tag/cssm/index.module.css +152 -0
  1554. package/tag/cssm/inverted.module.css +73 -0
  1555. package/textarea/cssm/Component.d.ts +214 -0
  1556. package/textarea/cssm/Component.js +140 -0
  1557. package/textarea/cssm/default.module.css +97 -0
  1558. package/textarea/cssm/index.d.ts +1 -0
  1559. package/textarea/cssm/index.js +17 -0
  1560. package/textarea/cssm/index.module.css +146 -0
  1561. package/textarea/cssm/inverted.module.css +97 -0
  1562. package/themes/compiled/mobile-dark-bluetint.css +8 -8
  1563. package/themes/dist/compiled/mobile-dark-bluetint.css +133 -98
  1564. package/toast/cssm/component.d.ts +88 -0
  1565. package/toast/cssm/component.js +125 -0
  1566. package/toast/cssm/index.d.ts +1 -0
  1567. package/toast/cssm/index.js +17 -0
  1568. package/toast/cssm/index.module.css +48 -0
  1569. package/toast-plate/cssm/component.d.ts +109 -0
  1570. package/toast-plate/cssm/component.js +88 -0
  1571. package/toast-plate/cssm/index.d.ts +1 -0
  1572. package/toast-plate/cssm/index.js +16 -0
  1573. package/toast-plate/cssm/index.module.css +599 -0
  1574. package/tooltip/cssm/Component-1d6b7d3e.d.ts +125 -0
  1575. package/tooltip/cssm/Component-1d6b7d3e.js +172 -0
  1576. package/tooltip/cssm/Component.d.ts +0 -0
  1577. package/tooltip/cssm/Component.js +12 -0
  1578. package/tooltip/cssm/component.responsive.d.ts +28 -0
  1579. package/tooltip/cssm/component.responsive.js +31 -0
  1580. package/tooltip/cssm/index.d.ts +1 -0
  1581. package/tooltip/cssm/index.js +12 -0
  1582. package/tooltip/cssm/index.module.css +51 -0
  1583. package/tooltip/cssm/responsive.d.ts +1 -0
  1584. package/tooltip/cssm/responsive.js +15 -0
  1585. package/typography/colors.module-b49182a7.d.ts +32 -0
  1586. package/typography/{colors.module-ded492e1.js → colors.module-b49182a7.js} +0 -0
  1587. package/typography/{common.module-1de331b9.js → common.module-263677ac.js} +0 -0
  1588. package/typography/component.js +2 -2
  1589. package/typography/cssm/colors.d.ts +3 -0
  1590. package/typography/cssm/colors.js +18 -0
  1591. package/typography/cssm/colors.module.css +59 -0
  1592. package/typography/cssm/component.d.ts +9 -0
  1593. package/typography/cssm/component.js +22 -0
  1594. package/typography/cssm/index.d.ts +1 -0
  1595. package/typography/cssm/index.js +19 -0
  1596. package/typography/cssm/margins.module.css +1 -0
  1597. package/typography/cssm/text/component.d.ts +75 -0
  1598. package/typography/cssm/text/component.js +22 -0
  1599. package/typography/cssm/text/index.d.ts +1 -0
  1600. package/typography/cssm/text/index.js +12 -0
  1601. package/typography/cssm/text/index.module.css +73 -0
  1602. package/typography/cssm/title/common.module.css +16 -0
  1603. package/typography/cssm/title/component.d.ts +88 -0
  1604. package/typography/cssm/title/component.js +19 -0
  1605. package/typography/cssm/title/index.d.ts +4 -0
  1606. package/typography/cssm/title/index.js +25 -0
  1607. package/typography/cssm/title/index.module.css +102 -0
  1608. package/typography/cssm/title-responsive/component.d.ts +4 -0
  1609. package/typography/cssm/title-responsive/component.js +25 -0
  1610. package/typography/cssm/title-responsive/index.d.ts +1 -0
  1611. package/typography/cssm/title-responsive/index.js +14 -0
  1612. package/typography/cssm/title-responsive/index.module.css +276 -0
  1613. package/typography/cssm/tslib.es6-ce870b46.d.ts +32 -0
  1614. package/typography/cssm/tslib.es6-ce870b46.js +40 -0
  1615. package/typography/esm/colors.module-509f4855.d.ts +32 -0
  1616. package/typography/esm/{colors.module-d21f47ee.js → colors.module-509f4855.js} +0 -0
  1617. package/typography/esm/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
  1618. package/typography/esm/component.js +2 -2
  1619. package/typography/esm/index.js +2 -2
  1620. package/typography/esm/text/component.js +1 -1
  1621. package/typography/esm/text/index.js +1 -1
  1622. package/typography/esm/title/component.js +1 -1
  1623. package/typography/esm/title/index.js +2 -2
  1624. package/typography/esm/title-responsive/component.js +2 -2
  1625. package/typography/esm/title-responsive/index.js +2 -2
  1626. package/typography/index.js +2 -2
  1627. package/typography/modern/{colors.module-5a6490a8.js → colors.module-07a98532.js} +0 -0
  1628. package/typography/modern/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
  1629. package/typography/modern/component.js +2 -2
  1630. package/typography/modern/index.js +2 -2
  1631. package/typography/modern/text/component.js +1 -1
  1632. package/typography/modern/text/index.js +1 -1
  1633. package/typography/modern/title/component.js +1 -1
  1634. package/typography/modern/title/index.js +2 -2
  1635. package/typography/modern/title-responsive/component.js +2 -2
  1636. package/typography/modern/title-responsive/index.js +2 -2
  1637. package/typography/text/component.js +1 -1
  1638. package/typography/text/index.js +1 -1
  1639. package/typography/title/component.js +1 -1
  1640. package/typography/title/index.js +2 -2
  1641. package/typography/title-responsive/component.js +2 -2
  1642. package/typography/title-responsive/index.js +2 -2
  1643. package/vars/cssm/border-radius.css +9 -0
  1644. package/vars/cssm/colors-addons.css +55 -0
  1645. package/vars/cssm/colors-bluetint.css +247 -0
  1646. package/vars/cssm/colors-bluetint.d.ts +2 -0
  1647. package/vars/cssm/colors-bluetint.js +10 -0
  1648. package/vars/cssm/colors-indigo.css +265 -0
  1649. package/vars/cssm/colors-indigo.d.ts +2 -0
  1650. package/vars/cssm/colors-indigo.js +10 -0
  1651. package/vars/cssm/colors-transparent.css +22 -0
  1652. package/vars/cssm/colors.css +71 -0
  1653. package/vars/cssm/gaps.css +30 -0
  1654. package/vars/cssm/index.css +496 -0
  1655. package/vars/cssm/mixins.css +1 -0
  1656. package/vars/cssm/shadows-indigo.css +38 -0
  1657. package/vars/cssm/typography.css +6 -0
  1658. package/with-suffix/cssm/Component.d.ts +89 -0
  1659. package/with-suffix/cssm/Component.js +97 -0
  1660. package/with-suffix/cssm/index.d.ts +1 -0
  1661. package/with-suffix/cssm/index.js +12 -0
  1662. package/with-suffix/cssm/index.module.css +41 -0
@@ -0,0 +1,1098 @@
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;