@algolia/satellite 1.0.0-beta.18 → 1.0.0-beta.181

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 (1362) hide show
  1. package/README.md +153 -7
  2. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +25 -0
  3. package/cjs/AnnouncementBadge/AnnouncementBadge.js +56 -0
  4. package/cjs/AnnouncementBadge/index.d.ts +1 -0
  5. package/cjs/AnnouncementBadge/index.js +16 -0
  6. package/cjs/AutoComplete/AutoComplete.d.ts +8 -0
  7. package/cjs/AutoComplete/AutoComplete.js +434 -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/AutoCompleteContext.d.ts +10 -0
  11. package/cjs/AutoComplete/components/AutoCompleteContext.js +29 -0
  12. package/cjs/AutoComplete/components/AutoCompleteEmptyState.d.ts +12 -0
  13. package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +34 -0
  14. package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +6 -0
  15. package/cjs/AutoComplete/components/DefaultOptionItem.js +41 -0
  16. package/cjs/AutoComplete/index.d.ts +6 -0
  17. package/cjs/AutoComplete/index.js +75 -0
  18. package/cjs/AutoComplete/types.d.ts +95 -0
  19. package/cjs/AutoComplete/types.js +5 -0
  20. package/cjs/AutoComplete/utils.d.ts +8 -0
  21. package/cjs/AutoComplete/utils.js +81 -0
  22. package/cjs/Avatars/ApplicationAvatar.d.ts +16 -0
  23. package/cjs/Avatars/ApplicationAvatar.js +37 -0
  24. package/cjs/Avatars/UserAvatar.d.ts +23 -0
  25. package/cjs/Avatars/UserAvatar.js +58 -0
  26. package/cjs/Avatars/index.d.ts +2 -0
  27. package/cjs/Avatars/index.js +27 -0
  28. package/cjs/Avatars/types.d.ts +17 -0
  29. package/cjs/Avatars/types.js +5 -0
  30. package/cjs/Avatars/utils.d.ts +6 -0
  31. package/cjs/Avatars/utils.js +55 -0
  32. package/cjs/Badge/Badge.d.ts +24 -0
  33. package/cjs/Badge/Badge.js +68 -0
  34. package/cjs/Badge/index.d.ts +1 -0
  35. package/cjs/Badge/index.js +16 -0
  36. package/cjs/Banners/Alert/Alert.d.ts +33 -0
  37. package/cjs/Banners/Alert/Alert.js +93 -0
  38. package/cjs/Banners/Alert/index.d.ts +1 -0
  39. package/cjs/Banners/Alert/index.js +16 -0
  40. package/cjs/Banners/Promote/Promote.d.ts +28 -0
  41. package/cjs/Banners/Promote/Promote.js +79 -0
  42. package/cjs/Banners/Promote/index.d.ts +1 -0
  43. package/cjs/Banners/Promote/index.js +16 -0
  44. package/cjs/Banners/SystemNotification/SystemNotification.d.ts +12 -0
  45. package/cjs/Banners/SystemNotification/SystemNotification.js +33 -0
  46. package/cjs/Banners/SystemNotification/index.d.ts +1 -0
  47. package/cjs/Banners/SystemNotification/index.js +16 -0
  48. package/cjs/Banners/index.d.ts +3 -0
  49. package/cjs/Banners/index.js +38 -0
  50. package/cjs/Button/Button.d.ts +9 -0
  51. package/cjs/Button/Button.js +25 -0
  52. package/cjs/Button/Button.tailwind.d.ts +5 -0
  53. package/cjs/Button/Button.tailwind.js +154 -0
  54. package/cjs/Button/ButtonGroup.d.ts +17 -0
  55. package/cjs/Button/ButtonGroup.js +27 -0
  56. package/cjs/Button/IconButton.d.ts +9 -0
  57. package/cjs/Button/IconButton.js +25 -0
  58. package/cjs/Button/PolymorphicButton.d.ts +12 -0
  59. package/cjs/Button/PolymorphicButton.js +78 -0
  60. package/cjs/Button/PolymorphicIconButton.d.ts +29 -0
  61. package/cjs/Button/PolymorphicIconButton.js +86 -0
  62. package/cjs/Button/index.d.ts +4 -0
  63. package/cjs/Button/index.js +38 -0
  64. package/cjs/Button/styles.d.ts +5 -0
  65. package/cjs/Button/styles.js +37 -0
  66. package/cjs/Button/types.d.ts +33 -0
  67. package/cjs/Button/types.js +11 -0
  68. package/cjs/Card/Card.d.ts +36 -0
  69. package/cjs/Card/Card.js +47 -0
  70. package/cjs/Card/Card.tailwind.d.ts +5 -0
  71. package/cjs/Card/Card.tailwind.js +36 -0
  72. package/cjs/Card/components/CardHeader.d.ts +5 -0
  73. package/cjs/Card/components/CardHeader.js +26 -0
  74. package/cjs/Card/components/CardTitle.d.ts +7 -0
  75. package/cjs/Card/components/CardTitle.js +28 -0
  76. package/cjs/Card/index.d.ts +3 -0
  77. package/cjs/Card/index.js +38 -0
  78. package/cjs/Checkbox/Checkbox.d.ts +23 -0
  79. package/cjs/Checkbox/Checkbox.js +96 -0
  80. package/cjs/Checkbox/Checkbox.tailwind.d.ts +5 -0
  81. package/cjs/Checkbox/Checkbox.tailwind.js +70 -0
  82. package/cjs/Checkbox/index.d.ts +1 -0
  83. package/cjs/Checkbox/index.js +16 -0
  84. package/cjs/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
  85. package/cjs/ClickAwayContainer/ClickAwayContainer.js +82 -0
  86. package/cjs/ClickAwayContainer/index.d.ts +1 -0
  87. package/cjs/ClickAwayContainer/index.js +16 -0
  88. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +39 -0
  89. package/cjs/DatePicker/DatePicker/DatePicker.js +168 -0
  90. package/cjs/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
  91. package/cjs/DatePicker/DatePicker/datePickerReducer.js +50 -0
  92. package/cjs/DatePicker/DatePicker/index.d.ts +2 -0
  93. package/cjs/DatePicker/DatePicker/index.js +27 -0
  94. package/cjs/DatePicker/DatePicker.tailwind.d.ts +5 -0
  95. package/cjs/DatePicker/DatePicker.tailwind.js +184 -0
  96. package/cjs/DatePicker/DateRangePicker/DateRangePicker.d.ts +40 -0
  97. package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +261 -0
  98. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +13 -0
  99. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +37 -0
  100. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
  101. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +99 -0
  102. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
  103. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +15 -0
  104. package/cjs/DatePicker/DateRangePicker/index.d.ts +3 -0
  105. package/cjs/DatePicker/DateRangePicker/index.js +38 -0
  106. package/cjs/DatePicker/components/Calendar.d.ts +17 -0
  107. package/cjs/DatePicker/components/Calendar.js +54 -0
  108. package/cjs/DatePicker/components/Display.d.ts +9 -0
  109. package/cjs/DatePicker/components/Display.js +22 -0
  110. package/cjs/DatePicker/components/Footer.d.ts +5 -0
  111. package/cjs/DatePicker/components/Footer.js +18 -0
  112. package/cjs/DatePicker/components/FooterActions.d.ts +11 -0
  113. package/cjs/DatePicker/components/FooterActions.js +31 -0
  114. package/cjs/DatePicker/components/Modal.d.ts +15 -0
  115. package/cjs/DatePicker/components/Modal.js +66 -0
  116. package/cjs/DatePicker/components/NavBar.d.ts +9 -0
  117. package/cjs/DatePicker/components/NavBar.js +122 -0
  118. package/cjs/DatePicker/components/SidePanel.d.ts +5 -0
  119. package/cjs/DatePicker/components/SidePanel.js +21 -0
  120. package/cjs/DatePicker/components/index.d.ts +7 -0
  121. package/cjs/DatePicker/components/index.js +75 -0
  122. package/cjs/DatePicker/index.d.ts +3 -0
  123. package/cjs/DatePicker/index.js +38 -0
  124. package/cjs/DatePicker/types.d.ts +26 -0
  125. package/cjs/DatePicker/types.js +5 -0
  126. package/cjs/DatePicker/utils.d.ts +3 -0
  127. package/cjs/DatePicker/utils.js +19 -0
  128. package/cjs/Dropdown/Dropdown.d.ts +40 -0
  129. package/cjs/Dropdown/Dropdown.js +124 -0
  130. package/cjs/Dropdown/DropdownButton.d.ts +13 -0
  131. package/cjs/Dropdown/DropdownButton.js +49 -0
  132. package/cjs/Dropdown/DropdownContext.d.ts +6 -0
  133. package/cjs/Dropdown/DropdownContext.js +15 -0
  134. package/cjs/Dropdown/components/DropdownButtonItem.d.ts +14 -0
  135. package/cjs/Dropdown/components/DropdownButtonItem.js +46 -0
  136. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
  137. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +59 -0
  138. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +8 -0
  139. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +21 -0
  140. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +8 -0
  141. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +17 -0
  142. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +10 -0
  143. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +37 -0
  144. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +10 -0
  145. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +34 -0
  146. package/cjs/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
  147. package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +63 -0
  148. package/cjs/Dropdown/components/DropdownDivider.d.ts +3 -0
  149. package/cjs/Dropdown/components/DropdownDivider.js +17 -0
  150. package/cjs/Dropdown/components/DropdownFooterItem.d.ts +9 -0
  151. package/cjs/Dropdown/components/DropdownFooterItem.js +29 -0
  152. package/cjs/Dropdown/components/DropdownLinkItem.d.ts +10 -0
  153. package/cjs/Dropdown/components/DropdownLinkItem.js +54 -0
  154. package/cjs/Dropdown/components/DropdownRadioItem.d.ts +8 -0
  155. package/cjs/Dropdown/components/DropdownRadioItem.js +46 -0
  156. package/cjs/Dropdown/components/DropdownTitle.d.ts +6 -0
  157. package/cjs/Dropdown/components/DropdownTitle.js +25 -0
  158. package/cjs/Dropdown/components/DropdownToggleItem.d.ts +11 -0
  159. package/cjs/Dropdown/components/DropdownToggleItem.js +49 -0
  160. package/cjs/Dropdown/index.d.ts +12 -0
  161. package/cjs/Dropdown/index.js +137 -0
  162. package/cjs/Dropdown/useDropdownItemProps.d.ts +20 -0
  163. package/cjs/Dropdown/useDropdownItemProps.js +37 -0
  164. package/cjs/Dropzone/Dropzone.d.ts +25 -0
  165. package/cjs/Dropzone/Dropzone.js +163 -0
  166. package/cjs/Dropzone/index.d.ts +1 -0
  167. package/cjs/Dropzone/index.js +16 -0
  168. package/cjs/EmptyState/EmptyState.d.ts +8 -0
  169. package/cjs/EmptyState/EmptyState.js +98 -0
  170. package/cjs/EmptyState/EmptyState.tailwind.d.ts +5 -0
  171. package/cjs/EmptyState/EmptyState.tailwind.js +15 -0
  172. package/cjs/EmptyState/index.d.ts +2 -0
  173. package/cjs/EmptyState/index.js +27 -0
  174. package/cjs/EmptyState/types.d.ts +50 -0
  175. package/cjs/EmptyState/types.js +5 -0
  176. package/cjs/Field/Field.d.ts +24 -0
  177. package/cjs/Field/Field.js +74 -0
  178. package/cjs/Field/FieldContext.d.ts +16 -0
  179. package/cjs/Field/FieldContext.js +14 -0
  180. package/cjs/Field/index.d.ts +4 -0
  181. package/{components/Tooltip → cjs/Field}/index.js +14 -15
  182. package/cjs/Field/useField.d.ts +2 -0
  183. package/cjs/Field/useField.js +11 -0
  184. package/cjs/FlexGrid/FlexGrid.d.ts +44 -0
  185. package/cjs/FlexGrid/FlexGrid.js +73 -0
  186. package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
  187. package/cjs/FlexGrid/FlexGrid.tailwind.js +71 -0
  188. package/cjs/FlexGrid/index.d.ts +1 -0
  189. package/cjs/FlexGrid/index.js +16 -0
  190. package/cjs/HelpUnderline/HelpUnderline.d.ts +15 -0
  191. package/cjs/HelpUnderline/HelpUnderline.js +39 -0
  192. package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
  193. package/cjs/HelpUnderline/HelpUnderline.tailwind.js +21 -0
  194. package/cjs/HelpUnderline/index.d.ts +1 -0
  195. package/cjs/HelpUnderline/index.js +16 -0
  196. package/cjs/Icons/AlgoliaRecommendIcon.d.ts +3 -0
  197. package/cjs/Icons/AlgoliaRecommendIcon.js +46 -0
  198. package/cjs/Icons/AlgoliaSearchIcon.d.ts +3 -0
  199. package/cjs/Icons/AlgoliaSearchIcon.js +49 -0
  200. package/cjs/Icons/BulbIcon.d.ts +3 -0
  201. package/cjs/Icons/BulbIcon.js +37 -0
  202. package/cjs/Icons/ContextIcon.d.ts +3 -0
  203. package/cjs/Icons/ContextIcon.js +51 -0
  204. package/cjs/Icons/CrawlerIcon.d.ts +3 -0
  205. package/cjs/Icons/CrawlerIcon.js +40 -0
  206. package/cjs/Icons/DragHandleIcon.d.ts +3 -0
  207. package/cjs/Icons/DragHandleIcon.js +58 -0
  208. package/cjs/Icons/NeuralSearchIcon.d.ts +3 -0
  209. package/cjs/Icons/NeuralSearchIcon.js +34 -0
  210. package/cjs/Icons/NoFiltersIcon.d.ts +3 -0
  211. package/cjs/Icons/NoFiltersIcon.js +59 -0
  212. package/cjs/Icons/PinIcon.d.ts +3 -0
  213. package/cjs/Icons/PinIcon.js +60 -0
  214. package/cjs/Icons/QueryBreakdownIcon.d.ts +3 -0
  215. package/cjs/Icons/QueryBreakdownIcon.js +39 -0
  216. package/cjs/Icons/RocketIcon.d.ts +3 -0
  217. package/cjs/Icons/RocketIcon.js +36 -0
  218. package/cjs/Icons/SettingsCategoryPagesIcon.d.ts +3 -0
  219. package/cjs/Icons/SettingsCategoryPagesIcon.js +36 -0
  220. package/cjs/Icons/SettingsConsequencesIcon.d.ts +3 -0
  221. package/cjs/Icons/SettingsConsequencesIcon.js +70 -0
  222. package/cjs/Icons/TestingIcon.d.ts +3 -0
  223. package/cjs/Icons/TestingIcon.js +36 -0
  224. package/cjs/Icons/UnpinIcon.d.ts +3 -0
  225. package/cjs/Icons/UnpinIcon.js +60 -0
  226. package/cjs/Icons/WorkspaceSwitcherIcon.d.ts +3 -0
  227. package/cjs/Icons/WorkspaceSwitcherIcon.js +34 -0
  228. package/cjs/Icons/index.d.ts +20 -0
  229. package/cjs/Icons/index.js +1846 -0
  230. package/cjs/Icons/utils.d.ts +1 -0
  231. package/cjs/Icons/utils.js +10 -0
  232. package/cjs/Input/Input.d.ts +27 -0
  233. package/cjs/Input/Input.js +212 -0
  234. package/cjs/Input/Input.tailwind.d.ts +5 -0
  235. package/cjs/Input/Input.tailwind.js +123 -0
  236. package/cjs/Input/index.d.ts +1 -0
  237. package/cjs/Input/index.js +16 -0
  238. package/cjs/Insert/Insert.d.ts +19 -0
  239. package/cjs/Insert/Insert.js +50 -0
  240. package/cjs/Insert/index.d.ts +1 -0
  241. package/cjs/Insert/index.js +16 -0
  242. package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
  243. package/cjs/InstantSearch/InstantSearch.tailwind.js +376 -0
  244. package/cjs/KeyboardKey/KeyboardKey.d.ts +12 -0
  245. package/cjs/KeyboardKey/KeyboardKey.js +41 -0
  246. package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
  247. package/cjs/KeyboardKey/KeyboardKey.tailwind.js +29 -0
  248. package/cjs/KeyboardKey/index.d.ts +1 -0
  249. package/cjs/KeyboardKey/index.js +16 -0
  250. package/cjs/Link/BaseLink.d.ts +7 -0
  251. package/cjs/Link/BaseLink.js +28 -0
  252. package/cjs/Link/ButtonLink.d.ts +13 -0
  253. package/cjs/Link/ButtonLink.js +41 -0
  254. package/cjs/Link/IconButtonLink.d.ts +13 -0
  255. package/cjs/Link/IconButtonLink.js +35 -0
  256. package/cjs/Link/Link.d.ts +17 -0
  257. package/cjs/Link/Link.js +56 -0
  258. package/cjs/Link/index.d.ts +4 -0
  259. package/cjs/Link/index.js +49 -0
  260. package/cjs/Medallion/Medallion.d.ts +16 -0
  261. package/cjs/Medallion/Medallion.js +44 -0
  262. package/cjs/Medallion/Medallion.tailwind.d.ts +5 -0
  263. package/cjs/Medallion/Medallion.tailwind.js +31 -0
  264. package/cjs/Medallion/index.d.ts +2 -0
  265. package/cjs/Medallion/index.js +27 -0
  266. package/cjs/Medallion/types.d.ts +2 -0
  267. package/cjs/Medallion/types.js +5 -0
  268. package/cjs/MenuButton/MenuButton.d.ts +26 -0
  269. package/cjs/MenuButton/MenuButton.js +47 -0
  270. package/cjs/MenuButton/components/Content.d.ts +4 -0
  271. package/cjs/MenuButton/components/Content.js +39 -0
  272. package/cjs/MenuButton/components/CustomTrigger.d.ts +4 -0
  273. package/cjs/MenuButton/components/CustomTrigger.js +23 -0
  274. package/cjs/MenuButton/components/DefaultTrigger.d.ts +4 -0
  275. package/cjs/MenuButton/components/DefaultTrigger.js +34 -0
  276. package/cjs/MenuButton/components/Divider.d.ts +2 -0
  277. package/cjs/MenuButton/components/Divider.js +20 -0
  278. package/cjs/MenuButton/components/Label.d.ts +3 -0
  279. package/cjs/MenuButton/components/Label.js +31 -0
  280. package/cjs/MenuButton/components/collapsible/CollapsibleItem.d.ts +8 -0
  281. package/cjs/MenuButton/components/collapsible/CollapsibleItem.js +63 -0
  282. package/cjs/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +6 -0
  283. package/cjs/MenuButton/components/collapsible/CollapsibleItemsGroup.js +20 -0
  284. package/cjs/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +7 -0
  285. package/cjs/MenuButton/components/collapsible/CollapsibleItemsGroupContext.js +15 -0
  286. package/cjs/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +8 -0
  287. package/cjs/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.js +36 -0
  288. package/cjs/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +8 -0
  289. package/cjs/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.js +33 -0
  290. package/cjs/MenuButton/components/collapsible/index.d.ts +5 -0
  291. package/cjs/MenuButton/components/collapsible/index.js +60 -0
  292. package/cjs/MenuButton/components/items/Item.d.ts +14 -0
  293. package/cjs/MenuButton/components/items/Item.js +42 -0
  294. package/cjs/MenuButton/components/items/LinkItem.d.ts +16 -0
  295. package/cjs/MenuButton/components/items/LinkItem.js +72 -0
  296. package/cjs/MenuButton/components/items/RadioItem.d.ts +5 -0
  297. package/cjs/MenuButton/components/items/RadioItem.js +49 -0
  298. package/cjs/MenuButton/components/items/ToggleItem.d.ts +8 -0
  299. package/cjs/MenuButton/components/items/ToggleItem.js +71 -0
  300. package/cjs/MenuButton/components/items/index.d.ts +4 -0
  301. package/cjs/MenuButton/components/items/index.js +49 -0
  302. package/cjs/MenuButton/index.d.ts +1 -0
  303. package/cjs/MenuButton/index.js +16 -0
  304. package/cjs/MenuButton/useMenuItemProps.d.ts +10 -0
  305. package/cjs/MenuButton/useMenuItemProps.js +18 -0
  306. package/cjs/Modal/Modal.d.ts +61 -0
  307. package/cjs/Modal/Modal.js +154 -0
  308. package/cjs/Modal/Modal.tailwind.d.ts +5 -0
  309. package/cjs/Modal/Modal.tailwind.js +81 -0
  310. package/cjs/Modal/components/ModalFooter.d.ts +5 -0
  311. package/cjs/Modal/components/ModalFooter.js +31 -0
  312. package/cjs/Modal/components/ModalSection.d.ts +9 -0
  313. package/cjs/Modal/components/ModalSection.js +22 -0
  314. package/cjs/Modal/index.d.ts +3 -0
  315. package/cjs/Modal/index.js +38 -0
  316. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +36 -0
  317. package/cjs/Pagination/CompactPagination/CompactPagination.js +87 -0
  318. package/cjs/Pagination/CompactPagination/index.d.ts +1 -0
  319. package/cjs/Pagination/CompactPagination/index.js +16 -0
  320. package/cjs/Pagination/DotPagination/DotPagination.d.ts +19 -0
  321. package/cjs/Pagination/DotPagination/DotPagination.js +50 -0
  322. package/cjs/Pagination/DotPagination/index.d.ts +1 -0
  323. package/cjs/Pagination/DotPagination/index.js +16 -0
  324. package/cjs/Pagination/Pagination/Pagination.d.ts +19 -0
  325. package/cjs/Pagination/Pagination/Pagination.js +116 -0
  326. package/cjs/Pagination/Pagination/index.d.ts +1 -0
  327. package/cjs/Pagination/Pagination/index.js +16 -0
  328. package/cjs/Pagination/index.d.ts +3 -0
  329. package/cjs/Pagination/index.js +38 -0
  330. package/cjs/Popover/Popover.d.ts +9 -0
  331. package/cjs/Popover/Popover.js +142 -0
  332. package/cjs/Popover/index.d.ts +2 -0
  333. package/{components/Input → cjs/Popover}/index.js +10 -10
  334. package/cjs/Popover/types.d.ts +74 -0
  335. package/cjs/Popover/types.js +5 -0
  336. package/cjs/ProgressBar/ProgressBar.d.ts +15 -0
  337. package/cjs/ProgressBar/ProgressBar.js +56 -0
  338. package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
  339. package/cjs/ProgressBar/ProgressBar.tailwind.js +25 -0
  340. package/cjs/ProgressBar/index.d.ts +1 -0
  341. package/cjs/ProgressBar/index.js +16 -0
  342. package/cjs/ProgressSpinner/ProgressSpinner.d.ts +13 -0
  343. package/cjs/ProgressSpinner/ProgressSpinner.js +59 -0
  344. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
  345. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +44 -0
  346. package/cjs/ProgressSpinner/index.d.ts +1 -0
  347. package/cjs/ProgressSpinner/index.js +16 -0
  348. package/cjs/RadioGroup/RadioButton.d.ts +3 -0
  349. package/cjs/RadioGroup/RadioButton.js +28 -0
  350. package/cjs/RadioGroup/RadioButton.tailwind.d.ts +5 -0
  351. package/cjs/RadioGroup/RadioButton.tailwind.js +61 -0
  352. package/cjs/RadioGroup/RadioGroup.d.ts +31 -0
  353. package/cjs/RadioGroup/RadioGroup.js +92 -0
  354. package/cjs/RadioGroup/RadiogroupContext.d.ts +11 -0
  355. package/cjs/RadioGroup/RadiogroupContext.js +15 -0
  356. package/cjs/RadioGroup/index.d.ts +3 -0
  357. package/cjs/RadioGroup/index.js +38 -0
  358. package/cjs/RangeSlider/RangeSlider.d.ts +36 -0
  359. package/cjs/RangeSlider/RangeSlider.js +102 -0
  360. package/cjs/RangeSlider/index.d.ts +1 -0
  361. package/cjs/RangeSlider/index.js +16 -0
  362. package/cjs/Satellite/Satellite.d.ts +10 -0
  363. package/cjs/Satellite/Satellite.js +59 -0
  364. package/cjs/Satellite/SatelliteContext.d.ts +10 -0
  365. package/cjs/Satellite/SatelliteContext.js +22 -0
  366. package/cjs/Satellite/SatelliteRouter.d.ts +21 -0
  367. package/cjs/Satellite/SatelliteRouter.js +47 -0
  368. package/cjs/Satellite/index.d.ts +5 -0
  369. package/cjs/Satellite/index.js +60 -0
  370. package/cjs/Satellite/locale.d.ts +37 -0
  371. package/cjs/Satellite/locale.js +13 -0
  372. package/cjs/Satellite/useCreatePortal.d.ts +4 -0
  373. package/cjs/Satellite/useCreatePortal.js +23 -0
  374. package/cjs/ScrollIndicator/ScrollIndicator.d.ts +18 -0
  375. package/cjs/ScrollIndicator/ScrollIndicator.js +91 -0
  376. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
  377. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
  378. package/cjs/ScrollIndicator/index.d.ts +1 -0
  379. package/cjs/ScrollIndicator/index.js +16 -0
  380. package/cjs/Select/Select.d.ts +11 -0
  381. package/cjs/Select/Select.js +40 -0
  382. package/cjs/Select/Select.tailwind.d.ts +5 -0
  383. package/cjs/Select/Select.tailwind.js +76 -0
  384. package/cjs/Select/index.d.ts +1 -0
  385. package/cjs/Select/index.js +16 -0
  386. package/cjs/Separator/Separator.d.ts +13 -0
  387. package/cjs/Separator/Separator.js +43 -0
  388. package/cjs/Separator/Separator.tailwind.d.ts +5 -0
  389. package/cjs/Separator/Separator.tailwind.js +54 -0
  390. package/cjs/Separator/index.d.ts +1 -0
  391. package/cjs/Separator/index.js +16 -0
  392. package/cjs/Sidebar/Sidebar.d.ts +41 -0
  393. package/cjs/Sidebar/Sidebar.js +67 -0
  394. package/cjs/Sidebar/SidebarButtonLink.d.ts +20 -0
  395. package/cjs/Sidebar/SidebarButtonLink.js +84 -0
  396. package/cjs/Sidebar/SidebarContext.d.ts +9 -0
  397. package/cjs/Sidebar/SidebarContext.js +15 -0
  398. package/cjs/Sidebar/SidebarHeader.d.ts +7 -0
  399. package/cjs/Sidebar/SidebarHeader.js +20 -0
  400. package/cjs/Sidebar/SidebarHeading.d.ts +8 -0
  401. package/cjs/Sidebar/SidebarHeading.js +25 -0
  402. package/cjs/Sidebar/SidebarLink.d.ts +9 -0
  403. package/cjs/Sidebar/SidebarLink.js +50 -0
  404. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +9 -0
  405. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +37 -0
  406. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
  407. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +36 -0
  408. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +24 -0
  409. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +97 -0
  410. package/cjs/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
  411. package/cjs/Sidebar/SidebarLinksGroup/index.js +16 -0
  412. package/cjs/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
  413. package/cjs/Sidebar/SidebarLinksGroup/types.js +5 -0
  414. package/cjs/Sidebar/SidebarNav.d.ts +11 -0
  415. package/cjs/Sidebar/SidebarNav.js +36 -0
  416. package/cjs/Sidebar/index.d.ts +9 -0
  417. package/cjs/Sidebar/index.js +111 -0
  418. package/cjs/Sidebar/types.d.ts +6 -0
  419. package/cjs/Sidebar/types.js +5 -0
  420. package/cjs/Stepper/Step.d.ts +6 -0
  421. package/cjs/Stepper/Step.js +115 -0
  422. package/cjs/Stepper/Stepper.d.ts +41 -0
  423. package/cjs/Stepper/Stepper.js +145 -0
  424. package/cjs/Stepper/StepperContext.d.ts +12 -0
  425. package/cjs/Stepper/StepperContext.js +15 -0
  426. package/cjs/Stepper/index.d.ts +3 -0
  427. package/cjs/Stepper/index.js +38 -0
  428. package/cjs/Stepper/types.d.ts +26 -0
  429. package/cjs/Stepper/types.js +5 -0
  430. package/cjs/Stepper/utils.d.ts +5 -0
  431. package/cjs/Stepper/utils.js +67 -0
  432. package/cjs/Switch/Switch.d.ts +18 -0
  433. package/cjs/Switch/Switch.js +90 -0
  434. package/cjs/Switch/Switch.tailwind.d.ts +5 -0
  435. package/cjs/Switch/Switch.tailwind.js +25 -0
  436. package/cjs/Switch/SwitchOption.d.ts +7 -0
  437. package/cjs/Switch/SwitchOption.js +44 -0
  438. package/cjs/Switch/index.d.ts +2 -0
  439. package/cjs/Switch/index.js +27 -0
  440. package/cjs/Switch/types.d.ts +7 -0
  441. package/cjs/Switch/types.js +5 -0
  442. package/cjs/Switch/utils.d.ts +6 -0
  443. package/cjs/Switch/utils.js +18 -0
  444. package/cjs/Tables/DataTable/DataTable.d.ts +55 -0
  445. package/cjs/Tables/DataTable/DataTable.js +249 -0
  446. package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  447. package/cjs/Tables/DataTable/DataTable.tailwind.js +23 -0
  448. package/cjs/Tables/DataTable/components/Body.d.ts +14 -0
  449. package/cjs/Tables/DataTable/components/Body.js +118 -0
  450. package/cjs/Tables/DataTable/components/Footer.d.ts +7 -0
  451. package/cjs/Tables/DataTable/components/Footer.js +59 -0
  452. package/cjs/Tables/DataTable/components/Header.d.ts +9 -0
  453. package/cjs/Tables/DataTable/components/Header.js +38 -0
  454. package/cjs/Tables/DataTable/components/HeaderCell.d.ts +11 -0
  455. package/cjs/Tables/DataTable/components/HeaderCell.js +57 -0
  456. package/cjs/Tables/DataTable/components/Loader.d.ts +8 -0
  457. package/cjs/Tables/DataTable/components/Loader.js +46 -0
  458. package/cjs/Tables/DataTable/components/index.d.ts +5 -0
  459. package/cjs/Tables/DataTable/components/index.js +60 -0
  460. package/cjs/Tables/DataTable/index.d.ts +2 -0
  461. package/cjs/Tables/DataTable/index.js +27 -0
  462. package/cjs/Tables/DataTable/types.d.ts +63 -0
  463. package/cjs/Tables/DataTable/types.js +5 -0
  464. package/cjs/Tables/DataTable/utils.d.ts +4 -0
  465. package/cjs/Tables/DataTable/utils.js +20 -0
  466. package/cjs/Tables/Table/Table.d.ts +13 -0
  467. package/cjs/Tables/Table/Table.js +45 -0
  468. package/cjs/Tables/Table/Table.tailwind.d.ts +5 -0
  469. package/cjs/Tables/Table/Table.tailwind.js +39 -0
  470. package/cjs/Tables/Table/components/TableFooter.d.ts +7 -0
  471. package/cjs/Tables/Table/components/TableFooter.js +25 -0
  472. package/cjs/Tables/Table/index.d.ts +2 -0
  473. package/cjs/Tables/Table/index.js +27 -0
  474. package/cjs/Tables/index.d.ts +2 -0
  475. package/cjs/Tables/index.js +27 -0
  476. package/cjs/Tabs/ContentTabs.d.ts +3 -0
  477. package/cjs/Tabs/ContentTabs.js +59 -0
  478. package/cjs/Tabs/LinkTabs.d.ts +9 -0
  479. package/cjs/Tabs/LinkTabs.js +51 -0
  480. package/cjs/Tabs/Tabs.tailwind.d.ts +5 -0
  481. package/cjs/Tabs/Tabs.tailwind.js +72 -0
  482. package/cjs/Tabs/components/LinkTab.d.ts +8 -0
  483. package/cjs/Tabs/components/LinkTab.js +83 -0
  484. package/cjs/Tabs/index.d.ts +3 -0
  485. package/cjs/Tabs/index.js +38 -0
  486. package/cjs/Tabs/types.d.ts +34 -0
  487. package/cjs/Tabs/types.js +5 -0
  488. package/cjs/Tabs/utils.d.ts +2 -0
  489. package/cjs/Tabs/utils.js +18 -0
  490. package/cjs/Tag/Tag.d.ts +30 -0
  491. package/cjs/Tag/Tag.js +121 -0
  492. package/cjs/Tag/Tag.tailwind.d.ts +5 -0
  493. package/cjs/Tag/Tag.tailwind.js +54 -0
  494. package/cjs/Tag/index.d.ts +1 -0
  495. package/cjs/Tag/index.js +16 -0
  496. package/cjs/TextArea/TextArea.d.ts +9 -0
  497. package/cjs/TextArea/TextArea.js +32 -0
  498. package/cjs/TextArea/TextArea.tailwind.d.ts +5 -0
  499. package/cjs/TextArea/TextArea.tailwind.js +42 -0
  500. package/cjs/TextArea/index.d.ts +1 -0
  501. package/cjs/TextArea/index.js +16 -0
  502. package/cjs/TextWrap/TextWrap.d.ts +12 -0
  503. package/cjs/TextWrap/TextWrap.js +58 -0
  504. package/cjs/TextWrap/index.d.ts +1 -0
  505. package/cjs/TextWrap/index.js +16 -0
  506. package/cjs/Toast/Toast.d.ts +5 -0
  507. package/cjs/Toast/Toast.js +110 -0
  508. package/cjs/Toast/Toast.tailwind.d.ts +5 -0
  509. package/cjs/Toast/Toast.tailwind.js +34 -0
  510. package/cjs/Toast/Toasts.d.ts +20 -0
  511. package/cjs/Toast/Toasts.js +101 -0
  512. package/cjs/Toast/index.d.ts +3 -0
  513. package/cjs/Toast/index.js +38 -0
  514. package/cjs/Toast/types.d.ts +34 -0
  515. package/cjs/Toast/types.js +5 -0
  516. package/cjs/Toggle/Toggle.d.ts +12 -0
  517. package/cjs/Toggle/Toggle.js +73 -0
  518. package/cjs/Toggle/Toggle.tailwind.d.ts +5 -0
  519. package/cjs/Toggle/Toggle.tailwind.js +84 -0
  520. package/cjs/Toggle/index.d.ts +1 -0
  521. package/cjs/Toggle/index.js +16 -0
  522. package/cjs/Tooltip/OverflowTooltipWrapper.d.ts +10 -0
  523. package/cjs/Tooltip/OverflowTooltipWrapper.js +51 -0
  524. package/cjs/Tooltip/Tooltip.d.ts +11 -0
  525. package/cjs/Tooltip/Tooltip.js +39 -0
  526. package/cjs/Tooltip/Tooltip.tailwind.d.ts +5 -0
  527. package/cjs/Tooltip/Tooltip.tailwind.js +47 -0
  528. package/cjs/Tooltip/TooltipWrapper.d.ts +19 -0
  529. package/cjs/Tooltip/TooltipWrapper.js +87 -0
  530. package/cjs/Tooltip/index.d.ts +3 -0
  531. package/cjs/Tooltip/index.js +38 -0
  532. package/cjs/Tooltip/types.d.ts +65 -0
  533. package/cjs/Tooltip/types.js +5 -0
  534. package/cjs/Tooltip/utils.d.ts +1 -0
  535. package/cjs/Tooltip/utils.js +9 -0
  536. package/cjs/Typography/Typography.tailwind.d.ts +5 -0
  537. package/cjs/Typography/Typography.tailwind.js +170 -0
  538. package/cjs/UserContent/UserContent.d.ts +13 -0
  539. package/cjs/UserContent/UserContent.js +30 -0
  540. package/cjs/UserContent/UserContent.tailwind.d.ts +5 -0
  541. package/cjs/UserContent/UserContent.tailwind.js +141 -0
  542. package/cjs/index.d.ts +53 -0
  543. package/cjs/index.js +628 -0
  544. package/cjs/package.json +3 -0
  545. package/cjs/styles/base.tailwind.d.ts +5 -0
  546. package/cjs/styles/base.tailwind.js +46 -0
  547. package/cjs/styles/brandColors.d.ts +42 -0
  548. package/cjs/styles/brandColors.js +48 -0
  549. package/cjs/styles/colors.d.ts +110 -0
  550. package/cjs/styles/colors.js +116 -0
  551. package/cjs/styles/disabledColor.d.ts +6 -0
  552. package/cjs/styles/disabledColor.js +14 -0
  553. package/cjs/styles/helpers/icons.d.ts +15 -0
  554. package/cjs/styles/helpers/icons.js +39 -0
  555. package/cjs/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
  556. package/cjs/styles/helpers/makePurgeCssExtractor.js +50 -0
  557. package/cjs/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
  558. package/cjs/styles/helpers/makeTailwindPrefixer.js +36 -0
  559. package/cjs/styles/helpers/prefixTailwindClassName.d.ts +7 -0
  560. package/cjs/styles/helpers/prefixTailwindClassName.js +28 -0
  561. package/cjs/styles/helpers/satellitePrefixer.d.ts +3 -0
  562. package/cjs/styles/helpers/satellitePrefixer.js +8 -0
  563. package/cjs/styles/rgba.d.ts +8 -0
  564. package/cjs/styles/rgba.js +15 -0
  565. package/cjs/styles/tailwind.config.d.ts +2 -0
  566. package/cjs/styles/tailwind.config.js +146 -0
  567. package/cjs/styles/zIndexes.d.ts +8 -0
  568. package/cjs/styles/zIndexes.js +15 -0
  569. package/cjs/types.d.ts +24 -0
  570. package/cjs/types.js +5 -0
  571. package/cjs/utilities/overlay.tailwind.d.ts +5 -0
  572. package/cjs/utilities/overlay.tailwind.js +107 -0
  573. package/cjs/utilities/utilities.tailwind.d.ts +5 -0
  574. package/cjs/utilities/utilities.tailwind.js +27 -0
  575. package/cjs/utils/NumberUnion.d.ts +5 -0
  576. package/cjs/utils/NumberUnion.js +5 -0
  577. package/cjs/utils/clamp.d.ts +1 -0
  578. package/cjs/utils/clamp.js +9 -0
  579. package/cjs/utils/event-polyfill.d.ts +0 -0
  580. package/cjs/utils/event-polyfill.js +25 -0
  581. package/cjs/utils/formatters.d.ts +25 -0
  582. package/cjs/utils/formatters.js +44 -0
  583. package/cjs/utils/genericChangeHandler.d.ts +5 -0
  584. package/{utils → cjs/utils}/genericChangeHandler.js +1 -10
  585. package/cjs/utils/getTextFromReactNode.d.ts +4 -0
  586. package/cjs/utils/getTextFromReactNode.js +20 -0
  587. package/cjs/utils/hashCode.d.ts +1 -0
  588. package/cjs/utils/hashCode.js +20 -0
  589. package/{utils → cjs/utils}/index.d.ts +2 -3
  590. package/{utils → cjs/utils}/index.js +11 -18
  591. package/cjs/utils/isCssPropertySupported.d.ts +1 -0
  592. package/cjs/utils/isCssPropertySupported.js +14 -0
  593. package/cjs/utils/isNil.d.ts +18 -0
  594. package/cjs/utils/isNil.js +26 -0
  595. package/cjs/utils/isReactText.d.ts +2 -0
  596. package/cjs/utils/isReactText.js +9 -0
  597. package/cjs/utils/isRenderedChild.d.ts +7 -0
  598. package/cjs/utils/isRenderedChild.js +14 -0
  599. package/cjs/utils/matchLocation.d.ts +2 -0
  600. package/cjs/utils/matchLocation.js +10 -0
  601. package/cjs/utils/onlyText.d.ts +2 -0
  602. package/cjs/utils/onlyText.js +38 -0
  603. package/cjs/utils/parseUrl.d.ts +10 -0
  604. package/cjs/utils/parseUrl.js +20 -0
  605. package/{utils → cjs/utils}/pluralize.d.ts +1 -1
  606. package/{utils → cjs/utils}/pluralize.js +7 -10
  607. package/cjs/utils/prefersReducedMotion.d.ts +6 -0
  608. package/cjs/utils/prefersReducedMotion.js +13 -0
  609. package/{utils → cjs/utils}/range.d.ts +0 -1
  610. package/{utils → cjs/utils}/range.js +1 -6
  611. package/cjs/utils/sortObjectAlphabetically.d.ts +1 -0
  612. package/cjs/utils/sortObjectAlphabetically.js +18 -0
  613. package/cjs/utils/toSentenceCase.d.ts +2 -0
  614. package/cjs/utils/toSentenceCase.js +14 -0
  615. package/{utils → cjs/utils}/uniqBy.d.ts +0 -1
  616. package/{utils → cjs/utils}/uniqBy.js +1 -8
  617. package/{utils → cjs/utils}/uniqueId.d.ts +0 -1
  618. package/{utils → cjs/utils}/uniqueId.js +1 -6
  619. package/cjs/utils/useForwardedRef.d.ts +2 -0
  620. package/cjs/utils/useForwardedRef.js +23 -0
  621. package/cjs/utils/useLinkProps.d.ts +6 -0
  622. package/cjs/utils/useLinkProps.js +51 -0
  623. package/cjs/utils/useTriggerInputChange.d.ts +8 -0
  624. package/cjs/utils/useTriggerInputChange.js +26 -0
  625. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +25 -0
  626. package/esm/AnnouncementBadge/AnnouncementBadge.js +49 -0
  627. package/esm/AnnouncementBadge/index.d.ts +1 -0
  628. package/esm/AnnouncementBadge/index.js +1 -0
  629. package/esm/AutoComplete/AutoComplete.d.ts +8 -0
  630. package/esm/AutoComplete/AutoComplete.js +428 -0
  631. package/esm/AutoComplete/AutoComplete.tailwind.d.ts +5 -0
  632. package/esm/AutoComplete/AutoComplete.tailwind.js +97 -0
  633. package/esm/AutoComplete/components/AutoCompleteContext.d.ts +10 -0
  634. package/esm/AutoComplete/components/AutoCompleteContext.js +23 -0
  635. package/esm/AutoComplete/components/AutoCompleteEmptyState.d.ts +12 -0
  636. package/esm/AutoComplete/components/AutoCompleteEmptyState.js +28 -0
  637. package/esm/AutoComplete/components/DefaultOptionItem.d.ts +6 -0
  638. package/esm/AutoComplete/components/DefaultOptionItem.js +35 -0
  639. package/esm/AutoComplete/index.d.ts +6 -0
  640. package/esm/AutoComplete/index.js +6 -0
  641. package/esm/AutoComplete/types.d.ts +95 -0
  642. package/esm/AutoComplete/types.js +1 -0
  643. package/esm/AutoComplete/utils.d.ts +8 -0
  644. package/esm/AutoComplete/utils.js +71 -0
  645. package/esm/Avatars/ApplicationAvatar.d.ts +16 -0
  646. package/esm/Avatars/ApplicationAvatar.js +30 -0
  647. package/esm/Avatars/UserAvatar.d.ts +23 -0
  648. package/esm/Avatars/UserAvatar.js +52 -0
  649. package/esm/Avatars/index.d.ts +2 -0
  650. package/esm/Avatars/index.js +2 -0
  651. package/esm/Avatars/types.d.ts +17 -0
  652. package/esm/Avatars/types.js +1 -0
  653. package/esm/Avatars/utils.d.ts +6 -0
  654. package/esm/Avatars/utils.js +48 -0
  655. package/esm/Badge/Badge.d.ts +24 -0
  656. package/esm/Badge/Badge.js +62 -0
  657. package/esm/Badge/index.d.ts +1 -0
  658. package/esm/Badge/index.js +1 -0
  659. package/esm/Banners/Alert/Alert.d.ts +33 -0
  660. package/esm/Banners/Alert/Alert.js +87 -0
  661. package/esm/Banners/Alert/index.d.ts +1 -0
  662. package/esm/Banners/Alert/index.js +1 -0
  663. package/esm/Banners/Promote/Promote.d.ts +28 -0
  664. package/esm/Banners/Promote/Promote.js +73 -0
  665. package/esm/Banners/Promote/index.d.ts +1 -0
  666. package/esm/Banners/Promote/index.js +1 -0
  667. package/esm/Banners/SystemNotification/SystemNotification.d.ts +12 -0
  668. package/esm/Banners/SystemNotification/SystemNotification.js +27 -0
  669. package/esm/Banners/SystemNotification/index.d.ts +1 -0
  670. package/esm/Banners/SystemNotification/index.js +1 -0
  671. package/esm/Banners/index.d.ts +3 -0
  672. package/esm/Banners/index.js +3 -0
  673. package/esm/Button/Button.d.ts +9 -0
  674. package/esm/Button/Button.js +18 -0
  675. package/esm/Button/Button.tailwind.d.ts +5 -0
  676. package/esm/Button/Button.tailwind.js +155 -0
  677. package/esm/Button/ButtonGroup.d.ts +17 -0
  678. package/esm/Button/ButtonGroup.js +20 -0
  679. package/esm/Button/IconButton.d.ts +9 -0
  680. package/esm/Button/IconButton.js +18 -0
  681. package/esm/Button/PolymorphicButton.d.ts +12 -0
  682. package/esm/Button/PolymorphicButton.js +69 -0
  683. package/esm/Button/PolymorphicIconButton.d.ts +29 -0
  684. package/esm/Button/PolymorphicIconButton.js +81 -0
  685. package/esm/Button/index.d.ts +4 -0
  686. package/esm/Button/index.js +4 -0
  687. package/esm/Button/styles.d.ts +5 -0
  688. package/esm/Button/styles.js +30 -0
  689. package/esm/Button/types.d.ts +33 -0
  690. package/esm/Button/types.js +5 -0
  691. package/esm/Card/Card.d.ts +36 -0
  692. package/esm/Card/Card.js +40 -0
  693. package/esm/Card/Card.tailwind.d.ts +5 -0
  694. package/esm/Card/Card.tailwind.js +35 -0
  695. package/esm/Card/components/CardHeader.d.ts +5 -0
  696. package/esm/Card/components/CardHeader.js +19 -0
  697. package/esm/Card/components/CardTitle.d.ts +7 -0
  698. package/esm/Card/components/CardTitle.js +21 -0
  699. package/esm/Card/index.d.ts +3 -0
  700. package/esm/Card/index.js +3 -0
  701. package/esm/Checkbox/Checkbox.d.ts +23 -0
  702. package/esm/Checkbox/Checkbox.js +90 -0
  703. package/esm/Checkbox/Checkbox.tailwind.d.ts +5 -0
  704. package/esm/Checkbox/Checkbox.tailwind.js +70 -0
  705. package/esm/Checkbox/index.d.ts +1 -0
  706. package/esm/Checkbox/index.js +1 -0
  707. package/esm/ClickAwayContainer/ClickAwayContainer.d.ts +28 -0
  708. package/esm/ClickAwayContainer/ClickAwayContainer.js +75 -0
  709. package/esm/ClickAwayContainer/index.d.ts +1 -0
  710. package/esm/ClickAwayContainer/index.js +1 -0
  711. package/esm/DatePicker/DatePicker/DatePicker.d.ts +39 -0
  712. package/esm/DatePicker/DatePicker/DatePicker.js +163 -0
  713. package/esm/DatePicker/DatePicker/datePickerReducer.d.ts +29 -0
  714. package/esm/DatePicker/DatePicker/datePickerReducer.js +43 -0
  715. package/esm/DatePicker/DatePicker/index.d.ts +2 -0
  716. package/esm/DatePicker/DatePicker/index.js +2 -0
  717. package/esm/DatePicker/DatePicker.tailwind.d.ts +5 -0
  718. package/esm/DatePicker/DatePicker.tailwind.js +182 -0
  719. package/esm/DatePicker/DateRangePicker/DateRangePicker.d.ts +40 -0
  720. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +256 -0
  721. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.d.ts +13 -0
  722. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +32 -0
  723. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.d.ts +54 -0
  724. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +92 -0
  725. package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.d.ts +16 -0
  726. package/esm/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +9 -0
  727. package/esm/DatePicker/DateRangePicker/index.d.ts +3 -0
  728. package/esm/DatePicker/DateRangePicker/index.js +3 -0
  729. package/esm/DatePicker/components/Calendar.d.ts +17 -0
  730. package/esm/DatePicker/components/Calendar.js +47 -0
  731. package/esm/DatePicker/components/Display.d.ts +9 -0
  732. package/esm/DatePicker/components/Display.js +16 -0
  733. package/esm/DatePicker/components/Footer.d.ts +5 -0
  734. package/esm/DatePicker/components/Footer.js +11 -0
  735. package/esm/DatePicker/components/FooterActions.d.ts +11 -0
  736. package/esm/DatePicker/components/FooterActions.js +25 -0
  737. package/esm/DatePicker/components/Modal.d.ts +15 -0
  738. package/esm/DatePicker/components/Modal.js +59 -0
  739. package/esm/DatePicker/components/NavBar.d.ts +9 -0
  740. package/esm/DatePicker/components/NavBar.js +116 -0
  741. package/esm/DatePicker/components/SidePanel.d.ts +5 -0
  742. package/esm/DatePicker/components/SidePanel.js +14 -0
  743. package/esm/DatePicker/components/index.d.ts +7 -0
  744. package/esm/DatePicker/components/index.js +6 -0
  745. package/esm/DatePicker/index.d.ts +3 -0
  746. package/esm/DatePicker/index.js +3 -0
  747. package/esm/DatePicker/types.d.ts +26 -0
  748. package/esm/DatePicker/types.js +1 -0
  749. package/esm/DatePicker/utils.d.ts +3 -0
  750. package/esm/DatePicker/utils.js +12 -0
  751. package/esm/Dropdown/Dropdown.d.ts +40 -0
  752. package/esm/Dropdown/Dropdown.js +118 -0
  753. package/esm/Dropdown/DropdownButton.d.ts +13 -0
  754. package/esm/Dropdown/DropdownButton.js +42 -0
  755. package/esm/Dropdown/DropdownContext.d.ts +6 -0
  756. package/esm/Dropdown/DropdownContext.js +9 -0
  757. package/esm/Dropdown/components/DropdownButtonItem.d.ts +14 -0
  758. package/esm/Dropdown/components/DropdownButtonItem.js +40 -0
  759. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.d.ts +10 -0
  760. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +53 -0
  761. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.d.ts +8 -0
  762. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +15 -0
  763. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.d.ts +8 -0
  764. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +11 -0
  765. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.d.ts +10 -0
  766. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +30 -0
  767. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.d.ts +10 -0
  768. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +27 -0
  769. package/esm/Dropdown/components/DropdownCollapsibleItem/index.d.ts +5 -0
  770. package/esm/Dropdown/components/DropdownCollapsibleItem/index.js +5 -0
  771. package/esm/Dropdown/components/DropdownDivider.d.ts +3 -0
  772. package/esm/Dropdown/components/DropdownDivider.js +11 -0
  773. package/esm/Dropdown/components/DropdownFooterItem.d.ts +9 -0
  774. package/esm/Dropdown/components/DropdownFooterItem.js +22 -0
  775. package/esm/Dropdown/components/DropdownLinkItem.d.ts +10 -0
  776. package/esm/Dropdown/components/DropdownLinkItem.js +48 -0
  777. package/esm/Dropdown/components/DropdownRadioItem.d.ts +8 -0
  778. package/esm/Dropdown/components/DropdownRadioItem.js +40 -0
  779. package/esm/Dropdown/components/DropdownTitle.d.ts +6 -0
  780. package/esm/Dropdown/components/DropdownTitle.js +18 -0
  781. package/esm/Dropdown/components/DropdownToggleItem.d.ts +11 -0
  782. package/esm/Dropdown/components/DropdownToggleItem.js +43 -0
  783. package/esm/Dropdown/index.d.ts +12 -0
  784. package/esm/Dropdown/index.js +12 -0
  785. package/esm/Dropdown/useDropdownItemProps.d.ts +20 -0
  786. package/esm/Dropdown/useDropdownItemProps.js +30 -0
  787. package/esm/Dropzone/Dropzone.d.ts +25 -0
  788. package/esm/Dropzone/Dropzone.js +157 -0
  789. package/esm/Dropzone/index.d.ts +1 -0
  790. package/esm/Dropzone/index.js +1 -0
  791. package/esm/EmptyState/EmptyState.d.ts +8 -0
  792. package/esm/EmptyState/EmptyState.js +92 -0
  793. package/esm/EmptyState/EmptyState.tailwind.d.ts +5 -0
  794. package/esm/EmptyState/EmptyState.tailwind.js +14 -0
  795. package/esm/EmptyState/index.d.ts +2 -0
  796. package/esm/EmptyState/index.js +2 -0
  797. package/esm/EmptyState/types.d.ts +50 -0
  798. package/esm/EmptyState/types.js +1 -0
  799. package/esm/Field/Field.d.ts +24 -0
  800. package/esm/Field/Field.js +68 -0
  801. package/esm/Field/FieldContext.d.ts +16 -0
  802. package/esm/Field/FieldContext.js +8 -0
  803. package/esm/Field/index.d.ts +4 -0
  804. package/esm/Field/index.js +3 -0
  805. package/esm/Field/useField.d.ts +2 -0
  806. package/esm/Field/useField.js +5 -0
  807. package/esm/FlexGrid/FlexGrid.d.ts +44 -0
  808. package/esm/FlexGrid/FlexGrid.js +67 -0
  809. package/esm/FlexGrid/FlexGrid.tailwind.d.ts +8 -0
  810. package/esm/FlexGrid/FlexGrid.tailwind.js +69 -0
  811. package/esm/FlexGrid/index.d.ts +1 -0
  812. package/esm/FlexGrid/index.js +1 -0
  813. package/esm/HelpUnderline/HelpUnderline.d.ts +15 -0
  814. package/esm/HelpUnderline/HelpUnderline.js +32 -0
  815. package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +5 -0
  816. package/esm/HelpUnderline/HelpUnderline.tailwind.js +20 -0
  817. package/esm/HelpUnderline/index.d.ts +1 -0
  818. package/esm/HelpUnderline/index.js +1 -0
  819. package/esm/Icons/AlgoliaRecommendIcon.d.ts +3 -0
  820. package/esm/Icons/AlgoliaRecommendIcon.js +40 -0
  821. package/esm/Icons/AlgoliaSearchIcon.d.ts +3 -0
  822. package/esm/Icons/AlgoliaSearchIcon.js +43 -0
  823. package/esm/Icons/BulbIcon.d.ts +3 -0
  824. package/esm/Icons/BulbIcon.js +30 -0
  825. package/esm/Icons/ContextIcon.d.ts +3 -0
  826. package/esm/Icons/ContextIcon.js +45 -0
  827. package/esm/Icons/CrawlerIcon.d.ts +3 -0
  828. package/esm/Icons/CrawlerIcon.js +34 -0
  829. package/esm/Icons/DragHandleIcon.d.ts +3 -0
  830. package/esm/Icons/DragHandleIcon.js +52 -0
  831. package/esm/Icons/NeuralSearchIcon.d.ts +3 -0
  832. package/esm/Icons/NeuralSearchIcon.js +27 -0
  833. package/esm/Icons/NoFiltersIcon.d.ts +3 -0
  834. package/esm/Icons/NoFiltersIcon.js +53 -0
  835. package/esm/Icons/PinIcon.d.ts +3 -0
  836. package/esm/Icons/PinIcon.js +54 -0
  837. package/esm/Icons/QueryBreakdownIcon.d.ts +3 -0
  838. package/esm/Icons/QueryBreakdownIcon.js +33 -0
  839. package/esm/Icons/RocketIcon.d.ts +3 -0
  840. package/esm/Icons/RocketIcon.js +29 -0
  841. package/esm/Icons/SettingsCategoryPagesIcon.d.ts +3 -0
  842. package/esm/Icons/SettingsCategoryPagesIcon.js +29 -0
  843. package/esm/Icons/SettingsConsequencesIcon.d.ts +3 -0
  844. package/esm/Icons/SettingsConsequencesIcon.js +64 -0
  845. package/esm/Icons/TestingIcon.d.ts +3 -0
  846. package/esm/Icons/TestingIcon.js +29 -0
  847. package/esm/Icons/UnpinIcon.d.ts +3 -0
  848. package/esm/Icons/UnpinIcon.js +54 -0
  849. package/esm/Icons/WorkspaceSwitcherIcon.d.ts +3 -0
  850. package/esm/Icons/WorkspaceSwitcherIcon.js +27 -0
  851. package/esm/Icons/index.d.ts +20 -0
  852. package/esm/Icons/index.js +22 -0
  853. package/esm/Icons/utils.d.ts +1 -0
  854. package/esm/Icons/utils.js +4 -0
  855. package/esm/Input/Input.d.ts +27 -0
  856. package/esm/Input/Input.js +206 -0
  857. package/esm/Input/Input.tailwind.d.ts +5 -0
  858. package/esm/Input/Input.tailwind.js +124 -0
  859. package/esm/Input/index.d.ts +1 -0
  860. package/esm/Input/index.js +1 -0
  861. package/esm/Insert/Insert.d.ts +19 -0
  862. package/esm/Insert/Insert.js +44 -0
  863. package/esm/Insert/index.d.ts +1 -0
  864. package/esm/Insert/index.js +1 -0
  865. package/esm/InstantSearch/InstantSearch.tailwind.d.ts +5 -0
  866. package/esm/InstantSearch/InstantSearch.tailwind.js +377 -0
  867. package/esm/KeyboardKey/KeyboardKey.d.ts +12 -0
  868. package/esm/KeyboardKey/KeyboardKey.js +34 -0
  869. package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +5 -0
  870. package/esm/KeyboardKey/KeyboardKey.tailwind.js +28 -0
  871. package/esm/KeyboardKey/index.d.ts +1 -0
  872. package/esm/KeyboardKey/index.js +1 -0
  873. package/esm/Link/BaseLink.d.ts +7 -0
  874. package/esm/Link/BaseLink.js +21 -0
  875. package/esm/Link/ButtonLink.d.ts +13 -0
  876. package/esm/Link/ButtonLink.js +34 -0
  877. package/esm/Link/IconButtonLink.d.ts +13 -0
  878. package/esm/Link/IconButtonLink.js +28 -0
  879. package/esm/Link/Link.d.ts +17 -0
  880. package/esm/Link/Link.js +50 -0
  881. package/esm/Link/index.d.ts +4 -0
  882. package/esm/Link/index.js +4 -0
  883. package/esm/Medallion/Medallion.d.ts +16 -0
  884. package/esm/Medallion/Medallion.js +37 -0
  885. package/esm/Medallion/Medallion.tailwind.d.ts +5 -0
  886. package/esm/Medallion/Medallion.tailwind.js +30 -0
  887. package/esm/Medallion/index.d.ts +2 -0
  888. package/esm/Medallion/index.js +2 -0
  889. package/esm/Medallion/types.d.ts +2 -0
  890. package/esm/Medallion/types.js +1 -0
  891. package/esm/MenuButton/MenuButton.d.ts +26 -0
  892. package/esm/MenuButton/MenuButton.js +37 -0
  893. package/esm/MenuButton/components/Content.d.ts +4 -0
  894. package/esm/MenuButton/components/Content.js +32 -0
  895. package/esm/MenuButton/components/CustomTrigger.d.ts +4 -0
  896. package/esm/MenuButton/components/CustomTrigger.js +13 -0
  897. package/esm/MenuButton/components/DefaultTrigger.d.ts +4 -0
  898. package/esm/MenuButton/components/DefaultTrigger.js +24 -0
  899. package/esm/MenuButton/components/Divider.d.ts +2 -0
  900. package/esm/MenuButton/components/Divider.js +10 -0
  901. package/esm/MenuButton/components/Label.d.ts +3 -0
  902. package/esm/MenuButton/components/Label.js +21 -0
  903. package/esm/MenuButton/components/collapsible/CollapsibleItem.d.ts +8 -0
  904. package/esm/MenuButton/components/collapsible/CollapsibleItem.js +54 -0
  905. package/esm/MenuButton/components/collapsible/CollapsibleItemsGroup.d.ts +6 -0
  906. package/esm/MenuButton/components/collapsible/CollapsibleItemsGroup.js +14 -0
  907. package/esm/MenuButton/components/collapsible/CollapsibleItemsGroupContext.d.ts +7 -0
  908. package/esm/MenuButton/components/collapsible/CollapsibleItemsGroupContext.js +9 -0
  909. package/esm/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.d.ts +8 -0
  910. package/esm/MenuButton/components/collapsible/CollapsibleItemsMultipleGroup.js +29 -0
  911. package/esm/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.d.ts +8 -0
  912. package/esm/MenuButton/components/collapsible/CollapsibleItemsSingleGroup.js +26 -0
  913. package/esm/MenuButton/components/collapsible/index.d.ts +5 -0
  914. package/esm/MenuButton/components/collapsible/index.js +5 -0
  915. package/esm/MenuButton/components/items/Item.d.ts +14 -0
  916. package/esm/MenuButton/components/items/Item.js +33 -0
  917. package/esm/MenuButton/components/items/LinkItem.d.ts +16 -0
  918. package/esm/MenuButton/components/items/LinkItem.js +63 -0
  919. package/esm/MenuButton/components/items/RadioItem.d.ts +5 -0
  920. package/esm/MenuButton/components/items/RadioItem.js +40 -0
  921. package/esm/MenuButton/components/items/ToggleItem.d.ts +8 -0
  922. package/esm/MenuButton/components/items/ToggleItem.js +62 -0
  923. package/esm/MenuButton/components/items/index.d.ts +4 -0
  924. package/esm/MenuButton/components/items/index.js +4 -0
  925. package/esm/MenuButton/index.d.ts +1 -0
  926. package/esm/MenuButton/index.js +1 -0
  927. package/esm/MenuButton/useMenuItemProps.d.ts +10 -0
  928. package/esm/MenuButton/useMenuItemProps.js +11 -0
  929. package/esm/Modal/Modal.d.ts +61 -0
  930. package/esm/Modal/Modal.js +145 -0
  931. package/esm/Modal/Modal.tailwind.d.ts +5 -0
  932. package/esm/Modal/Modal.tailwind.js +79 -0
  933. package/esm/Modal/components/ModalFooter.d.ts +5 -0
  934. package/esm/Modal/components/ModalFooter.js +24 -0
  935. package/esm/Modal/components/ModalSection.d.ts +9 -0
  936. package/esm/Modal/components/ModalSection.js +15 -0
  937. package/esm/Modal/index.d.ts +3 -0
  938. package/esm/Modal/index.js +3 -0
  939. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +36 -0
  940. package/esm/Pagination/CompactPagination/CompactPagination.js +81 -0
  941. package/esm/Pagination/CompactPagination/index.d.ts +1 -0
  942. package/esm/Pagination/CompactPagination/index.js +1 -0
  943. package/esm/Pagination/DotPagination/DotPagination.d.ts +19 -0
  944. package/esm/Pagination/DotPagination/DotPagination.js +43 -0
  945. package/esm/Pagination/DotPagination/index.d.ts +1 -0
  946. package/esm/Pagination/DotPagination/index.js +1 -0
  947. package/esm/Pagination/Pagination/Pagination.d.ts +19 -0
  948. package/esm/Pagination/Pagination/Pagination.js +111 -0
  949. package/esm/Pagination/Pagination/index.d.ts +1 -0
  950. package/esm/Pagination/Pagination/index.js +1 -0
  951. package/esm/Pagination/index.d.ts +3 -0
  952. package/esm/Pagination/index.js +3 -0
  953. package/esm/Popover/Popover.d.ts +9 -0
  954. package/esm/Popover/Popover.js +134 -0
  955. package/esm/Popover/index.d.ts +2 -0
  956. package/esm/Popover/index.js +2 -0
  957. package/esm/Popover/types.d.ts +74 -0
  958. package/esm/Popover/types.js +1 -0
  959. package/esm/ProgressBar/ProgressBar.d.ts +15 -0
  960. package/esm/ProgressBar/ProgressBar.js +46 -0
  961. package/esm/ProgressBar/ProgressBar.tailwind.d.ts +5 -0
  962. package/esm/ProgressBar/ProgressBar.tailwind.js +25 -0
  963. package/esm/ProgressBar/index.d.ts +1 -0
  964. package/esm/ProgressBar/index.js +1 -0
  965. package/esm/ProgressSpinner/ProgressSpinner.d.ts +13 -0
  966. package/esm/ProgressSpinner/ProgressSpinner.js +53 -0
  967. package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +5 -0
  968. package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +43 -0
  969. package/esm/ProgressSpinner/index.d.ts +1 -0
  970. package/esm/ProgressSpinner/index.js +1 -0
  971. package/esm/RadioGroup/RadioButton.d.ts +3 -0
  972. package/esm/RadioGroup/RadioButton.js +21 -0
  973. package/esm/RadioGroup/RadioButton.tailwind.d.ts +5 -0
  974. package/esm/RadioGroup/RadioButton.tailwind.js +62 -0
  975. package/esm/RadioGroup/RadioGroup.d.ts +31 -0
  976. package/esm/RadioGroup/RadioGroup.js +86 -0
  977. package/esm/RadioGroup/RadiogroupContext.d.ts +11 -0
  978. package/esm/RadioGroup/RadiogroupContext.js +9 -0
  979. package/esm/RadioGroup/index.d.ts +3 -0
  980. package/esm/RadioGroup/index.js +3 -0
  981. package/esm/RangeSlider/RangeSlider.d.ts +36 -0
  982. package/esm/RangeSlider/RangeSlider.js +98 -0
  983. package/esm/RangeSlider/index.d.ts +1 -0
  984. package/esm/RangeSlider/index.js +1 -0
  985. package/esm/Satellite/Satellite.d.ts +10 -0
  986. package/esm/Satellite/Satellite.js +53 -0
  987. package/esm/Satellite/SatelliteContext.d.ts +10 -0
  988. package/esm/Satellite/SatelliteContext.js +15 -0
  989. package/esm/Satellite/SatelliteRouter.d.ts +21 -0
  990. package/esm/Satellite/SatelliteRouter.js +40 -0
  991. package/esm/Satellite/index.d.ts +5 -0
  992. package/esm/Satellite/index.js +5 -0
  993. package/esm/Satellite/locale.d.ts +37 -0
  994. package/esm/Satellite/locale.js +7 -0
  995. package/esm/Satellite/useCreatePortal.d.ts +4 -0
  996. package/esm/Satellite/useCreatePortal.js +17 -0
  997. package/esm/ScrollIndicator/ScrollIndicator.d.ts +18 -0
  998. package/esm/ScrollIndicator/ScrollIndicator.js +84 -0
  999. package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +5 -0
  1000. package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +50 -0
  1001. package/esm/ScrollIndicator/index.d.ts +1 -0
  1002. package/esm/ScrollIndicator/index.js +1 -0
  1003. package/esm/Select/Select.d.ts +11 -0
  1004. package/esm/Select/Select.js +33 -0
  1005. package/esm/Select/Select.tailwind.d.ts +5 -0
  1006. package/esm/Select/Select.tailwind.js +77 -0
  1007. package/esm/Select/index.d.ts +1 -0
  1008. package/esm/Select/index.js +1 -0
  1009. package/esm/Separator/Separator.d.ts +13 -0
  1010. package/esm/Separator/Separator.js +33 -0
  1011. package/esm/Separator/Separator.tailwind.d.ts +5 -0
  1012. package/esm/Separator/Separator.tailwind.js +53 -0
  1013. package/esm/Separator/index.d.ts +1 -0
  1014. package/esm/Separator/index.js +1 -0
  1015. package/esm/Sidebar/Sidebar.d.ts +41 -0
  1016. package/esm/Sidebar/Sidebar.js +60 -0
  1017. package/esm/Sidebar/SidebarButtonLink.d.ts +20 -0
  1018. package/esm/Sidebar/SidebarButtonLink.js +78 -0
  1019. package/esm/Sidebar/SidebarContext.d.ts +9 -0
  1020. package/esm/Sidebar/SidebarContext.js +9 -0
  1021. package/esm/Sidebar/SidebarHeader.d.ts +7 -0
  1022. package/esm/Sidebar/SidebarHeader.js +13 -0
  1023. package/esm/Sidebar/SidebarHeading.d.ts +8 -0
  1024. package/esm/Sidebar/SidebarHeading.js +18 -0
  1025. package/esm/Sidebar/SidebarLink.d.ts +9 -0
  1026. package/esm/Sidebar/SidebarLink.js +44 -0
  1027. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +9 -0
  1028. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +30 -0
  1029. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.d.ts +7 -0
  1030. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +30 -0
  1031. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +24 -0
  1032. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +91 -0
  1033. package/esm/Sidebar/SidebarLinksGroup/index.d.ts +2 -0
  1034. package/esm/Sidebar/SidebarLinksGroup/index.js +2 -0
  1035. package/esm/Sidebar/SidebarLinksGroup/types.d.ts +10 -0
  1036. package/esm/Sidebar/SidebarLinksGroup/types.js +1 -0
  1037. package/esm/Sidebar/SidebarNav.d.ts +11 -0
  1038. package/esm/Sidebar/SidebarNav.js +29 -0
  1039. package/esm/Sidebar/index.d.ts +9 -0
  1040. package/esm/Sidebar/index.js +9 -0
  1041. package/esm/Sidebar/types.d.ts +6 -0
  1042. package/esm/Sidebar/types.js +1 -0
  1043. package/esm/Stepper/Step.d.ts +6 -0
  1044. package/esm/Stepper/Step.js +109 -0
  1045. package/esm/Stepper/Stepper.d.ts +41 -0
  1046. package/esm/Stepper/Stepper.js +138 -0
  1047. package/esm/Stepper/StepperContext.d.ts +12 -0
  1048. package/esm/Stepper/StepperContext.js +9 -0
  1049. package/esm/Stepper/index.d.ts +3 -0
  1050. package/esm/Stepper/index.js +3 -0
  1051. package/esm/Stepper/types.d.ts +26 -0
  1052. package/esm/Stepper/types.js +1 -0
  1053. package/esm/Stepper/utils.d.ts +5 -0
  1054. package/esm/Stepper/utils.js +61 -0
  1055. package/esm/Switch/Switch.d.ts +18 -0
  1056. package/esm/Switch/Switch.js +84 -0
  1057. package/esm/Switch/Switch.tailwind.d.ts +5 -0
  1058. package/esm/Switch/Switch.tailwind.js +24 -0
  1059. package/esm/Switch/SwitchOption.d.ts +7 -0
  1060. package/esm/Switch/SwitchOption.js +38 -0
  1061. package/esm/Switch/index.d.ts +2 -0
  1062. package/esm/Switch/index.js +2 -0
  1063. package/esm/Switch/types.d.ts +7 -0
  1064. package/esm/Switch/types.js +1 -0
  1065. package/esm/Switch/utils.d.ts +6 -0
  1066. package/esm/Switch/utils.js +11 -0
  1067. package/esm/Tables/DataTable/DataTable.d.ts +55 -0
  1068. package/esm/Tables/DataTable/DataTable.js +243 -0
  1069. package/esm/Tables/DataTable/DataTable.tailwind.d.ts +5 -0
  1070. package/esm/Tables/DataTable/DataTable.tailwind.js +22 -0
  1071. package/esm/Tables/DataTable/components/Body.d.ts +14 -0
  1072. package/esm/Tables/DataTable/components/Body.js +111 -0
  1073. package/esm/Tables/DataTable/components/Footer.d.ts +7 -0
  1074. package/esm/Tables/DataTable/components/Footer.js +52 -0
  1075. package/esm/Tables/DataTable/components/Header.d.ts +9 -0
  1076. package/esm/Tables/DataTable/components/Header.js +31 -0
  1077. package/esm/Tables/DataTable/components/HeaderCell.d.ts +11 -0
  1078. package/esm/Tables/DataTable/components/HeaderCell.js +51 -0
  1079. package/esm/Tables/DataTable/components/Loader.d.ts +8 -0
  1080. package/esm/Tables/DataTable/components/Loader.js +39 -0
  1081. package/esm/Tables/DataTable/components/index.d.ts +5 -0
  1082. package/esm/Tables/DataTable/components/index.js +5 -0
  1083. package/esm/Tables/DataTable/index.d.ts +2 -0
  1084. package/esm/Tables/DataTable/index.js +2 -0
  1085. package/esm/Tables/DataTable/types.d.ts +63 -0
  1086. package/esm/Tables/DataTable/types.js +1 -0
  1087. package/esm/Tables/DataTable/utils.d.ts +4 -0
  1088. package/esm/Tables/DataTable/utils.js +13 -0
  1089. package/esm/Tables/Table/Table.d.ts +13 -0
  1090. package/esm/Tables/Table/Table.js +39 -0
  1091. package/esm/Tables/Table/Table.tailwind.d.ts +5 -0
  1092. package/esm/Tables/Table/Table.tailwind.js +38 -0
  1093. package/esm/Tables/Table/components/TableFooter.d.ts +7 -0
  1094. package/esm/Tables/Table/components/TableFooter.js +18 -0
  1095. package/esm/Tables/Table/index.d.ts +2 -0
  1096. package/esm/Tables/Table/index.js +2 -0
  1097. package/esm/Tables/index.d.ts +2 -0
  1098. package/esm/Tables/index.js +2 -0
  1099. package/esm/Tabs/ContentTabs.d.ts +3 -0
  1100. package/esm/Tabs/ContentTabs.js +53 -0
  1101. package/esm/Tabs/LinkTabs.d.ts +9 -0
  1102. package/esm/Tabs/LinkTabs.js +44 -0
  1103. package/esm/Tabs/Tabs.tailwind.d.ts +5 -0
  1104. package/esm/Tabs/Tabs.tailwind.js +71 -0
  1105. package/esm/Tabs/components/LinkTab.d.ts +8 -0
  1106. package/esm/Tabs/components/LinkTab.js +77 -0
  1107. package/esm/Tabs/index.d.ts +3 -0
  1108. package/esm/Tabs/index.js +3 -0
  1109. package/esm/Tabs/types.d.ts +34 -0
  1110. package/esm/Tabs/types.js +1 -0
  1111. package/esm/Tabs/utils.d.ts +2 -0
  1112. package/esm/Tabs/utils.js +11 -0
  1113. package/esm/Tag/Tag.d.ts +30 -0
  1114. package/esm/Tag/Tag.js +115 -0
  1115. package/esm/Tag/Tag.tailwind.d.ts +5 -0
  1116. package/esm/Tag/Tag.tailwind.js +53 -0
  1117. package/esm/Tag/index.d.ts +1 -0
  1118. package/esm/Tag/index.js +1 -0
  1119. package/esm/TextArea/TextArea.d.ts +9 -0
  1120. package/esm/TextArea/TextArea.js +25 -0
  1121. package/esm/TextArea/TextArea.tailwind.d.ts +5 -0
  1122. package/esm/TextArea/TextArea.tailwind.js +43 -0
  1123. package/esm/TextArea/index.d.ts +1 -0
  1124. package/esm/TextArea/index.js +1 -0
  1125. package/esm/TextWrap/TextWrap.d.ts +12 -0
  1126. package/esm/TextWrap/TextWrap.js +52 -0
  1127. package/esm/TextWrap/index.d.ts +1 -0
  1128. package/esm/TextWrap/index.js +1 -0
  1129. package/esm/Toast/Toast.d.ts +5 -0
  1130. package/esm/Toast/Toast.js +101 -0
  1131. package/esm/Toast/Toast.tailwind.d.ts +5 -0
  1132. package/esm/Toast/Toast.tailwind.js +33 -0
  1133. package/esm/Toast/Toasts.d.ts +20 -0
  1134. package/esm/Toast/Toasts.js +92 -0
  1135. package/esm/Toast/index.d.ts +3 -0
  1136. package/esm/Toast/index.js +3 -0
  1137. package/esm/Toast/types.d.ts +34 -0
  1138. package/esm/Toast/types.js +1 -0
  1139. package/esm/Toggle/Toggle.d.ts +12 -0
  1140. package/esm/Toggle/Toggle.js +67 -0
  1141. package/esm/Toggle/Toggle.tailwind.d.ts +5 -0
  1142. package/esm/Toggle/Toggle.tailwind.js +84 -0
  1143. package/esm/Toggle/index.d.ts +1 -0
  1144. package/esm/Toggle/index.js +1 -0
  1145. package/esm/Tooltip/OverflowTooltipWrapper.d.ts +10 -0
  1146. package/esm/Tooltip/OverflowTooltipWrapper.js +44 -0
  1147. package/esm/Tooltip/Tooltip.d.ts +11 -0
  1148. package/esm/Tooltip/Tooltip.js +32 -0
  1149. package/esm/Tooltip/Tooltip.tailwind.d.ts +5 -0
  1150. package/esm/Tooltip/Tooltip.tailwind.js +46 -0
  1151. package/esm/Tooltip/TooltipWrapper.d.ts +19 -0
  1152. package/esm/Tooltip/TooltipWrapper.js +79 -0
  1153. package/esm/Tooltip/index.d.ts +3 -0
  1154. package/{components/Tooltip/index.d.ts → esm/Tooltip/index.js} +1 -1
  1155. package/esm/Tooltip/types.d.ts +65 -0
  1156. package/esm/Tooltip/types.js +1 -0
  1157. package/esm/Tooltip/utils.d.ts +1 -0
  1158. package/esm/Tooltip/utils.js +3 -0
  1159. package/esm/Typography/Typography.tailwind.d.ts +5 -0
  1160. package/esm/Typography/Typography.tailwind.js +169 -0
  1161. package/esm/UserContent/UserContent.d.ts +13 -0
  1162. package/esm/UserContent/UserContent.js +23 -0
  1163. package/esm/UserContent/UserContent.tailwind.d.ts +5 -0
  1164. package/esm/UserContent/UserContent.tailwind.js +141 -0
  1165. package/esm/index.d.ts +53 -0
  1166. package/esm/index.js +53 -0
  1167. package/esm/styles/base.tailwind.d.ts +5 -0
  1168. package/esm/styles/base.tailwind.js +45 -0
  1169. package/esm/styles/brandColors.d.ts +42 -0
  1170. package/esm/styles/brandColors.js +46 -0
  1171. package/esm/styles/colors.d.ts +110 -0
  1172. package/esm/styles/colors.js +114 -0
  1173. package/esm/styles/disabledColor.d.ts +6 -0
  1174. package/esm/styles/disabledColor.js +14 -0
  1175. package/esm/styles/helpers/icons.d.ts +15 -0
  1176. package/esm/styles/helpers/icons.js +40 -0
  1177. package/esm/styles/helpers/makePurgeCssExtractor.d.ts +7 -0
  1178. package/esm/styles/helpers/makePurgeCssExtractor.js +49 -0
  1179. package/esm/styles/helpers/makeTailwindPrefixer.d.ts +6 -0
  1180. package/esm/styles/helpers/makeTailwindPrefixer.js +34 -0
  1181. package/esm/styles/helpers/prefixTailwindClassName.d.ts +7 -0
  1182. package/esm/styles/helpers/prefixTailwindClassName.js +26 -0
  1183. package/esm/styles/helpers/satellitePrefixer.d.ts +3 -0
  1184. package/esm/styles/helpers/satellitePrefixer.js +7 -0
  1185. package/esm/styles/rgba.d.ts +8 -0
  1186. package/esm/styles/rgba.js +14 -0
  1187. package/esm/styles/tailwind.config.d.ts +2 -0
  1188. package/esm/styles/tailwind.config.js +147 -0
  1189. package/esm/styles/zIndexes.d.ts +8 -0
  1190. package/esm/styles/zIndexes.js +13 -0
  1191. package/esm/types.d.ts +24 -0
  1192. package/esm/types.js +1 -0
  1193. package/esm/utilities/overlay.tailwind.d.ts +5 -0
  1194. package/esm/utilities/overlay.tailwind.js +106 -0
  1195. package/esm/utilities/utilities.tailwind.d.ts +5 -0
  1196. package/esm/utilities/utilities.tailwind.js +25 -0
  1197. package/esm/utils/NumberUnion.d.ts +5 -0
  1198. package/esm/utils/NumberUnion.js +1 -0
  1199. package/esm/utils/clamp.d.ts +1 -0
  1200. package/esm/utils/clamp.js +3 -0
  1201. package/esm/utils/event-polyfill.d.ts +0 -0
  1202. package/esm/utils/event-polyfill.js +23 -0
  1203. package/esm/utils/formatters.d.ts +25 -0
  1204. package/esm/utils/formatters.js +36 -0
  1205. package/esm/utils/genericChangeHandler.d.ts +5 -0
  1206. package/esm/utils/genericChangeHandler.js +17 -0
  1207. package/esm/utils/getTextFromReactNode.d.ts +4 -0
  1208. package/esm/utils/getTextFromReactNode.js +15 -0
  1209. package/esm/utils/hashCode.d.ts +1 -0
  1210. package/esm/utils/hashCode.js +14 -0
  1211. package/esm/utils/index.d.ts +7 -0
  1212. package/esm/utils/index.js +7 -0
  1213. package/esm/utils/isCssPropertySupported.d.ts +1 -0
  1214. package/esm/utils/isCssPropertySupported.js +8 -0
  1215. package/esm/utils/isNil.d.ts +18 -0
  1216. package/esm/utils/isNil.js +20 -0
  1217. package/esm/utils/isReactText.d.ts +2 -0
  1218. package/esm/utils/isReactText.js +3 -0
  1219. package/esm/utils/isRenderedChild.d.ts +7 -0
  1220. package/esm/utils/isRenderedChild.js +8 -0
  1221. package/esm/utils/matchLocation.d.ts +2 -0
  1222. package/esm/utils/matchLocation.js +4 -0
  1223. package/esm/utils/onlyText.d.ts +2 -0
  1224. package/esm/utils/onlyText.js +32 -0
  1225. package/esm/utils/parseUrl.d.ts +10 -0
  1226. package/esm/utils/parseUrl.js +14 -0
  1227. package/esm/utils/pluralize.d.ts +6 -0
  1228. package/esm/utils/pluralize.js +15 -0
  1229. package/esm/utils/prefersReducedMotion.d.ts +6 -0
  1230. package/esm/utils/prefersReducedMotion.js +7 -0
  1231. package/esm/utils/range.d.ts +1 -0
  1232. package/esm/utils/range.js +6 -0
  1233. package/esm/utils/sortObjectAlphabetically.d.ts +1 -0
  1234. package/esm/utils/sortObjectAlphabetically.js +11 -0
  1235. package/esm/utils/toSentenceCase.d.ts +2 -0
  1236. package/esm/utils/toSentenceCase.js +8 -0
  1237. package/esm/utils/uniqBy.d.ts +1 -0
  1238. package/esm/utils/uniqBy.js +12 -0
  1239. package/esm/utils/uniqueId.d.ts +1 -0
  1240. package/esm/utils/uniqueId.js +6 -0
  1241. package/esm/utils/useForwardedRef.d.ts +2 -0
  1242. package/esm/utils/useForwardedRef.js +16 -0
  1243. package/esm/utils/useLinkProps.d.ts +6 -0
  1244. package/esm/utils/useLinkProps.js +45 -0
  1245. package/esm/utils/useTriggerInputChange.d.ts +8 -0
  1246. package/esm/utils/useTriggerInputChange.js +20 -0
  1247. package/package.json +92 -49
  1248. package/satellite.min.css +3 -0
  1249. package/scss/colors.scss +139 -0
  1250. package/scss/variables.scss +8 -0
  1251. package/components/Alert/Alert.d.ts +0 -9
  1252. package/components/Alert/Alert.js +0 -49
  1253. package/components/Alert/index.d.ts +0 -2
  1254. package/components/Alert/index.js +0 -27
  1255. package/components/AutoComplete/AutoComplete.d.ts +0 -66
  1256. package/components/AutoComplete/AutoComplete.js +0 -512
  1257. package/components/AutoComplete/index.d.ts +0 -2
  1258. package/components/AutoComplete/index.js +0 -27
  1259. package/components/AutoComplete/types.d.ts +0 -21
  1260. package/components/AutoComplete/types.js +0 -1
  1261. package/components/AutoComplete/utils.d.ts +0 -3
  1262. package/components/AutoComplete/utils.js +0 -35
  1263. package/components/Button/Button.d.ts +0 -13
  1264. package/components/Button/Button.js +0 -59
  1265. package/components/Button/LinkButton.d.ts +0 -9
  1266. package/components/Button/LinkButton.js +0 -52
  1267. package/components/Button/index.d.ts +0 -3
  1268. package/components/Button/index.js +0 -40
  1269. package/components/Card/Card.d.ts +0 -13
  1270. package/components/Card/Card.js +0 -71
  1271. package/components/Card/components/CardHeader.d.ts +0 -3
  1272. package/components/Card/components/CardHeader.js +0 -25
  1273. package/components/Card/components/CardTitle.d.ts +0 -7
  1274. package/components/Card/components/CardTitle.js +0 -30
  1275. package/components/Card/index.d.ts +0 -3
  1276. package/components/Card/index.js +0 -19
  1277. package/components/Checkbox/Checkbox.d.ts +0 -5
  1278. package/components/Checkbox/Checkbox.js +0 -66
  1279. package/components/Checkbox/index.d.ts +0 -2
  1280. package/components/Checkbox/index.js +0 -27
  1281. package/components/Chip/Chip.d.ts +0 -9
  1282. package/components/Chip/Chip.js +0 -77
  1283. package/components/Chip/index.d.ts +0 -2
  1284. package/components/Chip/index.js +0 -21
  1285. package/components/Dropdown/Dropdown.d.ts +0 -27
  1286. package/components/Dropdown/Dropdown.js +0 -163
  1287. package/components/Dropdown/DropdownButton.d.ts +0 -12
  1288. package/components/Dropdown/DropdownButton.js +0 -117
  1289. package/components/Dropdown/components/DropdownDivider.d.ts +0 -6
  1290. package/components/Dropdown/components/DropdownDivider.js +0 -24
  1291. package/components/Dropdown/components/DropdownItem.d.ts +0 -10
  1292. package/components/Dropdown/components/DropdownItem.js +0 -46
  1293. package/components/Dropdown/components/DropdownTitle.d.ts +0 -4
  1294. package/components/Dropdown/components/DropdownTitle.js +0 -34
  1295. package/components/Dropdown/index.d.ts +0 -3
  1296. package/components/Dropdown/index.js +0 -29
  1297. package/components/HelpUnderline/HelpUnderline.d.ts +0 -10
  1298. package/components/HelpUnderline/HelpUnderline.js +0 -39
  1299. package/components/HelpUnderline/index.d.ts +0 -2
  1300. package/components/HelpUnderline/index.js +0 -27
  1301. package/components/Input/Input.d.ts +0 -25
  1302. package/components/Input/Input.js +0 -134
  1303. package/components/Input/index.d.ts +0 -2
  1304. package/components/LoaderIcon/LoaderIcon.d.ts +0 -7
  1305. package/components/LoaderIcon/LoaderIcon.js +0 -65
  1306. package/components/LoaderIcon/index.d.ts +0 -2
  1307. package/components/LoaderIcon/index.js +0 -27
  1308. package/components/MaterialIcon/MaterialIcon.d.ts +0 -12
  1309. package/components/MaterialIcon/MaterialIcon.js +0 -48
  1310. package/components/MaterialIcon/index.d.ts +0 -2
  1311. package/components/MaterialIcon/index.js +0 -27
  1312. package/components/Modal/Modal.d.ts +0 -30
  1313. package/components/Modal/Modal.js +0 -207
  1314. package/components/Modal/components/ModalFooter.d.ts +0 -4
  1315. package/components/Modal/components/ModalFooter.js +0 -34
  1316. package/components/Modal/components/ModalSection.d.ts +0 -6
  1317. package/components/Modal/components/ModalSection.js +0 -38
  1318. package/components/Modal/index.d.ts +0 -2
  1319. package/components/Modal/index.js +0 -21
  1320. package/components/Pagination/Pagination.d.ts +0 -12
  1321. package/components/Pagination/Pagination.js +0 -131
  1322. package/components/Pagination/index.d.ts +0 -2
  1323. package/components/Pagination/index.js +0 -27
  1324. package/components/RadioGroup/RadioButton.d.ts +0 -5
  1325. package/components/RadioGroup/RadioButton.js +0 -35
  1326. package/components/RadioGroup/RadioGroup.d.ts +0 -20
  1327. package/components/RadioGroup/RadioGroup.js +0 -140
  1328. package/components/RadioGroup/index.d.ts +0 -3
  1329. package/components/RadioGroup/index.js +0 -29
  1330. package/components/ScrollIndicator/ScrollIndicator.d.ts +0 -24
  1331. package/components/ScrollIndicator/ScrollIndicator.js +0 -165
  1332. package/components/ScrollIndicator/index.d.ts +0 -2
  1333. package/components/ScrollIndicator/index.js +0 -21
  1334. package/components/Select/Select.d.ts +0 -6
  1335. package/components/Select/Select.js +0 -40
  1336. package/components/Select/index.d.ts +0 -2
  1337. package/components/Select/index.js +0 -27
  1338. package/components/Table/Table.d.ts +0 -6
  1339. package/components/Table/Table.js +0 -36
  1340. package/components/Table/index.d.ts +0 -3
  1341. package/components/Table/index.js +0 -19
  1342. package/components/TextArea/TextArea.d.ts +0 -5
  1343. package/components/TextArea/TextArea.js +0 -34
  1344. package/components/TextArea/index.d.ts +0 -2
  1345. package/components/TextArea/index.js +0 -27
  1346. package/components/Tooltip/Tooltip.d.ts +0 -5
  1347. package/components/Tooltip/Tooltip.js +0 -29
  1348. package/components/Tooltip/TooltipWrapper.d.ts +0 -32
  1349. package/components/Tooltip/TooltipWrapper.js +0 -164
  1350. package/index.d.ts +0 -19
  1351. package/index.js +0 -173
  1352. package/nothing-to-see-here.gif +0 -0
  1353. package/satellite.css +0 -32
  1354. package/satellite.css.map +0 -1
  1355. package/styles/_colors.scss +0 -147
  1356. package/styles/_mixins.scss +0 -72
  1357. package/styles/_variables.scss +0 -71
  1358. package/utils/clamp.d.ts +0 -2
  1359. package/utils/clamp.js +0 -20
  1360. package/utils/genericChangeHandler.d.ts +0 -5
  1361. package/utils/omit.d.ts +0 -2
  1362. package/utils/omit.js +0 -25
