@primer/components 0.0.0-2021102995710 → 0.0.0-202110303104

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 (427) hide show
  1. package/CHANGELOG.md +4 -90
  2. package/dist/browser.esm.js +774 -718
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +772 -716
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Divider.jsx +29 -0
  7. package/lib/ActionList/Group.jsx +23 -0
  8. package/lib/ActionList/Header.jsx +66 -0
  9. package/lib/ActionList/Item.js +52 -27
  10. package/lib/ActionList/Item.jsx +311 -0
  11. package/lib/ActionList/List.jsx +138 -0
  12. package/lib/ActionList/index.js +12 -23
  13. package/lib/ActionList2/Description.jsx +29 -0
  14. package/lib/ActionList2/Divider.jsx +22 -0
  15. package/lib/ActionList2/Group.d.ts +2 -28
  16. package/lib/ActionList2/Group.js +6 -55
  17. package/lib/ActionList2/Group.jsx +25 -0
  18. package/lib/ActionList2/Header.jsx +36 -0
  19. package/lib/ActionList2/Item.jsx +174 -0
  20. package/lib/ActionList2/LinkItem.jsx +28 -0
  21. package/lib/ActionList2/List.d.ts +1 -1
  22. package/lib/ActionList2/List.js +2 -1
  23. package/lib/ActionList2/List.jsx +41 -0
  24. package/lib/ActionList2/Selection.jsx +50 -0
  25. package/lib/ActionList2/Visuals.jsx +48 -0
  26. package/lib/ActionList2/index.js +23 -41
  27. package/lib/ActionMenu.jsx +73 -0
  28. package/lib/AnchoredOverlay/AnchoredOverlay.jsx +100 -0
  29. package/lib/AnchoredOverlay/index.js +4 -12
  30. package/lib/Autocomplete/Autocomplete.d.ts +3 -3
  31. package/lib/Autocomplete/Autocomplete.jsx +100 -0
  32. package/lib/Autocomplete/AutocompleteContext.jsx +5 -0
  33. package/lib/Autocomplete/AutocompleteInput.d.ts +3 -3
  34. package/lib/Autocomplete/AutocompleteInput.jsx +113 -0
  35. package/lib/Autocomplete/AutocompleteMenu.jsx +190 -0
  36. package/lib/Autocomplete/AutocompleteOverlay.jsx +55 -0
  37. package/lib/Autocomplete/index.js +7 -14
  38. package/lib/Avatar.jsx +34 -0
  39. package/lib/AvatarPair.jsx +29 -0
  40. package/lib/AvatarStack.jsx +151 -0
  41. package/lib/BaseStyles.jsx +65 -0
  42. package/lib/BorderBox.jsx +18 -0
  43. package/lib/Box.jsx +10 -0
  44. package/lib/BranchName.jsx +20 -0
  45. package/lib/Breadcrumbs.d.ts +7 -8
  46. package/lib/Breadcrumbs.js +12 -7
  47. package/lib/Breadcrumbs.jsx +74 -0
  48. package/lib/Button/Button.d.ts +3 -2
  49. package/lib/Button/Button.js +6 -2
  50. package/lib/Button/Button.jsx +60 -0
  51. package/lib/Button/ButtonBase.d.ts +8 -5
  52. package/lib/Button/ButtonBase.js +5 -1
  53. package/lib/Button/ButtonBase.jsx +36 -0
  54. package/lib/Button/ButtonClose.d.ts +46 -3
  55. package/lib/Button/ButtonClose.js +1 -1
  56. package/lib/Button/ButtonClose.jsx +55 -0
  57. package/lib/Button/ButtonDanger.d.ts +3 -2
  58. package/lib/Button/ButtonDanger.js +6 -2
  59. package/lib/Button/ButtonDanger.jsx +63 -0
  60. package/lib/Button/ButtonGroup.jsx +55 -0
  61. package/lib/Button/ButtonInvisible.d.ts +3 -2
  62. package/lib/Button/ButtonInvisible.js +6 -2
  63. package/lib/Button/ButtonInvisible.jsx +52 -0
  64. package/lib/Button/ButtonOutline.d.ts +3 -2
  65. package/lib/Button/ButtonOutline.js +6 -2
  66. package/lib/Button/ButtonOutline.jsx +63 -0
  67. package/lib/Button/ButtonPrimary.d.ts +3 -2
  68. package/lib/Button/ButtonPrimary.js +6 -2
  69. package/lib/Button/ButtonPrimary.jsx +62 -0
  70. package/lib/Button/ButtonStyles.jsx +37 -0
  71. package/lib/Button/ButtonTableList.d.ts +2 -1
  72. package/lib/Button/ButtonTableList.js +1 -1
  73. package/lib/Button/ButtonTableList.jsx +49 -0
  74. package/lib/Button/index.js +21 -70
  75. package/lib/Caret.jsx +93 -0
  76. package/lib/CircleBadge.d.ts +5 -4
  77. package/lib/CircleBadge.js +1 -1
  78. package/lib/CircleBadge.jsx +43 -0
  79. package/lib/CircleOcticon.d.ts +1 -1
  80. package/lib/CircleOcticon.jsx +21 -0
  81. package/lib/CounterLabel.d.ts +2 -1
  82. package/lib/CounterLabel.js +1 -1
  83. package/lib/CounterLabel.jsx +44 -0
  84. package/lib/Details.jsx +21 -0
  85. package/lib/Dialog/ConfirmationDialog.jsx +146 -0
  86. package/lib/Dialog/Dialog.d.ts +9 -5
  87. package/lib/Dialog/Dialog.js +11 -17
  88. package/lib/Dialog/Dialog.jsx +273 -0
  89. package/lib/Dialog.d.ts +5 -4
  90. package/lib/Dialog.js +1 -1
  91. package/lib/Dialog.jsx +131 -0
  92. package/lib/Dropdown.d.ts +99 -10
  93. package/lib/Dropdown.js +3 -3
  94. package/lib/Dropdown.jsx +134 -0
  95. package/lib/DropdownMenu/DropdownButton.d.ts +47 -3
  96. package/lib/DropdownMenu/DropdownButton.js +1 -3
  97. package/lib/DropdownMenu/DropdownButton.jsx +14 -0
  98. package/lib/DropdownMenu/DropdownMenu.jsx +70 -0
  99. package/lib/DropdownMenu/index.js +6 -20
  100. package/lib/DropdownStyles.js +18 -26
  101. package/lib/EmojiPicker/EmojiPicker.d.ts +15 -0
  102. package/lib/EmojiPicker/EmojiPicker.js +205 -0
  103. package/lib/EmojiPicker/EmojiPicker.jsx +125 -0
  104. package/lib/EmojiPicker/EmojiPickerAnchor.d.ts +0 -0
  105. package/lib/EmojiPicker/EmojiPickerAnchor.js +1 -0
  106. package/lib/EmojiPicker/EmojiPickerAnchor.jsx +1 -0
  107. package/lib/EmojiPicker/EmojiPickerPanel.d.ts +3 -0
  108. package/lib/EmojiPicker/EmojiPickerPanel.js +18 -0
  109. package/lib/EmojiPicker/EmojiPickerPanel.jsx +10 -0
  110. package/lib/EmojiPicker/data.d.ts +9 -0
  111. package/lib/EmojiPicker/data.js +7254 -0
  112. package/lib/EmojiPicker/index.d.ts +2 -0
  113. package/lib/EmojiPicker/index.js +8 -0
  114. package/lib/FilterList.d.ts +303 -264
  115. package/lib/FilterList.js +6 -2
  116. package/lib/FilterList.jsx +63 -0
  117. package/lib/FilteredActionList/FilteredActionList.jsx +100 -0
  118. package/lib/FilteredActionList/index.js +4 -12
  119. package/lib/FilteredSearch.d.ts +2 -1
  120. package/lib/FilteredSearch.js +1 -1
  121. package/lib/FilteredSearch.jsx +29 -0
  122. package/lib/Flash.d.ts +2 -1
  123. package/lib/Flash.js +1 -1
  124. package/lib/Flash.jsx +70 -0
  125. package/lib/Flex.jsx +15 -0
  126. package/lib/FormGroup.d.ts +5 -4
  127. package/lib/FormGroup.js +2 -2
  128. package/lib/FormGroup.jsx +25 -0
  129. package/lib/Grid.jsx +15 -0
  130. package/lib/Header.d.ts +7 -6
  131. package/lib/Header.js +4 -4
  132. package/lib/Header.jsx +90 -0
  133. package/lib/Heading.jsx +21 -0
  134. package/lib/Label.d.ts +2 -1
  135. package/lib/Label.js +3 -2
  136. package/lib/Label.jsx +84 -0
  137. package/lib/LabelGroup.d.ts +2 -1
  138. package/lib/LabelGroup.js +1 -1
  139. package/lib/LabelGroup.jsx +19 -0
  140. package/lib/Link.d.ts +2 -1
  141. package/lib/Link.js +1 -1
  142. package/lib/Link.jsx +38 -0
  143. package/lib/NewButton/button-counter.jsx +14 -0
  144. package/lib/NewButton/button.js +42 -34
  145. package/lib/NewButton/button.jsx +278 -0
  146. package/lib/NewButton/index.js +5 -12
  147. package/lib/NewButton/types.js +2 -1
  148. package/lib/Overlay.d.ts +11 -14
  149. package/lib/Overlay.js +4 -3
  150. package/lib/Overlay.jsx +156 -0
  151. package/lib/Pagehead.d.ts +2 -1
  152. package/lib/Pagehead.js +1 -1
  153. package/lib/Pagehead.jsx +18 -0
  154. package/lib/Pagination/Pagination.js +1 -1
  155. package/lib/Pagination/Pagination.jsx +163 -0
  156. package/lib/Pagination/index.js +6 -12
  157. package/lib/Pagination/model.jsx +174 -0
  158. package/lib/PointerBox.jsx +25 -0
  159. package/lib/Popover.d.ts +5 -4
  160. package/lib/Popover.js +5 -4
  161. package/lib/Popover.jsx +210 -0
  162. package/lib/Portal/Portal.jsx +79 -0
  163. package/lib/Portal/index.js +5 -16
  164. package/lib/Position.d.ts +4 -4
  165. package/lib/Position.jsx +46 -0
  166. package/lib/ProgressBar.jsx +39 -0
  167. package/lib/SelectMenu/SelectMenu.d.ts +189 -21
  168. package/lib/SelectMenu/SelectMenu.js +3 -1
  169. package/lib/SelectMenu/SelectMenu.jsx +114 -0
  170. package/lib/SelectMenu/SelectMenuContext.jsx +5 -0
  171. package/lib/SelectMenu/SelectMenuDivider.d.ts +2 -1
  172. package/lib/SelectMenu/SelectMenuDivider.js +1 -1
  173. package/lib/SelectMenu/SelectMenuDivider.jsx +43 -0
  174. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  175. package/lib/SelectMenu/SelectMenuFilter.jsx +59 -0
  176. package/lib/SelectMenu/SelectMenuFooter.d.ts +2 -1
  177. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  178. package/lib/SelectMenu/SelectMenuFooter.jsx +46 -0
  179. package/lib/SelectMenu/SelectMenuHeader.d.ts +2 -1
  180. package/lib/SelectMenu/SelectMenuHeader.js +1 -1
  181. package/lib/SelectMenu/SelectMenuHeader.jsx +44 -0
  182. package/lib/SelectMenu/SelectMenuItem.d.ts +3 -2
  183. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  184. package/lib/SelectMenu/SelectMenuItem.jsx +143 -0
  185. package/lib/SelectMenu/SelectMenuList.d.ts +2 -1
  186. package/lib/SelectMenu/SelectMenuList.js +1 -1
  187. package/lib/SelectMenu/SelectMenuList.jsx +60 -0
  188. package/lib/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
  189. package/lib/SelectMenu/SelectMenuLoadingAnimation.js +1 -3
  190. package/lib/SelectMenu/SelectMenuLoadingAnimation.jsx +21 -0
  191. package/lib/SelectMenu/SelectMenuModal.d.ts +3 -2
  192. package/lib/SelectMenu/SelectMenuModal.js +1 -1
  193. package/lib/SelectMenu/SelectMenuModal.jsx +119 -0
  194. package/lib/SelectMenu/SelectMenuTab.d.ts +2 -1
  195. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  196. package/lib/SelectMenu/SelectMenuTab.jsx +93 -0
  197. package/lib/SelectMenu/SelectMenuTabPanel.d.ts +2 -1
  198. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  199. package/lib/SelectMenu/SelectMenuTabPanel.jsx +43 -0
  200. package/lib/SelectMenu/SelectMenuTabs.d.ts +2 -1
  201. package/lib/SelectMenu/SelectMenuTabs.js +1 -1
  202. package/lib/SelectMenu/SelectMenuTabs.jsx +58 -0
  203. package/lib/SelectMenu/hooks/useKeyboardNav.js +80 -96
  204. package/lib/SelectMenu/index.js +7 -14
  205. package/lib/SelectPanel/SelectPanel.jsx +105 -0
  206. package/lib/SelectPanel/index.js +4 -12
  207. package/lib/SideNav.d.ts +8 -11
  208. package/lib/SideNav.js +15 -8
  209. package/lib/SideNav.jsx +177 -0
  210. package/lib/Spinner.jsx +35 -0
  211. package/lib/StateLabel.d.ts +2 -1
  212. package/lib/StateLabel.js +5 -6
  213. package/lib/StateLabel.jsx +94 -0
  214. package/lib/StyledOcticon.d.ts +2 -1
  215. package/lib/StyledOcticon.js +3 -1
  216. package/lib/StyledOcticon.jsx +20 -0
  217. package/lib/SubNav.d.ts +11 -5
  218. package/lib/SubNav.js +12 -7
  219. package/lib/SubNav.jsx +104 -0
  220. package/lib/TabNav.d.ts +4 -3
  221. package/lib/TabNav.js +2 -2
  222. package/lib/TabNav.jsx +60 -0
  223. package/lib/Text.jsx +14 -0
  224. package/lib/TextInput.jsx +23 -0
  225. package/lib/TextInputWithTokens.d.ts +3 -3
  226. package/lib/TextInputWithTokens.jsx +218 -0
  227. package/lib/ThemeProvider.jsx +130 -0
  228. package/lib/Timeline.d.ts +393 -19
  229. package/lib/Timeline.js +13 -16
  230. package/lib/Timeline.jsx +124 -0
  231. package/lib/Token/AvatarToken.jsx +54 -0
  232. package/lib/Token/IssueLabelToken.jsx +125 -0
  233. package/lib/Token/Token.d.ts +1 -1
  234. package/lib/Token/Token.jsx +103 -0
  235. package/lib/Token/TokenBase.jsx +88 -0
  236. package/lib/Token/_RemoveTokenButton.jsx +108 -0
  237. package/lib/Token/_TokenTextContainer.jsx +49 -0
  238. package/lib/Token/index.js +11 -30
  239. package/lib/Tooltip.d.ts +2 -1
  240. package/lib/Tooltip.js +1 -1
  241. package/lib/Tooltip.jsx +246 -0
  242. package/lib/Truncate.d.ts +2 -1
  243. package/lib/Truncate.js +3 -1
  244. package/lib/Truncate.jsx +27 -0
  245. package/lib/UnderlineNav.d.ts +3 -2
  246. package/lib/UnderlineNav.js +2 -2
  247. package/lib/UnderlineNav.jsx +90 -0
  248. package/lib/_TextInputWrapper.jsx +120 -0
  249. package/lib/_UnstyledTextInput.jsx +22 -0
  250. package/lib/behaviors/anchoredPosition.js +205 -234
  251. package/lib/behaviors/focusTrap.js +121 -157
  252. package/lib/behaviors/focusZone.js +434 -509
  253. package/lib/behaviors/scrollIntoViewingArea.js +18 -35
  254. package/lib/constants.js +39 -43
  255. package/lib/drafts.js +20 -30
  256. package/lib/hooks/index.js +16 -60
  257. package/lib/hooks/useAnchoredPosition.js +32 -40
  258. package/lib/hooks/useCombinedRefs.js +32 -36
  259. package/lib/hooks/useDetails.jsx +39 -0
  260. package/lib/hooks/useDialog.js +72 -96
  261. package/lib/hooks/useFocusTrap.js +43 -60
  262. package/lib/hooks/useFocusZone.js +54 -50
  263. package/lib/hooks/useOnEscapePress.js +25 -36
  264. package/lib/hooks/useOnOutsideClick.jsx +61 -0
  265. package/lib/hooks/useOpenAndCloseFocus.js +22 -34
  266. package/lib/hooks/useOverlay.jsx +15 -0
  267. package/lib/hooks/useProvidedRefOrCreate.js +10 -14
  268. package/lib/hooks/useProvidedStateOrCreate.js +13 -16
  269. package/lib/hooks/useRenderForcingRef.js +13 -17
  270. package/lib/hooks/useResizeObserver.js +15 -18
  271. package/lib/hooks/useSafeTimeout.js +22 -30
  272. package/lib/hooks/useScrollFlash.js +16 -23
  273. package/lib/index.d.ts +2 -2
  274. package/lib/index.js +165 -652
  275. package/lib/polyfills/eventListenerSignal.js +37 -45
  276. package/lib/sx.js +10 -22
  277. package/lib/theme-preval.js +64 -3169
  278. package/lib/theme.js +3 -12
  279. package/lib/utils/create-slots.jsx +65 -0
  280. package/lib/utils/deprecate.jsx +59 -0
  281. package/lib/utils/isNumeric.jsx +7 -0
  282. package/lib/utils/iterateFocusableElements.js +63 -85
  283. package/lib/utils/ssr.jsx +6 -0
  284. package/lib/utils/test-deprecations.jsx +20 -0
  285. package/lib/utils/test-helpers.jsx +8 -0
  286. package/lib/utils/test-matchers.jsx +100 -0
  287. package/lib/utils/testing.d.ts +61 -28
  288. package/lib/utils/testing.js +0 -29
  289. package/lib/utils/testing.jsx +206 -0
  290. package/lib/utils/theme.js +33 -47
  291. package/lib/utils/types/AriaRole.js +2 -1
  292. package/lib/utils/types/ComponentProps.js +2 -1
  293. package/lib/utils/types/Flatten.js +2 -1
  294. package/lib/utils/types/KeyPaths.js +2 -1
  295. package/lib/utils/types/MandateProps.js +16 -1
  296. package/lib/utils/types/Merge.js +2 -1
  297. package/lib/utils/types/index.js +16 -69
  298. package/lib/utils/uniqueId.js +5 -8
  299. package/lib/utils/use-force-update.js +8 -14
  300. package/lib/utils/useIsomorphicLayoutEffect.js +8 -11
  301. package/lib/utils/userAgent.js +8 -12
  302. package/lib-esm/ActionList/Item.js +53 -28
  303. package/lib-esm/ActionList2/Group.d.ts +2 -28
  304. package/lib-esm/ActionList2/Group.js +5 -52
  305. package/lib-esm/ActionList2/List.d.ts +1 -1
  306. package/lib-esm/ActionList2/List.js +2 -1
  307. package/lib-esm/Autocomplete/Autocomplete.d.ts +3 -3
  308. package/lib-esm/Autocomplete/AutocompleteInput.d.ts +3 -3
  309. package/lib-esm/Breadcrumbs.d.ts +7 -8
  310. package/lib-esm/Breadcrumbs.js +13 -8
  311. package/lib-esm/Button/Button.d.ts +3 -2
  312. package/lib-esm/Button/Button.js +2 -2
  313. package/lib-esm/Button/ButtonBase.d.ts +8 -5
  314. package/lib-esm/Button/ButtonBase.js +3 -1
  315. package/lib-esm/Button/ButtonClose.d.ts +46 -3
  316. package/lib-esm/Button/ButtonClose.js +2 -2
  317. package/lib-esm/Button/ButtonDanger.d.ts +3 -2
  318. package/lib-esm/Button/ButtonDanger.js +2 -2
  319. package/lib-esm/Button/ButtonInvisible.d.ts +3 -2
  320. package/lib-esm/Button/ButtonInvisible.js +2 -2
  321. package/lib-esm/Button/ButtonOutline.d.ts +3 -2
  322. package/lib-esm/Button/ButtonOutline.js +2 -2
  323. package/lib-esm/Button/ButtonPrimary.d.ts +3 -2
  324. package/lib-esm/Button/ButtonPrimary.js +2 -2
  325. package/lib-esm/Button/ButtonTableList.d.ts +2 -1
  326. package/lib-esm/Button/ButtonTableList.js +2 -2
  327. package/lib-esm/CircleBadge.d.ts +5 -4
  328. package/lib-esm/CircleBadge.js +2 -2
  329. package/lib-esm/CircleOcticon.d.ts +1 -1
  330. package/lib-esm/CounterLabel.d.ts +2 -1
  331. package/lib-esm/CounterLabel.js +2 -2
  332. package/lib-esm/Dialog/Dialog.d.ts +9 -5
  333. package/lib-esm/Dialog/Dialog.js +12 -12
  334. package/lib-esm/Dialog.d.ts +5 -4
  335. package/lib-esm/Dialog.js +2 -2
  336. package/lib-esm/Dropdown.d.ts +99 -10
  337. package/lib-esm/Dropdown.js +4 -4
  338. package/lib-esm/DropdownMenu/DropdownButton.d.ts +47 -3
  339. package/lib-esm/DropdownMenu/DropdownButton.js +1 -3
  340. package/lib-esm/EmojiPicker/EmojiPicker.d.ts +15 -0
  341. package/lib-esm/EmojiPicker/EmojiPicker.js +184 -0
  342. package/lib-esm/EmojiPicker/EmojiPickerAnchor.d.ts +0 -0
  343. package/lib-esm/EmojiPicker/EmojiPickerAnchor.js +0 -0
  344. package/lib-esm/EmojiPicker/EmojiPickerPanel.d.ts +3 -0
  345. package/lib-esm/EmojiPicker/EmojiPickerPanel.js +8 -0
  346. package/lib-esm/EmojiPicker/data.d.ts +9 -0
  347. package/lib-esm/EmojiPicker/data.js +5434 -0
  348. package/lib-esm/EmojiPicker/index.d.ts +2 -0
  349. package/lib-esm/EmojiPicker/index.js +1 -0
  350. package/lib-esm/FilterList.d.ts +303 -264
  351. package/lib-esm/FilterList.js +7 -3
  352. package/lib-esm/FilteredSearch.d.ts +2 -1
  353. package/lib-esm/FilteredSearch.js +2 -2
  354. package/lib-esm/Flash.d.ts +2 -1
  355. package/lib-esm/Flash.js +2 -2
  356. package/lib-esm/FormGroup.d.ts +5 -4
  357. package/lib-esm/FormGroup.js +3 -3
  358. package/lib-esm/Header.d.ts +7 -6
  359. package/lib-esm/Header.js +5 -5
  360. package/lib-esm/Label.d.ts +2 -1
  361. package/lib-esm/Label.js +4 -3
  362. package/lib-esm/LabelGroup.d.ts +2 -1
  363. package/lib-esm/LabelGroup.js +2 -2
  364. package/lib-esm/Link.d.ts +2 -1
  365. package/lib-esm/Link.js +2 -2
  366. package/lib-esm/NewButton/button.js +42 -31
  367. package/lib-esm/Overlay.d.ts +11 -14
  368. package/lib-esm/Overlay.js +3 -2
  369. package/lib-esm/Pagehead.d.ts +2 -1
  370. package/lib-esm/Pagehead.js +2 -2
  371. package/lib-esm/Pagination/Pagination.js +2 -2
  372. package/lib-esm/Popover.d.ts +5 -4
  373. package/lib-esm/Popover.js +5 -4
  374. package/lib-esm/Position.d.ts +4 -4
  375. package/lib-esm/SelectMenu/SelectMenu.d.ts +189 -21
  376. package/lib-esm/SelectMenu/SelectMenu.js +2 -1
  377. package/lib-esm/SelectMenu/SelectMenuDivider.d.ts +2 -1
  378. package/lib-esm/SelectMenu/SelectMenuDivider.js +2 -2
  379. package/lib-esm/SelectMenu/SelectMenuFilter.js +2 -2
  380. package/lib-esm/SelectMenu/SelectMenuFooter.d.ts +2 -1
  381. package/lib-esm/SelectMenu/SelectMenuFooter.js +2 -2
  382. package/lib-esm/SelectMenu/SelectMenuHeader.d.ts +2 -1
  383. package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
  384. package/lib-esm/SelectMenu/SelectMenuItem.d.ts +3 -2
  385. package/lib-esm/SelectMenu/SelectMenuItem.js +2 -2
  386. package/lib-esm/SelectMenu/SelectMenuList.d.ts +2 -1
  387. package/lib-esm/SelectMenu/SelectMenuList.js +2 -2
  388. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.d.ts +2 -2
  389. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +2 -3
  390. package/lib-esm/SelectMenu/SelectMenuModal.d.ts +3 -2
  391. package/lib-esm/SelectMenu/SelectMenuModal.js +2 -2
  392. package/lib-esm/SelectMenu/SelectMenuTab.d.ts +2 -1
  393. package/lib-esm/SelectMenu/SelectMenuTab.js +2 -2
  394. package/lib-esm/SelectMenu/SelectMenuTabPanel.d.ts +2 -1
  395. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +2 -2
  396. package/lib-esm/SelectMenu/SelectMenuTabs.d.ts +2 -1
  397. package/lib-esm/SelectMenu/SelectMenuTabs.js +2 -2
  398. package/lib-esm/SideNav.d.ts +8 -11
  399. package/lib-esm/SideNav.js +16 -8
  400. package/lib-esm/StateLabel.d.ts +2 -1
  401. package/lib-esm/StateLabel.js +6 -7
  402. package/lib-esm/StyledOcticon.d.ts +2 -1
  403. package/lib-esm/StyledOcticon.js +2 -1
  404. package/lib-esm/SubNav.d.ts +11 -5
  405. package/lib-esm/SubNav.js +13 -8
  406. package/lib-esm/TabNav.d.ts +4 -3
  407. package/lib-esm/TabNav.js +3 -3
  408. package/lib-esm/TextInputWithTokens.d.ts +3 -3
  409. package/lib-esm/Timeline.d.ts +393 -19
  410. package/lib-esm/Timeline.js +13 -12
  411. package/lib-esm/Token/Token.d.ts +1 -1
  412. package/lib-esm/Tooltip.d.ts +2 -1
  413. package/lib-esm/Tooltip.js +2 -2
  414. package/lib-esm/Truncate.d.ts +2 -1
  415. package/lib-esm/Truncate.js +2 -1
  416. package/lib-esm/UnderlineNav.d.ts +3 -2
  417. package/lib-esm/UnderlineNav.js +3 -3
  418. package/lib-esm/index.d.ts +2 -2
  419. package/lib-esm/index.js +1 -1
  420. package/lib-esm/theme-preval.js +366 -512
  421. package/lib-esm/utils/testing.d.ts +61 -28
  422. package/lib-esm/utils/testing.js +0 -24
  423. package/package.json +5 -4
  424. package/lib/Checkbox.d.ts +0 -29
  425. package/lib/Checkbox.js +0 -64
  426. package/lib-esm/Checkbox.d.ts +0 -29
  427. package/lib-esm/Checkbox.js +0 -44
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { get } from './constants';
3
+ import { COMMON, get } from './constants';
4
4
  import sx from './sx';
