@algolia/satellite 1.0.0-beta.14 → 1.0.0-beta.140

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 (1119) hide show
  1. package/README.md +173 -0
  2. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
  3. package/cjs/AnnouncementBadge/AnnouncementBadge.js +66 -0
  4. package/cjs/AnnouncementBadge/index.d.ts +2 -0
  5. package/cjs/AnnouncementBadge/index.js +32 -0
  6. package/cjs/AutoComplete/AutoComplete.d.ts +66 -0
  7. package/cjs/AutoComplete/AutoComplete.js +668 -0
  8. package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
  9. package/cjs/AutoComplete/AutoComplete.tailwind.js +96 -0
  10. package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
  11. package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +46 -0
  12. package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
  13. package/cjs/AutoComplete/components/DefaultOptionItem.js +46 -0
  14. package/cjs/AutoComplete/index.d.ts +5 -0
  15. package/cjs/AutoComplete/index.js +74 -0
  16. package/cjs/AutoComplete/types.d.ts +86 -0
  17. package/cjs/AutoComplete/types.js +5 -0
  18. package/cjs/AutoComplete/utils.d.ts +5 -0
  19. package/{components → cjs}/AutoComplete/utils.js +27 -2
  20. package/cjs/Avatars/ApplicationAvatar.d.ts +13 -0
  21. package/cjs/Avatars/ApplicationAvatar.js +46 -0
  22. package/cjs/Avatars/UserAvatar.d.ts +13 -0
  23. package/cjs/Avatars/UserAvatar.js +71 -0
  24. package/cjs/Avatars/index.d.ts +3 -0
  25. package/cjs/Avatars/index.js +46 -0
  26. package/cjs/Avatars/types.d.ts +17 -0
  27. package/cjs/Avatars/types.js +5 -0
  28. package/cjs/Avatars/utils.d.ts +6 -0
  29. package/cjs/Avatars/utils.js +90 -0
  30. package/cjs/Badge/Badge.d.ts +35 -0
  31. package/cjs/Badge/Badge.js +98 -0
  32. package/cjs/Badge/index.d.ts +2 -0
  33. package/cjs/Badge/index.js +32 -0
  34. package/cjs/Banners/Alert/Alert.d.ts +74 -0
  35. package/cjs/Banners/Alert/Alert.js +150 -0
  36. package/{types/components → cjs/Banners}/Alert/index.d.ts +0 -0
  37. package/cjs/Banners/Alert/index.js +32 -0
  38. package/cjs/Banners/BigBertha/BigBertha.d.ts +41 -0
  39. package/cjs/Banners/BigBertha/BigBertha.js +70 -0
  40. package/cjs/Banners/BigBertha/index.d.ts +2 -0
  41. package/cjs/Banners/BigBertha/index.js +32 -0
  42. package/cjs/Banners/Promote/Promote.d.ts +57 -0
  43. package/cjs/Banners/Promote/Promote.js +121 -0
  44. package/cjs/Banners/Promote/index.d.ts +2 -0
  45. package/cjs/Banners/Promote/index.js +32 -0
  46. package/cjs/Banners/index.d.ts +3 -0
  47. package/cjs/Banners/index.js +44 -0
  48. package/cjs/Button/Button.d.ts +21 -0
  49. package/cjs/Button/Button.js +100 -0
  50. package/cjs/Button/Button.tailwind.d.ts +5 -0
  51. package/cjs/Button/Button.tailwind.js +157 -0
  52. package/cjs/Button/ButtonGroup.d.ts +13 -0
  53. package/cjs/Button/ButtonGroup.js +38 -0
  54. package/cjs/Button/IconButton.d.ts +17 -0
  55. package/cjs/Button/IconButton.js +100 -0
  56. package/cjs/Button/index.d.ts +5 -0
  57. package/cjs/Button/index.js +74 -0
  58. package/cjs/Button/styles.d.ts +5 -0
  59. package/cjs/Button/styles.js +47 -0
  60. package/cjs/Button/types.d.ts +27 -0
  61. package/cjs/Button/types.js +10 -0
  62. package/cjs/Card/Card.d.ts +26 -0
  63. package/cjs/Card/Card.js +56 -0
  64. package/cjs/Card/Card.tailwind.d.ts +5 -0
  65. package/cjs/Card/Card.tailwind.js +37 -0
  66. package/cjs/Card/components/CardHeader.d.ts +4 -0
  67. package/cjs/Card/components/CardHeader.js +40 -0
  68. package/cjs/Card/components/CardTitle.d.ts +6 -0
  69. package/cjs/Card/components/CardTitle.js +42 -0
  70. package/cjs/Card/index.d.ts +4 -0
  71. package/cjs/Card/index.js +60 -0
  72. package/cjs/Checkbox/Checkbox.d.ts +24 -0
  73. package/cjs/Checkbox/Checkbox.js +121 -0
  74. package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
  75. package/cjs/Checkbox/Checkbox.tailwind.js +67 -0
  76. package/{types/components → cjs}/Checkbox/index.d.ts +0 -0
  77. package/cjs/Checkbox/index.js +32 -0
  78. package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
  79. package/cjs/ClickAwayContainer/ClickAwayContainer.js +99 -0
  80. package/cjs/ClickAwayContainer/index.d.ts +1 -0
  81. package/cjs/ClickAwayContainer/index.js +18 -0
  82. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +34 -0
  83. package/cjs/DatePicker/DatePicker/DatePicker.js +195 -0
  84. package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
  85. package/cjs/DatePicker/DatePicker/datePickerReducer.js +68 -0
  86. package/cjs/DatePicker/DatePicker/index.d.ts +3 -0
  87. package/cjs/DatePicker/DatePicker/index.js +46 -0
  88. package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
  89. package/cjs/DatePicker/DatePicker.tailwind.js +136 -0
  90. package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
  91. package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +282 -0
  92. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
  93. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +49 -0
  94. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
  95. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +126 -0
  96. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
  97. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +24 -0
  98. package/cjs/DatePicker/DateRangePicker/index.d.ts +4 -0
  99. package/cjs/DatePicker/DateRangePicker/index.js +60 -0
  100. package/cjs/DatePicker/components/Calendar.d.ts +17 -0
  101. package/cjs/DatePicker/components/Calendar.js +89 -0
  102. package/cjs/DatePicker/components/Display.d.ts +10 -0
  103. package/cjs/DatePicker/components/Display.js +31 -0
  104. package/cjs/DatePicker/components/Footer.d.ts +6 -0
  105. package/cjs/DatePicker/components/Footer.js +27 -0
  106. package/cjs/DatePicker/components/FooterActions.d.ts +12 -0
  107. package/cjs/DatePicker/components/FooterActions.js +41 -0
  108. package/cjs/DatePicker/components/Modal.d.ts +16 -0
  109. package/cjs/DatePicker/components/Modal.js +91 -0
  110. package/cjs/DatePicker/components/NavBar.d.ts +16 -0
  111. package/cjs/DatePicker/components/NavBar.js +93 -0
  112. package/cjs/DatePicker/components/SidePanel.d.ts +6 -0
  113. package/cjs/DatePicker/components/SidePanel.js +30 -0
  114. package/cjs/DatePicker/components/index.d.ts +12 -0
  115. package/cjs/DatePicker/components/index.js +55 -0
  116. package/cjs/DatePicker/index.d.ts +5 -0
  117. package/cjs/DatePicker/index.js +69 -0
  118. package/cjs/DatePicker/types.d.ts +17 -0
  119. package/cjs/DatePicker/types.js +5 -0
  120. package/cjs/DatePicker/utils.d.ts +3 -0
  121. package/cjs/DatePicker/utils.js +24 -0
  122. package/cjs/Dropdown/Dropdown.d.ts +64 -0
  123. package/cjs/Dropdown/Dropdown.js +171 -0
  124. package/cjs/Dropdown/DropdownButton.d.ts +11 -0
  125. package/cjs/Dropdown/DropdownButton.js +63 -0
  126. package/cjs/Dropdown/DropdownContext.d.ts +7 -0
  127. package/cjs/Dropdown/DropdownContext.js +25 -0
  128. package/cjs/Dropdown/components/DropdownButtonItem.d.ts +19 -0
  129. package/cjs/Dropdown/components/DropdownButtonItem.js +60 -0
  130. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
  131. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +76 -0
  132. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
  133. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +25 -0
  134. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
  135. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +23 -0
  136. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
  137. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +47 -0
  138. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
  139. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +43 -0
  140. package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
  141. package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +72 -0
  142. package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
  143. package/cjs/Dropdown/components/DropdownDivider.js +26 -0
  144. package/cjs/Dropdown/components/DropdownFooterItem.d.ts +7 -0
  145. package/cjs/Dropdown/components/DropdownFooterItem.js +44 -0
  146. package/cjs/Dropdown/components/DropdownLinkItem.d.ts +14 -0
  147. package/cjs/Dropdown/components/DropdownLinkItem.js +64 -0
  148. package/cjs/Dropdown/components/DropdownRadioItem.d.ts +13 -0
  149. package/cjs/Dropdown/components/DropdownRadioItem.js +60 -0
  150. package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
  151. package/cjs/Dropdown/components/DropdownTitle.js +40 -0
  152. package/cjs/Dropdown/components/DropdownToggleItem.d.ts +16 -0
  153. package/cjs/Dropdown/components/DropdownToggleItem.js +63 -0
  154. package/cjs/Dropdown/index.d.ts +13 -0
  155. package/cjs/Dropdown/index.js +186 -0
  156. package/cjs/Dropdown/useDropdownItemProps.d.ts +21 -0
  157. package/cjs/Dropdown/useDropdownItemProps.js +53 -0
  158. package/cjs/Dropzone/Dropzone.d.ts +20 -0
  159. package/cjs/Dropzone/Dropzone.js +194 -0
  160. package/cjs/Dropzone/index.d.ts +2 -0
  161. package/cjs/Dropzone/index.js +32 -0
  162. package/cjs/EmptyState/EmptyState.d.ts +28 -0
  163. package/cjs/EmptyState/EmptyState.js +136 -0
  164. package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
  165. package/cjs/EmptyState/EmptyState.tailwind.js +16 -0
  166. package/cjs/EmptyState/index.d.ts +3 -0
  167. package/cjs/EmptyState/index.js +46 -0
  168. package/cjs/EmptyState/types.d.ts +65 -0
  169. package/cjs/EmptyState/types.js +5 -0
  170. package/cjs/Field/Field.d.ts +54 -0
  171. package/cjs/Field/Field.js +109 -0
  172. package/cjs/Field/FieldStateContext.d.ts +12 -0
  173. package/cjs/Field/FieldStateContext.js +17 -0
  174. package/cjs/Field/index.d.ts +4 -0
  175. package/cjs/Field/index.js +60 -0
  176. package/cjs/Field/useFieldState.d.ts +2 -0
  177. package/cjs/Field/useFieldState.js +24 -0
  178. package/cjs/Flag/Flag.d.ts +6 -0
  179. package/cjs/Flag/Flag.js +138 -0
  180. package/cjs/Flag/Flag.tailwind.d.ts +5 -0
  181. package/cjs/Flag/Flag.tailwind.js +35 -0
  182. package/cjs/Flag/Flags.d.ts +48 -0
  183. package/cjs/Flag/Flags.js +106 -0
  184. package/cjs/Flag/index.d.ts +4 -0
  185. package/cjs/Flag/index.js +60 -0
  186. package/cjs/Flag/types.d.ts +22 -0
  187. package/cjs/Flag/types.js +5 -0
  188. package/cjs/FlexGrid/FlexGrid.d.ts +17 -0
  189. package/cjs/FlexGrid/FlexGrid.js +81 -0
  190. package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
  191. package/cjs/FlexGrid/FlexGrid.tailwind.js +78 -0
  192. package/cjs/FlexGrid/index.d.ts +2 -0
  193. package/cjs/FlexGrid/index.js +32 -0
  194. package/cjs/HelpUnderline/HelpUnderline.d.ts +12 -0
  195. package/cjs/HelpUnderline/HelpUnderline.js +43 -0
  196. package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
  197. package/cjs/HelpUnderline/HelpUnderline.tailwind.js +22 -0
  198. package/{types/components → cjs}/HelpUnderline/index.d.ts +0 -0
  199. package/cjs/HelpUnderline/index.js +32 -0
  200. package/cjs/Input/Input.d.ts +26 -0
  201. package/cjs/Input/Input.js +256 -0
  202. package/cjs/Input/Input.tailwind.d.ts +5 -0
  203. package/cjs/Input/Input.tailwind.js +102 -0
  204. package/{types/components → cjs}/Input/index.d.ts +0 -0
  205. package/cjs/Input/index.js +32 -0
  206. package/cjs/Insert/Insert.d.ts +45 -0
  207. package/cjs/Insert/Insert.js +89 -0
  208. package/cjs/Insert/index.d.ts +2 -0
  209. package/cjs/Insert/index.js +32 -0
  210. package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
  211. package/cjs/InstantSearch/InstantSearch.tailwind.js +382 -0
  212. package/cjs/KeyboardKey/KeyboardKey.d.ts +7 -0
  213. package/cjs/KeyboardKey/KeyboardKey.js +48 -0
  214. package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
  215. package/cjs/KeyboardKey/KeyboardKey.tailwind.js +30 -0
  216. package/cjs/KeyboardKey/index.d.ts +2 -0
  217. package/{components/Alert → cjs/KeyboardKey}/index.js +5 -6
  218. package/cjs/Link/BaseLink.d.ts +4 -0
  219. package/cjs/Link/BaseLink.js +41 -0
  220. package/cjs/Link/ButtonLink.d.ts +5 -0
  221. package/cjs/Link/ButtonLink.js +50 -0
  222. package/cjs/Link/IconButtonLink.d.ts +6 -0
  223. package/cjs/Link/IconButtonLink.js +41 -0
  224. package/cjs/Link/Link.d.ts +11 -0
  225. package/cjs/Link/Link.js +69 -0
  226. package/cjs/Link/index.d.ts +5 -0
  227. package/cjs/Link/index.js +74 -0
  228. package/cjs/Medallion/Medallion.d.ts +11 -0
  229. package/cjs/Medallion/Medallion.js +50 -0
  230. package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
  231. package/cjs/Medallion/Medallion.tailwind.js +34 -0
  232. package/cjs/Medallion/index.d.ts +3 -0
  233. package/cjs/Medallion/index.js +46 -0
  234. package/cjs/Medallion/types.d.ts +2 -0
  235. package/cjs/Medallion/types.js +5 -0
  236. package/cjs/Modal/Modal.d.ts +23 -0
  237. package/cjs/Modal/Modal.js +192 -0
  238. package/cjs/Modal/Modal.tailwind.d.ts +5 -0
  239. package/cjs/Modal/Modal.tailwind.js +45 -0
  240. package/cjs/Modal/components/ModalFooter.d.ts +6 -0
  241. package/cjs/Modal/components/ModalFooter.js +48 -0
  242. package/cjs/Modal/components/ModalSection.d.ts +10 -0
  243. package/cjs/Modal/components/ModalSection.js +33 -0
  244. package/cjs/Modal/index.d.ts +4 -0
  245. package/cjs/Modal/index.js +60 -0
  246. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
  247. package/cjs/Pagination/CompactPagination/CompactPagination.js +104 -0
  248. package/cjs/Pagination/CompactPagination/index.d.ts +2 -0
  249. package/cjs/Pagination/CompactPagination/index.js +32 -0
  250. package/cjs/Pagination/DotPagination/DotPagination.d.ts +14 -0
  251. package/cjs/Pagination/DotPagination/DotPagination.js +62 -0
  252. package/cjs/Pagination/DotPagination/index.d.ts +2 -0
  253. package/cjs/Pagination/DotPagination/index.js +32 -0
  254. package/cjs/Pagination/Pagination/Pagination.d.ts +22 -0
  255. package/cjs/Pagination/Pagination/Pagination.js +149 -0
  256. package/{types/components → cjs/Pagination}/Pagination/index.d.ts +0 -0
  257. package/cjs/Pagination/Pagination/index.js +32 -0
  258. package/cjs/Pagination/index.d.ts +4 -0
  259. package/cjs/Pagination/index.js +60 -0
  260. package/cjs/ProgressBar/ProgressBar.d.ts +13 -0
  261. package/cjs/ProgressBar/ProgressBar.js +59 -0
  262. package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
  263. package/cjs/ProgressBar/ProgressBar.tailwind.js +27 -0
  264. package/cjs/ProgressBar/index.d.ts +2 -0
  265. package/cjs/ProgressBar/index.js +32 -0
  266. package/cjs/ProgressSpinner/ProgressSpinner.d.ts +9 -0
  267. package/cjs/ProgressSpinner/ProgressSpinner.js +66 -0
  268. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
  269. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +37 -0
  270. package/cjs/ProgressSpinner/index.d.ts +2 -0
  271. package/cjs/ProgressSpinner/index.js +32 -0
  272. package/cjs/RadioGroup/RadioButton.d.ts +4 -0
  273. package/cjs/RadioGroup/RadioButton.js +44 -0
  274. package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
  275. package/cjs/RadioGroup/RadioButton.tailwind.js +58 -0
  276. package/cjs/RadioGroup/RadioGroup.d.ts +40 -0
  277. package/cjs/RadioGroup/RadioGroup.js +125 -0
  278. package/cjs/RadioGroup/RadiogroupContext.d.ts +14 -0
  279. package/cjs/RadioGroup/RadiogroupContext.js +23 -0
  280. package/cjs/RadioGroup/index.d.ts +4 -0
  281. package/cjs/RadioGroup/index.js +60 -0
  282. package/cjs/RangeSlider/RangeSlider.d.ts +18 -0
  283. package/cjs/RangeSlider/RangeSlider.js +129 -0
  284. package/cjs/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
  285. package/cjs/RangeSlider/RangeSlider.tailwind.js +75 -0
  286. package/cjs/RangeSlider/index.d.ts +2 -0
  287. package/cjs/RangeSlider/index.js +32 -0
  288. package/cjs/Satellite/Satellite.d.ts +11 -0
  289. package/cjs/Satellite/Satellite.js +34 -0
  290. package/cjs/Satellite/SatelliteContext.d.ts +11 -0
  291. package/cjs/Satellite/SatelliteContext.js +34 -0
  292. package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
  293. package/cjs/Satellite/SatelliteRouter.js +56 -0
  294. package/cjs/Satellite/index.d.ts +6 -0
  295. package/cjs/Satellite/index.js +88 -0
  296. package/cjs/Satellite/locale.d.ts +29 -0
  297. package/cjs/Satellite/locale.js +21 -0
  298. package/cjs/Satellite/useCreatePortal.d.ts +4 -0
  299. package/cjs/Satellite/useCreatePortal.js +29 -0
  300. package/cjs/ScrollIndicator/ScrollIndicator.d.ts +14 -0
  301. package/cjs/ScrollIndicator/ScrollIndicator.js +111 -0
  302. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
  303. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +52 -0
  304. package/cjs/ScrollIndicator/index.d.ts +2 -0
  305. package/cjs/ScrollIndicator/index.js +32 -0
  306. package/cjs/Select/Select.d.ts +15 -0
  307. package/cjs/Select/Select.js +59 -0
  308. package/cjs/Select/Select.tailwind.d.ts +5 -0
  309. package/cjs/Select/Select.tailwind.js +79 -0
  310. package/{types/components → cjs}/Select/index.d.ts +0 -0
  311. package/cjs/Select/index.js +32 -0
  312. package/cjs/Sidebar/Sidebar.d.ts +35 -0
  313. package/cjs/Sidebar/Sidebar.js +81 -0
  314. package/cjs/Sidebar/SidebarButtonLink.d.ts +14 -0
  315. package/cjs/Sidebar/SidebarButtonLink.js +110 -0
  316. package/cjs/Sidebar/SidebarContext.d.ts +9 -0
  317. package/cjs/Sidebar/SidebarContext.js +23 -0
  318. package/cjs/Sidebar/SidebarHeader.d.ts +6 -0
  319. package/cjs/Sidebar/SidebarHeader.js +29 -0
  320. package/cjs/Sidebar/SidebarHeading.d.ts +7 -0
  321. package/cjs/Sidebar/SidebarHeading.js +37 -0
  322. package/cjs/Sidebar/SidebarLink.d.ts +8 -0
  323. package/cjs/Sidebar/SidebarLink.js +58 -0
  324. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
  325. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +47 -0
  326. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
  327. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +40 -0
  328. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
  329. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +120 -0
  330. package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
  331. package/cjs/Sidebar/SidebarLinksGroup/index.js +18 -0
  332. package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
  333. package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
  334. package/cjs/Sidebar/SidebarNav.d.ts +10 -0
  335. package/cjs/Sidebar/SidebarNav.js +48 -0
  336. package/cjs/Sidebar/index.d.ts +9 -0
  337. package/cjs/Sidebar/index.js +128 -0
  338. package/cjs/Sidebar/types.d.ts +6 -0
  339. package/cjs/Sidebar/types.js +5 -0
  340. package/cjs/Switch/Switch.d.ts +13 -0
  341. package/cjs/Switch/Switch.js +107 -0
  342. package/cjs/Switch/Switch.tailwind.d.ts +5 -0
  343. package/cjs/Switch/Switch.tailwind.js +26 -0
  344. package/cjs/Switch/SwitchOption.d.ts +8 -0
  345. package/cjs/Switch/SwitchOption.js +58 -0
  346. package/cjs/Switch/index.d.ts +3 -0
  347. package/cjs/Switch/index.js +46 -0
  348. package/cjs/Switch/types.d.ts +7 -0
  349. package/cjs/Switch/types.js +5 -0
  350. package/cjs/Switch/utils.d.ts +6 -0
  351. package/cjs/Switch/utils.js +31 -0
  352. package/cjs/Tables/DataTable/DataTable.d.ts +60 -0
  353. package/cjs/Tables/DataTable/DataTable.js +303 -0
  354. package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  355. package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
  356. package/cjs/Tables/DataTable/components/Body.d.ts +15 -0
  357. package/cjs/Tables/DataTable/components/Body.js +140 -0
  358. package/cjs/Tables/DataTable/components/Footer.d.ts +8 -0
  359. package/cjs/Tables/DataTable/components/Footer.js +81 -0
  360. package/cjs/Tables/DataTable/components/Header.d.ts +10 -0
  361. package/cjs/Tables/DataTable/components/Header.js +48 -0
  362. package/cjs/Tables/DataTable/components/HeaderCell.d.ts +12 -0
  363. package/cjs/Tables/DataTable/components/HeaderCell.js +77 -0
  364. package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
  365. package/cjs/Tables/DataTable/components/Loader.js +62 -0
  366. package/cjs/Tables/DataTable/components/index.d.ts +5 -0
  367. package/cjs/Tables/DataTable/components/index.js +70 -0
  368. package/cjs/Tables/DataTable/index.d.ts +3 -0
  369. package/cjs/Tables/DataTable/index.js +46 -0
  370. package/cjs/Tables/DataTable/types.d.ts +49 -0
  371. package/cjs/Tables/DataTable/types.js +5 -0
  372. package/cjs/Tables/DataTable/utils.d.ts +4 -0
  373. package/cjs/Tables/DataTable/utils.js +32 -0
  374. package/cjs/Tables/Table/Table.d.ts +28 -0
  375. package/cjs/Tables/Table/Table.js +76 -0
  376. package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
  377. package/cjs/Tables/Table/Table.tailwind.js +40 -0
  378. package/cjs/Tables/Table/components/TableFooter.d.ts +8 -0
  379. package/cjs/Tables/Table/components/TableFooter.js +36 -0
  380. package/cjs/Tables/Table/index.d.ts +3 -0
  381. package/cjs/Tables/Table/index.js +46 -0
  382. package/cjs/Tables/index.d.ts +3 -0
  383. package/cjs/Tables/index.js +46 -0
  384. package/cjs/Tabs/ContentTabs.d.ts +4 -0
  385. package/cjs/Tabs/ContentTabs.js +96 -0
  386. package/cjs/Tabs/LinkTabs.d.ts +33 -0
  387. package/cjs/Tabs/LinkTabs.js +91 -0
  388. package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
  389. package/cjs/Tabs/Tabs.tailwind.js +54 -0
  390. package/cjs/Tabs/components/LinkTab.d.ts +9 -0
  391. package/cjs/Tabs/components/LinkTab.js +111 -0
  392. package/cjs/Tabs/index.d.ts +4 -0
  393. package/cjs/Tabs/index.js +60 -0
  394. package/cjs/Tabs/types.d.ts +35 -0
  395. package/cjs/Tabs/types.js +5 -0
  396. package/cjs/Tabs/utils.d.ts +2 -0
  397. package/cjs/Tabs/utils.js +24 -0
  398. package/cjs/Tag/Tag.d.ts +38 -0
  399. package/cjs/Tag/Tag.js +122 -0
  400. package/cjs/Tag/Tag.tailwind.d.ts +5 -0
  401. package/cjs/Tag/Tag.tailwind.js +39 -0
  402. package/cjs/Tag/index.d.ts +2 -0
  403. package/cjs/Tag/index.js +32 -0
  404. package/cjs/TextArea/TextArea.d.ts +5 -0
  405. package/cjs/TextArea/TextArea.js +43 -0
  406. package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
  407. package/cjs/TextArea/TextArea.tailwind.js +42 -0
  408. package/{types/components → cjs}/TextArea/index.d.ts +0 -0
  409. package/cjs/TextArea/index.js +32 -0
  410. package/cjs/TextWrap/TextWrap.d.ts +7 -0
  411. package/cjs/TextWrap/TextWrap.js +70 -0
  412. package/cjs/TextWrap/index.d.ts +2 -0
  413. package/cjs/TextWrap/index.js +32 -0
  414. package/cjs/Toggle/Toggle.d.ts +10 -0
  415. package/cjs/Toggle/Toggle.js +93 -0
  416. package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
  417. package/cjs/Toggle/Toggle.tailwind.js +68 -0
  418. package/cjs/Toggle/index.d.ts +2 -0
  419. package/cjs/Toggle/index.js +32 -0
  420. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
  421. package/cjs/Tooltip/OverflowTooltipWrapper.js +131 -0
  422. package/cjs/Tooltip/Tooltip.d.ts +24 -0
  423. package/cjs/Tooltip/Tooltip.js +67 -0
  424. package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
  425. package/cjs/Tooltip/Tooltip.tailwind.js +115 -0
  426. package/cjs/Tooltip/TooltipWrapper.d.ts +28 -0
  427. package/cjs/Tooltip/TooltipWrapper.js +219 -0
  428. package/{types/components → cjs}/Tooltip/index.d.ts +1 -0
  429. package/cjs/Tooltip/index.js +60 -0
  430. package/cjs/Tooltip/types.d.ts +14 -0
  431. package/cjs/Tooltip/types.js +5 -0
  432. package/cjs/Typography/Typography.tailwind.d.ts +5 -0
  433. package/cjs/Typography/Typography.tailwind.js +176 -0
  434. package/cjs/UserContent/UserContent.d.ts +8 -0
  435. package/cjs/UserContent/UserContent.js +37 -0
  436. package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
  437. package/cjs/UserContent/UserContent.tailwind.js +150 -0
  438. package/cjs/index.d.ts +46 -0
  439. package/cjs/index.js +633 -0
  440. package/cjs/package.json +3 -0
  441. package/cjs/styles/base.tailwind.d.ts +5 -0
  442. package/cjs/styles/base.tailwind.js +41 -0
  443. package/cjs/styles/brandColors.d.ts +42 -0
  444. package/cjs/styles/brandColors.js +48 -0
  445. package/cjs/styles/colors.d.ts +81 -0
  446. package/cjs/styles/colors.js +87 -0
  447. package/cjs/styles/disabledColor.d.ts +6 -0
  448. package/cjs/styles/disabledColor.js +17 -0
  449. package/cjs/styles/helpers/icons.d.ts +15 -0
  450. package/cjs/styles/helpers/icons.js +45 -0
  451. package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
  452. package/cjs/styles/helpers/makePurgeCssExtractor.js +62 -0
  453. package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
  454. package/cjs/styles/helpers/makeTailwindPrefixer.js +44 -0
  455. package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
  456. package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
  457. package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
  458. package/cjs/styles/helpers/satellitePrefixer.js +9 -0
  459. package/cjs/styles/rgba.d.ts +8 -0
  460. package/cjs/styles/rgba.js +17 -0
  461. package/cjs/styles/tailwind.config.d.ts +2 -0
  462. package/cjs/styles/tailwind.config.js +151 -0
  463. package/cjs/styles/zIndexes.d.ts +7 -0
  464. package/cjs/styles/zIndexes.js +13 -0
  465. package/cjs/types.d.ts +19 -0
  466. package/cjs/types.js +5 -0
  467. package/cjs/utilities/utilities.tailwind.d.ts +5 -0
  468. package/cjs/utilities/utilities.tailwind.js +30 -0
  469. package/cjs/utils/event-polyfill.d.ts +0 -0
  470. package/cjs/utils/event-polyfill.js +27 -0
  471. package/cjs/utils/formatters.d.ts +25 -0
  472. package/cjs/utils/formatters.js +51 -0
  473. package/cjs/utils/genericChangeHandler.d.ts +5 -0
  474. package/{utils → cjs/utils}/genericChangeHandler.js +1 -1
  475. package/cjs/utils/hashCode.d.ts +2 -0
  476. package/cjs/utils/hashCode.js +28 -0
  477. package/cjs/utils/index.d.ts +8 -0
  478. package/{utils → cjs/utils}/index.js +13 -13
  479. package/cjs/utils/isCssPropertySupported.d.ts +2 -0
  480. package/cjs/utils/isCssPropertySupported.js +19 -0
  481. package/cjs/utils/isNil.d.ts +19 -0
  482. package/cjs/utils/isNil.js +31 -0
  483. package/cjs/utils/isRenderedChild.d.ts +8 -0
  484. package/cjs/utils/isRenderedChild.js +18 -0
  485. package/cjs/utils/matchLocation.d.ts +3 -0
  486. package/cjs/utils/matchLocation.js +17 -0
  487. package/cjs/utils/onlyText.d.ts +3 -0
  488. package/cjs/utils/onlyText.js +49 -0
  489. package/cjs/utils/parseUrl.d.ts +11 -0
  490. package/cjs/utils/parseUrl.js +25 -0
  491. package/{types → cjs}/utils/pluralize.d.ts +0 -0
  492. package/{utils → cjs/utils}/pluralize.js +7 -2
  493. package/{types → cjs}/utils/range.d.ts +0 -0
  494. package/{utils → cjs/utils}/range.js +1 -1
  495. package/cjs/utils/toSentenceCase.d.ts +3 -0
  496. package/cjs/utils/toSentenceCase.js +21 -0
  497. package/{types → cjs}/utils/uniqBy.d.ts +0 -0
  498. package/{utils → cjs/utils}/uniqBy.js +1 -1
  499. package/{types → cjs}/utils/uniqueId.d.ts +0 -0
  500. package/{utils → cjs/utils}/uniqueId.js +1 -1
  501. package/cjs/utils/useForwardedRef.d.ts +3 -0
  502. package/cjs/utils/useForwardedRef.js +31 -0
  503. package/cjs/utils/useLinkProps.d.ts +7 -0
  504. package/cjs/utils/useLinkProps.js +67 -0
  505. package/cjs/utils/useTriggerInputChange.d.ts +8 -0
  506. package/cjs/utils/useTriggerInputChange.js +30 -0
  507. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +15 -0
  508. package/esm/AnnouncementBadge/AnnouncementBadge.js +47 -0
  509. package/esm/AnnouncementBadge/index.d.ts +2 -0
  510. package/esm/AnnouncementBadge/index.js +2 -0
  511. package/esm/AutoComplete/AutoComplete.d.ts +66 -0
  512. package/esm/AutoComplete/AutoComplete.js +655 -0
  513. package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
  514. package/esm/AutoComplete/AutoComplete.tailwind.js +94 -0
  515. package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +13 -0
  516. package/esm/AutoComplete/components/AutoCompleteEmptyState.js +31 -0
  517. package/esm/AutoComplete/components/DefaultOptionItem.d.ts +7 -0
  518. package/esm/AutoComplete/components/DefaultOptionItem.js +36 -0
  519. package/esm/AutoComplete/index.d.ts +5 -0
  520. package/esm/AutoComplete/index.js +5 -0
  521. package/esm/AutoComplete/types.d.ts +86 -0
  522. package/esm/AutoComplete/types.js +1 -0
  523. package/esm/AutoComplete/utils.d.ts +5 -0
  524. package/esm/AutoComplete/utils.js +43 -0
  525. package/esm/Avatars/ApplicationAvatar.d.ts +13 -0
  526. package/esm/Avatars/ApplicationAvatar.js +30 -0
  527. package/esm/Avatars/UserAvatar.d.ts +13 -0
  528. package/esm/Avatars/UserAvatar.js +55 -0
  529. package/esm/Avatars/index.d.ts +3 -0
  530. package/esm/Avatars/index.js +3 -0
  531. package/esm/Avatars/types.d.ts +17 -0
  532. package/esm/Avatars/types.js +1 -0
  533. package/esm/Avatars/utils.d.ts +6 -0
  534. package/esm/Avatars/utils.js +64 -0
  535. package/esm/Badge/Badge.d.ts +35 -0
  536. package/esm/Badge/Badge.js +82 -0
  537. package/esm/Badge/index.d.ts +2 -0
  538. package/esm/Badge/index.js +2 -0
  539. package/esm/Banners/Alert/Alert.d.ts +74 -0
  540. package/esm/Banners/Alert/Alert.js +134 -0
  541. package/esm/Banners/Alert/index.d.ts +2 -0
  542. package/esm/Banners/Alert/index.js +2 -0
  543. package/esm/Banners/BigBertha/BigBertha.d.ts +41 -0
  544. package/esm/Banners/BigBertha/BigBertha.js +57 -0
  545. package/esm/Banners/BigBertha/index.d.ts +2 -0
  546. package/esm/Banners/BigBertha/index.js +2 -0
  547. package/esm/Banners/Promote/Promote.d.ts +57 -0
  548. package/esm/Banners/Promote/Promote.js +104 -0
  549. package/esm/Banners/Promote/index.d.ts +2 -0
  550. package/esm/Banners/Promote/index.js +2 -0
  551. package/esm/Banners/index.d.ts +3 -0
  552. package/esm/Banners/index.js +3 -0
  553. package/esm/Button/Button.d.ts +21 -0
  554. package/esm/Button/Button.js +80 -0
  555. package/esm/Button/Button.tailwind.d.ts +5 -0
  556. package/esm/Button/Button.tailwind.js +155 -0
  557. package/esm/Button/ButtonGroup.d.ts +13 -0
  558. package/esm/Button/ButtonGroup.js +24 -0
  559. package/esm/Button/IconButton.d.ts +17 -0
  560. package/esm/Button/IconButton.js +80 -0
  561. package/esm/Button/index.d.ts +5 -0
  562. package/esm/Button/index.js +5 -0
  563. package/esm/Button/styles.d.ts +5 -0
  564. package/esm/Button/styles.js +31 -0
  565. package/esm/Button/types.d.ts +27 -0
  566. package/esm/Button/types.js +3 -0
  567. package/esm/Card/Card.d.ts +26 -0
  568. package/esm/Card/Card.js +39 -0
  569. package/esm/Card/Card.tailwind.d.ts +5 -0
  570. package/esm/Card/Card.tailwind.js +35 -0
  571. package/esm/Card/components/CardHeader.d.ts +4 -0
  572. package/esm/Card/components/CardHeader.js +24 -0
  573. package/esm/Card/components/CardTitle.d.ts +6 -0
  574. package/esm/Card/components/CardTitle.js +26 -0
  575. package/esm/Card/index.d.ts +4 -0
  576. package/esm/Card/index.js +4 -0
  577. package/esm/Checkbox/Checkbox.d.ts +24 -0
  578. package/esm/Checkbox/Checkbox.js +103 -0
  579. package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
  580. package/esm/Checkbox/Checkbox.tailwind.js +65 -0
  581. package/esm/Checkbox/index.d.ts +2 -0
  582. package/esm/Checkbox/index.js +2 -0
  583. package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
  584. package/esm/ClickAwayContainer/ClickAwayContainer.js +78 -0
  585. package/esm/ClickAwayContainer/index.d.ts +1 -0
  586. package/esm/ClickAwayContainer/index.js +1 -0
  587. package/esm/DatePicker/DatePicker/DatePicker.d.ts +34 -0
  588. package/esm/DatePicker/DatePicker/DatePicker.js +174 -0
  589. package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
  590. package/esm/DatePicker/DatePicker/datePickerReducer.js +52 -0
  591. package/esm/DatePicker/DatePicker/index.d.ts +3 -0
  592. package/esm/DatePicker/DatePicker/index.js +3 -0
  593. package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
  594. package/esm/DatePicker/DatePicker.tailwind.js +131 -0
  595. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +34 -0
  596. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +260 -0
  597. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +14 -0
  598. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +37 -0
  599. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
  600. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +104 -0
  601. package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
  602. package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
  603. package/esm/DatePicker/DateRangePicker/index.d.ts +4 -0
  604. package/esm/DatePicker/DateRangePicker/index.js +4 -0
  605. package/esm/DatePicker/components/Calendar.d.ts +17 -0
  606. package/esm/DatePicker/components/Calendar.js +73 -0
  607. package/esm/DatePicker/components/Display.d.ts +10 -0
  608. package/esm/DatePicker/components/Display.js +19 -0
  609. package/esm/DatePicker/components/Footer.d.ts +6 -0
  610. package/esm/DatePicker/components/Footer.js +16 -0
  611. package/esm/DatePicker/components/FooterActions.d.ts +12 -0
  612. package/esm/DatePicker/components/FooterActions.js +30 -0
  613. package/esm/DatePicker/components/Modal.d.ts +16 -0
  614. package/esm/DatePicker/components/Modal.js +70 -0
  615. package/esm/DatePicker/components/NavBar.d.ts +16 -0
  616. package/esm/DatePicker/components/NavBar.js +77 -0
  617. package/esm/DatePicker/components/SidePanel.d.ts +6 -0
  618. package/esm/DatePicker/components/SidePanel.js +19 -0
  619. package/esm/DatePicker/components/index.d.ts +12 -0
  620. package/esm/DatePicker/components/index.js +6 -0
  621. package/esm/DatePicker/index.d.ts +5 -0
  622. package/esm/DatePicker/index.js +5 -0
  623. package/esm/DatePicker/types.d.ts +17 -0
  624. package/esm/DatePicker/types.js +1 -0
  625. package/esm/DatePicker/utils.d.ts +3 -0
  626. package/esm/DatePicker/utils.js +11 -0
  627. package/esm/Dropdown/Dropdown.d.ts +64 -0
  628. package/esm/Dropdown/Dropdown.js +138 -0
  629. package/esm/Dropdown/DropdownButton.d.ts +11 -0
  630. package/esm/Dropdown/DropdownButton.js +45 -0
  631. package/esm/Dropdown/DropdownContext.d.ts +7 -0
  632. package/esm/Dropdown/DropdownContext.js +12 -0
  633. package/esm/Dropdown/components/DropdownButtonItem.d.ts +19 -0
  634. package/esm/Dropdown/components/DropdownButtonItem.js +43 -0
  635. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
  636. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +58 -0
  637. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +7 -0
  638. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +14 -0
  639. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +7 -0
  640. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +11 -0
  641. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +9 -0
  642. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +32 -0
  643. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +9 -0
  644. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +29 -0
  645. package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
  646. package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
  647. package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
  648. package/esm/Dropdown/components/DropdownDivider.js +12 -0
  649. package/esm/Dropdown/components/DropdownFooterItem.d.ts +7 -0
  650. package/esm/Dropdown/components/DropdownFooterItem.js +28 -0
  651. package/esm/Dropdown/components/DropdownLinkItem.d.ts +14 -0
  652. package/esm/Dropdown/components/DropdownLinkItem.js +46 -0
  653. package/esm/Dropdown/components/DropdownRadioItem.d.ts +13 -0
  654. package/esm/Dropdown/components/DropdownRadioItem.js +43 -0
  655. package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
  656. package/esm/Dropdown/components/DropdownTitle.js +24 -0
  657. package/esm/Dropdown/components/DropdownToggleItem.d.ts +16 -0
  658. package/esm/Dropdown/components/DropdownToggleItem.js +45 -0
  659. package/esm/Dropdown/index.d.ts +13 -0
  660. package/esm/Dropdown/index.js +13 -0
  661. package/esm/Dropdown/useDropdownItemProps.d.ts +21 -0
  662. package/esm/Dropdown/useDropdownItemProps.js +37 -0
  663. package/esm/Dropzone/Dropzone.d.ts +20 -0
  664. package/esm/Dropzone/Dropzone.js +169 -0
  665. package/esm/Dropzone/index.d.ts +2 -0
  666. package/esm/Dropzone/index.js +2 -0
  667. package/esm/EmptyState/EmptyState.d.ts +28 -0
  668. package/esm/EmptyState/EmptyState.js +121 -0
  669. package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
  670. package/esm/EmptyState/EmptyState.tailwind.js +14 -0
  671. package/esm/EmptyState/index.d.ts +3 -0
  672. package/esm/EmptyState/index.js +3 -0
  673. package/esm/EmptyState/types.d.ts +65 -0
  674. package/esm/EmptyState/types.js +1 -0
  675. package/esm/Field/Field.d.ts +54 -0
  676. package/esm/Field/Field.js +88 -0
  677. package/esm/Field/FieldStateContext.d.ts +12 -0
  678. package/esm/Field/FieldStateContext.js +6 -0
  679. package/esm/Field/index.d.ts +4 -0
  680. package/esm/Field/index.js +4 -0
  681. package/esm/Field/useFieldState.d.ts +2 -0
  682. package/esm/Field/useFieldState.js +6 -0
  683. package/esm/Flag/Flag.d.ts +6 -0
  684. package/esm/Flag/Flag.js +115 -0
  685. package/esm/Flag/Flag.tailwind.d.ts +5 -0
  686. package/esm/Flag/Flag.tailwind.js +33 -0
  687. package/esm/Flag/Flags.d.ts +48 -0
  688. package/esm/Flag/Flags.js +87 -0
  689. package/esm/Flag/index.d.ts +4 -0
  690. package/esm/Flag/index.js +4 -0
  691. package/esm/Flag/types.d.ts +22 -0
  692. package/esm/Flag/types.js +1 -0
  693. package/esm/FlexGrid/FlexGrid.d.ts +17 -0
  694. package/esm/FlexGrid/FlexGrid.js +64 -0
  695. package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
  696. package/esm/FlexGrid/FlexGrid.tailwind.js +74 -0
  697. package/esm/FlexGrid/index.d.ts +2 -0
  698. package/esm/FlexGrid/index.js +2 -0
  699. package/esm/HelpUnderline/HelpUnderline.d.ts +12 -0
  700. package/esm/HelpUnderline/HelpUnderline.js +27 -0
  701. package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
  702. package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
  703. package/esm/HelpUnderline/index.d.ts +2 -0
  704. package/esm/HelpUnderline/index.js +2 -0
  705. package/esm/Input/Input.d.ts +26 -0
  706. package/esm/Input/Input.js +232 -0
  707. package/esm/Input/Input.tailwind.d.ts +5 -0
  708. package/esm/Input/Input.tailwind.js +100 -0
  709. package/esm/Input/index.d.ts +2 -0
  710. package/esm/Input/index.js +2 -0
  711. package/esm/Insert/Insert.d.ts +45 -0
  712. package/esm/Insert/Insert.js +75 -0
  713. package/esm/Insert/index.d.ts +2 -0
  714. package/esm/Insert/index.js +2 -0
  715. package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
  716. package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
  717. package/esm/KeyboardKey/KeyboardKey.d.ts +7 -0
  718. package/esm/KeyboardKey/KeyboardKey.js +31 -0
  719. package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
  720. package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
  721. package/esm/KeyboardKey/index.d.ts +2 -0
  722. package/esm/KeyboardKey/index.js +2 -0
  723. package/esm/Link/BaseLink.d.ts +4 -0
  724. package/esm/Link/BaseLink.js +26 -0
  725. package/esm/Link/ButtonLink.d.ts +5 -0
  726. package/esm/Link/ButtonLink.js +33 -0
  727. package/esm/Link/IconButtonLink.d.ts +6 -0
  728. package/esm/Link/IconButtonLink.js +25 -0
  729. package/esm/Link/Link.d.ts +11 -0
  730. package/esm/Link/Link.js +52 -0
  731. package/esm/Link/index.d.ts +5 -0
  732. package/esm/Link/index.js +5 -0
  733. package/esm/Medallion/Medallion.d.ts +11 -0
  734. package/esm/Medallion/Medallion.js +34 -0
  735. package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
  736. package/esm/Medallion/Medallion.tailwind.js +29 -0
  737. package/esm/Medallion/index.d.ts +3 -0
  738. package/esm/Medallion/index.js +3 -0
  739. package/esm/Medallion/types.d.ts +2 -0
  740. package/esm/Medallion/types.js +1 -0
  741. package/esm/Modal/Modal.d.ts +23 -0
  742. package/esm/Modal/Modal.js +166 -0
  743. package/esm/Modal/Modal.tailwind.d.ts +5 -0
  744. package/esm/Modal/Modal.tailwind.js +43 -0
  745. package/esm/Modal/components/ModalFooter.d.ts +6 -0
  746. package/esm/Modal/components/ModalFooter.js +31 -0
  747. package/esm/Modal/components/ModalSection.d.ts +10 -0
  748. package/esm/Modal/components/ModalSection.js +18 -0
  749. package/esm/Modal/index.d.ts +4 -0
  750. package/esm/Modal/index.js +4 -0
  751. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +29 -0
  752. package/esm/Pagination/CompactPagination/CompactPagination.js +80 -0
  753. package/esm/Pagination/CompactPagination/index.d.ts +2 -0
  754. package/esm/Pagination/CompactPagination/index.js +2 -0
  755. package/esm/Pagination/DotPagination/DotPagination.d.ts +14 -0
  756. package/esm/Pagination/DotPagination/DotPagination.js +45 -0
  757. package/esm/Pagination/DotPagination/index.d.ts +2 -0
  758. package/esm/Pagination/DotPagination/index.js +2 -0
  759. package/esm/Pagination/Pagination/Pagination.d.ts +22 -0
  760. package/esm/Pagination/Pagination/Pagination.js +126 -0
  761. package/esm/Pagination/Pagination/index.d.ts +2 -0
  762. package/esm/Pagination/Pagination/index.js +2 -0
  763. package/esm/Pagination/index.d.ts +4 -0
  764. package/esm/Pagination/index.js +4 -0
  765. package/esm/ProgressBar/ProgressBar.d.ts +13 -0
  766. package/esm/ProgressBar/ProgressBar.js +44 -0
  767. package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
  768. package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
  769. package/esm/ProgressBar/index.d.ts +2 -0
  770. package/esm/ProgressBar/index.js +2 -0
  771. package/esm/ProgressSpinner/ProgressSpinner.d.ts +9 -0
  772. package/esm/ProgressSpinner/ProgressSpinner.js +50 -0
  773. package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
  774. package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +35 -0
  775. package/esm/ProgressSpinner/index.d.ts +2 -0
  776. package/esm/ProgressSpinner/index.js +2 -0
  777. package/esm/RadioGroup/RadioButton.d.ts +4 -0
  778. package/esm/RadioGroup/RadioButton.js +28 -0
  779. package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
  780. package/esm/RadioGroup/RadioButton.tailwind.js +56 -0
  781. package/esm/RadioGroup/RadioGroup.d.ts +40 -0
  782. package/esm/RadioGroup/RadioGroup.js +103 -0
  783. package/esm/RadioGroup/RadiogroupContext.d.ts +14 -0
  784. package/esm/RadioGroup/RadiogroupContext.js +11 -0
  785. package/esm/RadioGroup/index.d.ts +4 -0
  786. package/esm/RadioGroup/index.js +4 -0
  787. package/esm/RangeSlider/RangeSlider.d.ts +18 -0
  788. package/esm/RangeSlider/RangeSlider.js +113 -0
  789. package/esm/RangeSlider/RangeSlider.tailwind.d.ts +5 -0
  790. package/esm/RangeSlider/RangeSlider.tailwind.js +73 -0
  791. package/esm/RangeSlider/index.d.ts +2 -0
  792. package/esm/RangeSlider/index.js +2 -0
  793. package/esm/Satellite/Satellite.d.ts +11 -0
  794. package/esm/Satellite/Satellite.js +19 -0
  795. package/esm/Satellite/SatelliteContext.d.ts +11 -0
  796. package/esm/Satellite/SatelliteContext.js +18 -0
  797. package/esm/Satellite/SatelliteRouter.d.ts +21 -0
  798. package/esm/Satellite/SatelliteRouter.js +42 -0
  799. package/esm/Satellite/index.d.ts +6 -0
  800. package/esm/Satellite/index.js +6 -0
  801. package/esm/Satellite/locale.d.ts +29 -0
  802. package/esm/Satellite/locale.js +8 -0
  803. package/esm/Satellite/useCreatePortal.d.ts +4 -0
  804. package/esm/Satellite/useCreatePortal.js +16 -0
  805. package/esm/ScrollIndicator/ScrollIndicator.d.ts +14 -0
  806. package/esm/ScrollIndicator/ScrollIndicator.js +92 -0
  807. package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
  808. package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
  809. package/esm/ScrollIndicator/index.d.ts +2 -0
  810. package/esm/ScrollIndicator/index.js +2 -0
  811. package/esm/Select/Select.d.ts +15 -0
  812. package/esm/Select/Select.js +42 -0
  813. package/esm/Select/Select.tailwind.d.ts +5 -0
  814. package/esm/Select/Select.tailwind.js +77 -0
  815. package/esm/Select/index.d.ts +2 -0
  816. package/esm/Select/index.js +2 -0
  817. package/esm/Sidebar/Sidebar.d.ts +35 -0
  818. package/esm/Sidebar/Sidebar.js +60 -0
  819. package/esm/Sidebar/SidebarButtonLink.d.ts +14 -0
  820. package/esm/Sidebar/SidebarButtonLink.js +92 -0
  821. package/esm/Sidebar/SidebarContext.d.ts +9 -0
  822. package/esm/Sidebar/SidebarContext.js +11 -0
  823. package/esm/Sidebar/SidebarHeader.d.ts +6 -0
  824. package/esm/Sidebar/SidebarHeader.js +15 -0
  825. package/esm/Sidebar/SidebarHeading.d.ts +7 -0
  826. package/esm/Sidebar/SidebarHeading.js +22 -0
  827. package/esm/Sidebar/SidebarLink.d.ts +8 -0
  828. package/esm/Sidebar/SidebarLink.js +42 -0
  829. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +8 -0
  830. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +32 -0
  831. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
  832. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +25 -0
  833. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +23 -0
  834. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +100 -0
  835. package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
  836. package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
  837. package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
  838. package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
  839. package/esm/Sidebar/SidebarNav.d.ts +10 -0
  840. package/esm/Sidebar/SidebarNav.js +33 -0
  841. package/esm/Sidebar/index.d.ts +9 -0
  842. package/esm/Sidebar/index.js +9 -0
  843. package/esm/Sidebar/types.d.ts +6 -0
  844. package/esm/Sidebar/types.js +1 -0
  845. package/esm/Switch/Switch.d.ts +13 -0
  846. package/esm/Switch/Switch.js +87 -0
  847. package/esm/Switch/Switch.tailwind.d.ts +5 -0
  848. package/esm/Switch/Switch.tailwind.js +24 -0
  849. package/esm/Switch/SwitchOption.d.ts +8 -0
  850. package/esm/Switch/SwitchOption.js +41 -0
  851. package/esm/Switch/index.d.ts +3 -0
  852. package/esm/Switch/index.js +3 -0
  853. package/esm/Switch/types.d.ts +7 -0
  854. package/esm/Switch/types.js +1 -0
  855. package/esm/Switch/utils.d.ts +6 -0
  856. package/esm/Switch/utils.js +11 -0
  857. package/esm/Tables/DataTable/DataTable.d.ts +60 -0
  858. package/esm/Tables/DataTable/DataTable.js +274 -0
  859. package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  860. package/esm/Tables/DataTable/DataTable.tailwind.js +21 -0
  861. package/esm/Tables/DataTable/components/Body.d.ts +15 -0
  862. package/esm/Tables/DataTable/components/Body.js +121 -0
  863. package/esm/Tables/DataTable/components/Footer.d.ts +8 -0
  864. package/esm/Tables/DataTable/components/Footer.js +60 -0
  865. package/esm/Tables/DataTable/components/Header.d.ts +10 -0
  866. package/esm/Tables/DataTable/components/Header.js +33 -0
  867. package/esm/Tables/DataTable/components/HeaderCell.d.ts +12 -0
  868. package/esm/Tables/DataTable/components/HeaderCell.js +59 -0
  869. package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
  870. package/esm/Tables/DataTable/components/Loader.js +44 -0
  871. package/esm/Tables/DataTable/components/index.d.ts +5 -0
  872. package/esm/Tables/DataTable/components/index.js +5 -0
  873. package/esm/Tables/DataTable/index.d.ts +3 -0
  874. package/esm/Tables/DataTable/index.js +3 -0
  875. package/esm/Tables/DataTable/types.d.ts +49 -0
  876. package/esm/Tables/DataTable/types.js +1 -0
  877. package/esm/Tables/DataTable/utils.d.ts +4 -0
  878. package/esm/Tables/DataTable/utils.js +14 -0
  879. package/esm/Tables/Table/Table.d.ts +28 -0
  880. package/esm/Tables/Table/Table.js +61 -0
  881. package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
  882. package/esm/Tables/Table/Table.tailwind.js +38 -0
  883. package/esm/Tables/Table/components/TableFooter.d.ts +8 -0
  884. package/esm/Tables/Table/components/TableFooter.js +21 -0
  885. package/esm/Tables/Table/index.d.ts +3 -0
  886. package/esm/Tables/Table/index.js +3 -0
  887. package/esm/Tables/index.d.ts +3 -0
  888. package/esm/Tables/index.js +3 -0
  889. package/esm/Tabs/ContentTabs.d.ts +4 -0
  890. package/esm/Tabs/ContentTabs.js +77 -0
  891. package/esm/Tabs/LinkTabs.d.ts +33 -0
  892. package/esm/Tabs/LinkTabs.js +70 -0
  893. package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
  894. package/esm/Tabs/Tabs.tailwind.js +52 -0
  895. package/esm/Tabs/components/LinkTab.d.ts +9 -0
  896. package/esm/Tabs/components/LinkTab.js +94 -0
  897. package/esm/Tabs/index.d.ts +4 -0
  898. package/esm/Tabs/index.js +4 -0
  899. package/esm/Tabs/types.d.ts +35 -0
  900. package/esm/Tabs/types.js +1 -0
  901. package/esm/Tabs/utils.d.ts +2 -0
  902. package/esm/Tabs/utils.js +13 -0
  903. package/esm/Tag/Tag.d.ts +38 -0
  904. package/esm/Tag/Tag.js +104 -0
  905. package/esm/Tag/Tag.tailwind.d.ts +5 -0
  906. package/esm/Tag/Tag.tailwind.js +37 -0
  907. package/esm/Tag/index.d.ts +2 -0
  908. package/esm/Tag/index.js +2 -0
  909. package/esm/TextArea/TextArea.d.ts +5 -0
  910. package/esm/TextArea/TextArea.js +27 -0
  911. package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
  912. package/esm/TextArea/TextArea.tailwind.js +40 -0
  913. package/esm/TextArea/index.d.ts +2 -0
  914. package/esm/TextArea/index.js +2 -0
  915. package/esm/TextWrap/TextWrap.d.ts +7 -0
  916. package/esm/TextWrap/TextWrap.js +55 -0
  917. package/esm/TextWrap/index.d.ts +2 -0
  918. package/esm/TextWrap/index.js +2 -0
  919. package/esm/Toggle/Toggle.d.ts +10 -0
  920. package/esm/Toggle/Toggle.js +77 -0
  921. package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
  922. package/esm/Toggle/Toggle.tailwind.js +66 -0
  923. package/esm/Toggle/index.d.ts +2 -0
  924. package/esm/Toggle/index.js +2 -0
  925. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +6 -0
  926. package/esm/Tooltip/OverflowTooltipWrapper.js +107 -0
  927. package/esm/Tooltip/Tooltip.d.ts +24 -0
  928. package/esm/Tooltip/Tooltip.js +50 -0
  929. package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
  930. package/esm/Tooltip/Tooltip.tailwind.js +113 -0
  931. package/esm/Tooltip/TooltipWrapper.d.ts +28 -0
  932. package/esm/Tooltip/TooltipWrapper.js +196 -0
  933. package/esm/Tooltip/index.d.ts +4 -0
  934. package/esm/Tooltip/index.js +4 -0
  935. package/esm/Tooltip/types.d.ts +14 -0
  936. package/esm/Tooltip/types.js +1 -0
  937. package/esm/Typography/Typography.tailwind.d.ts +5 -0
  938. package/esm/Typography/Typography.tailwind.js +172 -0
  939. package/esm/UserContent/UserContent.d.ts +8 -0
  940. package/esm/UserContent/UserContent.js +21 -0
  941. package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
  942. package/esm/UserContent/UserContent.tailwind.js +146 -0
  943. package/esm/index.d.ts +46 -0
  944. package/esm/index.js +46 -0
  945. package/esm/styles/base.tailwind.d.ts +5 -0
  946. package/esm/styles/base.tailwind.js +39 -0
  947. package/esm/styles/brandColors.d.ts +42 -0
  948. package/esm/styles/brandColors.js +46 -0
  949. package/esm/styles/colors.d.ts +81 -0
  950. package/esm/styles/colors.js +85 -0
  951. package/esm/styles/disabledColor.d.ts +6 -0
  952. package/esm/styles/disabledColor.js +15 -0
  953. package/esm/styles/helpers/icons.d.ts +15 -0
  954. package/esm/styles/helpers/icons.js +43 -0
  955. package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
  956. package/esm/styles/helpers/makePurgeCssExtractor.js +60 -0
  957. package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
  958. package/esm/styles/helpers/makeTailwindPrefixer.js +39 -0
  959. package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
  960. package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
  961. package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
  962. package/esm/styles/helpers/satellitePrefixer.js +7 -0
  963. package/esm/styles/rgba.d.ts +8 -0
  964. package/esm/styles/rgba.js +15 -0
  965. package/esm/styles/tailwind.config.d.ts +2 -0
  966. package/esm/styles/tailwind.config.js +147 -0
  967. package/esm/styles/zIndexes.d.ts +7 -0
  968. package/esm/styles/zIndexes.js +11 -0
  969. package/esm/types.d.ts +19 -0
  970. package/esm/types.js +1 -0
  971. package/esm/utilities/utilities.tailwind.d.ts +5 -0
  972. package/esm/utilities/utilities.tailwind.js +25 -0
  973. package/esm/utils/event-polyfill.d.ts +0 -0
  974. package/esm/utils/event-polyfill.js +25 -0
  975. package/esm/utils/formatters.d.ts +25 -0
  976. package/esm/utils/formatters.js +40 -0
  977. package/esm/utils/genericChangeHandler.d.ts +5 -0
  978. package/esm/utils/genericChangeHandler.js +20 -0
  979. package/esm/utils/hashCode.d.ts +2 -0
  980. package/esm/utils/hashCode.js +18 -0
  981. package/esm/utils/index.d.ts +8 -0
  982. package/{types/utils/index.d.ts → esm/utils/index.js} +2 -2
  983. package/esm/utils/isCssPropertySupported.d.ts +2 -0
  984. package/esm/utils/isCssPropertySupported.js +11 -0
  985. package/esm/utils/isNil.d.ts +19 -0
  986. package/esm/utils/isNil.js +21 -0
  987. package/esm/utils/isRenderedChild.d.ts +8 -0
  988. package/esm/utils/isRenderedChild.js +10 -0
  989. package/esm/utils/matchLocation.d.ts +3 -0
  990. package/esm/utils/matchLocation.js +7 -0
  991. package/esm/utils/onlyText.d.ts +3 -0
  992. package/esm/utils/onlyText.js +41 -0
  993. package/esm/utils/parseUrl.d.ts +11 -0
  994. package/esm/utils/parseUrl.js +15 -0
  995. package/esm/utils/pluralize.d.ts +6 -0
  996. package/esm/utils/pluralize.js +19 -0
  997. package/esm/utils/range.d.ts +2 -0
  998. package/esm/utils/range.js +7 -0
  999. package/esm/utils/toSentenceCase.d.ts +3 -0
  1000. package/esm/utils/toSentenceCase.js +9 -0
  1001. package/esm/utils/uniqBy.d.ts +2 -0
  1002. package/esm/utils/uniqBy.js +15 -0
  1003. package/esm/utils/uniqueId.d.ts +2 -0
  1004. package/esm/utils/uniqueId.js +7 -0
  1005. package/esm/utils/useForwardedRef.d.ts +3 -0
  1006. package/esm/utils/useForwardedRef.js +20 -0
  1007. package/esm/utils/useLinkProps.d.ts +7 -0
  1008. package/esm/utils/useLinkProps.js +52 -0
  1009. package/esm/utils/useTriggerInputChange.d.ts +8 -0
  1010. package/esm/utils/useTriggerInputChange.js +22 -0
  1011. package/package.json +76 -49
  1012. package/satellite.min.css +3 -0
  1013. package/scss/colors.scss +113 -0
  1014. package/scss/variables.scss +7 -0
  1015. package/algolia-satellite-1.0.0-beta.14.tgz +0 -0
  1016. package/components/Alert/Alert.js +0 -49
  1017. package/components/AutoComplete/AutoComplete.js +0 -512
  1018. package/components/AutoComplete/index.js +0 -27
  1019. package/components/AutoComplete/types.js +0 -1
  1020. package/components/Button/Button.js +0 -59
  1021. package/components/Button/LinkButton.js +0 -52
  1022. package/components/Button/index.js +0 -40
  1023. package/components/Card/Card.js +0 -71
  1024. package/components/Card/components/CardHeader.js +0 -25
  1025. package/components/Card/components/CardTitle.js +0 -30
  1026. package/components/Card/index.js +0 -19
  1027. package/components/Checkbox/Checkbox.js +0 -66
  1028. package/components/Checkbox/index.js +0 -27
  1029. package/components/Chip/Chip.js +0 -77
  1030. package/components/Chip/index.js +0 -21
  1031. package/components/Dropdown/Dropdown.js +0 -163
  1032. package/components/Dropdown/DropdownButton.js +0 -117
  1033. package/components/Dropdown/components/DropdownDivider.js +0 -24
  1034. package/components/Dropdown/components/DropdownItem.js +0 -46
  1035. package/components/Dropdown/components/DropdownTitle.js +0 -34
  1036. package/components/Dropdown/index.js +0 -29
  1037. package/components/HelpUnderline/HelpUnderline.js +0 -39
  1038. package/components/HelpUnderline/index.js +0 -27
  1039. package/components/Input/Input.js +0 -134
  1040. package/components/Input/index.js +0 -27
  1041. package/components/LoaderIcon/LoaderIcon.js +0 -65
  1042. package/components/LoaderIcon/index.js +0 -27
  1043. package/components/MaterialIcon/MaterialIcon.js +0 -48
  1044. package/components/MaterialIcon/index.js +0 -27
  1045. package/components/Modal/Modal.js +0 -207
  1046. package/components/Modal/components/ModalFooter.js +0 -34
  1047. package/components/Modal/components/ModalSection.js +0 -38
  1048. package/components/Modal/index.js +0 -21
  1049. package/components/Pagination/Pagination.js +0 -131
  1050. package/components/Pagination/index.js +0 -27
  1051. package/components/RadioGroup/RadioButton.js +0 -35
  1052. package/components/RadioGroup/RadioGroup.js +0 -140
  1053. package/components/RadioGroup/index.js +0 -29
  1054. package/components/ScrollIndicator/ScrollIndicator.js +0 -165
  1055. package/components/ScrollIndicator/index.js +0 -21
  1056. package/components/Select/Select.js +0 -40
  1057. package/components/Select/index.js +0 -27
  1058. package/components/Table/Table.js +0 -36
  1059. package/components/Table/index.js +0 -19
  1060. package/components/TextArea/TextArea.js +0 -34
  1061. package/components/TextArea/index.js +0 -27
  1062. package/components/Tooltip/Tooltip.js +0 -29
  1063. package/components/Tooltip/TooltipWrapper.js +0 -164
  1064. package/components/Tooltip/index.js +0 -40
  1065. package/index.js +0 -173
  1066. package/satellite.css +0 -32
  1067. package/satellite.css.map +0 -1
  1068. package/styles/_colors.scss +0 -147
  1069. package/styles/_mixins.scss +0 -72
  1070. package/styles/_variables.scss +0 -71
  1071. package/types/components/Alert/Alert.d.ts +0 -9
  1072. package/types/components/AutoComplete/AutoComplete.d.ts +0 -66
  1073. package/types/components/AutoComplete/index.d.ts +0 -2
  1074. package/types/components/AutoComplete/types.d.ts +0 -21
  1075. package/types/components/AutoComplete/utils.d.ts +0 -3
  1076. package/types/components/Button/Button.d.ts +0 -13
  1077. package/types/components/Button/LinkButton.d.ts +0 -9
  1078. package/types/components/Button/index.d.ts +0 -3
  1079. package/types/components/Card/Card.d.ts +0 -13
  1080. package/types/components/Card/components/CardHeader.d.ts +0 -3
  1081. package/types/components/Card/components/CardTitle.d.ts +0 -7
  1082. package/types/components/Card/index.d.ts +0 -3
  1083. package/types/components/Checkbox/Checkbox.d.ts +0 -5
  1084. package/types/components/Chip/Chip.d.ts +0 -9
  1085. package/types/components/Chip/index.d.ts +0 -2
  1086. package/types/components/Dropdown/Dropdown.d.ts +0 -27
  1087. package/types/components/Dropdown/DropdownButton.d.ts +0 -12
  1088. package/types/components/Dropdown/components/DropdownDivider.d.ts +0 -6
  1089. package/types/components/Dropdown/components/DropdownItem.d.ts +0 -10
  1090. package/types/components/Dropdown/components/DropdownTitle.d.ts +0 -4
  1091. package/types/components/Dropdown/index.d.ts +0 -3
  1092. package/types/components/HelpUnderline/HelpUnderline.d.ts +0 -10
  1093. package/types/components/Input/Input.d.ts +0 -25
  1094. package/types/components/LoaderIcon/LoaderIcon.d.ts +0 -7
  1095. package/types/components/LoaderIcon/index.d.ts +0 -2
  1096. package/types/components/MaterialIcon/MaterialIcon.d.ts +0 -12
  1097. package/types/components/MaterialIcon/index.d.ts +0 -2
  1098. package/types/components/Modal/Modal.d.ts +0 -30
  1099. package/types/components/Modal/components/ModalFooter.d.ts +0 -4
  1100. package/types/components/Modal/components/ModalSection.d.ts +0 -6
  1101. package/types/components/Modal/index.d.ts +0 -2
  1102. package/types/components/Pagination/Pagination.d.ts +0 -12
  1103. package/types/components/RadioGroup/RadioButton.d.ts +0 -4
  1104. package/types/components/RadioGroup/RadioGroup.d.ts +0 -20
  1105. package/types/components/RadioGroup/index.d.ts +0 -3
  1106. package/types/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
  1107. package/types/components/ScrollIndicator/index.d.ts +0 -2
  1108. package/types/components/Select/Select.d.ts +0 -6
  1109. package/types/components/Table/Table.d.ts +0 -6
  1110. package/types/components/Table/index.d.ts +0 -3
  1111. package/types/components/TextArea/TextArea.d.ts +0 -5
  1112. package/types/components/Tooltip/Tooltip.d.ts +0 -5
  1113. package/types/components/Tooltip/TooltipWrapper.d.ts +0 -32
  1114. package/types/index.d.ts +0 -19
  1115. package/types/utils/clamp.d.ts +0 -2
  1116. package/types/utils/genericChangeHandler.d.ts +0 -5
  1117. package/types/utils/omit.d.ts +0 -2
  1118. package/utils/clamp.js +0 -20
  1119. package/utils/omit.js +0 -25
