@vchasno/ui-kit 0.3.0 → 0.3.3

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 (356) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/Datepicker/index.cjs.js +13545 -8320
  3. package/dist/Datepicker/index.cjs.js.map +1 -1
  4. package/dist/Datepicker/index.js +13549 -8324
  5. package/dist/Datepicker/index.js.map +1 -1
  6. package/dist/Datepicker/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  7. package/dist/Datepicker/types/components/BlackTooltip/index.d.ts +2 -0
  8. package/dist/Datepicker/types/components/Button/Button.d.ts +4 -4
  9. package/dist/Datepicker/types/components/Menu/Menu.d.ts +11 -0
  10. package/dist/Datepicker/types/components/Menu/index.d.ts +2 -0
  11. package/dist/Datepicker/types/components/MenuButton/MenuButton.d.ts +7 -0
  12. package/dist/Datepicker/types/components/MenuButton/index.d.ts +2 -0
  13. package/dist/Datepicker/types/components/MenuItem/MenuItem.d.ts +7 -0
  14. package/dist/Datepicker/types/components/MenuItem/index.d.ts +2 -0
  15. package/dist/Datepicker/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  16. package/dist/Datepicker/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  17. package/dist/Datepicker/types/components/ProjectsPopover/index.d.ts +2 -0
  18. package/dist/Datepicker/types/components/ProjectsPopover/mappers.d.ts +6 -0
  19. package/dist/Datepicker/types/components/ProjectsPopover/types.d.ts +7 -0
  20. package/dist/Datepicker/types/components/ProjectsPopover/utils.d.ts +10 -0
  21. package/dist/Datepicker/types/components/Select/Select.d.ts +24 -23
  22. package/dist/Datepicker/types/components/Select/types.d.ts +2 -1
  23. package/dist/Datepicker/types/components/Snackbar/ActionButton.d.ts +6 -0
  24. package/dist/Datepicker/types/components/Snackbar/Snackbar.d.ts +15 -0
  25. package/dist/Datepicker/types/components/Snackbar/WithAction.d.ts +3 -0
  26. package/dist/Datepicker/types/components/Snackbar/index.d.ts +2 -0
  27. package/dist/Datepicker/types/components/index.d.ts +2 -0
  28. package/dist/Menu/index.cjs.js +2970 -0
  29. package/dist/Menu/index.cjs.js.map +1 -0
  30. package/dist/Menu/index.d.ts +18 -0
  31. package/dist/Menu/index.js +2968 -0
  32. package/dist/Menu/index.js.map +1 -0
  33. package/dist/Menu/types/components/Alert/Alert.d.ts +16 -0
  34. package/dist/Menu/types/components/Alert/index.d.ts +2 -0
  35. package/dist/Menu/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  36. package/dist/Menu/types/components/BlackTooltip/index.d.ts +2 -0
  37. package/dist/Menu/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  38. package/dist/Menu/types/components/BubbleBox/index.d.ts +3 -0
  39. package/dist/Menu/types/components/BubbleBox/utils.d.ts +1 -0
  40. package/dist/Menu/types/components/Button/Button.d.ts +12 -0
  41. package/dist/Menu/types/components/Button/index.d.ts +2 -0
  42. package/dist/Menu/types/components/Checkbox/Checkbox.d.ts +11 -0
  43. package/dist/Menu/types/components/Checkbox/index.d.ts +2 -0
  44. package/dist/Menu/types/components/Datepicker/DatePicker.d.ts +15 -0
  45. package/dist/Menu/types/components/Datepicker/index.d.ts +2 -0
  46. package/dist/Menu/types/components/FlexBox/FlexBox.d.ts +15 -0
  47. package/dist/Menu/types/components/FlexBox/index.d.ts +2 -0
  48. package/dist/Menu/types/components/Input/Input.d.ts +15 -0
  49. package/dist/Menu/types/components/Input/index.d.ts +2 -0
  50. package/dist/Menu/types/components/InputMeta/InputMeta.d.ts +8 -0
  51. package/dist/Menu/types/components/InputMeta/index.d.ts +2 -0
  52. package/dist/Menu/types/components/LabelText/LabelText.d.ts +8 -0
  53. package/dist/Menu/types/components/LabelText/index.d.ts +1 -0
  54. package/dist/Menu/types/components/MaskInput/MaskInput.d.ts +10 -0
  55. package/dist/Menu/types/components/MaskInput/index.d.ts +2 -0
  56. package/dist/Menu/types/components/Menu/Menu.d.ts +11 -0
  57. package/dist/Menu/types/components/Menu/index.d.ts +2 -0
  58. package/dist/Menu/types/components/MenuButton/MenuButton.d.ts +7 -0
  59. package/dist/Menu/types/components/MenuButton/index.d.ts +2 -0
  60. package/dist/Menu/types/components/MenuItem/MenuItem.d.ts +7 -0
  61. package/dist/Menu/types/components/MenuItem/index.d.ts +2 -0
  62. package/dist/Menu/types/components/Pagination/Pagination.d.ts +16 -0
  63. package/dist/Menu/types/components/Pagination/index.d.ts +2 -0
  64. package/dist/Menu/types/components/Pagination/utils.d.ts +1 -0
  65. package/dist/Menu/types/components/Paragraph/Paragraph.d.ts +9 -0
  66. package/dist/Menu/types/components/Paragraph/index.d.ts +2 -0
  67. package/dist/Menu/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  68. package/dist/Menu/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  69. package/dist/Menu/types/components/ProjectsPopover/index.d.ts +2 -0
  70. package/dist/Menu/types/components/ProjectsPopover/mappers.d.ts +6 -0
  71. package/dist/Menu/types/components/ProjectsPopover/types.d.ts +7 -0
  72. package/dist/Menu/types/components/ProjectsPopover/utils.d.ts +10 -0
  73. package/dist/Menu/types/components/PulseDot/PulseDot.d.ts +22 -0
  74. package/dist/Menu/types/components/PulseDot/index.d.ts +2 -0
  75. package/dist/Menu/types/components/Select/Label.d.ts +7 -0
  76. package/dist/Menu/types/components/Select/Select.d.ts +40 -0
  77. package/dist/Menu/types/components/Select/SelectCreatable.d.ts +14 -0
  78. package/dist/Menu/types/components/Select/customComponents.d.ts +11 -0
  79. package/dist/Menu/types/components/Select/defaultProps.d.ts +6 -0
  80. package/dist/Menu/types/components/Select/index.d.ts +5 -0
  81. package/dist/Menu/types/components/Select/types.d.ts +9 -0
  82. package/dist/Menu/types/components/Snackbar/ActionButton.d.ts +6 -0
  83. package/dist/Menu/types/components/Snackbar/Snackbar.d.ts +15 -0
  84. package/dist/Menu/types/components/Snackbar/WithAction.d.ts +3 -0
  85. package/dist/Menu/types/components/Snackbar/index.d.ts +2 -0
  86. package/dist/Menu/types/components/Spinner/Spinner.d.ts +18 -0
  87. package/dist/Menu/types/components/Spinner/index.d.ts +2 -0
  88. package/dist/Menu/types/components/SplashLogo/SplashLogo.d.ts +12 -0
  89. package/dist/Menu/types/components/SplashLogo/dataUrls.d.ts +6 -0
  90. package/dist/Menu/types/components/SplashLogo/index.d.ts +2 -0
  91. package/dist/Menu/types/components/SvgBorder/SvgBorder.d.ts +18 -0
  92. package/dist/Menu/types/components/SvgBorder/index.d.ts +3 -0
  93. package/dist/Menu/types/components/SvgBorder/utils.d.ts +1 -0
  94. package/dist/Menu/types/components/Switch/Switch.d.ts +14 -0
  95. package/dist/Menu/types/components/Switch/index.d.ts +2 -0
  96. package/dist/Menu/types/components/Tabs/Tabs.d.ts +19 -0
  97. package/dist/Menu/types/components/Tabs/index.d.ts +2 -0
  98. package/dist/Menu/types/components/Text/Text.d.ts +14 -0
  99. package/dist/Menu/types/components/Text/index.d.ts +2 -0
  100. package/dist/Menu/types/components/TextAreaInput/TextAreaInput.d.ts +10 -0
  101. package/dist/Menu/types/components/TextAreaInput/index.d.ts +2 -0
  102. package/dist/Menu/types/components/TextInput/TextInput.d.ts +9 -0
  103. package/dist/Menu/types/components/TextInput/index.d.ts +2 -0
  104. package/dist/Menu/types/components/Title/Title.d.ts +9 -0
  105. package/dist/Menu/types/components/Title/index.d.ts +2 -0
  106. package/dist/Menu/types/components/index.d.ts +42 -0
  107. package/dist/Menu/types/components/types.d.ts +24 -0
  108. package/dist/Menu/types/hooks/useClientRect.d.ts +5 -0
  109. package/dist/Menu/types/index.d.ts +2 -0
  110. package/dist/Menu/types/utils/react.d.ts +6 -0
  111. package/dist/ProjectsPopover/index.cjs.js +12650 -0
  112. package/dist/ProjectsPopover/index.cjs.js.map +1 -0
  113. package/dist/ProjectsPopover/index.d.ts +27 -0
  114. package/dist/ProjectsPopover/index.js +12630 -0
  115. package/dist/ProjectsPopover/index.js.map +1 -0
  116. package/dist/ProjectsPopover/types/components/Alert/Alert.d.ts +16 -0
  117. package/dist/ProjectsPopover/types/components/Alert/index.d.ts +2 -0
  118. package/dist/ProjectsPopover/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  119. package/dist/ProjectsPopover/types/components/BlackTooltip/index.d.ts +2 -0
  120. package/dist/ProjectsPopover/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  121. package/dist/ProjectsPopover/types/components/BubbleBox/index.d.ts +3 -0
  122. package/dist/ProjectsPopover/types/components/BubbleBox/utils.d.ts +1 -0
  123. package/dist/ProjectsPopover/types/components/Button/Button.d.ts +12 -0
  124. package/dist/ProjectsPopover/types/components/Button/index.d.ts +2 -0
  125. package/dist/ProjectsPopover/types/components/Checkbox/Checkbox.d.ts +11 -0
  126. package/dist/ProjectsPopover/types/components/Checkbox/index.d.ts +2 -0
  127. package/dist/ProjectsPopover/types/components/Datepicker/DatePicker.d.ts +15 -0
  128. package/dist/ProjectsPopover/types/components/Datepicker/index.d.ts +2 -0
  129. package/dist/ProjectsPopover/types/components/FlexBox/FlexBox.d.ts +15 -0
  130. package/dist/ProjectsPopover/types/components/FlexBox/index.d.ts +2 -0
  131. package/dist/ProjectsPopover/types/components/Input/Input.d.ts +15 -0
  132. package/dist/ProjectsPopover/types/components/Input/index.d.ts +2 -0
  133. package/dist/ProjectsPopover/types/components/InputMeta/InputMeta.d.ts +8 -0
  134. package/dist/ProjectsPopover/types/components/InputMeta/index.d.ts +2 -0
  135. package/dist/ProjectsPopover/types/components/LabelText/LabelText.d.ts +8 -0
  136. package/dist/ProjectsPopover/types/components/LabelText/index.d.ts +1 -0
  137. package/dist/ProjectsPopover/types/components/MaskInput/MaskInput.d.ts +10 -0
  138. package/dist/ProjectsPopover/types/components/MaskInput/index.d.ts +2 -0
  139. package/dist/ProjectsPopover/types/components/Menu/Menu.d.ts +11 -0
  140. package/dist/ProjectsPopover/types/components/Menu/index.d.ts +2 -0
  141. package/dist/ProjectsPopover/types/components/MenuButton/MenuButton.d.ts +7 -0
  142. package/dist/ProjectsPopover/types/components/MenuButton/index.d.ts +2 -0
  143. package/dist/ProjectsPopover/types/components/MenuItem/MenuItem.d.ts +7 -0
  144. package/dist/ProjectsPopover/types/components/MenuItem/index.d.ts +2 -0
  145. package/dist/ProjectsPopover/types/components/Pagination/Pagination.d.ts +16 -0
  146. package/dist/ProjectsPopover/types/components/Pagination/index.d.ts +2 -0
  147. package/dist/ProjectsPopover/types/components/Pagination/utils.d.ts +1 -0
  148. package/dist/ProjectsPopover/types/components/Paragraph/Paragraph.d.ts +9 -0
  149. package/dist/ProjectsPopover/types/components/Paragraph/index.d.ts +2 -0
  150. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  151. package/dist/ProjectsPopover/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  152. package/dist/ProjectsPopover/types/components/ProjectsPopover/index.d.ts +2 -0
  153. package/dist/ProjectsPopover/types/components/ProjectsPopover/mappers.d.ts +6 -0
  154. package/dist/ProjectsPopover/types/components/ProjectsPopover/types.d.ts +7 -0
  155. package/dist/ProjectsPopover/types/components/ProjectsPopover/utils.d.ts +10 -0
  156. package/dist/ProjectsPopover/types/components/PulseDot/PulseDot.d.ts +22 -0
  157. package/dist/ProjectsPopover/types/components/PulseDot/index.d.ts +2 -0
  158. package/dist/ProjectsPopover/types/components/Select/Label.d.ts +7 -0
  159. package/dist/ProjectsPopover/types/components/Select/Select.d.ts +40 -0
  160. package/dist/ProjectsPopover/types/components/Select/SelectCreatable.d.ts +14 -0
  161. package/dist/ProjectsPopover/types/components/Select/customComponents.d.ts +11 -0
  162. package/dist/ProjectsPopover/types/components/Select/defaultProps.d.ts +6 -0
  163. package/dist/ProjectsPopover/types/components/Select/index.d.ts +5 -0
  164. package/dist/ProjectsPopover/types/components/Select/types.d.ts +9 -0
  165. package/dist/ProjectsPopover/types/components/Snackbar/ActionButton.d.ts +6 -0
  166. package/dist/ProjectsPopover/types/components/Snackbar/Snackbar.d.ts +15 -0
  167. package/dist/ProjectsPopover/types/components/Snackbar/WithAction.d.ts +3 -0
  168. package/dist/ProjectsPopover/types/components/Snackbar/index.d.ts +2 -0
  169. package/dist/ProjectsPopover/types/components/Spinner/Spinner.d.ts +18 -0
  170. package/dist/ProjectsPopover/types/components/Spinner/index.d.ts +2 -0
  171. package/dist/ProjectsPopover/types/components/SplashLogo/SplashLogo.d.ts +12 -0
  172. package/dist/ProjectsPopover/types/components/SplashLogo/dataUrls.d.ts +6 -0
  173. package/dist/ProjectsPopover/types/components/SplashLogo/index.d.ts +2 -0
  174. package/dist/ProjectsPopover/types/components/SvgBorder/SvgBorder.d.ts +18 -0
  175. package/dist/ProjectsPopover/types/components/SvgBorder/index.d.ts +3 -0
  176. package/dist/ProjectsPopover/types/components/SvgBorder/utils.d.ts +1 -0
  177. package/dist/ProjectsPopover/types/components/Switch/Switch.d.ts +14 -0
  178. package/dist/ProjectsPopover/types/components/Switch/index.d.ts +2 -0
  179. package/dist/ProjectsPopover/types/components/Tabs/Tabs.d.ts +19 -0
  180. package/dist/ProjectsPopover/types/components/Tabs/index.d.ts +2 -0
  181. package/dist/ProjectsPopover/types/components/Text/Text.d.ts +14 -0
  182. package/dist/ProjectsPopover/types/components/Text/index.d.ts +2 -0
  183. package/dist/ProjectsPopover/types/components/TextAreaInput/TextAreaInput.d.ts +10 -0
  184. package/dist/ProjectsPopover/types/components/TextAreaInput/index.d.ts +2 -0
  185. package/dist/ProjectsPopover/types/components/TextInput/TextInput.d.ts +9 -0
  186. package/dist/ProjectsPopover/types/components/TextInput/index.d.ts +2 -0
  187. package/dist/ProjectsPopover/types/components/Title/Title.d.ts +9 -0
  188. package/dist/ProjectsPopover/types/components/Title/index.d.ts +2 -0
  189. package/dist/ProjectsPopover/types/components/index.d.ts +42 -0
  190. package/dist/ProjectsPopover/types/components/types.d.ts +24 -0
  191. package/dist/ProjectsPopover/types/hooks/useClientRect.d.ts +5 -0
  192. package/dist/ProjectsPopover/types/index.d.ts +2 -0
  193. package/dist/ProjectsPopover/types/utils/react.d.ts +6 -0
  194. package/dist/Select/index.cjs.js +199 -94
  195. package/dist/Select/index.cjs.js.map +1 -1
  196. package/dist/Select/index.d.ts +24 -23
  197. package/dist/Select/index.js +199 -94
  198. package/dist/Select/index.js.map +1 -1
  199. package/dist/Select/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  200. package/dist/Select/types/components/BlackTooltip/index.d.ts +2 -0
  201. package/dist/Select/types/components/Button/Button.d.ts +4 -4
  202. package/dist/Select/types/components/Menu/Menu.d.ts +11 -0
  203. package/dist/Select/types/components/Menu/index.d.ts +2 -0
  204. package/dist/Select/types/components/MenuButton/MenuButton.d.ts +7 -0
  205. package/dist/Select/types/components/MenuButton/index.d.ts +2 -0
  206. package/dist/Select/types/components/MenuItem/MenuItem.d.ts +7 -0
  207. package/dist/Select/types/components/MenuItem/index.d.ts +2 -0
  208. package/dist/Select/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  209. package/dist/Select/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  210. package/dist/Select/types/components/ProjectsPopover/index.d.ts +2 -0
  211. package/dist/Select/types/components/ProjectsPopover/mappers.d.ts +6 -0
  212. package/dist/Select/types/components/ProjectsPopover/types.d.ts +7 -0
  213. package/dist/Select/types/components/ProjectsPopover/utils.d.ts +10 -0
  214. package/dist/Select/types/components/Select/Select.d.ts +24 -23
  215. package/dist/Select/types/components/Select/types.d.ts +2 -1
  216. package/dist/Select/types/components/Snackbar/ActionButton.d.ts +6 -0
  217. package/dist/Select/types/components/Snackbar/Snackbar.d.ts +15 -0
  218. package/dist/Select/types/components/Snackbar/WithAction.d.ts +3 -0
  219. package/dist/Select/types/components/Snackbar/index.d.ts +2 -0
  220. package/dist/Select/types/components/index.d.ts +2 -0
  221. package/dist/SelectCreatable/index.cjs.js +198 -93
  222. package/dist/SelectCreatable/index.cjs.js.map +1 -1
  223. package/dist/SelectCreatable/index.js +198 -93
  224. package/dist/SelectCreatable/index.js.map +1 -1
  225. package/dist/SelectCreatable/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  226. package/dist/SelectCreatable/types/components/BlackTooltip/index.d.ts +2 -0
  227. package/dist/SelectCreatable/types/components/Button/Button.d.ts +4 -4
  228. package/dist/SelectCreatable/types/components/Menu/Menu.d.ts +11 -0
  229. package/dist/SelectCreatable/types/components/Menu/index.d.ts +2 -0
  230. package/dist/SelectCreatable/types/components/MenuButton/MenuButton.d.ts +7 -0
  231. package/dist/SelectCreatable/types/components/MenuButton/index.d.ts +2 -0
  232. package/dist/SelectCreatable/types/components/MenuItem/MenuItem.d.ts +7 -0
  233. package/dist/SelectCreatable/types/components/MenuItem/index.d.ts +2 -0
  234. package/dist/SelectCreatable/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  235. package/dist/SelectCreatable/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  236. package/dist/SelectCreatable/types/components/ProjectsPopover/index.d.ts +2 -0
  237. package/dist/SelectCreatable/types/components/ProjectsPopover/mappers.d.ts +6 -0
  238. package/dist/SelectCreatable/types/components/ProjectsPopover/types.d.ts +7 -0
  239. package/dist/SelectCreatable/types/components/ProjectsPopover/utils.d.ts +10 -0
  240. package/dist/SelectCreatable/types/components/Select/Select.d.ts +24 -23
  241. package/dist/SelectCreatable/types/components/Select/types.d.ts +2 -1
  242. package/dist/SelectCreatable/types/components/Snackbar/ActionButton.d.ts +6 -0
  243. package/dist/SelectCreatable/types/components/Snackbar/Snackbar.d.ts +15 -0
  244. package/dist/SelectCreatable/types/components/Snackbar/WithAction.d.ts +3 -0
  245. package/dist/SelectCreatable/types/components/Snackbar/index.d.ts +2 -0
  246. package/dist/SelectCreatable/types/components/index.d.ts +2 -0
  247. package/dist/Snackbar/index.cjs.js +12907 -0
  248. package/dist/Snackbar/index.cjs.js.map +1 -0
  249. package/dist/Snackbar/index.d.ts +18 -0
  250. package/dist/Snackbar/index.js +12884 -0
  251. package/dist/Snackbar/index.js.map +1 -0
  252. package/dist/Snackbar/types/components/Alert/Alert.d.ts +16 -0
  253. package/dist/Snackbar/types/components/Alert/index.d.ts +2 -0
  254. package/dist/Snackbar/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  255. package/dist/Snackbar/types/components/BlackTooltip/index.d.ts +2 -0
  256. package/dist/Snackbar/types/components/BubbleBox/BubbleBox.d.ts +17 -0
  257. package/dist/Snackbar/types/components/BubbleBox/index.d.ts +3 -0
  258. package/dist/Snackbar/types/components/BubbleBox/utils.d.ts +1 -0
  259. package/dist/Snackbar/types/components/Button/Button.d.ts +12 -0
  260. package/dist/Snackbar/types/components/Button/index.d.ts +2 -0
  261. package/dist/Snackbar/types/components/Checkbox/Checkbox.d.ts +11 -0
  262. package/dist/Snackbar/types/components/Checkbox/index.d.ts +2 -0
  263. package/dist/Snackbar/types/components/Datepicker/DatePicker.d.ts +15 -0
  264. package/dist/Snackbar/types/components/Datepicker/index.d.ts +2 -0
  265. package/dist/Snackbar/types/components/FlexBox/FlexBox.d.ts +15 -0
  266. package/dist/Snackbar/types/components/FlexBox/index.d.ts +2 -0
  267. package/dist/Snackbar/types/components/Input/Input.d.ts +15 -0
  268. package/dist/Snackbar/types/components/Input/index.d.ts +2 -0
  269. package/dist/Snackbar/types/components/InputMeta/InputMeta.d.ts +8 -0
  270. package/dist/Snackbar/types/components/InputMeta/index.d.ts +2 -0
  271. package/dist/Snackbar/types/components/LabelText/LabelText.d.ts +8 -0
  272. package/dist/Snackbar/types/components/LabelText/index.d.ts +1 -0
  273. package/dist/Snackbar/types/components/MaskInput/MaskInput.d.ts +10 -0
  274. package/dist/Snackbar/types/components/MaskInput/index.d.ts +2 -0
  275. package/dist/Snackbar/types/components/Menu/Menu.d.ts +11 -0
  276. package/dist/Snackbar/types/components/Menu/index.d.ts +2 -0
  277. package/dist/Snackbar/types/components/MenuButton/MenuButton.d.ts +7 -0
  278. package/dist/Snackbar/types/components/MenuButton/index.d.ts +2 -0
  279. package/dist/Snackbar/types/components/MenuItem/MenuItem.d.ts +7 -0
  280. package/dist/Snackbar/types/components/MenuItem/index.d.ts +2 -0
  281. package/dist/Snackbar/types/components/Pagination/Pagination.d.ts +16 -0
  282. package/dist/Snackbar/types/components/Pagination/index.d.ts +2 -0
  283. package/dist/Snackbar/types/components/Pagination/utils.d.ts +1 -0
  284. package/dist/Snackbar/types/components/Paragraph/Paragraph.d.ts +9 -0
  285. package/dist/Snackbar/types/components/Paragraph/index.d.ts +2 -0
  286. package/dist/Snackbar/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  287. package/dist/Snackbar/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  288. package/dist/Snackbar/types/components/ProjectsPopover/index.d.ts +2 -0
  289. package/dist/Snackbar/types/components/ProjectsPopover/mappers.d.ts +6 -0
  290. package/dist/Snackbar/types/components/ProjectsPopover/types.d.ts +7 -0
  291. package/dist/Snackbar/types/components/ProjectsPopover/utils.d.ts +10 -0
  292. package/dist/Snackbar/types/components/PulseDot/PulseDot.d.ts +22 -0
  293. package/dist/Snackbar/types/components/PulseDot/index.d.ts +2 -0
  294. package/dist/Snackbar/types/components/Select/Label.d.ts +7 -0
  295. package/dist/Snackbar/types/components/Select/Select.d.ts +40 -0
  296. package/dist/Snackbar/types/components/Select/SelectCreatable.d.ts +14 -0
  297. package/dist/Snackbar/types/components/Select/customComponents.d.ts +11 -0
  298. package/dist/Snackbar/types/components/Select/defaultProps.d.ts +6 -0
  299. package/dist/Snackbar/types/components/Select/index.d.ts +5 -0
  300. package/dist/Snackbar/types/components/Select/types.d.ts +9 -0
  301. package/dist/Snackbar/types/components/Snackbar/ActionButton.d.ts +6 -0
  302. package/dist/Snackbar/types/components/Snackbar/Snackbar.d.ts +15 -0
  303. package/dist/Snackbar/types/components/Snackbar/WithAction.d.ts +3 -0
  304. package/dist/Snackbar/types/components/Snackbar/index.d.ts +2 -0
  305. package/dist/Snackbar/types/components/Spinner/Spinner.d.ts +18 -0
  306. package/dist/Snackbar/types/components/Spinner/index.d.ts +2 -0
  307. package/dist/Snackbar/types/components/SplashLogo/SplashLogo.d.ts +12 -0
  308. package/dist/Snackbar/types/components/SplashLogo/dataUrls.d.ts +6 -0
  309. package/dist/Snackbar/types/components/SplashLogo/index.d.ts +2 -0
  310. package/dist/Snackbar/types/components/SvgBorder/SvgBorder.d.ts +18 -0
  311. package/dist/Snackbar/types/components/SvgBorder/index.d.ts +3 -0
  312. package/dist/Snackbar/types/components/SvgBorder/utils.d.ts +1 -0
  313. package/dist/Snackbar/types/components/Switch/Switch.d.ts +14 -0
  314. package/dist/Snackbar/types/components/Switch/index.d.ts +2 -0
  315. package/dist/Snackbar/types/components/Tabs/Tabs.d.ts +19 -0
  316. package/dist/Snackbar/types/components/Tabs/index.d.ts +2 -0
  317. package/dist/Snackbar/types/components/Text/Text.d.ts +14 -0
  318. package/dist/Snackbar/types/components/Text/index.d.ts +2 -0
  319. package/dist/Snackbar/types/components/TextAreaInput/TextAreaInput.d.ts +10 -0
  320. package/dist/Snackbar/types/components/TextAreaInput/index.d.ts +2 -0
  321. package/dist/Snackbar/types/components/TextInput/TextInput.d.ts +9 -0
  322. package/dist/Snackbar/types/components/TextInput/index.d.ts +2 -0
  323. package/dist/Snackbar/types/components/Title/Title.d.ts +9 -0
  324. package/dist/Snackbar/types/components/Title/index.d.ts +2 -0
  325. package/dist/Snackbar/types/components/index.d.ts +42 -0
  326. package/dist/Snackbar/types/components/types.d.ts +24 -0
  327. package/dist/Snackbar/types/hooks/useClientRect.d.ts +5 -0
  328. package/dist/Snackbar/types/index.d.ts +2 -0
  329. package/dist/Snackbar/types/utils/react.d.ts +6 -0
  330. package/dist/css/_theme.css +53 -0
  331. package/dist/index.d.ts +10 -2
  332. package/dist/index.js +12461 -373
  333. package/dist/index.js.map +1 -1
  334. package/dist/types/components/BlackTooltip/BlackTooltip.d.ts +5 -0
  335. package/dist/types/components/BlackTooltip/index.d.ts +2 -0
  336. package/dist/types/components/Button/Button.d.ts +4 -4
  337. package/dist/types/components/Menu/Menu.d.ts +11 -0
  338. package/dist/types/components/Menu/index.d.ts +2 -0
  339. package/dist/types/components/MenuButton/MenuButton.d.ts +7 -0
  340. package/dist/types/components/MenuButton/index.d.ts +2 -0
  341. package/dist/types/components/MenuItem/MenuItem.d.ts +7 -0
  342. package/dist/types/components/MenuItem/index.d.ts +2 -0
  343. package/dist/types/components/ProjectsPopover/ProductLink.d.ts +12 -0
  344. package/dist/types/components/ProjectsPopover/ProjectsPopover.d.ts +13 -0
  345. package/dist/types/components/ProjectsPopover/index.d.ts +2 -0
  346. package/dist/types/components/ProjectsPopover/mappers.d.ts +6 -0
  347. package/dist/types/components/ProjectsPopover/types.d.ts +7 -0
  348. package/dist/types/components/ProjectsPopover/utils.d.ts +10 -0
  349. package/dist/types/components/Select/Select.d.ts +24 -23
  350. package/dist/types/components/Select/types.d.ts +2 -1
  351. package/dist/types/components/Snackbar/ActionButton.d.ts +6 -0
  352. package/dist/types/components/Snackbar/Snackbar.d.ts +15 -0
  353. package/dist/types/components/Snackbar/WithAction.d.ts +3 -0
  354. package/dist/types/components/Snackbar/index.d.ts +2 -0
  355. package/dist/types/components/index.d.ts +2 -0
  356. package/package.json +59 -37
