@popsure/dirty-swan 0.62.3 → 0.63.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 (1397) hide show
  1. package/dist/bin/util/index.js +1 -1
  2. package/dist/cjs/index.d.ts +2 -2
  3. package/dist/cjs/index.js +10132 -12565
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/lib/components/accordion/index.d.ts +1 -2
  6. package/dist/cjs/lib/components/accordion/index.stories.d.ts +3 -7
  7. package/dist/cjs/lib/components/autocompleteAddress/index.d.ts +2 -3
  8. package/dist/cjs/lib/components/autocompleteAddress/index.stories.d.ts +6 -12
  9. package/dist/cjs/lib/components/autocompleteAddress/util/index.d.ts +1 -1
  10. package/dist/cjs/lib/components/badge/index.d.ts +3 -4
  11. package/dist/cjs/lib/components/badge/index.stories.d.ts +3 -9
  12. package/dist/cjs/lib/components/button/index.d.ts +9 -13
  13. package/dist/cjs/lib/components/button/index.stories.d.ts +63 -0
  14. package/dist/cjs/lib/components/cards/card/index.d.ts +2 -6
  15. package/dist/cjs/lib/components/cards/card/index.stories.d.ts +6 -16
  16. package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +2 -2
  17. package/dist/cjs/lib/components/cards/infoCard/index.d.ts +7 -9
  18. package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +18 -24
  19. package/dist/cjs/lib/components/chip/index.stories.d.ts +2 -2
  20. package/dist/cjs/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +4 -1
  21. package/dist/cjs/lib/components/comparisonTable/index.stories.d.ts +2 -2
  22. package/dist/cjs/lib/components/dateSelector/index.d.ts +1 -1
  23. package/dist/cjs/lib/components/dateSelector/index.stories.d.ts +3 -5
  24. package/dist/cjs/lib/components/downloadButton/index.stories.d.ts +3 -5
  25. package/dist/cjs/lib/components/icon/icons/index.d.ts +0 -26
  26. package/dist/cjs/lib/components/icon/index.stories.d.ts +4 -4
  27. package/dist/cjs/lib/components/informationBox/index.stories.d.ts +2 -2
  28. package/dist/cjs/lib/components/input/autoSuggestInput/index.stories.d.ts +2 -2
  29. package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +2 -2
  30. package/dist/cjs/lib/components/input/checkbox/index.d.ts +1 -2
  31. package/dist/cjs/lib/components/input/checkbox/index.stories.d.ts +8 -22
  32. package/dist/cjs/lib/components/input/currency/input.stories.d.ts +2 -3
  33. package/dist/cjs/lib/components/input/input.stories.d.ts +2 -3
  34. package/dist/cjs/lib/components/input/radio/index.d.ts +1 -3
  35. package/dist/cjs/lib/components/input/radio/index.stories.d.ts +10 -32
  36. package/dist/cjs/lib/components/input/stories/config.d.ts +0 -1
  37. package/dist/cjs/lib/components/input/toggle/index.stories.d.ts +7 -17
  38. package/dist/cjs/lib/components/link/index.stories.d.ts +2 -2
  39. package/dist/cjs/lib/components/modal/bottomModal/index.d.ts +1 -1
  40. package/dist/cjs/lib/components/modal/genericModal/index.d.ts +15 -17
  41. package/dist/cjs/lib/components/modal/hooks/useOnClose.d.ts +1 -1
  42. package/dist/cjs/lib/components/modal/index.d.ts +1 -6
  43. package/dist/cjs/lib/components/modal/index.stories.d.ts +9 -49
  44. package/dist/cjs/lib/components/modal/regularModal/index.d.ts +1 -1
  45. package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +2 -11
  46. package/dist/cjs/lib/components/multiDropzone/types.d.ts +2 -3
  47. package/dist/cjs/lib/components/multiDropzone/utils/index.d.ts +2 -9
  48. package/dist/cjs/lib/components/segmentedControl/index.stories.d.ts +3 -5
  49. package/dist/cjs/lib/components/signaturePad/index.stories.d.ts +2 -2
  50. package/dist/cjs/lib/components/spinner/index.stories.d.ts +2 -2
  51. package/dist/cjs/lib/components/table/Table.d.ts +3 -10
  52. package/dist/cjs/lib/components/table/Table.stories.d.ts +4 -15
  53. package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +3 -5
  54. package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +3 -3
  55. package/dist/cjs/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +2 -2
  56. package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +2 -4
  57. package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +3 -3
  58. package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -6
  59. package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +3 -3
  60. package/dist/cjs/lib/components/table/components/TableCell/TableCell.d.ts +1 -3
  61. package/dist/cjs/lib/components/table/components/TableContents/Collapsible.d.ts +2 -1
  62. package/dist/cjs/lib/components/table/components/TableContents/TableContents.d.ts +1 -4
  63. package/dist/cjs/lib/components/table/components/TableSection/TableSection.d.ts +3 -4
  64. package/dist/cjs/lib/components/table/types.d.ts +4 -13
  65. package/dist/cjs/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +0 -1
  66. package/dist/cjs/lib/components/toast/index.stories.d.ts +4 -8
  67. package/dist/cjs/lib/index.d.ts +4 -16
  68. package/dist/cjs/lib/models/styles.d.ts +2 -2
  69. package/dist/cjs/lib/util/calendarDate/index.d.ts +1 -1
  70. package/dist/cjs/{mapStyle-Cf8tRlj8.js → mapStyle-a64f125f.js} +1 -1
  71. package/dist/cjs/mapStyle-a64f125f.js.map +1 -0
  72. package/dist/colors.scss +1 -1
  73. package/dist/esm/Calendar-8e595b56.js +2053 -0
  74. package/dist/esm/Calendar-8e595b56.js.map +1 -0
  75. package/dist/esm/{useMediaQuery-BlEUymPA.js → Collapsible-a355828b.js} +19 -14
  76. package/dist/esm/Collapsible-a355828b.js.map +1 -0
  77. package/dist/esm/{TableSection-CEhD4eoy.js → TableSection-e703f17f.js} +15 -15
  78. package/dist/esm/TableSection-e703f17f.js.map +1 -0
  79. package/dist/esm/_commonjsHelpers-4730bd53.js +27 -0
  80. package/dist/esm/_commonjsHelpers-4730bd53.js.map +1 -0
  81. package/dist/esm/components/accordion/index.js +10 -11
  82. package/dist/esm/components/accordion/index.js.map +1 -1
  83. package/dist/esm/components/accordion/index.stories.js +14 -20
  84. package/dist/esm/components/accordion/index.stories.js.map +1 -1
  85. package/dist/esm/components/autocompleteAddress/index.js +25 -25
  86. package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
  87. package/dist/esm/components/autocompleteAddress/index.stories.js +42 -50
  88. package/dist/esm/components/autocompleteAddress/index.stories.js.map +1 -1
  89. package/dist/esm/components/autocompleteAddress/index.test.js +7 -9
  90. package/dist/esm/components/autocompleteAddress/index.test.js.map +1 -1
  91. package/dist/esm/components/badge/index.js +18 -10
  92. package/dist/esm/components/badge/index.js.map +1 -1
  93. package/dist/esm/components/badge/index.stories.js +11 -33
  94. package/dist/esm/components/badge/index.stories.js.map +1 -1
  95. package/dist/esm/components/badge/index.test.js +5 -6
  96. package/dist/esm/components/badge/index.test.js.map +1 -1
  97. package/dist/esm/components/button/index.js +11 -13
  98. package/dist/esm/components/button/index.js.map +1 -1
  99. package/dist/esm/components/button/index.stories.js +30 -51
  100. package/dist/esm/components/button/index.stories.js.map +1 -1
  101. package/dist/esm/components/button/index.test.js +4 -5
  102. package/dist/esm/components/button/index.test.js.map +1 -1
  103. package/dist/esm/components/cards/card/index.js +16 -21
  104. package/dist/esm/components/cards/card/index.js.map +1 -1
  105. package/dist/esm/components/cards/card/index.stories.js +39 -55
  106. package/dist/esm/components/cards/card/index.stories.js.map +1 -1
  107. package/dist/esm/components/cards/cardButton/index.js +8 -11
  108. package/dist/esm/components/cards/cardButton/index.js.map +1 -1
  109. package/dist/esm/components/cards/cardButton/index.stories.js +13 -15
  110. package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
  111. package/dist/esm/components/cards/index.js +22 -9
  112. package/dist/esm/components/cards/index.js.map +1 -1
  113. package/dist/esm/components/cards/infoCard/index.js +8 -31
  114. package/dist/esm/components/cards/infoCard/index.js.map +1 -1
  115. package/dist/esm/components/cards/infoCard/index.stories.js +36 -51
  116. package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
  117. package/dist/esm/components/chip/index.js +8 -9
  118. package/dist/esm/components/chip/index.js.map +1 -1
  119. package/dist/esm/components/chip/index.stories.js +13 -15
  120. package/dist/esm/components/chip/index.stories.js.map +1 -1
  121. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +12 -9
  122. package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js.map +1 -1
  123. package/dist/esm/components/comparisonTable/components/AccordionItem/index.js +3 -4
  124. package/dist/esm/components/comparisonTable/components/AccordionItem/index.js.map +1 -1
  125. package/dist/esm/components/comparisonTable/components/Chevron.js +2 -2
  126. package/dist/esm/components/comparisonTable/components/Chevron.js.map +1 -1
  127. package/dist/esm/components/comparisonTable/components/Row/index.js +6 -7
  128. package/dist/esm/components/comparisonTable/components/Row/index.js.map +1 -1
  129. package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js +1 -1
  130. package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js.map +1 -1
  131. package/dist/esm/components/comparisonTable/components/TableArrows/index.js +4 -5
  132. package/dist/esm/components/comparisonTable/components/TableArrows/index.js.map +1 -1
  133. package/dist/esm/components/comparisonTable/components/TableButton/index.js +5 -6
  134. package/dist/esm/components/comparisonTable/components/TableButton/index.js.map +1 -1
  135. package/dist/esm/components/comparisonTable/components/TableButton/index.test.js +8 -7
  136. package/dist/esm/components/comparisonTable/components/TableButton/index.test.js.map +1 -1
  137. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +7 -8
  138. package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -1
  139. package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js +1 -1
  140. package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js.map +1 -1
  141. package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js +1 -1
  142. package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js.map +1 -1
  143. package/dist/esm/components/comparisonTable/components/TableRating/index.js +4 -5
  144. package/dist/esm/components/comparisonTable/components/TableRating/index.js.map +1 -1
  145. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +6 -7
  146. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -1
  147. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js +8 -7
  148. package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js.map +1 -1
  149. package/dist/esm/components/comparisonTable/components/TableTrueFalse.js +3 -3
  150. package/dist/esm/components/comparisonTable/components/TableTrueFalse.js.map +1 -1
  151. package/dist/esm/components/comparisonTable/index.js +17 -17
  152. package/dist/esm/components/comparisonTable/index.js.map +1 -1
  153. package/dist/esm/components/comparisonTable/index.stories.js +20 -21
  154. package/dist/esm/components/comparisonTable/index.stories.js.map +1 -1
  155. package/dist/esm/components/dateSelector/components/Calendar.js +5 -5
  156. package/dist/esm/components/dateSelector/index.js +57 -64
  157. package/dist/esm/components/dateSelector/index.js.map +1 -1
  158. package/dist/esm/components/dateSelector/index.stories.js +37 -50
  159. package/dist/esm/components/dateSelector/index.stories.js.map +1 -1
  160. package/dist/esm/components/dateSelector/index.test.js +7 -8
  161. package/dist/esm/components/dateSelector/index.test.js.map +1 -1
  162. package/dist/esm/components/downloadButton/index.js +5 -6
  163. package/dist/esm/components/downloadButton/index.js.map +1 -1
  164. package/dist/esm/components/downloadButton/index.stories.js +13 -17
  165. package/dist/esm/components/downloadButton/index.stories.js.map +1 -1
  166. package/dist/esm/components/icon/IconWrapper/IconWrapper.js +3 -4
  167. package/dist/esm/components/icon/IconWrapper/IconWrapper.js.map +1 -1
  168. package/dist/esm/components/icon/icons/1.js +4 -5
  169. package/dist/esm/components/icon/icons/1.js.map +1 -1
  170. package/dist/esm/components/icon/icons/2.js +4 -5
  171. package/dist/esm/components/icon/icons/2.js.map +1 -1
  172. package/dist/esm/components/icon/icons/3.js +4 -5
  173. package/dist/esm/components/icon/icons/3.js.map +1 -1
  174. package/dist/esm/components/icon/icons/4.js +4 -5
  175. package/dist/esm/components/icon/icons/4.js.map +1 -1
  176. package/dist/esm/components/icon/icons/5.js +4 -5
  177. package/dist/esm/components/icon/icons/5.js.map +1 -1
  178. package/dist/esm/components/icon/icons/6.js +4 -5
  179. package/dist/esm/components/icon/icons/6.js.map +1 -1
  180. package/dist/esm/components/icon/icons/7.js +4 -5
  181. package/dist/esm/components/icon/icons/7.js.map +1 -1
  182. package/dist/esm/components/icon/icons/8.js +4 -5
  183. package/dist/esm/components/icon/icons/8.js.map +1 -1
  184. package/dist/esm/components/icon/icons/Activity.js +4 -5
  185. package/dist/esm/components/icon/icons/Activity.js.map +1 -1
  186. package/dist/esm/components/icon/icons/Adhd.js +4 -5
  187. package/dist/esm/components/icon/icons/Adhd.js.map +1 -1
  188. package/dist/esm/components/icon/icons/AdviceRecommendation.js +4 -5
  189. package/dist/esm/components/icon/icons/AdviceRecommendation.js.map +1 -1
  190. package/dist/esm/components/icon/icons/AlertCircle.js +4 -5
  191. package/dist/esm/components/icon/icons/AlertCircle.js.map +1 -1
  192. package/dist/esm/components/icon/icons/AlertOctagon.js +4 -5
  193. package/dist/esm/components/icon/icons/AlertOctagon.js.map +1 -1
  194. package/dist/esm/components/icon/icons/AlertTriangle.js +4 -5
  195. package/dist/esm/components/icon/icons/AlertTriangle.js.map +1 -1
  196. package/dist/esm/components/icon/icons/AlertTriangleFilled.js +4 -5
  197. package/dist/esm/components/icon/icons/AlertTriangleFilled.js.map +1 -1
  198. package/dist/esm/components/icon/icons/AlignCenter.js +4 -5
  199. package/dist/esm/components/icon/icons/AlignCenter.js.map +1 -1
  200. package/dist/esm/components/icon/icons/AlignJustify.js +4 -5
  201. package/dist/esm/components/icon/icons/AlignJustify.js.map +1 -1
  202. package/dist/esm/components/icon/icons/AlignLeft.js +4 -5
  203. package/dist/esm/components/icon/icons/AlignLeft.js.map +1 -1
  204. package/dist/esm/components/icon/icons/AlignRight.js +4 -5
  205. package/dist/esm/components/icon/icons/AlignRight.js.map +1 -1
  206. package/dist/esm/components/icon/icons/Anchor.js +4 -5
  207. package/dist/esm/components/icon/icons/Anchor.js.map +1 -1
  208. package/dist/esm/components/icon/icons/Aperture.js +4 -5
  209. package/dist/esm/components/icon/icons/Aperture.js.map +1 -1
  210. package/dist/esm/components/icon/icons/Archive.js +4 -5
  211. package/dist/esm/components/icon/icons/Archive.js.map +1 -1
  212. package/dist/esm/components/icon/icons/ArrowDown.js +4 -5
  213. package/dist/esm/components/icon/icons/ArrowDown.js.map +1 -1
  214. package/dist/esm/components/icon/icons/ArrowDownCircle.js +4 -5
  215. package/dist/esm/components/icon/icons/ArrowDownCircle.js.map +1 -1
  216. package/dist/esm/components/icon/icons/ArrowDownLeft.js +4 -5
  217. package/dist/esm/components/icon/icons/ArrowDownLeft.js.map +1 -1
  218. package/dist/esm/components/icon/icons/ArrowDownRight.js +4 -5
  219. package/dist/esm/components/icon/icons/ArrowDownRight.js.map +1 -1
  220. package/dist/esm/components/icon/icons/ArrowLeft.js +4 -5
  221. package/dist/esm/components/icon/icons/ArrowLeft.js.map +1 -1
  222. package/dist/esm/components/icon/icons/ArrowLeftCircle.js +4 -5
  223. package/dist/esm/components/icon/icons/ArrowLeftCircle.js.map +1 -1
  224. package/dist/esm/components/icon/icons/ArrowRight.js +4 -5
  225. package/dist/esm/components/icon/icons/ArrowRight.js.map +1 -1
  226. package/dist/esm/components/icon/icons/ArrowRightCircle.js +4 -5
  227. package/dist/esm/components/icon/icons/ArrowRightCircle.js.map +1 -1
  228. package/dist/esm/components/icon/icons/ArrowRightFilled.js +4 -5
  229. package/dist/esm/components/icon/icons/ArrowRightFilled.js.map +1 -1
  230. package/dist/esm/components/icon/icons/ArrowUp.js +4 -5
  231. package/dist/esm/components/icon/icons/ArrowUp.js.map +1 -1
  232. package/dist/esm/components/icon/icons/ArrowUpCircle.js +4 -5
  233. package/dist/esm/components/icon/icons/ArrowUpCircle.js.map +1 -1
  234. package/dist/esm/components/icon/icons/ArrowUpLeft.js +4 -5
  235. package/dist/esm/components/icon/icons/ArrowUpLeft.js.map +1 -1
  236. package/dist/esm/components/icon/icons/ArrowUpRight.js +4 -5
  237. package/dist/esm/components/icon/icons/ArrowUpRight.js.map +1 -1
  238. package/dist/esm/components/icon/icons/Arthritis.js +4 -5
  239. package/dist/esm/components/icon/icons/Arthritis.js.map +1 -1
  240. package/dist/esm/components/icon/icons/AssistantFilled.js +4 -5
  241. package/dist/esm/components/icon/icons/AssistantFilled.js.map +1 -1
  242. package/dist/esm/components/icon/icons/Asthma.js +4 -5
  243. package/dist/esm/components/icon/icons/Asthma.js.map +1 -1
  244. package/dist/esm/components/icon/icons/AtSign.js +4 -5
  245. package/dist/esm/components/icon/icons/AtSign.js.map +1 -1
  246. package/dist/esm/components/icon/icons/AwardMedal.js +4 -5
  247. package/dist/esm/components/icon/icons/AwardMedal.js.map +1 -1
  248. package/dist/esm/components/icon/icons/Bank.js +4 -5
  249. package/dist/esm/components/icon/icons/Bank.js.map +1 -1
  250. package/dist/esm/components/icon/icons/BarChart.js +4 -5
  251. package/dist/esm/components/icon/icons/BarChart.js.map +1 -1
  252. package/dist/esm/components/icon/icons/BarChart2.js +4 -5
  253. package/dist/esm/components/icon/icons/BarChart2.js.map +1 -1
  254. package/dist/esm/components/icon/icons/BasketballSports.js +5 -6
  255. package/dist/esm/components/icon/icons/BasketballSports.js.map +1 -1
  256. package/dist/esm/components/icon/icons/Battery.js +4 -5
  257. package/dist/esm/components/icon/icons/Battery.js.map +1 -1
  258. package/dist/esm/components/icon/icons/BatteryCharging.js +4 -5
  259. package/dist/esm/components/icon/icons/BatteryCharging.js.map +1 -1
  260. package/dist/esm/components/icon/icons/Bell.js +4 -5
  261. package/dist/esm/components/icon/icons/Bell.js.map +1 -1
  262. package/dist/esm/components/icon/icons/BellOff.js +4 -5
  263. package/dist/esm/components/icon/icons/BellOff.js.map +1 -1
  264. package/dist/esm/components/icon/icons/Bluetooth.js +4 -5
  265. package/dist/esm/components/icon/icons/Bluetooth.js.map +1 -1
  266. package/dist/esm/components/icon/icons/Bold.js +4 -5
  267. package/dist/esm/components/icon/icons/Bold.js.map +1 -1
  268. package/dist/esm/components/icon/icons/Book.js +4 -5
  269. package/dist/esm/components/icon/icons/Book.js.map +1 -1
  270. package/dist/esm/components/icon/icons/BookOpen.js +5 -6
  271. package/dist/esm/components/icon/icons/BookOpen.js.map +1 -1
  272. package/dist/esm/components/icon/icons/Bookmark.js +4 -5
  273. package/dist/esm/components/icon/icons/Bookmark.js.map +1 -1
  274. package/dist/esm/components/icon/icons/Box.js +4 -5
  275. package/dist/esm/components/icon/icons/Box.js.map +1 -1
  276. package/dist/esm/components/icon/icons/BoxesAdd.js +4 -5
  277. package/dist/esm/components/icon/icons/BoxesAdd.js.map +1 -1
  278. package/dist/esm/components/icon/icons/BoxesAdd2.js +4 -5
  279. package/dist/esm/components/icon/icons/BoxesAdd2.js.map +1 -1
  280. package/dist/esm/components/icon/icons/BoxesAddFilled.js +4 -5
  281. package/dist/esm/components/icon/icons/BoxesAddFilled.js.map +1 -1
  282. package/dist/esm/components/icon/icons/BoxesMultiple.js +4 -5
  283. package/dist/esm/components/icon/icons/BoxesMultiple.js.map +1 -1
  284. package/dist/esm/components/icon/icons/BoxesMultipleFilled.js +4 -5
  285. package/dist/esm/components/icon/icons/BoxesMultipleFilled.js.map +1 -1
  286. package/dist/esm/components/icon/icons/Briefcase.js +4 -5
  287. package/dist/esm/components/icon/icons/Briefcase.js.map +1 -1
  288. package/dist/esm/components/icon/icons/Calculator.js +4 -5
  289. package/dist/esm/components/icon/icons/Calculator.js.map +1 -1
  290. package/dist/esm/components/icon/icons/Calendar.js +4 -5
  291. package/dist/esm/components/icon/icons/Calendar.js.map +1 -1
  292. package/dist/esm/components/icon/icons/Camera.js +4 -5
  293. package/dist/esm/components/icon/icons/Camera.js.map +1 -1
  294. package/dist/esm/components/icon/icons/CameraOff.js +4 -5
  295. package/dist/esm/components/icon/icons/CameraOff.js.map +1 -1
  296. package/dist/esm/components/icon/icons/Cancer.js +4 -5
  297. package/dist/esm/components/icon/icons/Cancer.js.map +1 -1
  298. package/dist/esm/components/icon/icons/Cast.js +4 -5
  299. package/dist/esm/components/icon/icons/Cast.js.map +1 -1
  300. package/dist/esm/components/icon/icons/Check.js +4 -5
  301. package/dist/esm/components/icon/icons/Check.js.map +1 -1
  302. package/dist/esm/components/icon/icons/CheckCircle.js +4 -5
  303. package/dist/esm/components/icon/icons/CheckCircle.js.map +1 -1
  304. package/dist/esm/components/icon/icons/CheckInCircle.js +4 -5
  305. package/dist/esm/components/icon/icons/CheckInCircle.js.map +1 -1
  306. package/dist/esm/components/icon/icons/CheckInCircleFilled.js +4 -5
  307. package/dist/esm/components/icon/icons/CheckInCircleFilled.js.map +1 -1
  308. package/dist/esm/components/icon/icons/CheckSquare.js +4 -5
  309. package/dist/esm/components/icon/icons/CheckSquare.js.map +1 -1
  310. package/dist/esm/components/icon/icons/CheckThick.js +5 -6
  311. package/dist/esm/components/icon/icons/CheckThick.js.map +1 -1
  312. package/dist/esm/components/icon/icons/CheckboxChecked.js +4 -5
  313. package/dist/esm/components/icon/icons/CheckboxChecked.js.map +1 -1
  314. package/dist/esm/components/icon/icons/CheckboxUnchecked.js +4 -5
  315. package/dist/esm/components/icon/icons/CheckboxUnchecked.js.map +1 -1
  316. package/dist/esm/components/icon/icons/ChevronDown.js +4 -5
  317. package/dist/esm/components/icon/icons/ChevronDown.js.map +1 -1
  318. package/dist/esm/components/icon/icons/ChevronLeft.js +4 -5
  319. package/dist/esm/components/icon/icons/ChevronLeft.js.map +1 -1
  320. package/dist/esm/components/icon/icons/ChevronRight.js +4 -5
  321. package/dist/esm/components/icon/icons/ChevronRight.js.map +1 -1
  322. package/dist/esm/components/icon/icons/ChevronUp.js +4 -5
  323. package/dist/esm/components/icon/icons/ChevronUp.js.map +1 -1
  324. package/dist/esm/components/icon/icons/ChevronsDown.js +4 -5
  325. package/dist/esm/components/icon/icons/ChevronsDown.js.map +1 -1
  326. package/dist/esm/components/icon/icons/ChevronsLeft.js +4 -5
  327. package/dist/esm/components/icon/icons/ChevronsLeft.js.map +1 -1
  328. package/dist/esm/components/icon/icons/ChevronsRight.js +4 -5
  329. package/dist/esm/components/icon/icons/ChevronsRight.js.map +1 -1
  330. package/dist/esm/components/icon/icons/ChevronsUp.js +4 -5
  331. package/dist/esm/components/icon/icons/ChevronsUp.js.map +1 -1
  332. package/dist/esm/components/icon/icons/Chrome.js +4 -5
  333. package/dist/esm/components/icon/icons/Chrome.js.map +1 -1
  334. package/dist/esm/components/icon/icons/Circle.js +4 -5
  335. package/dist/esm/components/icon/icons/Circle.js.map +1 -1
  336. package/dist/esm/components/icon/icons/CircleSelected.js +4 -5
  337. package/dist/esm/components/icon/icons/CircleSelected.js.map +1 -1
  338. package/dist/esm/components/icon/icons/CircleSmall.js +4 -5
  339. package/dist/esm/components/icon/icons/CircleSmall.js.map +1 -1
  340. package/dist/esm/components/icon/icons/CircleUnselected.js +4 -5
  341. package/dist/esm/components/icon/icons/CircleUnselected.js.map +1 -1
  342. package/dist/esm/components/icon/icons/Clipboard.js +4 -5
  343. package/dist/esm/components/icon/icons/Clipboard.js.map +1 -1
  344. package/dist/esm/components/icon/icons/ClockTime.js +4 -5
  345. package/dist/esm/components/icon/icons/ClockTime.js.map +1 -1
  346. package/dist/esm/components/icon/icons/Cloud.js +4 -5
  347. package/dist/esm/components/icon/icons/Cloud.js.map +1 -1
  348. package/dist/esm/components/icon/icons/CloudDrizzle.js +4 -5
  349. package/dist/esm/components/icon/icons/CloudDrizzle.js.map +1 -1
  350. package/dist/esm/components/icon/icons/CloudLightning.js +4 -5
  351. package/dist/esm/components/icon/icons/CloudLightning.js.map +1 -1
  352. package/dist/esm/components/icon/icons/CloudOff.js +4 -5
  353. package/dist/esm/components/icon/icons/CloudOff.js.map +1 -1
  354. package/dist/esm/components/icon/icons/CloudRain.js +4 -5
  355. package/dist/esm/components/icon/icons/CloudRain.js.map +1 -1
  356. package/dist/esm/components/icon/icons/CloudSnow.js +4 -5
  357. package/dist/esm/components/icon/icons/CloudSnow.js.map +1 -1
  358. package/dist/esm/components/icon/icons/Code.js +4 -5
  359. package/dist/esm/components/icon/icons/Code.js.map +1 -1
  360. package/dist/esm/components/icon/icons/Codepen.js +4 -5
  361. package/dist/esm/components/icon/icons/Codepen.js.map +1 -1
  362. package/dist/esm/components/icon/icons/Codesandbox.js +4 -5
  363. package/dist/esm/components/icon/icons/Codesandbox.js.map +1 -1
  364. package/dist/esm/components/icon/icons/Coffee.js +4 -5
  365. package/dist/esm/components/icon/icons/Coffee.js.map +1 -1
  366. package/dist/esm/components/icon/icons/Columns.js +4 -5
  367. package/dist/esm/components/icon/icons/Columns.js.map +1 -1
  368. package/dist/esm/components/icon/icons/Command.js +4 -5
  369. package/dist/esm/components/icon/icons/Command.js.map +1 -1
  370. package/dist/esm/components/icon/icons/Compass.js +4 -5
  371. package/dist/esm/components/icon/icons/Compass.js.map +1 -1
  372. package/dist/esm/components/icon/icons/Concierge.js +4 -5
  373. package/dist/esm/components/icon/icons/Concierge.js.map +1 -1
  374. package/dist/esm/components/icon/icons/Copy.js +4 -5
  375. package/dist/esm/components/icon/icons/Copy.js.map +1 -1
  376. package/dist/esm/components/icon/icons/CornerDownLeft.js +4 -5
  377. package/dist/esm/components/icon/icons/CornerDownLeft.js.map +1 -1
  378. package/dist/esm/components/icon/icons/CornerDownRight.js +4 -5
  379. package/dist/esm/components/icon/icons/CornerDownRight.js.map +1 -1
  380. package/dist/esm/components/icon/icons/CornerLeftDown.js +4 -5
  381. package/dist/esm/components/icon/icons/CornerLeftDown.js.map +1 -1
  382. package/dist/esm/components/icon/icons/CornerLeftUp.js +4 -5
  383. package/dist/esm/components/icon/icons/CornerLeftUp.js.map +1 -1
  384. package/dist/esm/components/icon/icons/CornerRightDown.js +4 -5
  385. package/dist/esm/components/icon/icons/CornerRightDown.js.map +1 -1
  386. package/dist/esm/components/icon/icons/CornerRightUp.js +4 -5
  387. package/dist/esm/components/icon/icons/CornerRightUp.js.map +1 -1
  388. package/dist/esm/components/icon/icons/CornerUpLeft.js +4 -5
  389. package/dist/esm/components/icon/icons/CornerUpLeft.js.map +1 -1
  390. package/dist/esm/components/icon/icons/CornerUpRight.js +4 -5
  391. package/dist/esm/components/icon/icons/CornerUpRight.js.map +1 -1
  392. package/dist/esm/components/icon/icons/Cpu.js +4 -5
  393. package/dist/esm/components/icon/icons/Cpu.js.map +1 -1
  394. package/dist/esm/components/icon/icons/CreditCard.js +4 -5
  395. package/dist/esm/components/icon/icons/CreditCard.js.map +1 -1
  396. package/dist/esm/components/icon/icons/Crop.js +4 -5
  397. package/dist/esm/components/icon/icons/Crop.js.map +1 -1
  398. package/dist/esm/components/icon/icons/Crosshair.js +4 -5
  399. package/dist/esm/components/icon/icons/Crosshair.js.map +1 -1
  400. package/dist/esm/components/icon/icons/Database.js +4 -5
  401. package/dist/esm/components/icon/icons/Database.js.map +1 -1
  402. package/dist/esm/components/icon/icons/Delete.js +4 -5
  403. package/dist/esm/components/icon/icons/Delete.js.map +1 -1
  404. package/dist/esm/components/icon/icons/DentalPlus.js +4 -5
  405. package/dist/esm/components/icon/icons/DentalPlus.js.map +1 -1
  406. package/dist/esm/components/icon/icons/DentalToothTeeth.js +4 -5
  407. package/dist/esm/components/icon/icons/DentalToothTeeth.js.map +1 -1
  408. package/dist/esm/components/icon/icons/DependentsFamily.js +4 -5
  409. package/dist/esm/components/icon/icons/DependentsFamily.js.map +1 -1
  410. package/dist/esm/components/icon/icons/DependentsFamilyAdd.js +4 -5
  411. package/dist/esm/components/icon/icons/DependentsFamilyAdd.js.map +1 -1
  412. package/dist/esm/components/icon/icons/Diabetes.js +4 -5
  413. package/dist/esm/components/icon/icons/Diabetes.js.map +1 -1
  414. package/dist/esm/components/icon/icons/Disc.js +4 -5
  415. package/dist/esm/components/icon/icons/Disc.js.map +1 -1
  416. package/dist/esm/components/icon/icons/Doctor.js +4 -5
  417. package/dist/esm/components/icon/icons/Doctor.js.map +1 -1
  418. package/dist/esm/components/icon/icons/DoctorStethoscope.js +4 -5
  419. package/dist/esm/components/icon/icons/DoctorStethoscope.js.map +1 -1
  420. package/dist/esm/components/icon/icons/DollarSign.js +4 -5
  421. package/dist/esm/components/icon/icons/DollarSign.js.map +1 -1
  422. package/dist/esm/components/icon/icons/Download.js +4 -5
  423. package/dist/esm/components/icon/icons/Download.js.map +1 -1
  424. package/dist/esm/components/icon/icons/DownloadCloud.js +4 -5
  425. package/dist/esm/components/icon/icons/DownloadCloud.js.map +1 -1
  426. package/dist/esm/components/icon/icons/DragCorner.js +4 -5
  427. package/dist/esm/components/icon/icons/DragCorner.js.map +1 -1
  428. package/dist/esm/components/icon/icons/Droplet.js +4 -5
  429. package/dist/esm/components/icon/icons/Droplet.js.map +1 -1
  430. package/dist/esm/components/icon/icons/Edit.js +4 -5
  431. package/dist/esm/components/icon/icons/Edit.js.map +1 -1
  432. package/dist/esm/components/icon/icons/Edit2.js +4 -5
  433. package/dist/esm/components/icon/icons/Edit2.js.map +1 -1
  434. package/dist/esm/components/icon/icons/Edit3.js +4 -5
  435. package/dist/esm/components/icon/icons/Edit3.js.map +1 -1
  436. package/dist/esm/components/icon/icons/Equal.js +4 -5
  437. package/dist/esm/components/icon/icons/Equal.js.map +1 -1
  438. package/dist/esm/components/icon/icons/Euro.js +4 -5
  439. package/dist/esm/components/icon/icons/Euro.js.map +1 -1
  440. package/dist/esm/components/icon/icons/EuroClaim.js +4 -5
  441. package/dist/esm/components/icon/icons/EuroClaim.js.map +1 -1
  442. package/dist/esm/components/icon/icons/EuroClaimFilled.js +4 -5
  443. package/dist/esm/components/icon/icons/EuroClaimFilled.js.map +1 -1
  444. package/dist/esm/components/icon/icons/ExternalLink.js +4 -5
  445. package/dist/esm/components/icon/icons/ExternalLink.js.map +1 -1
  446. package/dist/esm/components/icon/icons/EyeOff.js +4 -5
  447. package/dist/esm/components/icon/icons/EyeOff.js.map +1 -1
  448. package/dist/esm/components/icon/icons/EyeVision.js +4 -5
  449. package/dist/esm/components/icon/icons/EyeVision.js.map +1 -1
  450. package/dist/esm/components/icon/icons/Facebook.js +4 -5
  451. package/dist/esm/components/icon/icons/Facebook.js.map +1 -1
  452. package/dist/esm/components/icon/icons/FastEasy.js +4 -5
  453. package/dist/esm/components/icon/icons/FastEasy.js.map +1 -1
  454. package/dist/esm/components/icon/icons/FastForward.js +4 -5
  455. package/dist/esm/components/icon/icons/FastForward.js.map +1 -1
  456. package/dist/esm/components/icon/icons/Feather.js +4 -5
  457. package/dist/esm/components/icon/icons/Feather.js.map +1 -1
  458. package/dist/esm/components/icon/icons/Female.js +4 -5
  459. package/dist/esm/components/icon/icons/Female.js.map +1 -1
  460. package/dist/esm/components/icon/icons/File.js +4 -5
  461. package/dist/esm/components/icon/icons/File.js.map +1 -1
  462. package/dist/esm/components/icon/icons/FileMinus.js +4 -5
  463. package/dist/esm/components/icon/icons/FileMinus.js.map +1 -1
  464. package/dist/esm/components/icon/icons/FilePlus.js +4 -5
  465. package/dist/esm/components/icon/icons/FilePlus.js.map +1 -1
  466. package/dist/esm/components/icon/icons/FileText.js +4 -5
  467. package/dist/esm/components/icon/icons/FileText.js.map +1 -1
  468. package/dist/esm/components/icon/icons/Film.js +4 -5
  469. package/dist/esm/components/icon/icons/Film.js.map +1 -1
  470. package/dist/esm/components/icon/icons/Filter.js +4 -5
  471. package/dist/esm/components/icon/icons/Filter.js.map +1 -1
  472. package/dist/esm/components/icon/icons/Flag.js +4 -5
  473. package/dist/esm/components/icon/icons/Flag.js.map +1 -1
  474. package/dist/esm/components/icon/icons/Folder.js +4 -5
  475. package/dist/esm/components/icon/icons/Folder.js.map +1 -1
  476. package/dist/esm/components/icon/icons/FolderMinus.js +4 -5
  477. package/dist/esm/components/icon/icons/FolderMinus.js.map +1 -1
  478. package/dist/esm/components/icon/icons/FolderPlus.js +4 -5
  479. package/dist/esm/components/icon/icons/FolderPlus.js.map +1 -1
  480. package/dist/esm/components/icon/icons/Framer.js +4 -5
  481. package/dist/esm/components/icon/icons/Framer.js.map +1 -1
  482. package/dist/esm/components/icon/icons/Frown.js +4 -5
  483. package/dist/esm/components/icon/icons/Frown.js.map +1 -1
  484. package/dist/esm/components/icon/icons/Gift.js +4 -5
  485. package/dist/esm/components/icon/icons/Gift.js.map +1 -1
  486. package/dist/esm/components/icon/icons/GitBranch.js +4 -5
  487. package/dist/esm/components/icon/icons/GitBranch.js.map +1 -1
  488. package/dist/esm/components/icon/icons/GitCommit.js +4 -5
  489. package/dist/esm/components/icon/icons/GitCommit.js.map +1 -1
  490. package/dist/esm/components/icon/icons/GitMerge.js +4 -5
  491. package/dist/esm/components/icon/icons/GitMerge.js.map +1 -1
  492. package/dist/esm/components/icon/icons/GitPullRequest.js +4 -5
  493. package/dist/esm/components/icon/icons/GitPullRequest.js.map +1 -1
  494. package/dist/esm/components/icon/icons/GlobeNetworkEarth.js +4 -5
  495. package/dist/esm/components/icon/icons/GlobeNetworkEarth.js.map +1 -1
  496. package/dist/esm/components/icon/icons/Hallesche.js +4 -5
  497. package/dist/esm/components/icon/icons/Hallesche.js.map +1 -1
  498. package/dist/esm/components/icon/icons/HandsMassageTherapeutic.js +4 -5
  499. package/dist/esm/components/icon/icons/HandsMassageTherapeutic.js.map +1 -1
  500. package/dist/esm/components/icon/icons/HardDrive.js +4 -5
  501. package/dist/esm/components/icon/icons/HardDrive.js.map +1 -1
  502. package/dist/esm/components/icon/icons/Hash.js +4 -5
  503. package/dist/esm/components/icon/icons/Hash.js.map +1 -1
  504. package/dist/esm/components/icon/icons/Headphones.js +4 -5
  505. package/dist/esm/components/icon/icons/Headphones.js.map +1 -1
  506. package/dist/esm/components/icon/icons/Heart.js +5 -6
  507. package/dist/esm/components/icon/icons/Heart.js.map +1 -1
  508. package/dist/esm/components/icon/icons/HeartHand.js +4 -5
  509. package/dist/esm/components/icon/icons/HeartHand.js.map +1 -1
  510. package/dist/esm/components/icon/icons/HeartPlus.js +4 -5
  511. package/dist/esm/components/icon/icons/HeartPlus.js.map +1 -1
  512. package/dist/esm/components/icon/icons/Hexagon.js +4 -5
  513. package/dist/esm/components/icon/icons/Hexagon.js.map +1 -1
  514. package/dist/esm/components/icon/icons/Home.js +4 -5
  515. package/dist/esm/components/icon/icons/Home.js.map +1 -1
  516. package/dist/esm/components/icon/icons/HospitalBuilding.js +4 -5
  517. package/dist/esm/components/icon/icons/HospitalBuilding.js.map +1 -1
  518. package/dist/esm/components/icon/icons/ImagePicture.js +4 -5
  519. package/dist/esm/components/icon/icons/ImagePicture.js.map +1 -1
  520. package/dist/esm/components/icon/icons/Inbox.js +4 -5
  521. package/dist/esm/components/icon/icons/Inbox.js.map +1 -1
  522. package/dist/esm/components/icon/icons/Info.js +5 -6
  523. package/dist/esm/components/icon/icons/Info.js.map +1 -1
  524. package/dist/esm/components/icon/icons/InfoFilled.js +4 -5
  525. package/dist/esm/components/icon/icons/InfoFilled.js.map +1 -1
  526. package/dist/esm/components/icon/icons/Instagram.js +4 -5
  527. package/dist/esm/components/icon/icons/Instagram.js.map +1 -1
  528. package/dist/esm/components/icon/icons/Italic.js +4 -5
  529. package/dist/esm/components/icon/icons/Italic.js.map +1 -1
  530. package/dist/esm/components/icon/icons/Key.js +4 -5
  531. package/dist/esm/components/icon/icons/Key.js.map +1 -1
  532. package/dist/esm/components/icon/icons/LawyerLegal.js +4 -5
  533. package/dist/esm/components/icon/icons/LawyerLegal.js.map +1 -1
  534. package/dist/esm/components/icon/icons/Layers.js +4 -5
  535. package/dist/esm/components/icon/icons/Layers.js.map +1 -1
  536. package/dist/esm/components/icon/icons/Layout.js +4 -5
  537. package/dist/esm/components/icon/icons/Layout.js.map +1 -1
  538. package/dist/esm/components/icon/icons/LifeBuoy.js +4 -5
  539. package/dist/esm/components/icon/icons/LifeBuoy.js.map +1 -1
  540. package/dist/esm/components/icon/icons/Link.js +4 -5
  541. package/dist/esm/components/icon/icons/Link.js.map +1 -1
  542. package/dist/esm/components/icon/icons/Link2.js +4 -5
  543. package/dist/esm/components/icon/icons/Link2.js.map +1 -1
  544. package/dist/esm/components/icon/icons/Linkedin.js +4 -5
  545. package/dist/esm/components/icon/icons/Linkedin.js.map +1 -1
  546. package/dist/esm/components/icon/icons/List.js +4 -5
  547. package/dist/esm/components/icon/icons/List.js.map +1 -1
  548. package/dist/esm/components/icon/icons/Loader.js +4 -5
  549. package/dist/esm/components/icon/icons/Loader.js.map +1 -1
  550. package/dist/esm/components/icon/icons/Lock.js +4 -5
  551. package/dist/esm/components/icon/icons/Lock.js.map +1 -1
  552. package/dist/esm/components/icon/icons/LogIn.js +4 -5
  553. package/dist/esm/components/icon/icons/LogIn.js.map +1 -1
  554. package/dist/esm/components/icon/icons/LogOut.js +4 -5
  555. package/dist/esm/components/icon/icons/LogOut.js.map +1 -1
  556. package/dist/esm/components/icon/icons/Mail.js +4 -5
  557. package/dist/esm/components/icon/icons/Mail.js.map +1 -1
  558. package/dist/esm/components/icon/icons/Male.js +4 -5
  559. package/dist/esm/components/icon/icons/Male.js.map +1 -1
  560. package/dist/esm/components/icon/icons/Map.js +5 -6
  561. package/dist/esm/components/icon/icons/Map.js.map +1 -1
  562. package/dist/esm/components/icon/icons/MapPin.js +4 -5
  563. package/dist/esm/components/icon/icons/MapPin.js.map +1 -1
  564. package/dist/esm/components/icon/icons/Maximize.js +4 -5
  565. package/dist/esm/components/icon/icons/Maximize.js.map +1 -1
  566. package/dist/esm/components/icon/icons/Maximize2.js +4 -5
  567. package/dist/esm/components/icon/icons/Maximize2.js.map +1 -1
  568. package/dist/esm/components/icon/icons/MedicationPills.js +4 -5
  569. package/dist/esm/components/icon/icons/MedicationPills.js.map +1 -1
  570. package/dist/esm/components/icon/icons/Meh.js +4 -5
  571. package/dist/esm/components/icon/icons/Meh.js.map +1 -1
  572. package/dist/esm/components/icon/icons/MentalHealth.js +4 -5
  573. package/dist/esm/components/icon/icons/MentalHealth.js.map +1 -1
  574. package/dist/esm/components/icon/icons/Menu.js +4 -5
  575. package/dist/esm/components/icon/icons/Menu.js.map +1 -1
  576. package/dist/esm/components/icon/icons/MenuDotsMoreHorizontal.js +4 -5
  577. package/dist/esm/components/icon/icons/MenuDotsMoreHorizontal.js.map +1 -1
  578. package/dist/esm/components/icon/icons/MenuDotsMoreVertical.js +4 -5
  579. package/dist/esm/components/icon/icons/MenuDotsMoreVertical.js.map +1 -1
  580. package/dist/esm/components/icon/icons/MessageCircle.js +4 -5
  581. package/dist/esm/components/icon/icons/MessageCircle.js.map +1 -1
  582. package/dist/esm/components/icon/icons/MessageSquare.js +4 -5
  583. package/dist/esm/components/icon/icons/MessageSquare.js.map +1 -1
  584. package/dist/esm/components/icon/icons/Mic.js +4 -5
  585. package/dist/esm/components/icon/icons/Mic.js.map +1 -1
  586. package/dist/esm/components/icon/icons/MicOff.js +4 -5
  587. package/dist/esm/components/icon/icons/MicOff.js.map +1 -1
  588. package/dist/esm/components/icon/icons/Minimize.js +4 -5
  589. package/dist/esm/components/icon/icons/Minimize.js.map +1 -1
  590. package/dist/esm/components/icon/icons/Minimize2.js +4 -5
  591. package/dist/esm/components/icon/icons/Minimize2.js.map +1 -1
  592. package/dist/esm/components/icon/icons/Minus.js +4 -5
  593. package/dist/esm/components/icon/icons/Minus.js.map +1 -1
  594. package/dist/esm/components/icon/icons/MinusCircle.js +4 -5
  595. package/dist/esm/components/icon/icons/MinusCircle.js.map +1 -1
  596. package/dist/esm/components/icon/icons/MinusSquare.js +4 -5
  597. package/dist/esm/components/icon/icons/MinusSquare.js.map +1 -1
  598. package/dist/esm/components/icon/icons/MonitorScreen.js +4 -5
  599. package/dist/esm/components/icon/icons/MonitorScreen.js.map +1 -1
  600. package/dist/esm/components/icon/icons/MoonNight.js +4 -5
  601. package/dist/esm/components/icon/icons/MoonNight.js.map +1 -1
  602. package/dist/esm/components/icon/icons/MousePointer.js +4 -5
  603. package/dist/esm/components/icon/icons/MousePointer.js.map +1 -1
  604. package/dist/esm/components/icon/icons/Move.js +4 -5
  605. package/dist/esm/components/icon/icons/Move.js.map +1 -1
  606. package/dist/esm/components/icon/icons/Music.js +4 -5
  607. package/dist/esm/components/icon/icons/Music.js.map +1 -1
  608. package/dist/esm/components/icon/icons/Natural.js +4 -5
  609. package/dist/esm/components/icon/icons/Natural.js.map +1 -1
  610. package/dist/esm/components/icon/icons/Navigation.js +4 -5
  611. package/dist/esm/components/icon/icons/Navigation.js.map +1 -1
  612. package/dist/esm/components/icon/icons/Navigation2.js +4 -5
  613. package/dist/esm/components/icon/icons/Navigation2.js.map +1 -1
  614. package/dist/esm/components/icon/icons/NoDocument.js +4 -5
  615. package/dist/esm/components/icon/icons/NoDocument.js.map +1 -1
  616. package/dist/esm/components/icon/icons/Octagon.js +4 -5
  617. package/dist/esm/components/icon/icons/Octagon.js.map +1 -1
  618. package/dist/esm/components/icon/icons/Package.js +4 -5
  619. package/dist/esm/components/icon/icons/Package.js.map +1 -1
  620. package/dist/esm/components/icon/icons/Paperclip.js +4 -5
  621. package/dist/esm/components/icon/icons/Paperclip.js.map +1 -1
  622. package/dist/esm/components/icon/icons/Pause.js +4 -5
  623. package/dist/esm/components/icon/icons/Pause.js.map +1 -1
  624. package/dist/esm/components/icon/icons/PauseCircle.js +4 -5
  625. package/dist/esm/components/icon/icons/PauseCircle.js.map +1 -1
  626. package/dist/esm/components/icon/icons/PenTool.js +4 -5
  627. package/dist/esm/components/icon/icons/PenTool.js.map +1 -1
  628. package/dist/esm/components/icon/icons/Percent.js +4 -5
  629. package/dist/esm/components/icon/icons/Percent.js.map +1 -1
  630. package/dist/esm/components/icon/icons/Phone.js +4 -5
  631. package/dist/esm/components/icon/icons/Phone.js.map +1 -1
  632. package/dist/esm/components/icon/icons/PhoneCall.js +4 -5
  633. package/dist/esm/components/icon/icons/PhoneCall.js.map +1 -1
  634. package/dist/esm/components/icon/icons/PhoneForwarded.js +4 -5
  635. package/dist/esm/components/icon/icons/PhoneForwarded.js.map +1 -1
  636. package/dist/esm/components/icon/icons/PhoneHealth.js +4 -5
  637. package/dist/esm/components/icon/icons/PhoneHealth.js.map +1 -1
  638. package/dist/esm/components/icon/icons/PhoneIncoming.js +4 -5
  639. package/dist/esm/components/icon/icons/PhoneIncoming.js.map +1 -1
  640. package/dist/esm/components/icon/icons/PhoneMissed.js +4 -5
  641. package/dist/esm/components/icon/icons/PhoneMissed.js.map +1 -1
  642. package/dist/esm/components/icon/icons/PhoneOff.js +4 -5
  643. package/dist/esm/components/icon/icons/PhoneOff.js.map +1 -1
  644. package/dist/esm/components/icon/icons/PhoneOutgoing.js +4 -5
  645. package/dist/esm/components/icon/icons/PhoneOutgoing.js.map +1 -1
  646. package/dist/esm/components/icon/icons/PieChart.js +4 -5
  647. package/dist/esm/components/icon/icons/PieChart.js.map +1 -1
  648. package/dist/esm/components/icon/icons/Plane.js +4 -5
  649. package/dist/esm/components/icon/icons/Plane.js.map +1 -1
  650. package/dist/esm/components/icon/icons/PlaneFilled.js +4 -5
  651. package/dist/esm/components/icon/icons/PlaneFilled.js.map +1 -1
  652. package/dist/esm/components/icon/icons/PlaneRepatriation.js +4 -5
  653. package/dist/esm/components/icon/icons/PlaneRepatriation.js.map +1 -1
  654. package/dist/esm/components/icon/icons/PlaneRepatriationFilled.js +4 -5
  655. package/dist/esm/components/icon/icons/PlaneRepatriationFilled.js.map +1 -1
  656. package/dist/esm/components/icon/icons/Play.js +4 -5
  657. package/dist/esm/components/icon/icons/Play.js.map +1 -1
  658. package/dist/esm/components/icon/icons/PlayCircle.js +4 -5
  659. package/dist/esm/components/icon/icons/PlayCircle.js.map +1 -1
  660. package/dist/esm/components/icon/icons/Plus.js +4 -5
  661. package/dist/esm/components/icon/icons/Plus.js.map +1 -1
  662. package/dist/esm/components/icon/icons/PlusCircle.js +4 -5
  663. package/dist/esm/components/icon/icons/PlusCircle.js.map +1 -1
  664. package/dist/esm/components/icon/icons/PlusSquare.js +4 -5
  665. package/dist/esm/components/icon/icons/PlusSquare.js.map +1 -1
  666. package/dist/esm/components/icon/icons/Pocket.js +4 -5
  667. package/dist/esm/components/icon/icons/Pocket.js.map +1 -1
  668. package/dist/esm/components/icon/icons/PoliciesShield.js +4 -5
  669. package/dist/esm/components/icon/icons/PoliciesShield.js.map +1 -1
  670. package/dist/esm/components/icon/icons/PoliciesShieldFilled.js +4 -5
  671. package/dist/esm/components/icon/icons/PoliciesShieldFilled.js.map +1 -1
  672. package/dist/esm/components/icon/icons/Power.js +4 -5
  673. package/dist/esm/components/icon/icons/Power.js.map +1 -1
  674. package/dist/esm/components/icon/icons/Pregnacy.js +4 -5
  675. package/dist/esm/components/icon/icons/Pregnacy.js.map +1 -1
  676. package/dist/esm/components/icon/icons/Printer.js +4 -5
  677. package/dist/esm/components/icon/icons/Printer.js.map +1 -1
  678. package/dist/esm/components/icon/icons/Progress.js +4 -5
  679. package/dist/esm/components/icon/icons/Progress.js.map +1 -1
  680. package/dist/esm/components/icon/icons/QrCode.js +4 -5
  681. package/dist/esm/components/icon/icons/QrCode.js.map +1 -1
  682. package/dist/esm/components/icon/icons/QuestionmarkHelpCircle.js +4 -5
  683. package/dist/esm/components/icon/icons/QuestionmarkHelpCircle.js.map +1 -1
  684. package/dist/esm/components/icon/icons/QuotationMarks.js +4 -5
  685. package/dist/esm/components/icon/icons/QuotationMarks.js.map +1 -1
  686. package/dist/esm/components/icon/icons/Radio.js +4 -5
  687. package/dist/esm/components/icon/icons/Radio.js.map +1 -1
  688. package/dist/esm/components/icon/icons/RefreshCcw.js +4 -5
  689. package/dist/esm/components/icon/icons/RefreshCcw.js.map +1 -1
  690. package/dist/esm/components/icon/icons/RefreshCw.js +4 -5
  691. package/dist/esm/components/icon/icons/RefreshCw.js.map +1 -1
  692. package/dist/esm/components/icon/icons/Repeat.js +4 -5
  693. package/dist/esm/components/icon/icons/Repeat.js.map +1 -1
  694. package/dist/esm/components/icon/icons/Restart.js +4 -5
  695. package/dist/esm/components/icon/icons/Restart.js.map +1 -1
  696. package/dist/esm/components/icon/icons/Rewind.js +4 -5
  697. package/dist/esm/components/icon/icons/Rewind.js.map +1 -1
  698. package/dist/esm/components/icon/icons/RotateCcw.js +4 -5
  699. package/dist/esm/components/icon/icons/RotateCcw.js.map +1 -1
  700. package/dist/esm/components/icon/icons/RotateCw.js +4 -5
  701. package/dist/esm/components/icon/icons/RotateCw.js.map +1 -1
  702. package/dist/esm/components/icon/icons/Rss.js +4 -5
  703. package/dist/esm/components/icon/icons/Rss.js.map +1 -1
  704. package/dist/esm/components/icon/icons/Save.js +4 -5
  705. package/dist/esm/components/icon/icons/Save.js.map +1 -1
  706. package/dist/esm/components/icon/icons/Scissors.js +4 -5
  707. package/dist/esm/components/icon/icons/Scissors.js.map +1 -1
  708. package/dist/esm/components/icon/icons/Search.js +4 -5
  709. package/dist/esm/components/icon/icons/Search.js.map +1 -1
  710. package/dist/esm/components/icon/icons/Send.js +4 -5
  711. package/dist/esm/components/icon/icons/Send.js.map +1 -1
  712. package/dist/esm/components/icon/icons/Server.js +4 -5
  713. package/dist/esm/components/icon/icons/Server.js.map +1 -1
  714. package/dist/esm/components/icon/icons/Settings.js +4 -5
  715. package/dist/esm/components/icon/icons/Settings.js.map +1 -1
  716. package/dist/esm/components/icon/icons/Share.js +4 -5
  717. package/dist/esm/components/icon/icons/Share.js.map +1 -1
  718. package/dist/esm/components/icon/icons/Share2.js +4 -5
  719. package/dist/esm/components/icon/icons/Share2.js.map +1 -1
  720. package/dist/esm/components/icon/icons/Shield.js +4 -5
  721. package/dist/esm/components/icon/icons/Shield.js.map +1 -1
  722. package/dist/esm/components/icon/icons/ShieldCover5Years.js +4 -5
  723. package/dist/esm/components/icon/icons/ShieldCover5Years.js.map +1 -1
  724. package/dist/esm/components/icon/icons/ShieldOff.js +4 -5
  725. package/dist/esm/components/icon/icons/ShieldOff.js.map +1 -1
  726. package/dist/esm/components/icon/icons/ShieldPlus.js +4 -5
  727. package/dist/esm/components/icon/icons/ShieldPlus.js.map +1 -1
  728. package/dist/esm/components/icon/icons/ShoppingBag.js +4 -5
  729. package/dist/esm/components/icon/icons/ShoppingBag.js.map +1 -1
  730. package/dist/esm/components/icon/icons/ShoppingBag2.js +4 -5
  731. package/dist/esm/components/icon/icons/ShoppingBag2.js.map +1 -1
  732. package/dist/esm/components/icon/icons/ShoppingCart.js +4 -5
  733. package/dist/esm/components/icon/icons/ShoppingCart.js.map +1 -1
  734. package/dist/esm/components/icon/icons/Shuffle.js +4 -5
  735. package/dist/esm/components/icon/icons/Shuffle.js.map +1 -1
  736. package/dist/esm/components/icon/icons/Sidebar.js +4 -5
  737. package/dist/esm/components/icon/icons/Sidebar.js.map +1 -1
  738. package/dist/esm/components/icon/icons/SkipBack.js +4 -5
  739. package/dist/esm/components/icon/icons/SkipBack.js.map +1 -1
  740. package/dist/esm/components/icon/icons/SkipForward.js +4 -5
  741. package/dist/esm/components/icon/icons/SkipForward.js.map +1 -1
  742. package/dist/esm/components/icon/icons/Slack.js +4 -5
  743. package/dist/esm/components/icon/icons/Slack.js.map +1 -1
  744. package/dist/esm/components/icon/icons/Slash.js +4 -5
  745. package/dist/esm/components/icon/icons/Slash.js.map +1 -1
  746. package/dist/esm/components/icon/icons/Sliders.js +4 -5
  747. package/dist/esm/components/icon/icons/Sliders.js.map +1 -1
  748. package/dist/esm/components/icon/icons/Smartphone.js +4 -5
  749. package/dist/esm/components/icon/icons/Smartphone.js.map +1 -1
  750. package/dist/esm/components/icon/icons/Smile.js +4 -5
  751. package/dist/esm/components/icon/icons/Smile.js.map +1 -1
  752. package/dist/esm/components/icon/icons/Sofa.js +4 -5
  753. package/dist/esm/components/icon/icons/Sofa.js.map +1 -1
  754. package/dist/esm/components/icon/icons/Speaker.js +4 -5
  755. package/dist/esm/components/icon/icons/Speaker.js.map +1 -1
  756. package/dist/esm/components/icon/icons/Square.js +4 -5
  757. package/dist/esm/components/icon/icons/Square.js.map +1 -1
  758. package/dist/esm/components/icon/icons/Star.js +5 -6
  759. package/dist/esm/components/icon/icons/Star.js.map +1 -1
  760. package/dist/esm/components/icon/icons/StarFilled.js +4 -5
  761. package/dist/esm/components/icon/icons/StarFilled.js.map +1 -1
  762. package/dist/esm/components/icon/icons/StarHalf.js +4 -5
  763. package/dist/esm/components/icon/icons/StarHalf.js.map +1 -1
  764. package/dist/esm/components/icon/icons/StopCircle.js +4 -5
  765. package/dist/esm/components/icon/icons/StopCircle.js.map +1 -1
  766. package/dist/esm/components/icon/icons/Subtract.js +4 -5
  767. package/dist/esm/components/icon/icons/Subtract.js.map +1 -1
  768. package/dist/esm/components/icon/icons/SunDay.js +4 -5
  769. package/dist/esm/components/icon/icons/SunDay.js.map +1 -1
  770. package/dist/esm/components/icon/icons/Sunrise.js +4 -5
  771. package/dist/esm/components/icon/icons/Sunrise.js.map +1 -1
  772. package/dist/esm/components/icon/icons/Sunset.js +4 -5
  773. package/dist/esm/components/icon/icons/Sunset.js.map +1 -1
  774. package/dist/esm/components/icon/icons/SyringeVaccination.js +4 -5
  775. package/dist/esm/components/icon/icons/SyringeVaccination.js.map +1 -1
  776. package/dist/esm/components/icon/icons/Tablet.js +4 -5
  777. package/dist/esm/components/icon/icons/Tablet.js.map +1 -1
  778. package/dist/esm/components/icon/icons/Tag.js +4 -5
  779. package/dist/esm/components/icon/icons/Tag.js.map +1 -1
  780. package/dist/esm/components/icon/icons/Target.js +4 -5
  781. package/dist/esm/components/icon/icons/Target.js.map +1 -1
  782. package/dist/esm/components/icon/icons/Terminal.js +4 -5
  783. package/dist/esm/components/icon/icons/Terminal.js.map +1 -1
  784. package/dist/esm/components/icon/icons/Thermometer.js +4 -5
  785. package/dist/esm/components/icon/icons/Thermometer.js.map +1 -1
  786. package/dist/esm/components/icon/icons/ThumbsDown.js +4 -5
  787. package/dist/esm/components/icon/icons/ThumbsDown.js.map +1 -1
  788. package/dist/esm/components/icon/icons/ThumbsUp.js +4 -5
  789. package/dist/esm/components/icon/icons/ThumbsUp.js.map +1 -1
  790. package/dist/esm/components/icon/icons/ToggleLeft.js +4 -5
  791. package/dist/esm/components/icon/icons/ToggleLeft.js.map +1 -1
  792. package/dist/esm/components/icon/icons/ToggleRight.js +4 -5
  793. package/dist/esm/components/icon/icons/ToggleRight.js.map +1 -1
  794. package/dist/esm/components/icon/icons/Tool.js +4 -5
  795. package/dist/esm/components/icon/icons/Tool.js.map +1 -1
  796. package/dist/esm/components/icon/icons/Trash.js +4 -5
  797. package/dist/esm/components/icon/icons/Trash.js.map +1 -1
  798. package/dist/esm/components/icon/icons/Trash2.js +4 -5
  799. package/dist/esm/components/icon/icons/Trash2.js.map +1 -1
  800. package/dist/esm/components/icon/icons/Trello.js +4 -5
  801. package/dist/esm/components/icon/icons/Trello.js.map +1 -1
  802. package/dist/esm/components/icon/icons/TrendingDown.js +4 -5
  803. package/dist/esm/components/icon/icons/TrendingDown.js.map +1 -1
  804. package/dist/esm/components/icon/icons/TrendingUp.js +4 -5
  805. package/dist/esm/components/icon/icons/TrendingUp.js.map +1 -1
  806. package/dist/esm/components/icon/icons/Triangle.js +4 -5
  807. package/dist/esm/components/icon/icons/Triangle.js.map +1 -1
  808. package/dist/esm/components/icon/icons/Truck.js +4 -5
  809. package/dist/esm/components/icon/icons/Truck.js.map +1 -1
  810. package/dist/esm/components/icon/icons/Tv.js +4 -5
  811. package/dist/esm/components/icon/icons/Tv.js.map +1 -1
  812. package/dist/esm/components/icon/icons/Twitch.js +4 -5
  813. package/dist/esm/components/icon/icons/Twitch.js.map +1 -1
  814. package/dist/esm/components/icon/icons/Twitter.js +4 -5
  815. package/dist/esm/components/icon/icons/Twitter.js.map +1 -1
  816. package/dist/esm/components/icon/icons/Type.js +4 -5
  817. package/dist/esm/components/icon/icons/Type.js.map +1 -1
  818. package/dist/esm/components/icon/icons/UltrasoundScan.js +4 -5
  819. package/dist/esm/components/icon/icons/UltrasoundScan.js.map +1 -1
  820. package/dist/esm/components/icon/icons/Umbrella.js +4 -5
  821. package/dist/esm/components/icon/icons/Umbrella.js.map +1 -1
  822. package/dist/esm/components/icon/icons/Underline.js +4 -5
  823. package/dist/esm/components/icon/icons/Underline.js.map +1 -1
  824. package/dist/esm/components/icon/icons/Unlock.js +4 -5
  825. package/dist/esm/components/icon/icons/Unlock.js.map +1 -1
  826. package/dist/esm/components/icon/icons/Upload.js +4 -5
  827. package/dist/esm/components/icon/icons/Upload.js.map +1 -1
  828. package/dist/esm/components/icon/icons/UploadCloud.js +4 -5
  829. package/dist/esm/components/icon/icons/UploadCloud.js.map +1 -1
  830. package/dist/esm/components/icon/icons/User.js +4 -5
  831. package/dist/esm/components/icon/icons/User.js.map +1 -1
  832. package/dist/esm/components/icon/icons/UserCheck.js +4 -5
  833. package/dist/esm/components/icon/icons/UserCheck.js.map +1 -1
  834. package/dist/esm/components/icon/icons/UserFilled.js +4 -5
  835. package/dist/esm/components/icon/icons/UserFilled.js.map +1 -1
  836. package/dist/esm/components/icon/icons/UserMinus.js +4 -5
  837. package/dist/esm/components/icon/icons/UserMinus.js.map +1 -1
  838. package/dist/esm/components/icon/icons/UserPlus.js +4 -5
  839. package/dist/esm/components/icon/icons/UserPlus.js.map +1 -1
  840. package/dist/esm/components/icon/icons/UserX.js +4 -5
  841. package/dist/esm/components/icon/icons/UserX.js.map +1 -1
  842. package/dist/esm/components/icon/icons/Users.js +4 -5
  843. package/dist/esm/components/icon/icons/Users.js.map +1 -1
  844. package/dist/esm/components/icon/icons/Video.js +4 -5
  845. package/dist/esm/components/icon/icons/Video.js.map +1 -1
  846. package/dist/esm/components/icon/icons/VideoDoctor.js +4 -5
  847. package/dist/esm/components/icon/icons/VideoDoctor.js.map +1 -1
  848. package/dist/esm/components/icon/icons/VideoOff.js +4 -5
  849. package/dist/esm/components/icon/icons/VideoOff.js.map +1 -1
  850. package/dist/esm/components/icon/icons/VisaPassport.js +4 -5
  851. package/dist/esm/components/icon/icons/VisaPassport.js.map +1 -1
  852. package/dist/esm/components/icon/icons/VisaPassportFiled.js +4 -5
  853. package/dist/esm/components/icon/icons/VisaPassportFiled.js.map +1 -1
  854. package/dist/esm/components/icon/icons/Voicemail.js +4 -5
  855. package/dist/esm/components/icon/icons/Voicemail.js.map +1 -1
  856. package/dist/esm/components/icon/icons/Volume.js +4 -5
  857. package/dist/esm/components/icon/icons/Volume.js.map +1 -1
  858. package/dist/esm/components/icon/icons/Volume1.js +4 -5
  859. package/dist/esm/components/icon/icons/Volume1.js.map +1 -1
  860. package/dist/esm/components/icon/icons/Volume2.js +4 -5
  861. package/dist/esm/components/icon/icons/Volume2.js.map +1 -1
  862. package/dist/esm/components/icon/icons/VolumeX.js +4 -5
  863. package/dist/esm/components/icon/icons/VolumeX.js.map +1 -1
  864. package/dist/esm/components/icon/icons/Watch.js +4 -5
  865. package/dist/esm/components/icon/icons/Watch.js.map +1 -1
  866. package/dist/esm/components/icon/icons/Whatsapp.js +4 -5
  867. package/dist/esm/components/icon/icons/Whatsapp.js.map +1 -1
  868. package/dist/esm/components/icon/icons/Wifi.js +4 -5
  869. package/dist/esm/components/icon/icons/Wifi.js.map +1 -1
  870. package/dist/esm/components/icon/icons/WifiOff.js +4 -5
  871. package/dist/esm/components/icon/icons/WifiOff.js.map +1 -1
  872. package/dist/esm/components/icon/icons/Wind.js +4 -5
  873. package/dist/esm/components/icon/icons/Wind.js.map +1 -1
  874. package/dist/esm/components/icon/icons/WorldGlobeEarth.js +4 -5
  875. package/dist/esm/components/icon/icons/WorldGlobeEarth.js.map +1 -1
  876. package/dist/esm/components/icon/icons/X.js +4 -5
  877. package/dist/esm/components/icon/icons/X.js.map +1 -1
  878. package/dist/esm/components/icon/icons/XCircle.js +4 -5
  879. package/dist/esm/components/icon/icons/XCircle.js.map +1 -1
  880. package/dist/esm/components/icon/icons/XCircleFilled.js +4 -5
  881. package/dist/esm/components/icon/icons/XCircleFilled.js.map +1 -1
  882. package/dist/esm/components/icon/icons/XOctagon.js +4 -5
  883. package/dist/esm/components/icon/icons/XOctagon.js.map +1 -1
  884. package/dist/esm/components/icon/icons/XSquare.js +4 -5
  885. package/dist/esm/components/icon/icons/XSquare.js.map +1 -1
  886. package/dist/esm/components/icon/icons/Youtube.js +4 -5
  887. package/dist/esm/components/icon/icons/Youtube.js.map +1 -1
  888. package/dist/esm/components/icon/icons/Zap.js +4 -5
  889. package/dist/esm/components/icon/icons/Zap.js.map +1 -1
  890. package/dist/esm/components/icon/icons/ZapFilled.js +4 -5
  891. package/dist/esm/components/icon/icons/ZapFilled.js.map +1 -1
  892. package/dist/esm/components/icon/icons/ZapOff.js +4 -5
  893. package/dist/esm/components/icon/icons/ZapOff.js.map +1 -1
  894. package/dist/esm/components/icon/icons/ZoomIn.js +4 -5
  895. package/dist/esm/components/icon/icons/ZoomIn.js.map +1 -1
  896. package/dist/esm/components/icon/icons/ZoomOut.js +4 -5
  897. package/dist/esm/components/icon/icons/ZoomOut.js.map +1 -1
  898. package/dist/esm/components/icon/icons.stories.js +12 -37
  899. package/dist/esm/components/icon/icons.stories.js.map +1 -1
  900. package/dist/esm/components/icon/index.stories.js +17 -45
  901. package/dist/esm/components/icon/index.stories.js.map +1 -1
  902. package/dist/esm/components/informationBox/index.js +6 -7
  903. package/dist/esm/components/informationBox/index.js.map +1 -1
  904. package/dist/esm/components/informationBox/index.stories.js +11 -13
  905. package/dist/esm/components/informationBox/index.stories.js.map +1 -1
  906. package/dist/esm/components/informationBox/index.test.js +5 -6
  907. package/dist/esm/components/informationBox/index.test.js.map +1 -1
  908. package/dist/esm/components/input/autoSuggestInput/index.js +3120 -11
  909. package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
  910. package/dist/esm/components/input/autoSuggestInput/index.stories.js +39 -43
  911. package/dist/esm/components/input/autoSuggestInput/index.stories.js.map +1 -1
  912. package/dist/esm/components/input/autoSuggestMultiSelect/index.js +5 -8
  913. package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
  914. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js +23 -27
  915. package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js.map +1 -1
  916. package/dist/esm/components/input/checkbox/index.js +18 -22
  917. package/dist/esm/components/input/checkbox/index.js.map +1 -1
  918. package/dist/esm/components/input/checkbox/index.stories.js +98 -114
  919. package/dist/esm/components/input/checkbox/index.stories.js.map +1 -1
  920. package/dist/esm/components/input/checkbox/index.test.js +8 -9
  921. package/dist/esm/components/input/checkbox/index.test.js.map +1 -1
  922. package/dist/esm/components/input/currency/index.js +4 -5
  923. package/dist/esm/components/input/currency/index.js.map +1 -1
  924. package/dist/esm/components/input/currency/index.test.js +6 -7
  925. package/dist/esm/components/input/currency/index.test.js.map +1 -1
  926. package/dist/esm/components/input/currency/input.stories.js +17 -19
  927. package/dist/esm/components/input/currency/input.stories.js.map +1 -1
  928. package/dist/esm/components/input/iban/index.js +5 -6
  929. package/dist/esm/components/input/iban/index.js.map +1 -1
  930. package/dist/esm/components/input/index.js +12 -15
  931. package/dist/esm/components/input/index.js.map +1 -1
  932. package/dist/esm/components/input/input.stories.js +17 -19
  933. package/dist/esm/components/input/input.stories.js.map +1 -1
  934. package/dist/esm/components/input/radio/index.js +22 -25
  935. package/dist/esm/components/input/radio/index.js.map +1 -1
  936. package/dist/esm/components/input/radio/index.stories.js +114 -138
  937. package/dist/esm/components/input/radio/index.stories.js.map +1 -1
  938. package/dist/esm/components/input/radio/index.test.js +6 -8
  939. package/dist/esm/components/input/radio/index.test.js.map +1 -1
  940. package/dist/esm/components/input/toggle/index.js +5 -6
  941. package/dist/esm/components/input/toggle/index.js.map +1 -1
  942. package/dist/esm/components/input/toggle/index.stories.js +83 -95
  943. package/dist/esm/components/input/toggle/index.stories.js.map +1 -1
  944. package/dist/esm/components/input/toggle/index.test.js +9 -10
  945. package/dist/esm/components/input/toggle/index.test.js.map +1 -1
  946. package/dist/esm/components/link/index.js +2 -3
  947. package/dist/esm/components/link/index.js.map +1 -1
  948. package/dist/esm/components/link/index.stories.js +8 -10
  949. package/dist/esm/components/link/index.stories.js.map +1 -1
  950. package/dist/esm/components/modal/bottomModal/index.js +12 -11
  951. package/dist/esm/components/modal/bottomModal/index.js.map +1 -1
  952. package/dist/esm/components/modal/bottomOrRegularModal/index.js +4 -7
  953. package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -1
  954. package/dist/esm/components/modal/genericModal/index.js +22 -1787
  955. package/dist/esm/components/modal/genericModal/index.js.map +1 -1
  956. package/dist/esm/components/modal/index.stories.js +65 -122
  957. package/dist/esm/components/modal/index.stories.js.map +1 -1
  958. package/dist/esm/components/modal/regularModal/index.js +12 -12
  959. package/dist/esm/components/modal/regularModal/index.js.map +1 -1
  960. package/dist/esm/components/multiDropzone/UploadFileCell/index.js +14 -14
  961. package/dist/esm/components/multiDropzone/UploadFileCell/index.js.map +1 -1
  962. package/dist/esm/components/multiDropzone/index.js +1484 -1053
  963. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  964. package/dist/esm/components/multiDropzone/index.stories.js +31 -278
  965. package/dist/esm/components/multiDropzone/index.stories.js.map +1 -1
  966. package/dist/esm/components/multiDropzone/index.test.js +12 -14
  967. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  968. package/dist/esm/components/segmentedControl/index.js +6 -6
  969. package/dist/esm/components/segmentedControl/index.js.map +1 -1
  970. package/dist/esm/components/segmentedControl/index.stories.js +25 -28
  971. package/dist/esm/components/segmentedControl/index.stories.js.map +1 -1
  972. package/dist/esm/components/segmentedControl/index.test.js +4 -5
  973. package/dist/esm/components/segmentedControl/index.test.js.map +1 -1
  974. package/dist/esm/components/signaturePad/index.js +9 -9
  975. package/dist/esm/components/signaturePad/index.js.map +1 -1
  976. package/dist/esm/components/signaturePad/index.stories.js +12 -13
  977. package/dist/esm/components/signaturePad/index.stories.js.map +1 -1
  978. package/dist/esm/components/spinner/index.js +2 -3
  979. package/dist/esm/components/spinner/index.js.map +1 -1
  980. package/dist/esm/components/spinner/index.stories.js +9 -11
  981. package/dist/esm/components/spinner/index.stories.js.map +1 -1
  982. package/dist/esm/components/spinner/index.test.js +4 -5
  983. package/dist/esm/components/spinner/index.test.js.map +1 -1
  984. package/dist/esm/components/table/Table.js +39 -52
  985. package/dist/esm/components/table/Table.js.map +1 -1
  986. package/dist/esm/components/table/Table.stories.js +49 -95
  987. package/dist/esm/components/table/Table.stories.js.map +1 -1
  988. package/dist/esm/components/table/Table.test.js +20 -35
  989. package/dist/esm/components/table/Table.test.js.map +1 -1
  990. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +19 -19
  991. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
  992. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js +13 -16
  993. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js.map +1 -1
  994. package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +3 -4
  995. package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js.map +1 -1
  996. package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js +8 -10
  997. package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js.map +1 -1
  998. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +7 -8
  999. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
  1000. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +9 -11
  1001. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js.map +1 -1
  1002. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +7 -18
  1003. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
  1004. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js +10 -14
  1005. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js.map +1 -1
  1006. package/dist/esm/components/table/components/TableCell/TableCell.js +17 -24
  1007. package/dist/esm/components/table/components/TableCell/TableCell.js.map +1 -1
  1008. package/dist/esm/components/table/components/TableCell/TableCell.test.js +9 -16
  1009. package/dist/esm/components/table/components/TableCell/TableCell.test.js.map +1 -1
  1010. package/dist/esm/components/table/components/TableContents/Collapsible.js +5 -46
  1011. package/dist/esm/components/table/components/TableContents/Collapsible.js.map +1 -1
  1012. package/dist/esm/components/table/components/TableContents/TableContents.js +20 -35
  1013. package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
  1014. package/dist/esm/components/table/components/TableContents/TableContents.test.js +34 -19
  1015. package/dist/esm/components/table/components/TableContents/TableContents.test.js.map +1 -1
  1016. package/dist/esm/components/table/components/TableControls/TableControls.js +7 -9
  1017. package/dist/esm/components/table/components/TableControls/TableControls.js.map +1 -1
  1018. package/dist/esm/components/table/components/TableControls/TableControls.test.js +5 -6
  1019. package/dist/esm/components/table/components/TableControls/TableControls.test.js.map +1 -1
  1020. package/dist/esm/components/table/components/TableSection/TableSection.js +10 -17
  1021. package/dist/esm/components/table/components/TableSection/TableSection.js.map +1 -1
  1022. package/dist/esm/components/table/components/TableSection/TableSection.test.js +10 -18
  1023. package/dist/esm/components/table/components/TableSection/TableSection.test.js.map +1 -1
  1024. package/dist/esm/components/table/utils/useScrollSync/useScrollSync.test.js +13 -12
  1025. package/dist/esm/components/table/utils/useScrollSync/useScrollSync.test.js.map +1 -1
  1026. package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js +10 -10
  1027. package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js.map +1 -1
  1028. package/dist/esm/components/toast/index.js +6 -7
  1029. package/dist/esm/components/toast/index.js.map +1 -1
  1030. package/dist/esm/components/toast/index.stories.js +29 -37
  1031. package/dist/esm/components/toast/index.stories.js.map +1 -1
  1032. package/dist/esm/components/toast/index.test.js +6 -8
  1033. package/dist/esm/components/toast/index.test.js.map +1 -1
  1034. package/dist/esm/{config-PagIydiG.js → config-4b5ffe4f.js} +5 -6
  1035. package/dist/esm/config-4b5ffe4f.js.map +1 -0
  1036. package/dist/esm/customRender-d03c10b6.js +26463 -0
  1037. package/dist/esm/customRender-d03c10b6.js.map +1 -0
  1038. package/dist/esm/{feather-logo-C_EfYEK5.js → feather-logo-a3f07990.js} +1 -1
  1039. package/dist/esm/{feather-logo-C_EfYEK5.js.map → feather-logo-a3f07990.js.map} +1 -1
  1040. package/dist/esm/{index-C4hs4X-e.js → index-29e6f39e.js} +2 -2
  1041. package/dist/esm/index-29e6f39e.js.map +1 -0
  1042. package/dist/esm/index-3aa7e697.js +224 -0
  1043. package/dist/esm/index-3aa7e697.js.map +1 -0
  1044. package/dist/esm/index-5e72c3d4.js +382 -0
  1045. package/dist/esm/{index-BClARCFl.js.map → index-5e72c3d4.js.map} +1 -1
  1046. package/dist/esm/{index-CNcEE5dn.js → index-69a46657.js} +1 -1
  1047. package/dist/esm/index-69a46657.js.map +1 -0
  1048. package/dist/esm/index-6ea95111.js +62 -0
  1049. package/dist/esm/{index-DLQEsiym.js.map → index-6ea95111.js.map} +1 -1
  1050. package/dist/esm/index-6f567b0b.js +7856 -0
  1051. package/dist/esm/index-6f567b0b.js.map +1 -0
  1052. package/dist/esm/{index-sVpmwnLl.js → index-7506ae25.js} +47 -99
  1053. package/dist/esm/{index-sVpmwnLl.js.map → index-7506ae25.js.map} +1 -1
  1054. package/dist/esm/{index-DYcCCrfR.js → index-a0ef2ab4.js} +5 -5
  1055. package/dist/esm/{index-DYcCCrfR.js.map → index-a0ef2ab4.js.map} +1 -1
  1056. package/dist/esm/index-c9a8ee2a.js +234 -0
  1057. package/dist/esm/{index-CVgMNqD7.js.map → index-c9a8ee2a.js.map} +1 -1
  1058. package/dist/esm/index-caeac7cd.js +1529 -0
  1059. package/dist/esm/{index-CqsS0Elu.js.map → index-caeac7cd.js.map} +1 -1
  1060. package/dist/esm/index-dd80248b.js +91 -0
  1061. package/dist/esm/index-dd80248b.js.map +1 -0
  1062. package/dist/esm/index.d.ts +2 -2
  1063. package/dist/esm/index.js +22 -94
  1064. package/dist/esm/index.js.map +1 -1
  1065. package/dist/esm/lib/components/accordion/index.d.ts +1 -2
  1066. package/dist/esm/lib/components/accordion/index.stories.d.ts +3 -7
  1067. package/dist/esm/lib/components/autocompleteAddress/index.d.ts +2 -3
  1068. package/dist/esm/lib/components/autocompleteAddress/index.stories.d.ts +6 -12
  1069. package/dist/esm/lib/components/autocompleteAddress/util/index.d.ts +1 -1
  1070. package/dist/esm/lib/components/badge/index.d.ts +3 -4
  1071. package/dist/esm/lib/components/badge/index.stories.d.ts +3 -9
  1072. package/dist/esm/lib/components/button/index.d.ts +9 -13
  1073. package/dist/esm/lib/components/button/index.stories.d.ts +63 -0
  1074. package/dist/esm/lib/components/cards/card/index.d.ts +2 -6
  1075. package/dist/esm/lib/components/cards/card/index.stories.d.ts +6 -16
  1076. package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +2 -2
  1077. package/dist/esm/lib/components/cards/infoCard/index.d.ts +7 -9
  1078. package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +18 -24
  1079. package/dist/esm/lib/components/chip/index.stories.d.ts +2 -2
  1080. package/dist/esm/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +4 -1
  1081. package/dist/esm/lib/components/comparisonTable/index.stories.d.ts +2 -2
  1082. package/dist/esm/lib/components/dateSelector/index.d.ts +1 -1
  1083. package/dist/esm/lib/components/dateSelector/index.stories.d.ts +3 -5
  1084. package/dist/esm/lib/components/downloadButton/index.stories.d.ts +3 -5
  1085. package/dist/esm/lib/components/icon/icons/index.d.ts +0 -26
  1086. package/dist/esm/lib/components/icon/index.stories.d.ts +4 -4
  1087. package/dist/esm/lib/components/informationBox/index.stories.d.ts +2 -2
  1088. package/dist/esm/lib/components/input/autoSuggestInput/index.stories.d.ts +2 -2
  1089. package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +2 -2
  1090. package/dist/esm/lib/components/input/checkbox/index.d.ts +1 -2
  1091. package/dist/esm/lib/components/input/checkbox/index.stories.d.ts +8 -22
  1092. package/dist/esm/lib/components/input/currency/input.stories.d.ts +2 -3
  1093. package/dist/esm/lib/components/input/input.stories.d.ts +2 -3
  1094. package/dist/esm/lib/components/input/radio/index.d.ts +1 -3
  1095. package/dist/esm/lib/components/input/radio/index.stories.d.ts +10 -32
  1096. package/dist/esm/lib/components/input/stories/config.d.ts +0 -1
  1097. package/dist/esm/lib/components/input/toggle/index.stories.d.ts +7 -17
  1098. package/dist/esm/lib/components/link/index.stories.d.ts +2 -2
  1099. package/dist/esm/lib/components/modal/bottomModal/index.d.ts +1 -1
  1100. package/dist/esm/lib/components/modal/genericModal/index.d.ts +15 -17
  1101. package/dist/esm/lib/components/modal/hooks/useOnClose.d.ts +1 -1
  1102. package/dist/esm/lib/components/modal/index.d.ts +1 -6
  1103. package/dist/esm/lib/components/modal/index.stories.d.ts +9 -49
  1104. package/dist/esm/lib/components/modal/regularModal/index.d.ts +1 -1
  1105. package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +2 -11
  1106. package/dist/esm/lib/components/multiDropzone/types.d.ts +2 -3
  1107. package/dist/esm/lib/components/multiDropzone/utils/index.d.ts +2 -9
  1108. package/dist/esm/lib/components/segmentedControl/index.stories.d.ts +3 -5
  1109. package/dist/esm/lib/components/signaturePad/index.stories.d.ts +2 -2
  1110. package/dist/esm/lib/components/spinner/index.stories.d.ts +2 -2
  1111. package/dist/esm/lib/components/table/Table.d.ts +3 -10
  1112. package/dist/esm/lib/components/table/Table.stories.d.ts +4 -15
  1113. package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +3 -5
  1114. package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +3 -3
  1115. package/dist/esm/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +2 -2
  1116. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +2 -4
  1117. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +3 -3
  1118. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -6
  1119. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +3 -3
  1120. package/dist/esm/lib/components/table/components/TableCell/TableCell.d.ts +1 -3
  1121. package/dist/esm/lib/components/table/components/TableContents/Collapsible.d.ts +2 -1
  1122. package/dist/esm/lib/components/table/components/TableContents/TableContents.d.ts +1 -4
  1123. package/dist/esm/lib/components/table/components/TableSection/TableSection.d.ts +3 -4
  1124. package/dist/esm/lib/components/table/types.d.ts +4 -13
  1125. package/dist/esm/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +0 -1
  1126. package/dist/esm/lib/components/toast/index.stories.d.ts +4 -8
  1127. package/dist/esm/lib/index.d.ts +4 -16
  1128. package/dist/esm/lib/models/styles.d.ts +2 -2
  1129. package/dist/esm/lib/util/calendarDate/index.d.ts +1 -1
  1130. package/dist/esm/{mapStyle-C69a9tQ6.js → mapStyle-1288a869.js} +1 -1
  1131. package/dist/esm/{mapStyle-C69a9tQ6.js.map → mapStyle-1288a869.js.map} +1 -1
  1132. package/dist/esm/scss/private/base/demo.js +3 -3
  1133. package/dist/esm/scss/private/base/demo.js.map +1 -1
  1134. package/dist/esm/scss/public/demo.js +136 -156
  1135. package/dist/esm/scss/public/demo.js.map +1 -1
  1136. package/dist/esm/{style-inject.es-tgCJW-Cu.js → style-inject.es-1f59c1d0.js} +1 -1
  1137. package/dist/esm/style-inject.es-1f59c1d0.js.map +1 -0
  1138. package/dist/esm/{tslib.es6-CVlKGIvp.js → tslib.es6-a39f91fc.js} +3 -20
  1139. package/dist/esm/{tslib.es6-CVlKGIvp.js.map → tslib.es6-a39f91fc.js.map} +1 -1
  1140. package/dist/esm/{useScrollSync-C5UXYPIB.js → useScrollSync-b2d28bed.js} +1 -1
  1141. package/dist/esm/{useScrollSync-C5UXYPIB.js.map → useScrollSync-b2d28bed.js.map} +1 -1
  1142. package/dist/esm/{useTableNavigation-CrxoXTVd.js → useTableNavigation-2899712c.js} +4 -5
  1143. package/dist/esm/useTableNavigation-2899712c.js.map +1 -0
  1144. package/dist/esm/util/images/index.stories.js +12 -41
  1145. package/dist/esm/util/images/index.stories.js.map +1 -1
  1146. package/dist/esm/util/testUtils/customRender.js +3 -4
  1147. package/dist/esm/util/testUtils/customRender.js.map +1 -1
  1148. package/dist/font-weight.scss +1 -1
  1149. package/dist/grid.scss +1 -1
  1150. package/dist/index.css +481 -512
  1151. package/dist/index.css.map +1 -1
  1152. package/dist/lib/scss/index.scss +4 -5
  1153. package/dist/lib/scss/private/base/_grid.scss +2 -3
  1154. package/dist/lib/scss/private/base/_typography.scss +57 -25
  1155. package/dist/lib/scss/private/base/flex/_flex.scss +2 -3
  1156. package/dist/lib/scss/private/base/style.module.scss +3 -3
  1157. package/dist/lib/scss/private/components/_badge.scss +3 -3
  1158. package/dist/lib/scss/private/components/_buttons.scss +86 -128
  1159. package/dist/lib/scss/private/components/_cards.scss +6 -8
  1160. package/dist/lib/scss/private/components/_input.scss +35 -59
  1161. package/dist/lib/scss/private/components/_notices.scss +4 -4
  1162. package/dist/lib/scss/private/components/_spinner.scss +2 -2
  1163. package/dist/lib/scss/public/colors/_index.scss +2 -2
  1164. package/dist/lib/scss/public/colors/default.scss +91 -80
  1165. package/dist/lib/scss/public/demo.tsx +139 -165
  1166. package/dist/lib/scss/public/font/_index.scss +2 -2
  1167. package/dist/lib/scss/public/font-weight.scss +1 -1
  1168. package/dist/lib/scss/public/grid.stories.mdx.broken +1 -1
  1169. package/dist/lib/scss/public/shadows.scss +5 -10
  1170. package/dist/lib/scss/third-party/_google_places.scss +3 -3
  1171. package/dist/lib/scss/third-party/_index.scss +1 -1
  1172. package/dist/lib/scss/utils/_index.scss +2 -4
  1173. package/dist/shadows.scss +1 -1
  1174. package/package.json +1 -1
  1175. package/src/index.tsx +1 -0
  1176. package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.tsx +42 -5
  1177. package/src/lib/components/comparisonTable/hooks/useComparisonTable.ts +0 -3
  1178. package/src/lib/components/comparisonTable/index.stories.tsx +15 -1
  1179. package/src/lib/components/comparisonTable/index.tsx +21 -3
  1180. package/src/lib/components/dateSelector/components/Calendar.tsx +38 -7
  1181. package/src/lib/components/dateSelector/components/CalendarCaption.tsx +175 -0
  1182. package/src/lib/components/dateSelector/components/calendarCaption.module.scss +168 -0
  1183. package/src/lib/components/dateSelector/components/datepicker.scss +33 -77
  1184. package/src/lib/components/dateSelector/index.stories.tsx +8 -2
  1185. package/src/lib/components/dateSelector/index.tsx +3 -0
  1186. package/src/lib/components/icon/assets/chevron-left.svg +1 -1
  1187. package/src/lib/components/icon/assets/chevron-right.svg +1 -1
  1188. package/src/lib/components/table/Table.stories.tsx +60 -1
  1189. package/src/lib/components/table/Table.tsx +34 -21
  1190. package/src/lib/components/table/components/TableContents/Collapsible.tsx +3 -1
  1191. package/src/lib/components/table/components/TableContents/TableContents.tsx +31 -3
  1192. package/src/lib/index.tsx +2 -1
  1193. package/dist/cjs/lib/components/icon/icons/AccidentCar.d.ts +0 -4
  1194. package/dist/cjs/lib/components/icon/icons/BikeBicycle.d.ts +0 -4
  1195. package/dist/cjs/lib/components/icon/icons/Blog.d.ts +0 -4
  1196. package/dist/cjs/lib/components/icon/icons/Bone.d.ts +0 -4
  1197. package/dist/cjs/lib/components/icon/icons/Car.d.ts +0 -4
  1198. package/dist/cjs/lib/components/icon/icons/CarTraffic.d.ts +0 -4
  1199. package/dist/cjs/lib/components/icon/icons/ChainBikeBroken.d.ts +0 -4
  1200. package/dist/cjs/lib/components/icon/icons/CoinsMoney.d.ts +0 -4
  1201. package/dist/cjs/lib/components/icon/icons/DeathFuneral.d.ts +0 -4
  1202. package/dist/cjs/lib/components/icon/icons/DentalTreatmentTooth.d.ts +0 -4
  1203. package/dist/cjs/lib/components/icon/icons/Files.d.ts +0 -4
  1204. package/dist/cjs/lib/components/icon/icons/Fire.d.ts +0 -4
  1205. package/dist/cjs/lib/components/icon/icons/Glass.d.ts +0 -4
  1206. package/dist/cjs/lib/components/icon/icons/HatGraduation.d.ts +0 -4
  1207. package/dist/cjs/lib/components/icon/icons/Id.d.ts +0 -4
  1208. package/dist/cjs/lib/components/icon/icons/PaintCosmetic.d.ts +0 -4
  1209. package/dist/cjs/lib/components/icon/icons/PawPet.d.ts +0 -4
  1210. package/dist/cjs/lib/components/icon/icons/PigMoneySavings.d.ts +0 -4
  1211. package/dist/cjs/lib/components/icon/icons/PlaneFlight.d.ts +0 -4
  1212. package/dist/cjs/lib/components/icon/icons/Prohibit.d.ts +0 -4
  1213. package/dist/cjs/lib/components/icon/icons/Receipt.d.ts +0 -4
  1214. package/dist/cjs/lib/components/icon/icons/Signature.d.ts +0 -4
  1215. package/dist/cjs/lib/components/icon/icons/Stamp.d.ts +0 -4
  1216. package/dist/cjs/lib/components/icon/icons/ToothFillingCracked.d.ts +0 -4
  1217. package/dist/cjs/lib/components/icon/icons/TrailerParts.d.ts +0 -4
  1218. package/dist/cjs/lib/components/icon/icons/Translation.d.ts +0 -4
  1219. package/dist/cjs/lib/components/logo/LogoBlack.d.ts +0 -3
  1220. package/dist/cjs/lib/components/logo/LogoColor.d.ts +0 -3
  1221. package/dist/cjs/lib/components/logo/LogoInverted.d.ts +0 -368
  1222. package/dist/cjs/lib/components/logo/LogoInvertedColor.d.ts +0 -368
  1223. package/dist/cjs/lib/components/logo/LogoOrangeBox.d.ts +0 -3
  1224. package/dist/cjs/lib/components/logo/LogoPositiveBlack.d.ts +0 -368
  1225. package/dist/cjs/lib/components/logo/LogoPositiveColor.d.ts +0 -368
  1226. package/dist/cjs/lib/components/logo/LogoWhite.d.ts +0 -3
  1227. package/dist/cjs/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +0 -9
  1228. package/dist/cjs/lib/components/logo/logo.stories.d.ts +0 -10
  1229. package/dist/cjs/lib/components/modal/fullScreenModal/index.d.ts +0 -3
  1230. package/dist/cjs/lib/components/table/components/IconRenderer/IconRenderer.d.ts +0 -7
  1231. package/dist/cjs/lib/components/table/components/TableCell/CardCell/CardCell.d.ts +0 -10
  1232. package/dist/cjs/lib/components/table/components/TableCell/CardCell/CardCell.stories.d.ts +0 -17
  1233. package/dist/cjs/lib/hooks/useEscapeKey.d.ts +0 -1
  1234. package/dist/cjs/lib/hooks/useFocusWithin.d.ts +0 -1
  1235. package/dist/cjs/lib/scss/public/borders.stories.d.ts +0 -13
  1236. package/dist/cjs/mapStyle-Cf8tRlj8.js.map +0 -1
  1237. package/dist/esm/Calendar-DnUl9SJx.js +0 -2189
  1238. package/dist/esm/Calendar-DnUl9SJx.js.map +0 -1
  1239. package/dist/esm/TableSection-CEhD4eoy.js.map +0 -1
  1240. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -8
  1241. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  1242. package/dist/esm/components/icon/icons/AccidentCar.js +0 -14
  1243. package/dist/esm/components/icon/icons/AccidentCar.js.map +0 -1
  1244. package/dist/esm/components/icon/icons/BikeBicycle.js +0 -14
  1245. package/dist/esm/components/icon/icons/BikeBicycle.js.map +0 -1
  1246. package/dist/esm/components/icon/icons/Blog.js +0 -14
  1247. package/dist/esm/components/icon/icons/Blog.js.map +0 -1
  1248. package/dist/esm/components/icon/icons/Bone.js +0 -14
  1249. package/dist/esm/components/icon/icons/Bone.js.map +0 -1
  1250. package/dist/esm/components/icon/icons/Car.js +0 -14
  1251. package/dist/esm/components/icon/icons/Car.js.map +0 -1
  1252. package/dist/esm/components/icon/icons/CarTraffic.js +0 -14
  1253. package/dist/esm/components/icon/icons/CarTraffic.js.map +0 -1
  1254. package/dist/esm/components/icon/icons/ChainBikeBroken.js +0 -14
  1255. package/dist/esm/components/icon/icons/ChainBikeBroken.js.map +0 -1
  1256. package/dist/esm/components/icon/icons/CoinsMoney.js +0 -14
  1257. package/dist/esm/components/icon/icons/CoinsMoney.js.map +0 -1
  1258. package/dist/esm/components/icon/icons/DeathFuneral.js +0 -14
  1259. package/dist/esm/components/icon/icons/DeathFuneral.js.map +0 -1
  1260. package/dist/esm/components/icon/icons/DentalTreatmentTooth.js +0 -14
  1261. package/dist/esm/components/icon/icons/DentalTreatmentTooth.js.map +0 -1
  1262. package/dist/esm/components/icon/icons/Files.js +0 -14
  1263. package/dist/esm/components/icon/icons/Files.js.map +0 -1
  1264. package/dist/esm/components/icon/icons/Fire.js +0 -14
  1265. package/dist/esm/components/icon/icons/Fire.js.map +0 -1
  1266. package/dist/esm/components/icon/icons/Glass.js +0 -14
  1267. package/dist/esm/components/icon/icons/Glass.js.map +0 -1
  1268. package/dist/esm/components/icon/icons/HatGraduation.js +0 -14
  1269. package/dist/esm/components/icon/icons/HatGraduation.js.map +0 -1
  1270. package/dist/esm/components/icon/icons/Id.js +0 -14
  1271. package/dist/esm/components/icon/icons/Id.js.map +0 -1
  1272. package/dist/esm/components/icon/icons/PaintCosmetic.js +0 -14
  1273. package/dist/esm/components/icon/icons/PaintCosmetic.js.map +0 -1
  1274. package/dist/esm/components/icon/icons/PawPet.js +0 -14
  1275. package/dist/esm/components/icon/icons/PawPet.js.map +0 -1
  1276. package/dist/esm/components/icon/icons/PigMoneySavings.js +0 -14
  1277. package/dist/esm/components/icon/icons/PigMoneySavings.js.map +0 -1
  1278. package/dist/esm/components/icon/icons/PlaneFlight.js +0 -14
  1279. package/dist/esm/components/icon/icons/PlaneFlight.js.map +0 -1
  1280. package/dist/esm/components/icon/icons/Prohibit.js +0 -14
  1281. package/dist/esm/components/icon/icons/Prohibit.js.map +0 -1
  1282. package/dist/esm/components/icon/icons/Receipt.js +0 -14
  1283. package/dist/esm/components/icon/icons/Receipt.js.map +0 -1
  1284. package/dist/esm/components/icon/icons/Signature.js +0 -14
  1285. package/dist/esm/components/icon/icons/Signature.js.map +0 -1
  1286. package/dist/esm/components/icon/icons/Stamp.js +0 -14
  1287. package/dist/esm/components/icon/icons/Stamp.js.map +0 -1
  1288. package/dist/esm/components/icon/icons/ToothFillingCracked.js +0 -14
  1289. package/dist/esm/components/icon/icons/ToothFillingCracked.js.map +0 -1
  1290. package/dist/esm/components/icon/icons/TrailerParts.js +0 -14
  1291. package/dist/esm/components/icon/icons/TrailerParts.js.map +0 -1
  1292. package/dist/esm/components/icon/icons/Translation.js +0 -14
  1293. package/dist/esm/components/icon/icons/Translation.js.map +0 -1
  1294. package/dist/esm/components/logo/LogoBlack.js +0 -14
  1295. package/dist/esm/components/logo/LogoBlack.js.map +0 -1
  1296. package/dist/esm/components/logo/LogoColor.js +0 -14
  1297. package/dist/esm/components/logo/LogoColor.js.map +0 -1
  1298. package/dist/esm/components/logo/LogoInverted.js +0 -14
  1299. package/dist/esm/components/logo/LogoInverted.js.map +0 -1
  1300. package/dist/esm/components/logo/LogoInvertedColor.js +0 -14
  1301. package/dist/esm/components/logo/LogoInvertedColor.js.map +0 -1
  1302. package/dist/esm/components/logo/LogoOrangeBox.js +0 -14
  1303. package/dist/esm/components/logo/LogoOrangeBox.js.map +0 -1
  1304. package/dist/esm/components/logo/LogoPositiveBlack.js +0 -14
  1305. package/dist/esm/components/logo/LogoPositiveBlack.js.map +0 -1
  1306. package/dist/esm/components/logo/LogoPositiveColor.js +0 -14
  1307. package/dist/esm/components/logo/LogoPositiveColor.js.map +0 -1
  1308. package/dist/esm/components/logo/LogoWhite.js +0 -14
  1309. package/dist/esm/components/logo/LogoWhite.js.map +0 -1
  1310. package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js +0 -17
  1311. package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js.map +0 -1
  1312. package/dist/esm/components/logo/logo.stories.js +0 -28
  1313. package/dist/esm/components/logo/logo.stories.js.map +0 -1
  1314. package/dist/esm/components/modal/fullScreenModal/index.js +0 -30
  1315. package/dist/esm/components/modal/fullScreenModal/index.js.map +0 -1
  1316. package/dist/esm/components/table/components/IconRenderer/IconRenderer.js +0 -12
  1317. package/dist/esm/components/table/components/IconRenderer/IconRenderer.js.map +0 -1
  1318. package/dist/esm/components/table/components/TableCell/CardCell/CardCell.js +0 -19
  1319. package/dist/esm/components/table/components/TableCell/CardCell/CardCell.js.map +0 -1
  1320. package/dist/esm/components/table/components/TableCell/CardCell/CardCell.stories.js +0 -34
  1321. package/dist/esm/components/table/components/TableCell/CardCell/CardCell.stories.js.map +0 -1
  1322. package/dist/esm/config-PagIydiG.js.map +0 -1
  1323. package/dist/esm/customRender-DzdqZxUd.js +0 -24363
  1324. package/dist/esm/customRender-DzdqZxUd.js.map +0 -1
  1325. package/dist/esm/index-BClARCFl.js +0 -393
  1326. package/dist/esm/index-BCxawEMQ.js +0 -3947
  1327. package/dist/esm/index-BCxawEMQ.js.map +0 -1
  1328. package/dist/esm/index-BYyiyH6K.js +0 -4
  1329. package/dist/esm/index-BYyiyH6K.js.map +0 -1
  1330. package/dist/esm/index-BraF21Ae.js +0 -2222
  1331. package/dist/esm/index-BraF21Ae.js.map +0 -1
  1332. package/dist/esm/index-C4IAMlRE.js +0 -32
  1333. package/dist/esm/index-C4IAMlRE.js.map +0 -1
  1334. package/dist/esm/index-C4hs4X-e.js.map +0 -1
  1335. package/dist/esm/index-CNcEE5dn.js.map +0 -1
  1336. package/dist/esm/index-CVgMNqD7.js +0 -279
  1337. package/dist/esm/index-CqsS0Elu.js +0 -1539
  1338. package/dist/esm/index-DLQEsiym.js +0 -72
  1339. package/dist/esm/index-DZVEBgCf.js +0 -488
  1340. package/dist/esm/index-DZVEBgCf.js.map +0 -1
  1341. package/dist/esm/index-D_8pWbzR.js +0 -185
  1342. package/dist/esm/index-D_8pWbzR.js.map +0 -1
  1343. package/dist/esm/index-DuaJiEiT.js +0 -1062
  1344. package/dist/esm/index-DuaJiEiT.js.map +0 -1
  1345. package/dist/esm/index-hWqCLhoS.js +0 -100
  1346. package/dist/esm/index-hWqCLhoS.js.map +0 -1
  1347. package/dist/esm/lib/components/icon/icons/AccidentCar.d.ts +0 -4
  1348. package/dist/esm/lib/components/icon/icons/BikeBicycle.d.ts +0 -4
  1349. package/dist/esm/lib/components/icon/icons/Blog.d.ts +0 -4
  1350. package/dist/esm/lib/components/icon/icons/Bone.d.ts +0 -4
  1351. package/dist/esm/lib/components/icon/icons/Car.d.ts +0 -4
  1352. package/dist/esm/lib/components/icon/icons/CarTraffic.d.ts +0 -4
  1353. package/dist/esm/lib/components/icon/icons/ChainBikeBroken.d.ts +0 -4
  1354. package/dist/esm/lib/components/icon/icons/CoinsMoney.d.ts +0 -4
  1355. package/dist/esm/lib/components/icon/icons/DeathFuneral.d.ts +0 -4
  1356. package/dist/esm/lib/components/icon/icons/DentalTreatmentTooth.d.ts +0 -4
  1357. package/dist/esm/lib/components/icon/icons/Files.d.ts +0 -4
  1358. package/dist/esm/lib/components/icon/icons/Fire.d.ts +0 -4
  1359. package/dist/esm/lib/components/icon/icons/Glass.d.ts +0 -4
  1360. package/dist/esm/lib/components/icon/icons/HatGraduation.d.ts +0 -4
  1361. package/dist/esm/lib/components/icon/icons/Id.d.ts +0 -4
  1362. package/dist/esm/lib/components/icon/icons/PaintCosmetic.d.ts +0 -4
  1363. package/dist/esm/lib/components/icon/icons/PawPet.d.ts +0 -4
  1364. package/dist/esm/lib/components/icon/icons/PigMoneySavings.d.ts +0 -4
  1365. package/dist/esm/lib/components/icon/icons/PlaneFlight.d.ts +0 -4
  1366. package/dist/esm/lib/components/icon/icons/Prohibit.d.ts +0 -4
  1367. package/dist/esm/lib/components/icon/icons/Receipt.d.ts +0 -4
  1368. package/dist/esm/lib/components/icon/icons/Signature.d.ts +0 -4
  1369. package/dist/esm/lib/components/icon/icons/Stamp.d.ts +0 -4
  1370. package/dist/esm/lib/components/icon/icons/ToothFillingCracked.d.ts +0 -4
  1371. package/dist/esm/lib/components/icon/icons/TrailerParts.d.ts +0 -4
  1372. package/dist/esm/lib/components/icon/icons/Translation.d.ts +0 -4
  1373. package/dist/esm/lib/components/logo/LogoBlack.d.ts +0 -3
  1374. package/dist/esm/lib/components/logo/LogoColor.d.ts +0 -3
  1375. package/dist/esm/lib/components/logo/LogoInverted.d.ts +0 -368
  1376. package/dist/esm/lib/components/logo/LogoInvertedColor.d.ts +0 -368
  1377. package/dist/esm/lib/components/logo/LogoOrangeBox.d.ts +0 -3
  1378. package/dist/esm/lib/components/logo/LogoPositiveBlack.d.ts +0 -368
  1379. package/dist/esm/lib/components/logo/LogoPositiveColor.d.ts +0 -368
  1380. package/dist/esm/lib/components/logo/LogoWhite.d.ts +0 -3
  1381. package/dist/esm/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +0 -9
  1382. package/dist/esm/lib/components/logo/logo.stories.d.ts +0 -10
  1383. package/dist/esm/lib/components/modal/fullScreenModal/index.d.ts +0 -3
  1384. package/dist/esm/lib/components/table/components/IconRenderer/IconRenderer.d.ts +0 -7
  1385. package/dist/esm/lib/components/table/components/TableCell/CardCell/CardCell.d.ts +0 -10
  1386. package/dist/esm/lib/components/table/components/TableCell/CardCell/CardCell.stories.d.ts +0 -17
  1387. package/dist/esm/lib/hooks/useEscapeKey.d.ts +0 -1
  1388. package/dist/esm/lib/hooks/useFocusWithin.d.ts +0 -1
  1389. package/dist/esm/lib/scss/public/borders.stories.d.ts +0 -13
  1390. package/dist/esm/scss/public/borders.stories.js +0 -86
  1391. package/dist/esm/scss/public/borders.stories.js.map +0 -1
  1392. package/dist/esm/style-inject.es-tgCJW-Cu.js.map +0 -1
  1393. package/dist/esm/useMediaQuery-BlEUymPA.js.map +0 -1
  1394. package/dist/esm/useTableNavigation-CrxoXTVd.js.map +0 -1
  1395. package/dist/lib/scss/private/borders/_index.scss +0 -1
  1396. package/dist/lib/scss/private/borders/default.scss +0 -61
  1397. package/dist/lib/scss/public/borders.stories.tsx +0 -125
