@algolia/satellite 1.0.0-beta.146 → 1.0.0-beta.148

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 (417) hide show
  1. package/cjs/AnnouncementBadge/AnnouncementBadge.js +7 -24
  2. package/cjs/AnnouncementBadge/index.js +0 -5
  3. package/cjs/AutoComplete/AutoComplete.js +72 -167
  4. package/cjs/AutoComplete/AutoComplete.tailwind.js +2 -5
  5. package/cjs/AutoComplete/components/AutoCompleteEmptyState.js +5 -14
  6. package/cjs/AutoComplete/components/DefaultOptionItem.js +2 -11
  7. package/cjs/AutoComplete/index.js +0 -11
  8. package/cjs/AutoComplete/utils.js +0 -8
  9. package/cjs/Avatars/ApplicationAvatar.js +3 -13
  10. package/cjs/Avatars/UserAvatar.js +6 -20
  11. package/cjs/Avatars/index.js +0 -7
  12. package/cjs/Avatars/utils.js +6 -37
  13. package/cjs/Badge/Badge.js +13 -36
  14. package/cjs/Badge/index.js +0 -5
  15. package/cjs/Banners/Alert/Alert.js +18 -28
  16. package/cjs/Banners/Alert/index.js +0 -5
  17. package/cjs/Banners/BigBertha/BigBertha.js +1 -9
  18. package/cjs/Banners/BigBertha/index.js +0 -5
  19. package/cjs/Banners/Promote/Promote.js +8 -19
  20. package/cjs/Banners/Promote/index.js +0 -5
  21. package/cjs/Banners/index.js +0 -6
  22. package/cjs/Button/Button.js +13 -33
  23. package/cjs/Button/Button.tailwind.js +3 -5
  24. package/cjs/Button/ButtonGroup.d.ts +2 -1
  25. package/cjs/Button/ButtonGroup.js +3 -11
  26. package/cjs/Button/IconButton.js +12 -35
  27. package/cjs/Button/index.js +0 -11
  28. package/cjs/Button/styles.js +1 -10
  29. package/cjs/Button/types.js +0 -1
  30. package/cjs/Card/Card.js +6 -21
  31. package/cjs/Card/Card.tailwind.js +1 -2
  32. package/cjs/Card/components/CardHeader.js +1 -14
  33. package/cjs/Card/components/CardTitle.js +2 -15
  34. package/cjs/Card/index.js +0 -9
  35. package/cjs/Checkbox/Checkbox.js +14 -38
  36. package/cjs/Checkbox/Checkbox.tailwind.js +1 -3
  37. package/cjs/Checkbox/index.js +0 -5
  38. package/cjs/ClickAwayContainer/ClickAwayContainer.js +11 -23
  39. package/cjs/ClickAwayContainer/index.js +0 -2
  40. package/cjs/DatePicker/DatePicker/DatePicker.js +13 -46
  41. package/cjs/DatePicker/DatePicker/datePickerReducer.js +0 -15
  42. package/cjs/DatePicker/DatePicker/index.js +0 -7
  43. package/cjs/DatePicker/DatePicker.tailwind.js +3 -13
  44. package/cjs/DatePicker/DateRangePicker/DateRangePicker.js +29 -72
  45. package/cjs/DatePicker/DateRangePicker/DateRangePickerDisplay.js +4 -14
  46. package/cjs/DatePicker/DateRangePicker/dateRangePickerReducer.js +2 -28
  47. package/cjs/DatePicker/DateRangePicker/dateRangePickerTimeRange.js +0 -6
  48. package/cjs/DatePicker/DateRangePicker/index.js +0 -9
  49. package/cjs/DatePicker/components/Calendar.js +5 -16
  50. package/cjs/DatePicker/components/Display.js +3 -9
  51. package/cjs/DatePicker/components/Footer.js +0 -7
  52. package/cjs/DatePicker/components/FooterActions.js +3 -11
  53. package/cjs/DatePicker/components/Modal.js +17 -39
  54. package/cjs/DatePicker/components/NavBar.js +37 -47
  55. package/cjs/DatePicker/components/SidePanel.js +0 -7
  56. package/cjs/DatePicker/components/index.js +0 -7
  57. package/cjs/DatePicker/index.js +0 -9
  58. package/cjs/DatePicker/utils.js +0 -4
  59. package/cjs/Dropdown/Dropdown.js +23 -58
  60. package/cjs/Dropdown/DropdownButton.js +3 -20
  61. package/cjs/Dropdown/DropdownContext.js +0 -6
  62. package/cjs/Dropdown/components/DropdownButtonItem.js +5 -21
  63. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +10 -25
  64. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +2 -6
  65. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +0 -6
  66. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +6 -16
  67. package/cjs/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +6 -15
  68. package/cjs/Dropdown/components/DropdownCollapsibleItem/index.js +0 -9
  69. package/cjs/Dropdown/components/DropdownDivider.js +0 -7
  70. package/cjs/Dropdown/components/DropdownFooterItem.js +2 -15
  71. package/cjs/Dropdown/components/DropdownLinkItem.js +6 -23
  72. package/cjs/Dropdown/components/DropdownRadioItem.js +4 -20
  73. package/cjs/Dropdown/components/DropdownTitle.js +1 -14
  74. package/cjs/Dropdown/components/DropdownToggleItem.js +5 -22
  75. package/cjs/Dropdown/index.js +0 -27
  76. package/cjs/Dropdown/useDropdownItemProps.js +1 -14
  77. package/cjs/Dropzone/Dropzone.js +27 -62
  78. package/cjs/Dropzone/index.js +0 -5
  79. package/cjs/EmptyState/EmptyState.js +12 -23
  80. package/cjs/EmptyState/EmptyState.tailwind.js +0 -1
  81. package/cjs/EmptyState/index.js +0 -7
  82. package/cjs/Field/Field.js +8 -21
  83. package/cjs/Field/FieldStateContext.js +0 -2
  84. package/cjs/Field/index.js +0 -9
  85. package/cjs/Field/useFieldState.js +0 -7
  86. package/cjs/Flag/Flag.js +17 -40
  87. package/cjs/Flag/Flag.tailwind.js +0 -1
  88. package/cjs/Flag/Flags.js +4 -19
  89. package/cjs/Flag/index.js +0 -9
  90. package/cjs/FlexGrid/FlexGrid.js +13 -24
  91. package/cjs/FlexGrid/FlexGrid.tailwind.js +4 -11
  92. package/cjs/FlexGrid/index.js +0 -5
  93. package/cjs/HelpUnderline/HelpUnderline.js +5 -14
  94. package/cjs/HelpUnderline/HelpUnderline.tailwind.js +1 -2
  95. package/cjs/HelpUnderline/index.js +0 -5
  96. package/cjs/Input/Input.js +26 -70
  97. package/cjs/Input/Input.tailwind.js +1 -4
  98. package/cjs/Input/index.js +0 -5
  99. package/cjs/Insert/Insert.js +7 -17
  100. package/cjs/Insert/index.js +0 -5
  101. package/cjs/InstantSearch/InstantSearch.tailwind.js +4 -10
  102. package/cjs/KeyboardKey/KeyboardKey.js +1 -12
  103. package/cjs/KeyboardKey/KeyboardKey.tailwind.js +1 -2
  104. package/cjs/KeyboardKey/index.js +0 -2
  105. package/cjs/Link/BaseLink.js +2 -12
  106. package/cjs/Link/ButtonLink.js +3 -17
  107. package/cjs/Link/IconButtonLink.js +2 -13
  108. package/cjs/Link/Link.js +6 -23
  109. package/cjs/Link/index.js +0 -11
  110. package/cjs/Medallion/Medallion.js +5 -14
  111. package/cjs/Medallion/Medallion.tailwind.js +3 -6
  112. package/cjs/Medallion/index.js +0 -7
  113. package/cjs/Modal/Modal.js +21 -57
  114. package/cjs/Modal/Modal.tailwind.js +3 -3
  115. package/cjs/Modal/components/ModalFooter.js +2 -16
  116. package/cjs/Modal/components/ModalSection.js +3 -11
  117. package/cjs/Modal/index.js +0 -9
  118. package/cjs/Pagination/CompactPagination/CompactPagination.d.ts +2 -0
  119. package/cjs/Pagination/CompactPagination/CompactPagination.js +2 -20
  120. package/cjs/Pagination/CompactPagination/index.js +0 -5
  121. package/cjs/Pagination/DotPagination/DotPagination.js +5 -19
  122. package/cjs/Pagination/DotPagination/index.js +0 -5
  123. package/cjs/Pagination/Pagination/Pagination.js +9 -34
  124. package/cjs/Pagination/Pagination/index.js +0 -5
  125. package/cjs/Pagination/index.js +0 -9
  126. package/cjs/ProgressBar/ProgressBar.js +3 -16
  127. package/cjs/ProgressBar/ProgressBar.tailwind.js +1 -3
  128. package/cjs/ProgressBar/index.js +0 -5
  129. package/cjs/ProgressSpinner/ProgressSpinner.js +8 -20
  130. package/cjs/ProgressSpinner/ProgressSpinner.tailwind.js +2 -3
  131. package/cjs/ProgressSpinner/index.js +0 -5
  132. package/cjs/RadioGroup/RadioButton.js +1 -14
  133. package/cjs/RadioGroup/RadioButton.tailwind.js +1 -4
  134. package/cjs/RadioGroup/RadioGroup.js +19 -38
  135. package/cjs/RadioGroup/RadiogroupContext.js +0 -6
  136. package/cjs/RadioGroup/index.js +0 -9
  137. package/cjs/RangeSlider/RangeSlider.js +26 -43
  138. package/cjs/RangeSlider/RangeSlider.tailwind.js +1 -3
  139. package/cjs/RangeSlider/index.js +0 -5
  140. package/cjs/Satellite/Satellite.js +4 -10
  141. package/cjs/Satellite/SatelliteContext.js +0 -9
  142. package/cjs/Satellite/SatelliteRouter.js +2 -9
  143. package/cjs/Satellite/index.js +0 -13
  144. package/cjs/Satellite/locale.js +1 -7
  145. package/cjs/Satellite/useCreatePortal.js +2 -8
  146. package/cjs/ScrollIndicator/ScrollIndicator.js +18 -41
  147. package/cjs/ScrollIndicator/ScrollIndicator.tailwind.js +1 -3
  148. package/cjs/ScrollIndicator/index.js +0 -5
  149. package/cjs/Select/Select.js +4 -17
  150. package/cjs/Select/Select.tailwind.js +2 -5
  151. package/cjs/Select/index.js +0 -5
  152. package/cjs/Sidebar/Sidebar.js +11 -30
  153. package/cjs/Sidebar/SidebarButtonLink.js +10 -30
  154. package/cjs/Sidebar/SidebarContext.js +0 -6
  155. package/cjs/Sidebar/SidebarHeader.js +1 -9
  156. package/cjs/Sidebar/SidebarHeading.js +3 -14
  157. package/cjs/Sidebar/SidebarLink.js +5 -20
  158. package/cjs/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +2 -11
  159. package/cjs/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +3 -14
  160. package/cjs/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +8 -31
  161. package/cjs/Sidebar/SidebarLinksGroup/index.js +0 -2
  162. package/cjs/Sidebar/SidebarNav.js +5 -16
  163. package/cjs/Sidebar/index.js +0 -17
  164. package/cjs/Switch/Switch.js +15 -36
  165. package/cjs/Switch/Switch.tailwind.js +1 -2
  166. package/cjs/Switch/SwitchOption.js +2 -15
  167. package/cjs/Switch/index.js +0 -7
  168. package/cjs/Switch/utils.js +0 -9
  169. package/cjs/Tables/DataTable/DataTable.js +28 -70
  170. package/cjs/Tables/DataTable/DataTable.tailwind.js +2 -2
  171. package/cjs/Tables/DataTable/components/Body.js +14 -33
  172. package/cjs/Tables/DataTable/components/Footer.js +1 -17
  173. package/cjs/Tables/DataTable/components/Header.js +5 -12
  174. package/cjs/Tables/DataTable/components/HeaderCell.js +10 -27
  175. package/cjs/Tables/DataTable/components/Loader.js +4 -17
  176. package/cjs/Tables/DataTable/components/index.js +0 -10
  177. package/cjs/Tables/DataTable/index.js +0 -7
  178. package/cjs/Tables/DataTable/utils.js +0 -9
  179. package/cjs/Tables/Table/Table.js +7 -21
  180. package/cjs/Tables/Table/Table.tailwind.js +1 -2
  181. package/cjs/Tables/Table/components/TableFooter.js +2 -10
  182. package/cjs/Tables/Table/index.js +0 -7
  183. package/cjs/Tables/index.js +0 -7
  184. package/cjs/Tabs/ContentTabs.js +28 -62
  185. package/cjs/Tabs/LinkTabs.js +5 -18
  186. package/cjs/Tabs/Tabs.tailwind.js +1 -2
  187. package/cjs/Tabs/components/LinkTab.js +2 -27
  188. package/cjs/Tabs/index.js +0 -9
  189. package/cjs/Tabs/utils.js +0 -5
  190. package/cjs/Tag/Tag.js +7 -26
  191. package/cjs/Tag/Tag.tailwind.js +1 -2
  192. package/cjs/Tag/index.js +0 -5
  193. package/cjs/TextArea/TextArea.js +1 -14
  194. package/cjs/TextArea/TextArea.tailwind.js +1 -4
  195. package/cjs/TextArea/index.js +0 -5
  196. package/cjs/TextWrap/TextWrap.d.ts +1 -0
  197. package/cjs/TextWrap/TextWrap.js +3 -18
  198. package/cjs/TextWrap/index.js +0 -5
  199. package/cjs/Toggle/Toggle.js +6 -27
  200. package/cjs/Toggle/Toggle.tailwind.js +1 -3
  201. package/cjs/Toggle/index.js +0 -5
  202. package/cjs/Tooltip/OverflowTooltipWrapper.js +33 -62
  203. package/cjs/Tooltip/Tooltip.js +4 -17
  204. package/cjs/Tooltip/Tooltip.tailwind.js +3 -5
  205. package/cjs/Tooltip/TooltipWrapper.js +43 -71
  206. package/cjs/Tooltip/index.js +0 -9
  207. package/cjs/Typography/Typography.tailwind.js +15 -21
  208. package/cjs/UserContent/UserContent.js +7 -16
  209. package/cjs/UserContent/UserContent.tailwind.js +4 -13
  210. package/cjs/index.js +0 -89
  211. package/cjs/styles/base.tailwind.js +7 -7
  212. package/cjs/styles/colors.js +7 -7
  213. package/cjs/styles/disabledColor.js +1 -4
  214. package/cjs/styles/helpers/icons.js +5 -11
  215. package/cjs/styles/helpers/makePurgeCssExtractor.js +3 -15
  216. package/cjs/styles/helpers/makeTailwindPrefixer.js +1 -9
  217. package/cjs/styles/helpers/prefixTailwindClassName.js +6 -6
  218. package/cjs/styles/helpers/satellitePrefixer.js +1 -2
  219. package/cjs/styles/rgba.js +1 -3
  220. package/cjs/styles/tailwind.config.js +4 -11
  221. package/cjs/styles/zIndexes.js +1 -0
  222. package/cjs/utilities/utilities.tailwind.js +0 -3
  223. package/cjs/utils/event-polyfill.js +0 -2
  224. package/cjs/utils/formatters.js +12 -19
  225. package/cjs/utils/genericChangeHandler.js +0 -6
  226. package/cjs/utils/hashCode.js +0 -5
  227. package/cjs/utils/index.js +0 -7
  228. package/cjs/utils/isCssPropertySupported.js +0 -3
  229. package/cjs/utils/isNil.js +0 -2
  230. package/cjs/utils/isRenderedChild.js +0 -2
  231. package/cjs/utils/matchLocation.js +0 -4
  232. package/cjs/utils/onlyText.js +3 -12
  233. package/cjs/utils/parseUrl.js +2 -4
  234. package/cjs/utils/pluralize.js +2 -7
  235. package/cjs/utils/range.js +0 -2
  236. package/cjs/utils/toSentenceCase.js +0 -4
  237. package/cjs/utils/uniqBy.js +0 -4
  238. package/cjs/utils/uniqueId.js +0 -2
  239. package/cjs/utils/useForwardedRef.js +0 -6
  240. package/cjs/utils/useLinkProps.js +1 -13
  241. package/cjs/utils/useTriggerInputChange.js +2 -4
  242. package/esm/AnnouncementBadge/AnnouncementBadge.js +7 -14
  243. package/esm/AutoComplete/AutoComplete.js +72 -162
  244. package/esm/AutoComplete/AutoComplete.tailwind.js +2 -2
  245. package/esm/AutoComplete/components/AutoCompleteEmptyState.js +5 -7
  246. package/esm/AutoComplete/components/DefaultOptionItem.js +2 -8
  247. package/esm/AutoComplete/utils.js +0 -2
  248. package/esm/Avatars/ApplicationAvatar.js +3 -6
  249. package/esm/Avatars/UserAvatar.js +6 -12
  250. package/esm/Avatars/utils.js +7 -23
  251. package/esm/Badge/Badge.js +13 -28
  252. package/esm/Banners/Alert/Alert.js +18 -20
  253. package/esm/Banners/BigBertha/BigBertha.js +1 -4
  254. package/esm/Banners/Promote/Promote.js +8 -10
  255. package/esm/Button/Button.js +13 -21
  256. package/esm/Button/Button.tailwind.js +3 -2
  257. package/esm/Button/ButtonGroup.d.ts +2 -1
  258. package/esm/Button/ButtonGroup.js +3 -6
  259. package/esm/Button/IconButton.js +12 -22
  260. package/esm/Button/styles.js +1 -5
  261. package/esm/Card/Card.js +6 -12
  262. package/esm/Card/Card.tailwind.js +1 -1
  263. package/esm/Card/components/CardHeader.js +1 -7
  264. package/esm/Card/components/CardTitle.js +2 -8
  265. package/esm/Checkbox/Checkbox.js +14 -28
  266. package/esm/Checkbox/Checkbox.tailwind.js +1 -1
  267. package/esm/ClickAwayContainer/ClickAwayContainer.js +11 -13
  268. package/esm/DatePicker/DatePicker/DatePicker.js +13 -31
  269. package/esm/DatePicker/DatePicker/datePickerReducer.js +0 -9
  270. package/esm/DatePicker/DatePicker.tailwind.js +3 -10
  271. package/esm/DatePicker/DateRangePicker/DateRangePicker.js +29 -55
  272. package/esm/DatePicker/DateRangePicker/DateRangePickerDisplay.js +4 -8
  273. package/esm/DatePicker/DateRangePicker/dateRangePickerReducer.js +2 -16
  274. package/esm/DatePicker/components/Calendar.js +5 -10
  275. package/esm/DatePicker/components/Display.js +3 -5
  276. package/esm/DatePicker/components/Footer.js +0 -4
  277. package/esm/DatePicker/components/FooterActions.js +3 -7
  278. package/esm/DatePicker/components/Modal.js +17 -27
  279. package/esm/DatePicker/components/NavBar.js +37 -36
  280. package/esm/DatePicker/components/SidePanel.js +0 -4
  281. package/esm/Dropdown/Dropdown.js +23 -34
  282. package/esm/Dropdown/DropdownButton.js +3 -11
  283. package/esm/Dropdown/DropdownContext.js +0 -2
  284. package/esm/Dropdown/components/DropdownButtonItem.js +5 -12
  285. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItem.js +10 -15
  286. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroup.js +2 -2
  287. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsGroupContext.js +0 -2
  288. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsMultiGroup.js +6 -9
  289. package/esm/Dropdown/components/DropdownCollapsibleItem/DropdownCollapsibleItemsSingleGroup.js +6 -9
  290. package/esm/Dropdown/components/DropdownDivider.js +0 -2
  291. package/esm/Dropdown/components/DropdownFooterItem.js +2 -8
  292. package/esm/Dropdown/components/DropdownLinkItem.js +6 -13
  293. package/esm/Dropdown/components/DropdownRadioItem.js +4 -11
  294. package/esm/Dropdown/components/DropdownTitle.js +1 -7
  295. package/esm/Dropdown/components/DropdownToggleItem.js +5 -12
  296. package/esm/Dropdown/useDropdownItemProps.js +1 -7
  297. package/esm/Dropzone/Dropzone.js +27 -45
  298. package/esm/EmptyState/EmptyState.js +12 -16
  299. package/esm/Field/Field.js +8 -11
  300. package/esm/Flag/Flag.js +17 -25
  301. package/esm/Flag/Flags.js +4 -9
  302. package/esm/FlexGrid/FlexGrid.js +13 -15
  303. package/esm/FlexGrid/FlexGrid.tailwind.js +4 -9
  304. package/esm/HelpUnderline/HelpUnderline.js +5 -7
  305. package/esm/HelpUnderline/HelpUnderline.tailwind.js +1 -1
  306. package/esm/Input/Input.js +26 -54
  307. package/esm/Input/Input.tailwind.js +1 -1
  308. package/esm/Insert/Insert.js +7 -11
  309. package/esm/InstantSearch/InstantSearch.tailwind.js +4 -4
  310. package/esm/KeyboardKey/KeyboardKey.js +1 -3
  311. package/esm/KeyboardKey/KeyboardKey.tailwind.js +1 -1
  312. package/esm/Link/BaseLink.js +2 -6
  313. package/esm/Link/ButtonLink.js +3 -9
  314. package/esm/Link/IconButtonLink.js +2 -6
  315. package/esm/Link/Link.js +6 -14
  316. package/esm/Medallion/Medallion.js +5 -7
  317. package/esm/Medallion/Medallion.tailwind.js +3 -2
  318. package/esm/Modal/Modal.js +21 -38
  319. package/esm/Modal/Modal.tailwind.js +3 -2
  320. package/esm/Modal/components/ModalFooter.js +2 -8
  321. package/esm/Modal/components/ModalSection.js +3 -5
  322. package/esm/Pagination/CompactPagination/CompactPagination.d.ts +2 -0
  323. package/esm/Pagination/CompactPagination/CompactPagination.js +3 -7
  324. package/esm/Pagination/DotPagination/DotPagination.js +5 -11
  325. package/esm/Pagination/Pagination/Pagination.js +9 -21
  326. package/esm/ProgressBar/ProgressBar.js +3 -10
  327. package/esm/ProgressBar/ProgressBar.tailwind.js +1 -1
  328. package/esm/ProgressSpinner/ProgressSpinner.js +8 -12
  329. package/esm/ProgressSpinner/ProgressSpinner.tailwind.js +2 -2
  330. package/esm/RadioGroup/RadioButton.js +1 -7
  331. package/esm/RadioGroup/RadioButton.tailwind.js +1 -1
  332. package/esm/RadioGroup/RadioGroup.js +19 -25
  333. package/esm/RadioGroup/RadiogroupContext.js +0 -2
  334. package/esm/RangeSlider/RangeSlider.js +26 -35
  335. package/esm/RangeSlider/RangeSlider.tailwind.js +1 -1
  336. package/esm/Satellite/Satellite.js +4 -4
  337. package/esm/Satellite/SatelliteContext.js +0 -3
  338. package/esm/Satellite/SatelliteRouter.js +2 -4
  339. package/esm/Satellite/locale.js +1 -2
  340. package/esm/Satellite/useCreatePortal.js +2 -2
  341. package/esm/ScrollIndicator/ScrollIndicator.js +18 -31
  342. package/esm/ScrollIndicator/ScrollIndicator.tailwind.js +1 -1
  343. package/esm/Select/Select.js +4 -9
  344. package/esm/Select/Select.tailwind.js +2 -2
  345. package/esm/Sidebar/Sidebar.js +11 -17
  346. package/esm/Sidebar/SidebarButtonLink.js +10 -20
  347. package/esm/Sidebar/SidebarContext.js +0 -2
  348. package/esm/Sidebar/SidebarHeader.js +1 -3
  349. package/esm/Sidebar/SidebarHeading.js +3 -7
  350. package/esm/Sidebar/SidebarLink.js +5 -11
  351. package/esm/Sidebar/SidebarLinksGroup/ActiveLinkIndicator.js +2 -4
  352. package/esm/Sidebar/SidebarLinksGroup/SidebarGroupLink.js +3 -7
  353. package/esm/Sidebar/SidebarLinksGroup/SidebarLinksGroup.js +8 -18
  354. package/esm/Sidebar/SidebarNav.js +5 -9
  355. package/esm/Switch/Switch.js +15 -24
  356. package/esm/Switch/Switch.tailwind.js +1 -1
  357. package/esm/Switch/SwitchOption.js +2 -6
  358. package/esm/Tables/DataTable/DataTable.js +28 -49
  359. package/esm/Tables/DataTable/DataTable.tailwind.js +2 -1
  360. package/esm/Tables/DataTable/components/Body.js +14 -23
  361. package/esm/Tables/DataTable/components/Footer.js +1 -8
  362. package/esm/Tables/DataTable/components/Header.js +5 -6
  363. package/esm/Tables/DataTable/components/HeaderCell.js +10 -17
  364. package/esm/Tables/DataTable/components/Loader.js +4 -8
  365. package/esm/Tables/DataTable/utils.js +0 -1
  366. package/esm/Tables/Table/Table.js +7 -14
  367. package/esm/Tables/Table/Table.tailwind.js +1 -1
  368. package/esm/Tables/Table/components/TableFooter.js +2 -4
  369. package/esm/Tabs/ContentTabs.js +28 -51
  370. package/esm/Tabs/LinkTabs.js +5 -7
  371. package/esm/Tabs/Tabs.tailwind.js +1 -1
  372. package/esm/Tabs/components/LinkTab.js +2 -18
  373. package/esm/Tabs/utils.js +0 -2
  374. package/esm/Tag/Tag.js +7 -16
  375. package/esm/Tag/Tag.tailwind.js +1 -1
  376. package/esm/TextArea/TextArea.js +1 -7
  377. package/esm/TextArea/TextArea.tailwind.js +1 -1
  378. package/esm/TextWrap/TextWrap.d.ts +1 -0
  379. package/esm/TextWrap/TextWrap.js +3 -11
  380. package/esm/Toggle/Toggle.js +6 -19
  381. package/esm/Toggle/Toggle.tailwind.js +1 -1
  382. package/esm/Tooltip/OverflowTooltipWrapper.js +33 -46
  383. package/esm/Tooltip/Tooltip.js +4 -9
  384. package/esm/Tooltip/Tooltip.tailwind.js +3 -4
  385. package/esm/Tooltip/TooltipWrapper.js +43 -56
  386. package/esm/Typography/Typography.tailwind.js +15 -18
  387. package/esm/UserContent/UserContent.js +7 -9
  388. package/esm/UserContent/UserContent.tailwind.js +4 -9
  389. package/esm/styles/base.tailwind.js +7 -6
  390. package/esm/styles/colors.js +7 -7
  391. package/esm/styles/disabledColor.js +1 -2
  392. package/esm/styles/helpers/icons.js +5 -8
  393. package/esm/styles/helpers/makePurgeCssExtractor.js +3 -14
  394. package/esm/styles/helpers/makeTailwindPrefixer.js +1 -6
  395. package/esm/styles/helpers/prefixTailwindClassName.js +6 -6
  396. package/esm/styles/helpers/satellitePrefixer.js +1 -1
  397. package/esm/styles/rgba.js +1 -2
  398. package/esm/styles/tailwind.config.js +4 -6
  399. package/esm/styles/zIndexes.js +1 -0
  400. package/esm/utils/event-polyfill.js +0 -2
  401. package/esm/utils/formatters.js +12 -16
  402. package/esm/utils/genericChangeHandler.js +0 -2
  403. package/esm/utils/hashCode.js +0 -3
  404. package/esm/utils/isCssPropertySupported.js +0 -2
  405. package/esm/utils/isRenderedChild.js +0 -1
  406. package/esm/utils/matchLocation.js +0 -2
  407. package/esm/utils/onlyText.js +3 -11
  408. package/esm/utils/parseUrl.js +2 -2
  409. package/esm/utils/pluralize.js +2 -5
  410. package/esm/utils/toSentenceCase.js +1 -1
  411. package/esm/utils/uniqBy.js +0 -2
  412. package/esm/utils/useForwardedRef.js +0 -3
  413. package/esm/utils/useLinkProps.js +1 -7
  414. package/esm/utils/useTriggerInputChange.js +2 -3
  415. package/package.json +2 -2
  416. package/satellite.min.css +1 -1
  417. package/scss/colors.scss +16 -16