@@ -92,24 +92,24 @@ function _typeof(o) {
92
92
  }, _typeof(o);
93
93
  }
94
94
 
95
- function _toPrimitive(input, hint) {
96
- if (_typeof(input) !== "object" || input === null) return input;
97
- var prim = input[Symbol.toPrimitive];
98
- if (prim !== undefined) {
99
- var res = prim.call(input, hint || "default");
100
- if (_typeof(res) !== "object") return res;
95
+ function toPrimitive(t, r) {
96
+ if ("object" != _typeof(t) || !t) return t;
97
+ var e = t[Symbol.toPrimitive];
98
+ if (void 0 !== e) {
99
+ var i = e.call(t, r || "default");
100
+ if ("object" != _typeof(i)) return i;
101
101
  throw new TypeError("@@toPrimitive must return a primitive value.");
102
102
  }
103
- return (hint === "string" ? String : Number)(input);
103
+ return ("string" === r ? String : Number)(t);
104
104
  }
105
105
 
106
- function _toPropertyKey(arg) {
107
- var key = _toPrimitive(arg, "string");
108
- return _typeof(key) === "symbol" ? key : String(key);
106
+ function toPropertyKey(t) {
107
+ var i = toPrimitive(t, "string");
108
+ return "symbol" == _typeof(i) ? i : i + "";
109
109
  }
110
110
 
111
111
  function _defineProperty(obj, key, value) {
112
- key = _toPropertyKey(key);
112
+ key = toPropertyKey(key);
113
113
  if (key in obj) {
114
114
  Object.defineProperty(obj, key, {
115
115
  value: value,
@@ -157,7 +157,7 @@ function _defineProperties(target, props) {
157
157
  descriptor.enumerable = descriptor.enumerable || false;
158
158
  descriptor.configurable = true;
159
159
  if ("value" in descriptor) descriptor.writable = true;
160
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
160
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
161
161
  }
162
162
  }
163
163
  function _createClass(Constructor, protoProps, staticProps) {
@@ -202,15 +202,12 @@ function _getPrototypeOf(o) {
202
202
  }
203
203
 
204
204
  function _isNativeReflectConstruct() {
205
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
206
- if (Reflect.construct.sham) return false;
207
- if (typeof Proxy === "function") return true;
208
205
  try {
209
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
210
- return true;
211
- } catch (e) {
212
- return false;
213
- }
206
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
207
+ } catch (t) {}
208
+ return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
209
+ return !!t;
210
+ })();
214
211
  }
215
212
 
216
213
  function _assertThisInitialized(self) {
@@ -3116,12 +3113,11 @@ function _slicedToArray(arr, i) {
3116
3113
  function _objectWithoutPropertiesLoose(source, excluded) {
3117
3114
  if (source == null) return {};
3118
3115
  var target = {};
3119
- var sourceKeys = Object.keys(source);
3120
- var key, i;
3121
- for (i = 0; i < sourceKeys.length; i++) {
3122
- key = sourceKeys[i];
3123
- if (excluded.indexOf(key) >= 0) continue;
3124
- target[key] = source[key];
3116
+ for (var key in source) {
3117
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
3118
+ if (excluded.indexOf(key) >= 0) continue;
3119
+ target[key] = source[key];
3120
+ }
3125
3121
  }
3126
3122
  return target;
3127
3123
  }
@@ -4557,7 +4553,9 @@ var Control$1 = function Control(props) {
4557
4553
  'control--is-disabled': isDisabled,
4558
4554
  'control--is-focused': isFocused,
4559
4555
  'control--menu-is-open': menuIsOpen
4560
- }), innerProps), children);
4556
+ }), innerProps, {
4557
+ "aria-disabled": isDisabled || undefined
4558
+ }), children);
4561
4559
  };
