@easypost/easy-ui 1.0.0-alpha.3 → 1.0.0-alpha.30

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 (628) hide show
  1. package/Badge/index.js +32 -27
  2. package/Badge/index.mjs +32 -27
  3. package/Banner/index.js +15 -17
  4. package/Banner/index.mjs +15 -17
  5. package/Button/Button.d.ts +61 -0
  6. package/Button/Button.d.ts.map +1 -1
  7. package/Button/index.js +32 -70
  8. package/Button/index.mjs +31 -69
  9. package/CHANGELOG.md +276 -0
  10. package/Card/Card.d.ts +93 -0
  11. package/Card/Card.d.ts.map +1 -0
  12. package/Card/Card.stories.d.ts +20 -0
  13. package/Card/Card.stories.d.ts.map +1 -0
  14. package/Card/Card.test.d.ts +2 -0
  15. package/Card/Card.test.d.ts.map +1 -0
  16. package/Card/index.d.ts +2 -0
  17. package/Card/index.d.ts.map +1 -0
  18. package/Card/index.js +96 -0
  19. package/Card/index.mjs +96 -0
  20. package/Checkbox/Checkbox.d.ts +90 -0
  21. package/Checkbox/Checkbox.d.ts.map +1 -0
  22. package/Checkbox/Checkbox.stories.d.ts +13 -0
  23. package/Checkbox/Checkbox.stories.d.ts.map +1 -0
  24. package/Checkbox/Checkbox.test.d.ts +3 -0
  25. package/Checkbox/Checkbox.test.d.ts.map +1 -0
  26. package/Checkbox/index.d.ts +2 -0
  27. package/Checkbox/index.d.ts.map +1 -0
  28. package/Checkbox/index.js +260 -0
  29. package/Checkbox/index.mjs +244 -0
  30. package/CodeBlock/CodeBlock.d.ts +76 -0
  31. package/CodeBlock/CodeBlock.d.ts.map +1 -0
  32. package/CodeBlock/CodeBlock.stories.d.ts +10 -0
  33. package/CodeBlock/CodeBlock.stories.d.ts.map +1 -0
  34. package/CodeBlock/CodeBlock.test.d.ts +2 -0
  35. package/CodeBlock/CodeBlock.test.d.ts.map +1 -0
  36. package/CodeBlock/CopyButton.d.ts +9 -0
  37. package/CodeBlock/CopyButton.d.ts.map +1 -0
  38. package/CodeBlock/LanguageMenu.d.ts +18 -0
  39. package/CodeBlock/LanguageMenu.d.ts.map +1 -0
  40. package/CodeBlock/context.d.ts +11 -0
  41. package/CodeBlock/context.d.ts.map +1 -0
  42. package/CodeBlock/index.d.ts +2 -0
  43. package/CodeBlock/index.d.ts.map +1 -0
  44. package/CodeBlock/index.js +357 -0
  45. package/CodeBlock/index.mjs +341 -0
  46. package/CodeSnippet/CodeSnippet.d.ts +82 -0
  47. package/CodeSnippet/CodeSnippet.d.ts.map +1 -0
  48. package/CodeSnippet/CodeSnippet.stories.d.ts +14 -0
  49. package/CodeSnippet/CodeSnippet.stories.d.ts.map +1 -0
  50. package/CodeSnippet/CodeSnippet.test.d.ts +2 -0
  51. package/CodeSnippet/CodeSnippet.test.d.ts.map +1 -0
  52. package/CodeSnippet/SyntaxHighlighter.d.ts +8 -0
  53. package/CodeSnippet/SyntaxHighlighter.d.ts.map +1 -0
  54. package/CodeSnippet/index.d.ts +2 -0
  55. package/CodeSnippet/index.d.ts.map +1 -0
  56. package/CodeSnippet/index.js +4 -0
  57. package/CodeSnippet/index.mjs +4 -0
  58. package/CodeSnippet/theme.d.ts +20 -0
  59. package/CodeSnippet/theme.d.ts.map +1 -0
  60. package/CodeSnippet/useScrollbar.d.ts +12 -0
  61. package/CodeSnippet/useScrollbar.d.ts.map +1 -0
  62. package/DataGrid/ActionsCellContent.d.ts +8 -0
  63. package/DataGrid/ActionsCellContent.d.ts.map +1 -0
  64. package/DataGrid/Cell.d.ts +10 -0
  65. package/DataGrid/Cell.d.ts.map +1 -0
  66. package/DataGrid/ColumnHeader.d.ts +10 -0
  67. package/DataGrid/ColumnHeader.d.ts.map +1 -0
  68. package/DataGrid/DataGrid.d.ts +39 -0
  69. package/DataGrid/DataGrid.d.ts.map +1 -0
  70. package/DataGrid/DataGrid.stories.d.ts +15 -0
  71. package/DataGrid/DataGrid.stories.d.ts.map +1 -0
  72. package/DataGrid/DataGrid.test.d.ts +2 -0
  73. package/DataGrid/DataGrid.test.d.ts.map +1 -0
  74. package/DataGrid/ExpandCellContent.d.ts +8 -0
  75. package/DataGrid/ExpandCellContent.d.ts.map +1 -0
  76. package/DataGrid/ExpandedRowContent.d.ts +7 -0
  77. package/DataGrid/ExpandedRowContent.d.ts.map +1 -0
  78. package/DataGrid/HeaderRow.d.ts +11 -0
  79. package/DataGrid/HeaderRow.d.ts.map +1 -0
  80. package/DataGrid/Row.d.ts +12 -0
  81. package/DataGrid/Row.d.ts.map +1 -0
  82. package/DataGrid/RowGroup.d.ts +8 -0
  83. package/DataGrid/RowGroup.d.ts.map +1 -0
  84. package/DataGrid/SortIndicator.d.ts +7 -0
  85. package/DataGrid/SortIndicator.d.ts.map +1 -0
  86. package/DataGrid/Table.d.ts +8 -0
  87. package/DataGrid/Table.d.ts.map +1 -0
  88. package/DataGrid/UnstyledPressButton.d.ts +10 -0
  89. package/DataGrid/UnstyledPressButton.d.ts.map +1 -0
  90. package/DataGrid/VisuallyHiddenCellContent.d.ts +7 -0
  91. package/DataGrid/VisuallyHiddenCellContent.d.ts.map +1 -0
  92. package/DataGrid/constants.d.ts +4 -0
  93. package/DataGrid/constants.d.ts.map +1 -0
  94. package/DataGrid/context.d.ts +27 -0
  95. package/DataGrid/context.d.ts.map +1 -0
  96. package/DataGrid/index.d.ts +2 -0
  97. package/DataGrid/index.d.ts.map +1 -0
  98. package/DataGrid/index.js +3615 -0
  99. package/DataGrid/index.mjs +3599 -0
  100. package/DataGrid/useEdgeInterceptors.d.ts +15 -0
  101. package/DataGrid/useEdgeInterceptors.d.ts.map +1 -0
  102. package/DataGrid/useExpandedRow.d.ts +14 -0
  103. package/DataGrid/useExpandedRow.d.ts.map +1 -0
  104. package/DataGrid/useGridTemplate.d.ts +14 -0
  105. package/DataGrid/useGridTemplate.d.ts.map +1 -0
  106. package/DropdownButton/DropdownButton.d.ts +48 -0
  107. package/DropdownButton/DropdownButton.d.ts.map +1 -1
  108. package/DropdownButton/index.js +27 -102
  109. package/DropdownButton/index.mjs +27 -86
  110. package/FocusedProductLayout/BackArrow.d.ts +4 -0
  111. package/FocusedProductLayout/BackArrow.d.ts.map +1 -0
  112. package/FocusedProductLayout/Content.d.ts +10 -0
  113. package/FocusedProductLayout/Content.d.ts.map +1 -0
  114. package/FocusedProductLayout/FocusedProductLayout.d.ts +111 -0
  115. package/FocusedProductLayout/FocusedProductLayout.d.ts.map +1 -0
  116. package/FocusedProductLayout/FocusedProductLayout.stories.d.ts +12 -0
  117. package/FocusedProductLayout/FocusedProductLayout.stories.d.ts.map +1 -0
  118. package/FocusedProductLayout/FocusedProductLayout.test.d.ts +2 -0
  119. package/FocusedProductLayout/FocusedProductLayout.test.d.ts.map +1 -0
  120. package/FocusedProductLayout/HeaderAtTopOfPage.d.ts +11 -0
  121. package/FocusedProductLayout/HeaderAtTopOfPage.d.ts.map +1 -0
  122. package/FocusedProductLayout/HeaderInContentArea.d.ts +11 -0
  123. package/FocusedProductLayout/HeaderInContentArea.d.ts.map +1 -0
  124. package/FocusedProductLayout/SidePanel.d.ts +13 -0
  125. package/FocusedProductLayout/SidePanel.d.ts.map +1 -0
  126. package/FocusedProductLayout/WizardContent.d.ts +49 -0
  127. package/FocusedProductLayout/WizardContent.d.ts.map +1 -0
  128. package/FocusedProductLayout/index.d.ts +2 -0
  129. package/FocusedProductLayout/index.d.ts.map +1 -0
  130. package/FocusedProductLayout/index.js +247 -0
  131. package/FocusedProductLayout/index.mjs +231 -0
  132. package/FormLayout/FormLayout.d.ts +55 -0
  133. package/FormLayout/FormLayout.d.ts.map +1 -0
  134. package/FormLayout/FormLayout.stories.d.ts +13 -0
  135. package/FormLayout/FormLayout.stories.d.ts.map +1 -0
  136. package/FormLayout/FormLayout.test.d.ts +2 -0
  137. package/FormLayout/FormLayout.test.d.ts.map +1 -0
  138. package/FormLayout/Grid.d.ts +19 -0
  139. package/FormLayout/Grid.d.ts.map +1 -0
  140. package/FormLayout/Header.d.ts +9 -0
  141. package/FormLayout/Header.d.ts.map +1 -0
  142. package/FormLayout/HelperText.d.ts +13 -0
  143. package/FormLayout/HelperText.d.ts.map +1 -0
  144. package/FormLayout/Section.d.ts +12 -0
  145. package/FormLayout/Section.d.ts.map +1 -0
  146. package/FormLayout/Title.d.ts +23 -0
  147. package/FormLayout/Title.d.ts.map +1 -0
  148. package/FormLayout/context.d.ts +3 -0
  149. package/FormLayout/context.d.ts.map +1 -0
  150. package/FormLayout/index.d.ts +2 -0
  151. package/FormLayout/index.d.ts.map +1 -0
  152. package/FormLayout/index.js +126 -0
  153. package/FormLayout/index.mjs +126 -0
  154. package/HorizontalGrid/HorizontalGrid.d.ts +52 -0
  155. package/HorizontalGrid/HorizontalGrid.d.ts.map +1 -0
  156. package/HorizontalGrid/HorizontalGrid.stories.d.ts +14 -0
  157. package/HorizontalGrid/HorizontalGrid.stories.d.ts.map +1 -0
  158. package/HorizontalGrid/HorizontalGrid.test.d.ts +2 -0
  159. package/HorizontalGrid/HorizontalGrid.test.d.ts.map +1 -0
  160. package/HorizontalGrid/index.d.ts +2 -0
  161. package/HorizontalGrid/index.d.ts.map +1 -0
  162. package/HorizontalGrid/index.js +64 -0
  163. package/HorizontalGrid/index.mjs +64 -0
  164. package/HorizontalGrid/utilities.d.ts +4 -0
  165. package/HorizontalGrid/utilities.d.ts.map +1 -0
  166. package/HorizontalStack/HorizontalStack.d.ts +47 -0
  167. package/HorizontalStack/HorizontalStack.d.ts.map +1 -0
  168. package/HorizontalStack/HorizontalStack.stories.d.ts +12 -0
  169. package/HorizontalStack/HorizontalStack.stories.d.ts.map +1 -0
  170. package/HorizontalStack/HorizontalStack.test.d.ts +2 -0
  171. package/HorizontalStack/HorizontalStack.test.d.ts.map +1 -0
  172. package/HorizontalStack/index.d.ts +2 -0
  173. package/HorizontalStack/index.d.ts.map +1 -0
  174. package/HorizontalStack/index.js +50 -0
  175. package/HorizontalStack/index.mjs +50 -0
  176. package/Icon/Icon.d.ts +53 -2
  177. package/Icon/Icon.d.ts.map +1 -1
  178. package/Icon/Icon.stories.d.ts.map +1 -1
  179. package/Icon/index.js +38 -5
  180. package/Icon/index.mjs +38 -5
  181. package/IconButton/IconButton.d.ts +62 -0
  182. package/IconButton/IconButton.d.ts.map +1 -1
  183. package/IconButton/index.js +24 -44
  184. package/IconButton/index.mjs +23 -43
  185. package/InputField/InputCaption.d.ts +15 -0
  186. package/InputField/InputCaption.d.ts.map +1 -0
  187. package/InputField/InputField.d.ts +80 -0
  188. package/InputField/InputField.d.ts.map +1 -0
  189. package/InputField/InputField.test.d.ts +3 -0
  190. package/InputField/InputField.test.d.ts.map +1 -0
  191. package/InputField/InputIcon.d.ts +30 -0
  192. package/InputField/InputIcon.d.ts.map +1 -0
  193. package/InputField/Label.d.ts +29 -0
  194. package/InputField/Label.d.ts.map +1 -0
  195. package/InputField/PasswordButton.d.ts +39 -0
  196. package/InputField/PasswordButton.d.ts.map +1 -0
  197. package/InputField/index.d.ts +2 -0
  198. package/InputField/index.d.ts.map +1 -0
  199. package/InputField/index.js +312 -0
  200. package/InputField/index.mjs +296 -0
  201. package/InputField/useInputField.d.ts +9 -0
  202. package/InputField/useInputField.d.ts.map +1 -0
  203. package/InputField/utilities.d.ts +8 -0
  204. package/InputField/utilities.d.ts.map +1 -0
  205. package/Menu/MenuItem.d.ts.map +1 -1
  206. package/Menu/MenuOverlay.d.ts.map +1 -1
  207. package/Menu/MenuSection.d.ts.map +1 -1
  208. package/Menu/MenuTrigger.d.ts.map +1 -1
  209. package/Menu/index.js +201 -4534
  210. package/Menu/index.mjs +200 -4533
  211. package/Menu/utilities.d.ts +11 -0
  212. package/Menu/utilities.d.ts.map +1 -0
  213. package/Modal/Modal.d.ts +53 -0
  214. package/Modal/Modal.d.ts.map +1 -0
  215. package/Modal/Modal.stories.d.ts +15 -0
  216. package/Modal/Modal.stories.d.ts.map +1 -0
  217. package/Modal/Modal.test.d.ts +2 -0
  218. package/Modal/Modal.test.d.ts.map +1 -0
  219. package/Modal/ModalBody.d.ts +10 -0
  220. package/Modal/ModalBody.d.ts.map +1 -0
  221. package/Modal/ModalContainer.d.ts +26 -0
  222. package/Modal/ModalContainer.d.ts.map +1 -0
  223. package/Modal/ModalFooter.d.ts +25 -0
  224. package/Modal/ModalFooter.d.ts.map +1 -0
  225. package/Modal/ModalHeader.d.ts +35 -0
  226. package/Modal/ModalHeader.d.ts.map +1 -0
  227. package/Modal/ModalTrigger.d.ts +26 -0
  228. package/Modal/ModalTrigger.d.ts.map +1 -0
  229. package/Modal/ModalUnderlay.d.ts +19 -0
  230. package/Modal/ModalUnderlay.d.ts.map +1 -0
  231. package/Modal/context.d.ts +23 -0
  232. package/Modal/context.d.ts.map +1 -0
  233. package/Modal/index.d.ts +2 -0
  234. package/Modal/index.d.ts.map +1 -0
  235. package/Modal/index.js +290 -0
  236. package/Modal/index.mjs +290 -0
  237. package/Modal/useIntersectionDetection.d.ts +10 -0
  238. package/Modal/useIntersectionDetection.d.ts.map +1 -0
  239. package/Notification/Notification.d.ts +231 -0
  240. package/Notification/Notification.d.ts.map +1 -0
  241. package/Notification/Notification.stories.d.ts +10 -0
  242. package/Notification/Notification.stories.d.ts.map +1 -0
  243. package/Notification/Notification.test.d.ts +2 -0
  244. package/Notification/Notification.test.d.ts.map +1 -0
  245. package/Notification/NotificationContainer.d.ts +23 -0
  246. package/Notification/NotificationContainer.d.ts.map +1 -0
  247. package/Notification/NotificationQueue.d.ts +20 -0
  248. package/Notification/NotificationQueue.d.ts.map +1 -0
  249. package/Notification/NotificationRegion.d.ts +17 -0
  250. package/Notification/NotificationRegion.d.ts.map +1 -0
  251. package/Notification/index.d.ts +2 -0
  252. package/Notification/index.d.ts.map +1 -0
  253. package/Notification/index.js +1448 -0
  254. package/Notification/index.mjs +1432 -0
  255. package/Notification/useNotificationState.d.ts +8 -0
  256. package/Notification/useNotificationState.d.ts.map +1 -0
  257. package/ProductLayout/HelpMenu.d.ts +8 -0
  258. package/ProductLayout/HelpMenu.d.ts.map +1 -0
  259. package/ProductLayout/LayoutScreenSizeRenderer.d.ts +21 -0
  260. package/ProductLayout/LayoutScreenSizeRenderer.d.ts.map +1 -0
  261. package/ProductLayout/ProductLayout.d.ts +75 -0
  262. package/ProductLayout/ProductLayout.d.ts.map +1 -0
  263. package/ProductLayout/ProductLayout.stories.d.ts +8 -0
  264. package/ProductLayout/ProductLayout.stories.d.ts.map +1 -0
  265. package/ProductLayout/ProductLayout.test.d.ts +2 -0
  266. package/ProductLayout/ProductLayout.test.d.ts.map +1 -0
  267. package/ProductLayout/ProductLayoutContent.d.ts +9 -0
  268. package/ProductLayout/ProductLayoutContent.d.ts.map +1 -0
  269. package/ProductLayout/ProductLayoutHeader.d.ts +44 -0
  270. package/ProductLayout/ProductLayoutHeader.d.ts.map +1 -0
  271. package/ProductLayout/ProductLayoutSidebar.d.ts +9 -0
  272. package/ProductLayout/ProductLayoutSidebar.d.ts.map +1 -0
  273. package/ProductLayout/ProductLayoutTabbedContent.d.ts +15 -0
  274. package/ProductLayout/ProductLayoutTabbedContent.d.ts.map +1 -0
  275. package/ProductLayout/constants.d.ts +2 -0
  276. package/ProductLayout/constants.d.ts.map +1 -0
  277. package/ProductLayout/context.d.ts +13 -0
  278. package/ProductLayout/context.d.ts.map +1 -0
  279. package/ProductLayout/index.d.ts +2 -0
  280. package/ProductLayout/index.d.ts.map +1 -0
  281. package/ProductLayout/index.js +276 -0
  282. package/ProductLayout/index.mjs +276 -0
  283. package/Provider/Provider.d.ts +55 -1
  284. package/Provider/Provider.d.ts.map +1 -1
  285. package/Provider/index.js +9 -6
  286. package/Provider/index.mjs +9 -6
  287. package/README.md +16 -14
  288. package/RadioGroup/RadioGroup.d.ts +71 -0
  289. package/RadioGroup/RadioGroup.d.ts.map +1 -0
  290. package/RadioGroup/RadioGroup.stories.d.ts +17 -0
  291. package/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
  292. package/RadioGroup/RadioGroup.test.d.ts +2 -0
  293. package/RadioGroup/RadioGroup.test.d.ts.map +1 -0
  294. package/RadioGroup/RadioGroupContext.d.ts +8 -0
  295. package/RadioGroup/RadioGroupContext.d.ts.map +1 -0
  296. package/RadioGroup/RadioGroupItem.d.ts +28 -0
  297. package/RadioGroup/RadioGroupItem.d.ts.map +1 -0
  298. package/RadioGroup/index.d.ts +2 -0
  299. package/RadioGroup/index.d.ts.map +1 -0
  300. package/RadioGroup/index.js +336 -0
  301. package/RadioGroup/index.mjs +336 -0
  302. package/SearchNav/CTAGroup.d.ts +21 -0
  303. package/SearchNav/CTAGroup.d.ts.map +1 -0
  304. package/SearchNav/CondensedSearchNav.d.ts +9 -0
  305. package/SearchNav/CondensedSearchNav.d.ts.map +1 -0
  306. package/SearchNav/Logo.d.ts +13 -0
  307. package/SearchNav/Logo.d.ts.map +1 -0
  308. package/SearchNav/LogoGroup.d.ts +21 -0
  309. package/SearchNav/LogoGroup.d.ts.map +1 -0
  310. package/SearchNav/PrimaryCTAItem.d.ts +14 -0
  311. package/SearchNav/PrimaryCTAItem.d.ts.map +1 -0
  312. package/SearchNav/Search.d.ts +13 -0
  313. package/SearchNav/Search.d.ts.map +1 -0
  314. package/SearchNav/SearchNav.d.ts +105 -0
  315. package/SearchNav/SearchNav.d.ts.map +1 -0
  316. package/SearchNav/SearchNav.stories.d.ts +14 -0
  317. package/SearchNav/SearchNav.stories.d.ts.map +1 -0
  318. package/SearchNav/SearchNav.test.d.ts +2 -0
  319. package/SearchNav/SearchNav.test.d.ts.map +1 -0
  320. package/SearchNav/SecondaryCTAItem.d.ts +23 -0
  321. package/SearchNav/SecondaryCTAItem.d.ts.map +1 -0
  322. package/SearchNav/Selector.d.ts +15 -0
  323. package/SearchNav/Selector.d.ts.map +1 -0
  324. package/SearchNav/SelectorTrigger.d.ts +14 -0
  325. package/SearchNav/SelectorTrigger.d.ts.map +1 -0
  326. package/SearchNav/Separator.d.ts +9 -0
  327. package/SearchNav/Separator.d.ts.map +1 -0
  328. package/SearchNav/Title.d.ts +12 -0
  329. package/SearchNav/Title.d.ts.map +1 -0
  330. package/SearchNav/context.d.ts +20 -0
  331. package/SearchNav/context.d.ts.map +1 -0
  332. package/SearchNav/index.d.ts +2 -0
  333. package/SearchNav/index.d.ts.map +1 -0
  334. package/SearchNav/index.js +528 -0
  335. package/SearchNav/index.mjs +512 -0
  336. package/SearchNav/utilities.d.ts +14 -0
  337. package/SearchNav/utilities.d.ts.map +1 -0
  338. package/Select/Select.d.ts +89 -0
  339. package/Select/Select.d.ts.map +1 -0
  340. package/Select/Select.stories.d.ts +17 -0
  341. package/Select/Select.stories.d.ts.map +1 -0
  342. package/Select/Select.test.d.ts +2 -0
  343. package/Select/Select.test.d.ts.map +1 -0
  344. package/Select/SelectContext.d.ts +14 -0
  345. package/Select/SelectContext.d.ts.map +1 -0
  346. package/Select/SelectField.d.ts +61 -0
  347. package/Select/SelectField.d.ts.map +1 -0
  348. package/Select/SelectOption.d.ts +23 -0
  349. package/Select/SelectOption.d.ts.map +1 -0
  350. package/Select/SelectOverlay.d.ts +3 -0
  351. package/Select/SelectOverlay.d.ts.map +1 -0
  352. package/Select/SelectSection.d.ts +22 -0
  353. package/Select/SelectSection.d.ts.map +1 -0
  354. package/Select/SelectTrigger.d.ts +30 -0
  355. package/Select/SelectTrigger.d.ts.map +1 -0
  356. package/Select/index.d.ts +2 -0
  357. package/Select/index.d.ts.map +1 -0
  358. package/Select/index.js +121 -0
  359. package/Select/index.mjs +121 -0
  360. package/SelectorErrorTooltip/SelectorErrorTooltip.d.ts +4 -0
  361. package/SelectorErrorTooltip/SelectorErrorTooltip.d.ts.map +1 -0
  362. package/SelectorErrorTooltip/index.d.ts +2 -0
  363. package/SelectorErrorTooltip/index.d.ts.map +1 -0
  364. package/SelectorErrorTooltip/index.js +99 -0
  365. package/SelectorErrorTooltip/index.mjs +83 -0
  366. package/Stepper/Step.d.ts +33 -0
  367. package/Stepper/Step.d.ts.map +1 -0
  368. package/Stepper/StepButton.d.ts +25 -0
  369. package/Stepper/StepButton.d.ts.map +1 -0
  370. package/Stepper/Stepper.d.ts +104 -0
  371. package/Stepper/Stepper.d.ts.map +1 -0
  372. package/Stepper/Stepper.stories.d.ts +10 -0
  373. package/Stepper/Stepper.stories.d.ts.map +1 -0
  374. package/Stepper/Stepper.test.d.ts +2 -0
  375. package/Stepper/Stepper.test.d.ts.map +1 -0
  376. package/Stepper/StepperContext.d.ts +12 -0
  377. package/Stepper/StepperContext.d.ts.map +1 -0
  378. package/Stepper/index.d.ts +2 -0
  379. package/Stepper/index.d.ts.map +1 -0
  380. package/Stepper/index.js +171 -0
  381. package/Stepper/index.mjs +171 -0
  382. package/TabNav/TabNav.d.ts +29 -0
  383. package/TabNav/TabNav.d.ts.map +1 -0
  384. package/TabNav/TabNav.stories.d.ts +9 -0
  385. package/TabNav/TabNav.stories.d.ts.map +1 -0
  386. package/TabNav/TabNav.test.d.ts +2 -0
  387. package/TabNav/TabNav.test.d.ts.map +1 -0
  388. package/TabNav/TabNavItem.d.ts +12 -0
  389. package/TabNav/TabNavItem.d.ts.map +1 -0
  390. package/TabNav/index.d.ts +2 -0
  391. package/TabNav/index.d.ts.map +1 -0
  392. package/TabNav/index.js +58 -0
  393. package/TabNav/index.mjs +58 -0
  394. package/TabPanels/TabPanels.d.ts +68 -0
  395. package/TabPanels/TabPanels.d.ts.map +1 -0
  396. package/TabPanels/TabPanels.stories.d.ts +14 -0
  397. package/TabPanels/TabPanels.stories.d.ts.map +1 -0
  398. package/TabPanels/TabPanels.test.d.ts +2 -0
  399. package/TabPanels/TabPanels.test.d.ts.map +1 -0
  400. package/TabPanels/TabPanelsItem.d.ts +15 -0
  401. package/TabPanels/TabPanelsItem.d.ts.map +1 -0
  402. package/TabPanels/TabPanelsPanels.d.ts +14 -0
  403. package/TabPanels/TabPanelsPanels.d.ts.map +1 -0
  404. package/TabPanels/TabPanelsTabs.d.ts +15 -0
  405. package/TabPanels/TabPanelsTabs.d.ts.map +1 -0
  406. package/TabPanels/context.d.ts +11 -0
  407. package/TabPanels/context.d.ts.map +1 -0
  408. package/TabPanels/index.d.ts +2 -0
  409. package/TabPanels/index.d.ts.map +1 -0
  410. package/TabPanels/index.js +312 -0
  411. package/TabPanels/index.mjs +312 -0
  412. package/Tabs/Edge.d.ts +8 -0
  413. package/Tabs/Edge.d.ts.map +1 -0
  414. package/Tabs/Tabs.d.ts +23 -0
  415. package/Tabs/Tabs.d.ts.map +1 -0
  416. package/Tabs/TabsItem.d.ts +13 -0
  417. package/Tabs/TabsItem.d.ts.map +1 -0
  418. package/Tabs/context.d.ts +8 -0
  419. package/Tabs/context.d.ts.map +1 -0
  420. package/Tabs/index.d.ts +2 -0
  421. package/Tabs/index.d.ts.map +1 -0
  422. package/Tabs/index.js +252 -0
  423. package/Tabs/index.mjs +252 -0
  424. package/Tabs/useIndicatorSizing.d.ts +11 -0
  425. package/Tabs/useIndicatorSizing.d.ts.map +1 -0
  426. package/Tabs/useScrollIntoViewIfNeeded.d.ts +11 -0
  427. package/Tabs/useScrollIntoViewIfNeeded.d.ts.map +1 -0
  428. package/Tabs/useScrollbar.d.ts +6 -0
  429. package/Tabs/useScrollbar.d.ts.map +1 -0
  430. package/Tabs/util.d.ts +9 -0
  431. package/Tabs/util.d.ts.map +1 -0
  432. package/Text/Text.d.ts +11 -6
  433. package/Text/Text.d.ts.map +1 -1
  434. package/Text/Text.stories.d.ts.map +1 -1
  435. package/Text/index.js +93 -5
  436. package/Text/index.mjs +93 -5
  437. package/TextField/TextField.d.ts +110 -0
  438. package/TextField/TextField.d.ts.map +1 -0
  439. package/TextField/TextField.stories.d.ts +15 -0
  440. package/TextField/TextField.stories.d.ts.map +1 -0
  441. package/TextField/TextField.test.d.ts +2 -0
  442. package/TextField/TextField.test.d.ts.map +1 -0
  443. package/TextField/index.d.ts +2 -0
  444. package/TextField/index.d.ts.map +1 -0
  445. package/TextField/index.js +45 -0
  446. package/TextField/index.mjs +45 -0
  447. package/Textarea/Textarea.d.ts +87 -0
  448. package/Textarea/Textarea.d.ts.map +1 -0
  449. package/Textarea/Textarea.stories.d.ts +13 -0
  450. package/Textarea/Textarea.stories.d.ts.map +1 -0
  451. package/Textarea/Textarea.test.d.ts +2 -0
  452. package/Textarea/Textarea.test.d.ts.map +1 -0
  453. package/Textarea/index.d.ts +2 -0
  454. package/Textarea/index.d.ts.map +1 -0
  455. package/Textarea/index.js +46 -0
  456. package/Textarea/index.mjs +46 -0
  457. package/Theme/Theme.d.ts.map +1 -1
  458. package/Theme/index.js +145 -8
  459. package/Theme/index.mjs +145 -8
  460. package/Toggle/Switch.d.ts +24 -0
  461. package/Toggle/Switch.d.ts.map +1 -0
  462. package/Toggle/Toggle.d.ts +105 -0
  463. package/Toggle/Toggle.d.ts.map +1 -0
  464. package/Toggle/Toggle.stories.d.ts +10 -0
  465. package/Toggle/Toggle.stories.d.ts.map +1 -0
  466. package/Toggle/Toggle.test.d.ts +2 -0
  467. package/Toggle/Toggle.test.d.ts.map +1 -0
  468. package/Toggle/index.d.ts +2 -0
  469. package/Toggle/index.d.ts.map +1 -0
  470. package/Toggle/index.js +132 -0
  471. package/Toggle/index.mjs +132 -0
  472. package/Tooltip/Tooltip.stories.d.ts +3 -0
  473. package/Tooltip/Tooltip.stories.d.ts.map +1 -1
  474. package/Tooltip/Tooltip.test.d.ts +4 -1
  475. package/Tooltip/Tooltip.test.d.ts.map +1 -1
  476. package/Tooltip/index.js +2 -317
  477. package/Tooltip/index.mjs +2 -317
  478. package/UnstyledButton/UnstyledButton.d.ts.map +1 -1
  479. package/UnstyledButton/index.js +2 -7
  480. package/UnstyledButton/index.mjs +1 -6
  481. package/VerticalNav/Container.d.ts +4 -0
  482. package/VerticalNav/Container.d.ts.map +1 -0
  483. package/VerticalNav/ExpandButton.d.ts +7 -0
  484. package/VerticalNav/ExpandButton.d.ts.map +1 -0
  485. package/VerticalNav/Item.d.ts +37 -0
  486. package/VerticalNav/Item.d.ts.map +1 -0
  487. package/VerticalNav/ListVerticalNav.d.ts +28 -0
  488. package/VerticalNav/ListVerticalNav.d.ts.map +1 -0
  489. package/VerticalNav/NavItem.d.ts +13 -0
  490. package/VerticalNav/NavItem.d.ts.map +1 -0
  491. package/VerticalNav/Subnav.d.ts +17 -0
  492. package/VerticalNav/Subnav.d.ts.map +1 -0
  493. package/VerticalNav/SubnavItem.d.ts +9 -0
  494. package/VerticalNav/SubnavItem.d.ts.map +1 -0
  495. package/VerticalNav/SubnavItemDot.d.ts +7 -0
  496. package/VerticalNav/SubnavItemDot.d.ts.map +1 -0
  497. package/VerticalNav/SupplementaryAction.d.ts +35 -0
  498. package/VerticalNav/SupplementaryAction.d.ts.map +1 -0
  499. package/VerticalNav/TreeVerticalNav.d.ts +57 -0
  500. package/VerticalNav/TreeVerticalNav.d.ts.map +1 -0
  501. package/VerticalNav/VerticalNav.d.ts +32 -0
  502. package/VerticalNav/VerticalNav.d.ts.map +1 -0
  503. package/VerticalNav/VerticalNav.stories.d.ts +13 -0
  504. package/VerticalNav/VerticalNav.stories.d.ts.map +1 -0
  505. package/VerticalNav/VerticalNav.test.d.ts +2 -0
  506. package/VerticalNav/VerticalNav.test.d.ts.map +1 -0
  507. package/VerticalNav/context.d.ts +5 -0
  508. package/VerticalNav/context.d.ts.map +1 -0
  509. package/VerticalNav/index.d.ts +2 -0
  510. package/VerticalNav/index.d.ts.map +1 -0
  511. package/VerticalNav/index.js +290 -0
  512. package/VerticalNav/index.mjs +290 -0
  513. package/VerticalStack/VerticalStack.d.ts +43 -0
  514. package/VerticalStack/VerticalStack.d.ts.map +1 -0
  515. package/VerticalStack/VerticalStack.stories.d.ts +12 -0
  516. package/VerticalStack/VerticalStack.stories.d.ts.map +1 -0
  517. package/VerticalStack/VerticalStack.test.d.ts +2 -0
  518. package/VerticalStack/VerticalStack.test.d.ts.map +1 -0
  519. package/VerticalStack/index.d.ts +2 -0
  520. package/VerticalStack/index.d.ts.map +1 -0
  521. package/VerticalStack/index.js +55 -0
  522. package/VerticalStack/index.mjs +55 -0
  523. package/__chunks__/ArrowForwardIos-kdkKbymv.mjs +49 -0
  524. package/__chunks__/ArrowForwardIos-rGvloreW.js +65 -0
  525. package/__chunks__/CheckCircle-VrvUCl5A.mjs +49 -0
  526. package/__chunks__/CheckCircle-mghrdMPJ.js +65 -0
  527. package/__chunks__/Close-Q99KJrcY.mjs +49 -0
  528. package/__chunks__/Close-pWwB1aCW.js +65 -0
  529. package/__chunks__/ExpandMore400-I7nIZ4Dn.mjs +49 -0
  530. package/__chunks__/ExpandMore400-f7xxwtIT.js +65 -0
  531. package/__chunks__/HelpMenu-FgLglMLd.js +141 -0
  532. package/__chunks__/HelpMenu-jlvvMPk7.mjs +126 -0
  533. package/__chunks__/InputIcon-OLCQEe8p.mjs +151 -0
  534. package/__chunks__/InputIcon-Q9gL3lh1.js +150 -0
  535. package/__chunks__/Menu-0hmX2JEQ.mjs +49 -0
  536. package/__chunks__/Menu-RHS5rIdQ.js +65 -0
  537. package/__chunks__/SelectOverlay-XC1HF-o8.js +576 -0
  538. package/__chunks__/SelectOverlay-bhN3e747.mjs +577 -0
  539. package/__chunks__/import-0rUXPsJm.js +2131 -0
  540. package/__chunks__/import-1dizUVDG.mjs +72 -0
  541. package/__chunks__/import-3Ab-2Yxl.mjs +839 -0
  542. package/__chunks__/import-3DDQooK4.mjs +149 -0
  543. package/__chunks__/import-6JIVsAQ4.mjs +92 -0
  544. package/__chunks__/import-AP3AFYrv.mjs +725 -0
  545. package/__chunks__/import-AdSP9fsz.js +148 -0
  546. package/__chunks__/import-ExASbr5t.js +231 -0
  547. package/__chunks__/import-GC-6m69n.js +55 -0
  548. package/__chunks__/import-J0seVzci.js +838 -0
  549. package/__chunks__/import-LjgF4Avq.js +71 -0
  550. package/__chunks__/import-OCdXkqfQ.js +253 -0
  551. package/__chunks__/import-RKadoJrB.mjs +232 -0
  552. package/__chunks__/import-Tu4mq5N5.mjs +820 -0
  553. package/__chunks__/{import-998c9181.js → import-a5pkKaOt.js} +302 -458
  554. package/__chunks__/import-iN84q3Qc.js +819 -0
  555. package/__chunks__/import-iaGkW2_A.mjs +2132 -0
  556. package/__chunks__/import-j-cSWNWF.mjs +56 -0
  557. package/__chunks__/import-lhxHUqoC.js +61 -0
  558. package/__chunks__/import-mOdM6Zz9.mjs +62 -0
  559. package/__chunks__/import-n3XADlnC.js +91 -0
  560. package/__chunks__/import-o8OpczmV.mjs +254 -0
  561. package/__chunks__/{import-8fe3968d.mjs → import-t_Sxp5et.mjs} +288 -444
  562. package/__chunks__/import-wT9yNJBX.js +724 -0
  563. package/__chunks__/index-2_WHg2Jk.js +295 -0
  564. package/__chunks__/index-3w8mSoRx.mjs +5421 -0
  565. package/__chunks__/index-9weLpYXa.mjs +308 -0
  566. package/__chunks__/{UnstyledButton-bcc44509.js → index-hDJcco6g.js} +26 -44
  567. package/__chunks__/index-hnDwuSY-.js +307 -0
  568. package/__chunks__/index-k4YGEYVi.js +5420 -0
  569. package/__chunks__/{UnstyledButton-8557c6d4.mjs → index-mteZT19W.mjs} +24 -42
  570. package/__chunks__/index-v2hIlQJK.mjs +296 -0
  571. package/__chunks__/{omit-c0cd4d0b.mjs → omit-B9V4OM3c.mjs} +133 -33
  572. package/__chunks__/{omit-c8af4eea.js → omit-tcSejr4A.js} +148 -48
  573. package/__chunks__/overlayscrollbars-react-uKTugL6b.mjs +2630 -0
  574. package/__chunks__/overlayscrollbars-react-uaQJA9_l.js +2629 -0
  575. package/__chunks__/real-module-hif3NbKs.mjs +249 -0
  576. package/__chunks__/real-module-sgJg4nS3.js +248 -0
  577. package/__chunks__/tokens-AfPLdQEB.mjs +260 -0
  578. package/__chunks__/tokens-QQiosMbP.js +259 -0
  579. package/__chunks__/useEdgeInterceptors-JTn-JEL3.js +48 -0
  580. package/__chunks__/useEdgeInterceptors-edJPTYF9.mjs +49 -0
  581. package/__chunks__/useIntersectionDetection-AE3_5rD0.js +21 -0
  582. package/__chunks__/useIntersectionDetection-u9UnfEyl.mjs +22 -0
  583. package/__chunks__/useTriggerWidth-VDTOGly4.mjs +551 -0
  584. package/__chunks__/useTriggerWidth-rbd_jMSR.js +550 -0
  585. package/package.json +16 -11
  586. package/style.css +4450 -1607
  587. package/styles/_accessibility.scss +48 -0
  588. package/styles/_common.scss +8 -0
  589. package/styles/_media-queries.scss +19 -0
  590. package/styles/_poppins-fallback.scss +62 -0
  591. package/styles/_responsive-props.scss +86 -0
  592. package/styles/_scrollbars.scss +43 -0
  593. package/styles/_string-functions.scss +26 -0
  594. package/styles/_token-helpers.scss +41 -0
  595. package/styles/_typography.scss +53 -0
  596. package/styles/_unstyled.scss +32 -0
  597. package/styles/global.scss +32 -0
  598. package/types.d.ts +7 -2
  599. package/types.d.ts.map +1 -1
  600. package/utilities/Noop.d.ts +9 -0
  601. package/utilities/Noop.d.ts.map +1 -0
  602. package/utilities/css.d.ts +11 -2
  603. package/utilities/css.d.ts.map +1 -1
  604. package/utilities/css.js +37 -49
  605. package/utilities/css.mjs +37 -49
  606. package/utilities/react.d.ts +31 -0
  607. package/utilities/react.d.ts.map +1 -0
  608. package/utilities/react.js +70 -0
  609. package/utilities/react.mjs +70 -0
  610. package/utilities/storybook.d.ts +20 -1
  611. package/utilities/storybook.d.ts.map +1 -1
  612. package/utilities/test.d.ts +11 -2
  613. package/utilities/test.d.ts.map +1 -1
  614. package/{Menu → utilities}/useScrollbar.d.ts +2 -4
  615. package/utilities/useScrollbar.d.ts.map +1 -0
  616. package/utilities/useScrollbar.js +22 -0
  617. package/utilities/useScrollbar.mjs +22 -0
  618. package/Menu/useScrollbar.d.ts.map +0 -1
  619. package/__chunks__/Icon-0104616d.js +0 -44
  620. package/__chunks__/Icon-5827beea.mjs +0 -45
  621. package/__chunks__/Text-9479d08b.js +0 -99
  622. package/__chunks__/Text-f9e0e2d8.mjs +0 -100
  623. package/__chunks__/Theme-2534fc39.js +0 -392
  624. package/__chunks__/Theme-911ffd8c.mjs +0 -393
  625. package/__chunks__/import-922563af.js +0 -1936
  626. package/__chunks__/import-c72f764d.mjs +0 -1937
  627. package/__chunks__/kebabCase-244e6e3f.mjs +0 -383
  628. package/__chunks__/kebabCase-4fed899a.js +0 -382