@@ -1,31 +1,23 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
9
  var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
13
-
14
10
  var _jsxRuntime = require("react/jsx-runtime");
15
-
16
11
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
17
-
18
12
  var metadataSpacer = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
19
13
  className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["px-1"]))),
20
14
  children: "\xB7"
21
15
  });
22
-
23
16
  var DefaultOptionItem = function DefaultOptionItem(_ref) {
24
17
  var _locale$optionItemPre;
25
-
26
18
  var option = _ref.option,
27
- multiple = _ref.multiple,
28
- locale = _ref.locale;
19
+ multiple = _ref.multiple,
20
+ locale = _ref.locale;
29
21
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
30
22
  className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["truncate py-2"]))),
31
23
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -41,6 +33,5 @@ var DefaultOptionItem = function DefaultOptionItem(_ref) {
41
33
  })]
42
34
  });
43
35
  };
44
-
45
36
  var _default = DefaultOptionItem;
46
37
  exports["default"] = _default;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -12,9 +11,7 @@ Object.defineProperty(exports, "default", {
12
11
  return _AutoComplete["default"];
13
12
  }
14
13
  });
15
-
16
14
  var _AutoComplete = _interopRequireWildcard(require("./AutoComplete"));
17
-
18
15
  Object.keys(_AutoComplete).forEach(function (key) {
19
16
  if (key === "default" || key === "__esModule") return;
20
17
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -26,9 +23,7 @@ Object.keys(_AutoComplete).forEach(function (key) {
26
23
  }
27
24
  });
28
25
  });