4562
4560
  var Control$1$1 = Control$1;
4563
4561
 
@@ -4993,14 +4991,14 @@ var defaultAriaLiveMessages = {
4993
4991
  guidance: function guidance(props) {
4994
4992
  var isSearchable = props.isSearchable,
4995
4993
  isMulti = props.isMulti,
4996
- isDisabled = props.isDisabled,
4997
4994
  tabSelectsValue = props.tabSelectsValue,
4998
- context = props.context;
4995
+ context = props.context,
4996
+ isInitialFocus = props.isInitialFocus;
4999
4997
  switch (context) {
5000
4998
  case 'menu':
5001
- return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu").concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
4999
+ return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
5002
5000
  case 'input':
5003
- return "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
5001
+ return isInitialFocus ? "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '') : '';
5004
5002
  case 'value':
5005
5003
  return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
5006
5004
  default:
@@ -5036,17 +5034,18 @@ var defaultAriaLiveMessages = {
5036
5034
  label = _props$label2 === void 0 ? '' : _props$label2,
5037
5035
  selectValue = props.selectValue,
5038
5036
  isDisabled = props.isDisabled,
5039
- isSelected = props.isSelected;
5037
+ isSelected = props.isSelected,
5038
+ isAppleDevice = props.isAppleDevice;
5040
5039
  var getArrayIndex = function getArrayIndex(arr, item) {
5041
5040
  return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : '';
5042
5041
  };
5043
5042
  if (context === 'value' && selectValue) {
5044
5043
  return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), ".");
5045
5044
  }
5046
- if (context === 'menu') {
5045
+ if (context === 'menu' && isAppleDevice) {
5047
5046
  var disabled = isDisabled ? ' disabled' : '';
5048
- var status = "".concat(isSelected ? 'selected' : 'focused').concat(disabled);
5049
- return "option ".concat(label, " ").concat(status, ", ").concat(getArrayIndex(options, focused), ".");
5047
+ var status = "".concat(isSelected ? ' selected' : '').concat(disabled);
5048
+ return "".concat(label).concat(status, ", ").concat(getArrayIndex(options, focused), ".");
5050
5049
  }
5051
5050
  return '';
5052
5051
  },
@@ -5065,7 +5064,8 @@ var LiveRegion = function LiveRegion(props) {
5065
5064
  isFocused = props.isFocused,
5066
5065
  selectValue = props.selectValue,
5067
5066
  selectProps = props.selectProps,
5068
- id = props.id;
5067
+ id = props.id,
5068
+ isAppleDevice = props.isAppleDevice;
5069
5069
  var ariaLiveMessages = selectProps.ariaLiveMessages,
5070
5070
  getOptionLabel = selectProps.getOptionLabel,
5071
5071
  inputValue = selectProps.inputValue,
@@ -5075,7 +5075,8 @@ var LiveRegion = function LiveRegion(props) {
5075
5075
  menuIsOpen = selectProps.menuIsOpen,
5076
5076
  options = selectProps.options,
5077
5077
  screenReaderStatus = selectProps.screenReaderStatus,
5078
- tabSelectsValue = selectProps.tabSelectsValue;
5078
+ tabSelectsValue = selectProps.tabSelectsValue,
5079
+ isLoading = selectProps.isLoading;
5079
5080
  var ariaLabel = selectProps['aria-label'];
5080
5081
  var ariaLive = selectProps['aria-live'];
5081
5082
 
@@ -5128,15 +5129,16 @@ var LiveRegion = function LiveRegion(props) {
5128
5129
  isSelected: isSelected,
5129
5130
  options: focusableOptions,
5130
5131
  context: focused === focusedOption ? 'menu' : 'value',
5131
- selectValue: selectValue
5132
+ selectValue: selectValue,
5133
+ isAppleDevice: isAppleDevice
5132
5134
  };
5133
5135
  focusMsg = messages.onFocus(onFocusProps);
5134
5136
  }
5135
5137
  return focusMsg;
5136
- }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue]);
5138
+ }, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue, isAppleDevice]);
5137
5139
  var ariaResults = React.useMemo(function () {
5138
5140
  var resultsMsg = '';
5139
- if (menuIsOpen && options.length && messages.onFilter) {
5141
+ if (menuIsOpen && options.length && !isLoading && messages.onFilter) {
5140
5142
  var resultsMessage = screenReaderStatus({
5141
5143
  count: focusableOptions.length
5142
5144
  });
@@ -5146,7 +5148,8 @@ var LiveRegion = function LiveRegion(props) {
5146
5148
  });
5147
5149
  }
5148
5150
  return resultsMsg;
5149
- }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]);
5151
+ }, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus, isLoading]);
5152
+ var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
5150
5153
  var ariaGuidance = React.useMemo(function () {
5151
5154
  var guidanceMsg = '';
5152
5155
  if (messages.guidance) {
@@ -5157,24 +5160,28 @@ var LiveRegion = function LiveRegion(props) {
5157
5160
  isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue),
5158
5161
  isMulti: isMulti,
5159
5162
  isSearchable: isSearchable,
5160
- tabSelectsValue: tabSelectsValue
5163
+ tabSelectsValue: tabSelectsValue,
5164
+ isInitialFocus: isInitialFocus
5161
5165
  });
5162
5166
  }
