@dfds-ui/react-components 2.2.0-alpha.eae7bbcd → 2.2.0-alpha.f8b06f5f

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 (516) hide show
  1. package/accordion/Accordion.d.ts +2 -2
  2. package/accordion/Accordion.js +66 -47
  3. package/accordion/AccordionContent.d.ts +1 -1
  4. package/accordion/AccordionContent.js +13 -6
  5. package/accordion/AccordionSmall.d.ts +2 -2
  6. package/accordion/AccordionSmall.js +51 -37
  7. package/app-bar/AppBar.d.ts +3 -3
  8. package/app-bar/AppBar.js +54 -40
  9. package/app-bar/AppBarContext.d.ts +3 -3
  10. package/app-bar/AppBarContext.js +7 -6
  11. package/app-bar/AppBarDrawer.d.ts +2 -2
  12. package/app-bar/AppBarDrawer.js +14 -7
  13. package/app-bar/AppBarIconButton.d.ts +2 -2
  14. package/app-bar/AppBarIconButton.js +11 -6
  15. package/app-bar/AppBarItem.d.ts +3 -3
  16. package/app-bar/AppBarItem.js +70 -54
  17. package/app-bar/AppBarListItem.d.ts +11 -11
  18. package/assertions/banner/Banner.d.ts +3 -3
  19. package/assertions/banner/Banner.js +65 -51
  20. package/assertions/banner/BannerAction.d.ts +1 -1
  21. package/assertions/banner/BannerAction.js +10 -5
  22. package/assertions/banner/BannerTypography.js +9 -4
  23. package/assertions/toast/Toast.d.ts +1 -1
  24. package/assertions/toast/Toast.js +28 -17
  25. package/assertions/toast/Toaster.d.ts +2 -2
  26. package/assertions/toast/Toaster.js +52 -56
  27. package/badge/Badge.d.ts +1 -1
  28. package/badge/Badge.js +17 -9
  29. package/button/BadgeIcon.d.ts +1 -1
  30. package/button/BadgeIcon.js +18 -16
  31. package/button/BaseButton.d.ts +6 -6
  32. package/button/BaseButton.js +1 -1
  33. package/button/Button.d.ts +4 -4
  34. package/button/Button.js +38 -30
  35. package/button/IconButton.d.ts +1 -1
  36. package/button/IconButton.js +20 -13
  37. package/button/LinkButton.d.ts +1 -1
  38. package/button/LinkButton.js +9 -4
  39. package/button/button-style.d.ts +7 -7
  40. package/button-stack/ButtonStack.d.ts +3 -3
  41. package/button-stack/ButtonStack.js +27 -19
  42. package/card/Card.d.ts +2 -2
  43. package/card/Card.js +49 -35
  44. package/card/CardActions.js +13 -6
  45. package/card/CardContent.d.ts +1 -1
  46. package/card/CardContent.js +19 -9
  47. package/card/CardMedia.d.ts +2 -2
  48. package/card/CardMedia.js +15 -6
  49. package/card/CardPriceTag.d.ts +1 -1
  50. package/card/CardPriceTag.js +22 -4
  51. package/card/CardTitle.d.ts +1 -1
  52. package/card/CardTitle.js +25 -15
  53. package/chip/Chip.d.ts +4 -4
  54. package/chip/Chip.js +22 -13
  55. package/cjs/accordion/Accordion.d.ts +2 -2
  56. package/cjs/accordion/Accordion.js +60 -47
  57. package/cjs/accordion/AccordionContent.d.ts +1 -1
  58. package/cjs/accordion/AccordionContent.js +7 -6
  59. package/cjs/accordion/AccordionSmall.d.ts +2 -2
  60. package/cjs/accordion/AccordionSmall.js +44 -36
  61. package/cjs/app-bar/AppBar.d.ts +3 -3
  62. package/cjs/app-bar/AppBar.js +51 -41
  63. package/cjs/app-bar/AppBarContext.d.ts +3 -3
  64. package/cjs/app-bar/AppBarContext.js +5 -4
  65. package/cjs/app-bar/AppBarDrawer.d.ts +2 -2
  66. package/cjs/app-bar/AppBarDrawer.js +8 -8
  67. package/cjs/app-bar/AppBarIconButton.d.ts +2 -2
  68. package/cjs/app-bar/AppBarIconButton.js +7 -7
  69. package/cjs/app-bar/AppBarItem.d.ts +3 -3
  70. package/cjs/app-bar/AppBarItem.js +63 -53
  71. package/cjs/app-bar/AppBarListItem.d.ts +11 -11
  72. package/cjs/app-bar/AppBarListItem.js +1 -2
  73. package/cjs/assertions/banner/Banner.d.ts +3 -3
  74. package/cjs/assertions/banner/Banner.js +56 -49
  75. package/cjs/assertions/banner/BannerAction.d.ts +1 -1
  76. package/cjs/assertions/banner/BannerAction.js +5 -4
  77. package/cjs/assertions/banner/BannerTypography.js +9 -7
  78. package/cjs/assertions/toast/Toast.d.ts +1 -1
  79. package/cjs/assertions/toast/Toast.js +22 -17
  80. package/cjs/assertions/toast/Toaster.d.ts +2 -2
  81. package/cjs/assertions/toast/Toaster.js +36 -28
  82. package/cjs/badge/Badge.d.ts +1 -1
  83. package/cjs/badge/Badge.js +11 -7
  84. package/cjs/button/BadgeIcon.d.ts +1 -1
  85. package/cjs/button/BadgeIcon.js +19 -17
  86. package/cjs/button/BaseButton.d.ts +6 -6
  87. package/cjs/button/BaseButton.js +3 -5
  88. package/cjs/button/Button.d.ts +4 -4
  89. package/cjs/button/Button.js +31 -29
  90. package/cjs/button/IconButton.d.ts +1 -1
  91. package/cjs/button/IconButton.js +15 -14
  92. package/cjs/button/LinkButton.d.ts +1 -1
  93. package/cjs/button/LinkButton.js +6 -6
  94. package/cjs/button/button-style.d.ts +7 -7
  95. package/cjs/button/button-style.js +8 -15
  96. package/cjs/button-stack/ButtonStack.d.ts +3 -3
  97. package/cjs/button-stack/ButtonStack.js +19 -17
  98. package/cjs/card/Card.d.ts +2 -2
  99. package/cjs/card/Card.js +39 -29
  100. package/cjs/card/CardActions.js +7 -7
  101. package/cjs/card/CardContent.d.ts +1 -1
  102. package/cjs/card/CardContent.js +13 -9
  103. package/cjs/card/CardMedia.d.ts +2 -2
  104. package/cjs/card/CardMedia.js +9 -6
  105. package/cjs/card/CardPriceTag.d.ts +1 -1
  106. package/cjs/card/CardPriceTag.js +16 -4
  107. package/cjs/card/CardTitle.d.ts +1 -1
  108. package/cjs/card/CardTitle.js +16 -12
  109. package/cjs/chip/Chip.d.ts +4 -4
  110. package/cjs/chip/Chip.js +18 -15
  111. package/cjs/common/LockBodyScroll.d.ts +2 -2
  112. package/cjs/common/LockBodyScroll.js +15 -11
  113. package/cjs/common/arrow.d.ts +2 -2
  114. package/cjs/common/emotionCloneElement.js +1 -2
  115. package/cjs/common/intent.d.ts +1 -1
  116. package/cjs/common/polymorphic.d.ts +3 -3
  117. package/cjs/common/polymorphic.js +9 -5
  118. package/cjs/common/useOnClickOutside.d.ts +1 -1
  119. package/cjs/common/utils.d.ts +3 -3
  120. package/cjs/counter/Counter.d.ts +1 -1
  121. package/cjs/counter/Counter.js +50 -43
  122. package/cjs/counter/PluralCounter.d.ts +1 -1
  123. package/cjs/counter/PluralCounter.js +13 -11
  124. package/cjs/data-table/DataTable.d.ts +1 -1
  125. package/cjs/data-table/DataTable.js +46 -38
  126. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +1 -1
  127. package/cjs/date-range-picker/DatePickerDefaultStyles.js +1 -2
  128. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +1 -1
  129. package/cjs/date-range-picker/DatePickerDfdsStyles.js +1 -2
  130. package/cjs/date-range-picker/DateRangePicker.d.ts +1 -1
  131. package/cjs/date-range-picker/DateRangePicker.js +145 -123
  132. package/cjs/divider/Divider.d.ts +2 -2
  133. package/cjs/divider/Divider.js +6 -6
  134. package/cjs/drawer/Drawer.d.ts +4 -4
  135. package/cjs/drawer/Drawer.js +11 -9
  136. package/cjs/dropdown-menu/Dropdown.d.ts +2 -2
  137. package/cjs/dropdown-menu/Dropdown.js +32 -26
  138. package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
  139. package/cjs/dropdown-menu/DropdownContext.js +7 -8
  140. package/cjs/dropdown-menu/MenuCheckbox.js +24 -23
  141. package/cjs/dropdown-menu/MenuItem.d.ts +2 -2
  142. package/cjs/dropdown-menu/MenuItem.js +30 -28
  143. package/cjs/dropdown-menu/MenuTitle.js +15 -12
  144. package/cjs/elevation/index.d.ts +2 -2
  145. package/cjs/elevation/index.js +1 -2
  146. package/cjs/flexbox/FlexBox.d.ts +5 -5
  147. package/cjs/flexbox/FlexBox.js +2 -4
  148. package/cjs/footer/Footer.d.ts +2 -2
  149. package/cjs/footer/Footer.js +13 -9
  150. package/cjs/forms/assistive-text/AssistiveText.d.ts +3 -3
  151. package/cjs/forms/assistive-text/AssistiveText.js +1 -2
  152. package/cjs/forms/asterisk/Asterisk.js +5 -4
  153. package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
  154. package/cjs/forms/checkbox/Checkbox.js +41 -36
  155. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  156. package/cjs/forms/checkbox/ExampleControlComponent.js +7 -7
  157. package/cjs/forms/email-field/EmailField.d.ts +1 -1
  158. package/cjs/forms/email-field/EmailField.js +7 -7
  159. package/cjs/forms/error-text/ErrorText.d.ts +3 -3
  160. package/cjs/forms/error-text/ErrorText.js +1 -2
  161. package/cjs/forms/field/Field.d.ts +1 -1
  162. package/cjs/forms/field/Field.js +10 -6
  163. package/cjs/forms/index.d.ts +3 -3
  164. package/cjs/forms/input/Input.d.ts +2 -2
  165. package/cjs/forms/input/Input.js +23 -21
  166. package/cjs/forms/input/InputComposition.d.ts +11 -11
  167. package/cjs/forms/input/InputComposition.js +39 -33
  168. package/cjs/forms/label/Label.d.ts +1 -1
  169. package/cjs/forms/label/Label.js +6 -3
  170. package/cjs/forms/number-field/NumberField.d.ts +1 -1
  171. package/cjs/forms/number-field/NumberField.js +7 -7
  172. package/cjs/forms/password-field/PasswordField.js +12 -12
  173. package/cjs/forms/radio/Radio.d.ts +3 -3
  174. package/cjs/forms/radio/Radio.js +23 -22
  175. package/cjs/forms/reactselect/ReactSelect.d.ts +12 -12
  176. package/cjs/forms/reactselect/ReactSelect.js +74 -65
  177. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
  178. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
  179. package/cjs/forms/select/Select.d.ts +3 -3
  180. package/cjs/forms/select/Select.js +33 -30
  181. package/cjs/forms/select-field/SelectField.d.ts +2 -2
  182. package/cjs/forms/select-field/SelectField.js +33 -29
  183. package/cjs/forms/switch/Switch.d.ts +2 -2
  184. package/cjs/forms/switch/Switch.js +41 -35
  185. package/cjs/forms/tel-field/TelField.d.ts +1 -1
  186. package/cjs/forms/tel-field/TelField.js +7 -7
  187. package/cjs/forms/text-field/TextField.d.ts +3 -3
  188. package/cjs/forms/text-field/TextField.js +42 -39
  189. package/cjs/global-styles/GlobalStyles.js +3 -2
  190. package/cjs/global-styles/ResetStyles.js +2 -1
  191. package/cjs/global-styles/sanitize.d.ts +1 -1
  192. package/cjs/global-styles/sanitize.js +2 -3
  193. package/cjs/grid/Column.d.ts +1 -1
  194. package/cjs/grid/Column.js +7 -7
  195. package/cjs/grid/Container.d.ts +2 -2
  196. package/cjs/grid/Container.js +33 -24
  197. package/cjs/hero/Hero.d.ts +2 -2
  198. package/cjs/hero/Hero.js +42 -22
  199. package/cjs/hero/stripes.d.ts +2 -2
  200. package/cjs/hero/stripes.js +177 -162
  201. package/cjs/ie-banner/IEBanner.d.ts +1 -1
  202. package/cjs/ie-banner/IEBanner.js +13 -8
  203. package/cjs/layout/LayoutLegacy.js +2 -1
  204. package/cjs/lists/FeatureList.d.ts +7 -7
  205. package/cjs/lists/FeatureList.js +16 -13
  206. package/cjs/lists/ListAddon.d.ts +1 -1
  207. package/cjs/lists/ListAddon.js +10 -7
  208. package/cjs/lists/ListDivider.d.ts +1 -1
  209. package/cjs/lists/ListDivider.js +6 -6
  210. package/cjs/lists/ListIcon.d.ts +2 -2
  211. package/cjs/lists/ListIcon.js +6 -6
  212. package/cjs/lists/ListItem.d.ts +2 -2
  213. package/cjs/lists/ListItem.js +7 -6
  214. package/cjs/lists/ListText.d.ts +3 -3
  215. package/cjs/lists/ListText.js +6 -6
  216. package/cjs/lists/ListTextGroup.d.ts +1 -1
  217. package/cjs/lists/ListTextGroup.js +6 -6
  218. package/cjs/lists/ListTitle.js +6 -6
  219. package/cjs/loader/DfdsLoader.d.ts +1 -1
  220. package/cjs/loader/DfdsLoader.js +29 -23
  221. package/cjs/loader/Loader.d.ts +1 -1
  222. package/cjs/loader/Loader.js +9 -3
  223. package/cjs/localization/LocaleFlag.d.ts +1 -1
  224. package/cjs/localization/LocaleFlag.js +5 -4
  225. package/cjs/localization/locales.d.ts +2 -2
  226. package/cjs/localization/locales.js +3 -6
  227. package/cjs/logo/Logo.d.ts +1 -1
  228. package/cjs/logo/Logo.js +12 -9
  229. package/cjs/media/index.js +1 -2
  230. package/cjs/menu/Menu.d.ts +1 -1
  231. package/cjs/menu/Menu.js +27 -20
  232. package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
  233. package/cjs/mobile-stepper/MobileStepper.js +17 -15
  234. package/cjs/nav-bar/NavBar.d.ts +9 -9
  235. package/cjs/nav-bar/NavBar.js +34 -24
  236. package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
  237. package/cjs/nav-menu/NavMenuItem.js +13 -11
  238. package/cjs/pagination/Pagination.d.ts +2 -2
  239. package/cjs/pagination/Pagination.js +50 -38
  240. package/cjs/pagination/Pagination.styles.d.ts +6 -6
  241. package/cjs/pagination/Pagination.styles.js +6 -12
  242. package/cjs/popper/Popper.d.ts +2 -2
  243. package/cjs/popper/Popper.js +20 -15
  244. package/cjs/progress-bar/ProgressBar.d.ts +1 -1
  245. package/cjs/progress-bar/ProgressBar.js +3 -3
  246. package/cjs/schedule/ScheduleItem.d.ts +8 -8
  247. package/cjs/schedule/ScheduleItem.js +11 -8
  248. package/cjs/schedule/ScheduleList.d.ts +3 -3
  249. package/cjs/schedule/ScheduleList.js +10 -11
  250. package/cjs/side-sheet/SideSheet.d.ts +4 -4
  251. package/cjs/side-sheet/SideSheet.js +41 -33
  252. package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
  253. package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
  254. package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
  255. package/cjs/side-sheet/SideSheetContent.js +10 -7
  256. package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
  257. package/cjs/side-sheet/SideSheetFooter.js +10 -7
  258. package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
  259. package/cjs/side-sheet/SideSheetHeader.js +10 -7
  260. package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
  261. package/cjs/side-sheet/SideSheetHeadline.js +6 -5
  262. package/cjs/site-layout/SiteLayout.d.ts +11 -11
  263. package/cjs/site-layout/SiteLayout.js +30 -19
  264. package/cjs/skeleton/Skeleton.d.ts +1 -1
  265. package/cjs/skeleton/Skeleton.js +6 -6
  266. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  267. package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
  268. package/cjs/spinner/Spinner.d.ts +7 -7
  269. package/cjs/spinner/Spinner.js +13 -13
  270. package/cjs/step/Step.d.ts +1 -1
  271. package/cjs/step/Step.js +29 -20
  272. package/cjs/step/Step.styles.d.ts +4 -4
  273. package/cjs/step/Step.styles.js +4 -8
  274. package/cjs/step/StepButton.d.ts +2 -2
  275. package/cjs/step/StepButton.js +30 -27
  276. package/cjs/step/StepContent.d.ts +1 -1
  277. package/cjs/step/StepContent.js +12 -10
  278. package/cjs/step/StepContext.d.ts +1 -1
  279. package/cjs/step/StepContext.js +1 -2
  280. package/cjs/step/StepLabel.d.ts +1 -1
  281. package/cjs/step/StepLabel.js +9 -7
  282. package/cjs/stepper/Stepper.d.ts +1 -1
  283. package/cjs/stepper/Stepper.js +12 -10
  284. package/cjs/stepper/StepperContext.d.ts +1 -1
  285. package/cjs/stepper/StepperContext.js +1 -2
  286. package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +10 -7
  287. package/cjs/styles/media.d.ts +1 -1
  288. package/cjs/styles/media.js +2 -4
  289. package/cjs/styles/style-helpers.d.ts +1 -1
  290. package/cjs/styles/theme.d.ts +1 -1
  291. package/cjs/styles/theme.js +2 -4
  292. package/cjs/surface/Surface.d.ts +6 -6
  293. package/cjs/surface/Surface.js +20 -14
  294. package/cjs/tab/Tab.d.ts +3 -3
  295. package/cjs/tab/Tab.js +9 -8
  296. package/cjs/tab/TabPanel.d.ts +2 -2
  297. package/cjs/tab/TabPanel.js +7 -7
  298. package/cjs/tab/Tabs.d.ts +3 -3
  299. package/cjs/tab/Tabs.js +32 -31
  300. package/cjs/tab/TabsContext.d.ts +3 -3
  301. package/cjs/tab/TabsContext.js +7 -8
  302. package/cjs/table/Table.d.ts +2 -2
  303. package/cjs/table/Table.js +15 -15
  304. package/cjs/table/TableBody.d.ts +1 -1
  305. package/cjs/table/TableBody.js +8 -9
  306. package/cjs/table/TableDataCell.d.ts +1 -1
  307. package/cjs/table/TableDataCell.js +9 -10
  308. package/cjs/table/TableHead.d.ts +2 -2
  309. package/cjs/table/TableHead.js +10 -12
  310. package/cjs/table/TableHeaderCell.d.ts +3 -3
  311. package/cjs/table/TableHeaderCell.js +9 -10
  312. package/cjs/table/TableRow.d.ts +1 -1
  313. package/cjs/table/TableRow.js +9 -10
  314. package/cjs/test/Test.js +5 -4
  315. package/cjs/tooltip/Tooltip.d.ts +3 -3
  316. package/cjs/tooltip/Tooltip.js +30 -24
  317. package/cjs/typography/Headlines.d.ts +36 -36
  318. package/cjs/typography/Headlines.js +25 -31
  319. package/cjs/typography/Text.d.ts +2 -2
  320. package/cjs/typography/Text.js +2 -3
  321. package/common/LockBodyScroll.d.ts +2 -2
  322. package/common/LockBodyScroll.js +20 -10
  323. package/common/arrow.d.ts +2 -2
  324. package/common/intent.d.ts +1 -1
  325. package/common/polymorphic.d.ts +3 -3
  326. package/common/polymorphic.js +9 -3
  327. package/common/use-media.js +2 -2
  328. package/common/useOnClickOutside.d.ts +1 -1
  329. package/common/utils.d.ts +3 -3
  330. package/counter/Counter.d.ts +1 -1
  331. package/counter/Counter.js +50 -42
  332. package/counter/PluralCounter.d.ts +1 -1
  333. package/counter/PluralCounter.js +20 -11
  334. package/data-table/DataTable.d.ts +1 -1
  335. package/data-table/DataTable.js +53 -40
  336. package/date-range-picker/DatePickerDefaultStyles.d.ts +1 -1
  337. package/date-range-picker/DatePickerDfdsStyles.d.ts +1 -1
  338. package/date-range-picker/DateRangePicker.d.ts +1 -1
  339. package/date-range-picker/DateRangePicker.js +152 -132
  340. package/divider/Divider.d.ts +2 -2
  341. package/divider/Divider.js +10 -5
  342. package/drawer/Drawer.d.ts +4 -4
  343. package/drawer/Drawer.js +16 -7
  344. package/dropdown-menu/Dropdown.d.ts +2 -2
  345. package/dropdown-menu/Dropdown.js +38 -26
  346. package/dropdown-menu/DropdownContext.d.ts +4 -4
  347. package/dropdown-menu/DropdownContext.js +5 -4
  348. package/dropdown-menu/MenuCheckbox.js +24 -17
  349. package/dropdown-menu/MenuItem.d.ts +2 -2
  350. package/dropdown-menu/MenuItem.js +26 -18
  351. package/dropdown-menu/MenuTitle.js +14 -11
  352. package/elevation/index.d.ts +2 -2
  353. package/flexbox/FlexBox.d.ts +5 -5
  354. package/flexbox/FlexBox.js +2 -2
  355. package/footer/Footer.d.ts +2 -2
  356. package/footer/Footer.js +12 -7
  357. package/forms/assistive-text/AssistiveText.d.ts +3 -3
  358. package/forms/asterisk/Asterisk.js +4 -2
  359. package/forms/checkbox/Checkbox.d.ts +4 -4
  360. package/forms/checkbox/Checkbox.js +49 -39
  361. package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  362. package/forms/checkbox/ExampleControlComponent.js +15 -8
  363. package/forms/email-field/EmailField.d.ts +1 -1
  364. package/forms/email-field/EmailField.js +9 -4
  365. package/forms/error-text/ErrorText.d.ts +3 -3
  366. package/forms/field/Field.d.ts +1 -1
  367. package/forms/field/Field.js +9 -4
  368. package/forms/index.d.ts +3 -3
  369. package/forms/input/Input.d.ts +2 -2
  370. package/forms/input/Input.js +29 -22
  371. package/forms/input/InputComposition.d.ts +11 -11
  372. package/forms/input/InputComposition.js +40 -28
  373. package/forms/label/Label.d.ts +1 -1
  374. package/forms/label/Label.js +12 -4
  375. package/forms/number-field/NumberField.d.ts +1 -1
  376. package/forms/number-field/NumberField.js +10 -5
  377. package/forms/password-field/PasswordField.js +17 -11
  378. package/forms/radio/Radio.d.ts +3 -3
  379. package/forms/radio/Radio.js +29 -22
  380. package/forms/reactselect/ReactSelect.d.ts +12 -12
  381. package/forms/reactselect/ReactSelect.js +71 -63
  382. package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
  383. package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
  384. package/forms/select/Select.d.ts +3 -3
  385. package/forms/select/Select.js +40 -32
  386. package/forms/select-field/SelectField.d.ts +2 -2
  387. package/forms/select-field/SelectField.js +38 -29
  388. package/forms/switch/Switch.d.ts +2 -2
  389. package/forms/switch/Switch.js +52 -40
  390. package/forms/tel-field/TelField.d.ts +1 -1
  391. package/forms/tel-field/TelField.js +9 -4
  392. package/forms/text-field/TextField.d.ts +3 -3
  393. package/forms/text-field/TextField.js +49 -40
  394. package/global-styles/GlobalStyles.js +3 -3
  395. package/global-styles/ResetStyles.js +2 -2
  396. package/global-styles/sanitize.d.ts +1 -1
  397. package/grid/Column.d.ts +1 -1
  398. package/grid/Column.js +13 -6
  399. package/grid/Container.d.ts +2 -2
  400. package/grid/Container.js +42 -32
  401. package/hero/Hero.d.ts +2 -2
  402. package/hero/Hero.js +42 -20
  403. package/hero/stripes.d.ts +2 -2
  404. package/hero/stripes.js +176 -160
  405. package/ie-banner/IEBanner.d.ts +1 -1
  406. package/ie-banner/IEBanner.js +14 -8
  407. package/layout/LayoutLegacy.js +2 -2
  408. package/lists/FeatureList.d.ts +7 -7
  409. package/lists/FeatureList.js +21 -11
  410. package/lists/ListAddon.d.ts +1 -1
  411. package/lists/ListAddon.js +13 -6
  412. package/lists/ListDivider.d.ts +1 -1
  413. package/lists/ListDivider.js +10 -5
  414. package/lists/ListIcon.d.ts +2 -2
  415. package/lists/ListIcon.js +10 -5
  416. package/lists/ListItem.d.ts +2 -2
  417. package/lists/ListItem.js +13 -6
  418. package/lists/ListText.d.ts +3 -3
  419. package/lists/ListText.js +10 -5
  420. package/lists/ListTextGroup.d.ts +1 -1
  421. package/lists/ListTextGroup.js +10 -5
  422. package/lists/ListTitle.js +10 -5
  423. package/loader/DfdsLoader.d.ts +1 -1
  424. package/loader/DfdsLoader.js +26 -20
  425. package/loader/Loader.d.ts +1 -1
  426. package/loader/Loader.js +8 -2
  427. package/localization/LocaleFlag.d.ts +1 -1
  428. package/localization/LocaleFlag.js +10 -5
  429. package/localization/locales.d.ts +2 -2
  430. package/logo/Logo.d.ts +1 -1
  431. package/logo/Logo.js +14 -7
  432. package/menu/Menu.d.ts +1 -1
  433. package/menu/Menu.js +30 -17
  434. package/mobile-stepper/MobileStepper.d.ts +1 -1
  435. package/mobile-stepper/MobileStepper.js +26 -18
  436. package/nav-bar/NavBar.d.ts +9 -9
  437. package/nav-bar/NavBar.js +41 -23
  438. package/nav-menu/NavMenuItem.d.ts +1 -1
  439. package/nav-menu/NavMenuItem.js +12 -10
  440. package/package.json +11 -11
  441. package/pagination/Pagination.d.ts +2 -2
  442. package/pagination/Pagination.js +53 -35
  443. package/pagination/Pagination.styles.d.ts +6 -6
  444. package/popper/Popper.d.ts +2 -2
  445. package/popper/Popper.js +25 -14
  446. package/progress-bar/ProgressBar.d.ts +1 -1
  447. package/progress-bar/ProgressBar.js +2 -2
  448. package/schedule/ScheduleItem.d.ts +8 -8
  449. package/schedule/ScheduleItem.js +9 -4
  450. package/schedule/ScheduleList.d.ts +3 -3
  451. package/schedule/ScheduleList.js +16 -10
  452. package/side-sheet/SideSheet.d.ts +4 -4
  453. package/side-sheet/SideSheet.js +47 -34
  454. package/side-sheet/SideSheetCloseButton.d.ts +1 -1
  455. package/side-sheet/SideSheetCloseButton.js +10 -5
  456. package/side-sheet/SideSheetContent.d.ts +1 -1
  457. package/side-sheet/SideSheetContent.js +17 -8
  458. package/side-sheet/SideSheetFooter.d.ts +1 -1
  459. package/side-sheet/SideSheetFooter.js +17 -8
  460. package/side-sheet/SideSheetHeader.d.ts +1 -1
  461. package/side-sheet/SideSheetHeader.js +17 -8
  462. package/side-sheet/SideSheetHeadline.d.ts +1 -1
  463. package/side-sheet/SideSheetHeadline.js +5 -4
  464. package/site-layout/SiteLayout.d.ts +11 -11
  465. package/site-layout/SiteLayout.js +31 -12
  466. package/skeleton/Skeleton.d.ts +1 -1
  467. package/skeleton/Skeleton.js +10 -5
  468. package/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  469. package/social-media-link-list/SocialMediaLinkList.js +69 -55
  470. package/spinner/Spinner.d.ts +7 -7
  471. package/spinner/Spinner.js +17 -10
  472. package/step/Step.d.ts +1 -1
  473. package/step/Step.js +34 -20
  474. package/step/Step.styles.d.ts +4 -4
  475. package/step/StepButton.d.ts +2 -2
  476. package/step/StepButton.js +27 -19
  477. package/step/StepContent.d.ts +1 -1
  478. package/step/StepContent.js +11 -9
  479. package/step/StepContext.d.ts +1 -1
  480. package/step/StepLabel.d.ts +1 -1
  481. package/step/StepLabel.js +8 -6
  482. package/stepper/Stepper.d.ts +1 -1
  483. package/stepper/Stepper.js +13 -11
  484. package/stepper/StepperContext.d.ts +1 -1
  485. package/stepper-feedback-message/StepperFeedbackMessage.js +9 -6
  486. package/styles/media.d.ts +1 -1
  487. package/styles/style-helpers.d.ts +1 -1
  488. package/styles/theme.d.ts +1 -1
  489. package/surface/Surface.d.ts +6 -6
  490. package/surface/Surface.js +17 -14
  491. package/tab/Tab.d.ts +3 -3
  492. package/tab/Tab.js +18 -11
  493. package/tab/TabPanel.d.ts +2 -2
  494. package/tab/TabPanel.js +6 -5
  495. package/tab/Tabs.d.ts +3 -3
  496. package/tab/Tabs.js +46 -39
  497. package/tab/TabsContext.d.ts +3 -3
  498. package/tab/TabsContext.js +5 -4
  499. package/table/Table.d.ts +2 -2
  500. package/table/Table.js +20 -13
  501. package/table/TableBody.d.ts +1 -1
  502. package/table/TableBody.js +13 -7
  503. package/table/TableDataCell.d.ts +1 -1
  504. package/table/TableDataCell.js +14 -8
  505. package/table/TableHead.d.ts +2 -2
  506. package/table/TableHead.js +10 -8
  507. package/table/TableHeaderCell.d.ts +3 -3
  508. package/table/TableHeaderCell.js +14 -8
  509. package/table/TableRow.d.ts +1 -1
  510. package/table/TableRow.js +11 -10
  511. package/test/Test.js +4 -2
  512. package/tooltip/Tooltip.d.ts +3 -3
  513. package/tooltip/Tooltip.js +33 -23
  514. package/typography/Headlines.d.ts +36 -36
  515. package/typography/Headlines.js +24 -17
  516. package/typography/Text.d.ts +2 -2