@@ -0,0 +1,655 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
+ import _createClass from "@babel/runtime/helpers/createClass";
6
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
8
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
9
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
10
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
11
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
12
+
13
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
14
+
15
+ var _excluded = ["optionItemPrefix"];
16
+
17
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
+
19
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
20
+
21
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
22
+
23
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
+
25
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
26
+
27
+ 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(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
28
+
29
+ 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; }
30
+
31
+ import cx from "clsx";
32
+ import Downshift from "downshift";
33
+ import { Component } from "react";
34
+ import { createPortal } from "react-dom";
35
+ import { X } from "react-feather";
36
+ import { Popper } from "react-popper";
37
+ import Button from "../Button";
38
+ import Card from "../Card";
39
+ import { FieldStateContext } from "../Field/FieldStateContext";
40
+ import { SatelliteContext } from "../Satellite";
41
+ import ScrollIndicator from "../ScrollIndicator";
42
+ import stl from "../styles/helpers/satellitePrefixer";
43
+ import Tag from "../Tag";
44
+ import uniqBy from "../utils/uniqBy";
45
+ import AutoCompleteEmptyState from "./components/AutoCompleteEmptyState";
46
+ import DefaultOptionItem from "./components/DefaultOptionItem";
47
+ import { DEFAULT_AUTOCOMPLETE_LOCALE, defaultCreateFromInputValue, isAutoCompleteMultiProps } from "./utils";
48
+ import { jsx as _jsx } from "react/jsx-runtime";
49
+ import { jsxs as _jsxs } from "react/jsx-runtime";
50
+
51
+ function optionToString(option) {
52
+ return option ? option.label : "";
53
+ }
54
+
55
+ function makeNeedles(itemValue) {
56
+ return itemValue.toLowerCase().trim().split(/\s+/);
57
+ }
58
+
59
+ function needlesMatch(needles, option) {
60
+ var labels = (option.metadata || []).concat(option.label);
61
+ return needles.every(function (needle) {
62
+ return labels.some(function (label) {
63
+ return String(label || "").trim().toLowerCase().includes(needle);
64
+ });
65
+ });
66
+ }
67
+
68
+ function filter(options, selectedItems, itemValue) {
69
+ var needles = makeNeedles(itemValue);
70
+ var selectedValues = selectedItems.map(function (option) {
71
+ return option.value;
72
+ });
73
+ var results = [];
74
+
75
+ var _iterator = _createForOfIteratorHelper(options),
76
+ _step;
77
+
78
+ try {
79
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
80
+ var option = _step.value;
81
+
82
+ if (selectedValues.includes(option.value)) {
83
+ continue;
84
+ } else if (option.bypassNeedleMatch || needlesMatch(needles, option)) {
85
+ results.push(option);
86
+ }
87
+ }
88
+ } catch (err) {
89
+ _iterator.e(err);
90
+ } finally {
91
+ _iterator.f();
92
+ }
93
+
94
+ return results;
95
+ }
96
+
97
+ function inputValueFromProps(props) {
98
+ if (props.inputValue !== undefined) {
99
+ return props.inputValue;
100
+ }
101
+
102
+ return !isAutoCompleteMultiProps(props) && props.value ? optionToString(props.value) : "";
103
+ }
104
+
105
+ var MENU_POPPER_MODFIERS = [{
106
+ name: "offset",
107
+ options: {
108
+ offset: [0, 8]
109
+ }
110
+ }];
111
+ var BACKSPACE_KEY_CODE = 8;
112
+
113
+ /** @ignore */
114
+ var DefaultEmptyState = function DefaultEmptyState(_ref) {
115
+ var emptyStateTitle = _ref.emptyStateTitle;
116
+ return /*#__PURE__*/_jsx(AutoCompleteEmptyState, {
117
+ title: emptyStateTitle
118
+ });
119
+ };
120
+
121
+ var DefaultOption = function DefaultOption(_ref2) {
122
+ var optionItemPrefix = _ref2.optionItemPrefix,
123
+ props = _objectWithoutProperties(_ref2, _excluded);
124
+
125
+ return /*#__PURE__*/_jsx(DefaultOptionItem, _objectSpread(_objectSpread({}, props), {}, {
126
+ locale: {
127
+ optionItemPrefix: optionItemPrefix !== null && optionItemPrefix !== void 0 ? optionItemPrefix : DEFAULT_AUTOCOMPLETE_LOCALE.optionItemPrefix
128
+ }
129
+ }));
130
+ };
131
+ /**
132
+ * Autocomplete is a search-as-you-type function that matches what a person types, usually the beginning of a word, or a prefix, with a word list. Not to be confused with auto-suggestion that predicts the end of a query.
133
+ *
134
+ * Use this component when the user needs to search through a long list of results.
135
+ *
136
+ * ## Menu Size Variations
137
+ * - **Medium (default)**: the standard dropdown menu height for most use cases
138
+ * - **Large**: when numerous results should be displayed in the dropdown to ease selection
139
+ *
140
+ * ## Best practices
141
+ *
142
+ * - Provide an empty state if there is no result
143
+ * - Highlight letters in results matching the query
144
+ * - Provide matching results quickly
145
+ * - Style different data
146
+ */
147
+
148
+
149
+ export var AutoComplete = /*#__PURE__*/function (_Component) {
150
+ _inherits(AutoComplete, _Component);
151
+
152
+ var _super = _createSuper(AutoComplete);
153
+
154
+ function AutoComplete() {
155
+ var _this;
156
+
157
+ _classCallCheck(this, AutoComplete);
158
+
159
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
160
+ args[_key] = arguments[_key];
161
+ }
162
+
163
+ _this = _super.call.apply(_super, [this].concat(args));
164
+
165
+ _defineProperty(_assertThisInitialized(_this), "state", {
166
+ inputFocused: false,
167
+ inputValue: inputValueFromProps(_this.props),
168
+ showAllResults: false
169
+ });
170
+
171
+ _defineProperty(_assertThisInitialized(_this), "inputContainerRef", null);
172
+
173
+ _defineProperty(_assertThisInitialized(_this), "inputRef", null);
174
+
175
+ _defineProperty(_assertThisInitialized(_this), "handleClearClick", function () {
176
+ return _this.setState({
177
+ inputValue: ""
178
+ }, function () {
179
+ return _this.props.onChange(null);
180
+ });
181
+ });
182
+
183
+ _defineProperty(_assertThisInitialized(_this), "handleFakeInputClick", function () {
184
+ return _this.inputRef && _this.inputRef.focus();
185
+ });
186
+
187
+ _defineProperty(_assertThisInitialized(_this), "handleInputBlur", function (state) {
188
+ return function (evt) {
189
+ var _this$props = _this.props,
190
+ selectOnBlur = _this$props.selectOnBlur,
191
+ onBlur = _this$props.onBlur;
192
+ var inputValue = state.inputValue,
193
+ highlightedIndex = state.highlightedIndex,
194
+ selectItemAtIndex = state.selectItemAtIndex;
195
+ var newInputValue;
196
+
197
+ if (selectOnBlur && inputValue && highlightedIndex !== null) {
198
+ newInputValue = isAutoCompleteMultiProps(_this.props) ? "" : optionToString(_this.props.value);
199
+ selectItemAtIndex(highlightedIndex);
200
+ } else if (isAutoCompleteMultiProps(_this.props)) {
201
+ newInputValue = inputValue;
202
+ } else {
203
+ newInputValue = optionToString(_this.props.value);
204
+ }
205
+
206
+ if (onBlur) {
207
+ onBlur(evt);
208
+ }
209
+
210
+ _this.setState({
211
+ inputValue: newInputValue || "",
212
+ inputFocused: false,
213
+ showAllResults: false
214
+ });
215
+ };
216
+ });
217
+
218
+ _defineProperty(_assertThisInitialized(_this), "handleInputChange", function (evt) {
219
+ var inputValue = evt.target.value;
220
+
221
+ _this.setState({
222
+ inputValue: inputValue
223
+ });
224
+
225
+ if (_this.props.onTextChange) {
226
+ _this.props.onTextChange(inputValue);
227
+ }
228
+
229
+ if (!_this.props.multiple && _this.props.value && !inputValue) {
230
+ _this.props.onChange(null);
231
+ }
232
+ });
233
+
234
+ _defineProperty(_assertThisInitialized(_this), "handleInputContainerRefUpdate", function (el) {
235
+ _this.inputContainerRef = el;
236
+
237
+ if (el) {
238
+ _this.updateInputWidth();
239
+ }
240
+ });
241
+
242
+ _defineProperty(_assertThisInitialized(_this), "updateInputWidth", function () {
243
+ var _this$inputContainerR, _this$inputContainerR2;
244
+
245
+ var inputWidth = _this.state.inputWidth;
246
+ var newInputWidth = (_this$inputContainerR = (_this$inputContainerR2 = _this.inputContainerRef) === null || _this$inputContainerR2 === void 0 ? void 0 : _this$inputContainerR2.getBoundingClientRect().width) !== null && _this$inputContainerR !== void 0 ? _this$inputContainerR : inputWidth;
247
+
248
+ if (newInputWidth !== inputWidth) {
249
+ _this.setState({
250
+ inputWidth: newInputWidth
251
+ });
252
+ }
253
+ });
254
+
255
+ _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (state) {
256
+ return function (evt) {
257
+ if (!isAutoCompleteMultiProps(_this.props)) return;
258
+ var _this$props2 = _this.props,
259
+ _this$props2$value = _this$props2.value,
260
+ value = _this$props2$value === void 0 ? [] : _this$props2$value,
261
+ _this$props2$separato = _this$props2.separatorKeyCodes,
262
+ separatorKeyCodes = _this$props2$separato === void 0 ? AutoComplete.defaultProps.separatorKeyCodes : _this$props2$separato,
263
+ _this$props2$separato2 = _this$props2.separatorKeys,
264
+ separatorKeys = _this$props2$separato2 === void 0 ? AutoComplete.defaultProps.separatorKeys : _this$props2$separato2,
265
+ creatable = _this$props2.creatable,
266
+ _this$props2$createFr = _this$props2.createFromInputValue,
267
+ createFromInputValue = _this$props2$createFr === void 0 ? AutoComplete.defaultProps.createFromInputValue : _this$props2$createFr,
268
+ options = _this$props2.options,
269
+ onChange = _this$props2.onChange;
270
+ var inputValue = state.inputValue || "";
271
+ var canCreate = creatable && inputValue.trim().length > 0;
272
+
273
+ if (evt.keyCode === BACKSPACE_KEY_CODE && !inputValue.length) {
274
+ onChange(value.slice(0, -1));
275
+ } else if (canCreate && (separatorKeyCodes.includes(evt.keyCode) || separatorKeys.includes(evt.key))) {
276
+ evt.preventDefault();
277
+
278
+ var _createFromInputValue = createFromInputValue(options, inputValue),
279
+ _createFromInputValue2 = _slicedToArray(_createFromInputValue, 1),
280
+ newOption = _createFromInputValue2[0];
281
+
282
+ if (newOption && !newOption.disabled) {
283
+ state.selectItem(newOption);
284
+ }
285
+ }
286
+ };
287
+ });
288
+
289
+ _defineProperty(_assertThisInitialized(_this), "handleChange", function (option) {
290
+ if (option.disabled) return;
291
+ option = option ? _objectSpread(_objectSpread({}, option), {}, {
292
+ "new": undefined
293
+ }) : option;
294
+
295
+ if (isAutoCompleteMultiProps(_this.props)) {
296
+ var arrayValue = Array.isArray(_this.props.value) ? _this.props.value : [];
297
+ var newValue = uniqBy([].concat(_toConsumableArray(arrayValue), [option]), function (o) {
298
+ return o.value;
299
+ });
300
+
301
+ _this.props.onChange(newValue);
302
+
303
+ _this.setState({
304
+ inputValue: "",
305
+ showAllResults: false
306
+ });
307
+ } else {
308
+ _this.props.onChange(option);
309
+
310
+ _this.setState({
311
+ inputValue: option ? option.label : "",
312
+ showAllResults: false
313
+ });
314
+ }
315
+ });
316
+
317
+ _defineProperty(_assertThisInitialized(_this), "handleShowAllResults", function (evt) {
318
+ evt.preventDefault();
319
+ evt.stopPropagation();
320
+
321
+ _this.setState({
322
+ showAllResults: true
323
+ });
324
+ });
325
+
326
+ _defineProperty(_assertThisInitialized(_this), "removeValue", function (removedOption) {
327
+ if (!isAutoCompleteMultiProps(_this.props)) return;
328
+ var currentOptions = _this.props.value || [];
329
+ var newOptions = currentOptions.filter(function (option) {
330
+ return option.value !== removedOption.value;
331
+ });
332
+
333
+ _this.props.onChange(newOptions);
334
+ });
335
+
336
+ _defineProperty(_assertThisInitialized(_this), "getA11yStatusMessage", function (options) {
337
+ if (!options.isOpen) {
338
+ return "";
339
+ }
340
+
341
+ if (!options.resultCount) {
342
+ return _this.locale.emptyStateTitle;
343
+ }
344
+
345
+ if (options.resultCount > 0) {
346
+ return _this.locale.itemsAvailable(options.resultCount);
347
+ }
348
+
349
+ return "";
350
+ });
351
+
352
+ _defineProperty(_assertThisInitialized(_this), "renderInput", function (results, autocompleteHelpers, fieldState) {
353
+ var _this$props3 = _this.props,
354
+ id = _this$props3.id,
355
+ placeholder = _this$props3.placeholder,
356
+ name = _this$props3.name,
357
+ valuesClassName = _this$props3.valuesClassName,
358
+ disabled = _this$props3.disabled,
359
+ autoFocus = _this$props3.autoFocus,
360
+ clearable = _this$props3.clearable,
361
+ value = _this$props3.value,
362
+ multiple = _this$props3.multiple,
363
+ _this$props3$variant = _this$props3.variant,
364
+ variant = _this$props3$variant === void 0 ? "medium" : _this$props3$variant,
365
+ renderValueTemplate = _this$props3.renderValueTemplate,
366
+ Icon = _this$props3.icon,
367
+ _this$props3$noWrap = _this$props3.noWrap,
368
+ noWrap = _this$props3$noWrap === void 0 ? false : _this$props3$noWrap,
369
+ endItem = _this$props3.endItem,
370
+ _onFocus = _this$props3.onFocus;
371
+ var inputFocused = _this.state.inputFocused;
372
+ var getInputProps = autocompleteHelpers.getInputProps;
373
+ var hasValue = Boolean(value && (!Array.isArray(value) || value.length > 0));
374
+ var showClearButton = !disabled && clearable && hasValue;
375
+ var shouldRenderCustomTemplate = Boolean(!multiple && !inputFocused && value && renderValueTemplate);
376
+ var status = fieldState.status;
377
+ var inputContainerClassName = stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n autocomplete-container\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), variant === "large" && "autocomplete-large py-1", inputFocused && "autocomplete-focused", disabled && "autocomplete-disabled", status === "invalid" && "autocomplete-invalid", noWrap && "autocomplete-nowrap");
378
+ var inputClassName = stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n autocomplete-input\n ", "\n ", "\n "])), multiple && "ml-1", shouldRenderCustomTemplate && hasValue && "h-0 w-0 opacity-0");
379
+ var inputProps = getInputProps({
380
+ id: id,
381
+ name: name,
382
+ disabled: disabled,
383
+ className: inputClassName,
384
+ type: "text",
385
+ placeholder: hasValue ? undefined : placeholder,
386
+ ref: function ref(input) {
387
+ return _this.inputRef = input;
388
+ },
389
+ onChange: _this.handleInputChange,
390
+ onFocus: function onFocus(evt) {
391
+ _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(evt);
392
+
393
+ if (evt.defaultPrevented) {
394
+ return;
395
+ }
396
+
397
+ _this.setState({
398
+ inputFocused: true
399
+ }); // Doesn't work without the setTimeout :/
400
+
401
+
402
+ setTimeout(function () {
403
+ _this.updateInputWidth();
404
+
405
+ autocompleteHelpers.openMenu();
406
+ });
407
+ },
408
+ onBlur: _this.handleInputBlur(autocompleteHelpers),
409
+ onKeyDown: _this.handleKeyDown(autocompleteHelpers),
410
+ autoComplete: "off",
411
+ autoFocus: autoFocus
412
+ });
413
+ return /*#__PURE__*/_jsxs("div", {
414
+ className: inputContainerClassName,
415
+ onClick: _this.handleFakeInputClick,
416
+ ref: _this.handleInputContainerRefUpdate,
417
+ children: [Icon && /*#__PURE__*/_jsx(Icon, {
418
+ className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["mr-4 shrink-0 ", ""])), disabled ? "text-grey-200" : inputFocused ? "text-accent-600" : "text-grey-500"),
419
+ size: "1rem"
420
+ }), /*#__PURE__*/_jsxs("div", {
421
+ className: cx(stl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["flex items-center flex-1 ", " ", ""])), !noWrap && "flex-wrap", multiple && "-ml-1"), valuesClassName),
422
+ children: [multiple && Array.isArray(value) && value.map(function (option) {
423
+ return renderValueTemplate ? renderValueTemplate({
424
+ option: option,
425
+ key: String(option.value),
426
+ editable: !disabled
427
+ }) : /*#__PURE__*/_jsx(Tag, {
428
+ onDelete: disabled ? undefined : function () {
429
+ return _this.removeValue(option);
430
+ },
431
+ className: stl(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["m-1 max-w-48 ", ""])), disabled && "opacity-50"),
432
+ children: option.label
433
+ }, String(option.value));
434
+ }), shouldRenderCustomTemplate && renderValueTemplate({
435
+ option: value,
436
+ key: String(value),
437
+ editable: !disabled
438
+ }), /*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({}, inputProps), {}, {
439
+ "data-lpignore": true
440
+ }))]
441
+ }), (showClearButton || endItem) && /*#__PURE__*/_jsxs("div", {
442
+ className: cx(showClearButton && endItem && stl(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["my-2 flex self-end space-x-4"])))),
443
+ children: [endItem && /*#__PURE__*/_jsx("div", {
444
+ className: stl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["text-grey-700 my-auto"]))),
445
+ children: endItem
446
+ }), showClearButton && /*#__PURE__*/_jsx("button", {
447
+ type: "button",
448
+ className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["w-6 flex items-center justify-center text-grey-500"]))),
449
+ onClick: _this.handleClearClick,
450
+ "aria-label": _this.locale.clearInputButton,
451
+ children: /*#__PURE__*/_jsx(X, {
452
+ size: ".75rem"
453
+ })
454
+ })]
455
+ })]
456
+ });
457
+ });
458
+
459
+ _defineProperty(_assertThisInitialized(_this), "renderMenu", function (results, autocompleteHelpers) {
460
+ var _this$inputContainerR3;
461
+
462
+ var getItemProps = autocompleteHelpers.getItemProps,
463
+ getMenuProps = autocompleteHelpers.getMenuProps,
464
+ highlightedIndex = autocompleteHelpers.highlightedIndex,
465
+ inputValue = autocompleteHelpers.inputValue,
466
+ isOpen = autocompleteHelpers.isOpen;
467
+
468
+ var defaultEmptyState = /*#__PURE__*/_jsx(DefaultEmptyState, {
469
+ emptyStateTitle: _this.locale.emptyStateTitle
470
+ });
471
+
472
+ var _this$props4 = _this.props,
473
+ menuClassName = _this$props4.menuClassName,
474
+ menuSize = _this$props4.menuSize,
475
+ menuFooter = _this$props4.menuFooter,
476
+ _this$props4$emptySta = _this$props4.emptyState,
477
+ emptyState = _this$props4$emptySta === void 0 ? defaultEmptyState : _this$props4$emptySta,
478
+ _this$props4$maxResul = _this$props4.maxResults,
479
+ maxResults = _this$props4$maxResul === void 0 ? AutoComplete.defaultProps.maxResults : _this$props4$maxResul,
480
+ _this$props4$multiple = _this$props4.multiple,
481
+ multiple = _this$props4$multiple === void 0 ? AutoComplete.defaultProps.multiple : _this$props4$multiple,
482
+ _this$props4$optionIt = _this$props4.optionItemComponent,
483
+ OptionItem = _this$props4$optionIt === void 0 ? AutoComplete.defaultProps.optionItemComponent : _this$props4$optionIt;
484
+ var _this$state = _this.state,
485
+ inputWidth = _this$state.inputWidth,
486
+ showAllResults = _this$state.showAllResults;
487
+ var dropdownStyle = inputWidth ? {
488
+ minWidth: inputWidth,
489
+ maxWidth: "42vw"
490
+ } : undefined;
491
+ var optionItemProps = {
492
+ multiple: multiple,
493
+ inputValue: inputValue || ""
494
+ };
495
+ var extraResults = results.length - maxResults;
496
+ var shouldShowDefaultEmptyState = emptyState === defaultEmptyState && results.length === 0 && !!(inputValue !== null && inputValue !== void 0 && inputValue.length);
497
+ var shouldShowEmptyState = emptyState !== defaultEmptyState && !!emptyState && results.length === 0;
498
+ var showResults = results.length > 0;
499
+
500
+ if (!isOpen || !showResults && !shouldShowEmptyState && !shouldShowDefaultEmptyState) {
501
+ return /*#__PURE__*/_jsx("ul", _objectSpread(_objectSpread({}, getMenuProps()), {}, {
502
+ className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["hidden h-0"])))
503
+ }));
504
+ }
505
+
506
+ return /*#__PURE__*/_jsx(Popper, {
507
+ placement: "bottom-start",
508
+ strategy: "fixed",
509
+ referenceElement: (_this$inputContainerR3 = _this.inputContainerRef) !== null && _this$inputContainerR3 !== void 0 ? _this$inputContainerR3 : undefined,
510
+ modifiers: MENU_POPPER_MODFIERS,
511
+ children: function children(popper) {
512
+ return /*#__PURE__*/_jsx("div", {
513
+ className: cx(stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["z-dropdown"]))), menuClassName),
514
+ style: _objectSpread(_objectSpread({}, popper.style), dropdownStyle),
515
+ "data-popper-placement": popper.placement,
516
+ ref: popper.ref,
517
+ children: /*#__PURE__*/_jsxs(Card, {
518
+ fullBleed: true,
519
+ elevation: "300",
520
+ children: [results.length === 0 ? /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, getMenuProps()), {}, {
521
+ className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["min-h-10"]))),
522
+ children: emptyState
523
+ })) : /*#__PURE__*/_jsx(ScrollIndicator, {
524
+ className: menuSize === "large" ? stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["max-h-96"]))) : stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["max-h-64"]))),
525
+ children: /*#__PURE__*/_jsxs("ul", _objectSpread(_objectSpread({}, getMenuProps()), {}, {
526
+ children: [results.slice(0, showAllResults ? Number.MAX_SAFE_INTEGER : maxResults).map(function (result, index) {
527
+ return /*#__PURE__*/_jsx("li", _objectSpread(_objectSpread({}, getItemProps({
528
+ item: result,
529
+ disabled: result.disabled,
530
+ className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n autocomplete-result\n flex items-center min-h-10 px-4 cursor-pointer\n ", "\n ", "\n "])), index === highlightedIndex && "bg-grey-100", result.disabled && "cursor-not-allowed")
531
+ })), {}, {
532
+ children: /*#__PURE__*/_jsx(OptionItem, _objectSpread(_objectSpread({}, optionItemProps), {}, {
533
+ highlighted: index === highlightedIndex,
534
+ option: result,
535
+ optionItemPrefix: _this.locale.optionItemPrefix
536
+ }))
537
+ }), result.value);
538
+ }), extraResults > 0 && !showAllResults && /*#__PURE__*/_jsx("li", {
539
+ className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["p-2 text-right"]))),
540
+ children: /*#__PURE__*/_jsx(Button, {
541
+ variant: "subtle",
542
+ size: "small",
543
+ onMouseDown: _this.handleShowAllResults,
544
+ children: _this.locale.showMoreButton(extraResults)
545
+ })
546
+ })]
547
+ }))
548
+ }), menuFooter && /*#__PURE__*/_jsx("footer", {
549
+ className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["flex items-center justify-center min-h-12 p-4 bg-grey-100 border-t border-grey-200 text-grey-600"]))),
550
+ children: menuFooter
551
+ })]
552
+ })
553
+ });
554
+ }
555
+ });
556
+ });
557
+
558
+ _defineProperty(_assertThisInitialized(_this), "renderSelect", function (autocompleteHelpers, fieldState) {
559
+ var _this$context$portalT;
560
+
561
+ var _this$props5 = _this.props,
562
+ className = _this$props5.className,
563
+ options = _this$props5.options,
564
+ value = _this$props5.value,
565
+ creatable = _this$props5.creatable,
566
+ _this$props5$createFr = _this$props5.createFromInputValue,
567
+ createFromInputValue = _this$props5$createFr === void 0 ? AutoComplete.defaultProps.createFromInputValue : _this$props5$createFr;
568
+ var inputValue = autocompleteHelpers.inputValue || "";
569
+ var results = options ? filter(options, Array.isArray(value) ? value : [], inputValue) : [];
570
+ var emptyInputValue = !inputValue || inputValue.trim().length === 0;
571
+
572
+ if (creatable && !emptyInputValue) {
573
+ results.unshift.apply(results, _toConsumableArray(createFromInputValue(options, inputValue)));
574
+ }
575
+
576
+ return /*#__PURE__*/_jsxs("div", {
577
+ className: className,
578
+ children: [_this.renderInput(results, autocompleteHelpers, fieldState), _this.inputContainerRef && /*#__PURE__*/createPortal(_this.renderMenu(results, autocompleteHelpers), (_this$context$portalT = _this.context["portalTarget"]) !== null && _this$context$portalT !== void 0 ? _this$context$portalT : document.body)]
579
+ });
580
+ });
581
+
582
+ return _this;
583
+ }
584
+
585
+ _createClass(AutoComplete, [{
586
+ key: "componentDidUpdate",
587
+ value: function componentDidUpdate(prevProps) {
588
+ // Only interested in updating inputValue from props for now
589
+ // (which should only happen when this.props.multiple === false)
590
+ if (this.props.multiple) return;
591
+ var prevPropsInputValue = inputValueFromProps(prevProps);
592
+ var propsInputValue = inputValueFromProps(this.props);
593
+ var shouldUpdateInputValueFromProps = prevPropsInputValue !== propsInputValue && this.state.inputValue !== propsInputValue;
594
+
595
+ if (shouldUpdateInputValueFromProps) {
596
+ this.setState({
597
+ inputValue: propsInputValue
598
+ });
599
+ }
600
+ }
601
+ }, {
602
+ key: "locale",
603
+ get: function get() {
604
+ return _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_AUTOCOMPLETE_LOCALE), this.context["locales"]), this.props.locale);
605
+ }
606
+ }, {
607
+ key: "render",
608
+ value: function render() {
609
+ var _this2 = this;
610
+
611
+ var inputValue = (this.props.inputValue !== undefined ? this.props.inputValue : this.state.inputValue) || "";
612
+ return /*#__PURE__*/_jsx(FieldStateContext.Consumer, {
613
+ children: function children(fieldState) {
614
+ return /*#__PURE__*/_jsx(Downshift, {
615
+ inputValue: inputValue
616
+ /*
617
+ * See https://github.com/algolia/AlgoliaWeb/issues/9045
618
+ * See multi-select example
619
+ * https://github.com/downshift-js/downshift#examples
620
+ * https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=/src/ordered-examples/04-multi-select.js&moduleview=1&file=/src/ordered-examples/04-multi-select.js:2482-2509
621
+ */
622
+ ,
623
+ selectedItem: null,
624
+ getA11yStatusMessage: _this2.getA11yStatusMessage,
625
+ onChange: _this2.handleChange,
626
+ itemToString: optionToString,
627
+ defaultHighlightedIndex: 0,
628
+ children: function children(autocompleteHelpers) {
629
+ return _this2.renderSelect(autocompleteHelpers, fieldState);
630
+ }
631
+ });
632
+ }
633
+ });
634
+ }
635
+ }]);
636
+
637
+ return AutoComplete;
638
+ }(Component);
639
+
640
+ _defineProperty(AutoComplete, "contextType", SatelliteContext);
641
+
642
+ _defineProperty(AutoComplete, "defaultProps", {
643
+ clearable: false,
644
+ creatable: false,
645
+ multiple: false,
646
+ maxResults: 7,
647
+ createFromInputValue: defaultCreateFromInputValue,
648
+ options: [],
649
+ separatorKeyCodes: [],
650
+ separatorKeys: [],
651
+ optionItemComponent: DefaultOption,
652
+ noWrap: false
653
+ });
654
+
655
+ export default AutoComplete;
@@ -0,0 +1,5 @@
1
+ export = autoCompletePlugin;
2
+ declare const autoCompletePlugin: {
3
+ handler: import("tailwindcss/types/config").PluginCreator;
4
+ config?: import("tailwindcss").Config | undefined;
5
+ };