@algolia/satellite 1.0.0-beta.164 → 1.0.0-beta.166

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 (499) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  2. package/cjs/AnnouncementBadge/AnnouncementBadge.js +4 -6
  3. package/cjs/AnnouncementBadge/index.js +2 -2
  4. package/cjs/AutoComplete/AutoComplete.d.ts +3 -49
  5. package/cjs/AutoComplete/AutoComplete.js +362 -516
  6. package/cjs/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  7. package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +2 -4
  8. package/cjs/AutoComplete/components/AutocompleteContext.d.ts +5 -0
  9. package/cjs/AutoComplete/components/AutocompleteContext.js +19 -0
  10. package/cjs/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  11. package/cjs/AutoComplete/components/DefaultOptionItem.js +4 -5
  12. package/cjs/AutoComplete/index.d.ts +1 -0
  13. package/cjs/AutoComplete/index.js +14 -2
  14. package/cjs/AutoComplete/types.d.ts +10 -2
  15. package/cjs/AutoComplete/utils.d.ts +3 -0
  16. package/cjs/AutoComplete/utils.js +36 -6
  17. package/cjs/Avatars/ApplicationAvatar.js +2 -4
  18. package/cjs/Avatars/UserAvatar.js +4 -6
  19. package/cjs/Avatars/index.js +2 -2
  20. package/cjs/Avatars/utils.js +9 -13
  21. package/cjs/Badge/Badge.d.ts +0 -2
  22. package/cjs/Badge/Badge.js +6 -7
  23. package/cjs/Badge/index.js +2 -2
  24. package/cjs/Banners/Alert/Alert.d.ts +2 -2
  25. package/cjs/Banners/Alert/Alert.js +4 -5
  26. package/cjs/Banners/Alert/index.js +2 -2
  27. package/cjs/Banners/BigBertha/BigBertha.js +2 -4
  28. package/cjs/Banners/BigBertha/index.js +2 -2
  29. package/cjs/Banners/Promote/Promote.d.ts +0 -6
  30. package/cjs/Banners/Promote/Promote.js +2 -10
  31. package/cjs/Banners/Promote/index.js +2 -2
  32. package/cjs/Button/Button.js +4 -6
  33. package/cjs/Button/Button.tailwind.d.ts +1 -1
  34. package/cjs/Button/Button.tailwind.js +1 -1
  35. package/cjs/Button/ButtonGroup.d.ts +1 -1
  36. package/cjs/Button/ButtonGroup.js +2 -4
  37. package/cjs/Button/IconButton.d.ts +5 -0
  38. package/cjs/Button/IconButton.js +9 -6
  39. package/cjs/Button/PolymorphicButton.js +9 -8
  40. package/cjs/Button/PolymorphicIconButton.d.ts +5 -1
  41. package/cjs/Button/PolymorphicIconButton.js +14 -13
  42. package/cjs/Button/index.js +2 -2
  43. package/cjs/Button/styles.d.ts +1 -1
  44. package/cjs/Button/styles.js +8 -9
  45. package/cjs/Button/types.d.ts +3 -2
  46. package/cjs/Card/Card.d.ts +1 -1
  47. package/cjs/Card/Card.js +4 -6
  48. package/cjs/Card/Card.tailwind.d.ts +1 -1
  49. package/cjs/Card/components/CardHeader.js +4 -6
  50. package/cjs/Card/components/CardTitle.js +4 -6
  51. package/cjs/Card/index.js +2 -2
  52. package/cjs/Checkbox/Checkbox.d.ts +3 -3
  53. package/cjs/Checkbox/Checkbox.js +6 -8
  54. package/cjs/Checkbox/Checkbox.tailwind.d.ts +1 -1
  55. package/cjs/Checkbox/Checkbox.tailwind.js +5 -0
  56. package/cjs/Checkbox/index.js +2 -2
  57. package/cjs/ClickAwayContainer/ClickAwayContainer.js +5 -9
  58. package/cjs/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  59. package/cjs/DatePicker/DatePicker/DatePicker.js +11 -12
  60. package/cjs/DatePicker/DatePicker/datePickerReducer.js +8 -11
  61. package/cjs/DatePicker/DatePicker/index.js +2 -2
  62. package/cjs/DatePicker/DatePicker.tailwind.d.ts +1 -1
  63. package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +5 -7
  64. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +1 -2
  65. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +8 -11
  66. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +4 -7
  67. package/cjs/DatePicker/DateRangePicker/index.js +2 -2
  68. package/cjs/DatePicker/components/Calendar.js +3 -4
  69. package/cjs/DatePicker/components/Display.js +1 -2
  70. package/cjs/DatePicker/components/Footer.js +1 -2
  71. package/cjs/DatePicker/components/FooterActions.js +1 -2
  72. package/cjs/DatePicker/components/Modal.js +4 -6
  73. package/cjs/DatePicker/components/NavBar.js +3 -4
  74. package/cjs/DatePicker/components/SidePanel.js +1 -2
  75. package/cjs/DatePicker/index.d.ts +0 -1
  76. package/cjs/DatePicker/index.js +2 -17
  77. package/cjs/DatePicker/utils.js +3 -5
  78. package/cjs/Dropdown/Dropdown.js +5 -8
  79. package/cjs/Dropdown/DropdownButton.js +4 -6
  80. package/cjs/Dropdown/DropdownContext.js +3 -6
  81. package/cjs/Dropdown/components/DropdownButtonItem.d.ts +1 -1
  82. package/cjs/Dropdown/components/DropdownButtonItem.js +6 -7
  83. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +3 -5
  84. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +2 -3
  85. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +3 -5
  86. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +2 -3
  87. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +2 -3
  88. package/cjs/Dropdown/components/DropdownDivider.js +2 -4
  89. package/cjs/Dropdown/components/DropdownFooterItem.d.ts +1 -0
  90. package/cjs/Dropdown/components/DropdownFooterItem.js +4 -6
  91. package/cjs/Dropdown/components/DropdownLinkItem.js +6 -7
  92. package/cjs/Dropdown/components/DropdownRadioItem.js +4 -6
  93. package/cjs/Dropdown/components/DropdownTitle.js +4 -6
  94. package/cjs/Dropdown/components/DropdownToggleItem.js +6 -7
  95. package/cjs/Dropdown/index.js +2 -2
  96. package/cjs/Dropdown/useDropdownItemProps.js +4 -6
  97. package/cjs/Dropzone/Dropzone.js +6 -8
  98. package/cjs/Dropzone/index.js +2 -2
  99. package/cjs/EmptyState/EmptyState.js +26 -28
  100. package/cjs/EmptyState/EmptyState.tailwind.d.ts +1 -1
  101. package/cjs/EmptyState/index.js +2 -2
  102. package/cjs/EmptyState/types.d.ts +8 -23
  103. package/cjs/Field/Field.d.ts +0 -1
  104. package/cjs/Field/Field.js +4 -6
  105. package/cjs/Field/FieldStateContext.js +3 -6
  106. package/cjs/Field/index.js +2 -2
  107. package/cjs/Field/useFieldState.js +4 -6
  108. package/cjs/Flag/Flag.js +5 -7
  109. package/cjs/Flag/Flag.tailwind.d.ts +1 -1
  110. package/cjs/Flag/Flags.js +8 -9
  111. package/cjs/Flag/index.js +2 -2
  112. package/cjs/FlexGrid/FlexGrid.d.ts +1 -12
  113. package/cjs/FlexGrid/FlexGrid.js +2 -4
  114. package/cjs/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  115. package/cjs/FlexGrid/FlexGrid.tailwind.js +2 -2
  116. package/cjs/FlexGrid/index.js +2 -2
  117. package/cjs/HelpUnderline/HelpUnderline.js +4 -6
  118. package/cjs/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  119. package/cjs/HelpUnderline/index.js +2 -2
  120. package/cjs/Input/Input.d.ts +4 -1
  121. package/cjs/Input/Input.js +11 -11
  122. package/cjs/Input/Input.tailwind.d.ts +1 -1
  123. package/cjs/Input/index.js +2 -2
  124. package/cjs/Insert/Insert.js +2 -4
  125. package/cjs/Insert/index.js +2 -2
  126. package/cjs/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  127. package/cjs/KeyboardKey/KeyboardKey.js +2 -3
  128. package/cjs/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  129. package/cjs/Link/BaseLink.js +4 -6
  130. package/cjs/Link/ButtonLink.js +4 -6
  131. package/cjs/Link/IconButtonLink.js +4 -6
  132. package/cjs/Link/Link.js +8 -8
  133. package/cjs/Link/index.js +2 -2
  134. package/cjs/Medallion/Medallion.d.ts +1 -0
  135. package/cjs/Medallion/Medallion.js +2 -4
  136. package/cjs/Medallion/Medallion.tailwind.d.ts +1 -1
  137. package/cjs/Medallion/index.js +2 -2
  138. package/cjs/Modal/Modal.js +12 -13
  139. package/cjs/Modal/Modal.tailwind.d.ts +1 -1
  140. package/cjs/Modal/components/ModalFooter.js +4 -6
  141. package/cjs/Modal/components/ModalSection.js +2 -4
  142. package/cjs/Modal/index.js +2 -2
  143. package/cjs/Pagination/CompactPagination/CompactPagination.js +6 -10
  144. package/cjs/Pagination/CompactPagination/index.js +2 -2
  145. package/cjs/Pagination/DotPagination/DotPagination.js +5 -7
  146. package/cjs/Pagination/DotPagination/index.js +2 -2
  147. package/cjs/Pagination/Pagination/Pagination.js +6 -8
  148. package/cjs/Pagination/Pagination/index.js +2 -2
  149. package/cjs/Pagination/index.js +2 -2
  150. package/cjs/Popover/Popover.d.ts +5 -0
  151. package/cjs/Popover/Popover.js +137 -0
  152. package/cjs/Popover/index.d.ts +3 -0
  153. package/cjs/Popover/index.js +36 -0
  154. package/cjs/Popover/types.d.ts +74 -0
  155. package/cjs/Popover/types.js +5 -0
  156. package/cjs/ProgressBar/ProgressBar.d.ts +7 -4
  157. package/cjs/ProgressBar/ProgressBar.js +29 -22
  158. package/cjs/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  159. package/cjs/ProgressBar/index.js +2 -2
  160. package/cjs/ProgressSpinner/ProgressSpinner.js +4 -6
  161. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  162. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +8 -0
  163. package/cjs/ProgressSpinner/index.js +2 -2
  164. package/cjs/RadioGroup/RadioButton.d.ts +1 -1
  165. package/cjs/RadioGroup/RadioButton.js +4 -6
  166. package/cjs/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  167. package/cjs/RadioGroup/RadioButton.tailwind.js +3 -0
  168. package/cjs/RadioGroup/RadioGroup.d.ts +1 -0
  169. package/cjs/RadioGroup/RadioGroup.js +3 -6
  170. package/cjs/RadioGroup/RadiogroupContext.d.ts +1 -4
  171. package/cjs/RadioGroup/RadiogroupContext.js +3 -5
  172. package/cjs/RadioGroup/index.js +2 -2
  173. package/cjs/RangeSlider/RangeSlider.d.ts +2 -0
  174. package/cjs/RangeSlider/RangeSlider.js +4 -6
  175. package/cjs/RangeSlider/index.js +2 -2
  176. package/cjs/Satellite/Satellite.js +5 -7
  177. package/cjs/Satellite/SatelliteContext.js +5 -8
  178. package/cjs/Satellite/SatelliteRouter.js +2 -4
  179. package/cjs/Satellite/index.js +2 -2
  180. package/cjs/Satellite/locale.d.ts +2 -0
  181. package/cjs/Satellite/locale.js +2 -3
  182. package/cjs/Satellite/useCreatePortal.js +2 -3
  183. package/cjs/ScrollIndicator/ScrollIndicator.js +2 -4
  184. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  185. package/cjs/ScrollIndicator/index.js +2 -2
  186. package/cjs/Select/Select.js +4 -6
  187. package/cjs/Select/Select.tailwind.d.ts +1 -1
  188. package/cjs/Select/index.js +2 -2
  189. package/cjs/Separator/Separator.d.ts +1 -0
  190. package/cjs/Separator/Separator.js +21 -11
  191. package/cjs/Separator/Separator.tailwind.d.ts +1 -1
  192. package/cjs/Separator/Separator.tailwind.js +31 -2
  193. package/cjs/Separator/index.js +2 -2
  194. package/cjs/Sidebar/Sidebar.d.ts +1 -0
  195. package/cjs/Sidebar/Sidebar.js +4 -5
  196. package/cjs/Sidebar/SidebarButtonLink.js +4 -5
  197. package/cjs/Sidebar/SidebarContext.js +3 -5
  198. package/cjs/Sidebar/SidebarHeader.d.ts +1 -0
  199. package/cjs/Sidebar/SidebarHeader.js +2 -3
  200. package/cjs/Sidebar/SidebarHeading.d.ts +1 -0
  201. package/cjs/Sidebar/SidebarHeading.js +2 -3
  202. package/cjs/Sidebar/SidebarLink.js +4 -5
  203. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -0
  204. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +3 -4
  205. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +4 -5
  206. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +1 -0
  207. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +8 -8
  208. package/cjs/Sidebar/SidebarNav.d.ts +1 -0
  209. package/cjs/Sidebar/SidebarNav.js +2 -3
  210. package/cjs/Switch/Switch.d.ts +1 -0
  211. package/cjs/Switch/Switch.js +5 -5
  212. package/cjs/Switch/Switch.tailwind.d.ts +1 -1
  213. package/cjs/Switch/SwitchOption.js +5 -7
  214. package/cjs/Switch/index.js +2 -2
  215. package/cjs/Switch/utils.js +5 -9
  216. package/cjs/Tables/DataTable/DataTable.d.ts +8 -1
  217. package/cjs/Tables/DataTable/DataTable.js +6 -8
  218. package/cjs/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  219. package/cjs/Tables/DataTable/components/Body.js +4 -6
  220. package/cjs/Tables/DataTable/components/Footer.js +6 -8
  221. package/cjs/Tables/DataTable/components/Header.js +2 -4
  222. package/cjs/Tables/DataTable/components/HeaderCell.js +6 -8
  223. package/cjs/Tables/DataTable/components/Loader.d.ts +1 -0
  224. package/cjs/Tables/DataTable/components/Loader.js +3 -5
  225. package/cjs/Tables/DataTable/index.js +2 -2
  226. package/cjs/Tables/DataTable/types.d.ts +14 -0
  227. package/cjs/Tables/DataTable/utils.js +4 -7
  228. package/cjs/Tables/Table/Table.js +4 -6
  229. package/cjs/Tables/Table/Table.tailwind.d.ts +1 -1
  230. package/cjs/Tables/Table/components/TableFooter.js +2 -4
  231. package/cjs/Tables/Table/index.js +2 -2
  232. package/cjs/Tables/index.js +2 -2
  233. package/cjs/Tabs/ContentTabs.js +2 -4
  234. package/cjs/Tabs/LinkTabs.js +3 -6
  235. package/cjs/Tabs/Tabs.tailwind.d.ts +1 -1
  236. package/cjs/Tabs/Tabs.tailwind.js +20 -1
  237. package/cjs/Tabs/components/LinkTab.js +12 -14
  238. package/cjs/Tabs/index.js +2 -2
  239. package/cjs/Tabs/types.d.ts +0 -1
  240. package/cjs/Tabs/utils.js +2 -3
  241. package/cjs/Tag/Tag.d.ts +7 -17
  242. package/cjs/Tag/Tag.js +16 -12
  243. package/cjs/Tag/Tag.tailwind.d.ts +1 -1
  244. package/cjs/Tag/index.js +2 -2
  245. package/cjs/TextArea/TextArea.js +4 -6
  246. package/cjs/TextArea/TextArea.tailwind.d.ts +1 -1
  247. package/cjs/TextArea/index.js +2 -2
  248. package/cjs/TextWrap/TextWrap.js +4 -6
  249. package/cjs/TextWrap/index.js +2 -2
  250. package/cjs/Toggle/Toggle.d.ts +6 -2
  251. package/cjs/Toggle/Toggle.js +26 -13
  252. package/cjs/Toggle/Toggle.tailwind.d.ts +1 -1
  253. package/cjs/Toggle/Toggle.tailwind.js +18 -6
  254. package/cjs/Toggle/index.js +2 -2
  255. package/cjs/Tooltip/OverflowTooltipWrapper.js +4 -5
  256. package/cjs/Tooltip/Tooltip.d.ts +1 -1
  257. package/cjs/Tooltip/Tooltip.js +4 -6
  258. package/cjs/Tooltip/Tooltip.tailwind.d.ts +1 -1
  259. package/cjs/Tooltip/Tooltip.tailwind.js +1 -91
  260. package/cjs/Tooltip/TooltipWrapper.d.ts +2 -2
  261. package/cjs/Tooltip/TooltipWrapper.js +7 -8
  262. package/cjs/Tooltip/index.js +2 -2
  263. package/cjs/Tooltip/types.d.ts +15 -15
  264. package/cjs/Tooltip/utils.js +2 -3
  265. package/cjs/Typography/Typography.tailwind.d.ts +1 -1
  266. package/cjs/Typography/Typography.tailwind.js +2 -2
  267. package/cjs/UserContent/UserContent.d.ts +1 -0
  268. package/cjs/UserContent/UserContent.js +2 -4
  269. package/cjs/UserContent/UserContent.tailwind.d.ts +1 -1
  270. package/cjs/UserContent/UserContent.tailwind.js +2 -2
  271. package/cjs/styles/base.tailwind.d.ts +1 -1
  272. package/cjs/styles/helpers/makePurgeCssExtractor.js +1 -1
  273. package/cjs/styles/tailwind.config.js +3 -3
  274. package/cjs/styles/zIndexes.d.ts +1 -0
  275. package/cjs/styles/zIndexes.js +4 -3
  276. package/cjs/types.d.ts +3 -4
  277. package/cjs/utilities/overlay.tailwind.d.ts +5 -0
  278. package/cjs/utilities/overlay.tailwind.js +107 -0
  279. package/cjs/utilities/utilities.tailwind.d.ts +1 -1
  280. package/cjs/utils/clamp.d.ts +1 -0
  281. package/cjs/utils/clamp.js +9 -0
  282. package/cjs/utils/genericChangeHandler.js +1 -2
  283. package/cjs/utils/hashCode.js +2 -4
  284. package/cjs/utils/isCssPropertySupported.d.ts +1 -1
  285. package/cjs/utils/isCssPropertySupported.js +1 -2
  286. package/cjs/utils/isNil.js +2 -4
  287. package/cjs/utils/isReactText.js +2 -3
  288. package/cjs/utils/isRenderedChild.js +1 -2
  289. package/cjs/utils/matchLocation.js +1 -2
  290. package/cjs/utils/onlyText.js +1 -2
  291. package/cjs/utils/parseUrl.js +2 -4
  292. package/cjs/utils/pluralize.js +1 -2
  293. package/cjs/utils/prefersReducedMotion.d.ts +6 -0
  294. package/cjs/utils/prefersReducedMotion.js +13 -0
  295. package/cjs/utils/range.js +1 -2
  296. package/cjs/utils/toSentenceCase.js +2 -4
  297. package/cjs/utils/uniqBy.js +1 -2
  298. package/cjs/utils/uniqueId.js +1 -2
  299. package/cjs/utils/useForwardedRef.js +1 -2
  300. package/cjs/utils/useLinkProps.js +2 -4
  301. package/cjs/utils/useTriggerInputChange.js +1 -2
  302. package/esm/AnnouncementBadge/AnnouncementBadge.d.ts +3 -3
  303. package/esm/AnnouncementBadge/AnnouncementBadge.js +2 -2
  304. package/esm/AutoComplete/AutoComplete.d.ts +3 -49
  305. package/esm/AutoComplete/AutoComplete.js +365 -517
  306. package/esm/AutoComplete/AutoComplete.tailwind.d.ts +1 -1
  307. package/esm/AutoComplete/components/AutocompleteContext.d.ts +5 -0
  308. package/esm/AutoComplete/components/AutocompleteContext.js +13 -0
  309. package/esm/AutoComplete/components/DefaultOptionItem.d.ts +2 -2
  310. package/esm/AutoComplete/components/DefaultOptionItem.js +2 -2
  311. package/esm/AutoComplete/index.d.ts +1 -0
  312. package/esm/AutoComplete/index.js +1 -0
  313. package/esm/AutoComplete/types.d.ts +10 -2
  314. package/esm/AutoComplete/utils.d.ts +3 -0
  315. package/esm/AutoComplete/utils.js +31 -1
  316. package/esm/Avatars/UserAvatar.js +2 -2
  317. package/esm/Avatars/utils.js +2 -2
  318. package/esm/Badge/Badge.d.ts +0 -2
  319. package/esm/Badge/Badge.js +4 -3
  320. package/esm/Banners/Alert/Alert.d.ts +2 -2
  321. package/esm/Banners/Alert/Alert.js +2 -1
  322. package/esm/Banners/Promote/Promote.d.ts +0 -6
  323. package/esm/Banners/Promote/Promote.js +0 -6
  324. package/esm/Button/Button.js +2 -2
  325. package/esm/Button/Button.tailwind.d.ts +1 -1
  326. package/esm/Button/Button.tailwind.js +1 -1
  327. package/esm/Button/ButtonGroup.d.ts +1 -1
  328. package/esm/Button/IconButton.d.ts +5 -0
  329. package/esm/Button/IconButton.js +7 -2
  330. package/esm/Button/PolymorphicButton.js +6 -4
  331. package/esm/Button/PolymorphicIconButton.d.ts +5 -1
  332. package/esm/Button/PolymorphicIconButton.js +13 -11
  333. package/esm/Button/styles.d.ts +1 -1
  334. package/esm/Button/styles.js +3 -0
  335. package/esm/Button/types.d.ts +3 -2
  336. package/esm/Card/Card.d.ts +1 -1
  337. package/esm/Card/Card.js +2 -2
  338. package/esm/Card/Card.tailwind.d.ts +1 -1
  339. package/esm/Card/components/CardHeader.js +2 -2
  340. package/esm/Card/components/CardTitle.js +2 -2
  341. package/esm/Checkbox/Checkbox.d.ts +3 -3
  342. package/esm/Checkbox/Checkbox.js +4 -4
  343. package/esm/Checkbox/Checkbox.tailwind.d.ts +1 -1
  344. package/esm/Checkbox/Checkbox.tailwind.js +5 -0
  345. package/esm/ClickAwayContainer/ClickAwayContainer.js +1 -1
  346. package/esm/DatePicker/DatePicker/DatePicker.d.ts +1 -1
  347. package/esm/DatePicker/DatePicker/DatePicker.js +9 -9
  348. package/esm/DatePicker/DatePicker/datePickerReducer.js +5 -5
  349. package/esm/DatePicker/DatePicker.tailwind.d.ts +1 -1
  350. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +3 -3
  351. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +5 -5
  352. package/esm/DatePicker/components/Calendar.js +2 -2
  353. package/esm/DatePicker/components/Modal.js +2 -2
  354. package/esm/DatePicker/components/NavBar.js +2 -2
  355. package/esm/DatePicker/index.d.ts +0 -1
  356. package/esm/DatePicker/index.js +0 -1
  357. package/esm/Dropdown/Dropdown.js +2 -2
  358. package/esm/Dropdown/DropdownButton.js +2 -2
  359. package/esm/Dropdown/components/DropdownButtonItem.d.ts +1 -1
  360. package/esm/Dropdown/components/DropdownButtonItem.js +4 -3
  361. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +1 -1
  362. package/esm/Dropdown/components/DropdownFooterItem.d.ts +1 -0
  363. package/esm/Dropdown/components/DropdownFooterItem.js +2 -2
  364. package/esm/Dropdown/components/DropdownLinkItem.js +4 -3
  365. package/esm/Dropdown/components/DropdownRadioItem.js +2 -2
  366. package/esm/Dropdown/components/DropdownTitle.js +2 -2
  367. package/esm/Dropdown/components/DropdownToggleItem.js +4 -3
  368. package/esm/Dropdown/useDropdownItemProps.js +2 -2
  369. package/esm/Dropzone/Dropzone.js +4 -4
  370. package/esm/EmptyState/EmptyState.js +24 -24
  371. package/esm/EmptyState/EmptyState.tailwind.d.ts +1 -1
  372. package/esm/EmptyState/types.d.ts +8 -23
  373. package/esm/Field/Field.d.ts +0 -1
  374. package/esm/Flag/Flag.js +3 -3
  375. package/esm/Flag/Flag.tailwind.d.ts +1 -1
  376. package/esm/Flag/Flags.js +6 -5
  377. package/esm/FlexGrid/FlexGrid.d.ts +1 -12
  378. package/esm/FlexGrid/FlexGrid.tailwind.d.ts +1 -1
  379. package/esm/FlexGrid/FlexGrid.tailwind.js +2 -2
  380. package/esm/HelpUnderline/HelpUnderline.js +2 -2
  381. package/esm/HelpUnderline/HelpUnderline.tailwind.d.ts +1 -1
  382. package/esm/Input/Input.d.ts +4 -1
  383. package/esm/Input/Input.js +9 -7
  384. package/esm/Input/Input.tailwind.d.ts +1 -1
  385. package/esm/InstantSearch/InstantSearch.tailwind.d.ts +1 -1
  386. package/esm/KeyboardKey/KeyboardKey.tailwind.d.ts +1 -1
  387. package/esm/Link/BaseLink.js +2 -2
  388. package/esm/Link/ButtonLink.js +2 -2
  389. package/esm/Link/IconButtonLink.js +2 -2
  390. package/esm/Link/Link.js +6 -4
  391. package/esm/Medallion/Medallion.d.ts +1 -0
  392. package/esm/Medallion/Medallion.tailwind.d.ts +1 -1
  393. package/esm/Modal/Modal.js +8 -7
  394. package/esm/Modal/Modal.tailwind.d.ts +1 -1
  395. package/esm/Modal/components/ModalFooter.js +2 -2
  396. package/esm/Pagination/CompactPagination/CompactPagination.js +2 -2
  397. package/esm/Pagination/DotPagination/DotPagination.js +3 -3
  398. package/esm/Pagination/Pagination/Pagination.js +2 -2
  399. package/esm/Popover/Popover.d.ts +5 -0
  400. package/esm/Popover/Popover.js +129 -0
  401. package/esm/Popover/index.d.ts +3 -0
  402. package/esm/Popover/index.js +3 -0
  403. package/esm/Popover/types.d.ts +74 -0
  404. package/esm/Popover/types.js +1 -0
  405. package/esm/ProgressBar/ProgressBar.d.ts +7 -4
  406. package/esm/ProgressBar/ProgressBar.js +24 -18
  407. package/esm/ProgressBar/ProgressBar.tailwind.d.ts +1 -1
  408. package/esm/ProgressSpinner/ProgressSpinner.js +2 -2
  409. package/esm/ProgressSpinner/ProgressSpinner.tailwind.d.ts +1 -1
  410. package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +8 -0
  411. package/esm/RadioGroup/RadioButton.d.ts +1 -1
  412. package/esm/RadioGroup/RadioButton.js +2 -2
  413. package/esm/RadioGroup/RadioButton.tailwind.d.ts +1 -1
  414. package/esm/RadioGroup/RadioButton.tailwind.js +3 -0
  415. package/esm/RadioGroup/RadioGroup.d.ts +1 -0
  416. package/esm/RadioGroup/RadiogroupContext.d.ts +1 -4
  417. package/esm/RangeSlider/RangeSlider.d.ts +2 -0
  418. package/esm/RangeSlider/RangeSlider.js +2 -2
  419. package/esm/Satellite/Satellite.js +4 -4
  420. package/esm/Satellite/SatelliteContext.js +2 -2
  421. package/esm/Satellite/locale.d.ts +2 -0
  422. package/esm/ScrollIndicator/ScrollIndicator.tailwind.d.ts +1 -1
  423. package/esm/Select/Select.js +2 -2
  424. package/esm/Select/Select.tailwind.d.ts +1 -1
  425. package/esm/Separator/Separator.d.ts +1 -0
  426. package/esm/Separator/Separator.js +17 -5
  427. package/esm/Separator/Separator.tailwind.d.ts +1 -1
  428. package/esm/Separator/Separator.tailwind.js +31 -2
  429. package/esm/Sidebar/Sidebar.d.ts +1 -0
  430. package/esm/Sidebar/Sidebar.js +2 -2
  431. package/esm/Sidebar/SidebarButtonLink.js +2 -2
  432. package/esm/Sidebar/SidebarHeader.d.ts +1 -0
  433. package/esm/Sidebar/SidebarHeading.d.ts +1 -0
  434. package/esm/Sidebar/SidebarLink.js +2 -2
  435. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.d.ts +1 -0
  436. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +1 -1
  437. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +2 -2
  438. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.d.ts +1 -0
  439. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +6 -5
  440. package/esm/Sidebar/SidebarNav.d.ts +1 -0
  441. package/esm/Switch/Switch.d.ts +1 -0
  442. package/esm/Switch/Switch.js +3 -1
  443. package/esm/Switch/Switch.tailwind.d.ts +1 -1
  444. package/esm/Switch/SwitchOption.js +3 -3
  445. package/esm/Tables/DataTable/DataTable.d.ts +8 -1
  446. package/esm/Tables/DataTable/DataTable.js +4 -4
  447. package/esm/Tables/DataTable/DataTable.tailwind.d.ts +1 -1
  448. package/esm/Tables/DataTable/components/Body.js +2 -2
  449. package/esm/Tables/DataTable/components/Footer.js +2 -2
  450. package/esm/Tables/DataTable/components/HeaderCell.js +4 -4
  451. package/esm/Tables/DataTable/components/Loader.d.ts +1 -0
  452. package/esm/Tables/DataTable/components/Loader.js +1 -1
  453. package/esm/Tables/DataTable/types.d.ts +14 -0
  454. package/esm/Tables/Table/Table.js +2 -2
  455. package/esm/Tables/Table/Table.tailwind.d.ts +1 -1
  456. package/esm/Tabs/Tabs.tailwind.d.ts +1 -1
  457. package/esm/Tabs/Tabs.tailwind.js +20 -1
  458. package/esm/Tabs/components/LinkTab.js +10 -10
  459. package/esm/Tabs/types.d.ts +0 -1
  460. package/esm/Tag/Tag.d.ts +7 -17
  461. package/esm/Tag/Tag.js +14 -8
  462. package/esm/Tag/Tag.tailwind.d.ts +1 -1
  463. package/esm/TextArea/TextArea.js +2 -2
  464. package/esm/TextArea/TextArea.tailwind.d.ts +1 -1
  465. package/esm/TextWrap/TextWrap.js +2 -2
  466. package/esm/Toggle/Toggle.d.ts +6 -2
  467. package/esm/Toggle/Toggle.js +24 -9
  468. package/esm/Toggle/Toggle.tailwind.d.ts +1 -1
  469. package/esm/Toggle/Toggle.tailwind.js +18 -6
  470. package/esm/Tooltip/OverflowTooltipWrapper.js +2 -2
  471. package/esm/Tooltip/Tooltip.d.ts +1 -1
  472. package/esm/Tooltip/Tooltip.js +2 -2
  473. package/esm/Tooltip/Tooltip.tailwind.d.ts +1 -1
  474. package/esm/Tooltip/Tooltip.tailwind.js +1 -90
  475. package/esm/Tooltip/TooltipWrapper.d.ts +2 -2
  476. package/esm/Tooltip/TooltipWrapper.js +3 -3
  477. package/esm/Tooltip/types.d.ts +15 -15
  478. package/esm/Typography/Typography.tailwind.d.ts +1 -1
  479. package/esm/Typography/Typography.tailwind.js +2 -2
  480. package/esm/UserContent/UserContent.d.ts +1 -0
  481. package/esm/UserContent/UserContent.tailwind.d.ts +1 -1
  482. package/esm/UserContent/UserContent.tailwind.js +2 -2
  483. package/esm/styles/base.tailwind.d.ts +1 -1
  484. package/esm/styles/helpers/makePurgeCssExtractor.js +1 -1
  485. package/esm/styles/tailwind.config.js +3 -3
  486. package/esm/styles/zIndexes.d.ts +1 -0
  487. package/esm/styles/zIndexes.js +4 -3
  488. package/esm/types.d.ts +3 -4
  489. package/esm/utilities/overlay.tailwind.d.ts +5 -0
  490. package/esm/utilities/overlay.tailwind.js +106 -0
  491. package/esm/utilities/utilities.tailwind.d.ts +1 -1
  492. package/esm/utils/clamp.d.ts +1 -0
  493. package/esm/utils/clamp.js +3 -0
  494. package/esm/utils/isCssPropertySupported.d.ts +1 -1
  495. package/esm/utils/prefersReducedMotion.d.ts +6 -0
  496. package/esm/utils/prefersReducedMotion.js +7 -0
  497. package/package.json +10 -7
  498. package/satellite.min.css +1 -1
  499. package/scss/variables.scss +4 -3