@@ -1,15 +1,7 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  import _styled from "@emotion/styled/base";
3
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
4
- function _regeneratorRuntime() { "use strict"; var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; function n(r) { var e = "function" == typeof r && r.constructor; return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); } var o = { "throw": 1, "return": 2, "break": 3, "continue": 3 }; function a(r) { var e, t; return function (n) { e || (e = { stop: function stop() { return t(n.a, 2); }, "catch": function _catch() { return n.v; }, abrupt: function abrupt(r, e) { return t(n.a, o[r], e); }, delegateYield: function delegateYield(r, o, a) { return e.resultName = o, t(n.d, _regeneratorValues(r), a); }, finish: function finish(r) { return t(n.f, r); } }, t = function t(r, _t, o) { n.p = e.prev, n.n = e.next; try { return r(_t, o); } finally { e.next = n.n; } }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; try { return r.call(this, e); } finally { n.p = e.prev, n.n = e.next; } }; } return (_regeneratorRuntime = function _regeneratorRuntime() { return { wrap: function wrap(e, t, n, o) { return r.w(a(e), t, n, o && o.reverse()); }, isGeneratorFunction: n, mark: r.m, awrap: function awrap(r, e) { return new _OverloadYield(r, e); }, AsyncIterator: _regeneratorAsyncIterator, async: function async(r, e, t, o, u) { return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u); }, keys: _regeneratorKeys, values: _regeneratorValues }; })(); }
5
- function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
6
- function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) { r.unshift(t); } return function e() { for (; r.length;) { if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; } return e.done = !0, e; }; }
7
- function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
8
- function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
9
- function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
10
3
  function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