5
5
  const FilterListBase = styled.ul.withConfig({
6
6
  displayName: "FilterList__FilterListBase",
7
7
  componentId: "sc-1l4pxmz-0"
8
- })(["list-style-type:none;margin:0;padding:0;", ";"], sx);
8
+ })(["list-style-type:none;", ";", ";"], COMMON, sx);
9
9
 
10
10
  const FilterList = ({
11
11
  children,
@@ -21,7 +21,7 @@ FilterList.displayName = "FilterList";
21
21
  const FilterListItemBase = styled.a.withConfig({
22
22
  displayName: "FilterList__FilterListItemBase",
23
23
  componentId: "sc-1l4pxmz-1"
24
- })(["position:relative;display:block;padding:", ";margin:", ";overflow:hidden;font-size:", ";color:", ";background-color:", "!important;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:", ";&:hover{text-decoration:none;background-color:", ";}&:active{color:", ";background-color:", ";}.count{float:right;font-weight:", ";}", ";"], props => props.small ? `${get('space.1')(props)} 10px` : `${get('space.2')(props)} 11px`, props => props.small ? '0 0 2px' : '0 0 5px 0', get('fontSizes.1'), props => props.selected ? get('colors.fg.onEmphasis') : get('colors.fg.muted'), props => props.selected ? get('colors.accent.emphasis') : '', get('radii.1'), get('colors.canvas.subtle'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('fontWeights.bold'), sx);
24
+ })(["position:relative;display:block;padding:", ";margin:", ";overflow:hidden;font-size:", ";color:", ";background-color:", "!important;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:", ";&:hover{text-decoration:none;background-color:", ";}&:active{color:", ";background-color:", ";}.count{float:right;font-weight:", ";}", ";", ";"], props => props.small ? `${get('space.1')(props)} 10px` : `${get('space.2')(props)} 11px`, props => props.small ? '0 0 2px' : '0 0 5px 0', get('fontSizes.1'), props => props.selected ? get('colors.fg.onEmphasis') : get('colors.fg.muted'), props => props.selected ? get('colors.accent.emphasis') : '', get('radii.1'), get('colors.canvas.subtle'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('fontWeights.bold'), COMMON, sx);
25
25
 
26
26
  function FilterListItem({
27
27
  children,
@@ -35,6 +35,10 @@ function FilterListItem({
35
35
  }
36
36
 
37
37
  FilterListItem.displayName = "FilterListItem";
38
+ FilterList.defaultProps = {
39
+ m: 0,
40
+ p: 0
41
+ };
38
42
  FilterListItem.displayName = 'FilterList.Item';
39
43
  export default Object.assign(FilterList, {
40
44
  Item: FilterListItem
@@ -1,5 +1,6 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
- declare const FilteredSearch: import("styled-components").StyledComponent<"div", any, SxProp, never>;
4
+ declare const FilteredSearch: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
5
  export declare type FilteredSearchProps = ComponentProps<typeof FilteredSearch>;
5
6
  export default FilteredSearch;
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { get } from './constants';
2
+ import { COMMON, get } from './constants';
3
3
  import sx from './sx';
4
4
  const FilteredSearch = styled.div.withConfig({
5
5
  displayName: "FilteredSearch",
6
6
  componentId: "sc-15qfedq-0"
7
- })(["display:flex;align-items:stretch;summary{border-radius:0;border-top-left-radius:", ";border-bottom-left-radius:", ";border-right:0;}.TextInput-wrapper{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";z-index:1;}", ""], get('radii.2'), get('radii.2'), get('radii.2'), get('radii.2'), sx);
7
+ })(["", ";display:flex;align-items:stretch;summary{border-radius:0;border-top-left-radius:", ";border-bottom-left-radius:", ";border-right:0;}.TextInput-wrapper{border-radius:0;border-top-right-radius:", ";border-bottom-right-radius:", ";z-index:1;}", ""], COMMON, get('radii.2'), get('radii.2'), get('radii.2'), get('radii.2'), sx);
8
8
  export default FilteredSearch;
@@ -1,8 +1,9 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
4
  declare const Flash: import("styled-components").StyledComponent<"div", any, {
4
5
  variant?: "success" | "danger" | "default" | "warning" | undefined;
5
6
  full?: boolean | undefined;
6
- } & SxProp, never>;
7
+ } & SystemCommonProps & SxProp, never>;
7
8
  export declare type FlashProps = ComponentProps<typeof Flash>;
8
9
  export default Flash;
package/lib-esm/Flash.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { variant } from 'styled-system';
3
- import { get } from './constants';
3
+ import { COMMON, get } from './constants';
4
4
  import sx from './sx';
5
5
  const variants = variant({
6
6
  variants: {
@@ -41,7 +41,7 @@ const variants = variant({
41
41
  const Flash = styled.div.withConfig({
42
42
  displayName: "Flash",
43
43
  componentId: "sc-4y90bn-0"
44
- })(["position:relative;color:", ";padding:", ";border-style:solid;border-width:", ";border-radius:", ";margin-top:", ";p:last-child{margin-bottom:0;}svg{margin-right:", ";}", ";", ";"], get('colors.fg.default'), get('space.3'), props => props.full ? '1px 0px' : '1px', props => props.full ? '0' : get('radii.2'), props => props.full ? '-1px' : '0', get('space.2'), variants, sx);
44
+ })(["position:relative;color:", ";padding:", ";border-style:solid;border-width:", ";border-radius:", ";margin-top:", ";p:last-child{margin-bottom:0;}svg{margin-right:", ";}", ";", ";", ";"], get('colors.fg.default'), get('space.3'), props => props.full ? '1px 0px' : '1px', props => props.full ? '0' : get('radii.2'), props => props.full ? '-1px' : '0', get('space.2'), COMMON, variants, sx);
45
45
  Flash.defaultProps = {
46
46
  variant: 'default'
47
47
  };
@@ -1,11 +1,12 @@
1
1
  /// <reference types="hoist-non-react-statics" />
2
+ import { SystemCommonProps, SystemTypographyProps } from './constants';
2
3
  import { SxProp } from './sx';
3
4
  import { ComponentProps } from './utils/types';
4
- declare const FormGroup: import("styled-components").StyledComponent<"div", any, SxProp, never>;
5
- declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SxProp, never>;
5
+ declare const FormGroup: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
6
+ declare const FormGroupLabel: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
6
7
  export declare type FormGroupProps = ComponentProps<typeof FormGroup>;
7
8
  export declare type FormGroupLabelProps = ComponentProps<typeof FormGroupLabel>;
8
- declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
9
- Label: import("styled-components").StyledComponent<"label", any, SxProp, never>;
9
+ declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
10
+ Label: import("styled-components").StyledComponent<"label", any, SystemTypographyProps & SystemCommonProps & SxProp, never>;
10
11
  };
11
12
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import styled from 'styled-components';
2
- import { get } from './constants';
2
+ import { COMMON, get, TYPOGRAPHY } from './constants';
3
3
  import sx from './sx';
4
4
  const FormGroup = styled.div.withConfig({
5
5
  displayName: "FormGroup",
6
6
  componentId: "sc-14z6yax-0"
7
- })(["margin:", " 0;font-weight:", ";", ";"], get('space.3'), get('fontWeights.normal'), sx);
7
+ })(["margin:", " 0;font-weight:", ";", ";", ";"], get('space.3'), get('fontWeights.normal'), COMMON, sx);
8
8
  const FormGroupLabel = styled.label.withConfig({
9
9
  displayName: "FormGroup__FormGroupLabel",
10
10
  componentId: "sc-14z6yax-1"
11
- })(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), sx);
11
+ })(["display:block;margin:0 0 ", ";font-size:", ";font-weight:", ";", ";", ";", ";"], get('space.2'), get('fontSizes.1'), get('fontWeights.bold'), TYPOGRAPHY, COMMON, sx);
12
12
  FormGroupLabel.displayName = 'FormGroup.Label';
13
13
  export default Object.assign(FormGroup, {
14
14
  Label: FormGroupLabel
@@ -1,23 +1,24 @@
1
1
  /// <reference types="hoist-non-react-statics" />
2
2
  import * as History from 'history';
3
+ import { SystemBorderProps, SystemCommonProps, SystemTypographyProps } from './constants';
3
4
  import { SxProp } from './sx';
4
5
  import { ComponentProps } from './utils/types';
5
- declare const Header: import("styled-components").StyledComponent<"div", any, SxProp, never>;
6
+ declare const Header: import("styled-components").StyledComponent<"div", any, SystemBorderProps & SystemCommonProps & SxProp, never>;
6
7
  declare const HeaderItem: import("styled-components").StyledComponent<"div", any, {
7
8
  full?: boolean | undefined;
8
- } & SxProp, never>;
9
+ } & SystemCommonProps & SxProp, never>;
9
10
  declare const HeaderLink: import("styled-components").StyledComponent<"a", any, {
10
11
  to?: History.LocationDescriptor<unknown> | undefined;
11
- } & SxProp, never>;
12
+ } & SystemCommonProps & SxProp & SystemTypographyProps & SystemBorderProps, never>;
12
13
  export declare type HeaderProps = ComponentProps<typeof Header>;
13
14
  export declare type HeaderLinkProps = ComponentProps<typeof HeaderLink>;
14
15
  export declare type HeaderItemProps = ComponentProps<typeof HeaderItem>;
15
- declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
16
+ declare const _default: string & import("styled-components").StyledComponentBase<"div", any, SystemBorderProps & SystemCommonProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
16
17
  Link: import("styled-components").StyledComponent<"a", any, {
17
18
  to?: History.LocationDescriptor<unknown> | undefined;
18
- } & SxProp, never>;
19
+ } & SystemCommonProps & SxProp & SystemTypographyProps & SystemBorderProps, never>;
19
20
  Item: import("styled-components").StyledComponent<"div", any, {
20
21
  full?: boolean | undefined;
21
- } & SxProp, never>;
22
+ } & SystemCommonProps & SxProp, never>;
22
23
  };