@@ -2,7 +2,7 @@
2
2
 
3
3
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
4
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
5
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
6
6
  // @ts-check
7
7
  var prefixTailwindClassName = require("./prefixTailwindClassName");
8
8
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
5
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ 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; }
6
+ 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; }
7
7
  // @ts-check
8
8
 
9
9
  var colors = require("./colors");
@@ -142,5 +142,5 @@ module.exports = {
142
142
  }
143
143
  }
144
144
  },
145
- plugins: [require("./base.tailwind"), require("../utilities/utilities.tailwind"), require("../Typography/Typography.tailwind"), require("../FlexGrid/FlexGrid.tailwind"), require("../AutoComplete/AutoComplete.tailwind"), require("../Button/Button.tailwind"), require("../Card/Card.tailwind"), require("../Checkbox/Checkbox.tailwind"), require("../EmptyState/EmptyState.tailwind"), require("../Flag/Flag.tailwind"), require("../HelpUnderline/HelpUnderline.tailwind"), require("../Input/Input.tailwind"), require("../InstantSearch/InstantSearch.tailwind"), require("../KeyboardKey/KeyboardKey.tailwind"), require("../Medallion/Medallion.tailwind"), require("../Modal/Modal.tailwind"), require("../ProgressBar/ProgressBar.tailwind"), require("../ProgressSpinner/ProgressSpinner.tailwind"), require("../RadioGroup/RadioButton.tailwind"), require("../ScrollIndicator/ScrollIndicator.tailwind"), require("../Select/Select.tailwind"), require("../Separator/Separator.tailwind"), require("../Switch/Switch.tailwind"), require("../Tabs/Tabs.tailwind"), require("../Tables/DataTable/DataTable.tailwind"), require("../Tables/Table/Table.tailwind"), require("../Tag/Tag.tailwind"), require("../TextArea/TextArea.tailwind"), require("../Toggle/Toggle.tailwind"), require("../Tooltip/Tooltip.tailwind"), require("../UserContent/UserContent.tailwind"), require("../DatePicker/DatePicker.tailwind")]
145
+ plugins: [require("./base.tailwind"), require("../utilities/overlay.tailwind"), require("../utilities/utilities.tailwind"), require("../Typography/Typography.tailwind"), require("../FlexGrid/FlexGrid.tailwind"), require("../AutoComplete/AutoComplete.tailwind"), require("../Button/Button.tailwind"), require("../Card/Card.tailwind"), require("../Checkbox/Checkbox.tailwind"), require("../EmptyState/EmptyState.tailwind"), require("../Flag/Flag.tailwind"), require("../HelpUnderline/HelpUnderline.tailwind"), require("../Input/Input.tailwind"), require("../InstantSearch/InstantSearch.tailwind"), require("../KeyboardKey/KeyboardKey.tailwind"), require("../Medallion/Medallion.tailwind"), require("../Modal/Modal.tailwind"), require("../ProgressBar/ProgressBar.tailwind"), require("../ProgressSpinner/ProgressSpinner.tailwind"), require("../RadioGroup/RadioButton.tailwind"), require("../ScrollIndicator/ScrollIndicator.tailwind"), require("../Select/Select.tailwind"), require("../Separator/Separator.tailwind"), require("../Switch/Switch.tailwind"), require("../Tabs/Tabs.tailwind"), require("../Tables/DataTable/DataTable.tailwind"), require("../Tables/Table/Table.tailwind"), require("../Tag/Tag.tailwind"), require("../TextArea/TextArea.tailwind"), require("../Toggle/Toggle.tailwind"), require("../Tooltip/Tooltip.tailwind"), require("../UserContent/UserContent.tailwind"), require("../DatePicker/DatePicker.tailwind")]
146
146
  };