11
4
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
12
- function _OverloadYield(e, d) { this.v = e, this.k = d; }
13
5
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
14
6
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
15
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -20,14 +12,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
12
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
21
13
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
14
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
23
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
24
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
17
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
26
18
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
27
19
  import React, { useEffect, useReducer, useCallback, useRef, useContext, createContext } from 'react';
28
20
  import { Toast } from '.';
29
21
  import { Fade } from '@mui/material';
30
- import { jsx as ___EmotionJSX } from "@emotion/react";
22
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
31
23
  var Container = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
32
24
  target: "e271rjj0"
33
25
  } : {
@@ -109,27 +101,24 @@ var Toaster = function Toaster(_ref) {
109
101
  });
110
102
  };
111
103
  var handleOnOpen = /*#__PURE__*/function () {
112
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(payload) {
113
- return _regeneratorRuntime().wrap(function _callee$(_context) {
114
- while (1) {
115
- switch (_context.prev = _context.next) {
116
- case 0:
117
- if (!hasActive) {
118
- _context.next = 4;
119
- break;
120
- }
121
- handleOnClose();
122
- _context.next = 4;
123
- return sleep();
124
- case 4:
125
- dispatch({
126
- type: 'OPEN',
127
- payload: payload
128
- });
129
- case 5:
130
- case "end":
131
- return _context.stop();
132
- }
104
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(payload) {
105
+ return _regenerator().w(function (_context) {
106
+ while (1) switch (_context.n) {
107
+ case 0:
108
+ if (!hasActive) {
109
+ _context.n = 1;
110
+ break;
111
+ }
112
+ handleOnClose();
113
+ _context.n = 1;
114
+ return sleep();
115
+ case 1:
116
+ dispatch({
117
+ type: 'OPEN',
118
+ payload: payload
119
+ });
120
+ case 2:
121
+ return _context.a(2);
133
122
  }
134
123
  }, _callee);
135
124
  }));
@@ -143,29 +132,36 @@ var Toaster = function Toaster(_ref) {
143
132
  }
144
133
  return handleTimeoutCleanUp;
145
134
  }, [handleTimeout, open]);
146
- return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ToasterContext.Provider, {
147
- value: {
148
- handleOnOpen: handleOnOpen,
149
- state: {
150
- open: open,
151
- hasActive: hasActive,
152
- toastProps: toastProps,
153
- timeout: timeout
154
- }
155
- }
156
- }, children), open && ___EmotionJSX(Container, {
157
- onMouseEnter: handleTimeoutCleanUp,
158
- onMouseLeave: handleTimeout
159
- }, ___EmotionJSX(Fade, {
160
- "in": open,
161
- mountOnEnter: true,
162
- unmountOnExit: true,
163
- onExited: handleTimeoutCleanUp
164
- }, ___EmotionJSX("div", null, ___EmotionJSX(Toast, _extends({}, toastProps, toastProps !== null && toastProps !== void 0 && toastProps.onRequestClose ? {
165
- onRequestClose: function onRequestClose() {
166
- handleOnClose();
167
- toastProps.onRequestClose && toastProps.onRequestClose();
168
- }
169
- } : {}))))));
135
+ return _jsxs(_Fragment, {
136
+ children: [_jsx(ToasterContext.Provider, {
137
+ value: {
138
+ handleOnOpen: handleOnOpen,
139
+ state: {
140
+ open: open,
141
+ hasActive: hasActive,
142
+ toastProps: toastProps,
143
+ timeout: timeout
144
+ }
145
+ },
146
+ children: children
147
+ }), open && _jsx(Container, {
148
+ onMouseEnter: handleTimeoutCleanUp,
149
+ onMouseLeave: handleTimeout,
150
+ children: _jsx(Fade, {
151
+ "in": open,
152
+ mountOnEnter: true,
153
+ unmountOnExit: true,
154
+ onExited: handleTimeoutCleanUp,
155
+ children: _jsx("div", {
156
+ children: _jsx(Toast, _objectSpread(_objectSpread({}, toastProps), toastProps !== null && toastProps !== void 0 && toastProps.onRequestClose ? {
157
+ onRequestClose: function onRequestClose() {
158
+ handleOnClose();
159
+ toastProps.onRequestClose && toastProps.onRequestClose();
160
+ }
161
+ } : {}))
162
+ })
163
+ })
164
+ })]
165
+ });
170
166
  };