29
-
30
26
  var _DefaultOptionItem = require("./components/DefaultOptionItem");
31
-
32
27
  Object.keys(_DefaultOptionItem).forEach(function (key) {
33
28
  if (key === "default" || key === "__esModule") return;
34
29
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -40,9 +35,7 @@ Object.keys(_DefaultOptionItem).forEach(function (key) {
40
35
  }
41
36
  });
42
37
  });
43
-
44
38
  var _AutoCompleteEmptyState = require("./components/AutoCompleteEmptyState");
45
-
46
39
  Object.keys(_AutoCompleteEmptyState).forEach(function (key) {
47
40
  if (key === "default" || key === "__esModule") return;
48
41
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -54,9 +47,7 @@ Object.keys(_AutoCompleteEmptyState).forEach(function (key) {
54
47
  }
55
48
  });
56
49
  });
57
-
58
50
  var _types = require("./types");
59
-
60
51
  Object.keys(_types).forEach(function (key) {
61
52
  if (key === "default" || key === "__esModule") return;
62
53
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -68,7 +59,5 @@ Object.keys(_types).forEach(function (key) {
68
59
  }
69
60
  });
70
61
  });
71
-
72
62
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
73
-
74
63
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,19 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.defaultCreateFromInputValue = exports.caseInsensitiveCreateFromInputValue = exports.DEFAULT_AUTOCOMPLETE_LOCALE = void 0;
9
8
  exports.isAutoCompleteMultiProps = isAutoCompleteMultiProps;