@@ -2,6 +2,7 @@ export const sidebar: number;
2
2
  export const fullPageLayout: number;
3
3
  export const modalOverlay: number;
4
4
  export const modal: number;
5
+ export const popover: number;
5
6
  export const dropdown: number;
6
7
  export const notification: number;
7
8
  export const tooltip: number;
@@ -7,8 +7,9 @@ var zIndexes = {
7
7
  fullPageLayout: 250,
8
8
  modalOverlay: 300,
9
9
  modal: 400,
10
- dropdown: 450,
11
- notification: 500,
12
- tooltip: 550
10
+ popover: 450,
11
+ dropdown: 500,
12
+ notification: 550,
13
+ tooltip: 600
13
14
  };
14
15
  module.exports = zIndexes;
package/cjs/types.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import type { ComponentType } from "react";
2
- import type { IconProps as FeatherIconProps } from "react-feather";
3
- export declare type IconProps = FeatherIconProps;
4
- export declare type IconComponentType = ComponentType<IconProps>;
1
+ import type { ComponentClass, SVGAttributes, VoidFunctionComponent } from "react";
2
+ export declare type IconProps = SVGAttributes<SVGElement>;
3
+ export declare type IconComponentType = VoidFunctionComponent<IconProps> | ComponentClass<IconProps>;
5
4
  export declare type ColorVariant = "accent" | "grey" | "green" | "blue" | "orange" | "red";