171
167
  export default Toaster;
package/badge/Badge.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Intent } from '../common/intent';
3
3
  import { FlexBoxProps } from '../flexbox/FlexBox';
4
- export declare type BadgeProps = {
4
+ export type BadgeProps = {
5
5
  /**
6
6
  * Specifies the intent of the Badge
7
7
  */
package/badge/Badge.js CHANGED
@@ -1,7 +1,12 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1
2
  var _excluded = ["as", "children", "intent", "flexBoxProps"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
9
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
10
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
6
11
  import React from 'react';
7
12
  import { css } from '@emotion/react';
@@ -9,7 +14,7 @@ import { theme } from '@dfds-ui/theme';
9
14
  import { Text } from '@dfds-ui/typography';
10
15
  import { getIntentColor, getIntentTextColor } from '../common/intent';
11
16
  import FlexBox from '../flexbox/FlexBox';
12
- import { jsx as ___EmotionJSX } from "@emotion/react";
17
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
13
18
  var _ref = process.env.NODE_ENV === "production" ? {
14
19
  name: "1h52dri",
15
20
  styles: "overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
@@ -29,11 +34,14 @@ export default function Badge(_ref2) {
29
34
  inline: true
30
35
  } : _ref2$flexBoxProps,
31
36
  rest = _objectWithoutProperties(_ref2, _excluded);
32
- return ___EmotionJSX(FlexBox, _extends({
37
+ return _jsx(FlexBox, _objectSpread(_objectSpread(_objectSpread({
33
38
  as: as,
34
39
  css: /*#__PURE__*/css("align-items:center;background-color:", getIntentColor(intent), ";border-radius:0.625rem;color:", getIntentTextColor(intent), ";height:1.25rem;max-width:", flexBoxProps.inline && "calc(100% - ".concat(theme.spacing.xs, ")"), ";padding:0 ", theme.spacing.xs, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Badge;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9iYWRnZS9CYWRnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMkNjIiwiZmlsZSI6Ii4uLy4uL3NyYy9iYWRnZS9CYWRnZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5pbXBvcnQgeyBUZXh0IH0gZnJvbSAnQGRmZHMtdWkvdHlwb2dyYXBoeSdcbmltcG9ydCB7IEludGVudCwgZ2V0SW50ZW50Q29sb3IsIGdldEludGVudFRleHRDb2xvciB9IGZyb20gJy4uL2NvbW1vbi9pbnRlbnQnXG5pbXBvcnQgRmxleEJveCwgeyBGbGV4Qm94UHJvcHMgfSBmcm9tICcuLi9mbGV4Ym94L0ZsZXhCb3gnXG5cbmV4cG9ydCB0eXBlIEJhZGdlUHJvcHMgPSB7XG4gIC8qKlxuICAgKiBTcGVjaWZpZXMgdGhlIGludGVudCBvZiB0aGUgQmFkZ2VcbiAgICovXG4gIGludGVudD86IEludGVudFxuXG4gIC8qKlxuICAgKiBUZXh0IHRvIGJlIHNob3duIGluIHRoZSBiYWRnZSAodXN1YWxseSBqdXN0IGEgc3RyaW5nKVxuICAgKi9cbiAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZVxuICAvKipcbiAgICogQ2xhc3MgbmFtZSB0byBiZSBhZGRlZCB0byB0aGUgYmFkZ2VcbiAgICovXG4gIGNsYXNzTmFtZT86IHN0cmluZ1xuXG4gIC8qKlxuICAgKiBQcm9wcyBjb250cm9sbGluZyB0aGUgZmxleGJveFxuICAgKi9cbiAgZmxleEJveFByb3BzPzogRmxleEJveFByb3BzXG5cbiAgLyoqXG4gICAqIEhUTUwgdGFnIG9yIGN1c3RvbSBjb21wb25lbnQgYmVpbmcgcmVuZGVyZWRcbiAgICovXG4gIGFzPzogUmVhY3QuRWxlbWVudFR5cGVcbn1cblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gQmFkZ2Uoe1xuICBhcyA9ICdkaXYnLFxuICBjaGlsZHJlbixcbiAgaW50ZW50ID0gJ25vbmUnLFxuICBmbGV4Qm94UHJvcHMgPSB7IGlubGluZTogdHJ1ZSB9LFxuICAuLi5yZXN0XG59OiBCYWRnZVByb3BzKSB7XG4gIHJldHVybiAoXG4gICAgPEZsZXhCb3hcbiAgICAgIGFzPXthc31cbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2dldEludGVudENvbG9yKGludGVudCl9O1xuICAgICAgICBib3JkZXItcmFkaXVzOiAwLjYyNXJlbTtcbiAgICAgICAgY29sb3I6ICR7Z2V0SW50ZW50VGV4dENvbG9yKGludGVudCl9O1xuICAgICAgICBoZWlnaHQ6IDEuMjVyZW07XG4gICAgICAgIG1heC13aWR0aDogJHtmbGV4Qm94UHJvcHMuaW5saW5lICYmIGBjYWxjKDEwMCUgLSAke3RoZW1lLnNwYWNpbmcueHN9KWB9O1xuICAgICAgICBwYWRkaW5nOiAwICR7dGhlbWUuc3BhY2luZy54c307XG4gICAgICBgfVxuICAgICAgey4uLmZsZXhCb3hQcm9wc31cbiAgICAgIHsuLi5yZXN0fVxuICAgID5cbiAgICAgIDxUZXh0XG4gICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICAgICAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7XG4gICAgICAgICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgICAgICAgYH1cbiAgICAgICAgc3R5bGVkQXM9XCJib2R5SW50ZXJmYWNlU21hbGxcIlxuICAgICAgPlxuICAgICAgICB7Y2hpbGRyZW59XG4gICAgICA8L1RleHQ+XG4gICAgPC9GbGV4Qm94PlxuICApXG59XG4iXX0= */")
35
- }, flexBoxProps, rest), ___EmotionJSX(Text, {
36
- css: _ref,
37
- styledAs: "bodyInterfaceSmall"
38
- }, children));
40
+ }, flexBoxProps), rest), {}, {
41
+ children: _jsx(Text, {
42
+ css: _ref,
43
+ styledAs: "bodyInterfaceSmall",
44
+ children: children
45
+ })
46
+ }));
39
47
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type BadgeIconProps = {
2
+ export type BadgeIconProps = {
3
3
  letter: string;
4
4
  className?: string;
5
5
  };
@@ -1,29 +1,31 @@
1
1
  import React from 'react';
2
2
  import { css } from '@emotion/react';
3
3
  import { theme } from '@dfds-ui/theme';
4
- import { jsx as ___EmotionJSX } from "@emotion/react";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
5
5
  export var BadgeIcon = function BadgeIcon(_ref) {
6
6
  var letter = _ref.letter,
7
7
  className = _ref.className;
8
- return ___EmotionJSX("svg", {
8
+ return _jsxs("svg", {
9
9
  css: /*#__PURE__*/css("font-family:", theme.fontFamilies.display, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:BadgeIcon;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idXR0b24vQmFkZ2VJY29uLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFZYyIsImZpbGUiOiIuLi8uLi9zcmMvYnV0dG9uL0JhZGdlSWNvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5cbmV4cG9ydCB0eXBlIEJhZGdlSWNvblByb3BzID0ge1xuICBsZXR0ZXI6IHN0cmluZ1xuICBjbGFzc05hbWU/OiBzdHJpbmdcbn1cblxuZXhwb3J0IGNvbnN0IEJhZGdlSWNvbiA9ICh7IGxldHRlciwgY2xhc3NOYW1lIH06IEJhZGdlSWNvblByb3BzKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPHN2Z1xuICAgICAgY3NzPXtjc3NgXG4gICAgICAgIGZvbnQtZmFtaWx5OiAke3RoZW1lLmZvbnRGYW1pbGllcy5kaXNwbGF5fTtcbiAgICAgIGB9XG4gICAgICB3aWR0aD1cIjFlbVwiXG4gICAgICBoZWlnaHQ9XCIxZW1cIlxuICAgICAgdmlld0JveD1cIjAgMCAyNCAyNFwiXG4gICAgICBmb2N1c2FibGU9e2ZhbHNlfVxuICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWV9XG4gICAgPlxuICAgICAgPGNpcmNsZSBjeD1cIjUwJVwiIGN5PVwiNTAlXCIgcj1cIjUwJVwiIC8+XG4gICAgICA8dGV4dCB0ZXh0QW5jaG9yPVwibWlkZGxlXCIgeD1cIjUwJVwiIHk9XCI1MCVcIiBkeT1cIjAuMzI1ZW1cIiBmb250U2l6ZT1cIjAuODc1cmVtXCIgZm9udFdlaWdodD17MjAwfSBmaWxsPVwiI2ZmZlwiPlxuICAgICAgICB7bGV0dGVyLnRvVXBwZXJDYXNlKCl9XG4gICAgICA8L3RleHQ+XG4gICAgPC9zdmc+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgQmFkZ2VJY29uXG4iXX0= */"),
10
10
  width: "1em",
11
11
  height: "1em",
12
12
  viewBox: "0 0 24 24",
13
13
  focusable: false,
14
- className: className
15
- }, ___EmotionJSX("circle", {
16
- cx: "50%",
17
- cy: "50%",
18
- r: "50%"
19
- }), ___EmotionJSX("text", {
20
- textAnchor: "middle",
21
- x: "50%",
22
- y: "50%",
23
- dy: "0.325em",
24
- fontSize: "0.875rem",
25
- fontWeight: 200,
26
- fill: "#fff"
27
- }, letter.toUpperCase()));
14
+ className: className,
15
+ children: [_jsx("circle", {
16
+ cx: "50%",
17
+ cy: "50%",
18
+ r: "50%"
19
+ }), _jsx("text", {
20
+ textAnchor: "middle",
21
+ x: "50%",
22
+ y: "50%",
23
+ dy: "0.325em",
24
+ fontSize: "0.875rem",
25
+ fontWeight: 200,
26
+ fill: "#fff",
27
+ children: letter.toUpperCase()
28
+ })]
29
+ });
28
30
  };
29
31
  export default BadgeIcon;
@@ -1,14 +1,14 @@
1
1
  import * as React from 'react';
2
2
  export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
3
- export declare type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
4
- export declare type ButtonVariation = typeof variations[number];
5
- export declare type ButtonVariationProps = {
3
+ export type BaseButtonProps = React.PropsWithoutRef<React.JSX.IntrinsicElements['button']>;
4
+ export type ButtonVariation = (typeof variations)[number];
5
+ export type ButtonVariationProps = {
6
6
  variation?: ButtonVariation;
7
7
  };
8
8
  export declare const BaseButton: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
11
  } & {
12
- selected?: boolean | undefined;
12
+ selected?: boolean;
13
13
  }, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
14
14
  export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
@@ -9,7 +9,7 @@ export var BaseButton = /*#__PURE__*/_styled("button", process.env.NODE_ENV ===
9
9
  label: "BaseButton"
10
10
  })(baseButtonStyle, ";", function (props) {
11
11
  return theme.states.overlay(props.selected);
12
- }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWStEIiwiZmlsZSI6Ii4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZSwgcHJpbWFyeUJ1dHRvblN0eWxlcywgc2Vjb25kYXJ5QnV0dG9uU3R5bGVzLCBvdXRsaW5lZEJ1dHRvblN0eWxlcyB9IGZyb20gJy4vYnV0dG9uLXN0eWxlJ1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG5leHBvcnQgY29uc3QgdmFyaWF0aW9ucyA9IFsncHJpbWFyeScsICdzZWNvbmRhcnknLCAnb3V0bGluZWQnLCAndGV4dCcsICdkYW5nZXInLCAnbGluayddIGFzIGNvbnN0XG5cbmV4cG9ydCB0eXBlIEJhc2VCdXR0b25Qcm9wcyA9IFJlYWN0LlByb3BzV2l0aG91dFJlZjxKU1guSW50cmluc2ljRWxlbWVudHNbJ2J1dHRvbiddPlxuXG5leHBvcnQgdHlwZSBCdXR0b25WYXJpYXRpb24gPSB0eXBlb2YgdmFyaWF0aW9uc1tudW1iZXJdXG5leHBvcnQgdHlwZSBCdXR0b25WYXJpYXRpb25Qcm9wcyA9IHsgdmFyaWF0aW9uPzogQnV0dG9uVmFyaWF0aW9uIH1cblxuZXhwb3J0IGNvbnN0IEJhc2VCdXR0b24gPSBzdHlsZWQuYnV0dG9uPHsgc2VsZWN0ZWQ/OiBib29sZWFuIH0+YFxuICAke2Jhc2VCdXR0b25TdHlsZX07XG4gICR7KHByb3BzKSA9PiB0aGVtZS5zdGF0ZXMub3ZlcmxheShwcm9wcy5zZWxlY3RlZCl9O1xuYFxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0QnV0dG9uVmFyaWF0aW9uU3R5bGUodmFyaWF0aW9uPzogQnV0dG9uVmFyaWF0aW9uKSB7XG4gIHN3aXRjaCAodmFyaWF0aW9uKSB7XG4gICAgZGVmYXVsdDpcbiAgICBjYXNlICdwcmltYXJ5JzpcbiAgICAgIHJldHVybiBwcmltYXJ5QnV0dG9uU3R5bGVzXG4gICAgY2FzZSAnc2Vjb25kYXJ5JzpcbiAgICAgIHJldHVybiBzZWNvbmRhcnlCdXR0b25TdHlsZXNcbiAgICBjYXNlICdvdXRsaW5lZCc6XG4gICAgICByZXR1cm4gb3V0bGluZWRCdXR0b25TdHlsZXNcbiAgfVxufVxuIl19 */"));
12
+ }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWStEIiwiZmlsZSI6Ii4uLy4uL3NyYy9idXR0b24vQmFzZUJ1dHRvbi50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGJhc2VCdXR0b25TdHlsZSwgcHJpbWFyeUJ1dHRvblN0eWxlcywgc2Vjb25kYXJ5QnV0dG9uU3R5bGVzLCBvdXRsaW5lZEJ1dHRvblN0eWxlcyB9IGZyb20gJy4vYnV0dG9uLXN0eWxlJ1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyB0aGVtZSB9IGZyb20gJ0BkZmRzLXVpL3RoZW1lJ1xuXG5leHBvcnQgY29uc3QgdmFyaWF0aW9ucyA9IFsncHJpbWFyeScsICdzZWNvbmRhcnknLCAnb3V0bGluZWQnLCAndGV4dCcsICdkYW5nZXInLCAnbGluayddIGFzIGNvbnN0XG5cbmV4cG9ydCB0eXBlIEJhc2VCdXR0b25Qcm9wcyA9IFJlYWN0LlByb3BzV2l0aG91dFJlZjxSZWFjdC5KU1guSW50cmluc2ljRWxlbWVudHNbJ2J1dHRvbiddPlxuXG5leHBvcnQgdHlwZSBCdXR0b25WYXJpYXRpb24gPSAodHlwZW9mIHZhcmlhdGlvbnMpW251bWJlcl1cbmV4cG9ydCB0eXBlIEJ1dHRvblZhcmlhdGlvblByb3BzID0geyB2YXJpYXRpb24/OiBCdXR0b25WYXJpYXRpb24gfVxuXG5leHBvcnQgY29uc3QgQmFzZUJ1dHRvbiA9IHN0eWxlZC5idXR0b248eyBzZWxlY3RlZD86IGJvb2xlYW4gfT5gXG4gICR7YmFzZUJ1dHRvblN0eWxlfTtcbiAgJHsocHJvcHMpID0+IHRoZW1lLnN0YXRlcy5vdmVybGF5KHByb3BzLnNlbGVjdGVkKX07XG5gXG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRCdXR0b25WYXJpYXRpb25TdHlsZSh2YXJpYXRpb24/OiBCdXR0b25WYXJpYXRpb24pIHtcbiAgc3dpdGNoICh2YXJpYXRpb24pIHtcbiAgICBkZWZhdWx0OlxuICAgIGNhc2UgJ3ByaW1hcnknOlxuICAgICAgcmV0dXJuIHByaW1hcnlCdXR0b25TdHlsZXNcbiAgICBjYXNlICdzZWNvbmRhcnknOlxuICAgICAgcmV0dXJuIHNlY29uZGFyeUJ1dHRvblN0eWxlc1xuICAgIGNhc2UgJ291dGxpbmVkJzpcbiAgICAgIHJldHVybiBvdXRsaW5lZEJ1dHRvblN0eWxlc1xuICB9XG59XG4iXX0= */"));
13
13
  export function getButtonVariationStyle(variation) {
14
14
  switch (variation) {
15
15
  default:
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
3
- declare type ButtonSize = 'medium' | 'small';
4
- declare type IconAlign = 'left' | 'right';
5
- export declare type ButtonProps = BaseButtonProps & ButtonVariationProps & {
3
+ type ButtonSize = 'medium' | 'small';
4
+ type IconAlign = 'left' | 'right';
5
+ export type ButtonProps = BaseButtonProps & ButtonVariationProps & {
6
6
  className?: string;
7
7
  replace?: boolean;
8
8
  submitting?: boolean;
@@ -15,5 +15,5 @@ export declare type ButtonProps = BaseButtonProps & ButtonVariationProps & {
15
15
  as?: React.ElementType;
16
16
  children?: React.ReactNode;
17
17
  };
18
- declare const Button: React.FC<ButtonProps>;
18
+ declare const Button: ({ variation, children, submitting, size, icon, iconSpacing, iconAlign, iconColor, title, disabled, ...rest }: ButtonProps) => React.JSX.Element;
19
19
  export default Button;