5163
5167
  return guidanceMsg;
5164
- }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]);
5165
- var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance);
5168
+ }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
5166
5169
  var ScreenReaderText = jsx(React.Fragment, null, jsx("span", {
5167
5170
  id: "aria-selection"
5168
5171
  }, ariaSelected), jsx("span", {
5169
- id: "aria-context"
5170
- }, ariaContext));
5171
- var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
5172
+ id: "aria-focused"
5173
+ }, ariaFocused), jsx("span", {
5174
+ id: "aria-results"
5175
+ }, ariaResults), jsx("span", {
5176
+ id: "aria-guidance"
5177
+ }, ariaGuidance));
5172
5178
  return jsx(React.Fragment, null, jsx(A11yText$1, {
5173
5179
  id: id
5174
5180
  }, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
5175
5181
  "aria-live": ariaLive,
5176
5182
  "aria-atomic": "false",
5177
- "aria-relevant": "additions text"
5183
+ "aria-relevant": "additions text",
5184
+ role: "log"
5178
5185
  }, isFocused && !isInitialFocus && ScreenReaderText));
5179
5186
  };
5180
5187
  var LiveRegion$1 = LiveRegion;
@@ -5519,7 +5526,7 @@ function DummyInput(_ref) {
5519
5526
  }
5520
5527
 