6
5
  /**
7
6
  * Ensures at least one type is required
@@ -0,0 +1,5 @@
1
+ declare const _exports: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
+ };
5
+ export = _exports;
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+
3
+ // @ts-check
4
+ var plugin = require("tailwindcss/plugin");
5
+ module.exports = plugin(function (_ref) {
6
+ var addUtilities = _ref.addUtilities,
7
+ theme = _ref.theme;
8
+ /** @type {string} */
9
+ var lightBackground = theme("colors.white");
10
+ /** @type {string} */
11
+ var darkBackground = theme("colors.grey.900");
12
+ addUtilities({
13
+ // Since Radix relies on a SVG for the arrow, we use the stroke property
14
+ // with a dash array/offset to create a border around the arrow.
15
+ ".arrow-light": {
16
+ fill: lightBackground,
17
+ stroke: theme("colors.shadow.5"),
18
+ strokeWidth: "3px",
19
+ strokeDasharray: "36",
20
+ strokeDashoffset: "-30"
21
+ },
22
+ ".arrow-dark": {
23
+ fill: darkBackground
24
+ }
25
+ });
26
+ var animationDuration = "100ms";
27
+ var animationEasing = "cubic-bezier(.17,.61,.4,.95)";
28
+ addUtilities({
29
+ /* eslint-disable @algolia/satellite/prefer-stl-helper */
30
+ "@keyframes stl-slide-slide-down-and-fade": {
31
+ from: {
32
+ opacity: "0",
33
+ transform: "translateY(-2px)"
34
+ },
35
+ to: {
36
+ opacity: "1",
37
+ transform: "translateY(0)"
38
+ }
39
+ },
40
+ "@keyframes stl-slide-slide-left-and-fade": {
41
+ from: {
42
+ opacity: "0",
43
+ transform: "translateX(2px)"
44
+ },
45
+ to: {
46
+ opacity: "1",
47
+ transform: "translateX(0)"
48
+ }
49
+ },
50
+ "@keyframes stl-slide-slide-up-and-fade": {
51
+ from: {
52
+ opacity: "0",
53
+ transform: "translateY(2px)"
54
+ },
55
+ to: {
56
+ opacity: "1",
57
+ transform: "translateY(0)"
58
+ }
59
+ },
60
+ "@keyframes stl-slide-slide-right-and-fade": {
61
+ from: {
62
+ opacity: "0",
63
+ transform: "translateX(-2px)"
64
+ },
65
+ to: {
66
+ opacity: "1",
67
+ transform: "translateX(0)"
68
+ }
69
+ },
70
+ "@keyframes stl-slide-fade-out": {
71
+ from: {
72
+ opacity: "1"
73
+ },
74
+ to: {
75
+ opacity: "0"
76
+ }
77
+ },
78
+ ".animate-slide": {
79
+ // Even if the user has enabled reduced motion,
80
+ // we still need to keep this animation to handle the hide delay.
81
+ '&[data-state="closed"]': {
82
+ animation: "stl-slide-fade-out 0ms linear var(--slide-hide-delay, 0ms)"
83
+ },
84
+ "@media (prefers-reduced-motion: no-preference)": {
85
+ willChange: "transform, opacity",
86
+ '&[data-state="open"], &[data-state="delayed-open"]': {
87
+ '&[data-side="top"]': {
88
+ animation: "stl-slide-slide-down-and-fade ".concat(animationDuration, " ").concat(animationEasing)
89
+ },
90
+ '&[data-side="right"]': {
91
+ animation: "stl-slide-slide-left-and-fade ".concat(animationDuration, " ").concat(animationEasing)
92
+ },
93
+ '&[data-side="left"]': {
94
+ animation: "stl-slide-slide-right-and-fade ".concat(animationDuration, " ").concat(animationEasing)
95
+ },
96
+ '&[data-side="bottom"]': {
97
+ animation: "stl-slide-slide-up-and-fade ".concat(animationDuration, " ").concat(animationEasing)
98
+ }
99
+ },
100
+ '&[data-state="closed"]': {
101
+ animation: "stl-slide-fade-out ".concat(animationDuration, " ").concat(animationEasing, " var(--slide-hide-delay, 0ms)")
102
+ }
103
+ }
104
+ }
105
+ /* eslint-enable @algolia/satellite/prefer-stl-helper */
106
+ });
107
+ });
@@ -1,5 +1,5 @@
1
1
  declare const _exports: {
2
2
  handler: import("tailwindcss/types/config").PluginCreator;
3
- config?: Partial<import("tailwindcss").Config> | undefined;
3
+ config?: Partial<import("tailwindcss/types/config").Config> | undefined;
4
4
  };