10
-
11
9
  var _pluralize = _interopRequireDefault(require("../utils/pluralize"));
12
-
13
10
  function isAutoCompleteMultiProps(props) {
14
11
  return Boolean(props.multiple);
15
12
  }
16
-
17
13
  function createFromInputValue() {
18
14
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
19
15
  var inputValue = arguments.length > 1 ? arguments[1] : undefined;
@@ -26,21 +22,17 @@ function createFromInputValue() {
26
22
  "new": true
27
23
  }];
28
24
  }
29
-
30
25
  var defaultCreateFromInputValue = function defaultCreateFromInputValue(options, inputValue) {
31
26
  return createFromInputValue(options, inputValue, function (option) {
32
27
  return option.value === inputValue;
33
28
  });
34
29
  };
35
-
36
30
  exports.defaultCreateFromInputValue = defaultCreateFromInputValue;
37
-
38
31
  var caseInsensitiveCreateFromInputValue = function caseInsensitiveCreateFromInputValue(options, inputValue) {
39
32
  return createFromInputValue(options, inputValue, function (option) {
40
33
  return option.value.toString().toLowerCase() === inputValue.toLowerCase();
41
34
  });
42
35
  };
43
-
44
36
  exports.caseInsensitiveCreateFromInputValue = caseInsensitiveCreateFromInputValue;