5521
5528
  var cancelScroll = function cancelScroll(event) {
5522
- event.preventDefault();
5529
+ if (event.cancelable) event.preventDefault();
5523
5530
  event.stopPropagation();
5524
5531
  };
5525
5532
  function useScrollCapture(_ref) {
@@ -5814,6 +5821,30 @@ var RequiredInput = function RequiredInput(_ref) {
5814
5821
  };
5815
5822
  var RequiredInput$1 = RequiredInput;
5816
5823
 
5824
+ /// <reference types="user-agent-data-types" />
5825
+
5826
+ function testPlatform(re) {
5827
+ var _window$navigator$use;
5828
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window$navigator$use = window.navigator['userAgentData']) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.platform) || window.navigator.platform) : false;
5829
+ }
5830
+ function isIPhone() {
5831
+ return testPlatform(/^iPhone/i);
5832
+ }
5833
+ function isMac() {
5834
+ return testPlatform(/^Mac/i);
5835
+ }
5836
+ function isIPad() {
5837
+ return testPlatform(/^iPad/i) ||
5838
+ // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
5839
+ isMac() && navigator.maxTouchPoints > 1;
5840
+ }
5841
+ function isIOS() {
5842
+ return isIPhone() || isIPad();
5843
+ }
5844
+ function isAppleDevice() {
5845
+ return isMac() || isIOS();
5846
+ }
5847
+
5817
5848
  var formatGroupLabel = function formatGroupLabel(group) {
5818
5849
  return group.label;
5819
5850
  };