5
5
  export = _exports;
@@ -0,0 +1 @@
1
+ export declare function clamp(val: number, min: number, max: number): number;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.clamp = clamp;
7
+ function clamp(val, min, max) {
8
+ return Math.min(max, Math.max(min, val));
9
+ }
@@ -23,5 +23,4 @@ function genericChangeHandler(ctx, updater) {
23
23
  return memo[key];
24
24
  };
25
25
  }
26
- var _default = genericChangeHandler;
27
- exports["default"] = _default;
26
+ var _default = exports["default"] = genericChangeHandler;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.hashCode = exports["default"] = void 0;
7
7
  // https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript?rq=1
8
- var hashCode = function hashCode(value) {
8
+ var hashCode = exports.hashCode = function hashCode(value) {
9
9
  var hash = 0;
10
10
  if (value.length === 0) {
11
11
  return hash;
@@ -18,6 +18,4 @@ var hashCode = function hashCode(value) {
18
18
 
19
19
  return hash;
20
20
  };
21
- exports.hashCode = hashCode;
22
- var _default = hashCode;
23
- exports["default"] = _default;
21
+ var _default = exports["default"] = hashCode;
@@ -1,2 +1,2 @@
1
- declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "animationName" | "all" | "offset" | "height" | "width" | "left" | "top" | "item" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "clip" | "clipPath" | "clipRule" | "color" | "colorInterpolation" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "content" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fillOpacity" | "fillRule" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "font" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "gap" | "grid" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "imageRendering" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "mask" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "paintOrder" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "pointerEvents" | "position" | "quotes" | "resize" | "right" | "rotate" | "rowGap" | "rubyPosition" | "scale" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textCombineUpright" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "verticalAlign" | "visibility" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
1
+ declare const isCssPropertySupported: <P extends number | typeof Symbol.iterator | "filter" | "fill" | "font" | "clipPath" | "marker" | "mask" | "translate" | "color" | "grid" | "all" | "top" | "left" | "right" | "bottom" | "height" | "width" | "content" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "cursor" | "direction" | "display" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "offset" | "opacity" | "order" | "overflow" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStart" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImage" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStart" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "clear" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "contain" | "counterIncrement" | "counterReset" | "counterSet" | "cssFloat" | "cssText" | "emptyCells" | "flex" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFeatureSettings" | "fontKerning" | "fontOpticalSizing" | "fontSynthesis" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "gap" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hyphens" | "imageOrientation" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "lineBreak" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maskType" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetRotate" | "orphans" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowWrap" | "overflowX" | "overflowY" | "overscrollBehavior" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "perspective" | "perspectiveOrigin" | "placeContent" | "placeItems" | "placeSelf" | "position" | "quotes" | "resize" | "rowGap" | "rubyPosition" | "scrollBehavior" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInline" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInline" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapStop" | "scrollSnapType" | "scrollbarGutter" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasis" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textOrientation" | "textOverflow" | "textShadow" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "touchAction" | "transformBox" | "transformOrigin" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "userSelect" | "verticalAlign" | "webkitAlignContent" | "webkitAlignItems" | "webkitAlignSelf" | "webkitAnimation" | "webkitAnimationDelay" | "webkitAnimationDirection" | "webkitAnimationDuration" | "webkitAnimationFillMode" | "webkitAnimationIterationCount" | "webkitAnimationName" | "webkitAnimationPlayState" | "webkitAnimationTimingFunction" | "webkitAppearance" | "webkitBackfaceVisibility" | "webkitBackgroundClip" | "webkitBackgroundOrigin" | "webkitBackgroundSize" | "webkitBorderBottomLeftRadius" | "webkitBorderBottomRightRadius" | "webkitBorderRadius" | "webkitBorderTopLeftRadius" | "webkitBorderTopRightRadius" | "webkitBoxAlign" | "webkitBoxFlex" | "webkitBoxOrdinalGroup" | "webkitBoxOrient" | "webkitBoxPack" | "webkitBoxShadow" | "webkitBoxSizing" | "webkitFilter" | "webkitFlex" | "webkitFlexBasis" | "webkitFlexDirection" | "webkitFlexFlow" | "webkitFlexGrow" | "webkitFlexShrink" | "webkitFlexWrap" | "webkitJustifyContent" | "webkitLineClamp" | "webkitMask" | "webkitMaskBoxImage" | "webkitMaskBoxImageOutset" | "webkitMaskBoxImageRepeat" | "webkitMaskBoxImageSlice" | "webkitMaskBoxImageSource" | "webkitMaskBoxImageWidth" | "webkitMaskClip" | "webkitMaskComposite" | "webkitMaskImage" | "webkitMaskOrigin" | "webkitMaskPosition" | "webkitMaskRepeat" | "webkitMaskSize" | "webkitOrder" | "webkitPerspective" | "webkitPerspectiveOrigin" | "webkitTextFillColor" | "webkitTextStroke" | "webkitTextStrokeColor" | "webkitTextStrokeWidth" | "webkitTransform" | "webkitTransformOrigin" | "webkitTransformStyle" | "webkitTransition" | "webkitTransitionDelay" | "webkitTransitionDuration" | "webkitTransitionProperty" | "webkitTransitionTimingFunction" | "webkitUserSelect" | "whiteSpace" | "widows" | "willChange" | "wordBreak" | "wordWrap" | "zIndex" | "getPropertyPriority" | "getPropertyValue" | "item" | "removeProperty" | "setProperty">(prop: P, value: CSSStyleDeclaration[P]) => boolean;
2
2
  export default isCssPropertySupported;
@@ -12,5 +12,4 @@ var isCssPropertySupported = function isCssPropertySupported(prop, value) {
12
12
  div.style[prop] = value;
13
13
  return div.style[prop] === value;
14
14
  };
15
- var _default = isCssPropertySupported;
16
- exports["default"] = _default;
15
+ var _default = exports["default"] = isCssPropertySupported;
@@ -21,9 +21,7 @@ exports.isNil = exports["default"] = void 0;
21
21
  * isNil(NaN);
22
22
  * // => false
23
23
  */
24
- var isNil = function isNil(value) {
24
+ var isNil = exports.isNil = function isNil(value) {
25
25
  return value == null;
26
26
  };
27
- exports.isNil = isNil;
28
- var _default = isNil;
29
- exports["default"] = _default;
27
+ var _default = exports["default"] = isNil;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isReactText = void 0;
7
- var isReactText = function isReactText(children) {
7
+ var isReactText = exports.isReactText = function isReactText(children) {
8
8
  return typeof children === "string" || typeof children === "number";
9
- };
10
- exports.isReactText = isReactText;
9
+ };
@@ -12,5 +12,4 @@ exports["default"] = void 0;
12
12
  var isRenderedChild = function isRenderedChild(child) {
13
13
  return child !== null && typeof child !== "boolean" && typeof child !== "undefined";
14
14
  };
15
- var _default = isRenderedChild;
16
- exports["default"] = _default;
15
+ var _default = exports["default"] = isRenderedChild;
@@ -9,5 +9,4 @@ var _parseUrl = _interopRequireDefault(require("./parseUrl"));
9
9
  var matchLocation = function matchLocation(href, location) {
10
10
  return (location.pathname || "").startsWith((0, _parseUrl["default"])(href).pathname);
11
11
  };
12
- var _default = matchLocation;
13
- exports["default"] = _default;
12
+ var _default = exports["default"] = matchLocation;
@@ -36,5 +36,4 @@ var onlyText = function onlyText(children) {
36
36
  return text.concat(newText);
37
37
  }, "");
38
38
  };
39
- var _default = onlyText;
40
- exports["default"] = _default;
39
+ var _default = exports["default"] = onlyText;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.parseURL = exports["default"] = void 0;
7
- var parseURL = function parseURL(url) {
7
+ var parseURL = exports.parseURL = function parseURL(url) {
8
8
  var parser = document.createElement("a");
9
9
  // Let the browser do the work
10
10
  parser.href = url;
@@ -18,6 +18,4 @@ var parseURL = function parseURL(url) {
18
18
  hash: parser.hash
19
19
  };
20
20
  };
21
- exports.parseURL = parseURL;
22
- var _default = parseURL;
23
- exports["default"] = _default;
21
+ var _default = exports["default"] = parseURL;
@@ -20,5 +20,4 @@ function pluralize(count, word, options) {
20
20
  }
21
21
  return "".concat(formattedNumber, " ").concat(plural || "".concat(word, "s"));
22
22
  }
23
- var _default = pluralize;
24
- exports["default"] = _default;
23
+ var _default = exports["default"] = pluralize;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if the user has `prefers-reduced-motion` enabled
3
+ *
4
+ * @returns {boolean}
5
+ */
6
+ export declare const prefersReducedMotion: boolean;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.prefersReducedMotion = void 0;
7
+ var _window$matchMedia, _window;
8
+ /**
9
+ * Checks if the user has `prefers-reduced-motion` enabled
10
+ *
11
+ * @returns {boolean}
12
+ */
13
+ var prefersReducedMotion = exports.prefersReducedMotion = typeof window !== "undefined" && ((_window$matchMedia = (_window = window).matchMedia) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.call(_window, "(prefers-reduced-motion: reduce)").matches) === true;
@@ -11,5 +11,4 @@ function range(start, end) {
11
11
  return start + idx;
12
12
  });
13
13
  }