45
37
  var DEFAULT_AUTOCOMPLETE_LOCALE = {
46
38
  clearInputButton: "Clear input value",
@@ -1,35 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.ApplicationAvatar = void 0;
9
-
10
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
9
  var _clsx = _interopRequireDefault(require("clsx"));
13
-
14
10
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
15
-
16
11
  var _utils = require("./utils");
17
-
18
12
  var _jsxRuntime = require("react/jsx-runtime");
19
-
20
13
  var _templateObject, _templateObject2, _templateObject3;
21
-
22
14
  var SIZE_CLASSNAMES = {
23
15
  small: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["w-4 h-4"]))),
24
16
  medium: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["w-8 h-8"])))
25
17
  };
26
-
27
18
  /** The `ApplicationAvatar` is used as a visual representation of an application. */
28
19
  var ApplicationAvatar = function ApplicationAvatar(_ref) {
29
20
  var className = _ref.className,
30
- application = _ref.application,
31
- _ref$size = _ref.size,
32
- size = _ref$size === void 0 ? "medium" : _ref$size;
21
+ application = _ref.application,
22
+ _ref$size = _ref.size,
23
+ size = _ref$size === void 0 ? "medium" : _ref$size;
33
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
34
25
  role: "img",
35
26
  "aria-label": application.name || "Application's avatar",
@@ -40,7 +31,6 @@ var ApplicationAvatar = function ApplicationAvatar(_ref) {
40
31
  children: (0, _utils.getApplicationInitials)(application)
41
32
  });