23
24
  export default _default;
package/lib-esm/Header.js CHANGED
@@ -1,17 +1,17 @@
1
1
  // eslint-disable-next-line import/no-namespace
2
2
  import styled, { css } from 'styled-components';
3
- import { get } from './constants';
3
+ import { BORDER, COMMON, get, TYPOGRAPHY } from './constants';
4
4
  import sx from './sx';
5
5
  const Header = styled.div.withConfig({
6
6
  displayName: "Header",
7
7
  componentId: "sc-217i47-0"
8
- })(["z-index:32;display:flex;padding:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";align-items:center;flex-wrap:nowrap;", ";"], get('space.3'), get('fontSizes.1'), get('lineHeights.default'), get('colors.header.text'), get('colors.header.bg'), sx);
8
+ })(["z-index:32;display:flex;padding:", ";font-size:", ";line-height:", ";color:", ";background-color:", ";align-items:center;flex-wrap:nowrap;", " ", " ", ";"], get('space.3'), get('fontSizes.1'), get('lineHeights.default'), get('colors.header.text'), get('colors.header.bg'), COMMON, BORDER, sx);
9
9
  const HeaderItem = styled.div.withConfig({
10
10
  displayName: "Header__HeaderItem",
11
11
  componentId: "sc-217i47-1"
12
- })(["display:flex;margin-right:", ";align-self:stretch;align-items:center;flex-wrap:nowrap;", ";", ";"], get('space.3'), ({
12
+ })(["display:flex;margin-right:", ";align-self:stretch;align-items:center;flex-wrap:nowrap;", ";", ";", ";", ";"], get('space.3'), ({
13
13
  full
14
- }) => full && css(["flex:auto;"]), sx);
14
+ }) => full && css(["flex:auto;"]), COMMON, BORDER, sx);
15
15
  HeaderItem.displayName = 'Header.Item';