14
- var _default = range;
15
- exports["default"] = _default;
14
+ var _default = exports["default"] = range;
@@ -7,11 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.toSentenceCase = exports["default"] = void 0;
8
8
  var _capitalize = _interopRequireDefault(require("lodash/capitalize"));
9
9
  /** Converts PascalCase and camelCase to Sentence case */
10
- var toSentenceCase = function toSentenceCase(str) {
10
+ var toSentenceCase = exports.toSentenceCase = function toSentenceCase(str) {
11
11
  var firstChar = str.charAt(0);
12
12
  var remainingChars = str.slice(1).replace(/\s/g, "").replace(/([A-Z]+)/g, "$1").replace(/([A-Z][a-z])/g, " $1").trim();
13
13
  return (0, _capitalize["default"])("".concat(firstChar).concat(remainingChars));
14
14
  };
15
- exports.toSentenceCase = toSentenceCase;
16
- var _default = toSentenceCase;
17
- exports["default"] = _default;
15
+ var _default = exports["default"] = toSentenceCase;
@@ -17,5 +17,4 @@ function uniqBy(arr, identity) {
17
17
  return true;
18
18
  });
19
19
  }
20
- var _default = uniqBy;
21
- exports["default"] = _default;
20
+ var _default = exports["default"] = uniqBy;
@@ -11,5 +11,4 @@ function uniqueId() {
11
11
  counters[prefix] = counters[prefix] === undefined ? 0 : counters[prefix] + 1;
12
12
  return prefix + counters[prefix];
13
13
  }