@@ -0,0 +1,434 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.AutoComplete = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
+ var _clsx = _interopRequireDefault(require("clsx"));
13
+ var _downshift = require("downshift");
14
+ var _react = require("react");
15
+ var _reactPopper = require("react-popper");
16
+ var _useMeasure3 = _interopRequireDefault(require("react-use/lib/useMeasure"));
17
+ var _usePrevious = _interopRequireDefault(require("react-use/lib/usePrevious"));
18
+ var _Card = require("../Card");
19
+ var _ClickAwayContainer = require("../ClickAwayContainer");
20
+ var _Field = require("../Field");
21
+ var _Icons = require("../Icons");
22
+ var _Satellite = require("../Satellite");
23
+ var _ScrollIndicator = require("../ScrollIndicator");
24
+ var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
25
+ var _Tag = require("../Tag");
26
+ var _uniqBy = require("../utils/uniqBy");
27
+ var _AutoCompleteContext = require("./components/AutoCompleteContext");
28
+ var _AutoCompleteEmptyState = require("./components/AutoCompleteEmptyState");
29
+ var _DefaultOptionItem = require("./components/DefaultOptionItem");
30
+ var _utils = require("./utils");
31
+ var _jsxRuntime = require("react/jsx-runtime");
32
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28;
33
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35
+ var MENU_POPPER_OPTIONS = {
36
+ strategy: "fixed",
37
+ placement: "bottom-start",
38
+ modifiers: [{
39
+ name: "offset",
40
+ options: {
41
+ offset: [0, 8]
42
+ }
43
+ }]
44
+ };
45
+ var SHOW_ALL_ITEMS_ID = "__stl_extra_results_option__";
46
+ var updateRef = function updateRef(ref, value) {
47
+ if (typeof ref === "function") {
48
+ ref(value);
49
+ } else if (ref) {
50
+ ref.current = value;
51
+ }
52
+ };
53
+
54
+ /**
55
+ * The `Autocomplete` component enables users to search and select from a list using real-time input matching.
56
+ *
57
+ * See the [Autocomplete documentation page](https://satellite.algolia.com/components/forms/autocomplete) for more information.
58
+ */
59
+ var AutoComplete = exports.AutoComplete = function AutoComplete(_ref) {
60
+ var localeProp = _ref.locale,
61
+ id = _ref.id,
62
+ labelId = _ref.labelId,
63
+ ariaLabel = _ref["aria-label"],
64
+ name = _ref.name,
65
+ placeholder = _ref.placeholder,
66
+ autoFocus = _ref.autoFocus,
67
+ inputValueProp = _ref.inputValue,
68
+ onTextChange = _ref.onTextChange,
69
+ _onFocus = _ref.onFocus,
70
+ _onBlur = _ref.onBlur,
71
+ disabled = _ref.disabled,
72
+ clearable = _ref.clearable,
73
+ renderValueTemplate = _ref.renderValueTemplate,
74
+ noWrap = _ref.noWrap,
75
+ separatorKeys = _ref.separatorKeys,
76
+ multiple = _ref.multiple,
77
+ value = _ref.value,
78
+ selectOnBlur = _ref.selectOnBlur,
79
+ onChange = _ref.onChange,
80
+ options = _ref.options,
81
+ optionItemComponent = _ref.optionItemComponent,
82
+ creatable = _ref.creatable,
83
+ _ref$createFromInputV = _ref.createFromInputValue,
84
+ createFromInputValue = _ref$createFromInputV === void 0 ? _utils.defaultCreateFromInputValue : _ref$createFromInputV,
85
+ emptyState = _ref.emptyState,
86
+ _ref$maxResults = _ref.maxResults,
87
+ maxItems = _ref$maxResults === void 0 ? 7 : _ref$maxResults,
88
+ menuFooter = _ref.menuFooter,
89
+ menuSize = _ref.menuSize,
90
+ variant = _ref.variant,
91
+ Icon = _ref.icon,
92
+ endItem = _ref.endItem,
93
+ className = _ref.className,
94
+ menuClassName = _ref.menuClassName,
95
+ valuesClassName = _ref.valuesClassName,
96
+ internalsRef = _ref.internalsRef;
97
+ var createPortal = (0, _Satellite.useCreatePortal)();
98
+ var _useField = (0, _Field.useField)(),
99
+ status = _useField.state.status,
100
+ fieldLabelId = _useField.labelId;
101
+ var localeContext = (0, _Satellite.useLocale)("autoComplete");
102
+ var locale = (0, _react.useMemo)(function () {
103
+ return _objectSpread(_objectSpread(_objectSpread({}, _utils.DEFAULT_AUTOCOMPLETE_LOCALE), localeContext), localeProp);
104
+ }, [localeContext, localeProp]);
105
+ var inputRef = (0, _react.useRef)(null);
106
+ var _useState = (0, _react.useState)(false),
107
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
108
+ inputFocused = _useState2[0],
109
+ setInputFocused = _useState2[1];
110
+ var _useState3 = (0, _react.useState)(function () {
111
+ return (inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : multiple) ? "" : value ? (0, _utils.optionToString)(value) : "";
112
+ }),
113
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
114
+ internalInputValue = _useState4[0],
115
+ setInternalInputValue = _useState4[1];
116
+ var previousValue = (0, _usePrevious["default"])(value);
117
+ (0, _react.useEffect)(function () {
118
+ if (multiple || typeof inputValueProp !== "undefined") return;
119
+ if (!Array.isArray(previousValue) && (0, _utils.optionToString)(previousValue) === (0, _utils.optionToString)(value)) return;
120
+ setInternalInputValue((0, _utils.optionToString)(value));
121
+ }, [multiple, inputValueProp, previousValue, value]);
122
+ var inputValue = inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : internalInputValue;
123
+ var _useState5 = (0, _react.useState)(null),
124
+ _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
125
+ containerElement = _useState6[0],
126
+ setContainerElement = _useState6[1];
127
+ var _useMeasure = (0, _useMeasure3["default"])(),
128
+ _useMeasure2 = (0, _slicedToArray2["default"])(_useMeasure, 2),
129
+ setContainerMeasureRef = _useMeasure2[0],
130
+ containerWidth = _useMeasure2[1].width;
131
+ var menuRef = (0, _react.useRef)(null);
132
+ var menuPopper = (0, _reactPopper.usePopper)(containerElement, menuRef.current, MENU_POPPER_OPTIONS);
133
+ var _useState7 = (0, _react.useState)(false),
134
+ _useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
135
+ showAllItems = _useState8[0],
136
+ setShowAllItems = _useState8[1];
137
+ var selectedItems = (0, _react.useMemo)(function () {
138
+ return !value ? [] : Array.isArray(value) ? value : [value];
139
+ }, [value]);
140
+ var items = (0, _react.useMemo)(function () {
141
+ var results = (0, _utils.filter)(options !== null && options !== void 0 ? options : [], multiple ? selectedItems : [], inputValue);
142
+ var emptyInputValue = !inputValue || inputValue.trim().length === 0;
143
+ if (creatable && !emptyInputValue) {
144
+ results.unshift.apply(results, (0, _toConsumableArray2["default"])(createFromInputValue(options, inputValue)));
145
+ }
146
+ if (!showAllItems && results.length > maxItems) {
147
+ var extraResults = results.length - maxItems;
148
+ var label = locale.showMoreButton(extraResults);
149
+ results.splice(maxItems, results.length, {
150
+ value: SHOW_ALL_ITEMS_ID,
151
+ label: label
152
+ });
153
+ }
154
+ return results;
155
+ }, [creatable, createFromInputValue, inputValue, locale, maxItems, multiple, options, selectedItems, showAllItems]);
156
+ var hasValue = !!selectedItems.length;
157
+ var showClearButton = !disabled && clearable && hasValue;
158
+ var multipleSelection = (0, _downshift.useMultipleSelection)({
159
+ selectedItems: selectedItems,
160
+ onSelectedItemsChange: function onSelectedItemsChange(changes) {
161
+ if (typeof changes.selectedItems === "undefined") {
162
+ onChange(null);
163
+ } else if (multiple) {
164
+ onChange((0, _uniqBy.uniqBy)(changes.selectedItems, function (i) {
165
+ return i.value;
166
+ }));
167
+ } else {
168
+ var _changes$selectedItem;
169
+ onChange((_changes$selectedItem = changes.selectedItems[0]) !== null && _changes$selectedItem !== void 0 ? _changes$selectedItem : null);
170
+ }
171
+ }
172
+ });
173
+ var combobox = (0, _downshift.useCombobox)({
174
+ inputId: id,
175
+ labelId: labelId !== null && labelId !== void 0 ? labelId : fieldLabelId,
176
+ items: items,
177
+ itemToString: _utils.optionToString,
178
+ scrollIntoView: function scrollIntoView(node) {
179
+ var _node$scrollIntoView;
180
+ return node === null || node === void 0 || (_node$scrollIntoView = node.scrollIntoView) === null || _node$scrollIntoView === void 0 ? void 0 : _node$scrollIntoView.call(node, {
181
+ block: "nearest"
182
+ });
183
+ },
184
+ defaultHighlightedIndex: 0,
185
+ getA11yStatusMessage: function getA11yStatusMessage(_ref2) {
186
+ var isOpen = _ref2.isOpen,
187
+ resultCount = _ref2.resultCount,
188
+ previousResultCount = _ref2.previousResultCount;
189
+ if (!isOpen) {
190
+ return "";
191
+ }
192
+ if (!resultCount) {
193
+ return locale.emptyStateTitle;
194
+ }
195
+ if (resultCount !== previousResultCount) {
196
+ return locale.itemsAvailable(resultCount);
197
+ }
198
+ return "";
199
+ },
200
+ getA11ySelectionMessage: function getA11ySelectionMessage(_ref3) {
201
+ var selectedItem = _ref3.selectedItem;
202
+ return locale.selectionMessage((0, _utils.optionToString)(selectedItem), selectedItem);
203
+ },
204
+ selectedItem: null,
205
+ inputValue: inputValue,
206
+ onStateChange: function onStateChange(changes) {
207
+ switch (changes.type) {
208
+ case _downshift.useCombobox.stateChangeTypes.InputBlur:
209
+ case _downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
210
+ case _downshift.useCombobox.stateChangeTypes.ItemClick:
211
+ {
212
+ var selectedItem = selectOnBlur && changes.type === _downshift.useCombobox.stateChangeTypes.InputBlur && combobox.highlightedIndex >= 0 ? items[combobox.highlightedIndex] : changes.selectedItem;
213
+ if (!selectedItem || selectedItem.disabled) return;
214
+ if (changes.type !== _downshift.useCombobox.stateChangeTypes.InputBlur && selectedItem.value === SHOW_ALL_ITEMS_ID) {
215
+ setShowAllItems(true);
216
+ combobox.openMenu();
217
+ combobox.setHighlightedIndex(maxItems);
218
+ } else if (multiple) {
219
+ multipleSelection.addSelectedItem(selectedItem);
220
+ setInternalInputValue("");
221
+ setShowAllItems(false);
222
+ } else {
223
+ multipleSelection.setSelectedItems([selectedItem]);
224
+ setInternalInputValue((0, _utils.optionToString)(selectedItem));
225
+ setShowAllItems(false);
226
+ }
227
+ break;
228
+ }
229
+ case _downshift.useCombobox.stateChangeTypes.InputKeyDownEscape:
230
+ {
231
+ if (!combobox.isOpen) {
232
+ setInternalInputValue("");
233
+ multipleSelection.setSelectedItems([]);
234
+ }
235
+ break;
236
+ }
237
+ }
238
+ },
239
+ isItemDisabled: function isItemDisabled(item) {
240
+ return Boolean(item.disabled);
241
+ }
242
+ });
243
+ var inputProps = combobox.getInputProps(_objectSpread({
244
+ "aria-label": ariaLabel
245
+ }, multipleSelection.getDropdownProps({
246
+ ref: inputRef,
247
+ autoFocus: autoFocus,
248
+ disabled: disabled,
249
+ // See https://github.com/downshift-js/downshift/issues/1108
250
+ // as to why we manage the input value ourselves completely
251
+ onChange: function onChange(evt) {
252
+ var _value, _menuPopper$update;
253
+ var newInputValue = (_value = evt.currentTarget.value) !== null && _value !== void 0 ? _value : "";
254
+ setInternalInputValue(newInputValue);
255
+ onTextChange === null || onTextChange === void 0 || onTextChange(newInputValue);
256
+ if (!multiple && value && !newInputValue) {
257
+ multipleSelection.setSelectedItems([]);
258
+ }
259
+ (_menuPopper$update = menuPopper.update) === null || _menuPopper$update === void 0 || _menuPopper$update.call(menuPopper);
260
+ },
261
+ // We need to make sure to define event handlers here so that they can be composed properly
262
+ onFocus: function onFocus(evt) {
263
+ var _menuPopper$update2;
264
+ _onFocus === null || _onFocus === void 0 || _onFocus(evt);
265
+ if (evt.defaultPrevented) return;
266
+ setInputFocused(true);
267
+ (_menuPopper$update2 = menuPopper.update) === null || _menuPopper$update2 === void 0 || _menuPopper$update2.call(menuPopper);
268
+ },
269
+ onBlur: function onBlur(evt) {
270
+ _onBlur === null || _onBlur === void 0 || _onBlur(evt);
271
+ setInputFocused(false);
272
+ },
273
+ onKeyDown: function onKeyDown(evt) {
274
+ if (combobox.isOpen && ["ArrowLeft", "ArrowRight"].includes(evt.key)) {
275
+ // @ts-expect-error
276
+ evt.nativeEvent.preventDownshiftDefault = true;
277
+ }
278
+ if (multiple && creatable && inputValue.trim().length > 0 && separatorKeys !== null && separatorKeys !== void 0 && separatorKeys.includes(evt.key)) {
279
+ evt.preventDefault();
280
+ var _createFromInputValue = createFromInputValue(options, inputValue),
281
+ _createFromInputValue2 = (0, _slicedToArray2["default"])(_createFromInputValue, 1),
282
+ newOption = _createFromInputValue2[0];
283
+ if (newOption && !newOption.disabled) {
284
+ multipleSelection.addSelectedItem(newOption);
285
+ setInternalInputValue("");
286
+ }
287
+ }
288
+ }
289
+ })));
290
+ (0, _react.useEffect)(function () {
291
+ if (!combobox.isOpen) return;
292
+ if (items.length === 0 && combobox.highlightedIndex >= 0) {
293
+ combobox.setHighlightedIndex(-1);
294
+ } else if (items.length > 0 && combobox.highlightedIndex < 0) {
295
+ combobox.setHighlightedIndex(0);
296
+ }
297
+ }, [combobox, items.length]);
298
+ var shouldRenderCustomTemplate = Boolean(!multiple && !inputFocused && value && renderValueTemplate);
299
+ var shouldShowDefaultEmptyState = emptyState === undefined && !!inputValue.length;
300
+ var shouldShowEmptyState = !!emptyState;
301
+ var hideMenu = !combobox.isOpen || items.length === 0 && !shouldShowEmptyState && !shouldShowDefaultEmptyState;
302
+ var OptionItem = optionItemComponent !== null && optionItemComponent !== void 0 ? optionItemComponent : _DefaultOptionItem.DefaultOptionItem;
303
+ (0, _react.useEffect)(function () {
304
+ updateRef(internalsRef, {
305
+ inputRef: inputRef,
306
+ inputValue: inputValue
307
+ });
308
+ }, [inputRef, internalsRef, inputValue]);
309
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoCompleteContext.AutoCompleteProvider, {
310
+ locale: locale,
311
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
312
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex"]))), className),
313
+ ref: function ref(el) {
314
+ setContainerElement(el);
315
+ // @ts-expect-error
316
+ setContainerMeasureRef(el);
317
+ },
318
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
319
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-container"]))), variant === "large" && (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-large py-1"]))), inputFocused && (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-focused"]))), disabled && (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-disabled"]))), status === "invalid" && (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-invalid"]))), noWrap && (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-nowrap"])))),
320
+ onClick: function onClick() {
321
+ var _inputRef$current;
322
+ return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
323
+ },
324
+ children: [Icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
325
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["mr-4 shrink-0"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["", ""])), disabled ? "text-grey-200" : inputFocused ? "text-accent-600" : "text-grey-500")),
326
+ width: "1rem",
327
+ height: "1rem"
328
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
329
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["flex items-center flex-1 max-h-full"]))), !noWrap && (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["flex-wrap overflow-y-scroll no-scrollbar"]))), multiple && (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["-ml-1"]))), valuesClassName),
330
+ children: [multiple && selectedItems.map(function (option, index) {
331
+ return renderValueTemplate ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", _objectSpread(_objectSpread({}, multipleSelection.getSelectedItemProps({
332
+ selectedItem: option,
333
+ index: index
334
+ })), {}, {
335
+ children: renderValueTemplate({
336
+ option: option,
337
+ editable: !disabled
338
+ })
339
+ }), String(option.value)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tag.Tag, _objectSpread(_objectSpread({
340
+ onRemove: disabled ? undefined : function (evt) {
341
+ evt.stopPropagation();
342
+ multipleSelection.removeSelectedItem(option);
343
+ },
344
+ className: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["m-1 max-w-48 ", ""])), disabled && "opacity-50")
345
+ }, multipleSelection.getSelectedItemProps({
346
+ selectedItem: option,
347
+ index: index
348
+ })), {}, {
349
+ children: option.label
350
+ }), String(option.value));
351
+ }), shouldRenderCustomTemplate && renderValueTemplate({
352
+ option: value,
353
+ editable: !disabled
354
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({
355
+ "data-lpignore": true
356
+ }, inputProps), {}, {
357
+ id: id,
358
+ name: name,
359
+ type: "text",
360
+ placeholder: hasValue ? "" : placeholder,
361
+ autoComplete: "off",
362
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-input py-1.5"]))), multiple && (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["ml-1"]))), shouldRenderCustomTemplate && hasValue && (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["h-0 w-0 opacity-0"]))))
363
+ }))]
364
+ }), Boolean(showClearButton || endItem) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
365
+ className: (0, _clsx["default"])(showClearButton && endItem && (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["my-2 flex self-end space-x-4"])))),
366
+ children: [!!endItem && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
367
+ className: (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["text-grey-700 my-auto"]))),
368
+ children: endItem
369
+ }), showClearButton && /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
370
+ type: "button",
371
+ className: (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["w-6 h-6 flex items-center justify-center text-grey-500"]))),
372
+ onClick: function onClick() {
373
+ setInternalInputValue("");
374
+ multipleSelection.setSelectedItems([]);
375
+ },
376
+ "aria-label": locale.clearInputButton,
377
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icons.XIcon, {
378
+ size: ".75rem"
379
+ })
380
+ })]
381
+ })]
382
+ }), createPortal( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickAwayContainer.ClickAwayContainer, {
383
+ element: menuRef.current,
384
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Card.Card, _objectSpread(_objectSpread({}, menuPopper.attributes), {}, {
385
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["z-dropdown"]))), menuClassName),
386
+ style: _objectSpread(_objectSpread(_objectSpread({}, menuPopper.styles.popper), hideMenu && {
387
+ display: "none"
388
+ }), {}, {
389
+ minWidth: containerWidth,
390
+ maxWidth: "42vw"
391
+ }),
392
+ ref: menuRef,
393
+ elevation: "300",
394
+ fullBleed: true,
395
+ children: [hideMenu ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, combobox.getMenuProps())) : items.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, combobox.getMenuProps({
396
+ className: (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["min-h-10"])))
397
+ })), {}, {
398
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
399
+ role: "option",
400
+ "aria-disabled": "true",
401
+ "aria-selected": "false",
402
+ children: emptyState !== null && emptyState !== void 0 ? emptyState : /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoCompleteEmptyState.AutoCompleteEmptyState, {
403
+ title: locale.emptyStateTitle
404
+ })
405
+ })
406
+ })) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScrollIndicator.ScrollIndicator, {
407
+ className: menuSize === "large" ? (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["max-h-96"]))) : (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["max-h-64"]))),
408
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", _objectSpread(_objectSpread({}, combobox.getMenuProps()), {}, {
409
+ children: items.map(function (item, index) {
410
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", _objectSpread(_objectSpread({}, combobox.getItemProps({
411
+ item: item,
412
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["autocomplete-result flex items-center min-h-10 px-4 cursor-pointer"]))), index === combobox.highlightedIndex && (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100"]))), item.disabled && (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["cursor-not-allowed"]))))
413
+ })), {}, {
414
+ children: item.value === SHOW_ALL_ITEMS_ID ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
415
+ className: (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["w-full py-2 truncate text-center text-grey-900"]))),
416
+ children: item.label
417
+ }, item.value) : /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionItem, {
418
+ multiple: Boolean(multiple),
419
+ inputValue: inputValue,
420
+ highlighted: index === combobox.highlightedIndex,
421
+ option: item
422
+ })
423
+ }), String(item.value));
424
+ })
425
+ }))
426
+ }), !!menuFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)("footer", {
427
+ className: (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["flex items-center justify-center min-h-12 p-4 bg-grey-100 border-t border-grey-200 text-grey-600"]))),
428
+ children: menuFooter
429
+ })]
430
+ }))
431
+ }))]
432
+ })
433
+ });
434
+ };
@@ -0,0 +1,5 @@
1
+ export = autoCompletePlugin;
2
+ declare const autoCompletePlugin: {
3
+ handler: import("tailwindcss/types/config").PluginCreator;
4
+ config?: Partial<import("tailwindcss/types/config").Config> | undefined;
5
+ };
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ // @ts-check
4
+ var plugin = require("tailwindcss/plugin");
5
+ var disabledColor = require("../styles/disabledColor");
6
+ var rgba = require("../styles/rgba");
7
+ var autoCompletePlugin = plugin(function (_ref) {
8
+ var addComponents = _ref.addComponents,
9
+ theme = _ref.theme;
10
+ addComponents({
11
+ ".autocomplete-container": {
12
+ display: "flex",
13
+ alignItems: "center",
14
+ width: "100%",
15
+ minHeight: "2.5rem",
16
+ padding: "0 ".concat(theme("spacing.4")),
17
+ overflow: "hidden",
18
+ fontSize: theme("fontSize.base"),
19
+ lineHeight: theme("lineHeight.base"),
20
+ cursor: "text",
21
+ backgroundColor: theme("colors.white"),
22
+ borderRadius: theme("borderRadius.DEFAULT"),
23
+ border: "1px solid ".concat(theme("colors.grey.500")),
24
+ boxShadow: "inset 0px 1px 4px 0px ".concat(rgba(theme("colors.grey.500"), 0.3)),
25
+ transition: "all 100ms ease-in-out",
26
+ "&:not(.autocomplete-disabled, .autocomplete-focused):hover": {
27
+ borderColor: theme("colors.grey.600")
28
+ },
29
+ // Workaround for ie
30
+ "&::after": {
31
+ content: '" "',
32
+ display: "block",
33
+ minHeight: "30px",
34
+ // don't ask me why 30
35
+ fontSize: "0px"
36
+ },
37
+ "&.autocomplete-large": {
38
+ minHeight: "3rem",
39
+ "&::after": {
40
+ minHeight: "38px" // don't ask me why 38
41
+ }
42
+ }
43
+ },
44
+
45
+ ".autocomplete-focused, .autocomplete-container:focus-within": {
46
+ borderColor: theme("colors.accent.600"),
47
+ boxShadow: "0px 1px 0px 0px ".concat(theme("colors.shadow.5"))
48
+ },
49
+ ".autocomplete-disabled": {
50
+ cursor: "not-allowed",
51
+ backgroundImage: "linear-gradient(-180deg, ".concat(theme("colors.white"), " 0%, ").concat(theme("colors.grey.100"), " 100%)"),
52
+ borderColor: disabledColor(theme("colors.grey.200")),
53
+ boxShadow: "none",
54
+ ".autocomplete-input, .autocomplete-input::placeholder": {
55
+ color: theme("colors.grey.300"),
56
+ pointerEvents: "none"
57
+ }
58
+ },
59
+ ".autocomplete-invalid:not(.autocomplete-disabled)": {
60
+ backgroundColor: theme("colors.red.100"),
61
+ borderColor: theme("colors.red.700")
62
+ },
63
+ ".autocomplete-nowrap": {
64
+ overflowX: "scroll",
65
+ WebkitOverflowScrolling: "touch",
66
+ // Remove scrollbars
67
+ scrollbarWidth: "none",
68
+ msOverflowStyle: "-ms-autohiding-scrollbar",
69
+ "&::-webkit-scrollbar": {
70
+ width: "0px",
71
+ height: "0px"
72
+ }
73
+ },
74
+ ".autocomplete-input": {
75
+ flex: "1",
76
+ backgroundColor: "transparent",
77
+ caretColor: theme("colors.grey.600"),
78
+ color: theme("colors.grey.900"),
79
+ minWidth: "10ch",
80
+ "&:focus": {
81
+ outline: "none"
82
+ },
83
+ "&::placeholder": {
84
+ color: theme("colors.grey.600")
85
+ }
86
+ },
87
+ ".autocomplete-result": {
88
+ // Search highlight
89
+ "&:not([disabled]) em": {
90
+ fontStyle: "normal",
91
+ background: theme("colors.accent.300")
92
+ }
93
+ }
94
+ });
95
+ });
96
+ module.exports = autoCompletePlugin;
@@ -0,0 +1,10 @@
1
+ import type { PropsWithChildren, VFC } from "react";
2
+ import type { AutoCompleteLocale } from "../types";
3
+ declare type AutoCompleteContextType = {
4
+ locale: Required<AutoCompleteLocale>;
5
+ };
6
+ declare type AutoCompleteProviderProps = PropsWithChildren<AutoCompleteContextType>;
7
+ export declare const AutoCompleteProvider: VFC<AutoCompleteProviderProps>;
8
+ export declare const useIsInsideAutoComplete: () => boolean;
9
+ export declare const useAutoCompleteLocale: () => Required<AutoCompleteLocale>;
10
+ export {};
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useIsInsideAutoComplete = exports.useAutoCompleteLocale = exports.AutoCompleteProvider = void 0;
7
+ var _react = require("react");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ var AutoCompleteContext = /*#__PURE__*/(0, _react.createContext)(null);
10
+ var AutoCompleteProvider = exports.AutoCompleteProvider = function AutoCompleteProvider(_ref) {
11
+ var locale = _ref.locale,
12
+ children = _ref.children;
13
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(AutoCompleteContext.Provider, {
14
+ value: {
15
+ locale: locale
16
+ },
17
+ children: children
18
+ });
19
+ };
20
+ var useIsInsideAutoComplete = exports.useIsInsideAutoComplete = function useIsInsideAutoComplete() {
21
+ return !!(0, _react.useContext)(AutoCompleteContext);
22
+ };
23
+ var useAutoCompleteLocale = exports.useAutoCompleteLocale = function useAutoCompleteLocale() {
24
+ var context = (0, _react.useContext)(AutoCompleteContext);
25
+ if (!context) {
26
+ throw new Error("useAutoCompleteLocale must be used inside AutoCompleteProvider");
27
+ }
28
+ return context.locale;
29
+ };
@@ -0,0 +1,12 @@
1
+ import type { ReactNode, VFC } from "react";
2
+ import { type IconComponentType } from "../../Icons";
3
+ import type { MedallionVariant } from "../../Medallion";
4
+ export interface AutoCompleteEmptyStateProps {
5
+ icon?: IconComponentType;
6
+ variant?: MedallionVariant;
7
+ /** Descriptive title for state */
8
+ title: ReactNode;
9
+ /** Optional description to explain why the screen is empty or define next steps */
10
+ description?: ReactNode;
11
+ }
12
+ export declare const AutoCompleteEmptyState: VFC<AutoCompleteEmptyStateProps>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.AutoCompleteEmptyState = void 0;
8
+ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
+ var _Icons = require("../../Icons");
10
+ var _Medallion = require("../../Medallion");
11
+ var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ var _templateObject, _templateObject2, _templateObject3;
14
+ var AutoCompleteEmptyState = exports.AutoCompleteEmptyState = function AutoCompleteEmptyState(_ref) {
15
+ var _ref$icon = _ref.icon,
16
+ icon = _ref$icon === void 0 ? _Icons.XIcon : _ref$icon,
17
+ _ref$variant = _ref.variant,
18
+ variant = _ref$variant === void 0 ? "grey" : _ref$variant,
19
+ title = _ref.title,
20
+ description = _ref.description;
21
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
22
+ className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex flex-col items-center p-6"]))),
23
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Medallion.Medallion, {
24
+ icon: icon,
25
+ variant: variant
26
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
27
+ className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["font-semibold pt-4"]))),
28
+ children: title
29
+ }), !!description && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
30
+ className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["display-caption typo-subdued pt-4"]))),
31
+ children: description
32
+ })]
33
+ });
34
+ };
@@ -0,0 +1,6 @@
1
+ import type { VFC } from "react";
2
+ import type { AutoCompleteLocale, OptionItemProps } from "../types";
3
+ export declare type DefaultOptionItemProps = OptionItemProps & {
4
+ locale?: AutoCompleteLocale;
5
+ };
6
+ export declare const DefaultOptionItem: VFC<DefaultOptionItemProps>;