16
16
  const HeaderLink = styled.a.attrs(({
17
17
  to
@@ -30,7 +30,7 @@ const HeaderLink = styled.a.attrs(({
30
30
  }).withConfig({
31
31
  displayName: "Header__HeaderLink",
32
32
  componentId: "sc-217i47-2"
33
- })(["font-weight:", ";color:", ";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:", ";}", ";"], get('fontWeights.bold'), get('colors.header.logo'), get('colors.header.text'), sx);
33
+ })(["font-weight:", ";color:", ";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:", ";}", ";", ";", ";", ";"], get('fontWeights.bold'), get('colors.header.logo'), get('colors.header.text'), COMMON, BORDER, TYPOGRAPHY, sx);
34
34
  HeaderLink.displayName = 'Header.Link';
35
35
  export default Object.assign(Header, {
36
36
  Link: HeaderLink,
@@ -1,10 +1,11 @@
1
1
  import { BorderColorProps } from 'styled-system';
2
+ import { SystemCommonProps } from './constants';
2
3
  import { SxProp } from './sx';
3
4
  import { ComponentProps } from './utils/types';
4
5
  declare const Label: import("styled-components").StyledComponent<"span", any, {
5
6
  variant?: "small" | "medium" | "large" | "xl" | undefined;
6
7
  dropshadow?: boolean | undefined;
7
8
  outline?: boolean | undefined;
8
- } & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SxProp, never>;
9
+ } & BorderColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & SystemCommonProps & SxProp, never>;
9
10
  export declare type LabelProps = ComponentProps<typeof Label>;
10
11
  export default Label;
package/lib-esm/Label.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { borderColor, variant } from 'styled-system';
3
- import { get } from './constants';
3
+ import { COMMON, get } from './constants';
4
4
  import sx from './sx';
5
- const outlineStyles = css(["margin-top:-1px;margin-bottom:-1px;color:", ";border:", " solid ", ";box-shadow:none;", ";background-color:transparent;"], get('colors.fg.muted'), get('borderWidths.1'), get('colors.border.default'), borderColor);
5
+ const outlineStyles = css(["margin-top:-1px;margin-bottom:-1px;color:", ";border:", " solid ", ";box-shadow:none;", ";", ";background-color:transparent;"], get('colors.fg.muted'), get('borderWidths.1'), get('colors.border.default'), borderColor, COMMON);
6
6
  const sizeVariant = variant({
7
7
  variants: {
8
8
  small: {
@@ -31,8 +31,9 @@ const sizeVariant = variant({
31
31
  const Label = styled.span.withConfig({
32
32
  displayName: "Label",
33
33
  componentId: "sc-1t3ykp0-0"
34
- })(["display:inline-block;font-weight:", ";color:", ";border-radius:", ";background-color:", ";&:hover{text-decoration:none;}", " ", " ", " ", ""], get('fontWeights.semibold'), get('colors.fg.onEmphasis'), get('radii.3'), get('colors.neutral.emphasis'), sizeVariant, props => props.dropshadow ? 'box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)' : '', props => props.outline ? outlineStyles : '', sx);
34
+ })(["display:inline-block;font-weight:", ";color:", ";border-radius:", ";&:hover{text-decoration:none;}", " ", " ", " ", " ", ""], get('fontWeights.semibold'), get('colors.fg.onEmphasis'), get('radii.3'), sizeVariant, COMMON, props => props.dropshadow ? 'box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)' : '', props => props.outline ? outlineStyles : '', sx);
35
35
  Label.defaultProps = {
36
+ bg: 'neutral.emphasis',
36
37
  variant: 'medium'
37
38
  };
38
39
  export default Label;
@@ -1,5 +1,6 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
- declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SxProp, never>;
4
+ declare const LabelGroup: import("styled-components").StyledComponent<"span", any, SystemCommonProps & SxProp, never>;
4
5
  export declare type LabelGroupProps = ComponentProps<typeof LabelGroup>;
5
6
  export default LabelGroup;
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { get } from './constants';
2
+ import { COMMON, get } from './constants';
3
3
  import sx from './sx';
4
4
  const LabelGroup = styled.span.withConfig({
5
5
  displayName: "LabelGroup",
6
6
  componentId: "k6k3qa-0"
7
- })(["& *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], get('space.1'), sx);
7
+ })(["", " & *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], COMMON, get('space.1'), sx);
8
8
  export default LabelGroup;
package/lib-esm/Link.d.ts CHANGED
@@ -1,9 +1,10 @@
1
+ import { SystemCommonProps, SystemTypographyProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
4
  declare const Link: import("styled-components").StyledComponent<"a", any, {
4
5
  hoverColor?: string | undefined;
5
6
  muted?: boolean | undefined;
6
7
  underline?: boolean | undefined;
7
- } & SxProp, never>;
8
+ } & SystemCommonProps & SxProp & SystemTypographyProps, never>;
8
9
  export declare type LinkProps = ComponentProps<typeof Link>;
9
10
  export default Link;
package/lib-esm/Link.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { system } from 'styled-system';
3
- import { get } from './constants';
3
+ import { COMMON, get, TYPOGRAPHY } from './constants';
4
4
  import sx from './sx';
5
5
  const hoverColor = system({
6
6
  hoverColor: {
@@ -11,5 +11,5 @@ const hoverColor = system({
11
11
  const Link = styled.a.withConfig({
12
12
  displayName: "Link",
13
13
  componentId: "sc-1brdqhf-0"
14
- })(["color:", ";text-decoration:", ";&:hover{text-decoration:", ";", ";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}", ";"], props => props.muted ? get('colors.fg.muted')(props) : get('colors.accent.fg')(props), props => props.underline ? 'underline' : 'none', props => props.muted ? 'none' : 'underline', props => props.hoverColor ? hoverColor : props.muted ? `color: ${get('colors.accent.fg')(props)}` : '', sx);
14
+ })(["color:", ";text-decoration:", ";&:hover{text-decoration:", ";", ";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}", ";", ";", ";"], props => props.muted ? get('colors.fg.muted')(props) : get('colors.accent.fg')(props), props => props.underline ? 'underline' : 'none', props => props.muted ? 'none' : 'underline', props => props.hoverColor ? hoverColor : props.muted ? `color: ${get('colors.accent.fg')(props)}` : '', TYPOGRAPHY, COMMON, sx);
15
15
  export default Link;
@@ -5,7 +5,6 @@ import Box from '../Box';
5
5
  import styled from 'styled-components';
6
6
  import sx, { merge } from '../sx';
7
7
  import { useTheme } from '../ThemeProvider';
8
- const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
9
8
 
10
9
  const getVariantStyles = (variant = 'default', theme) => {
11
10
  const style = {
@@ -130,7 +129,7 @@ const getVariantStyles = (variant = 'default', theme) => {
130
129
  borderColor: 'btn.outline.focusBorder',
131
130
  boxShadow: `${theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.focusShadow}`
132
131
  },
133
- '&:active:not([disabled])': {
132
+ '&:active': {
134
133
  color: 'btn.outline.selectedText',
135
134
  backgroundColor: 'btn.outline.selectedBg',
136
135
  boxShadow: `${theme === null || theme === void 0 ? void 0 : theme.shadows.btn.outline.selectedShadow}`,
@@ -200,7 +199,6 @@ const ButtonBase = styled.button.withConfig({
200
199
  })(sx);
201
200
  const Button = /*#__PURE__*/forwardRef(({
202
201
  children,
203
- sx: sxProp = {},
204
202
  ...props
205
203
  }, forwardedRef) => {
206
204
  const {
@@ -208,9 +206,12 @@ const Button = /*#__PURE__*/forwardRef(({
208
206
  leadingIcon: LeadingIcon,
209
207
  trailingIcon: TrailingIcon,
210
208
  variant = 'default',
211
- size = 'medium'
209
+ size = 'medium',
210
+ sx: sxProp = {}
212
211
  } = props;
213
212
  const iconOnly = !!Icon;
213
+ const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
214
+
214
215
  const {
215
216
  theme
216
217
  } = useTheme();
@@ -251,36 +252,46 @@ const Button = /*#__PURE__*/forwardRef(({
251
252
  gridArea: 'trailingIcon'
252
253
  }
253
254
  };
255
+ const variableStyles = { ...getSizeStyles(size, variant, iconOnly),
256
+ ...getVariantStyles(variant, theme)
257
+ };
258
+ const componentStyles = { ...styles,
259
+ ...variableStyles
260
+ };
254
261
  const iconWrapStyles = {
255
262
  display: 'inline-block'
256
263
  };
257
- const sxStyles = merge.all([styles, getSizeStyles(size, variant, iconOnly), getVariantStyles(variant, theme), sxProp]);
258
- return /*#__PURE__*/React.createElement(ButtonBase, _extends({
259
- sx: sxStyles,
260
- ref: forwardedRef
261
- }, props), LeadingIcon && /*#__PURE__*/React.createElement(Box, {
262
- as: "span",
263
- "data-component": "leadingIcon",
264
- sx: iconWrapStyles,
265
- "aria-hidden": !iconOnly
266
- }, /*#__PURE__*/React.createElement(LeadingIcon, null)), /*#__PURE__*/React.createElement("span", {
267
- "data-component": "text",
268
- hidden: Icon ? true : false
269
- }, children), Icon && /*#__PURE__*/React.createElement(Box, {
270
- "data-component": "icon-only",
271
- as: "span",
272
- sx: {
273
- display: 'inline-block'
274
- },
275
- "aria-hidden": !iconOnly
276
- }, /*#__PURE__*/React.createElement(Icon, null)), TrailingIcon && /*#__PURE__*/React.createElement(Box, {
277
- as: "span",
278
- "data-component": "trailingIcon",
279
- sx: { ...iconWrapStyles,
280
- ml: 2
281
- },
282
- "aria-hidden": !iconOnly
283
- }, /*#__PURE__*/React.createElement(TrailingIcon, null)));
264
+ return (
265
+ /*#__PURE__*/
266
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
267
+ // @ts-ignore Why wont it accept the sx prop?
268
+ React.createElement(ButtonBase, _extends({
269
+ sx: merge(componentStyles, sxProp),
270
+ ref: forwardedRef
271
+ }, props), LeadingIcon && /*#__PURE__*/React.createElement(Box, {
272
+ as: "span",
273
+ "data-component": "leadingIcon",
274
+ sx: iconWrapStyles,
275
+ "aria-hidden": !iconOnly
276
+ }, /*#__PURE__*/React.createElement(LeadingIcon, null)), /*#__PURE__*/React.createElement("span", {
277
+ "data-component": "text",
278
+ hidden: Icon ? true : undefined
279
+ }, children), Icon && /*#__PURE__*/React.createElement(Box, {
280
+ "data-component": "icon-only",
281
+ as: "span",
282
+ sx: {
283
+ display: 'inline-block'
284
+ },
285
+ "aria-hidden": !iconOnly
286
+ }, /*#__PURE__*/React.createElement(Icon, null)), TrailingIcon && /*#__PURE__*/React.createElement(Box, {
287
+ as: "span",
288
+ "data-component": "trailingIcon",
289
+ sx: { ...iconWrapStyles,
290
+ ml: 2
291
+ },
292
+ "aria-hidden": !iconOnly
293
+ }, /*#__PURE__*/React.createElement(TrailingIcon, null)))
294
+ );
284
295
  });
285
296
  Button.displayName = 'Button';
286
297
  Object.assign(Button, {});
@@ -1,16 +1,16 @@
1
- import React, { ComponentPropsWithRef } from 'react';
2
- import { AriaRole, Merge } from './utils/types';
1
+ import React from 'react';
2
+ import { SystemPositionProps, SystemCommonProps } from './constants';
3
+ import { ComponentProps } from './utils/types';
3
4
  import { TouchOrMouseEvent } from './hooks';
4
5
  import { SxProp } from './sx';
5
6
  import { AnchorSide } from './behaviors/anchoredPosition';
6
- import { ForwardRefComponent as PolymorphicForwardRefComponent } from '@radix-ui/react-polymorphic';
7
7
  declare type StyledOverlayProps = {
8
8
  width?: keyof typeof widthMap;
9
9
  height?: keyof typeof heightMap;
10
10
  maxHeight?: keyof Omit<typeof heightMap, 'auto' | 'initial'>;
11
11
  visibility?: 'visible' | 'hidden';
12
12
  anchorSide?: AnchorSide;
13
- } & SxProp;
13
+ };
14
14
  declare const heightMap: {
15
15
  xsmall: string;
16
16
  small: string;
@@ -28,22 +28,20 @@ declare const widthMap: {
28
28
  xxlarge: string;
29
29
  auto: string;
30
30
  };
31
- declare type BaseOverlayProps = {
31
+ declare const StyledOverlay: import("styled-components").StyledComponent<"div", any, StyledOverlayProps & SystemCommonProps & SxProp, never>;
32
+ export declare type OverlayProps = {
32
33
  ignoreClickRefs?: React.RefObject<HTMLElement>[];
33
34
  initialFocusRef?: React.RefObject<HTMLElement>;
34
35
  returnFocusRef: React.RefObject<HTMLElement>;
35
36
  onClickOutside: (e: TouchOrMouseEvent) => void;
36
37
  onEscape: (e: KeyboardEvent) => void;
37
38
  visibility?: 'visible' | 'hidden';
38
- 'data-test-id'?: unknown;
39
- top?: number;
40
- left?: number;
39
+ [additionalKey: string]: unknown;
40
+ top: number;
41
+ left: number;
41
42
  portalContainerName?: string;
42
43
  preventFocusOnOpen?: boolean;
43
- role?: AriaRole;
44
- children?: React.ReactNode;
45
- };
46
- declare type OwnOverlayProps = Merge<StyledOverlayProps, BaseOverlayProps>;
44
+ } & Omit<ComponentProps<typeof StyledOverlay>, 'visibility' | keyof SystemPositionProps>;
47
45
  /**
48
46
  * An `Overlay` is a flexible floating surface, used to display transient content such as menus,
49
47
  * selection options, dialogs, and more. Overlays use shadows to express elevation. The `Overlay`
@@ -61,6 +59,5 @@ declare type OwnOverlayProps = Merge<StyledOverlayProps, BaseOverlayProps>;
61
59
  * @param left Optional. Horizontal position of the overlay, relative to its closest positioned ancestor (often its `Portal`).
62
60
  * @param portalContainerName Optional. The name of the portal container to render the Overlay into.
63
61
  */
64
- declare const Overlay: PolymorphicForwardRefComponent<"div", OwnOverlayProps>;
65
- export declare type OverlayProps = ComponentPropsWithRef<typeof Overlay>;
62
+ declare const Overlay: React.ForwardRefExoticComponent<Pick<OverlayProps, string | number> & React.RefAttributes<HTMLDivElement>>;
66
63
  export default Overlay;
@@ -2,8 +2,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import styled from 'styled-components';
4
4
  import React, { useEffect, useRef } from 'react';
5
+ import { get, COMMON } from './constants';
5
6
  import useLayoutEffect from './utils/useIsomorphicLayoutEffect';
6
- import { get } from './constants';
7
7
  import { useOverlay } from './hooks';
8
8
  import Portal from './Portal';
9
9
  import sx from './sx';
@@ -61,7 +61,7 @@ function getSlideAnimationStartingVector(anchorSide) {
61
61
  const StyledOverlay = styled.div.withConfig({
62
62
  displayName: "Overlay__StyledOverlay",
63
63
  componentId: "jhwkzw-0"
64
- })(["background-color:", ";box-shadow:", ";position:absolute;min-width:192px;max-width:640px;height:", ";max-height:", ";width:", ";border-radius:12px;overflow:hidden;animation:overlay-appear ", "ms ", ";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}", ";"], get('colors.canvas.overlay'), get('shadows.overlay.shadow'), props => heightMap[props.height || 'auto'], props => props.maxHeight && heightMap[props.maxHeight], props => widthMap[props.width || 'auto'], animationDuration, get('animation.easeOutCubic'), sx);
64
+ })(["background-color:", ";box-shadow:", ";position:absolute;min-width:192px;max-width:640px;height:", ";max-height:", ";width:", ";border-radius:12px;overflow:hidden;animation:overlay-appear ", "ms ", ";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}", ";", ";"], get('colors.canvas.overlay'), get('shadows.overlay.shadow'), props => heightMap[props.height || 'auto'], props => props.maxHeight && heightMap[props.maxHeight], props => widthMap[props.width || 'auto'], animationDuration, get('animation.easeOutCubic'), COMMON, sx);
65
65
 
66
66
  /**
67
67
  * An `Overlay` is a flexible floating surface, used to display transient content such as menus,
@@ -149,6 +149,7 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
149
149
  style: {
150
150
  top: `${top || 0}px`,
151
151
  left: `${left || 0}px`,
152
+ ...rest.style,
152
153
  '--styled-overlay-visibility': visibility
153
154
  }
154
155
  })));
@@ -1,5 +1,6 @@
1
+ import { SystemCommonProps } from './constants';
1
2
  import { SxProp } from './sx';
2
3
  import { ComponentProps } from './utils/types';
3
- declare const Pagehead: import("styled-components").StyledComponent<"div", any, SxProp, never>;
4
+ declare const Pagehead: import("styled-components").StyledComponent<"div", any, SystemCommonProps & SxProp, never>;
4
5
  export declare type PageheadProps = ComponentProps<typeof Pagehead>;
5
6
  export default Pagehead;
@@ -1,8 +1,8 @@
1
1
  import styled from 'styled-components';
2
- import { get } from './constants';
2
+ import { COMMON, get } from './constants';
3
3
  import sx from './sx';
4
4
  const Pagehead = styled.div.withConfig({
5
5
  displayName: "Pagehead",
6
6
  componentId: "sc-1ntn78e-0"
7
- })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), sx);
7
+ })(["position:relative;padding-top:", ";padding-bottom:", ";margin-bottom:", ";border-bottom:1px solid ", ";", ";", ";"], get('space.4'), get('space.4'), get('space.4'), get('colors.border.default'), COMMON, sx);
8
8
  export default Pagehead;
@@ -3,13 +3,13 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import React from 'react';
4
4
  import styled from 'styled-components';
5
5
  import Box from '../Box';
6
- import { get } from '../constants';
6
+ import { COMMON, get } from '../constants';
7
7
  import sx from '../sx';
8
8
  import { buildComponentData, buildPaginationModel } from './model';
9
9
  const Page = styled.a.withConfig({
10
10
  displayName: "Pagination__Page",
11
11
  componentId: "b80nss-0"
12
- })(["display:inline-block;min-width:32px;padding:5px 10px;font-style:normal;line-height:20px;color:", ";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:", ";&:last-child{margin-right:0;}border:", " solid transparent;border-radius:", ";transition:border-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;border-color:", ";outline:0;transition-duration:0.1s;}&:active{border-color:", ";}&[rel='prev'],&[rel='next']{color:", ";}&[aria-current],&[aria-current]:hover{color:", ";background-color:", ";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:", ";cursor:default;border-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:", ";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:", ";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"], get('colors.fg.default'), get('space.1'), get('borderWidths.1'), get('radii.2'), get('colors.border.default'), get('colors.border.muted'), get('colors.accent.fg'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('colors.primer.fg.disabled'), get('space.1'), get('space.1'));
12
+ })(["display:inline-block;min-width:32px;padding:5px 10px;font-style:normal;line-height:20px;color:", ";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:", ";&:last-child{margin-right:0;}border:", " solid transparent;border-radius:", ";transition:border-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;border-color:", ";outline:0;transition-duration:0.1s;}&:active{border-color:", ";}&[rel='prev'],&[rel='next']{color:", ";}&[aria-current],&[aria-current]:hover{color:", ";background-color:", ";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:", ";cursor:default;border-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:", ";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:", ";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}", ";"], get('colors.fg.default'), get('space.1'), get('borderWidths.1'), get('radii.2'), get('colors.border.default'), get('colors.border.muted'), get('colors.accent.fg'), get('colors.fg.onEmphasis'), get('colors.accent.emphasis'), get('colors.primer.fg.disabled'), get('space.1'), get('space.1'), COMMON);
13
13
 
14
14
  function usePaginationPages({
15
15
  theme,
@@ -1,4 +1,5 @@
1
1
  /// <reference types="hoist-non-react-statics" />
2
+ import { SystemCommonProps, SystemLayoutProps, SystemPositionProps } from './constants';
2
3
  import { SxProp } from './sx';
3
4
  import { ComponentProps } from './utils/types';
4
5
  declare type CaretPosition = 'top' | 'bottom' | 'left' | 'right' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top';
@@ -6,15 +7,15 @@ declare const Popover: import("styled-components").StyledComponent<"div", any, {
6
7
  caret?: CaretPosition | undefined;
7
8
  relative?: boolean | undefined;
8
9
  open?: boolean | undefined;
9
- } & SxProp, never>;
10
- declare const PopoverContent: import("styled-components").StyledComponent<"div", any, SxProp, never>;
10
+ } & SystemCommonProps & SystemLayoutProps & SystemPositionProps & SxProp, never>;
11
+ declare const PopoverContent: import("styled-components").StyledComponent<"div", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & SxProp, never>;
11
12
  export declare type PopoverProps = ComponentProps<typeof Popover>;
12
13
  export declare type PopoverContentProps = ComponentProps<typeof PopoverContent>;
13
14
  declare const _default: string & import("styled-components").StyledComponentBase<"div", any, {
14
15
  caret?: CaretPosition | undefined;
15
16
  relative?: boolean | undefined;
16
17
  open?: boolean | undefined;
17
- } & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
18
- Content: import("styled-components").StyledComponent<"div", any, SxProp, never>;
18
+ } & SystemCommonProps & SystemLayoutProps & SystemPositionProps & SxProp, never> & import("hoist-non-react-statics").NonReactStatics<never, {}> & {
19
+ Content: import("styled-components").StyledComponent<"div", any, import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & SxProp, never>;
19
20
  };
20
21
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import classnames from 'classnames';
2
2
  import styled from 'styled-components';
3
- import { get } from './constants';
3
+ import Box from './Box';
4
+ import { COMMON, get, LAYOUT, POSITION } from './constants';
4
5
  import sx from './sx';
5
6
  const Popover = styled.div.attrs(({
6
7
  className,
@@ -12,11 +13,11 @@ const Popover = styled.div.attrs(({
12
13
  }).withConfig({
13
14
  displayName: "Popover",
14
15
  componentId: "sc-1nxygy2-0"
15
- })(["position:", ";z-index:100;display:", ";", ";"], props => props.relative ? 'relative' : 'absolute', props => props.open ? 'block' : 'none', sx);
16
- const PopoverContent = styled.div.withConfig({
16
+ })(["position:", ";z-index:100;display:", ";", ";", ";", ";", ";"], props => props.relative ? 'relative' : 'absolute', props => props.open ? 'block' : 'none', COMMON, LAYOUT, POSITION, sx);
17
+ const PopoverContent = styled(Box).withConfig({
17
18
  displayName: "Popover__PopoverContent",
18
19
  componentId: "sc-1nxygy2-1"
19
- })(["border:1px solid ", ";border-radius:", ";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:", ";background-color:", ";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-", ";margin-left:-9px;border:", " solid transparent;border-bottom-color:", ";}&::after{top:-14px;margin-left:-", ";border:7px solid transparent;border-bottom-color:", ";}", ".caret-pos--bottom &,", ".caret-pos--bottom-right &,", ".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-", ";border-top-color:", ";}&::after{bottom:-14px;border-top-color:", ";}}", ".caret-pos--top-right &,", ".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}", ".caret-pos--top-left &,", ".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:", ";margin-left:0;}&::after{left:calc(", " + 1px);}}", ".caret-pos--right &,", ".caret-pos--right-top &,", ".caret-pos--right-bottom &,", ".caret-pos--left &,", ".caret-pos--left-top &,", ".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc((", " + 1px) * -1);}&::after{margin-top:-", ";}}", ".caret-pos--right &,", ".caret-pos--right-top &,", ".caret-pos--right-bottom &{&::before{right:-", ";border-left-color:", ";}&::after{right:-14px;border-left-color:", ";}}", ".caret-pos--left &,", ".caret-pos--left-top &,", ".caret-pos--left-bottom &{&::before{left:-", ";border-right-color:", ";}&::after{left:-14px;border-right-color:", ";}}", ".caret-pos--right-top &,", ".caret-pos--left-top &{&::before,&::after{top:", ";}}", ".caret-pos--right-bottom &,", ".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:", ";}&::after{bottom:calc(", " + 1px);}}", ";"], get('colors.border.default'), get('radii.2'), get('space.4'), get('colors.canvas.overlay'), get('space.3'), get('space.2'), get('colors.border.default'), get('space.2'), get('colors.canvas.overlay'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, Popover, Popover, get('space.4'), get('space.4'), Popover, Popover, Popover, Popover, Popover, Popover, get('space.2'), get('space.2'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, get('space.4'), Popover, Popover, get('space.3'), get('space.3'), sx);
20
+ })(["border:1px solid ", ";border-radius:", ";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:", ";background-color:", ";", ";", ";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-", ";margin-left:-9px;border:", " solid transparent;border-bottom-color:", ";}&::after{top:-14px;margin-left:-", ";border:7px solid transparent;border-bottom-color:", ";}", ".caret-pos--bottom &,", ".caret-pos--bottom-right &,", ".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-", ";border-top-color:", ";}&::after{bottom:-14px;border-top-color:", ";}}", ".caret-pos--top-right &,", ".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}", ".caret-pos--top-left &,", ".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:", ";margin-left:0;}&::after{left:calc(", " + 1px);}}", ".caret-pos--right &,", ".caret-pos--right-top &,", ".caret-pos--right-bottom &,", ".caret-pos--left &,", ".caret-pos--left-top &,", ".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc((", " + 1px) * -1);}&::after{margin-top:-", ";}}", ".caret-pos--right &,", ".caret-pos--right-top &,", ".caret-pos--right-bottom &{&::before{right:-", ";border-left-color:", ";}&::after{right:-14px;border-left-color:", ";}}", ".caret-pos--left &,", ".caret-pos--left-top &,", ".caret-pos--left-bottom &{&::before{left:-", ";border-right-color:", ";}&::after{left:-14px;border-right-color:", ";}}", ".caret-pos--right-top &,", ".caret-pos--left-top &{&::before,&::after{top:", ";}}", ".caret-pos--right-bottom &,", ".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:", ";}&::after{bottom:calc(", " + 1px);}}", ";"], get('colors.border.default'), get('radii.2'), get('space.4'), get('colors.canvas.overlay'), COMMON, LAYOUT, get('space.3'), get('space.2'), get('colors.border.default'), get('space.2'), get('colors.canvas.overlay'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, Popover, Popover, get('space.4'), get('space.4'), Popover, Popover, Popover, Popover, Popover, Popover, get('space.2'), get('space.2'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, Popover, get('space.3'), get('colors.border.default'), get('colors.canvas.overlay'), Popover, Popover, get('space.4'), Popover, Popover, get('space.3'), get('space.3'), sx);
20
21
  Popover.defaultProps = {
21
22
  caret: 'top'
22
23
  };