14
- var _default = uniqueId;
15
- exports["default"] = _default;
14
+ var _default = exports["default"] = uniqueId;
@@ -21,5 +21,4 @@ function useForwardedRef(externalRef) {
21
21
  }, [externalRef]);
22
22
  return [refCallback, ref];
23
23
  }
24
- var _default = useForwardedRef;
25
- exports["default"] = _default;
24
+ var _default = exports["default"] = useForwardedRef;
@@ -8,7 +8,7 @@ exports.useLinkProps = exports["default"] = void 0;
8
8
  var _react = require("react");
9
9
  var _SatelliteContext = require("../Satellite/SatelliteContext");
10
10
  var _parseUrl = _interopRequireDefault(require("./parseUrl"));
11
- var useLinkProps = function useLinkProps(props) {
11
+ var useLinkProps = exports.useLinkProps = function useLinkProps(props) {
12
12
  var _props$target, _props$rel;
13
13
  var _useSatelliteContext = (0, _SatelliteContext.useSatelliteContext)(),
14
14
  router = _useSatelliteContext.router;
@@ -50,6 +50,4 @@ var useLinkProps = function useLinkProps(props) {
50
50
  tabIndex: props.tabIndex
51
51
  };
52
52
  };
53
- exports.useLinkProps = useLinkProps;
54
- var _default = useLinkProps;
55
- exports["default"] = _default;
53
+ var _default = exports["default"] = useLinkProps;
@@ -24,5 +24,4 @@ var useTriggerInputChange = function useTriggerInputChange(inputRef) {
24
24
  }, [inputRef]);