@@ -1,16 +1,3125 @@
1
- import { b as __assign } from '../../../tslib.es6-CVlKGIvp.js';
1
+ import { a as __assign } from '../../../tslib.es6-a39f91fc.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { c as classNames } from '../../../index-DLQEsiym.js';
4
- import { A as Autosuggest } from '../../../index-BraF21Ae.js';
5
- import { s as styleInject } from '../../../style-inject.es-tgCJW-Cu.js';
3
+ import { c as classNames } from '../../../index-6ea95111.js';
4
+ import require$$0__default from 'react';
5
+ import { o as objectAssign$1 } from '../../../index-dd80248b.js';
6
+ import { s as styleInject } from '../../../style-inject.es-1f59c1d0.js';
6
7
  import { Input } from '../index.js';
7
- import '../../../_commonjsHelpers-BFTU3MAI.js';
8
- import 'react';
9
- import '../../../index-DuaJiEiT.js';
10
- import '../../../index-hWqCLhoS.js';
11
- import '../../../index-CNcEE5dn.js';
8
+ import '../../../index-69a46657.js';
12
9
 
13
- var css_248z = "@keyframes style-module_appearInAnimation__yvH4A {\n from {\n opacity: 0;\n transform: translateY(16px);\n }\n to {\n opacity: 1;\n }\n}\n.style-module_suggestionsContainer__2yVXd {\n position: relative;\n}\n\n.style-module_suggestionsList__11o48 {\n position: absolute;\n z-index: 100;\n overflow: hidden;\n border-radius: 8px;\n border: 1px solid var(--ds-neutral-600);\n width: 100%;\n height: fit-content;\n max-height: 216px;\n overflow-y: scroll;\n background-color: white;\n animation-name: style-module_appearInAnimation__yvH4A;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform: translateY(8px);\n}\n\n.style-module_suggestion-option__z7pqG {\n display: flex;\n align-items: center;\n cursor: pointer;\n position: relative;\n margin: 0;\n padding: 12px 16px;\n color: var(--ds-neutral-900);\n min-height: 48px;\n line-height: 24px;\n}\n\n.style-module_suggestion-img__1TfiA {\n width: 32px;\n height: 24px;\n border-radius: 2px;\n}\n\n.style-module_suggestion-text__7wL31 {\n flex: 1;\n}\n\n.style-module_nowrap__uks9c {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.style-module_suggestionHighlighted__2zu5h {\n background-color: var(--ds-orange-100);\n}";
10
+ var Autosuggest = {};
11
+
12
+ var propTypes = {exports: {}};
13
+
14
+ var reactIs = {exports: {}};
15
+
16
+ var reactIs_production_min = {};
17
+
18
+ /** @license React v16.13.1
19
+ * react-is.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */
26
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
27
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
28
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
29
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
30
+ reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
31
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
32
+
33
+ var reactIs_development = {};
34
+
35
+ /** @license React v16.13.1
36
+ * react-is.development.js
37
+ *
38
+ * Copyright (c) Facebook, Inc. and its affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */
43
+
44
+
45
+
46
+ if (process.env.NODE_ENV !== "production") {
47
+ (function() {
48
+
49
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
50
+ // nor polyfill, then a plain number is used for performance.
51
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
52
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
53
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
54
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
55
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
56
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
57
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
58
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
59
+ // (unstable) APIs that have been removed. Can we remove the symbols?
60
+
61
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
62
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
63
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
64
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
65
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
66
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
67
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
68
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
69
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
70
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
71
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
72
+
73
+ function isValidElementType(type) {
74
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
75
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
76
+ }
77
+
78
+ function typeOf(object) {
79
+ if (typeof object === 'object' && object !== null) {
80
+ var $$typeof = object.$$typeof;
81
+
82
+ switch ($$typeof) {
83
+ case REACT_ELEMENT_TYPE:
84
+ var type = object.type;
85
+
86
+ switch (type) {
87
+ case REACT_ASYNC_MODE_TYPE:
88
+ case REACT_CONCURRENT_MODE_TYPE:
89
+ case REACT_FRAGMENT_TYPE:
90
+ case REACT_PROFILER_TYPE:
91
+ case REACT_STRICT_MODE_TYPE:
92
+ case REACT_SUSPENSE_TYPE:
93
+ return type;
94
+
95
+ default:
96
+ var $$typeofType = type && type.$$typeof;
97
+
98
+ switch ($$typeofType) {
99
+ case REACT_CONTEXT_TYPE:
100
+ case REACT_FORWARD_REF_TYPE:
101
+ case REACT_LAZY_TYPE:
102
+ case REACT_MEMO_TYPE:
103
+ case REACT_PROVIDER_TYPE:
104
+ return $$typeofType;
105
+
106
+ default:
107
+ return $$typeof;
108
+ }
109
+
110
+ }
111
+
112
+ case REACT_PORTAL_TYPE:
113
+ return $$typeof;
114
+ }
115
+ }
116
+
117
+ return undefined;
118
+ } // AsyncMode is deprecated along with isAsyncMode
119
+
120
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
121
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
122
+ var ContextConsumer = REACT_CONTEXT_TYPE;
123
+ var ContextProvider = REACT_PROVIDER_TYPE;
124
+ var Element = REACT_ELEMENT_TYPE;
125
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
126
+ var Fragment = REACT_FRAGMENT_TYPE;
127
+ var Lazy = REACT_LAZY_TYPE;
128
+ var Memo = REACT_MEMO_TYPE;
129
+ var Portal = REACT_PORTAL_TYPE;
130
+ var Profiler = REACT_PROFILER_TYPE;
131
+ var StrictMode = REACT_STRICT_MODE_TYPE;
132
+ var Suspense = REACT_SUSPENSE_TYPE;
133
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
134
+
135
+ function isAsyncMode(object) {
136
+ {
137
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
138
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
139
+
140
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
141
+ }
142
+ }
143
+
144
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
145
+ }
146
+ function isConcurrentMode(object) {
147
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
148
+ }
149
+ function isContextConsumer(object) {
150
+ return typeOf(object) === REACT_CONTEXT_TYPE;
151
+ }
152
+ function isContextProvider(object) {
153
+ return typeOf(object) === REACT_PROVIDER_TYPE;
154
+ }
155
+ function isElement(object) {
156
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
157
+ }
158
+ function isForwardRef(object) {
159
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
160
+ }
161
+ function isFragment(object) {
162
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
163
+ }
164
+ function isLazy(object) {
165
+ return typeOf(object) === REACT_LAZY_TYPE;
166
+ }
167
+ function isMemo(object) {
168
+ return typeOf(object) === REACT_MEMO_TYPE;
169
+ }
170
+ function isPortal(object) {
171
+ return typeOf(object) === REACT_PORTAL_TYPE;
172
+ }
173
+ function isProfiler(object) {
174
+ return typeOf(object) === REACT_PROFILER_TYPE;
175
+ }
176
+ function isStrictMode(object) {
177
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
178
+ }
179
+ function isSuspense(object) {
180
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
181
+ }
182
+
183
+ reactIs_development.AsyncMode = AsyncMode;
184
+ reactIs_development.ConcurrentMode = ConcurrentMode;
185
+ reactIs_development.ContextConsumer = ContextConsumer;
186
+ reactIs_development.ContextProvider = ContextProvider;
187
+ reactIs_development.Element = Element;
188
+ reactIs_development.ForwardRef = ForwardRef;
189
+ reactIs_development.Fragment = Fragment;
190
+ reactIs_development.Lazy = Lazy;
191
+ reactIs_development.Memo = Memo;
192
+ reactIs_development.Portal = Portal;
193
+ reactIs_development.Profiler = Profiler;
194
+ reactIs_development.StrictMode = StrictMode;
195
+ reactIs_development.Suspense = Suspense;
196
+ reactIs_development.isAsyncMode = isAsyncMode;
197
+ reactIs_development.isConcurrentMode = isConcurrentMode;
198
+ reactIs_development.isContextConsumer = isContextConsumer;
199
+ reactIs_development.isContextProvider = isContextProvider;
200
+ reactIs_development.isElement = isElement;
201
+ reactIs_development.isForwardRef = isForwardRef;
202
+ reactIs_development.isFragment = isFragment;
203
+ reactIs_development.isLazy = isLazy;
204
+ reactIs_development.isMemo = isMemo;
205
+ reactIs_development.isPortal = isPortal;
206
+ reactIs_development.isProfiler = isProfiler;
207
+ reactIs_development.isStrictMode = isStrictMode;
208
+ reactIs_development.isSuspense = isSuspense;
209
+ reactIs_development.isValidElementType = isValidElementType;
210
+ reactIs_development.typeOf = typeOf;
211
+ })();
212
+ }
213
+
214
+ if (process.env.NODE_ENV === 'production') {
215
+ reactIs.exports = reactIs_production_min;
216
+ } else {
217
+ reactIs.exports = reactIs_development;
218
+ }
219
+
220
+ /**
221
+ * Copyright (c) 2013-present, Facebook, Inc.
222
+ *
223
+ * This source code is licensed under the MIT license found in the
224
+ * LICENSE file in the root directory of this source tree.
225
+ */
226
+
227
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
228
+
229
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
230
+
231
+ /**
232
+ * Copyright (c) 2013-present, Facebook, Inc.
233
+ *
234
+ * This source code is licensed under the MIT license found in the
235
+ * LICENSE file in the root directory of this source tree.
236
+ */
237
+
238
+ var printWarning$1 = function() {};
239
+
240
+ if (process.env.NODE_ENV !== 'production') {
241
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
242
+ var loggedTypeFailures = {};
243
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
244
+
245
+ printWarning$1 = function(text) {
246
+ var message = 'Warning: ' + text;
247
+ if (typeof console !== 'undefined') {
248
+ console.error(message);
249
+ }
250
+ try {
251
+ // --- Welcome to debugging React ---
252
+ // This error was thrown as a convenience so that you can use this stack
253
+ // to find the callsite that caused this warning to fire.
254
+ throw new Error(message);
255
+ } catch (x) {}
256
+ };
257
+ }
258
+
259
+ /**
260
+ * Assert that the values match with the type specs.
261
+ * Error messages are memorized and will only be shown once.
262
+ *
263
+ * @param {object} typeSpecs Map of name to a ReactPropType
264
+ * @param {object} values Runtime values that need to be type-checked
265
+ * @param {string} location e.g. "prop", "context", "child context"
266
+ * @param {string} componentName Name of the component for error messages.
267
+ * @param {?Function} getStack Returns the component stack.
268
+ * @private
269
+ */
270
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
271
+ if (process.env.NODE_ENV !== 'production') {
272
+ for (var typeSpecName in typeSpecs) {
273
+ if (has$1(typeSpecs, typeSpecName)) {
274
+ var error;
275
+ // Prop type validation may throw. In case they do, we don't want to
276
+ // fail the render phase where it didn't fail before. So we log it.
277
+ // After these have been cleaned up, we'll let them throw.
278
+ try {
279
+ // This is intentionally an invariant that gets caught. It's the same
280
+ // behavior as without this statement except with a better message.
281
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
282
+ var err = Error(
283
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
284
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
285
+ );
286
+ err.name = 'Invariant Violation';
287
+ throw err;
288
+ }
289
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
290
+ } catch (ex) {
291
+ error = ex;
292
+ }
293
+ if (error && !(error instanceof Error)) {
294
+ printWarning$1(
295
+ (componentName || 'React class') + ': type specification of ' +
296
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
297
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
298
+ 'You may have forgotten to pass an argument to the type checker ' +
299
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
300
+ 'shape all require an argument).'
301
+ );
302
+ }
303
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
304
+ // Only monitor this failure once because there tends to be a lot of the
305
+ // same error.
306
+ loggedTypeFailures[error.message] = true;
307
+
308
+ var stack = getStack ? getStack() : '';
309
+
310
+ printWarning$1(
311
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
312
+ );
313
+ }
314
+ }
315
+ }
316
+ }
317
+ }
318
+
319
+ /**
320
+ * Resets warning cache when testing.
321
+ *
322
+ * @private
323
+ */
324
+ checkPropTypes$1.resetWarningCache = function() {
325
+ if (process.env.NODE_ENV !== 'production') {
326
+ loggedTypeFailures = {};
327
+ }
328
+ };
329
+
330
+ var checkPropTypes_1 = checkPropTypes$1;
331
+
332
+ /**
333
+ * Copyright (c) 2013-present, Facebook, Inc.
334
+ *
335
+ * This source code is licensed under the MIT license found in the
336
+ * LICENSE file in the root directory of this source tree.
337
+ */
338
+
339
+ var ReactIs$1 = reactIs.exports;
340
+ var assign = objectAssign$1;
341
+
342
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
343
+ var checkPropTypes = checkPropTypes_1;
344
+
345
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
346
+ var printWarning = function() {};
347
+
348
+ if (process.env.NODE_ENV !== 'production') {
349
+ printWarning = function(text) {
350
+ var message = 'Warning: ' + text;
351
+ if (typeof console !== 'undefined') {
352
+ console.error(message);
353
+ }
354
+ try {
355
+ // --- Welcome to debugging React ---
356
+ // This error was thrown as a convenience so that you can use this stack
357
+ // to find the callsite that caused this warning to fire.
358
+ throw new Error(message);
359
+ } catch (x) {}
360
+ };
361
+ }
362
+
363
+ function emptyFunctionThatReturnsNull() {
364
+ return null;
365
+ }
366
+
367
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
368
+ /* global Symbol */
369
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
370
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
371
+
372
+ /**
373
+ * Returns the iterator method function contained on the iterable object.
374
+ *
375
+ * Be sure to invoke the function with the iterable as context:
376
+ *
377
+ * var iteratorFn = getIteratorFn(myIterable);
378
+ * if (iteratorFn) {
379
+ * var iterator = iteratorFn.call(myIterable);
380
+ * ...
381
+ * }
382
+ *
383
+ * @param {?object} maybeIterable
384
+ * @return {?function}
385
+ */
386
+ function getIteratorFn(maybeIterable) {
387
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
388
+ if (typeof iteratorFn === 'function') {
389
+ return iteratorFn;
390
+ }
391
+ }
392
+
393
+ /**
394
+ * Collection of methods that allow declaration and validation of props that are
395
+ * supplied to React components. Example usage:
396
+ *
397
+ * var Props = require('ReactPropTypes');
398
+ * var MyArticle = React.createClass({
399
+ * propTypes: {
400
+ * // An optional string prop named "description".
401
+ * description: Props.string,
402
+ *
403
+ * // A required enum prop named "category".
404
+ * category: Props.oneOf(['News','Photos']).isRequired,
405
+ *
406
+ * // A prop named "dialog" that requires an instance of Dialog.
407
+ * dialog: Props.instanceOf(Dialog).isRequired
408
+ * },
409
+ * render: function() { ... }
410
+ * });
411
+ *
412
+ * A more formal specification of how these methods are used:
413
+ *
414
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
415
+ * decl := ReactPropTypes.{type}(.isRequired)?
416
+ *
417
+ * Each and every declaration produces a function with the same signature. This
418
+ * allows the creation of custom validation functions. For example:
419
+ *
420
+ * var MyLink = React.createClass({
421
+ * propTypes: {
422
+ * // An optional string or URI prop named "href".
423
+ * href: function(props, propName, componentName) {
424
+ * var propValue = props[propName];
425
+ * if (propValue != null && typeof propValue !== 'string' &&
426
+ * !(propValue instanceof URI)) {
427
+ * return new Error(
428
+ * 'Expected a string or an URI for ' + propName + ' in ' +
429
+ * componentName
430
+ * );
431
+ * }
432
+ * }
433
+ * },
434
+ * render: function() {...}
435
+ * });
436
+ *
437
+ * @internal
438
+ */
439
+
440
+ var ANONYMOUS = '<<anonymous>>';
441
+
442
+ // Important!
443
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
444
+ var ReactPropTypes = {
445
+ array: createPrimitiveTypeChecker('array'),
446
+ bool: createPrimitiveTypeChecker('boolean'),
447
+ func: createPrimitiveTypeChecker('function'),
448
+ number: createPrimitiveTypeChecker('number'),
449
+ object: createPrimitiveTypeChecker('object'),
450
+ string: createPrimitiveTypeChecker('string'),
451
+ symbol: createPrimitiveTypeChecker('symbol'),
452
+
453
+ any: createAnyTypeChecker(),
454
+ arrayOf: createArrayOfTypeChecker,
455
+ element: createElementTypeChecker(),
456
+ elementType: createElementTypeTypeChecker(),
457
+ instanceOf: createInstanceTypeChecker,
458
+ node: createNodeChecker(),
459
+ objectOf: createObjectOfTypeChecker,
460
+ oneOf: createEnumTypeChecker,
461
+ oneOfType: createUnionTypeChecker,
462
+ shape: createShapeTypeChecker,
463
+ exact: createStrictShapeTypeChecker,
464
+ };
465
+
466
+ /**
467
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
468
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
469
+ */
470
+ /*eslint-disable no-self-compare*/
471
+ function is(x, y) {
472
+ // SameValue algorithm
473
+ if (x === y) {
474
+ // Steps 1-5, 7-10
475
+ // Steps 6.b-6.e: +0 != -0
476
+ return x !== 0 || 1 / x === 1 / y;
477
+ } else {
478
+ // Step 6.a: NaN == NaN
479
+ return x !== x && y !== y;
480
+ }
481
+ }
482
+ /*eslint-enable no-self-compare*/
483
+
484
+ /**
485
+ * We use an Error-like object for backward compatibility as people may call
486
+ * PropTypes directly and inspect their output. However, we don't use real
487
+ * Errors anymore. We don't inspect their stack anyway, and creating them
488
+ * is prohibitively expensive if they are created too often, such as what
489
+ * happens in oneOfType() for any type before the one that matched.
490
+ */
491
+ function PropTypeError(message) {
492
+ this.message = message;
493
+ this.stack = '';
494
+ }
495
+ // Make `instanceof Error` still work for returned errors.
496
+ PropTypeError.prototype = Error.prototype;
497
+
498
+ function createChainableTypeChecker(validate) {
499
+ if (process.env.NODE_ENV !== 'production') {
500
+ var manualPropTypeCallCache = {};
501
+ var manualPropTypeWarningCount = 0;
502
+ }
503
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
504
+ componentName = componentName || ANONYMOUS;
505
+ propFullName = propFullName || propName;
506
+
507
+ if (secret !== ReactPropTypesSecret$1) {
508
+ if (throwOnDirectAccess) {
509
+ // New behavior only for users of `prop-types` package
510
+ var err = new Error(
511
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
512
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
513
+ 'Read more at http://fb.me/use-check-prop-types'
514
+ );
515
+ err.name = 'Invariant Violation';
516
+ throw err;
517
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
518
+ // Old behavior for people using React.PropTypes
519
+ var cacheKey = componentName + ':' + propName;
520
+ if (
521
+ !manualPropTypeCallCache[cacheKey] &&
522
+ // Avoid spamming the console because they are often not actionable except for lib authors
523
+ manualPropTypeWarningCount < 3
524
+ ) {
525
+ printWarning(
526
+ 'You are manually calling a React.PropTypes validation ' +
527
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
528
+ 'and will throw in the standalone `prop-types` package. ' +
529
+ 'You may be seeing this warning due to a third-party PropTypes ' +
530
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
531
+ );
532
+ manualPropTypeCallCache[cacheKey] = true;
533
+ manualPropTypeWarningCount++;
534
+ }
535
+ }
536
+ }
537
+ if (props[propName] == null) {
538
+ if (isRequired) {
539
+ if (props[propName] === null) {
540
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
541
+ }
542
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
543
+ }
544
+ return null;
545
+ } else {
546
+ return validate(props, propName, componentName, location, propFullName);
547
+ }
548
+ }
549
+
550
+ var chainedCheckType = checkType.bind(null, false);
551
+ chainedCheckType.isRequired = checkType.bind(null, true);
552
+
553
+ return chainedCheckType;
554
+ }
555
+
556
+ function createPrimitiveTypeChecker(expectedType) {
557
+ function validate(props, propName, componentName, location, propFullName, secret) {
558
+ var propValue = props[propName];
559
+ var propType = getPropType(propValue);
560
+ if (propType !== expectedType) {
561
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
562
+ // check, but we can offer a more precise error message here rather than
563
+ // 'of type `object`'.
564
+ var preciseType = getPreciseType(propValue);
565
+
566
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
567
+ }
568
+ return null;
569
+ }
570
+ return createChainableTypeChecker(validate);
571
+ }
572
+
573
+ function createAnyTypeChecker() {
574
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
575
+ }
576
+
577
+ function createArrayOfTypeChecker(typeChecker) {
578
+ function validate(props, propName, componentName, location, propFullName) {
579
+ if (typeof typeChecker !== 'function') {
580
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
581
+ }
582
+ var propValue = props[propName];
583
+ if (!Array.isArray(propValue)) {
584
+ var propType = getPropType(propValue);
585
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
586
+ }
587
+ for (var i = 0; i < propValue.length; i++) {
588
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
589
+ if (error instanceof Error) {
590
+ return error;
591
+ }
592
+ }
593
+ return null;
594
+ }
595
+ return createChainableTypeChecker(validate);
596
+ }
597
+
598
+ function createElementTypeChecker() {
599
+ function validate(props, propName, componentName, location, propFullName) {
600
+ var propValue = props[propName];
601
+ if (!isValidElement(propValue)) {
602
+ var propType = getPropType(propValue);
603
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
604
+ }
605
+ return null;
606
+ }
607
+ return createChainableTypeChecker(validate);
608
+ }
609
+
610
+ function createElementTypeTypeChecker() {
611
+ function validate(props, propName, componentName, location, propFullName) {
612
+ var propValue = props[propName];
613
+ if (!ReactIs$1.isValidElementType(propValue)) {
614
+ var propType = getPropType(propValue);
615
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
616
+ }
617
+ return null;
618
+ }
619
+ return createChainableTypeChecker(validate);
620
+ }
621
+
622
+ function createInstanceTypeChecker(expectedClass) {
623
+ function validate(props, propName, componentName, location, propFullName) {
624
+ if (!(props[propName] instanceof expectedClass)) {
625
+ var expectedClassName = expectedClass.name || ANONYMOUS;
626
+ var actualClassName = getClassName(props[propName]);
627
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
628
+ }
629
+ return null;
630
+ }
631
+ return createChainableTypeChecker(validate);
632
+ }
633
+
634
+ function createEnumTypeChecker(expectedValues) {
635
+ if (!Array.isArray(expectedValues)) {
636
+ if (process.env.NODE_ENV !== 'production') {
637
+ if (arguments.length > 1) {
638
+ printWarning(
639
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
640
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
641
+ );
642
+ } else {
643
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
644
+ }
645
+ }
646
+ return emptyFunctionThatReturnsNull;
647
+ }
648
+
649
+ function validate(props, propName, componentName, location, propFullName) {
650
+ var propValue = props[propName];
651
+ for (var i = 0; i < expectedValues.length; i++) {
652
+ if (is(propValue, expectedValues[i])) {
653
+ return null;
654
+ }
655
+ }
656
+
657
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
658
+ var type = getPreciseType(value);
659
+ if (type === 'symbol') {
660
+ return String(value);
661
+ }
662
+ return value;
663
+ });
664
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
665
+ }
666
+ return createChainableTypeChecker(validate);
667
+ }
668
+
669
+ function createObjectOfTypeChecker(typeChecker) {
670
+ function validate(props, propName, componentName, location, propFullName) {
671
+ if (typeof typeChecker !== 'function') {
672
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
673
+ }
674
+ var propValue = props[propName];
675
+ var propType = getPropType(propValue);
676
+ if (propType !== 'object') {
677
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
678
+ }
679
+ for (var key in propValue) {
680
+ if (has(propValue, key)) {
681
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
682
+ if (error instanceof Error) {
683
+ return error;
684
+ }
685
+ }
686
+ }
687
+ return null;
688
+ }
689
+ return createChainableTypeChecker(validate);
690
+ }
691
+
692
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
693
+ if (!Array.isArray(arrayOfTypeCheckers)) {
694
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
695
+ return emptyFunctionThatReturnsNull;
696
+ }
697
+
698
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
699
+ var checker = arrayOfTypeCheckers[i];
700
+ if (typeof checker !== 'function') {
701
+ printWarning(
702
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
703
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
704
+ );
705
+ return emptyFunctionThatReturnsNull;
706
+ }
707
+ }
708
+
709
+ function validate(props, propName, componentName, location, propFullName) {
710
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
711
+ var checker = arrayOfTypeCheckers[i];
712
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
713
+ return null;
714
+ }
715
+ }
716
+
717
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
718
+ }
719
+ return createChainableTypeChecker(validate);
720
+ }
721
+
722
+ function createNodeChecker() {
723
+ function validate(props, propName, componentName, location, propFullName) {
724
+ if (!isNode(props[propName])) {
725
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
726
+ }
727
+ return null;
728
+ }
729
+ return createChainableTypeChecker(validate);
730
+ }
731
+
732
+ function createShapeTypeChecker(shapeTypes) {
733
+ function validate(props, propName, componentName, location, propFullName) {
734
+ var propValue = props[propName];
735
+ var propType = getPropType(propValue);
736
+ if (propType !== 'object') {
737
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
738
+ }
739
+ for (var key in shapeTypes) {
740
+ var checker = shapeTypes[key];
741
+ if (!checker) {
742
+ continue;
743
+ }
744
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
745
+ if (error) {
746
+ return error;
747
+ }
748
+ }
749
+ return null;
750
+ }
751
+ return createChainableTypeChecker(validate);
752
+ }
753
+
754
+ function createStrictShapeTypeChecker(shapeTypes) {
755
+ function validate(props, propName, componentName, location, propFullName) {
756
+ var propValue = props[propName];
757
+ var propType = getPropType(propValue);
758
+ if (propType !== 'object') {
759
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
760
+ }
761
+ // We need to check all keys in case some are required but missing from
762
+ // props.
763
+ var allKeys = assign({}, props[propName], shapeTypes);
764
+ for (var key in allKeys) {
765
+ var checker = shapeTypes[key];
766
+ if (!checker) {
767
+ return new PropTypeError(
768
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
769
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
770
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
771
+ );
772
+ }
773
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
774
+ if (error) {
775
+ return error;
776
+ }
777
+ }
778
+ return null;
779
+ }
780
+
781
+ return createChainableTypeChecker(validate);
782
+ }
783
+
784
+ function isNode(propValue) {
785
+ switch (typeof propValue) {
786
+ case 'number':
787
+ case 'string':
788
+ case 'undefined':
789
+ return true;
790
+ case 'boolean':
791
+ return !propValue;
792
+ case 'object':
793
+ if (Array.isArray(propValue)) {
794
+ return propValue.every(isNode);
795
+ }
796
+ if (propValue === null || isValidElement(propValue)) {
797
+ return true;
798
+ }
799
+
800
+ var iteratorFn = getIteratorFn(propValue);
801
+ if (iteratorFn) {
802
+ var iterator = iteratorFn.call(propValue);
803
+ var step;
804
+ if (iteratorFn !== propValue.entries) {
805
+ while (!(step = iterator.next()).done) {
806
+ if (!isNode(step.value)) {
807
+ return false;
808
+ }
809
+ }
810
+ } else {
811
+ // Iterator will provide entry [k,v] tuples rather than values.
812
+ while (!(step = iterator.next()).done) {
813
+ var entry = step.value;
814
+ if (entry) {
815
+ if (!isNode(entry[1])) {
816
+ return false;
817
+ }
818
+ }
819
+ }
820
+ }
821
+ } else {
822
+ return false;
823
+ }
824
+
825
+ return true;
826
+ default:
827
+ return false;
828
+ }
829
+ }
830
+
831
+ function isSymbol(propType, propValue) {
832
+ // Native Symbol.
833
+ if (propType === 'symbol') {
834
+ return true;
835
+ }
836
+
837
+ // falsy value can't be a Symbol
838
+ if (!propValue) {
839
+ return false;
840
+ }
841
+
842
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
843
+ if (propValue['@@toStringTag'] === 'Symbol') {
844
+ return true;
845
+ }
846
+
847
+ // Fallback for non-spec compliant Symbols which are polyfilled.
848
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
849
+ return true;
850
+ }
851
+
852
+ return false;
853
+ }
854
+
855
+ // Equivalent of `typeof` but with special handling for array and regexp.
856
+ function getPropType(propValue) {
857
+ var propType = typeof propValue;
858
+ if (Array.isArray(propValue)) {
859
+ return 'array';
860
+ }
861
+ if (propValue instanceof RegExp) {
862
+ // Old webkits (at least until Android 4.0) return 'function' rather than
863
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
864
+ // passes PropTypes.object.
865
+ return 'object';
866
+ }
867
+ if (isSymbol(propType, propValue)) {
868
+ return 'symbol';
869
+ }
870
+ return propType;
871
+ }
872
+
873
+ // This handles more types than `getPropType`. Only used for error messages.
874
+ // See `createPrimitiveTypeChecker`.
875
+ function getPreciseType(propValue) {
876
+ if (typeof propValue === 'undefined' || propValue === null) {
877
+ return '' + propValue;
878
+ }
879
+ var propType = getPropType(propValue);
880
+ if (propType === 'object') {
881
+ if (propValue instanceof Date) {
882
+ return 'date';
883
+ } else if (propValue instanceof RegExp) {
884
+ return 'regexp';
885
+ }
886
+ }
887
+ return propType;
888
+ }
889
+
890
+ // Returns a string that is postfixed to a warning about an invalid type.
891
+ // For example, "undefined" or "of type array"
892
+ function getPostfixForTypeWarning(value) {
893
+ var type = getPreciseType(value);
894
+ switch (type) {
895
+ case 'array':
896
+ case 'object':
897
+ return 'an ' + type;
898
+ case 'boolean':
899
+ case 'date':
900
+ case 'regexp':
901
+ return 'a ' + type;
902
+ default:
903
+ return type;
904
+ }
905
+ }
906
+
907
+ // Returns class name of the object, if any.
908
+ function getClassName(propValue) {
909
+ if (!propValue.constructor || !propValue.constructor.name) {
910
+ return ANONYMOUS;
911
+ }
912
+ return propValue.constructor.name;
913
+ }
914
+
915
+ ReactPropTypes.checkPropTypes = checkPropTypes;
916
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
917
+ ReactPropTypes.PropTypes = ReactPropTypes;
918
+
919
+ return ReactPropTypes;
920
+ };
921
+
922
+ /**
923
+ * Copyright (c) 2013-present, Facebook, Inc.
924
+ *
925
+ * This source code is licensed under the MIT license found in the
926
+ * LICENSE file in the root directory of this source tree.
927
+ */
928
+
929
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
930
+
931
+ function emptyFunction() {}
932
+ function emptyFunctionWithReset() {}
933
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
934
+
935
+ var factoryWithThrowingShims = function() {
936
+ function shim(props, propName, componentName, location, propFullName, secret) {
937
+ if (secret === ReactPropTypesSecret) {
938
+ // It is still safe when called from React.
939
+ return;
940
+ }
941
+ var err = new Error(
942
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
943
+ 'Use PropTypes.checkPropTypes() to call them. ' +
944
+ 'Read more at http://fb.me/use-check-prop-types'
945
+ );
946
+ err.name = 'Invariant Violation';
947
+ throw err;
948
+ } shim.isRequired = shim;
949
+ function getShim() {
950
+ return shim;
951
+ } // Important!
952
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
953
+ var ReactPropTypes = {
954
+ array: shim,
955
+ bool: shim,
956
+ func: shim,
957
+ number: shim,
958
+ object: shim,
959
+ string: shim,
960
+ symbol: shim,
961
+
962
+ any: shim,
963
+ arrayOf: getShim,
964
+ element: shim,
965
+ elementType: shim,
966
+ instanceOf: getShim,
967
+ node: shim,
968
+ objectOf: getShim,
969
+ oneOf: getShim,
970
+ oneOfType: getShim,
971
+ shape: getShim,
972
+ exact: getShim,
973
+
974
+ checkPropTypes: emptyFunctionWithReset,
975
+ resetWarningCache: emptyFunction
976
+ };
977
+
978
+ ReactPropTypes.PropTypes = ReactPropTypes;
979
+
980
+ return ReactPropTypes;
981
+ };
982
+
983
+ /**
984
+ * Copyright (c) 2013-present, Facebook, Inc.
985
+ *
986
+ * This source code is licensed under the MIT license found in the
987
+ * LICENSE file in the root directory of this source tree.
988
+ */
989
+
990
+ if (process.env.NODE_ENV !== 'production') {
991
+ var ReactIs = reactIs.exports;
992
+
993
+ // By explicitly using `prop-types` you are opting into new development behavior.
994
+ // http://fb.me/prop-types-in-prod
995
+ var throwOnDirectAccess = true;
996
+ propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
997
+ } else {
998
+ // By explicitly using `prop-types` you are opting into new production behavior.
999
+ // http://fb.me/prop-types-in-prod
1000
+ propTypes.exports = factoryWithThrowingShims();
1001
+ }
1002
+
1003
+ function shallowEqualArrays(arrA, arrB) {
1004
+ if (arrA === arrB) {
1005
+ return true;
1006
+ }
1007
+
1008
+ if (!arrA || !arrB) {
1009
+ return false;
1010
+ }
1011
+
1012
+ var len = arrA.length;
1013
+
1014
+ if (arrB.length !== len) {
1015
+ return false;
1016
+ }
1017
+
1018
+ for (var i = 0; i < len; i++) {
1019
+ if (arrA[i] !== arrB[i]) {
1020
+ return false;
1021
+ }
1022
+ }
1023
+
1024
+ return true;
1025
+ }
1026
+
1027
+ var arrays = shallowEqualArrays;
1028
+
1029
+ var Autowhatever = {};
1030
+
1031
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
1032
+
1033
+ var dist$2 = function (_ref) {
1034
+ var data = _ref.data;
1035
+ var multiSection = _ref.multiSection;
1036
+
1037
+ function nextNonEmptySectionIndex(sectionIndex) {
1038
+ if (sectionIndex === null) {
1039
+ sectionIndex = 0;
1040
+ } else {
1041
+ sectionIndex++;
1042
+ }
1043
+
1044
+ while (sectionIndex < data.length && data[sectionIndex] === 0) {
1045
+ sectionIndex++;
1046
+ }
1047
+
1048
+ return sectionIndex === data.length ? null : sectionIndex;
1049
+ }
1050
+
1051
+ function prevNonEmptySectionIndex(sectionIndex) {
1052
+ if (sectionIndex === null) {
1053
+ sectionIndex = data.length - 1;
1054
+ } else {
1055
+ sectionIndex--;
1056
+ }
1057
+
1058
+ while (sectionIndex >= 0 && data[sectionIndex] === 0) {
1059
+ sectionIndex--;
1060
+ }
1061
+
1062
+ return sectionIndex === -1 ? null : sectionIndex;
1063
+ }
1064
+
1065
+ function next(position) {
1066
+ var _position = _slicedToArray(position, 2);
1067
+
1068
+ var sectionIndex = _position[0];
1069
+ var itemIndex = _position[1];
1070
+
1071
+
1072
+ if (multiSection) {
1073
+ if (itemIndex === null || itemIndex === data[sectionIndex] - 1) {
1074
+ sectionIndex = nextNonEmptySectionIndex(sectionIndex);
1075
+
1076
+ if (sectionIndex === null) {
1077
+ return [null, null];
1078
+ }
1079
+
1080
+ return [sectionIndex, 0];
1081
+ }
1082
+
1083
+ return [sectionIndex, itemIndex + 1];
1084
+ }
1085
+
1086
+ if (data === 0 || itemIndex === data - 1) {
1087
+ return [null, null];
1088
+ }
1089
+
1090
+ if (itemIndex === null) {
1091
+ return [null, 0];
1092
+ }
1093
+
1094
+ return [null, itemIndex + 1];
1095
+ }
1096
+
1097
+ function prev(position) {
1098
+ var _position2 = _slicedToArray(position, 2);
1099
+
1100
+ var sectionIndex = _position2[0];
1101
+ var itemIndex = _position2[1];
1102
+
1103
+
1104
+ if (multiSection) {
1105
+ if (itemIndex === null || itemIndex === 0) {
1106
+ sectionIndex = prevNonEmptySectionIndex(sectionIndex);
1107
+
1108
+ if (sectionIndex === null) {
1109
+ return [null, null];
1110
+ }
1111
+
1112
+ return [sectionIndex, data[sectionIndex] - 1];
1113
+ }
1114
+
1115
+ return [sectionIndex, itemIndex - 1];
1116
+ }
1117
+
1118
+ if (data === 0 || itemIndex === 0) {
1119
+ return [null, null];
1120
+ }
1121
+
1122
+ if (itemIndex === null) {
1123
+ return [null, data - 1];
1124
+ }
1125
+
1126
+ return [null, itemIndex - 1];
1127
+ }
1128
+
1129
+ function isLast(position) {
1130
+ return next(position)[1] === null;
1131
+ }
1132
+
1133
+ return {
1134
+ next: next,
1135
+ prev: prev,
1136
+ isLast: isLast
1137
+ };
1138
+ };
1139
+
1140
+ var dist$1 = {exports: {}};
1141
+
1142
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1143
+
1144
+ function ToObject(val) {
1145
+ if (val == null) {
1146
+ throw new TypeError('Object.assign cannot be called with null or undefined');
1147
+ }
1148
+
1149
+ return Object(val);
1150
+ }
1151
+
1152
+ function ownEnumerableKeys(obj) {
1153
+ var keys = Object.getOwnPropertyNames(obj);
1154
+
1155
+ if (Object.getOwnPropertySymbols) {
1156
+ keys = keys.concat(Object.getOwnPropertySymbols(obj));
1157
+ }
1158
+
1159
+ return keys.filter(function (key) {
1160
+ return propIsEnumerable.call(obj, key);
1161
+ });
1162
+ }
1163
+
1164
+ var objectAssign = Object.assign || function (target, source) {
1165
+ var from;
1166
+ var keys;
1167
+ var to = ToObject(target);
1168
+
1169
+ for (var s = 1; s < arguments.length; s++) {
1170
+ from = arguments[s];
1171
+ keys = ownEnumerableKeys(Object(from));
1172
+
1173
+ for (var i = 0; i < keys.length; i++) {
1174
+ to[keys[i]] = from[keys[i]];
1175
+ }
1176
+ }
1177
+
1178
+ return to;
1179
+ };
1180
+
1181
+ (function (module, exports) {
1182
+
1183
+ Object.defineProperty(exports, '__esModule', {
1184
+ value: true
1185
+ });
1186
+
1187
+ var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })();
1188
+
1189
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
1190
+
1191
+ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
1192
+
1193
+ var _objectAssign = objectAssign;
1194
+
1195
+ var _objectAssign2 = _interopRequireDefault(_objectAssign);
1196
+
1197
+ var truthy = function truthy(x) {
1198
+ return x;
1199
+ };
1200
+
1201
+ exports['default'] = function (input) {
1202
+ var _ref = Array.isArray(input) && input.length === 2 ? input : [input, null];
1203
+
1204
+ var _ref2 = _slicedToArray(_ref, 2);
1205
+
1206
+ var theme = _ref2[0];
1207
+ var classNameDecorator = _ref2[1];
1208
+
1209
+ return function (key) {
1210
+ for (var _len = arguments.length, names = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1211
+ names[_key - 1] = arguments[_key];
1212
+ }
1213
+
1214
+ var styles = names.map(function (name) {
1215
+ return theme[name];
1216
+ }).filter(truthy);
1217
+
1218
+ return typeof styles[0] === 'string' || typeof classNameDecorator === 'function' ? { key: key, className: classNameDecorator ? classNameDecorator.apply(undefined, _toConsumableArray(styles)) : styles.join(' ') } : { key: key, style: _objectAssign2['default'].apply(undefined, [{}].concat(_toConsumableArray(styles))) };
1219
+ };
1220
+ };
1221
+
1222
+ module.exports = exports['default'];
1223
+ }(dist$1, dist$1.exports));
1224
+
1225
+ var SectionTitle = {};
1226
+
1227
+ var compareObjects = {};
1228
+
1229
+ (function (exports) {
1230
+
1231
+ Object.defineProperty(exports, "__esModule", {
1232
+ value: true
1233
+ });
1234
+ exports["default"] = compareObjects;
1235
+
1236
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1237
+
1238
+ function compareObjects(objA, objB) {
1239
+ var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
1240
+
1241
+ if (objA === objB) {
1242
+ return false;
1243
+ }
1244
+
1245
+ var aKeys = Object.keys(objA);
1246
+ var bKeys = Object.keys(objB);
1247
+
1248
+ if (aKeys.length !== bKeys.length) {
1249
+ return true;
1250
+ }
1251
+
1252
+ var keysMap = {};
1253
+ var i, len;
1254
+
1255
+ for (i = 0, len = keys.length; i < len; i++) {
1256
+ keysMap[keys[i]] = true;
1257
+ }
1258
+
1259
+ for (i = 0, len = aKeys.length; i < len; i++) {
1260
+ var key = aKeys[i];
1261
+ var aValue = objA[key];
1262
+ var bValue = objB[key];
1263
+
1264
+ if (aValue === bValue) {
1265
+ continue;
1266
+ }
1267
+
1268
+ if (!keysMap[key] || aValue === null || bValue === null || _typeof(aValue) !== 'object' || _typeof(bValue) !== 'object') {
1269
+ return true;
1270
+ }
1271
+
1272
+ var aValueKeys = Object.keys(aValue);
1273
+ var bValueKeys = Object.keys(bValue);
1274
+
1275
+ if (aValueKeys.length !== bValueKeys.length) {
1276
+ return true;
1277
+ }
1278
+
1279
+ for (var n = 0, length = aValueKeys.length; n < length; n++) {
1280
+ var aValueKey = aValueKeys[n];
1281
+
1282
+ if (aValue[aValueKey] !== bValue[aValueKey]) {
1283
+ return true;
1284
+ }
1285
+ }
1286
+ }
1287
+
1288
+ return false;
1289
+ }
1290
+ }(compareObjects));
1291
+
1292
+ (function (exports) {
1293
+
1294
+ Object.defineProperty(exports, "__esModule", {
1295
+ value: true
1296
+ });
1297
+ exports["default"] = void 0;
1298
+
1299
+ var _react = _interopRequireWildcard(require$$0__default);
1300
+
1301
+ var _propTypes = _interopRequireDefault(propTypes.exports);
1302
+
1303
+ var _compareObjects = _interopRequireDefault(compareObjects);
1304
+
1305
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1306
+
1307
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
1308
+
1309
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1310
+
1311
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1312
+
1313
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1314
+
1315
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1316
+
1317
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1318
+
1319
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1320
+
1321
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1322
+
1323
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1324
+
1325
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1326
+
1327
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1328
+
1329
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1330
+
1331
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1332
+
1333
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1334
+
1335
+ var SectionTitle = /*#__PURE__*/function (_Component) {
1336
+ _inherits(SectionTitle, _Component);
1337
+
1338
+ var _super = _createSuper(SectionTitle);
1339
+
1340
+ function SectionTitle() {
1341
+ _classCallCheck(this, SectionTitle);
1342
+
1343
+ return _super.apply(this, arguments);
1344
+ }
1345
+
1346
+ _createClass(SectionTitle, [{
1347
+ key: "shouldComponentUpdate",
1348
+ value: function shouldComponentUpdate(nextProps) {
1349
+ return (0, _compareObjects["default"])(nextProps, this.props);
1350
+ }
1351
+ }, {
1352
+ key: "render",
1353
+ value: function render() {
1354
+ var _this$props = this.props,
1355
+ section = _this$props.section,
1356
+ renderSectionTitle = _this$props.renderSectionTitle,
1357
+ theme = _this$props.theme,
1358
+ sectionKeyPrefix = _this$props.sectionKeyPrefix;
1359
+ var sectionTitle = renderSectionTitle(section);
1360
+
1361
+ if (!sectionTitle) {
1362
+ return null;
1363
+ }
1364
+
1365
+ return /*#__PURE__*/_react["default"].createElement("div", theme("".concat(sectionKeyPrefix, "title"), 'sectionTitle'), sectionTitle);
1366
+ }
1367
+ }]);
1368
+
1369
+ return SectionTitle;
1370
+ }(_react.Component);
1371
+
1372
+ exports["default"] = SectionTitle;
1373
+
1374
+ _defineProperty(SectionTitle, "propTypes", {
1375
+ section: _propTypes["default"].any.isRequired,
1376
+ renderSectionTitle: _propTypes["default"].func.isRequired,
1377
+ theme: _propTypes["default"].func.isRequired,
1378
+ sectionKeyPrefix: _propTypes["default"].string.isRequired
1379
+ });
1380
+ }(SectionTitle));
1381
+
1382
+ var ItemList = {};
1383
+
1384
+ var Item = {};
1385
+
1386
+ (function (exports) {
1387
+
1388
+ Object.defineProperty(exports, "__esModule", {
1389
+ value: true
1390
+ });
1391
+ exports["default"] = void 0;
1392
+
1393
+ var _react = _interopRequireWildcard(require$$0__default);
1394
+
1395
+ var _propTypes = _interopRequireDefault(propTypes.exports);
1396
+
1397
+ var _compareObjects = _interopRequireDefault(compareObjects);
1398
+
1399
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1400
+
1401
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
1402
+
1403
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1404
+
1405
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1406
+
1407
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1408
+
1409
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1410
+
1411
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1412
+
1413
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
1414
+
1415
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1416
+
1417
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1418
+
1419
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1420
+
1421
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1422
+
1423
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1424
+
1425
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1426
+
1427
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1428
+
1429
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1430
+
1431
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1432
+
1433
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1434
+
1435
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1436
+
1437
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1438
+
1439
+ var Item = /*#__PURE__*/function (_Component) {
1440
+ _inherits(Item, _Component);
1441
+
1442
+ var _super = _createSuper(Item);
1443
+
1444
+ function Item() {
1445
+ var _this;
1446
+
1447
+ _classCallCheck(this, Item);
1448
+
1449
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1450
+ args[_key] = arguments[_key];
1451
+ }
1452
+
1453
+ _this = _super.call.apply(_super, [this].concat(args));
1454
+
1455
+ _defineProperty(_assertThisInitialized(_this), "storeItemReference", function (item) {
1456
+ if (item !== null) {
1457
+ _this.item = item;
1458
+ }
1459
+ });
1460
+
1461
+ _defineProperty(_assertThisInitialized(_this), "onMouseEnter", function (event) {
1462
+ var _this$props = _this.props,
1463
+ sectionIndex = _this$props.sectionIndex,
1464
+ itemIndex = _this$props.itemIndex;
1465
+
1466
+ _this.props.onMouseEnter(event, {
1467
+ sectionIndex: sectionIndex,
1468
+ itemIndex: itemIndex
1469
+ });
1470
+ });
1471
+
1472
+ _defineProperty(_assertThisInitialized(_this), "onMouseLeave", function (event) {
1473
+ var _this$props2 = _this.props,
1474
+ sectionIndex = _this$props2.sectionIndex,
1475
+ itemIndex = _this$props2.itemIndex;
1476
+
1477
+ _this.props.onMouseLeave(event, {
1478
+ sectionIndex: sectionIndex,
1479
+ itemIndex: itemIndex
1480
+ });
1481
+ });
1482
+
1483
+ _defineProperty(_assertThisInitialized(_this), "onMouseDown", function (event) {
1484
+ var _this$props3 = _this.props,
1485
+ sectionIndex = _this$props3.sectionIndex,
1486
+ itemIndex = _this$props3.itemIndex;
1487
+
1488
+ _this.props.onMouseDown(event, {
1489
+ sectionIndex: sectionIndex,
1490
+ itemIndex: itemIndex
1491
+ });
1492
+ });
1493
+
1494
+ _defineProperty(_assertThisInitialized(_this), "onClick", function (event) {
1495
+ var _this$props4 = _this.props,
1496
+ sectionIndex = _this$props4.sectionIndex,
1497
+ itemIndex = _this$props4.itemIndex;
1498
+
1499
+ _this.props.onClick(event, {
1500
+ sectionIndex: sectionIndex,
1501
+ itemIndex: itemIndex
1502
+ });
1503
+ });
1504
+
1505
+ return _this;
1506
+ }
1507
+
1508
+ _createClass(Item, [{
1509
+ key: "shouldComponentUpdate",
1510
+ value: function shouldComponentUpdate(nextProps) {
1511
+ return (0, _compareObjects["default"])(nextProps, this.props, ['renderItemData']);
1512
+ }
1513
+ }, {
1514
+ key: "render",
1515
+ value: function render() {
1516
+ var _this$props5 = this.props,
1517
+ isHighlighted = _this$props5.isHighlighted,
1518
+ item = _this$props5.item,
1519
+ renderItem = _this$props5.renderItem,
1520
+ renderItemData = _this$props5.renderItemData,
1521
+ restProps = _objectWithoutProperties(_this$props5, ["isHighlighted", "item", "renderItem", "renderItemData"]);
1522
+
1523
+ delete restProps.sectionIndex;
1524
+ delete restProps.itemIndex;
1525
+
1526
+ if (typeof restProps.onMouseEnter === 'function') {
1527
+ restProps.onMouseEnter = this.onMouseEnter;
1528
+ }
1529
+
1530
+ if (typeof restProps.onMouseLeave === 'function') {
1531
+ restProps.onMouseLeave = this.onMouseLeave;
1532
+ }
1533
+
1534
+ if (typeof restProps.onMouseDown === 'function') {
1535
+ restProps.onMouseDown = this.onMouseDown;
1536
+ }
1537
+
1538
+ if (typeof restProps.onClick === 'function') {
1539
+ restProps.onClick = this.onClick;
1540
+ }
1541
+
1542
+ return /*#__PURE__*/_react["default"].createElement("li", _extends({
1543
+ role: "option"
1544
+ }, restProps, {
1545
+ ref: this.storeItemReference
1546
+ }), renderItem(item, _objectSpread({
1547
+ isHighlighted: isHighlighted
1548
+ }, renderItemData)));
1549
+ }
1550
+ }]);
1551
+
1552
+ return Item;
1553
+ }(_react.Component);
1554
+
1555
+ exports["default"] = Item;
1556
+
1557
+ _defineProperty(Item, "propTypes", {
1558
+ sectionIndex: _propTypes["default"].number,
1559
+ isHighlighted: _propTypes["default"].bool.isRequired,
1560
+ itemIndex: _propTypes["default"].number.isRequired,
1561
+ item: _propTypes["default"].any.isRequired,
1562
+ renderItem: _propTypes["default"].func.isRequired,
1563
+ renderItemData: _propTypes["default"].object.isRequired,
1564
+ onMouseEnter: _propTypes["default"].func,
1565
+ onMouseLeave: _propTypes["default"].func,
1566
+ onMouseDown: _propTypes["default"].func,
1567
+ onClick: _propTypes["default"].func
1568
+ });
1569
+ }(Item));
1570
+
1571
+ (function (exports) {
1572
+
1573
+ Object.defineProperty(exports, "__esModule", {
1574
+ value: true
1575
+ });
1576
+ exports["default"] = void 0;
1577
+
1578
+ var _react = _interopRequireWildcard(require$$0__default);
1579
+
1580
+ var _propTypes = _interopRequireDefault(propTypes.exports);
1581
+
1582
+ var _Item = _interopRequireDefault(Item);
1583
+
1584
+ var _compareObjects = _interopRequireDefault(compareObjects);
1585
+
1586
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1587
+
1588
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
1589
+
1590
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1591
+
1592
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1593
+
1594
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1595
+
1596
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1597
+
1598
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1599
+
1600
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1601
+
1602
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1603
+
1604
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1605
+
1606
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1607
+
1608
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1609
+
1610
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1611
+
1612
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1613
+
1614
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1615
+
1616
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1617
+
1618
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1619
+
1620
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1621
+
1622
+ var ItemsList = /*#__PURE__*/function (_Component) {
1623
+ _inherits(ItemsList, _Component);
1624
+
1625
+ var _super = _createSuper(ItemsList);
1626
+
1627
+ function ItemsList() {
1628
+ var _this;
1629
+
1630
+ _classCallCheck(this, ItemsList);
1631
+
1632
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1633
+ args[_key] = arguments[_key];
1634
+ }
1635
+
1636
+ _this = _super.call.apply(_super, [this].concat(args));
1637
+
1638
+ _defineProperty(_assertThisInitialized(_this), "storeHighlightedItemReference", function (highlightedItem) {
1639
+ _this.props.onHighlightedItemChange(highlightedItem === null ? null : highlightedItem.item);
1640
+ });
1641
+
1642
+ return _this;
1643
+ }
1644
+
1645
+ _createClass(ItemsList, [{
1646
+ key: "shouldComponentUpdate",
1647
+ value: function shouldComponentUpdate(nextProps) {
1648
+ return (0, _compareObjects["default"])(nextProps, this.props, ['itemProps']);
1649
+ }
1650
+ }, {
1651
+ key: "render",
1652
+ value: function render() {
1653
+ var _this2 = this;
1654
+
1655
+ var _this$props = this.props,
1656
+ items = _this$props.items,
1657
+ itemProps = _this$props.itemProps,
1658
+ renderItem = _this$props.renderItem,
1659
+ renderItemData = _this$props.renderItemData,
1660
+ sectionIndex = _this$props.sectionIndex,
1661
+ highlightedItemIndex = _this$props.highlightedItemIndex,
1662
+ getItemId = _this$props.getItemId,
1663
+ theme = _this$props.theme,
1664
+ keyPrefix = _this$props.keyPrefix;
1665
+ var sectionPrefix = sectionIndex === null ? keyPrefix : "".concat(keyPrefix, "section-").concat(sectionIndex, "-");
1666
+ var isItemPropsFunction = typeof itemProps === 'function';
1667
+ return /*#__PURE__*/_react["default"].createElement("ul", _extends({
1668
+ role: "listbox"
1669
+ }, theme("".concat(sectionPrefix, "items-list"), 'itemsList')), items.map(function (item, itemIndex) {
1670
+ var isFirst = itemIndex === 0;
1671
+ var isHighlighted = itemIndex === highlightedItemIndex;
1672
+ var itemKey = "".concat(sectionPrefix, "item-").concat(itemIndex);
1673
+ var itemPropsObj = isItemPropsFunction ? itemProps({
1674
+ sectionIndex: sectionIndex,
1675
+ itemIndex: itemIndex
1676
+ }) : itemProps;
1677
+
1678
+ var allItemProps = _objectSpread({
1679
+ id: getItemId(sectionIndex, itemIndex),
1680
+ 'aria-selected': isHighlighted
1681
+ }, theme(itemKey, 'item', isFirst && 'itemFirst', isHighlighted && 'itemHighlighted'), {}, itemPropsObj);
1682
+
1683
+ if (isHighlighted) {
1684
+ allItemProps.ref = _this2.storeHighlightedItemReference;
1685
+ } // `key` is provided by theme()
1686
+
1687
+ /* eslint-disable react/jsx-key */
1688
+
1689
+
1690
+ return /*#__PURE__*/_react["default"].createElement(_Item["default"], _extends({}, allItemProps, {
1691
+ sectionIndex: sectionIndex,
1692
+ isHighlighted: isHighlighted,
1693
+ itemIndex: itemIndex,
1694
+ item: item,
1695
+ renderItem: renderItem,
1696
+ renderItemData: renderItemData
1697
+ }));
1698
+ /* eslint-enable react/jsx-key */
1699
+ }));
1700
+ }
1701
+ }]);
1702
+
1703
+ return ItemsList;
1704
+ }(_react.Component);
1705
+
1706
+ exports["default"] = ItemsList;
1707
+
1708
+ _defineProperty(ItemsList, "propTypes", {
1709
+ items: _propTypes["default"].array.isRequired,
1710
+ itemProps: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].func]),
1711
+ renderItem: _propTypes["default"].func.isRequired,
1712
+ renderItemData: _propTypes["default"].object.isRequired,
1713
+ sectionIndex: _propTypes["default"].number,
1714
+ highlightedItemIndex: _propTypes["default"].number,
1715
+ onHighlightedItemChange: _propTypes["default"].func.isRequired,
1716
+ getItemId: _propTypes["default"].func.isRequired,
1717
+ theme: _propTypes["default"].func.isRequired,
1718
+ keyPrefix: _propTypes["default"].string.isRequired
1719
+ });
1720
+
1721
+ _defineProperty(ItemsList, "defaultProps", {
1722
+ sectionIndex: null
1723
+ });
1724
+ }(ItemList));
1725
+
1726
+ (function (exports) {
1727
+
1728
+ Object.defineProperty(exports, "__esModule", {
1729
+ value: true
1730
+ });
1731
+ exports["default"] = void 0;
1732
+
1733
+ var _react = _interopRequireWildcard(require$$0__default);
1734
+
1735
+ var _propTypes = _interopRequireDefault(propTypes.exports);
1736
+
1737
+ var _sectionIterator = _interopRequireDefault(dist$2);
1738
+
1739
+ var _reactThemeable = _interopRequireDefault(dist$1.exports);
1740
+
1741
+ var _SectionTitle = _interopRequireDefault(SectionTitle);
1742
+
1743
+ var _ItemList = _interopRequireDefault(ItemList);
1744
+
1745
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1746
+
1747
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
1748
+
1749
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1750
+
1751
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1752
+
1753
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1754
+
1755
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1756
+
1757
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1758
+
1759
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1760
+
1761
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1762
+
1763
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1764
+
1765
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1766
+
1767
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
1768
+
1769
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1770
+
1771
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1772
+
1773
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1774
+
1775
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
1776
+
1777
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
1778
+
1779
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1780
+
1781
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1782
+
1783
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
1784
+
1785
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
1786
+
1787
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1788
+
1789
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1790
+
1791
+ var emptyObject = {};
1792
+
1793
+ var defaultRenderInputComponent = function defaultRenderInputComponent(props) {
1794
+ return /*#__PURE__*/_react["default"].createElement("input", props);
1795
+ };
1796
+
1797
+ var defaultRenderItemsContainer = function defaultRenderItemsContainer(_ref) {
1798
+ var containerProps = _ref.containerProps,
1799
+ children = _ref.children;
1800
+ return /*#__PURE__*/_react["default"].createElement("div", containerProps, children);
1801
+ };
1802
+
1803
+ var defaultTheme = {
1804
+ container: 'react-autowhatever__container',
1805
+ containerOpen: 'react-autowhatever__container--open',
1806
+ input: 'react-autowhatever__input',
1807
+ inputOpen: 'react-autowhatever__input--open',
1808
+ inputFocused: 'react-autowhatever__input--focused',
1809
+ itemsContainer: 'react-autowhatever__items-container',
1810
+ itemsContainerOpen: 'react-autowhatever__items-container--open',
1811
+ itemsList: 'react-autowhatever__items-list',
1812
+ item: 'react-autowhatever__item',
1813
+ itemFirst: 'react-autowhatever__item--first',
1814
+ itemHighlighted: 'react-autowhatever__item--highlighted',
1815
+ sectionContainer: 'react-autowhatever__section-container',
1816
+ sectionContainerFirst: 'react-autowhatever__section-container--first',
1817
+ sectionTitle: 'react-autowhatever__section-title'
1818
+ };
1819
+
1820
+ var Autowhatever = /*#__PURE__*/function (_Component) {
1821
+ _inherits(Autowhatever, _Component);
1822
+
1823
+ var _super = _createSuper(Autowhatever);
1824
+
1825
+ function Autowhatever(props) {
1826
+ var _this;
1827
+
1828
+ _classCallCheck(this, Autowhatever);
1829
+
1830
+ _this = _super.call(this, props);
1831
+
1832
+ _defineProperty(_assertThisInitialized(_this), "storeInputReference", function (input) {
1833
+ if (input !== null) {
1834
+ _this.input = input;
1835
+ }
1836
+
1837
+ var userRef = _this.props.inputProps.ref;
1838
+
1839
+ if (userRef) {
1840
+ if (typeof userRef === 'function') {
1841
+ userRef(input);
1842
+ } else if (_typeof(userRef) === 'object' && Object.prototype.hasOwnProperty.call(userRef, 'current')) {
1843
+ userRef.current = input;
1844
+ }
1845
+ }
1846
+ });
1847
+
1848
+ _defineProperty(_assertThisInitialized(_this), "storeItemsContainerReference", function (itemsContainer) {
1849
+ if (itemsContainer !== null) {
1850
+ _this.itemsContainer = itemsContainer;
1851
+ }
1852
+ });
1853
+
1854
+ _defineProperty(_assertThisInitialized(_this), "onHighlightedItemChange", function (highlightedItem) {
1855
+ _this.highlightedItem = highlightedItem;
1856
+ });
1857
+
1858
+ _defineProperty(_assertThisInitialized(_this), "getItemId", function (sectionIndex, itemIndex) {
1859
+ if (itemIndex === null) {
1860
+ return null;
1861
+ }
1862
+
1863
+ var id = _this.props.id;
1864
+ var section = sectionIndex === null ? '' : "section-".concat(sectionIndex);
1865
+ return "react-autowhatever-".concat(id, "-").concat(section, "-item-").concat(itemIndex);
1866
+ });
1867
+
1868
+ _defineProperty(_assertThisInitialized(_this), "onFocus", function (event) {
1869
+ var inputProps = _this.props.inputProps;
1870
+
1871
+ _this.setState({
1872
+ isInputFocused: true
1873
+ });
1874
+
1875
+ inputProps.onFocus && inputProps.onFocus(event);
1876
+ });
1877
+
1878
+ _defineProperty(_assertThisInitialized(_this), "onBlur", function (event) {
1879
+ var inputProps = _this.props.inputProps;
1880
+
1881
+ _this.setState({
1882
+ isInputFocused: false
1883
+ });
1884
+
1885
+ inputProps.onBlur && inputProps.onBlur(event);
1886
+ });
1887
+
1888
+ _defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) {
1889
+ var _this$props = _this.props,
1890
+ inputProps = _this$props.inputProps,
1891
+ highlightedSectionIndex = _this$props.highlightedSectionIndex,
1892
+ highlightedItemIndex = _this$props.highlightedItemIndex;
1893
+ var keyCode = event.keyCode;
1894
+
1895
+ switch (keyCode) {
1896
+ case 40: // ArrowDown
1897
+
1898
+ case 38:
1899
+ {
1900
+ // ArrowUp
1901
+ var nextPrev = keyCode === 40 ? 'next' : 'prev';
1902
+
1903
+ var _this$sectionIterator = _this.sectionIterator[nextPrev]([highlightedSectionIndex, highlightedItemIndex]),
1904
+ _this$sectionIterator2 = _slicedToArray(_this$sectionIterator, 2),
1905
+ newHighlightedSectionIndex = _this$sectionIterator2[0],
1906
+ newHighlightedItemIndex = _this$sectionIterator2[1];
1907
+
1908
+ inputProps.onKeyDown(event, {
1909
+ newHighlightedSectionIndex: newHighlightedSectionIndex,
1910
+ newHighlightedItemIndex: newHighlightedItemIndex
1911
+ });
1912
+ break;
1913
+ }
1914
+
1915
+ default:
1916
+ inputProps.onKeyDown(event, {
1917
+ highlightedSectionIndex: highlightedSectionIndex,
1918
+ highlightedItemIndex: highlightedItemIndex
1919
+ });
1920
+ }
1921
+ });
1922
+
1923
+ _this.highlightedItem = null;
1924
+ _this.state = {
1925
+ isInputFocused: false
1926
+ };
1927
+
1928
+ _this.setSectionsItems(props);
1929
+
1930
+ _this.setSectionIterator(props);
1931
+
1932
+ _this.setTheme(props);
1933
+
1934
+ return _this;
1935
+ }
1936
+
1937
+ _createClass(Autowhatever, [{
1938
+ key: "componentDidMount",
1939
+ value: function componentDidMount() {
1940
+ this.ensureHighlightedItemIsVisible();
1941
+ } // eslint-disable-next-line camelcase, react/sort-comp
1942
+
1943
+ }, {
1944
+ key: "UNSAFE_componentWillReceiveProps",
1945
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
1946
+ if (nextProps.items !== this.props.items) {
1947
+ this.setSectionsItems(nextProps);
1948
+ }
1949
+
1950
+ if (nextProps.items !== this.props.items || nextProps.multiSection !== this.props.multiSection) {
1951
+ this.setSectionIterator(nextProps);
1952
+ }
1953
+
1954
+ if (nextProps.theme !== this.props.theme) {
1955
+ this.setTheme(nextProps);
1956
+ }
1957
+ }
1958
+ }, {
1959
+ key: "componentDidUpdate",
1960
+ value: function componentDidUpdate() {
1961
+ this.ensureHighlightedItemIsVisible();
1962
+ }
1963
+ }, {
1964
+ key: "setSectionsItems",
1965
+ value: function setSectionsItems(props) {
1966
+ if (props.multiSection) {
1967
+ this.sectionsItems = props.items.map(function (section) {
1968
+ return props.getSectionItems(section);
1969
+ });
1970
+ this.sectionsLengths = this.sectionsItems.map(function (items) {
1971
+ return items.length;
1972
+ });
1973
+ this.allSectionsAreEmpty = this.sectionsLengths.every(function (itemsCount) {
1974
+ return itemsCount === 0;
1975
+ });
1976
+ }
1977
+ }
1978
+ }, {
1979
+ key: "setSectionIterator",
1980
+ value: function setSectionIterator(props) {
1981
+ this.sectionIterator = (0, _sectionIterator["default"])({
1982
+ multiSection: props.multiSection,
1983
+ data: props.multiSection ? this.sectionsLengths : props.items.length
1984
+ });
1985
+ }
1986
+ }, {
1987
+ key: "setTheme",
1988
+ value: function setTheme(props) {
1989
+ this.theme = (0, _reactThemeable["default"])(props.theme);
1990
+ }
1991
+ }, {
1992
+ key: "renderSections",
1993
+ value: function renderSections() {
1994
+ var _this2 = this;
1995
+
1996
+ if (this.allSectionsAreEmpty) {
1997
+ return null;
1998
+ }
1999
+
2000
+ var theme = this.theme;
2001
+ var _this$props2 = this.props,
2002
+ id = _this$props2.id,
2003
+ items = _this$props2.items,
2004
+ renderItem = _this$props2.renderItem,
2005
+ renderItemData = _this$props2.renderItemData,
2006
+ renderSectionTitle = _this$props2.renderSectionTitle,
2007
+ highlightedSectionIndex = _this$props2.highlightedSectionIndex,
2008
+ highlightedItemIndex = _this$props2.highlightedItemIndex,
2009
+ itemProps = _this$props2.itemProps;
2010
+ return items.map(function (section, sectionIndex) {
2011
+ var keyPrefix = "react-autowhatever-".concat(id, "-");
2012
+ var sectionKeyPrefix = "".concat(keyPrefix, "section-").concat(sectionIndex, "-");
2013
+ var isFirstSection = sectionIndex === 0; // `key` is provided by theme()
2014
+
2015
+ /* eslint-disable react/jsx-key */
2016
+
2017
+ return /*#__PURE__*/_react["default"].createElement("div", theme("".concat(sectionKeyPrefix, "container"), 'sectionContainer', isFirstSection && 'sectionContainerFirst'), /*#__PURE__*/_react["default"].createElement(_SectionTitle["default"], {
2018
+ section: section,
2019
+ renderSectionTitle: renderSectionTitle,
2020
+ theme: theme,
2021
+ sectionKeyPrefix: sectionKeyPrefix
2022
+ }), /*#__PURE__*/_react["default"].createElement(_ItemList["default"], {
2023
+ items: _this2.sectionsItems[sectionIndex],
2024
+ itemProps: itemProps,
2025
+ renderItem: renderItem,
2026
+ renderItemData: renderItemData,
2027
+ sectionIndex: sectionIndex,
2028
+ highlightedItemIndex: highlightedSectionIndex === sectionIndex ? highlightedItemIndex : null,
2029
+ onHighlightedItemChange: _this2.onHighlightedItemChange,
2030
+ getItemId: _this2.getItemId,
2031
+ theme: theme,
2032
+ keyPrefix: keyPrefix,
2033
+ ref: _this2.storeItemsListReference
2034
+ }));
2035
+ /* eslint-enable react/jsx-key */
2036
+ });
2037
+ }
2038
+ }, {
2039
+ key: "renderItems",
2040
+ value: function renderItems() {
2041
+ var items = this.props.items;
2042
+
2043
+ if (items.length === 0) {
2044
+ return null;
2045
+ }
2046
+
2047
+ var theme = this.theme;
2048
+ var _this$props3 = this.props,
2049
+ id = _this$props3.id,
2050
+ renderItem = _this$props3.renderItem,
2051
+ renderItemData = _this$props3.renderItemData,
2052
+ highlightedSectionIndex = _this$props3.highlightedSectionIndex,
2053
+ highlightedItemIndex = _this$props3.highlightedItemIndex,
2054
+ itemProps = _this$props3.itemProps;
2055
+ return /*#__PURE__*/_react["default"].createElement(_ItemList["default"], {
2056
+ items: items,
2057
+ itemProps: itemProps,
2058
+ renderItem: renderItem,
2059
+ renderItemData: renderItemData,
2060
+ highlightedItemIndex: highlightedSectionIndex === null ? highlightedItemIndex : null,
2061
+ onHighlightedItemChange: this.onHighlightedItemChange,
2062
+ getItemId: this.getItemId,
2063
+ theme: theme,
2064
+ keyPrefix: "react-autowhatever-".concat(id, "-")
2065
+ });
2066
+ }
2067
+ }, {
2068
+ key: "ensureHighlightedItemIsVisible",
2069
+ value: function ensureHighlightedItemIsVisible() {
2070
+ var highlightedItem = this.highlightedItem;
2071
+
2072
+ if (!highlightedItem) {
2073
+ return;
2074
+ }
2075
+
2076
+ var itemsContainer = this.itemsContainer;
2077
+ var itemOffsetRelativeToContainer = highlightedItem.offsetParent === itemsContainer ? highlightedItem.offsetTop : highlightedItem.offsetTop - itemsContainer.offsetTop;
2078
+ var scrollTop = itemsContainer.scrollTop; // Top of the visible area
2079
+
2080
+ if (itemOffsetRelativeToContainer < scrollTop) {
2081
+ // Item is off the top of the visible area
2082
+ scrollTop = itemOffsetRelativeToContainer;
2083
+ } else if (itemOffsetRelativeToContainer + highlightedItem.offsetHeight > scrollTop + itemsContainer.offsetHeight) {
2084
+ // Item is off the bottom of the visible area
2085
+ scrollTop = itemOffsetRelativeToContainer + highlightedItem.offsetHeight - itemsContainer.offsetHeight;
2086
+ }
2087
+
2088
+ if (scrollTop !== itemsContainer.scrollTop) {
2089
+ itemsContainer.scrollTop = scrollTop;
2090
+ }
2091
+ }
2092
+ }, {
2093
+ key: "render",
2094
+ value: function render() {
2095
+ var theme = this.theme;
2096
+ var _this$props4 = this.props,
2097
+ id = _this$props4.id,
2098
+ multiSection = _this$props4.multiSection,
2099
+ renderInputComponent = _this$props4.renderInputComponent,
2100
+ renderItemsContainer = _this$props4.renderItemsContainer,
2101
+ highlightedSectionIndex = _this$props4.highlightedSectionIndex,
2102
+ highlightedItemIndex = _this$props4.highlightedItemIndex;
2103
+ var isInputFocused = this.state.isInputFocused;
2104
+ var renderedItems = multiSection ? this.renderSections() : this.renderItems();
2105
+ var isOpen = renderedItems !== null;
2106
+ var ariaActivedescendant = this.getItemId(highlightedSectionIndex, highlightedItemIndex);
2107
+ var itemsContainerId = "react-autowhatever-".concat(id);
2108
+
2109
+ var containerProps = _objectSpread({
2110
+ role: 'combobox',
2111
+ 'aria-haspopup': 'listbox',
2112
+ 'aria-owns': itemsContainerId,
2113
+ 'aria-expanded': isOpen
2114
+ }, theme("react-autowhatever-".concat(id, "-container"), 'container', isOpen && 'containerOpen'), {}, this.props.containerProps);
2115
+
2116
+ var inputComponent = renderInputComponent(_objectSpread({
2117
+ type: 'text',
2118
+ value: '',
2119
+ autoComplete: 'off',
2120
+ 'aria-autocomplete': 'list',
2121
+ 'aria-controls': itemsContainerId,
2122
+ 'aria-activedescendant': ariaActivedescendant
2123
+ }, theme("react-autowhatever-".concat(id, "-input"), 'input', isOpen && 'inputOpen', isInputFocused && 'inputFocused'), {}, this.props.inputProps, {
2124
+ onFocus: this.onFocus,
2125
+ onBlur: this.onBlur,
2126
+ onKeyDown: this.props.inputProps.onKeyDown && this.onKeyDown,
2127
+ ref: this.storeInputReference
2128
+ }));
2129
+ var itemsContainer = renderItemsContainer({
2130
+ containerProps: _objectSpread({
2131
+ id: itemsContainerId,
2132
+ role: 'listbox'
2133
+ }, theme("react-autowhatever-".concat(id, "-items-container"), 'itemsContainer', isOpen && 'itemsContainerOpen'), {
2134
+ ref: this.storeItemsContainerReference
2135
+ }),
2136
+ children: renderedItems
2137
+ });
2138
+ return /*#__PURE__*/_react["default"].createElement("div", containerProps, inputComponent, itemsContainer);
2139
+ }
2140
+ }]);
2141
+
2142
+ return Autowhatever;
2143
+ }(_react.Component);
2144
+
2145
+ exports["default"] = Autowhatever;
2146
+
2147
+ _defineProperty(Autowhatever, "propTypes", {
2148
+ id: _propTypes["default"].string,
2149
+ // Used in aria-* attributes. If multiple Autowhatever's are rendered on a page, they must have unique ids.
2150
+ multiSection: _propTypes["default"].bool,
2151
+ // Indicates whether a multi section layout should be rendered.
2152
+ renderInputComponent: _propTypes["default"].func,
2153
+ // When specified, it is used to render the input element.
2154
+ renderItemsContainer: _propTypes["default"].func,
2155
+ // Renders the items container.
2156
+ items: _propTypes["default"].array.isRequired,
2157
+ // Array of items or sections to render.
2158
+ renderItem: _propTypes["default"].func,
2159
+ // This function renders a single item.
2160
+ renderItemData: _propTypes["default"].object,
2161
+ // Arbitrary data that will be passed to renderItem()
2162
+ renderSectionTitle: _propTypes["default"].func,
2163
+ // This function gets a section and renders its title.
2164
+ getSectionItems: _propTypes["default"].func,
2165
+ // This function gets a section and returns its items, which will be passed into `renderItem` for rendering.
2166
+ containerProps: _propTypes["default"].object,
2167
+ // Arbitrary container props
2168
+ inputProps: _propTypes["default"].object,
2169
+ // Arbitrary input props
2170
+ itemProps: _propTypes["default"].oneOfType([// Arbitrary item props
2171
+ _propTypes["default"].object, _propTypes["default"].func]),
2172
+ highlightedSectionIndex: _propTypes["default"].number,
2173
+ // Section index of the highlighted item
2174
+ highlightedItemIndex: _propTypes["default"].number,
2175
+ // Highlighted item index (within a section)
2176
+ theme: _propTypes["default"].oneOfType([// Styles. See: https://github.com/markdalgleish/react-themeable
2177
+ _propTypes["default"].object, _propTypes["default"].array])
2178
+ });
2179
+
2180
+ _defineProperty(Autowhatever, "defaultProps", {
2181
+ id: '1',
2182
+ multiSection: false,
2183
+ renderInputComponent: defaultRenderInputComponent,
2184
+ renderItemsContainer: defaultRenderItemsContainer,
2185
+ renderItem: function renderItem() {
2186
+ throw new Error('`renderItem` must be provided');
2187
+ },
2188
+ renderItemData: emptyObject,
2189
+ renderSectionTitle: function renderSectionTitle() {
2190
+ throw new Error('`renderSectionTitle` must be provided');
2191
+ },
2192
+ getSectionItems: function getSectionItems() {
2193
+ throw new Error('`getSectionItems` must be provided');
2194
+ },
2195
+ containerProps: emptyObject,
2196
+ inputProps: emptyObject,
2197
+ itemProps: emptyObject,
2198
+ highlightedSectionIndex: null,
2199
+ highlightedItemIndex: null,
2200
+ theme: defaultTheme
2201
+ });
2202
+ }(Autowhatever));
2203
+
2204
+ var theme = {};
2205
+
2206
+ Object.defineProperty(theme, "__esModule", {
2207
+ value: true
2208
+ });
2209
+ theme.mapToAutowhateverTheme = theme.defaultTheme = void 0;
2210
+ var defaultTheme = {
2211
+ container: 'react-autosuggest__container',
2212
+ containerOpen: 'react-autosuggest__container--open',
2213
+ input: 'react-autosuggest__input',
2214
+ inputOpen: 'react-autosuggest__input--open',
2215
+ inputFocused: 'react-autosuggest__input--focused',
2216
+ suggestionsContainer: 'react-autosuggest__suggestions-container',
2217
+ suggestionsContainerOpen: 'react-autosuggest__suggestions-container--open',
2218
+ suggestionsList: 'react-autosuggest__suggestions-list',
2219
+ suggestion: 'react-autosuggest__suggestion',
2220
+ suggestionFirst: 'react-autosuggest__suggestion--first',
2221
+ suggestionHighlighted: 'react-autosuggest__suggestion--highlighted',
2222
+ sectionContainer: 'react-autosuggest__section-container',
2223
+ sectionContainerFirst: 'react-autosuggest__section-container--first',
2224
+ sectionTitle: 'react-autosuggest__section-title'
2225
+ };
2226
+ theme.defaultTheme = defaultTheme;
2227
+
2228
+ var mapToAutowhateverTheme = function mapToAutowhateverTheme(theme) {
2229
+ var result = {};
2230
+
2231
+ for (var key in theme) {
2232
+ switch (key) {
2233
+ case 'suggestionsContainer':
2234
+ result['itemsContainer'] = theme[key];
2235
+ break;
2236
+
2237
+ case 'suggestionsContainerOpen':
2238
+ result['itemsContainerOpen'] = theme[key];
2239
+ break;
2240
+
2241
+ case 'suggestion':
2242
+ result['item'] = theme[key];
2243
+ break;
2244
+
2245
+ case 'suggestionFirst':
2246
+ result['itemFirst'] = theme[key];
2247
+ break;
2248
+
2249
+ case 'suggestionHighlighted':
2250
+ result['itemHighlighted'] = theme[key];
2251
+ break;
2252
+
2253
+ case 'suggestionsList':
2254
+ result['itemsList'] = theme[key];
2255
+ break;
2256
+
2257
+ default:
2258
+ result[key] = theme[key];
2259
+ }
2260
+ }
2261
+
2262
+ return result;
2263
+ };
2264
+
2265
+ theme.mapToAutowhateverTheme = mapToAutowhateverTheme;
2266
+
2267
+ (function (exports) {
2268
+
2269
+ Object.defineProperty(exports, "__esModule", {
2270
+ value: true
2271
+ });
2272
+ exports["default"] = void 0;
2273
+
2274
+ var _react = _interopRequireWildcard(require$$0__default);
2275
+
2276
+ var _propTypes = _interopRequireDefault(propTypes.exports);
2277
+
2278
+ var _arrays = _interopRequireDefault(arrays);
2279
+
2280
+ var _Autowhatever = _interopRequireDefault(Autowhatever);
2281
+
2282
+ var _theme = theme;
2283
+
2284
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2285
+
2286
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
2287
+
2288
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2289
+
2290
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2291
+
2292
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2293
+
2294
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2295
+
2296
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2297
+
2298
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2299
+
2300
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
2301
+
2302
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2303
+
2304
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
2305
+
2306
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2307
+
2308
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
2309
+
2310
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2311
+
2312
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
2313
+
2314
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2315
+
2316
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2317
+
2318
+ var alwaysTrue = function alwaysTrue() {
2319
+ return true;
2320
+ };
2321
+
2322
+ var defaultShouldRenderSuggestions = function defaultShouldRenderSuggestions(value) {
2323
+ return value.trim().length > 0;
2324
+ };
2325
+
2326
+ var defaultRenderSuggestionsContainer = function defaultRenderSuggestionsContainer(_ref) {
2327
+ var containerProps = _ref.containerProps,
2328
+ children = _ref.children;
2329
+ return /*#__PURE__*/_react["default"].createElement("div", containerProps, children);
2330
+ };
2331
+
2332
+ var REASON_SUGGESTIONS_REVEALED = 'suggestions-revealed';
2333
+ var REASON_SUGGESTIONS_UPDATED = 'suggestions-updated';
2334
+ var REASON_SUGGESTION_SELECTED = 'suggestion-selected';
2335
+ var REASON_INPUT_FOCUSED = 'input-focused';
2336
+ var REASON_INPUT_CHANGED = 'input-changed';
2337
+ var REASON_INPUT_BLURRED = 'input-blurred';
2338
+ var REASON_ESCAPE_PRESSED = 'escape-pressed';
2339
+
2340
+ var Autosuggest = /*#__PURE__*/function (_Component) {
2341
+ _inherits(Autosuggest, _Component);
2342
+
2343
+ var _super = _createSuper(Autosuggest);
2344
+
2345
+ function Autosuggest(_ref2) {
2346
+ var _this;
2347
+
2348
+ var _alwaysRenderSuggestions = _ref2.alwaysRenderSuggestions;
2349
+
2350
+ _classCallCheck(this, Autosuggest);
2351
+
2352
+ _this = _super.call(this);
2353
+
2354
+ _defineProperty(_assertThisInitialized(_this), "onDocumentMouseDown", function (event) {
2355
+ _this.justClickedOnSuggestionsContainer = false;
2356
+ var node = event.detail && event.detail.target || // This is for testing only. Please show me a better way to emulate this.
2357
+ event.target;
2358
+
2359
+ while (node !== null && node !== document) {
2360
+ if (node.getAttribute && node.getAttribute('data-suggestion-index') !== null) {
2361
+ // Suggestion was clicked
2362
+ return;
2363
+ }
2364
+
2365
+ if (node === _this.suggestionsContainer) {
2366
+ // Something else inside suggestions container was clicked
2367
+ _this.justClickedOnSuggestionsContainer = true;
2368
+ return;
2369
+ }
2370
+
2371
+ node = node.parentNode;
2372
+ }
2373
+ });
2374
+
2375
+ _defineProperty(_assertThisInitialized(_this), "storeAutowhateverRef", function (autowhatever) {
2376
+ if (autowhatever !== null) {
2377
+ _this.autowhatever = autowhatever;
2378
+ }
2379
+ });
2380
+
2381
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionMouseEnter", function (event, _ref3) {
2382
+ var sectionIndex = _ref3.sectionIndex,
2383
+ itemIndex = _ref3.itemIndex;
2384
+
2385
+ _this.updateHighlightedSuggestion(sectionIndex, itemIndex);
2386
+
2387
+ if (event.target === _this.pressedSuggestion) {
2388
+ _this.justSelectedSuggestion = true;
2389
+ }
2390
+
2391
+ _this.justMouseEntered = true;
2392
+ setTimeout(function () {
2393
+ _this.justMouseEntered = false;
2394
+ });
2395
+ });
2396
+
2397
+ _defineProperty(_assertThisInitialized(_this), "highlightFirstSuggestion", function () {
2398
+ _this.updateHighlightedSuggestion(_this.props.multiSection ? 0 : null, 0);
2399
+ });
2400
+
2401
+ _defineProperty(_assertThisInitialized(_this), "onDocumentMouseUp", function () {
2402
+ if (_this.pressedSuggestion && !_this.justSelectedSuggestion) {
2403
+ _this.input.focus();
2404
+ }
2405
+
2406
+ _this.pressedSuggestion = null;
2407
+ });
2408
+
2409
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionMouseDown", function (event) {
2410
+ // Checking if this.justSelectedSuggestion is already true to not duplicate touch events in chrome
2411
+ // See: https://github.com/facebook/react/issues/9809#issuecomment-413978405
2412
+ if (!_this.justSelectedSuggestion) {
2413
+ _this.justSelectedSuggestion = true;
2414
+ _this.pressedSuggestion = event.target;
2415
+ }
2416
+ });
2417
+
2418
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionsClearRequested", function () {
2419
+ var onSuggestionsClearRequested = _this.props.onSuggestionsClearRequested;
2420
+ onSuggestionsClearRequested && onSuggestionsClearRequested();
2421
+ });
2422
+
2423
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionSelected", function (event, data) {
2424
+ var _this$props = _this.props,
2425
+ alwaysRenderSuggestions = _this$props.alwaysRenderSuggestions,
2426
+ onSuggestionSelected = _this$props.onSuggestionSelected,
2427
+ onSuggestionsFetchRequested = _this$props.onSuggestionsFetchRequested;
2428
+ onSuggestionSelected && onSuggestionSelected(event, data);
2429
+
2430
+ var keepSuggestionsOnSelect = _this.props.shouldKeepSuggestionsOnSelect(data.suggestion);
2431
+
2432
+ if (alwaysRenderSuggestions || keepSuggestionsOnSelect) {
2433
+ onSuggestionsFetchRequested({
2434
+ value: data.suggestionValue,
2435
+ reason: REASON_SUGGESTION_SELECTED
2436
+ });
2437
+ } else {
2438
+ _this.onSuggestionsClearRequested();
2439
+ }
2440
+
2441
+ _this.resetHighlightedSuggestion();
2442
+ });
2443
+
2444
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionClick", function (event) {
2445
+ var _this$props2 = _this.props,
2446
+ alwaysRenderSuggestions = _this$props2.alwaysRenderSuggestions,
2447
+ focusInputOnSuggestionClick = _this$props2.focusInputOnSuggestionClick;
2448
+
2449
+ var _this$getSuggestionIn = _this.getSuggestionIndices(_this.findSuggestionElement(event.target)),
2450
+ sectionIndex = _this$getSuggestionIn.sectionIndex,
2451
+ suggestionIndex = _this$getSuggestionIn.suggestionIndex;
2452
+
2453
+ var clickedSuggestion = _this.getSuggestion(sectionIndex, suggestionIndex);
2454
+
2455
+ var clickedSuggestionValue = _this.props.getSuggestionValue(clickedSuggestion);
2456
+
2457
+ _this.maybeCallOnChange(event, clickedSuggestionValue, 'click');
2458
+
2459
+ _this.onSuggestionSelected(event, {
2460
+ suggestion: clickedSuggestion,
2461
+ suggestionValue: clickedSuggestionValue,
2462
+ suggestionIndex: suggestionIndex,
2463
+ sectionIndex: sectionIndex,
2464
+ method: 'click'
2465
+ });
2466
+
2467
+ var keepSuggestionsOnSelect = _this.props.shouldKeepSuggestionsOnSelect(clickedSuggestion);
2468
+
2469
+ if (!(alwaysRenderSuggestions || keepSuggestionsOnSelect)) {
2470
+ _this.closeSuggestions();
2471
+ }
2472
+
2473
+ if (focusInputOnSuggestionClick === true) {
2474
+ _this.input.focus();
2475
+ } else {
2476
+ _this.onBlur();
2477
+ }
2478
+
2479
+ setTimeout(function () {
2480
+ _this.justSelectedSuggestion = false;
2481
+ });
2482
+ });
2483
+
2484
+ _defineProperty(_assertThisInitialized(_this), "onBlur", function () {
2485
+ var _this$props3 = _this.props,
2486
+ inputProps = _this$props3.inputProps,
2487
+ shouldRenderSuggestions = _this$props3.shouldRenderSuggestions;
2488
+ var value = inputProps.value,
2489
+ onBlur = inputProps.onBlur;
2490
+
2491
+ var highlightedSuggestion = _this.getHighlightedSuggestion();
2492
+
2493
+ var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_BLURRED);
2494
+
2495
+ _this.setState({
2496
+ isFocused: false,
2497
+ highlightedSectionIndex: null,
2498
+ highlightedSuggestionIndex: null,
2499
+ highlightedSuggestion: null,
2500
+ valueBeforeUpDown: null,
2501
+ isCollapsed: !shouldRender
2502
+ });
2503
+
2504
+ onBlur && onBlur(_this.blurEvent, {
2505
+ highlightedSuggestion: highlightedSuggestion
2506
+ });
2507
+ });
2508
+
2509
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionMouseLeave", function (event) {
2510
+ _this.resetHighlightedSuggestion(false); // shouldResetValueBeforeUpDown
2511
+
2512
+
2513
+ if (_this.justSelectedSuggestion && event.target === _this.pressedSuggestion) {
2514
+ _this.justSelectedSuggestion = false;
2515
+ }
2516
+ });
2517
+
2518
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionTouchStart", function () {
2519
+ _this.justSelectedSuggestion = true; // todo: event.preventDefault when https://github.com/facebook/react/issues/2043
2520
+ // todo: gets released so onSuggestionMouseDown won't fire in chrome
2521
+ });
2522
+
2523
+ _defineProperty(_assertThisInitialized(_this), "onSuggestionTouchMove", function () {
2524
+ _this.justSelectedSuggestion = false;
2525
+ _this.pressedSuggestion = null;
2526
+
2527
+ _this.input.focus();
2528
+ });
2529
+
2530
+ _defineProperty(_assertThisInitialized(_this), "itemProps", function (_ref4) {
2531
+ var sectionIndex = _ref4.sectionIndex,
2532
+ itemIndex = _ref4.itemIndex;
2533
+ return {
2534
+ 'data-section-index': sectionIndex,
2535
+ 'data-suggestion-index': itemIndex,
2536
+ onMouseEnter: _this.onSuggestionMouseEnter,
2537
+ onMouseLeave: _this.onSuggestionMouseLeave,
2538
+ onMouseDown: _this.onSuggestionMouseDown,
2539
+ onTouchStart: _this.onSuggestionTouchStart,
2540
+ onTouchMove: _this.onSuggestionTouchMove,
2541
+ onClick: _this.onSuggestionClick
2542
+ };
2543
+ });
2544
+
2545
+ _defineProperty(_assertThisInitialized(_this), "renderSuggestionsContainer", function (_ref5) {
2546
+ var containerProps = _ref5.containerProps,
2547
+ children = _ref5.children;
2548
+ var renderSuggestionsContainer = _this.props.renderSuggestionsContainer;
2549
+ return renderSuggestionsContainer({
2550
+ containerProps: containerProps,
2551
+ children: children,
2552
+ query: _this.getQuery()
2553
+ });
2554
+ });
2555
+
2556
+ _this.state = {
2557
+ isFocused: false,
2558
+ isCollapsed: !_alwaysRenderSuggestions,
2559
+ highlightedSectionIndex: null,
2560
+ highlightedSuggestionIndex: null,
2561
+ highlightedSuggestion: null,
2562
+ valueBeforeUpDown: null
2563
+ };
2564
+ _this.justPressedUpDown = false;
2565
+ _this.justMouseEntered = false;
2566
+ _this.pressedSuggestion = null;
2567
+ return _this;
2568
+ }
2569
+
2570
+ _createClass(Autosuggest, [{
2571
+ key: "componentDidMount",
2572
+ value: function componentDidMount() {
2573
+ document.addEventListener('mousedown', this.onDocumentMouseDown);
2574
+ document.addEventListener('mouseup', this.onDocumentMouseUp);
2575
+ this.input = this.autowhatever.input;
2576
+ this.suggestionsContainer = this.autowhatever.itemsContainer;
2577
+ } // eslint-disable-next-line camelcase, react/sort-comp
2578
+
2579
+ }, {
2580
+ key: "UNSAFE_componentWillReceiveProps",
2581
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
2582
+ // When highlightFirstSuggestion becomes deactivated, if the first suggestion was
2583
+ // set, we should reset the suggestion back to the unselected default state.
2584
+ var shouldResetHighlighting = this.state.highlightedSuggestionIndex === 0 && this.props.highlightFirstSuggestion && !nextProps.highlightFirstSuggestion;
2585
+
2586
+ if ((0, _arrays["default"])(nextProps.suggestions, this.props.suggestions)) {
2587
+ if (nextProps.highlightFirstSuggestion && nextProps.suggestions.length > 0 && this.justPressedUpDown === false && this.justMouseEntered === false) {
2588
+ this.highlightFirstSuggestion();
2589
+ } else if (shouldResetHighlighting) {
2590
+ this.resetHighlightedSuggestion();
2591
+ }
2592
+ } else {
2593
+ if (this.willRenderSuggestions(nextProps, REASON_SUGGESTIONS_UPDATED)) {
2594
+ if (this.state.isCollapsed && !this.justSelectedSuggestion) {
2595
+ this.revealSuggestions();
2596
+ }
2597
+
2598
+ if (shouldResetHighlighting) {
2599
+ this.resetHighlightedSuggestion();
2600
+ }
2601
+ } else {
2602
+ this.resetHighlightedSuggestion();
2603
+ }
2604
+ }
2605
+ }
2606
+ }, {
2607
+ key: "componentDidUpdate",
2608
+ value: function componentDidUpdate(prevProps, prevState) {
2609
+ var _this$props4 = this.props,
2610
+ suggestions = _this$props4.suggestions,
2611
+ onSuggestionHighlighted = _this$props4.onSuggestionHighlighted,
2612
+ highlightFirstSuggestion = _this$props4.highlightFirstSuggestion;
2613
+
2614
+ if (!(0, _arrays["default"])(suggestions, prevProps.suggestions) && suggestions.length > 0 && highlightFirstSuggestion) {
2615
+ this.highlightFirstSuggestion();
2616
+ return;
2617
+ }
2618
+
2619
+ if (onSuggestionHighlighted) {
2620
+ var highlightedSuggestion = this.getHighlightedSuggestion();
2621
+ var prevHighlightedSuggestion = prevState.highlightedSuggestion;
2622
+
2623
+ if (highlightedSuggestion != prevHighlightedSuggestion) {
2624
+ onSuggestionHighlighted({
2625
+ suggestion: highlightedSuggestion
2626
+ });
2627
+ }
2628
+ }
2629
+ }
2630
+ }, {
2631
+ key: "componentWillUnmount",
2632
+ value: function componentWillUnmount() {
2633
+ document.removeEventListener('mousedown', this.onDocumentMouseDown);
2634
+ document.removeEventListener('mouseup', this.onDocumentMouseUp);
2635
+ }
2636
+ }, {
2637
+ key: "updateHighlightedSuggestion",
2638
+ value: function updateHighlightedSuggestion(sectionIndex, suggestionIndex, prevValue) {
2639
+ var _this2 = this;
2640
+
2641
+ this.setState(function (state) {
2642
+ var valueBeforeUpDown = state.valueBeforeUpDown;
2643
+
2644
+ if (suggestionIndex === null) {
2645
+ valueBeforeUpDown = null;
2646
+ } else if (valueBeforeUpDown === null && typeof prevValue !== 'undefined') {
2647
+ valueBeforeUpDown = prevValue;
2648
+ }
2649
+
2650
+ return {
2651
+ highlightedSectionIndex: sectionIndex,
2652
+ highlightedSuggestionIndex: suggestionIndex,
2653
+ highlightedSuggestion: suggestionIndex === null ? null : _this2.getSuggestion(sectionIndex, suggestionIndex),
2654
+ valueBeforeUpDown: valueBeforeUpDown
2655
+ };
2656
+ });
2657
+ }
2658
+ }, {
2659
+ key: "resetHighlightedSuggestion",
2660
+ value: function resetHighlightedSuggestion() {
2661
+ var shouldResetValueBeforeUpDown = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
2662
+ this.setState(function (state) {
2663
+ var valueBeforeUpDown = state.valueBeforeUpDown;
2664
+ return {
2665
+ highlightedSectionIndex: null,
2666
+ highlightedSuggestionIndex: null,
2667
+ highlightedSuggestion: null,
2668
+ valueBeforeUpDown: shouldResetValueBeforeUpDown ? null : valueBeforeUpDown
2669
+ };
2670
+ });
2671
+ }
2672
+ }, {
2673
+ key: "revealSuggestions",
2674
+ value: function revealSuggestions() {
2675
+ this.setState({
2676
+ isCollapsed: false
2677
+ });
2678
+ }
2679
+ }, {
2680
+ key: "closeSuggestions",
2681
+ value: function closeSuggestions() {
2682
+ this.setState({
2683
+ highlightedSectionIndex: null,
2684
+ highlightedSuggestionIndex: null,
2685
+ highlightedSuggestion: null,
2686
+ valueBeforeUpDown: null,
2687
+ isCollapsed: true
2688
+ });
2689
+ }
2690
+ }, {
2691
+ key: "getSuggestion",
2692
+ value: function getSuggestion(sectionIndex, suggestionIndex) {
2693
+ var _this$props5 = this.props,
2694
+ suggestions = _this$props5.suggestions,
2695
+ multiSection = _this$props5.multiSection,
2696
+ getSectionSuggestions = _this$props5.getSectionSuggestions;
2697
+
2698
+ if (multiSection) {
2699
+ return getSectionSuggestions(suggestions[sectionIndex])[suggestionIndex];
2700
+ }
2701
+
2702
+ return suggestions[suggestionIndex];
2703
+ }
2704
+ }, {
2705
+ key: "getHighlightedSuggestion",
2706
+ value: function getHighlightedSuggestion() {
2707
+ var _this$state = this.state,
2708
+ highlightedSectionIndex = _this$state.highlightedSectionIndex,
2709
+ highlightedSuggestionIndex = _this$state.highlightedSuggestionIndex;
2710
+
2711
+ if (highlightedSuggestionIndex === null) {
2712
+ return null;
2713
+ }
2714
+
2715
+ return this.getSuggestion(highlightedSectionIndex, highlightedSuggestionIndex);
2716
+ }
2717
+ }, {
2718
+ key: "getSuggestionValueByIndex",
2719
+ value: function getSuggestionValueByIndex(sectionIndex, suggestionIndex) {
2720
+ var getSuggestionValue = this.props.getSuggestionValue;
2721
+ return getSuggestionValue(this.getSuggestion(sectionIndex, suggestionIndex));
2722
+ }
2723
+ }, {
2724
+ key: "getSuggestionIndices",
2725
+ value: function getSuggestionIndices(suggestionElement) {
2726
+ var sectionIndex = suggestionElement.getAttribute('data-section-index');
2727
+ var suggestionIndex = suggestionElement.getAttribute('data-suggestion-index');
2728
+ return {
2729
+ sectionIndex: typeof sectionIndex === 'string' ? parseInt(sectionIndex, 10) : null,
2730
+ suggestionIndex: parseInt(suggestionIndex, 10)
2731
+ };
2732
+ }
2733
+ }, {
2734
+ key: "findSuggestionElement",
2735
+ value: function findSuggestionElement(startNode) {
2736
+ var node = startNode;
2737
+
2738
+ do {
2739
+ if (node.getAttribute && node.getAttribute('data-suggestion-index') !== null) {
2740
+ return node;
2741
+ }
2742
+
2743
+ node = node.parentNode;
2744
+ } while (node !== null);
2745
+
2746
+ console.error('Clicked element:', startNode); // eslint-disable-line no-console
2747
+
2748
+ throw new Error("Couldn't find suggestion element");
2749
+ }
2750
+ }, {
2751
+ key: "maybeCallOnChange",
2752
+ value: function maybeCallOnChange(event, newValue, method) {
2753
+ var _this$props$inputProp = this.props.inputProps,
2754
+ value = _this$props$inputProp.value,
2755
+ onChange = _this$props$inputProp.onChange;
2756
+
2757
+ if (newValue !== value) {
2758
+ onChange(event, {
2759
+ newValue: newValue,
2760
+ method: method
2761
+ });
2762
+ }
2763
+ }
2764
+ }, {
2765
+ key: "willRenderSuggestions",
2766
+ value: function willRenderSuggestions(props, reason) {
2767
+ var suggestions = props.suggestions,
2768
+ inputProps = props.inputProps,
2769
+ shouldRenderSuggestions = props.shouldRenderSuggestions;
2770
+ var value = inputProps.value;
2771
+ return suggestions.length > 0 && shouldRenderSuggestions(value, reason);
2772
+ }
2773
+ }, {
2774
+ key: "getQuery",
2775
+ value: function getQuery() {
2776
+ var inputProps = this.props.inputProps;
2777
+ var value = inputProps.value;
2778
+ var valueBeforeUpDown = this.state.valueBeforeUpDown;
2779
+ return (valueBeforeUpDown === null ? value : valueBeforeUpDown).trim();
2780
+ }
2781
+ }, {
2782
+ key: "render",
2783
+ value: function render() {
2784
+ var _this3 = this;
2785
+
2786
+ var _this$props6 = this.props,
2787
+ suggestions = _this$props6.suggestions,
2788
+ renderInputComponent = _this$props6.renderInputComponent,
2789
+ onSuggestionsFetchRequested = _this$props6.onSuggestionsFetchRequested,
2790
+ renderSuggestion = _this$props6.renderSuggestion,
2791
+ inputProps = _this$props6.inputProps,
2792
+ multiSection = _this$props6.multiSection,
2793
+ renderSectionTitle = _this$props6.renderSectionTitle,
2794
+ id = _this$props6.id,
2795
+ getSectionSuggestions = _this$props6.getSectionSuggestions,
2796
+ theme = _this$props6.theme,
2797
+ getSuggestionValue = _this$props6.getSuggestionValue,
2798
+ alwaysRenderSuggestions = _this$props6.alwaysRenderSuggestions,
2799
+ highlightFirstSuggestion = _this$props6.highlightFirstSuggestion,
2800
+ containerProps = _this$props6.containerProps;
2801
+ var _this$state2 = this.state,
2802
+ isFocused = _this$state2.isFocused,
2803
+ isCollapsed = _this$state2.isCollapsed,
2804
+ highlightedSectionIndex = _this$state2.highlightedSectionIndex,
2805
+ highlightedSuggestionIndex = _this$state2.highlightedSuggestionIndex,
2806
+ valueBeforeUpDown = _this$state2.valueBeforeUpDown;
2807
+ var shouldRenderSuggestions = alwaysRenderSuggestions ? alwaysTrue : this.props.shouldRenderSuggestions;
2808
+ var value = inputProps.value,
2809
+ _onFocus = inputProps.onFocus,
2810
+ _onKeyDown = inputProps.onKeyDown;
2811
+ var willRenderSuggestions = this.willRenderSuggestions(this.props, 'render');
2812
+ var isOpen = alwaysRenderSuggestions || isFocused && !isCollapsed && willRenderSuggestions;
2813
+ var items = isOpen ? suggestions : [];
2814
+
2815
+ var autowhateverInputProps = _objectSpread({}, inputProps, {
2816
+ onFocus: function onFocus(event) {
2817
+ if (!_this3.justSelectedSuggestion && !_this3.justClickedOnSuggestionsContainer) {
2818
+ var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_FOCUSED);
2819
+
2820
+ _this3.setState({
2821
+ isFocused: true,
2822
+ isCollapsed: !shouldRender
2823
+ });
2824
+
2825
+ _onFocus && _onFocus(event);
2826
+
2827
+ if (shouldRender) {
2828
+ onSuggestionsFetchRequested({
2829
+ value: value,
2830
+ reason: REASON_INPUT_FOCUSED
2831
+ });
2832
+ }
2833
+ }
2834
+ },
2835
+ onBlur: function onBlur(event) {
2836
+ if (_this3.justClickedOnSuggestionsContainer) {
2837
+ _this3.input.focus();
2838
+
2839
+ return;
2840
+ }
2841
+
2842
+ _this3.blurEvent = event;
2843
+
2844
+ if (!_this3.justSelectedSuggestion) {
2845
+ _this3.onBlur();
2846
+
2847
+ _this3.onSuggestionsClearRequested();
2848
+ }
2849
+ },
2850
+ onChange: function onChange(event) {
2851
+ var value = event.target.value;
2852
+ var shouldRender = shouldRenderSuggestions(value, REASON_INPUT_CHANGED);
2853
+
2854
+ _this3.maybeCallOnChange(event, value, 'type');
2855
+
2856
+ if (_this3.suggestionsContainer) {
2857
+ _this3.suggestionsContainer.scrollTop = 0;
2858
+ }
2859
+
2860
+ _this3.setState(_objectSpread({}, highlightFirstSuggestion ? {} : {
2861
+ highlightedSectionIndex: null,
2862
+ highlightedSuggestionIndex: null,
2863
+ highlightedSuggestion: null
2864
+ }, {
2865
+ valueBeforeUpDown: null,
2866
+ isCollapsed: !shouldRender
2867
+ }));
2868
+
2869
+ if (shouldRender) {
2870
+ onSuggestionsFetchRequested({
2871
+ value: value,
2872
+ reason: REASON_INPUT_CHANGED
2873
+ });
2874
+ } else {
2875
+ _this3.onSuggestionsClearRequested();
2876
+ }
2877
+ },
2878
+ onKeyDown: function onKeyDown(event, data) {
2879
+ var keyCode = event.keyCode;
2880
+
2881
+ switch (keyCode) {
2882
+ case 40: // ArrowDown
2883
+
2884
+ case 38:
2885
+ // ArrowUp
2886
+ if (isCollapsed) {
2887
+ if (shouldRenderSuggestions(value, REASON_SUGGESTIONS_REVEALED)) {
2888
+ onSuggestionsFetchRequested({
2889
+ value: value,
2890
+ reason: REASON_SUGGESTIONS_REVEALED
2891
+ });
2892
+
2893
+ _this3.revealSuggestions();
2894
+
2895
+ event.preventDefault(); // We act on the key.
2896
+ }
2897
+ } else if (suggestions.length > 0) {
2898
+ var newHighlightedSectionIndex = data.newHighlightedSectionIndex,
2899
+ newHighlightedItemIndex = data.newHighlightedItemIndex;
2900
+ var newValue;
2901
+
2902
+ if (newHighlightedItemIndex === null) {
2903
+ // valueBeforeUpDown can be null if, for example, user
2904
+ // hovers on the first suggestion and then pressed Up.
2905
+ // If that happens, use the original input value.
2906
+ newValue = valueBeforeUpDown === null ? value : valueBeforeUpDown;
2907
+ } else {
2908
+ newValue = _this3.getSuggestionValueByIndex(newHighlightedSectionIndex, newHighlightedItemIndex);
2909
+ }
2910
+
2911
+ _this3.updateHighlightedSuggestion(newHighlightedSectionIndex, newHighlightedItemIndex, value);
2912
+
2913
+ _this3.maybeCallOnChange(event, newValue, keyCode === 40 ? 'down' : 'up');
2914
+
2915
+ event.preventDefault(); // We act on the key.
2916
+ }
2917
+
2918
+ _this3.justPressedUpDown = true;
2919
+ setTimeout(function () {
2920
+ _this3.justPressedUpDown = false;
2921
+ });
2922
+ break;
2923
+ // Enter
2924
+
2925
+ case 13:
2926
+ {
2927
+ // See #388
2928
+ if (event.keyCode === 229) {
2929
+ break;
2930
+ }
2931
+
2932
+ var highlightedSuggestion = _this3.getHighlightedSuggestion();
2933
+
2934
+ if (isOpen && !alwaysRenderSuggestions) {
2935
+ _this3.closeSuggestions();
2936
+ }
2937
+
2938
+ if (highlightedSuggestion != null) {
2939
+ event.preventDefault();
2940
+
2941
+ var _newValue = getSuggestionValue(highlightedSuggestion);
2942
+
2943
+ _this3.maybeCallOnChange(event, _newValue, 'enter');
2944
+
2945
+ _this3.onSuggestionSelected(event, {
2946
+ suggestion: highlightedSuggestion,
2947
+ suggestionValue: _newValue,
2948
+ suggestionIndex: highlightedSuggestionIndex,
2949
+ sectionIndex: highlightedSectionIndex,
2950
+ method: 'enter'
2951
+ });
2952
+
2953
+ _this3.justSelectedSuggestion = true;
2954
+ setTimeout(function () {
2955
+ _this3.justSelectedSuggestion = false;
2956
+ });
2957
+ }
2958
+
2959
+ break;
2960
+ }
2961
+ // Escape
2962
+
2963
+ case 27:
2964
+ {
2965
+ if (isOpen) {
2966
+ // If input.type === 'search', the browser clears the input
2967
+ // when Escape is pressed. We want to disable this default
2968
+ // behaviour so that, when suggestions are shown, we just hide
2969
+ // them, without clearing the input.
2970
+ event.preventDefault();
2971
+ }
2972
+
2973
+ var willCloseSuggestions = isOpen && !alwaysRenderSuggestions;
2974
+
2975
+ if (valueBeforeUpDown === null) {
2976
+ // Didn't interact with Up/Down
2977
+ if (!willCloseSuggestions) {
2978
+ var _newValue2 = '';
2979
+
2980
+ _this3.maybeCallOnChange(event, _newValue2, 'escape');
2981
+
2982
+ if (shouldRenderSuggestions(_newValue2, REASON_ESCAPE_PRESSED)) {
2983
+ onSuggestionsFetchRequested({
2984
+ value: _newValue2,
2985
+ reason: REASON_ESCAPE_PRESSED
2986
+ });
2987
+ } else {
2988
+ _this3.onSuggestionsClearRequested();
2989
+ }
2990
+ }
2991
+ } else {
2992
+ // Interacted with Up/Down
2993
+ _this3.maybeCallOnChange(event, valueBeforeUpDown, 'escape');
2994
+ }
2995
+
2996
+ if (willCloseSuggestions) {
2997
+ _this3.onSuggestionsClearRequested();
2998
+
2999
+ _this3.closeSuggestions();
3000
+ } else {
3001
+ _this3.resetHighlightedSuggestion();
3002
+ }
3003
+
3004
+ break;
3005
+ }
3006
+ }
3007
+
3008
+ _onKeyDown && _onKeyDown(event);
3009
+ }
3010
+ });
3011
+
3012
+ var renderSuggestionData = {
3013
+ query: this.getQuery()
3014
+ };
3015
+ return /*#__PURE__*/_react["default"].createElement(_Autowhatever["default"], {
3016
+ multiSection: multiSection,
3017
+ items: items,
3018
+ renderInputComponent: renderInputComponent,
3019
+ renderItemsContainer: this.renderSuggestionsContainer,
3020
+ renderItem: renderSuggestion,
3021
+ renderItemData: renderSuggestionData,
3022
+ renderSectionTitle: renderSectionTitle,
3023
+ getSectionItems: getSectionSuggestions,
3024
+ highlightedSectionIndex: highlightedSectionIndex,
3025
+ highlightedItemIndex: highlightedSuggestionIndex,
3026
+ containerProps: containerProps,
3027
+ inputProps: autowhateverInputProps,
3028
+ itemProps: this.itemProps,
3029
+ theme: (0, _theme.mapToAutowhateverTheme)(theme),
3030
+ id: id,
3031
+ ref: this.storeAutowhateverRef
3032
+ });
3033
+ }
3034
+ }]);
3035
+
3036
+ return Autosuggest;
3037
+ }(_react.Component);
3038
+
3039
+ exports["default"] = Autosuggest;
3040
+
3041
+ _defineProperty(Autosuggest, "propTypes", {
3042
+ suggestions: _propTypes["default"].array.isRequired,
3043
+ onSuggestionsFetchRequested: function onSuggestionsFetchRequested(props, propName) {
3044
+ var onSuggestionsFetchRequested = props[propName];
3045
+
3046
+ if (typeof onSuggestionsFetchRequested !== 'function') {
3047
+ throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp");
3048
+ }
3049
+ },
3050
+ onSuggestionsClearRequested: function onSuggestionsClearRequested(props, propName) {
3051
+ var onSuggestionsClearRequested = props[propName];
3052
+
3053
+ if (props.alwaysRenderSuggestions === false && typeof onSuggestionsClearRequested !== 'function') {
3054
+ throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp");
3055
+ }
3056
+ },
3057
+ shouldKeepSuggestionsOnSelect: _propTypes["default"].func,
3058
+ onSuggestionSelected: _propTypes["default"].func,
3059
+ onSuggestionHighlighted: _propTypes["default"].func,
3060
+ renderInputComponent: _propTypes["default"].func,
3061
+ renderSuggestionsContainer: _propTypes["default"].func,
3062
+ getSuggestionValue: _propTypes["default"].func.isRequired,
3063
+ renderSuggestion: _propTypes["default"].func.isRequired,
3064
+ inputProps: function inputProps(props, propName) {
3065
+ var inputProps = props[propName];
3066
+
3067
+ if (!inputProps) {
3068
+ throw new Error("'inputProps' must be passed.");
3069
+ }
3070
+
3071
+ if (!Object.prototype.hasOwnProperty.call(inputProps, 'value')) {
3072
+ throw new Error("'inputProps' must have 'value'.");
3073
+ }
3074
+
3075
+ if (!Object.prototype.hasOwnProperty.call(inputProps, 'onChange')) {
3076
+ throw new Error("'inputProps' must have 'onChange'.");
3077
+ }
3078
+ },
3079
+ shouldRenderSuggestions: _propTypes["default"].func,
3080
+ alwaysRenderSuggestions: _propTypes["default"].bool,
3081
+ multiSection: _propTypes["default"].bool,
3082
+ renderSectionTitle: function renderSectionTitle(props, propName) {
3083
+ var renderSectionTitle = props[propName];
3084
+
3085
+ if (props.multiSection === true && typeof renderSectionTitle !== 'function') {
3086
+ throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp");
3087
+ }
3088
+ },
3089
+ getSectionSuggestions: function getSectionSuggestions(props, propName) {
3090
+ var getSectionSuggestions = props[propName];
3091
+
3092
+ if (props.multiSection === true && typeof getSectionSuggestions !== 'function') {
3093
+ throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp");
3094
+ }
3095
+ },
3096
+ focusInputOnSuggestionClick: _propTypes["default"].bool,
3097
+ highlightFirstSuggestion: _propTypes["default"].bool,
3098
+ theme: _propTypes["default"].object,
3099
+ id: _propTypes["default"].string,
3100
+ containerProps: _propTypes["default"].object // Arbitrary container props
3101
+
3102
+ });
3103
+
3104
+ _defineProperty(Autosuggest, "defaultProps", {
3105
+ renderSuggestionsContainer: defaultRenderSuggestionsContainer,
3106
+ shouldRenderSuggestions: defaultShouldRenderSuggestions,
3107
+ alwaysRenderSuggestions: false,
3108
+ multiSection: false,
3109
+ shouldKeepSuggestionsOnSelect: function shouldKeepSuggestionsOnSelect() {
3110
+ return false;
3111
+ },
3112
+ focusInputOnSuggestionClick: true,
3113
+ highlightFirstSuggestion: false,
3114
+ theme: _theme.defaultTheme,
3115
+ id: '1',
3116
+ containerProps: {}
3117
+ });
3118
+ }(Autosuggest));
3119
+
3120
+ var dist = Autosuggest["default"];
3121
+
3122
+ var css_248z = "@keyframes style-module_appearInAnimation__yvH4A {\n from {\n opacity: 0;\n transform: translateY(16px);\n }\n to {\n opacity: 1;\n }\n}\n.style-module_suggestionsContainer__2yVXd {\n position: relative;\n}\n\n.style-module_suggestionsList__11o48 {\n position: absolute;\n z-index: 100;\n overflow: hidden;\n border-radius: 8px;\n border: 1px solid var(--ds-primary-500);\n width: 100%;\n height: fit-content;\n max-height: 216px;\n overflow-y: scroll;\n background-color: white;\n animation-name: style-module_appearInAnimation__yvH4A;\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform: translateY(8px);\n}\n\n.style-module_suggestion-option__z7pqG {\n display: flex;\n align-items: center;\n cursor: pointer;\n position: relative;\n margin: 0;\n padding: 12px 16px;\n color: var(--ds-grey-900);\n min-height: 48px;\n line-height: 24px;\n}\n\n.style-module_suggestion-img__1TfiA {\n width: 32px;\n height: 24px;\n border-radius: 2px;\n}\n\n.style-module_suggestion-text__7wL31 {\n flex: 1;\n}\n\n.style-module_nowrap__uks9c {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.style-module_suggestionHighlighted__2zu5h {\n background-color: var(--ds-primary-100);\n}";
14
3123
  var styles = {"suggestionsContainer":"style-module_suggestionsContainer__2yVXd","suggestionsList":"style-module_suggestionsList__11o48","appearInAnimation":"style-module_appearInAnimation__yvH4A","suggestion-option":"style-module_suggestion-option__z7pqG","suggestion-img":"style-module_suggestion-img__1TfiA","suggestion-text":"style-module_suggestion-text__7wL31","nowrap":"style-module_nowrap__uks9c","suggestionHighlighted":"style-module_suggestionHighlighted__2zu5h"};