@@ -5983,6 +6014,24 @@ function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {
5983
6014
  return optionsAccumulator;
5984
6015
  }, []);
5985
6016
  }
6017
+ function buildFocusableOptionsWithIds(categorizedOptions, optionId) {
6018
+ return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {
6019
+ if (categorizedOption.type === 'group') {
6020
+ optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {
6021
+ return {
6022
+ data: option.data,
6023
+ id: "".concat(optionId, "-").concat(categorizedOption.index, "-").concat(option.index)
6024
+ };
6025
+ })));
6026
+ } else {
6027
+ optionsAccumulator.push({
6028
+ data: categorizedOption.data,
6029
+ id: "".concat(optionId, "-").concat(categorizedOption.index)
6030
+ });
6031
+ }
6032
+ return optionsAccumulator;
6033
+ }, []);
6034
+ }
5986
6035
  function buildFocusableOptions(props, selectValue) {
5987
6036
  return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue));
5988
6037
  }
@@ -6020,6 +6069,13 @@ function getNextFocusedOption(state, options) {
6020
6069
  var lastFocusedOption = state.focusedOption;
6021
6070
  return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
6022
6071
  }
6072
+ var getFocusedOptionId = function getFocusedOptionId(focusableOptionsWithIds, focusedOption) {
6073
+ var _focusableOptionsWith;
6074
+ var focusedOptionId = (_focusableOptionsWith = focusableOptionsWithIds.find(function (option) {
6075
+ return option.data === focusedOption;
6076
+ })) === null || _focusableOptionsWith === void 0 ? void 0 : _focusableOptionsWith.id;
6077
+ return focusedOptionId || null;
6078
+ };
6023
6079
  var getOptionLabel = function getOptionLabel(props, data) {
6024
6080
  return props.getOptionLabel(data);
6025
6081
  };