25
25
  return triggerInputChange;
26
26
  };
27
- var _default = useTriggerInputChange;
28
- exports["default"] = _default;
27
+ var _default = exports["default"] = useTriggerInputChange;
@@ -5,14 +5,14 @@ export declare type AnnouncementBadgeLocale = {
5
5
  [key in AnnouncementBadgeTexts]?: string;
6
6
  };
7
7
  export interface AnnouncementBadgeProps extends HTMLAttributes<HTMLSpanElement> {
8
- /** @default "default" */
8
+ /** @default default */
9
9
  size?: AnnouncementBadgeSizes;
10
10
  /**
11
11
  * Define which text to display in the `AnnouncementBadge`
12
- * @default "new"
12
+ * @default new
13
13
  */
14
14
  text?: AnnouncementBadgeTexts;
15
- /** @default "accent" */
15
+ /** @default accent */
16
16
  variant?: "accent" | "red";
17
17
  locale?: AnnouncementBadgeLocale;
18
18
  children?: never;
@@ -3,8 +3,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
4
  var _excluded = ["size", "text", "variant", "className", "locale"];
5
5
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ 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; }
7
+ 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) { _defineProperty(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; }
8
8
  import cx from "clsx";
9
9
  import { forwardRef } from "react";
10
10
  import { useLocale } from "../Satellite";
@@ -1,17 +1,5 @@
1
- import type { A11yStatusMessageOptions, ControllerStateAndHelpers } from "downshift";
2
- import { Component } from "react";
3
- import type { ChangeEvent, FocusEvent, KeyboardEvent, MouseEvent } from "react";
4
- import type { FieldState } from "../Field/FieldStateContext";
5
- import type { AutoCompleteLocale, AutoCompleteProps, Option, OptionItemProps } from "./types";
6
- interface State {
7
- inputFocused: boolean;
8
- inputValue: string;
9
- inputWidth?: number;
10
- showAllResults: boolean;
11
- }
12
- declare type DefaultOptionProps = OptionItemProps & {
13
- optionItemPrefix?: AutoCompleteLocale["optionItemPrefix"];
14
- };
1
+ /// <reference types="react" />
2
+ import type { AutoCompleteProps, Option } from "./types";
15
3
  /**
16
4
  * Autocomplete is a search-as-you-type function that matches what a person types, usually the beginning of a word, or a prefix, with a word list. Not to be confused with auto-suggestion that predicts the end of a query.
17
5
  *
@@ -28,39 +16,5 @@ declare type DefaultOptionProps = OptionItemProps & {
28
16
  * - Provide matching results quickly
29
17
  * - Style different data
30
18
  */
31
- export declare class AutoComplete<T extends Option = Option> extends Component<AutoCompleteProps<T>, State> {
32
- static contextType: import("react").Context<import("../Satellite").SatelliteContextType>;
33
- static defaultProps: {
34
- clearable: boolean;
35
- creatable: boolean;
36
- multiple: boolean;
37
- maxResults: number;
38
- createFromInputValue: <T_1 extends Option = Option>(options: T_1[] | undefined, inputValue: string) => Option[];
39
- options: never[];
40
- separatorKeys: never[];
41
- optionItemComponent: ({ optionItemPrefix, ...props }: DefaultOptionProps) => JSX.Element;
42
- noWrap: boolean;
43
- };
44
- state: State;
45
- inputContainerRef: HTMLDivElement | null;
46
- inputRef: HTMLInputElement | null;
47
- menuWrapperRef: HTMLDivElement | null;
48
- componentDidUpdate(prevProps: AutoCompleteProps<T>): void;
49
- handleClearClick: () => void;
50
- handleFakeInputClick: () => void | null;
51
- handleInputBlur: (state: ControllerStateAndHelpers<T | Option>) => (evt: FocusEvent<HTMLInputElement>) => void;
52
- handleInputChange: (evt: ChangeEvent<HTMLInputElement>) => void;
53
- handleInputContainerRefUpdate: (el: HTMLDivElement | null) => void;
54
- updateInputWidth: () => void;
55
- handleKeyDown: (state: ControllerStateAndHelpers<T | Option>) => (evt: KeyboardEvent<any>) => void;
56
- handleChange: (option: T) => void;
57
- handleShowAllResults: (evt: MouseEvent<HTMLButtonElement>) => void;
58
- removeValue: (removedOption: T) => void;
59
- getA11yStatusMessage: (options: A11yStatusMessageOptions<Option>) => any;
60
- renderInput: (autocompleteHelpers: ControllerStateAndHelpers<T | Option>, fieldState: FieldState) => JSX.Element;
61
- renderMenu: (results: T[], autocompleteHelpers: ControllerStateAndHelpers<T | Option>) => JSX.Element;
62
- renderSelect: (autocompleteHelpers: ControllerStateAndHelpers<T | Option>, fieldState: FieldState) => JSX.Element;
63
- private get locale();
64
- render(): JSX.Element;
65
- }
19
+ export declare const AutoComplete: <O extends Option = Option>({ locale: localeProp, id, name, placeholder, autoFocus, inputValue: inputValueProp, onTextChange, onFocus, onBlur, disabled, clearable, renderValueTemplate, noWrap, separatorKeys, multiple, value, selectOnBlur, onChange, options, optionItemComponent, creatable, createFromInputValue, emptyState, maxResults: maxItems, menuFooter, menuSize, variant, icon: Icon, endItem, className, menuClassName, valuesClassName, internalsRef, }: AutoCompleteProps<O>) => JSX.Element;
66
20
  export default AutoComplete;