42
33
  };
43
-
44
34
  exports.ApplicationAvatar = ApplicationAvatar;
45
35
  var _default = ApplicationAvatar;
46
36
  exports["default"] = _default;
@@ -1,42 +1,29 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.UserAvatar = void 0;
9
-
10
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
-
14
10
  var _clsx = _interopRequireDefault(require("clsx"));
15
-
16
11
  var _react = require("react");
17
-
18
12
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
19
-
20
13
  var _utils = require("./utils");
21
-
22
14
  var _jsxRuntime = require("react/jsx-runtime");
23
-
24
15
  var _templateObject, _templateObject2, _templateObject3;
25
-
26
16
  /** The `UserAvatar` is used as a visual representation of a user. */
27
17
  var UserAvatar = function UserAvatar(_ref) {
28
18
  var _user$email;
29
-
30
19
  var className = _ref.className,
31
- user = _ref.user,
32
- _ref$size = _ref.size,
33
- size = _ref$size === void 0 ? 32 : _ref$size;
34
-
20
+ user = _ref.user,
21
+ _ref$size = _ref.size,
22
+ size = _ref$size === void 0 ? 32 : _ref$size;
35
23
  var _useState = (0, _react.useState)(false),
36
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
37
- imageLoaded = _useState2[0],
38
- setImageLoaded = _useState2[1];
39
-
24
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
25
+ imageLoaded = _useState2[0],
26
+ setImageLoaded = _useState2[1];
40
27
  var initials = (0, _utils.getUserInitials)(user);
41
28
  (0, _react.useEffect)(function () {
42
29
  return setImageLoaded(false);
@@ -65,7 +52,6 @@ var UserAvatar = function UserAvatar(_ref) {
65
52
  })]
66
53
  });
67
54
  };
68
-
69
55
  exports.UserAvatar = UserAvatar;
70
56
  var _default = UserAvatar;
71
57
  exports["default"] = _default;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -12,9 +11,7 @@ Object.defineProperty(exports, "default", {
12
11
  return _UserAvatar["default"];
13
12
  }
14
13
  });
15
-
16
14
  var _ApplicationAvatar = require("./ApplicationAvatar");
17
-
18
15
  Object.keys(_ApplicationAvatar).forEach(function (key) {
19
16
  if (key === "default" || key === "__esModule") return;
20
17
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -26,9 +23,7 @@ Object.keys(_ApplicationAvatar).forEach(function (key) {
26
23
  }
27
24
  });
28
25
  });
29
-
30
26
  var _UserAvatar = _interopRequireWildcard(require("./UserAvatar"));
31
-
32
27
  Object.keys(_UserAvatar).forEach(function (key) {
33
28
  if (key === "default" || key === "__esModule") return;
34
29
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -40,7 +35,5 @@ Object.keys(_UserAvatar).forEach(function (key) {
40
35
  }
41
36
  });
42
37
  });
43
-
44
38
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
45
-
46
39
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,90 +1,59 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.pickApplicationColors = exports.getUserInitials = exports.getUserBackgroundClassName = exports.getApplicationInitials = exports.getApplicationIdInitial = void 0;
9
-
10
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
9
  var _diacritics = require("diacritics");
13
-
14
10
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
15
-
16
11
  var _hashCode = _interopRequireDefault(require("../utils/hashCode"));
17
-
18
12
  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;
19
-
20
13
  /** APPLICATION */
21
- var APPLICATION_COLORS_CLASSNAMES = [
22
- /* eslint-disable @algolia/satellite/prefer-accent */
23
- (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-grey-200 text-grey-800"]))), (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-200 text-nebula-800"]))), (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-200 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-200 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-200 text-pink-800"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-200 text-red-800"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-200 text-orange-900"]))), // Darker variants
24
- (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-300 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-300 text-nebula-900"]))), (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-300 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["bg-green-300 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-300 text-pink-900"]))), (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["bg-red-300 text-red-900"]))), (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-300 text-orange-900"])))
25
- /* eslint-enable @algolia/satellite/prefer-accent */
26
- ];
27
14
 
15
+ var APPLICATION_COLORS_CLASSNAMES = [/* eslint-disable @algolia/satellite/prefer-accent */(0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["bg-grey-200 text-grey-800"]))), (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-200 text-nebula-800"]))), (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-200 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["bg-green-200 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-200 text-pink-800"]))), (0, _satellitePrefixer["default"])(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["bg-red-200 text-red-800"]))), (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-200 text-orange-900"]))), // Darker variants
16
+ (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-300 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-300 text-nebula-900"]))), (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-300 text-blue-900"]))), (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["bg-green-300 text-green-900"]))), (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-300 text-pink-900"]))), (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["bg-red-300 text-red-900"]))), (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-300 text-orange-900"]))) /* eslint-enable @algolia/satellite/prefer-accent */];
28
17
  var pickApplicationColors = function pickApplicationColors(applicationId) {
29
18
  var _APPLICATION_COLORS_C;
30
-
31
19
  return (_APPLICATION_COLORS_C = APPLICATION_COLORS_CLASSNAMES[Math.abs((0, _hashCode["default"])(applicationId)) % APPLICATION_COLORS_CLASSNAMES.length]) !== null && _APPLICATION_COLORS_C !== void 0 ? _APPLICATION_COLORS_C : APPLICATION_COLORS_CLASSNAMES[0];
32
20
  };
33
-
34
21
  exports.pickApplicationColors = pickApplicationColors;
35
-
36
22
  var getApplicationIdInitial = function getApplicationIdInitial(applicationId) {
37
23
  return applicationId.startsWith("beta") ? applicationId.slice(4, 6) : applicationId.slice(0, 2);
38
24
  };
39
-
40
25
  exports.getApplicationIdInitial = getApplicationIdInitial;