@@ -6070,6 +6126,8 @@ var Select = /*#__PURE__*/function (_Component) {
6070
6126
  _this.state = {
6071
6127
  ariaSelection: null,
6072
6128
  focusedOption: null,
6129
+ focusedOptionId: null,
6130
+ focusableOptionsWithIds: [],
6073
6131
  focusedValue: null,
6074
6132
  inputIsHidden: false,
6075
6133
  isFocused: false,
@@ -6077,17 +6135,18 @@ var Select = /*#__PURE__*/function (_Component) {
6077
6135
  clearFocusValueOnUpdate: false,
6078
6136
  prevWasFocused: false,
6079
6137
  inputIsHiddenAfterUpdate: undefined,
6080
- prevProps: undefined
6138
+ prevProps: undefined,
6139
+ instancePrefix: ''
6081
6140
  };
6082
6141
  _this.blockOptionHover = false;
6083
6142
  _this.isComposing = false;
6084
6143
  _this.commonProps = void 0;
6085
6144
  _this.initialTouchX = 0;
6086
6145
  _this.initialTouchY = 0;
6087
- _this.instancePrefix = '';
6088
6146
  _this.openAfterFocus = false;
6089
6147
  _this.scrollToFocusedOptionOnUpdate = false;
6090
6148
  _this.userIsDragging = void 0;
6149
+ _this.isAppleDevice = isAppleDevice();
6091
6150
  _this.controlRef = null;
6092
6151
  _this.getControlRef = function (ref) {
6093
6152
  _this.controlRef = ref;
@@ -6202,6 +6261,12 @@ var Select = /*#__PURE__*/function (_Component) {
6202
6261
  removedValue: lastSelectedValue
6203
6262
  });
6204
6263
  };
6264
+ _this.getFocusedOptionId = function (focusedOption) {
6265
+ return getFocusedOptionId(_this.state.focusableOptionsWithIds, focusedOption);
6266
+ };
6267
+ _this.getFocusableOptionsWithIds = function () {
6268
+ return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props, _this.state.selectValue), _this.getElementId('option'));
6269
+ };
6205
6270
  _this.getValue = function () {
6206
6271
  return _this.state.selectValue;
6207
6272
  };
@@ -6229,7 +6294,7 @@ var Select = /*#__PURE__*/function (_Component) {
6229
6294
  return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props);
6230
6295
  };
6231
6296
  _this.getElementId = function (element) {
6232
- return "".concat(_this.instancePrefix, "-").concat(element);
6297
+ return "".concat(_this.state.instancePrefix, "-").concat(element);
6233
6298
  };
6234
6299
  _this.getComponents = function () {
6235
6300
  return defaultComponents(_this.props);
@@ -6438,8 +6503,11 @@ var Select = /*#__PURE__*/function (_Component) {
6438
6503
  if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
6439
6504
  return;
6440
6505
  }
6506
+ var options = _this.getFocusableOptions();
6507
+ var focusedOptionIndex = options.indexOf(focusedOption);
6441
6508
  _this.setState({
6442
- focusedOption: focusedOption
6509
+ focusedOption: focusedOption,
6510
+ focusedOptionId: focusedOptionIndex > -1 ? _this.getFocusedOptionId(focusedOption) : null
6443
6511
  });
6444
6512
  };
6445
6513
  _this.shouldHideSelectedOptions = function () {
@@ -6583,14 +6651,16 @@ var Select = /*#__PURE__*/function (_Component) {
6583
6651
  }
6584
6652
  event.preventDefault();
6585
6653
  };
6586
- _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
6654
+ _this.state.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
6587
6655
  _this.state.selectValue = cleanValue(_props.value);
6588
-
6589
6656
  // Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen)
6590
6657
  if (_props.menuIsOpen && _this.state.selectValue.length) {
6658
+ var focusableOptionsWithIds = _this.getFocusableOptionsWithIds();
6591
6659
  var focusableOptions = _this.buildFocusableOptions();
6592
6660
  var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]);
6661
+ _this.state.focusableOptionsWithIds = focusableOptionsWithIds;
6593
6662
  _this.state.focusedOption = focusableOptions[optionIndex];
6663
+ _this.state.focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusableOptions[optionIndex]);
6594
6664
  }
6595
6665
  return _this;
6596
6666
  }
@@ -6715,7 +6785,8 @@ var Select = /*#__PURE__*/function (_Component) {
6715
6785
  this.setState({
6716
6786
  inputIsHiddenAfterUpdate: false,
6717
6787
  focusedValue: null,
6718
- focusedOption: focusableOptions[openAtIndex]
6788
+ focusedOption: focusableOptions[openAtIndex],
6789
+ focusedOptionId: this.getFocusedOptionId(focusableOptions[openAtIndex])
6719
6790
  }, function () {
6720
6791
  return _this2.onMenuOpen();
6721
6792
  });
@@ -6791,7 +6862,8 @@ var Select = /*#__PURE__*/function (_Component) {
6791
6862
  this.scrollToFocusedOptionOnUpdate = true;
6792
6863
  this.setState({
6793
6864
  focusedOption: options[nextFocus],
6794
- focusedValue: null
6865
+ focusedValue: null,
6866
+ focusedOptionId: this.getFocusedOptionId(options[nextFocus])
6795
6867
  });
6796
6868
  }
6797
6869
  }, {
@@ -6987,10 +7059,10 @@ var Select = /*#__PURE__*/function (_Component) {
6987
7059
  'aria-label': this.props['aria-label'],
6988
7060
  'aria-labelledby': this.props['aria-labelledby'],
6989
7061
  'aria-required': required,
6990
- role: 'combobox'
7062
+ role: 'combobox',
7063
+ 'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
6991
7064
  }, menuIsOpen && {
6992
- 'aria-controls': this.getElementId('listbox'),
6993
- 'aria-owns': this.getElementId('listbox')
7065
+ 'aria-controls': this.getElementId('listbox')
6994
7066
  }), !isSearchable && {
6995
7067
  'aria-readonly': true
6996
7068
  }), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && {
@@ -7235,8 +7307,11 @@ var Select = /*#__PURE__*/function (_Component) {
7235
7307
  onClick: onSelect,
7236
7308
  onMouseMove: onHover,
7237
7309
  onMouseOver: onHover,
7238
- tabIndex: -1
7310
+ tabIndex: -1,
7311
+ role: 'option',
7312
+ 'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
7239
7313
  };
7314
+
7240
7315
  return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
7241
7316
  innerProps: innerProps,
7242
7317
  data: data,
@@ -7305,8 +7380,7 @@ var Select = /*#__PURE__*/function (_Component) {
7305
7380
  innerRef: ref,
7306
7381
  innerProps: {
7307
7382
  onMouseDown: _this4.onMenuMouseDown,
7308
- onMouseMove: _this4.onMenuMouseMove,
7309
- id: _this4.getElementId('listbox')
7383
+ onMouseMove: _this4.onMenuMouseMove
7310
7384
  },
7311
7385
  isLoading: isLoading,
7312
7386
  placement: placement
@@ -7321,6 +7395,11 @@ var Select = /*#__PURE__*/function (_Component) {
7321
7395
  _this4.getMenuListRef(instance);
7322
7396
  scrollTargetRef(instance);
7323
7397
  },
7398
+ innerProps: {
7399
+ role: 'listbox',
7400
+ 'aria-multiselectable': commonProps.isMulti,
7401
+ id: _this4.getElementId('listbox')
7402
+ },
7324
7403
  isLoading: isLoading,
7325
7404
  maxHeight: maxHeight,
7326
7405
  focusedOption: focusedOption
@@ -7408,7 +7487,8 @@ var Select = /*#__PURE__*/function (_Component) {
7408
7487
  focusedValue: focusedValue,
7409
7488
  isFocused: isFocused,
7410
7489
  selectValue: selectValue,
7411
- focusableOptions: focusableOptions
7490
+ focusableOptions: focusableOptions,
7491
+ isAppleDevice: this.isAppleDevice
7412
7492
  }));