package/Badge/index.js CHANGED
@@ -1,22 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const Icon = require("../__chunks__/Icon-0104616d.js");
5
- const Text = require("../__chunks__/Text-9479d08b.js");
4
+ const Icon_index = require("../Icon/index.js");
5
+ const Text_index = require("../Text/index.js");
6
6
  const utilities_css = require("../utilities/css.js");
7
- require("../__chunks__/kebabCase-4fed899a.js");
8
- const root = "_root_qdscb_5";
9
- const primary = "_primary_qdscb_16";
10
- const secondary = "_secondary_qdscb_17";
11
- const text = "_text_qdscb_32";
12
- const variantPrimary = "_variantPrimary_qdscb_37";
13
- const variantSecondary = "_variantSecondary_qdscb_44";
14
- const variantBlack = "_variantBlack_qdscb_51";
15
- const variantInverse = "_variantInverse_qdscb_58";
16
- const variantGray = "_variantGray_qdscb_65";
17
- const variantSuccess = "_variantSuccess_qdscb_72";
18
- const variantWarning = "_variantWarning_qdscb_79";
19
- const variantDanger = "_variantDanger_qdscb_86";
7
+ const root = "_root_145ul_5";
8
+ const primary = "_primary_145ul_16";
9
+ const secondary = "_secondary_145ul_17";
10
+ const text = "_text_145ul_32";
11
+ const variantPrimary = "_variantPrimary_145ul_37";
12
+ const variantSecondary = "_variantSecondary_145ul_44";
13
+ const variantBlack = "_variantBlack_145ul_51";
14
+ const variantInverse = "_variantInverse_145ul_58";
15
+ const variantGray = "_variantGray_145ul_65";
16
+ const variantSuccess = "_variantSuccess_145ul_72";
17
+ const variantWarning = "_variantWarning_145ul_79";
18
+ const variantDanger = "_variantDanger_145ul_86";
20
19
  const styles = {
21
20
  root,
22
21
  primary,
@@ -33,17 +32,8 @@ const styles = {
33
32
  };
34
33
  const DEFAULT_VARIANT = "primary";
35
34
  function Badge(props) {
36
- const {
37
- accessibilityLabel,
38
- children,
39
- secondaryLabel,
40
- icon,
41
- variant = DEFAULT_VARIANT
42
- } = props;
43
- const className = utilities_css.classNames(
44
- styles.root,
45
- styles[utilities_css.variationName("variant", variant)]
46
- );
35
+ const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
36
+ const className = utilities_css.classNames(styles.root, styles[utilities_css.variationName("variant", variant)]);
47
37
  if (!icon && !children) {
48
38
  console.warn("Badge requires one of children or icon");
49
39
  }
@@ -53,7 +43,22 @@ function Badge(props) {
53
43
  if (icon && !children && !accessibilityLabel) {
54
44
  console.warn("Badge with only icon must have accessibilityLabel");
55
45
  }
56
- return /* @__PURE__ */ React.createElement("span", { className, "data-testid": "root" }, accessibilityLabel && /* @__PURE__ */ React.createElement(Text.Text, { visuallyHidden: true }, accessibilityLabel), /* @__PURE__ */ React.createElement("span", { className: styles.primary }, icon ? /* @__PURE__ */ React.createElement(Icon.Icon, { symbol: icon, size: "sm" }) : /* @__PURE__ */ React.createElement("span", { className: styles.text }, children)), children && (icon || secondaryLabel) && /* @__PURE__ */ React.createElement("span", { className: styles.secondary }, /* @__PURE__ */ React.createElement("span", { className: styles.text }, icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement(React.Fragment, null, secondaryLabel))));
46
+ return React.createElement("span", {
47
+ className
48
+ }, accessibilityLabel && React.createElement(Text_index.Text, {
49
+ visuallyHidden: true
50
+ }, accessibilityLabel), React.createElement("span", {
51
+ className: styles.primary
52
+ }, icon ? React.createElement(Icon_index.Icon, {
53
+ symbol: icon,
54
+ size: "sm"
55
+ }) : React.createElement("span", {
56
+ className: styles.text
57
+ }, children)), children && (icon || secondaryLabel) && React.createElement("span", {
58
+ className: styles.secondary
59
+ }, React.createElement("span", {
60
+ className: styles.text
61
+ }, icon ? React.createElement(React.Fragment, null, children) : React.createElement(React.Fragment, null, secondaryLabel))));
57
62
  }
58
63
  exports.Badge = Badge;
59
64
  exports.DEFAULT_VARIANT = DEFAULT_VARIANT;
package/Badge/index.mjs CHANGED
@@ -1,20 +1,19 @@
1
1
  import React__default from "react";
2
- import { I as Icon } from "../__chunks__/Icon-5827beea.mjs";
3
- import { T as Text } from "../__chunks__/Text-f9e0e2d8.mjs";
2
+ import { Icon } from "../Icon/index.mjs";
3
+ import { Text } from "../Text/index.mjs";
4
4
  import { classNames, variationName } from "../utilities/css.mjs";
5
- import "../__chunks__/kebabCase-244e6e3f.mjs";
6
- const root = "_root_qdscb_5";
7
- const primary = "_primary_qdscb_16";
8
- const secondary = "_secondary_qdscb_17";
9
- const text = "_text_qdscb_32";
10
- const variantPrimary = "_variantPrimary_qdscb_37";
11
- const variantSecondary = "_variantSecondary_qdscb_44";
12
- const variantBlack = "_variantBlack_qdscb_51";
13
- const variantInverse = "_variantInverse_qdscb_58";
14
- const variantGray = "_variantGray_qdscb_65";
15
- const variantSuccess = "_variantSuccess_qdscb_72";
16
- const variantWarning = "_variantWarning_qdscb_79";
17
- const variantDanger = "_variantDanger_qdscb_86";
5
+ const root = "_root_145ul_5";
6
+ const primary = "_primary_145ul_16";
7
+ const secondary = "_secondary_145ul_17";
8
+ const text = "_text_145ul_32";
9
+ const variantPrimary = "_variantPrimary_145ul_37";
10
+ const variantSecondary = "_variantSecondary_145ul_44";
11
+ const variantBlack = "_variantBlack_145ul_51";
12
+ const variantInverse = "_variantInverse_145ul_58";
13
+ const variantGray = "_variantGray_145ul_65";
14
+ const variantSuccess = "_variantSuccess_145ul_72";
15
+ const variantWarning = "_variantWarning_145ul_79";
16
+ const variantDanger = "_variantDanger_145ul_86";
18
17
  const styles = {
19
18
  root,
20
19
  primary,
@@ -31,17 +30,8 @@ const styles = {
31
30
  };
32
31
  const DEFAULT_VARIANT = "primary";
33
32
  function Badge(props) {
34
- const {
35
- accessibilityLabel,
36
- children,
37
- secondaryLabel,
38
- icon,
39
- variant = DEFAULT_VARIANT
40
- } = props;
41
- const className = classNames(
42
- styles.root,
43
- styles[variationName("variant", variant)]
44
- );
33
+ const { accessibilityLabel, children, secondaryLabel, icon, variant = DEFAULT_VARIANT } = props;
34
+ const className = classNames(styles.root, styles[variationName("variant", variant)]);
45
35
  if (!icon && !children) {
46
36
  console.warn("Badge requires one of children or icon");
47
37
  }
@@ -51,7 +41,22 @@ function Badge(props) {
51
41
  if (icon && !children && !accessibilityLabel) {
52
42
  console.warn("Badge with only icon must have accessibilityLabel");
53
43
  }
54
- return /* @__PURE__ */ React__default.createElement("span", { className, "data-testid": "root" }, accessibilityLabel && /* @__PURE__ */ React__default.createElement(Text, { visuallyHidden: true }, accessibilityLabel), /* @__PURE__ */ React__default.createElement("span", { className: styles.primary }, icon ? /* @__PURE__ */ React__default.createElement(Icon, { symbol: icon, size: "sm" }) : /* @__PURE__ */ React__default.createElement("span", { className: styles.text }, children)), children && (icon || secondaryLabel) && /* @__PURE__ */ React__default.createElement("span", { className: styles.secondary }, /* @__PURE__ */ React__default.createElement("span", { className: styles.text }, icon ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, secondaryLabel))));
44
+ return React__default.createElement("span", {
45
+ className
46
+ }, accessibilityLabel && React__default.createElement(Text, {
47
+ visuallyHidden: true
48
+ }, accessibilityLabel), React__default.createElement("span", {
49
+ className: styles.primary
50
+ }, icon ? React__default.createElement(Icon, {
51
+ symbol: icon,
52
+ size: "sm"
53
+ }) : React__default.createElement("span", {
54
+ className: styles.text
55
+ }, children)), children && (icon || secondaryLabel) && React__default.createElement("span", {
56
+ className: styles.secondary
57
+ }, React__default.createElement("span", {
58
+ className: styles.text
59
+ }, icon ? React__default.createElement(React__default.Fragment, null, children) : React__default.createElement(React__default.Fragment, null, secondaryLabel))));
55
60
  }
56
61
  export {
57
62
  Badge,
package/Banner/index.js CHANGED
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const Text = require("../__chunks__/Text-9479d08b.js");
4
+ const Text_index = require("../Text/index.js");
5
5
  const utilities_css = require("../utilities/css.js");
6
- require("../__chunks__/kebabCase-4fed899a.js");
7
- const colorSuccess = "_colorSuccess_zfrrh_5";
8
- const colorPrimary = "_colorPrimary_zfrrh_10";
9
- const colorNeutral = "_colorNeutral_zfrrh_11";
10
- const Banner$1 = "_Banner_zfrrh_23";
6
+ const colorSuccess = "_colorSuccess_wbg6e_5";
7
+ const colorPrimary = "_colorPrimary_wbg6e_10";
8
+ const colorNeutral = "_colorNeutral_wbg6e_11";
9
+ const Banner$1 = "_Banner_wbg6e_23";
11
10
  const styles = {
12
11
  colorSuccess,
13
12
  colorPrimary,
@@ -16,16 +15,15 @@ const styles = {
16
15
  };
17
16
  function Banner(props) {
18
17
  const { color = "success", emphasisText, children } = props;
19
- return /* @__PURE__ */ React.createElement(
20
- "div",
21
- {
22
- className: utilities_css.classNames(
23
- styles.Banner,
24
- styles[utilities_css.variationName("color", color)]
25
- )
26
- },
27
- emphasisText && /* @__PURE__ */ React.createElement(Text.Text, { as: "strong", variant: "subtitle1", alignment: "center" }, !children ? /* @__PURE__ */ React.createElement(React.Fragment, null, emphasisText) : /* @__PURE__ */ React.createElement(React.Fragment, null, emphasisText, ": ")),
28
- children && /* @__PURE__ */ React.createElement(Text.Text, { variant: "body1", alignment: "center" }, children)
29
- );
18
+ return React.createElement("div", {
19
+ className: utilities_css.classNames(styles.Banner, styles[utilities_css.variationName("color", color)])
20
+ }, emphasisText && React.createElement(Text_index.Text, {
21
+ as: "strong",
22
+ variant: "subtitle1",
23
+ alignment: "center"
24
+ }, !children ? React.createElement(React.Fragment, null, emphasisText) : React.createElement(React.Fragment, null, emphasisText, ": ")), children && React.createElement(Text_index.Text, {
25
+ variant: "body1",
26
+ alignment: "center"
27
+ }, children));
30
28
  }
31
29
  exports.Banner = Banner;
package/Banner/index.mjs CHANGED
@@ -1,11 +1,10 @@
1
1
  import React__default from "react";
2
- import { T as Text } from "../__chunks__/Text-f9e0e2d8.mjs";
2
+ import { Text } from "../Text/index.mjs";
3
3
  import { classNames, variationName } from "../utilities/css.mjs";
4
- import "../__chunks__/kebabCase-244e6e3f.mjs";
5
- const colorSuccess = "_colorSuccess_zfrrh_5";
6
- const colorPrimary = "_colorPrimary_zfrrh_10";
7
- const colorNeutral = "_colorNeutral_zfrrh_11";
8
- const Banner$1 = "_Banner_zfrrh_23";
4
+ const colorSuccess = "_colorSuccess_wbg6e_5";
5
+ const colorPrimary = "_colorPrimary_wbg6e_10";
6
+ const colorNeutral = "_colorNeutral_wbg6e_11";
7
+ const Banner$1 = "_Banner_wbg6e_23";
9
8
  const styles = {
10
9
  colorSuccess,
11
10
  colorPrimary,
@@ -14,17 +13,16 @@ const styles = {
14
13
  };
15
14
  function Banner(props) {
16
15
  const { color = "success", emphasisText, children } = props;
17
- return /* @__PURE__ */ React__default.createElement(
18
- "div",
19
- {
20
- className: classNames(
21
- styles.Banner,
22
- styles[variationName("color", color)]
23
- )
24
- },
25
- emphasisText && /* @__PURE__ */ React__default.createElement(Text, { as: "strong", variant: "subtitle1", alignment: "center" }, !children ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, emphasisText) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, emphasisText, ": ")),
26
- children && /* @__PURE__ */ React__default.createElement(Text, { variant: "body1", alignment: "center" }, children)
27
- );
16
+ return React__default.createElement("div", {
17
+ className: classNames(styles.Banner, styles[variationName("color", color)])
18
+ }, emphasisText && React__default.createElement(Text, {
19
+ as: "strong",
20
+ variant: "subtitle1",
21
+ alignment: "center"
22
+ }, !children ? React__default.createElement(React__default.Fragment, null, emphasisText) : React__default.createElement(React__default.Fragment, null, emphasisText, ": ")), children && React__default.createElement(Text, {
23
+ variant: "body1",
24
+ alignment: "center"
25
+ }, children));
28
26
  }
29
27
  export {
30
28
  Banner
@@ -24,6 +24,67 @@ export type ButtonProps = AriaButtonProps & {
24
24
  /** Link's destination */
25
25
  href?: string;
26
26
  };
27
+ /**
28
+ * Allow users to perform an action or to navigate to another page.
29
+ *
30
+ * @remarks
31
+ * Use to communicate an action the user can take in order to continue
32
+ * flow in the UI. Supports icons, multiple colors, outlined and link variations,
33
+ * and small size buttons. Underlying element is a button, but becomes an
34
+ * anchor when `href` is provided.
35
+ *
36
+ * @example
37
+ * _Default:_
38
+ * ```tsx
39
+ * import { Button } from "@easypost/easy-ui/Button";
40
+ *
41
+ * export function Component() {
42
+ * return <Button onPress={() => alert("clicked")}>Button</Button>;
43
+ * }
44
+ * ```
45
+ *
46
+ * @example
47
+ * _Outlined variant:_
48
+ * ```tsx
49
+ * import { Button } from "@easypost/easy-ui/Button";
50
+ *
51
+ * export function Component() {
52
+ * return (
53
+ * <Button onPress={() => alert("clicked")} variant="outlined">
54
+ * Button
55
+ * </Button>
56
+ * );
57
+ * }
58
+ * ```
59
+ *
60
+ * @example
61
+ * _Success color:_
62
+ * ```tsx
63
+ * import { Button } from "@easypost/easy-ui/Button";
64
+ *
65
+ * export function Component() {
66
+ * return (
67
+ * <Button onPress={() => alert("clicked")} color="success">
68
+ * Button
69
+ * </Button>
70
+ * );
71
+ * }
72
+ * ```
73
+ * @example
74
+ * _With href and icon:_
75
+ * ```tsx
76
+ * import { Button } from "@easypost/easy-ui/Button";
77
+ * import ArrowBackIcon from "@easypost/easy-ui-icons/ArrowBack";
78
+ *
79
+ * export function Component() {
80
+ * return (
81
+ * <Button href="https://www.easypost.com/" iconAtEnd={ArrowBackIcon}>
82
+ * Button
83
+ * </Button>
84
+ * );
85
+ * }
86
+ * ```
87
+ */
27
88
  export declare const Button: React.ForwardRefExoticComponent<AriaButtonProps<"button"> & {
28
89
  /** Button color */
29
90
  color?: ButtonColor | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM;IApBjB,mBAAmB;;IAEnB,qBAAqB;;IAErB,kBAAkB;;IAElB,sBAAsB;;IAEtB,6CAA6C;;IAE7C,4CAA4C;;IAE5C,2CAA2C;;IAE3C,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;;8BA0DzB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG;IAC1C,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qBAAqB;IACrB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,sBAAsB;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,eAAO,MAAM,MAAM;IAjFjB,mBAAmB;;IAEnB,qBAAqB;;IAErB,kBAAkB;;IAElB,sBAAsB;;IAEtB,6CAA6C;;IAE7C,4CAA4C;;IAE5C,2CAA2C;;IAE3C,6BAA6B;eAClB,SAAS;IACpB,yBAAyB;;8BAuHzB,CAAC"}
package/Button/index.js CHANGED
@@ -29,28 +29,25 @@ var __objRest = (source, exclude) => {
29
29
  };
30
30
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
31
31
  const React = require("react");
32
- const UnstyledButton = require("../__chunks__/UnstyledButton-bcc44509.js");
33
- const Icon = require("../__chunks__/Icon-0104616d.js");
32
+ const UnstyledButton_index = require("../__chunks__/index-hDJcco6g.js");
33
+ const Icon_index = require("../Icon/index.js");
34
34
  const utilities_css = require("../utilities/css.js");
35
- require("../__chunks__/import-922563af.js");
36
- require("../__chunks__/omit-c8af4eea.js");
37
- require("../__chunks__/kebabCase-4fed899a.js");
38
- const Button$1 = "_Button_ksjrc_5";
39
- const colorPrimary = "_colorPrimary_ksjrc_20";
40
- const colorSecondary = "_colorSecondary_ksjrc_28";
41
- const colorSuccess = "_colorSuccess_ksjrc_36";
42
- const colorWarning = "_colorWarning_ksjrc_44";
43
- const colorNeutral = "_colorNeutral_ksjrc_52";
44
- const colorSupport = "_colorSupport_ksjrc_60";
45
- const colorInverse = "_colorInverse_ksjrc_66";
46
- const variantFilled = "_variantFilled_ksjrc_72";
47
- const variantOutlined = "_variantOutlined_ksjrc_99";
48
- const variantLink = "_variantLink_ksjrc_127";
49
- const sizeMd = "_sizeMd_ksjrc_153";
50
- const sizeSm = "_sizeSm_ksjrc_161";
51
- const block = "_block_ksjrc_180";
52
- const iconAtStart = "_iconAtStart_ksjrc_185";
53
- const iconAtEnd = "_iconAtEnd_ksjrc_189";
35
+ const Button$1 = "_Button_1y7p2_5";
36
+ const colorPrimary = "_colorPrimary_1y7p2_20";
37
+ const colorSecondary = "_colorSecondary_1y7p2_28";
38
+ const colorSuccess = "_colorSuccess_1y7p2_36";
39
+ const colorWarning = "_colorWarning_1y7p2_44";
40
+ const colorNeutral = "_colorNeutral_1y7p2_52";
41
+ const colorSupport = "_colorSupport_1y7p2_60";
42
+ const colorInverse = "_colorInverse_1y7p2_66";
43
+ const variantFilled = "_variantFilled_1y7p2_72";
44
+ const variantOutlined = "_variantOutlined_1y7p2_99";
45
+ const variantLink = "_variantLink_1y7p2_127";
46
+ const sizeMd = "_sizeMd_1y7p2_151";
47
+ const sizeSm = "_sizeSm_1y7p2_159";
48
+ const block = "_block_1y7p2_176";
49
+ const iconAtStart = "_iconAtStart_1y7p2_181";
50
+ const iconAtEnd = "_iconAtEnd_1y7p2_185";
54
51
  const styles = {
55
52
  Button: Button$1,
56
53
  colorPrimary,
@@ -70,60 +67,25 @@ const styles = {
70
67
  iconAtEnd
71
68
  };
72
69
  const Button = React.forwardRef((props, inRef) => {
73
- const _a = props, {
74
- color = "primary",
75
- variant = "filled",
76
- size = "md",
77
- isDisabled = false,
78
- isBlock = false,
79
- iconAtStart: iconAtStart2,
80
- iconAtEnd: iconAtEnd2,
81
- children = "Button",
82
- href = ""
83
- } = _a, restProps = __objRest(_a, [
84
- "color",
85
- "variant",
86
- "size",
87
- "isDisabled",
88
- "isBlock",
89
- "iconAtStart",
90
- "iconAtEnd",
91
- "children",
92
- "href"
93
- ]);
70
+ const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
94
71
  const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
95
72
  if (bothIconPropsDefined) {
96
73
  console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
97
74
  }
98
75
  const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
99
- UnstyledButton.logWarningIfInvalidColorVariantCombination(color, variant);
100
- return /* @__PURE__ */ React.createElement(
101
- UnstyledButton.UnstyledButton,
102
- __spreadValues({
103
- isDisabled,
104
- ref: inRef,
105
- className: utilities_css.classNames(
106
- styles.Button,
107
- styles[utilities_css.variationName("color", color)],
108
- styles[utilities_css.variationName("variant", variant)],
109
- styles[utilities_css.variationName("size", size)],
110
- isBlock && styles.block
111
- ),
112
- href
113
- }, restProps),
114
- iconAtStart2 && canUseIcon && /* @__PURE__ */ React.createElement(Icon.Icon, { symbol: iconAtStart2 }),
115
- /* @__PURE__ */ React.createElement(
116
- "span",
117
- {
118
- className: utilities_css.classNames(
119
- iconAtStart2 && canUseIcon && styles.iconAtStart,
120
- iconAtEnd2 && canUseIcon && styles.iconAtEnd
121
- )
122
- },
123
- children
124
- ),
125
- iconAtEnd2 && canUseIcon && /* @__PURE__ */ React.createElement(Icon.Icon, { symbol: iconAtEnd2 })
126
- );
76
+ UnstyledButton_index.logWarningIfInvalidColorVariantCombination(color, variant);
77
+ return React.createElement(UnstyledButton_index.UnstyledButton, __spreadValues({
78
+ isDisabled,
79
+ ref: inRef,
80
+ className: utilities_css.classNames(styles.Button, styles[utilities_css.variationName("color", color)], styles[utilities_css.variationName("variant", variant)], styles[utilities_css.variationName("size", size)], isBlock && styles.block),
81
+ href
82
+ }, restProps), iconAtStart2 && canUseIcon && React.createElement(Icon_index.Icon, {
83
+ symbol: iconAtStart2
84
+ }), React.createElement("span", {
85
+ className: utilities_css.classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
86
+ }, children), iconAtEnd2 && canUseIcon && React.createElement(Icon_index.Icon, {
87
+ symbol: iconAtEnd2
88
+ }));
127
89
  });
128
90
  Button.displayName = "Button";
129
91
  exports.Button = Button;
package/Button/index.mjs CHANGED
@@ -27,28 +27,25 @@ var __objRest = (source, exclude) => {
27
27
  return target;
28
28
  };
29
29
  import React__default, { forwardRef } from "react";
30
- import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/UnstyledButton-8557c6d4.mjs";
31
- import { I as Icon } from "../__chunks__/Icon-5827beea.mjs";
30
+ import { l as logWarningIfInvalidColorVariantCombination, U as UnstyledButton } from "../__chunks__/index-mteZT19W.mjs";
31
+ import { Icon } from "../Icon/index.mjs";
32
32
  import { classNames, variationName } from "../utilities/css.mjs";
33
- import "../__chunks__/import-c72f764d.mjs";
34
- import "../__chunks__/omit-c0cd4d0b.mjs";
35
- import "../__chunks__/kebabCase-244e6e3f.mjs";
36
- const Button$1 = "_Button_ksjrc_5";
37
- const colorPrimary = "_colorPrimary_ksjrc_20";
38
- const colorSecondary = "_colorSecondary_ksjrc_28";
39
- const colorSuccess = "_colorSuccess_ksjrc_36";
40
- const colorWarning = "_colorWarning_ksjrc_44";
41
- const colorNeutral = "_colorNeutral_ksjrc_52";
42
- const colorSupport = "_colorSupport_ksjrc_60";
43
- const colorInverse = "_colorInverse_ksjrc_66";
44
- const variantFilled = "_variantFilled_ksjrc_72";
45
- const variantOutlined = "_variantOutlined_ksjrc_99";
46
- const variantLink = "_variantLink_ksjrc_127";
47
- const sizeMd = "_sizeMd_ksjrc_153";
48
- const sizeSm = "_sizeSm_ksjrc_161";
49
- const block = "_block_ksjrc_180";
50
- const iconAtStart = "_iconAtStart_ksjrc_185";
51
- const iconAtEnd = "_iconAtEnd_ksjrc_189";
33
+ const Button$1 = "_Button_1y7p2_5";
34
+ const colorPrimary = "_colorPrimary_1y7p2_20";
35
+ const colorSecondary = "_colorSecondary_1y7p2_28";
36
+ const colorSuccess = "_colorSuccess_1y7p2_36";
37
+ const colorWarning = "_colorWarning_1y7p2_44";
38
+ const colorNeutral = "_colorNeutral_1y7p2_52";
39
+ const colorSupport = "_colorSupport_1y7p2_60";
40
+ const colorInverse = "_colorInverse_1y7p2_66";
41
+ const variantFilled = "_variantFilled_1y7p2_72";
42
+ const variantOutlined = "_variantOutlined_1y7p2_99";
43
+ const variantLink = "_variantLink_1y7p2_127";
44
+ const sizeMd = "_sizeMd_1y7p2_151";
45
+ const sizeSm = "_sizeSm_1y7p2_159";
46
+ const block = "_block_1y7p2_176";
47
+ const iconAtStart = "_iconAtStart_1y7p2_181";
48
+ const iconAtEnd = "_iconAtEnd_1y7p2_185";
52
49
  const styles = {
53
50
  Button: Button$1,
54
51
  colorPrimary,
@@ -68,60 +65,25 @@ const styles = {
68
65
  iconAtEnd
69
66
  };
70
67
  const Button = forwardRef((props, inRef) => {
71
- const _a = props, {
72
- color = "primary",
73
- variant = "filled",
74
- size = "md",
75
- isDisabled = false,
76
- isBlock = false,
77
- iconAtStart: iconAtStart2,
78
- iconAtEnd: iconAtEnd2,
79
- children = "Button",
80
- href = ""
81
- } = _a, restProps = __objRest(_a, [
82
- "color",
83
- "variant",
84
- "size",
85
- "isDisabled",
86
- "isBlock",
87
- "iconAtStart",
88
- "iconAtEnd",
89
- "children",
90
- "href"
91
- ]);
68
+ const _a = props, { color = "primary", variant = "filled", size = "md", isDisabled = false, isBlock = false, iconAtStart: iconAtStart2, iconAtEnd: iconAtEnd2, children = "Button", href = "" } = _a, restProps = __objRest(_a, ["color", "variant", "size", "isDisabled", "isBlock", "iconAtStart", "iconAtEnd", "children", "href"]);
92
69
  const bothIconPropsDefined = iconAtEnd2 && iconAtStart2;
93
70
  if (bothIconPropsDefined) {
94
71
  console.warn("Cannot simultaneously define `iconAtEnd` and `iconAtStart`");
95
72
  }
96
73
  const canUseIcon = (iconAtEnd2 || iconAtStart2) && !bothIconPropsDefined && variant !== "link" && size !== "sm";
97
74
  logWarningIfInvalidColorVariantCombination(color, variant);
98
- return /* @__PURE__ */ React__default.createElement(
99
- UnstyledButton,
100
- __spreadValues({
101
- isDisabled,
102
- ref: inRef,
103
- className: classNames(
104
- styles.Button,
105
- styles[variationName("color", color)],
106
- styles[variationName("variant", variant)],
107
- styles[variationName("size", size)],
108
- isBlock && styles.block
109
- ),
110
- href
111
- }, restProps),
112
- iconAtStart2 && canUseIcon && /* @__PURE__ */ React__default.createElement(Icon, { symbol: iconAtStart2 }),
113
- /* @__PURE__ */ React__default.createElement(
114
- "span",
115
- {
116
- className: classNames(
117
- iconAtStart2 && canUseIcon && styles.iconAtStart,
118
- iconAtEnd2 && canUseIcon && styles.iconAtEnd
119
- )
120
- },
121
- children
122
- ),
123
- iconAtEnd2 && canUseIcon && /* @__PURE__ */ React__default.createElement(Icon, { symbol: iconAtEnd2 })
124
- );
75
+ return React__default.createElement(UnstyledButton, __spreadValues({
76
+ isDisabled,
77
+ ref: inRef,
78
+ className: classNames(styles.Button, styles[variationName("color", color)], styles[variationName("variant", variant)], styles[variationName("size", size)], isBlock && styles.block),
79
+ href
80
+ }, restProps), iconAtStart2 && canUseIcon && React__default.createElement(Icon, {
81
+ symbol: iconAtStart2
82
+ }), React__default.createElement("span", {
83
+ className: classNames(iconAtStart2 && canUseIcon && styles.iconAtStart, iconAtEnd2 && canUseIcon && styles.iconAtEnd)
84
+ }, children), iconAtEnd2 && canUseIcon && React__default.createElement(Icon, {
85
+ symbol: iconAtEnd2
86
+ }));
125
87
  });
126
88
  Button.displayName = "Button";
127
89
  export {