41
-
42
26
  var getApplicationInitials = function getApplicationInitials(_ref) {
43
27
  var name = _ref.name,
44
- applicationId = _ref.applicationId;
45
-
28
+ applicationId = _ref.applicationId;
46
29
  if (!name) {
47
30
  return getApplicationIdInitial(applicationId);
48
31
  }
49
-
50
32
  var words = (0, _diacritics.remove)(name.trim()).toLocaleUpperCase().split(/\W+/).filter(function (word) {
51
33
  return word.length >= 1;
52
34
  });
53
-
54
35
  if (words.length === 0 || words.length === 1 && words[0].length < 2) {
55
36
  return getApplicationIdInitial(applicationId);
56
37
  } else if (words.length === 1) {
57
38
  return words[0].slice(0, 2);
58
39
  }
59
-
60
40
  return "".concat(words[0][0]).concat(words[1][0]);
61
41
  };
62
- /** USER */
63
-
64
42
 
43
+ /** USER */
65
44
  exports.getApplicationInitials = getApplicationInitials;
66
- var USER_COLORS_CLASSNAMES = [
67
- /* eslint-disable @algolia/satellite/prefer-accent */
68
- (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["bg-green-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["bg-red-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-400 text-grey-900"]))), // Darker variants
69
- (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-green-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["bg-red-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-600 text-grey-900"])))
70
- /* eslint-enable @algolia/satellite/prefer-accent */
71
- ];
72
-
45
+ var USER_COLORS_CLASSNAMES = [/* eslint-disable @algolia/satellite/prefer-accent */(0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["bg-green-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["bg-red-400 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-400 text-grey-900"]))), // Darker variants
46
+ (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["bg-nebula-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["bg-blue-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteral2["default"])(["bg-green-700 text-grey-900"]))), (0, _satellitePrefixer["default"])(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteral2["default"])(["bg-red-700 text-white"]))), (0, _satellitePrefixer["default"])(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteral2["default"])(["bg-orange-600 text-grey-900"]))) /* eslint-enable @algolia/satellite/prefer-accent */];
73
47
  var getUserBackgroundClassName = function getUserBackgroundClassName(email) {
74
48
  var _USER_COLORS_CLASSNAM;
75
-
76
49
  return (_USER_COLORS_CLASSNAM = USER_COLORS_CLASSNAMES[Math.abs((0, _hashCode["default"])(email)) % USER_COLORS_CLASSNAMES.length]) !== null && _USER_COLORS_CLASSNAM !== void 0 ? _USER_COLORS_CLASSNAM : USER_COLORS_CLASSNAMES[0];
77
50
  };
78
-
79
51
  exports.getUserBackgroundClassName = getUserBackgroundClassName;
80
-
81
52
  var getUserInitials = function getUserInitials(user) {
82
53
  var _user$email, _user$email$match;
83
-
84
54
  var words = user.name ? user.name.trim().split(/\s+/) : (_user$email = user.email) === null || _user$email === void 0 ? void 0 : (_user$email$match = _user$email.match(/^(.+)(?:\+.+?)?@.+$/)) === null || _user$email$match === void 0 ? void 0 : _user$email$match[1].split(".");
85
55
  return words ? words.slice(0, 2).map(function (w) {
86
56
  return w.toLocaleLowerCase()[0];
87
57
  }).join("") : "??";
88
58
  };
89
-
90
59
  exports.getUserInitials = getUserInitials;
@@ -1,32 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.Badge = void 0;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
-
16
11
  var _clsx = _interopRequireDefault(require("clsx"));
17
-
18
12
  var _satellitePrefixer = _interopRequireDefault(require("../styles/helpers/satellitePrefixer"));
19
-
20
13
  var _jsxRuntime = require("react/jsx-runtime");
21
-
22
14
  var _excluded = ["children", "value", "icon", "variant", "size", "className"];
23
-
24
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
25
-
15
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
26
16
  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; }
27
-
28
17
  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; }
29
-
30
18
  var BASE_CLASSNAMES = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n inline-flex items-center justify-center\n rounded-full border\n overflow-hidden\n"])));
31
19
  var VARIANT_CLASSNAMES = {
32
20
  grey: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100 border-grey-200 text-grey-700"]))),
@@ -37,19 +25,11 @@ var VARIANT_CLASSNAMES = {
37
25
  red: (0, _satellitePrefixer["default"])(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["bg-red-100 border-red-200 text-red-700"]))),
38
26
  pink: (0, _satellitePrefixer["default"])(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["bg-pink-100 border-pink-200 text-pink-700"])))
39
27
  };
40
- var VALUE_VARIANT_CLASSNAMES = {
41
- grey: (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["text-grey-600"]))),
42
- accent: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["text-accent-600"]))),
43
- blue: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["text-blue-800"]))),
44
- green: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["text-green-900"]))),
45
- orange: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["text-orange-800"]))),
46
- red: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-red-700"]))),
47
- pink: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["text-pink-600"])))
48
- };
49
28
  var SIZE_CLASSNAMES = {
50
- "default": (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["h-6 display-body px-2 space-x-2"]))),
51
- small: (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["h-4 display-caption px-1 space-x-1"])))
29
+ "default": (0, _satellitePrefixer["default"])(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["h-6 display-body px-2 space-x-2"]))),
30
+ small: (0, _satellitePrefixer["default"])(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2["default"])(["h-4 display-caption px-1 space-x-1"])))
52
31
  };
32
+
53
33
  /**
54
34
  * Badges are used to inform a user about a status of an item or a process. They can also contain a numeric value. Badges come with a set of colours that are easily identified. Green colour implies success or completion, while orange suggests a warning, on hold, or a problem. Red coloured badges mean error or failure.
55
35
  *
@@ -65,17 +45,16 @@ var SIZE_CLASSNAMES = {
65
45
  * - To indicate problem with an index
66
46
  * - To display numeric values for multiple items (similar to a "tag cloud")
67
47
  */
68
-
69
48
  var Badge = function Badge(_ref) {
70
49
  var children = _ref.children,
71
- value = _ref.value,
72
- Icon = _ref.icon,
73
- _ref$variant = _ref.variant,
74
- variant = _ref$variant === void 0 ? "grey" : _ref$variant,
75
- _ref$size = _ref.size,
76
- size = _ref$size === void 0 ? "default" : _ref$size,
77
- className = _ref.className,
78
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
50
+ value = _ref.value,
51
+ Icon = _ref.icon,
52
+ _ref$variant = _ref.variant,
53
+ variant = _ref$variant === void 0 ? "grey" : _ref$variant,
54
+ _ref$size = _ref.size,
55
+ size = _ref$size === void 0 ? "default" : _ref$size,
56
+ className = _ref.className,
57
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
79
58
  var badgeClassName = (0, _clsx["default"])(BASE_CLASSNAMES, VARIANT_CLASSNAMES[variant], SIZE_CLASSNAMES[size], className);
80
59
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({}, props), {}, {
81
60
  className: badgeClassName,
@@ -84,15 +63,13 @@ var Badge = function Badge(_ref) {
84
63
  size: ".8em"
85
64
  })
86
65
  }), children && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