7413
7493
  }
7414
7494
  }, {
@@ -7457,7 +7537,8 @@ var Select = /*#__PURE__*/function (_Component) {
7457
7537
  inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate,
7458
7538
  ariaSelection = state.ariaSelection,
7459
7539
  isFocused = state.isFocused,
7460
- prevWasFocused = state.prevWasFocused;
7540
+ prevWasFocused = state.prevWasFocused,
7541
+ instancePrefix = state.instancePrefix;
7461
7542
  var options = props.options,
7462
7543
  value = props.value,
7463
7544
  menuIsOpen = props.menuIsOpen,
@@ -7467,11 +7548,15 @@ var Select = /*#__PURE__*/function (_Component) {
7467
7548
  var newMenuOptionsState = {};
7468
7549
  if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) {
7469
7550
  var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : [];
7551
+ var focusableOptionsWithIds = menuIsOpen ? buildFocusableOptionsWithIds(buildCategorizedOptions(props, selectValue), "".concat(instancePrefix, "-option")) : [];
7470
7552
  var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null;
7471
7553
  var focusedOption = getNextFocusedOption(state, focusableOptions);
7554
+ var focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusedOption);
7472
7555
  newMenuOptionsState = {
7473
7556
  selectValue: selectValue,
7474
7557
  focusedOption: focusedOption,
7558
+ focusedOptionId: focusedOptionId,
7559
+ focusableOptionsWithIds: focusableOptionsWithIds,
7475
7560
  focusedValue: focusedValue,
7476
7561
  clearFocusValueOnUpdate: false
7477
7562
  };
@@ -7689,39 +7774,57 @@ var classnames = {exports: {}};
7689
7774
 
7690
7775
  var hasOwn = {}.hasOwnProperty;
7691
7776
 
7692
- function classNames() {
7693
- var classes = [];
7777
+ function classNames () {
7778
+ var classes = '';
7694
7779
 
7695
7780
  for (var i = 0; i < arguments.length; i++) {
7696
7781
  var arg = arguments[i];
7697
- if (!arg) continue;
7698
-
7699
- var argType = typeof arg;
7700
-
7701
- if (argType === 'string' || argType === 'number') {
7702
- classes.push(arg);
7703
- } else if (Array.isArray(arg)) {
7704
- if (arg.length) {
7705
- var inner = classNames.apply(null, arg);
7706
- if (inner) {
7707
- classes.push(inner);
7708
- }
7709
- }
7710
- } else if (argType === 'object') {
7711
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
7712
- classes.push(arg.toString());
7713
- continue;
7714
- }
7715
-
7716
- for (var key in arg) {
7717
- if (hasOwn.call(arg, key) && arg[key]) {
7718
- classes.push(key);
7719
- }
7720
- }
7782
+ if (arg) {
7783
+ classes = appendClass(classes, parseValue(arg));
7721
7784
  }
7722
7785
  }
7723
7786
 
7724
- return classes.join(' ');
7787
+ return classes;
7788
+ }
7789
+
7790
+ function parseValue (arg) {
7791
+ if (typeof arg === 'string' || typeof arg === 'number') {
7792
+ return arg;
7793
+ }
7794
+
7795
+ if (typeof arg !== 'object') {
7796
+ return '';
7797
+ }
7798
+
7799
+ if (Array.isArray(arg)) {
7800
+ return classNames.apply(null, arg);
7801
+ }
7802
+
7803
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
7804
+ return arg.toString();
7805
+ }
7806
+
7807
+ var classes = '';
7808
+
7809
+ for (var key in arg) {
7810
+ if (hasOwn.call(arg, key) && arg[key]) {
7811
+ classes = appendClass(classes, key);
7812
+ }
7813
+ }
7814
+
7815
+ return classes;
7816
+ }
7817
+
7818
+ function appendClass (value, newClass) {
7819
+ if (!newClass) {
7820
+ return value;
7821
+ }
7822
+
7823
+ if (value) {
7824
+ return value + ' ' + newClass;
7825
+ }
7826
+
7827
+ return value + newClass;
7725
7828
  }
7726
7829
 
7727
7830
  if (module.exports) {
@@ -7829,7 +7932,9 @@ var css_248z = ".vchasno-ui-select {\n display: inline-flex;\n flex-direct
7829
7932
  styleInject(css_248z);
7830
7933
 
7831
7934
  var SelectCreatable = function (_a) {
7832
- var className = _a.className, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, isDisabled = _a.isDisabled, _b = _a.menuPlacement, menuPlacement = _b === void 0 ? 'auto' : _b, _c = _a.noOptionsMessage, noOptionsMessage = _c === void 0 ? defaultProps.noOptionsMessageDefault : _c, _d = _a.loadingMessage, loadingMessage = _d === void 0 ? defaultProps.loadingMessageDefault : _d, _e = _a.placeholder, placeholder = _e === void 0 ? '' : _e, _f = _a.components, components = _f === void 0 ? {} : _f, isClearable = _a.isClearable, dataQa = _a.dataQa, labelProps = _a.labelProps, error = _a.error, rest = __rest(_a, ["className", "label", "hint", "wide", "required", "loading", "isDisabled", "menuPlacement", "noOptionsMessage", "loadingMessage", "placeholder", "components", "isClearable", "dataQa", "labelProps", "error"]);
7935
+ var className = _a.className, label = _a.label, hint = _a.hint, wide = _a.wide, required = _a.required, loading = _a.loading, isDisabled = _a.isDisabled, _b = _a.menuPlacement, menuPlacement = _b === void 0 ? 'auto' : _b, _c = _a.noOptionsMessage, noOptionsMessage = _c === void 0 ? defaultProps.noOptionsMessageDefault : _c, _d = _a.loadingMessage, loadingMessage = _d === void 0 ? defaultProps.loadingMessageDefault : _d, _e = _a.placeholder, placeholder = _e === void 0 ? ' ' : _e, //need "space" for correct label working
7936
+ _f = _a.components, //need "space" for correct label working
7937
+ components = _f === void 0 ? {} : _f, isClearable = _a.isClearable, dataQa = _a.dataQa, labelProps = _a.labelProps, error = _a.error, rest = __rest(_a, ["className", "label", "hint", "wide", "required", "loading", "isDisabled", "menuPlacement", "noOptionsMessage", "loadingMessage", "placeholder", "components", "isClearable", "dataQa", "labelProps", "error"]);
7833
7938
  return (React.createElement("label", __assign({}, labelProps, { "data-qa": dataQa, className: cn('vchasno-ui-select', {
7834
7939
  '--required': required,
7835
7940
  '--disabled': isDisabled,