15
3124
  styleInject(css_248z);
16
3125
 
@@ -24,7 +3133,7 @@ var AutoSuggestInput = function (_a) {
24
3133
  };
25
3134
  var getSuggestionValue = function (suggestion) { return suggestion.value; };
26
3135
  var renderInputComponent = function (autoSuggestInputProps) { return (jsx(Input, __assign({}, autoSuggestInputProps, { placeholder: placeholder, "data-cy": "suggest-multi-select-input" }))); };
27
- return (jsx("div", { className: className, children: jsx(Autosuggest, { theme: styles, suggestions: suggestions, onSuggestionsFetchRequested: handleSuggestionFetchRequest, onSuggestionsClearRequested: handleSuggestionClearRequest, getSuggestionValue: getSuggestionValue, renderSuggestion: renderSuggestion, highlightFirstSuggestion: true, inputProps: __assign(__assign({}, inputProps), { value: currentOption, onChange: function (_, _a) {
3136
+ return (jsx("div", { className: className, children: jsx(dist, { theme: styles, suggestions: suggestions, onSuggestionsFetchRequested: handleSuggestionFetchRequest, onSuggestionsClearRequested: handleSuggestionClearRequest, getSuggestionValue: getSuggestionValue, renderSuggestion: renderSuggestion, highlightFirstSuggestion: true, inputProps: __assign(__assign({}, inputProps), { value: currentOption, onChange: function (_, _a) {
28
3137
  var newValue = _a.newValue;
29
3138
  onChange(newValue);
30
3139
  } }), onSuggestionSelected: function (_, _a) {