87
- className: (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["truncate"]))),
66
+ className: (0, _satellitePrefixer["default"])(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2["default"])(["truncate"]))),
88
67
  children: children
89
68
  }), value && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
90
- className: VALUE_VARIANT_CLASSNAMES[variant],
91
69
  children: value
92
70
  })]
93
71
  }));
94
72
  };
95
-
96
73
  exports.Badge = Badge;
97
74
  var _default = Badge;
98
75
  exports["default"] = _default;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -12,9 +11,7 @@ Object.defineProperty(exports, "default", {
12
11
  return _Badge["default"];
13
12
  }
14
13
  });
15
-
16
14
  var _Badge = _interopRequireWildcard(require("./Badge"));
17
-
18
15
  Object.keys(_Badge).forEach(function (key) {
19
16
  if (key === "default" || key === "__esModule") return;
20
17
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -26,7 +23,5 @@ Object.keys(_Badge).forEach(function (key) {
26
23
  }
27
24
  });
28
25
  });
29
-
30
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
31
-
32
27
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,27 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.Alert = void 0;
9
-
10
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
9
  var _clsx = _interopRequireDefault(require("clsx"));
13
-
14
10
  var _reactFeather = require("react-feather");
15
-
16
11
  var _Button = require("../../Button");
17
-
18
12
  var _satellitePrefixer = _interopRequireDefault(require("../../styles/helpers/satellitePrefixer"));
19
-
20
13
  var _jsxRuntime = require("react/jsx-runtime");
21
-
22
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
23
-
24
- var BASE_CLASSNAME = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative flex text-grey-900 display-body"])));
14
+ 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;
15
+ var BASE_CLASSNAME = (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["relative flex text-grey-900 display-body border"])));
25
16
  var BACKGROUND_CLASSNAMES = {
26
17
  grey: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["bg-grey-100"]))),
27
18
  accent: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["bg-accent-100"]))),
@@ -46,10 +37,11 @@ var ICON_VARIANTS = {
46
37
  var ICON_CLASSNAME_VARIANTS = {
47
38
  grey: (0, _satellitePrefixer["default"])(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2["default"])(["text-grey-600"]))),
48
39
  accent: (0, _satellitePrefixer["default"])(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2["default"])(["text-accent-600"]))),
49
- green: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-green-600"]))),
40
+ green: (0, _satellitePrefixer["default"])(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2["default"])(["text-green-700"]))),
50
41
  orange: (0, _satellitePrefixer["default"])(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2["default"])(["text-orange-600"]))),
51
42
  red: (0, _satellitePrefixer["default"])(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2["default"])(["text-red-600"])))
52
43
  };
44
+
53
45
  /**
54
46
  * Alerts inform users about important changes or temporally conditions. Use this component if you need to communicate something to users in a prominent way.
55
47
 
@@ -100,37 +92,36 @@ var ICON_CLASSNAME_VARIANTS = {
100
92
  * ## Accessibility
101
93
  * TODO
102
94
  */
103
-
104
95
  var Alert = function Alert(_ref) {
105
96
  var title = _ref.title,
106
- _ref$usageContext = _ref.usageContext,
107
- usageContext = _ref$usageContext === void 0 ? "section" : _ref$usageContext,
108
- _ref$variant = _ref.variant,
109
- variant = _ref$variant === void 0 ? "grey" : _ref$variant,
110
- onDismiss = _ref.onDismiss,
111
- icon = _ref.icon,
112
- className = _ref.className,
113
- style = _ref.style,
114
- children = _ref.children;
115
- var containerClassName = (0, _clsx["default"])(BASE_CLASSNAME, title ? (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["p-4"]))) : (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["py-2 px-3"]))), BACKGROUND_CLASSNAMES[variant], BORDER_CLASSNAMES[variant], usageContext !== "page" && (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["rounded border"]))), className);
97
+ _ref$usageContext = _ref.usageContext,
98
+ usageContext = _ref$usageContext === void 0 ? "section" : _ref$usageContext,
99
+ _ref$variant = _ref.variant,
100
+ variant = _ref$variant === void 0 ? "grey" : _ref$variant,
101
+ onDismiss = _ref.onDismiss,
102
+ icon = _ref.icon,
103
+ className = _ref.className,
104
+ style = _ref.style,
105
+ children = _ref.children;
106
+ var containerClassName = (0, _clsx["default"])(BASE_CLASSNAME, title ? (0, _satellitePrefixer["default"])(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2["default"])(["p-4"]))) : (0, _satellitePrefixer["default"])(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2["default"])(["py-2 px-3"]))), BACKGROUND_CLASSNAMES[variant], usageContext !== "page" ? BORDER_CLASSNAMES[variant] : (0, _satellitePrefixer["default"])(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteral2["default"])(["border-transparent"]))), usageContext !== "page" && (0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["rounded"]))), className);
116
107
  var internalIcon = icon === undefined ? true : icon;
117
108
  var Icon = typeof internalIcon === "boolean" && internalIcon ? ICON_VARIANTS[variant] : internalIcon;
118
109
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
119
110
  className: containerClassName,
120
111
  style: style,
121
112
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
122
- className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2["default"])(["\n shrink-0 mr-2\n ", "\n "])), title ? "mt-1" : "mt-2px"), ICON_CLASSNAME_VARIANTS[variant]),
113
+ className: (0, _clsx["default"])((0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["\n shrink-0 mr-2\n ", "\n "])), title ? "mt-0.5" : "mt-2px"), ICON_CLASSNAME_VARIANTS[variant]),
123
114
  size: "1rem"
124
115
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
125
- className: (0, _satellitePrefixer["default"])(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteral2["default"])(["flex flex-1 flex-col ", ""])), onDismiss && "mr-6"),
116
+ className: (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["flex flex-1 flex-col ", ""])), onDismiss && "mr-6"),
126
117
  children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
127
- className: (0, _satellitePrefixer["default"])(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteral2["default"])(["display-heading text-grey-900 mb-1"]))),
118
+ className: (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["font-bold text-grey-900 mb-1"]))),
128
119
  children: title
129
120
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
130
121
  children: children
131
122
  })]
132
123
  }), onDismiss && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
133
- className: (0, _satellitePrefixer["default"])(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteral2["default"])(["absolute top-2 right-2"]))),
124
+ className: (0, _satellitePrefixer["default"])(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteral2["default"])(["absolute right-1.5 top-1.5"]))),
134
125
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.IconButton, {
135
126
  icon: _reactFeather.X,
136
127
  title: "Close",
@@ -144,7 +135,6 @@ var Alert = function Alert(_ref) {
144
135
  })]
145
136
  });
146
137
  };
147
-
148
138
  exports.Alert = Alert;
149
139
  var _default = Alert;
150
140
  exports["default"] = _default;