@dfds-ui/react-components 2.2.0-alpha.b94ad8b5 → 2.2.0-alpha.bfcaf58a

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 (530) hide show
  1. package/accordion/Accordion.d.ts +2 -2
  2. package/accordion/Accordion.js +70 -51
  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 +52 -38
  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 +71 -56
  17. package/app-bar/AppBarListItem.d.ts +11 -11
  18. package/assertions/banner/Banner.d.ts +3 -3
  19. package/assertions/banner/Banner.js +71 -57
  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 +30 -22
  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 +63 -50
  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 +45 -37
  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 -54
  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 +62 -55
  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 +22 -20
  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 -3
  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/use-media.js +1 -1
  119. package/cjs/common/useOnClickOutside.d.ts +2 -2
  120. package/cjs/common/useOnClickOutside.js +2 -2
  121. package/cjs/common/utils.d.ts +3 -3
  122. package/cjs/counter/Counter.d.ts +1 -1
  123. package/cjs/counter/Counter.js +50 -43
  124. package/cjs/counter/PluralCounter.d.ts +1 -1
  125. package/cjs/counter/PluralCounter.js +13 -11
  126. package/cjs/data-table/DataTable.d.ts +1 -1
  127. package/cjs/data-table/DataTable.js +47 -39
  128. package/cjs/divider/Divider.d.ts +2 -2
  129. package/cjs/divider/Divider.js +6 -6
  130. package/cjs/drawer/Drawer.d.ts +4 -4
  131. package/cjs/drawer/Drawer.js +11 -9
  132. package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
  133. package/cjs/dropdown-menu/Dropdown.js +37 -32
  134. package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
  135. package/cjs/dropdown-menu/DropdownContext.js +7 -8
  136. package/cjs/dropdown-menu/MenuCheckbox.js +24 -23
  137. package/cjs/dropdown-menu/MenuItem.d.ts +2 -2
  138. package/cjs/dropdown-menu/MenuItem.js +30 -28
  139. package/cjs/dropdown-menu/MenuTitle.js +15 -12
  140. package/cjs/elevation/index.d.ts +2 -2
  141. package/cjs/elevation/index.js +1 -2
  142. package/cjs/flexbox/FlexBox.d.ts +5 -5
  143. package/cjs/flexbox/FlexBox.js +2 -4
  144. package/cjs/footer/Footer.d.ts +2 -2
  145. package/cjs/footer/Footer.js +13 -9
  146. package/cjs/forms/assistive-text/AssistiveText.d.ts +3 -3
  147. package/cjs/forms/assistive-text/AssistiveText.js +1 -2
  148. package/cjs/forms/asterisk/Asterisk.js +5 -4
  149. package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
  150. package/cjs/forms/checkbox/Checkbox.js +41 -36
  151. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  152. package/cjs/forms/checkbox/ExampleControlComponent.js +7 -7
  153. package/cjs/forms/email-field/EmailField.d.ts +1 -1
  154. package/cjs/forms/email-field/EmailField.js +7 -7
  155. package/cjs/forms/error-text/ErrorText.d.ts +3 -3
  156. package/cjs/forms/error-text/ErrorText.js +1 -2
  157. package/cjs/forms/field/Field.d.ts +1 -1
  158. package/cjs/forms/field/Field.js +10 -6
  159. package/cjs/forms/index.d.ts +3 -3
  160. package/cjs/forms/input/Input.d.ts +2 -2
  161. package/cjs/forms/input/Input.js +23 -21
  162. package/cjs/forms/input/InputComposition.d.ts +11 -11
  163. package/cjs/forms/input/InputComposition.js +39 -33
  164. package/cjs/forms/label/Label.d.ts +1 -1
  165. package/cjs/forms/label/Label.js +6 -3
  166. package/cjs/forms/number-field/NumberField.d.ts +1 -1
  167. package/cjs/forms/number-field/NumberField.js +7 -7
  168. package/cjs/forms/password-field/PasswordField.js +12 -12
  169. package/cjs/forms/radio/Radio.d.ts +3 -3
  170. package/cjs/forms/radio/Radio.js +23 -22
  171. package/cjs/forms/reactselect/ReactSelect.d.ts +12 -12
  172. package/cjs/forms/reactselect/ReactSelect.js +74 -65
  173. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
  174. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
  175. package/cjs/forms/select/Select.d.ts +3 -3
  176. package/cjs/forms/select/Select.js +33 -30
  177. package/cjs/forms/select-field/SelectField.d.ts +2 -2
  178. package/cjs/forms/select-field/SelectField.js +33 -29
  179. package/cjs/forms/switch/Switch.d.ts +2 -2
  180. package/cjs/forms/switch/Switch.js +41 -35
  181. package/cjs/forms/tel-field/TelField.d.ts +1 -1
  182. package/cjs/forms/tel-field/TelField.js +7 -7
  183. package/cjs/forms/text-field/TextField.d.ts +3 -3
  184. package/cjs/forms/text-field/TextField.js +42 -39
  185. package/cjs/global-styles/GlobalStyles.js +3 -2
  186. package/cjs/global-styles/ResetStyles.js +2 -1
  187. package/cjs/global-styles/sanitize.d.ts +1 -1
  188. package/cjs/global-styles/sanitize.js +2 -3
  189. package/cjs/grid/Column.d.ts +1 -1
  190. package/cjs/grid/Column.js +7 -7
  191. package/cjs/grid/Container.d.ts +2 -2
  192. package/cjs/grid/Container.js +34 -29
  193. package/cjs/hero/Hero.d.ts +2 -2
  194. package/cjs/hero/Hero.js +42 -22
  195. package/cjs/hero/stripes.d.ts +2 -2
  196. package/cjs/hero/stripes.js +177 -162
  197. package/cjs/ie-banner/IEBanner.d.ts +1 -1
  198. package/cjs/ie-banner/IEBanner.js +13 -8
  199. package/cjs/index.d.ts +0 -1
  200. package/cjs/index.js +0 -12
  201. package/cjs/layout/LayoutLegacy.js +2 -1
  202. package/cjs/lists/FeatureList.d.ts +7 -7
  203. package/cjs/lists/FeatureList.js +16 -13
  204. package/cjs/lists/ListAddon.d.ts +1 -1
  205. package/cjs/lists/ListAddon.js +10 -7
  206. package/cjs/lists/ListDivider.d.ts +1 -1
  207. package/cjs/lists/ListDivider.js +6 -6
  208. package/cjs/lists/ListIcon.d.ts +2 -2
  209. package/cjs/lists/ListIcon.js +6 -6
  210. package/cjs/lists/ListItem.d.ts +2 -2
  211. package/cjs/lists/ListItem.js +7 -6
  212. package/cjs/lists/ListText.d.ts +3 -3
  213. package/cjs/lists/ListText.js +6 -6
  214. package/cjs/lists/ListTextGroup.d.ts +1 -1
  215. package/cjs/lists/ListTextGroup.js +6 -6
  216. package/cjs/lists/ListTitle.js +6 -6
  217. package/cjs/loader/DfdsLoader.d.ts +1 -1
  218. package/cjs/loader/DfdsLoader.js +29 -23
  219. package/cjs/loader/Loader.d.ts +1 -1
  220. package/cjs/loader/Loader.js +9 -3
  221. package/cjs/localization/LocaleFlag.d.ts +1 -1
  222. package/cjs/localization/LocaleFlag.js +5 -4
  223. package/cjs/localization/locales.d.ts +2 -2
  224. package/cjs/localization/locales.js +3 -6
  225. package/cjs/logo/Logo.d.ts +1 -1
  226. package/cjs/logo/Logo.js +12 -9
  227. package/cjs/media/index.js +1 -2
  228. package/cjs/menu/Menu.d.ts +1 -1
  229. package/cjs/menu/Menu.js +27 -20
  230. package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
  231. package/cjs/mobile-stepper/MobileStepper.js +17 -15
  232. package/cjs/nav-bar/NavBar.d.ts +9 -9
  233. package/cjs/nav-bar/NavBar.js +34 -24
  234. package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
  235. package/cjs/nav-menu/NavMenuItem.js +13 -11
  236. package/cjs/pagination/Pagination.d.ts +2 -2
  237. package/cjs/pagination/Pagination.js +50 -38
  238. package/cjs/pagination/Pagination.styles.d.ts +6 -6
  239. package/cjs/pagination/Pagination.styles.js +6 -12
  240. package/cjs/popper/Popper.d.ts +3 -3
  241. package/cjs/popper/Popper.js +21 -17
  242. package/cjs/progress-bar/ProgressBar.d.ts +1 -1
  243. package/cjs/progress-bar/ProgressBar.js +3 -3
  244. package/cjs/schedule/ScheduleItem.d.ts +8 -8
  245. package/cjs/schedule/ScheduleItem.js +11 -8
  246. package/cjs/schedule/ScheduleList.d.ts +3 -3
  247. package/cjs/schedule/ScheduleList.js +10 -11
  248. package/cjs/side-sheet/SideSheet.d.ts +4 -4
  249. package/cjs/side-sheet/SideSheet.js +41 -33
  250. package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
  251. package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
  252. package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
  253. package/cjs/side-sheet/SideSheetContent.js +10 -7
  254. package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
  255. package/cjs/side-sheet/SideSheetFooter.js +10 -7
  256. package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
  257. package/cjs/side-sheet/SideSheetHeader.js +10 -7
  258. package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
  259. package/cjs/side-sheet/SideSheetHeadline.js +6 -5
  260. package/cjs/site-layout/SiteLayout.d.ts +11 -11
  261. package/cjs/site-layout/SiteLayout.js +30 -19
  262. package/cjs/skeleton/Skeleton.d.ts +1 -1
  263. package/cjs/skeleton/Skeleton.js +6 -6
  264. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  265. package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
  266. package/cjs/spinner/Spinner.d.ts +7 -7
  267. package/cjs/spinner/Spinner.js +13 -13
  268. package/cjs/step/Step.d.ts +1 -1
  269. package/cjs/step/Step.js +29 -20
  270. package/cjs/step/Step.styles.d.ts +4 -4
  271. package/cjs/step/Step.styles.js +4 -8
  272. package/cjs/step/StepButton.d.ts +2 -2
  273. package/cjs/step/StepButton.js +30 -27
  274. package/cjs/step/StepContent.d.ts +1 -1
  275. package/cjs/step/StepContent.js +12 -10
  276. package/cjs/step/StepContext.d.ts +1 -1
  277. package/cjs/step/StepContext.js +1 -2
  278. package/cjs/step/StepLabel.d.ts +1 -1
  279. package/cjs/step/StepLabel.js +9 -7
  280. package/cjs/stepper/Stepper.d.ts +1 -1
  281. package/cjs/stepper/Stepper.js +12 -10
  282. package/cjs/stepper/StepperContext.d.ts +1 -1
  283. package/cjs/stepper/StepperContext.js +1 -2
  284. package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +10 -7
  285. package/cjs/styles/media.d.ts +1 -1
  286. package/cjs/styles/media.js +2 -4
  287. package/cjs/styles/style-helpers.d.ts +1 -1
  288. package/cjs/styles/theme.d.ts +1 -1
  289. package/cjs/styles/theme.js +2 -4
  290. package/cjs/surface/Surface.d.ts +6 -6
  291. package/cjs/surface/Surface.js +20 -14
  292. package/cjs/tab/Tab.d.ts +3 -3
  293. package/cjs/tab/Tab.js +9 -8
  294. package/cjs/tab/TabPanel.d.ts +2 -2
  295. package/cjs/tab/TabPanel.js +7 -7
  296. package/cjs/tab/Tabs.d.ts +3 -3
  297. package/cjs/tab/Tabs.js +32 -31
  298. package/cjs/tab/TabsContext.d.ts +3 -3
  299. package/cjs/tab/TabsContext.js +7 -8
  300. package/cjs/table/Table.d.ts +2 -2
  301. package/cjs/table/Table.js +15 -15
  302. package/cjs/table/TableBody.d.ts +1 -1
  303. package/cjs/table/TableBody.js +8 -9
  304. package/cjs/table/TableDataCell.d.ts +1 -1
  305. package/cjs/table/TableDataCell.js +9 -10
  306. package/cjs/table/TableHead.d.ts +2 -2
  307. package/cjs/table/TableHead.js +10 -12
  308. package/cjs/table/TableHeaderCell.d.ts +3 -3
  309. package/cjs/table/TableHeaderCell.js +9 -10
  310. package/cjs/table/TableRow.d.ts +1 -1
  311. package/cjs/table/TableRow.js +9 -10
  312. package/cjs/test/Test.js +5 -4
  313. package/cjs/tooltip/Tooltip.d.ts +3 -3
  314. package/cjs/tooltip/Tooltip.js +31 -25
  315. package/cjs/typography/Headlines.d.ts +36 -36
  316. package/cjs/typography/Headlines.js +25 -31
  317. package/cjs/typography/Text.d.ts +2 -2
  318. package/cjs/typography/Text.js +2 -3
  319. package/common/LockBodyScroll.d.ts +2 -2
  320. package/common/LockBodyScroll.js +20 -10
  321. package/common/arrow.d.ts +2 -2
  322. package/common/emotionCloneElement.js +1 -2
  323. package/common/intent.d.ts +1 -1
  324. package/common/polymorphic.d.ts +3 -3
  325. package/common/polymorphic.js +9 -3
  326. package/common/use-media.js +3 -3
  327. package/common/useOnClickOutside.d.ts +2 -2
  328. package/common/useOnClickOutside.js +2 -2
  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 +54 -41
  336. package/divider/Divider.d.ts +2 -2
  337. package/divider/Divider.js +10 -5
  338. package/drawer/Drawer.d.ts +4 -4
  339. package/drawer/Drawer.js +16 -7
  340. package/dropdown-menu/Dropdown.d.ts +3 -3
  341. package/dropdown-menu/Dropdown.js +45 -34
  342. package/dropdown-menu/DropdownContext.d.ts +4 -4
  343. package/dropdown-menu/DropdownContext.js +5 -4
  344. package/dropdown-menu/MenuCheckbox.js +24 -17
  345. package/dropdown-menu/MenuItem.d.ts +2 -2
  346. package/dropdown-menu/MenuItem.js +26 -18
  347. package/dropdown-menu/MenuTitle.js +14 -11
  348. package/elevation/index.d.ts +2 -2
  349. package/flexbox/FlexBox.d.ts +5 -5
  350. package/flexbox/FlexBox.js +2 -2
  351. package/footer/Footer.d.ts +2 -2
  352. package/footer/Footer.js +12 -7
  353. package/forms/assistive-text/AssistiveText.d.ts +3 -3
  354. package/forms/asterisk/Asterisk.js +4 -2
  355. package/forms/checkbox/Checkbox.d.ts +4 -4
  356. package/forms/checkbox/Checkbox.js +49 -39
  357. package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  358. package/forms/checkbox/ExampleControlComponent.js +15 -8
  359. package/forms/email-field/EmailField.d.ts +1 -1
  360. package/forms/email-field/EmailField.js +9 -4
  361. package/forms/error-text/ErrorText.d.ts +3 -3
  362. package/forms/field/Field.d.ts +1 -1
  363. package/forms/field/Field.js +9 -4
  364. package/forms/index.d.ts +3 -3
  365. package/forms/input/Input.d.ts +2 -2
  366. package/forms/input/Input.js +29 -22
  367. package/forms/input/InputComposition.d.ts +11 -11
  368. package/forms/input/InputComposition.js +40 -28
  369. package/forms/label/Label.d.ts +1 -1
  370. package/forms/label/Label.js +12 -4
  371. package/forms/number-field/NumberField.d.ts +1 -1
  372. package/forms/number-field/NumberField.js +10 -5
  373. package/forms/password-field/PasswordField.js +17 -11
  374. package/forms/radio/Radio.d.ts +3 -3
  375. package/forms/radio/Radio.js +29 -22
  376. package/forms/reactselect/ReactSelect.d.ts +12 -12
  377. package/forms/reactselect/ReactSelect.js +71 -63
  378. package/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
  379. package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
  380. package/forms/select/Select.d.ts +3 -3
  381. package/forms/select/Select.js +40 -32
  382. package/forms/select-field/SelectField.d.ts +2 -2
  383. package/forms/select-field/SelectField.js +38 -29
  384. package/forms/switch/Switch.d.ts +2 -2
  385. package/forms/switch/Switch.js +52 -40
  386. package/forms/tel-field/TelField.d.ts +1 -1
  387. package/forms/tel-field/TelField.js +9 -4
  388. package/forms/text-field/TextField.d.ts +3 -3
  389. package/forms/text-field/TextField.js +49 -40
  390. package/global-styles/GlobalStyles.js +3 -3
  391. package/global-styles/ResetStyles.js +2 -2
  392. package/global-styles/sanitize.d.ts +1 -1
  393. package/grid/Column.d.ts +1 -1
  394. package/grid/Column.js +14 -7
  395. package/grid/Container.d.ts +2 -2
  396. package/grid/Container.js +41 -35
  397. package/hero/Hero.d.ts +2 -2
  398. package/hero/Hero.js +42 -20
  399. package/hero/stripes.d.ts +2 -2
  400. package/hero/stripes.js +176 -160
  401. package/ie-banner/IEBanner.d.ts +1 -1
  402. package/ie-banner/IEBanner.js +14 -8
  403. package/index.d.ts +0 -1
  404. package/index.js +0 -1
  405. package/layout/LayoutLegacy.js +2 -2
  406. package/lists/FeatureList.d.ts +7 -7
  407. package/lists/FeatureList.js +21 -11
  408. package/lists/ListAddon.d.ts +1 -1
  409. package/lists/ListAddon.js +13 -6
  410. package/lists/ListDivider.d.ts +1 -1
  411. package/lists/ListDivider.js +10 -5
  412. package/lists/ListIcon.d.ts +2 -2
  413. package/lists/ListIcon.js +10 -5
  414. package/lists/ListItem.d.ts +2 -2
  415. package/lists/ListItem.js +13 -6
  416. package/lists/ListText.d.ts +3 -3
  417. package/lists/ListText.js +10 -5
  418. package/lists/ListTextGroup.d.ts +1 -1
  419. package/lists/ListTextGroup.js +10 -5
  420. package/lists/ListTitle.js +10 -5
  421. package/loader/DfdsLoader.d.ts +1 -1
  422. package/loader/DfdsLoader.js +26 -20
  423. package/loader/Loader.d.ts +1 -1
  424. package/loader/Loader.js +8 -2
  425. package/localization/LocaleFlag.d.ts +1 -1
  426. package/localization/LocaleFlag.js +10 -5
  427. package/localization/locales.d.ts +2 -2
  428. package/logo/Logo.d.ts +1 -1
  429. package/logo/Logo.js +14 -7
  430. package/menu/Menu.d.ts +1 -1
  431. package/menu/Menu.js +30 -17
  432. package/mobile-stepper/MobileStepper.d.ts +1 -1
  433. package/mobile-stepper/MobileStepper.js +26 -18
  434. package/nav-bar/NavBar.d.ts +9 -9
  435. package/nav-bar/NavBar.js +41 -23
  436. package/nav-menu/NavMenuItem.d.ts +1 -1
  437. package/nav-menu/NavMenuItem.js +12 -10
  438. package/package.json +16 -19
  439. package/pagination/Pagination.d.ts +2 -2
  440. package/pagination/Pagination.js +53 -35
  441. package/pagination/Pagination.styles.d.ts +6 -6
  442. package/popper/Popper.d.ts +3 -3
  443. package/popper/Popper.js +27 -17
  444. package/progress-bar/ProgressBar.d.ts +1 -1
  445. package/progress-bar/ProgressBar.js +2 -2
  446. package/schedule/ScheduleItem.d.ts +8 -8
  447. package/schedule/ScheduleItem.js +9 -4
  448. package/schedule/ScheduleList.d.ts +3 -3
  449. package/schedule/ScheduleList.js +16 -10
  450. package/side-sheet/SideSheet.d.ts +4 -4
  451. package/side-sheet/SideSheet.js +47 -34
  452. package/side-sheet/SideSheetCloseButton.d.ts +1 -1
  453. package/side-sheet/SideSheetCloseButton.js +10 -5
  454. package/side-sheet/SideSheetContent.d.ts +1 -1
  455. package/side-sheet/SideSheetContent.js +17 -8
  456. package/side-sheet/SideSheetFooter.d.ts +1 -1
  457. package/side-sheet/SideSheetFooter.js +17 -8
  458. package/side-sheet/SideSheetHeader.d.ts +1 -1
  459. package/side-sheet/SideSheetHeader.js +17 -8
  460. package/side-sheet/SideSheetHeadline.d.ts +1 -1
  461. package/side-sheet/SideSheetHeadline.js +5 -4
  462. package/site-layout/SiteLayout.d.ts +11 -11
  463. package/site-layout/SiteLayout.js +31 -12
  464. package/skeleton/Skeleton.d.ts +1 -1
  465. package/skeleton/Skeleton.js +10 -5
  466. package/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  467. package/social-media-link-list/SocialMediaLinkList.js +69 -55
  468. package/spinner/Spinner.d.ts +7 -7
  469. package/spinner/Spinner.js +17 -10
  470. package/step/Step.d.ts +1 -1
  471. package/step/Step.js +34 -20
  472. package/step/Step.styles.d.ts +4 -4
  473. package/step/StepButton.d.ts +2 -2
  474. package/step/StepButton.js +27 -19
  475. package/step/StepContent.d.ts +1 -1
  476. package/step/StepContent.js +11 -9
  477. package/step/StepContext.d.ts +1 -1
  478. package/step/StepLabel.d.ts +1 -1
  479. package/step/StepLabel.js +8 -6
  480. package/stepper/Stepper.d.ts +1 -1
  481. package/stepper/Stepper.js +13 -11
  482. package/stepper/StepperContext.d.ts +1 -1
  483. package/stepper-feedback-message/StepperFeedbackMessage.js +9 -6
  484. package/styles/media.d.ts +1 -1
  485. package/styles/style-helpers.d.ts +1 -1
  486. package/styles/theme.d.ts +1 -1
  487. package/surface/Surface.d.ts +6 -6
  488. package/surface/Surface.js +17 -14
  489. package/tab/Tab.d.ts +3 -3
  490. package/tab/Tab.js +18 -11
  491. package/tab/TabPanel.d.ts +2 -2
  492. package/tab/TabPanel.js +6 -5
  493. package/tab/Tabs.d.ts +3 -3
  494. package/tab/Tabs.js +46 -39
  495. package/tab/TabsContext.d.ts +3 -3
  496. package/tab/TabsContext.js +5 -4
  497. package/table/Table.d.ts +2 -2
  498. package/table/Table.js +20 -13
  499. package/table/TableBody.d.ts +1 -1
  500. package/table/TableBody.js +13 -7
  501. package/table/TableDataCell.d.ts +1 -1
  502. package/table/TableDataCell.js +14 -8
  503. package/table/TableHead.d.ts +2 -2
  504. package/table/TableHead.js +10 -8
  505. package/table/TableHeaderCell.d.ts +3 -3
  506. package/table/TableHeaderCell.js +14 -8
  507. package/table/TableRow.d.ts +1 -1
  508. package/table/TableRow.js +11 -10
  509. package/test/Test.js +4 -2
  510. package/tooltip/Tooltip.d.ts +3 -3
  511. package/tooltip/Tooltip.js +34 -24
  512. package/typography/Headlines.d.ts +36 -36
  513. package/typography/Headlines.js +24 -17
  514. package/typography/Text.d.ts +2 -2
  515. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
  516. package/cjs/date-range-picker/DatePickerDefaultStyles.js +0 -19
  517. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
  518. package/cjs/date-range-picker/DatePickerDfdsStyles.js +0 -11
  519. package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
  520. package/cjs/date-range-picker/DateRangePicker.js +0 -263
  521. package/cjs/date-range-picker/index.d.ts +0 -1
  522. package/cjs/date-range-picker/index.js +0 -13
  523. package/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
  524. package/date-range-picker/DatePickerDefaultStyles.js +0 -12
  525. package/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
  526. package/date-range-picker/DatePickerDfdsStyles.js +0 -4
  527. package/date-range-picker/DateRangePicker.d.ts +0 -33
  528. package/date-range-picker/DateRangePicker.js +0 -310
  529. package/date-range-picker/index.d.ts +0 -1
  530. package/date-range-picker/index.js +0 -1
@@ -1,14 +1,19 @@
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 = ["variant", "disableAnimation"];
2
3
  var _templateObject;
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 _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; }
5
- 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; }
4
+ 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; }
5
+ 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; }
6
+ 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; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ 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); }
9
+ 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; }
10
+ 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; }
6
11
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
7
12
  import { theme } from '@dfds-ui/theme';
8
13
  import { keyframes } from '@emotion/react';
9
14
  import { css } from '@emotion/react';
10
15
  import React from 'react';
11
- import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
12
17
  var Pulse = function Pulse() {
13
18
  return keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% { background-color: rgba(77, 78, 76, 0.16); }\n 50% { background-color: rgba(255,255,255, 0.32); }\n 100% { background-color: rgba(77, 78, 76, 0.16); }\n"])));
14
19
  };
@@ -26,7 +31,7 @@ export var Skeleton = function Skeleton(_ref2) {
26
31
  var variant = _ref2.variant,
27
32
  disableAnimation = _ref2.disableAnimation,
28
33
  rest = _objectWithoutProperties(_ref2, _excluded);
29
- return ___EmotionJSX("div", _extends({
34
+ return _jsx("div", _objectSpread({
30
35
  css: skeletonStyles({
31
36
  variant: variant,
32
37
  disableAnimation: disableAnimation
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SocialMediaLinkListProps = {
2
+ export type SocialMediaLinkListProps = {
3
3
  instagramLink?: string;
4
4
  facebookLink?: string;
5
5
  blogLink?: string;
@@ -12,13 +12,13 @@ export declare type SocialMediaLinkListProps = {
12
12
  colorOverwrite?: string;
13
13
  };
14
14
  export declare const SoMeWrapper: import("@emotion/styled").StyledComponent<{
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
17
- } & import("../flexbox/FlexBox").FlexBoxProps & {
18
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType;
17
+ } & import("../flexbox").FlexBoxProps & {
18
+ as?: React.ElementType;
19
19
  } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
20
- theme?: import("@emotion/react").Theme | undefined;
20
+ theme?: import("@emotion/react").Theme;
21
21
  } & SocialMediaLinkListProps, {}, {}>;
22
- declare type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
22
+ type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
23
23
  export declare const SocialMediaLinkList: socialMediaLinkListComponent;
24
24
  export default SocialMediaLinkList;
@@ -1,12 +1,17 @@
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
  import _styled from "@emotion/styled/base";
2
3
  var _excluded = ["instagramLink", "facebookLink", "blogLink", "twitterLink", "linkedinLink", "youtubeLink", "mailshareLink", "iconSize", "noPadding", "colorOverwrite"];
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 _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; }
5
- 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; }
4
+ 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; }
5
+ 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; }
6
+ 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; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ 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); }
9
+ 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; }
10
+ 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; }
6
11
  import React from 'react';
7
12
  import FlexBox from '../flexbox/FlexBox';
8
13
  import { Blog, Facebook, Instagram, LinkedIn, MailShare, Twitter, Youtube } from '@dfds-ui/icons';
9
- import { jsx as ___EmotionJSX } from "@emotion/react";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
10
15
  export var SoMeWrapper = /*#__PURE__*/_styled(FlexBox, process.env.NODE_ENV === "production" ? {
11
16
  target: "e1vhyn6d0"
12
17
  } : {
@@ -37,60 +42,69 @@ export var SocialMediaLinkList = function SocialMediaLinkList(_ref5) {
37
42
  noPadding = _ref5.noPadding,
38
43
  colorOverwrite = _ref5.colorOverwrite,
39
44
  rest = _objectWithoutProperties(_ref5, _excluded);
40
- return ___EmotionJSX(SoMeWrapper, _extends({
45
+ return _jsxs(SoMeWrapper, _objectSpread(_objectSpread({
41
46
  colorOverwrite: colorOverwrite,
42
47
  noPadding: noPadding,
43
48
  wrapWrap: true,
44
49
  iconSize: iconSize
45
- }, rest), facebookLink && ___EmotionJSX("a", {
46
- href: facebookLink,
47
- target: "_blank",
48
- rel: "noopener noreferrer"
49
- }, ___EmotionJSX(Facebook, {
50
- height: iconSize,
51
- width: iconSize
52
- })), blogLink && ___EmotionJSX("a", {
53
- href: blogLink,
54
- target: "_blank",
55
- rel: "noopener noreferrer"
56
- }, ___EmotionJSX(Blog, {
57
- height: iconSize,
58
- width: iconSize
59
- })), instagramLink && ___EmotionJSX("a", {
60
- href: instagramLink,
61
- target: "_blank",
62
- rel: "noopener noreferrer"
63
- }, ___EmotionJSX(Instagram, {
64
- height: iconSize,
65
- width: iconSize
66
- })), linkedinLink && ___EmotionJSX("a", {
67
- href: linkedinLink,
68
- target: "_blank",
69
- rel: "noopener noreferrer"
70
- }, ___EmotionJSX(LinkedIn, {
71
- height: iconSize,
72
- width: iconSize
73
- })), twitterLink && ___EmotionJSX("a", {
74
- href: twitterLink,
75
- target: "_blank",
76
- rel: "noopener noreferrer"
77
- }, ___EmotionJSX(Twitter, {
78
- height: iconSize,
79
- width: iconSize
80
- })), youtubeLink && ___EmotionJSX("a", {
81
- href: youtubeLink,
82
- target: "_blank",
83
- rel: "noopener noreferrer"
84
- }, ___EmotionJSX(Youtube, {
85
- height: iconSize,
86
- width: iconSize
87
- })), mailshareLink && ___EmotionJSX("a", {
88
- href: mailshareLink,
89
- target: "_blank",
90
- rel: "noopener noreferrer"
91
- }, ___EmotionJSX(MailShare, {
92
- height: iconSize,
93
- width: iconSize
94
- })));
50
+ }, rest), {}, {
51
+ children: [facebookLink && _jsx("a", {
52
+ href: facebookLink,
53
+ target: "_blank",
54
+ rel: "noopener noreferrer",
55
+ children: _jsx(Facebook, {
56
+ height: iconSize,
57
+ width: iconSize
58
+ })
59
+ }), blogLink && _jsx("a", {
60
+ href: blogLink,
61
+ target: "_blank",
62
+ rel: "noopener noreferrer",
63
+ children: _jsx(Blog, {
64
+ height: iconSize,
65
+ width: iconSize
66
+ })
67
+ }), instagramLink && _jsx("a", {
68
+ href: instagramLink,
69
+ target: "_blank",
70
+ rel: "noopener noreferrer",
71
+ children: _jsx(Instagram, {
72
+ height: iconSize,
73
+ width: iconSize
74
+ })
75
+ }), linkedinLink && _jsx("a", {
76
+ href: linkedinLink,
77
+ target: "_blank",
78
+ rel: "noopener noreferrer",
79
+ children: _jsx(LinkedIn, {
80
+ height: iconSize,
81
+ width: iconSize
82
+ })
83
+ }), twitterLink && _jsx("a", {
84
+ href: twitterLink,
85
+ target: "_blank",
86
+ rel: "noopener noreferrer",
87
+ children: _jsx(Twitter, {
88
+ height: iconSize,
89
+ width: iconSize
90
+ })
91
+ }), youtubeLink && _jsx("a", {
92
+ href: youtubeLink,
93
+ target: "_blank",
94
+ rel: "noopener noreferrer",
95
+ children: _jsx(Youtube, {
96
+ height: iconSize,
97
+ width: iconSize
98
+ })
99
+ }), mailshareLink && _jsx("a", {
100
+ href: mailshareLink,
101
+ target: "_blank",
102
+ rel: "noopener noreferrer",
103
+ children: _jsx(MailShare, {
104
+ height: iconSize,
105
+ width: iconSize
106
+ })
107
+ })]
108
+ }));
95
109
  };
96
110
  export default SocialMediaLinkList;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PolymorphicComponentProps } from '../common/polymorphic';
3
- declare type Color = 'dark' | 'secondary' | 'light';
4
- export declare type SpinnerProps = {
3
+ type Color = 'dark' | 'secondary' | 'light';
4
+ export type SpinnerProps = {
5
5
  /**
6
6
  * Indicates that Spinner will show up instantaneously (instead of fading in).
7
7
  *
@@ -37,22 +37,22 @@ export declare const CenteredSpinner: import("@emotion/styled").StyledComponent<
37
37
  * Indicates that Spinner will show up instantaneously (instead of fading in).
38
38
  *
39
39
  */
40
- instant?: boolean | undefined;
40
+ instant?: boolean;
41
41
  /**
42
42
  * Specifies the size of the Spinner.
43
43
  *
44
44
  * @deprecated Use css instead.
45
45
  */
46
- size?: string | undefined;
46
+ size?: string;
47
47
  /**
48
48
  * Class name to be assigned to component.
49
49
  */
50
- className?: string | undefined;
50
+ className?: string;
51
51
  /**
52
52
  * Set the color variant to use.
53
53
  */
54
- color?: Color | undefined;
54
+ color?: Color;
55
55
  } & PolymorphicComponentProps & {
56
- theme?: import("@emotion/react").Theme | undefined;
56
+ theme?: import("@emotion/react").Theme;
57
57
  }, {}, {}>;
58
58
  export default Spinner;
@@ -1,16 +1,21 @@
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
  import _styled from "@emotion/styled/base";
2
3
  var _excluded = ["instant", "size", "className", "color", "as"];
3
4
  var _templateObject, _templateObject2;
4
- 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); }
5
- 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; }
6
- 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
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _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; }
7
+ 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; }
8
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
+ 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); }
10
+ 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; }
11
+ 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; }
7
12
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
8
13
  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)."; }
9
14
  import React from 'react';
10
15
  import { keyframes, css } from '@emotion/react';
11
16
  import { SvgAnimatedSpinner } from '@dfds-ui/icons';
12
17
  import { theme } from '@dfds-ui/theme';
13
- import { jsx as ___EmotionJSX } from "@emotion/react";
18
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
14
19
  var paths = 8;
15
20
  var duration = 0.8;
16
21
  var delay = duration / paths;
@@ -54,14 +59,16 @@ export function Spinner(_ref) {
54
59
  var Svg = instant ? InstantSpinner : FadedSpinner;
55
60
  var colorPicker = color == 'dark' ? theme.colors.primary.main : color == 'light' ? theme.colors.surface.primary : theme.colors.secondary.main;
56
61
  var Component = as;
57
- return ___EmotionJSX(Component, _extends({
62
+ return _jsx(Component, _objectSpread(_objectSpread({
58
63
  className: className,
59
64
  css: /*#__PURE__*/css("color:", colorPicker, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:Spinner;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zcGlubmVyL1NwaW5uZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtHYyIsImZpbGUiOiIuLi8uLi9zcmMvc3Bpbm5lci9TcGlubmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsga2V5ZnJhbWVzLCBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IFN2Z0FuaW1hdGVkU3Bpbm5lciB9IGZyb20gJ0BkZmRzLXVpL2ljb25zJ1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydC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ZmF1bHQgU3Bpbm5lclxuIl19 */")
60
- }, rest), ___EmotionJSX(Svg, {
61
- width: 32,
62
- height: 32,
63
- viewBox: "0 0 32 32",
64
- size: size
65
+ }, rest), {}, {
66
+ children: _jsx(Svg, {
67
+ width: 32,
68
+ height: 32,
69
+ viewBox: "0 0 32 32",
70
+ size: size
71
+ })
65
72
  }));
66
73
  }
67
74
  Spinner.displayName = 'Spinner';
package/step/Step.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type StepProps = {
2
+ export type StepProps = {
3
3
  /**
4
4
  * The position of the step
5
5
  */
package/step/Step.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 = ["index", "label", "active", "completed", "disabled", "children", "hasError", "optionalStepText", "isEditing", "handleStepClick"];
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
  import React, { memo, useContext } from 'react';
6
11
  import StepLabel from './StepLabel';
7
12
  import StepButton from './StepButton';
@@ -10,7 +15,7 @@ import StepContext from './StepContext';
10
15
  import StepperContext from '../stepper/StepperContext';
11
16
  import { stepWrapperHorizontalStyles, stepWrapperVerticalStyles, stepContentStyles, stepHeaderStyles } from './Step.styles';
12
17
  import { StepperFeedbackMessage } from '../stepper-feedback-message';
13
- import { jsx as ___EmotionJSX } from "@emotion/react";
18
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
14
19
  var Step = function Step(_ref) {
15
20
  var index = _ref.index,
16
21
  _ref$label = _ref.label,
@@ -48,21 +53,30 @@ var Step = function Step(_ref) {
48
53
  };
49
54
  }, [index, active, completed, disabled, hasError, isEditing]);
50
55
  var displayFeedbackCondition = orientation === 'vertical' && stepFeedbackMessage && activeStep === index;
51
- return ___EmotionJSX(StepContext.Provider, {
52
- value: contextValue
53
- }, ___EmotionJSX("div", _extends({
54
- css: orientation === 'horizontal' ? stepWrapperHorizontalStyles : stepWrapperVerticalStyles
55
- }, props, {
56
- "data-testid": "step"
57
- }), ___EmotionJSX("div", {
58
- css: stepHeaderStyles,
59
- onClick: handleStepClick
60
- }, displayFeedbackCondition ? ___EmotionJSX(StepperFeedbackMessage, {
61
- message: stepFeedbackMessage
62
- }) : ___EmotionJSX(React.Fragment, null, ___EmotionJSX(StepButton, props), label ? ___EmotionJSX(StepLabel, {
63
- optionalStepText: optionalStepText
64
- }, label) : null)), orientation === 'vertical' ? ___EmotionJSX("div", {
65
- css: stepContentStyles
66
- }, ___EmotionJSX(StepContent, null, children)) : null));
56
+ return _jsx(StepContext.Provider, {
57
+ value: contextValue,
58
+ children: _jsxs("div", _objectSpread(_objectSpread({
59
+ css: orientation === 'horizontal' ? stepWrapperHorizontalStyles : stepWrapperVerticalStyles
60
+ }, props), {}, {
61
+ "data-testid": "step",
62
+ children: [_jsx("div", {
63
+ css: stepHeaderStyles,
64
+ onClick: handleStepClick,
65
+ children: displayFeedbackCondition ? _jsx(StepperFeedbackMessage, {
66
+ message: stepFeedbackMessage
67
+ }) : _jsxs(_Fragment, {
68
+ children: [_jsx(StepButton, _objectSpread({}, props)), label ? _jsx(StepLabel, {
69
+ optionalStepText: optionalStepText,
70
+ children: label
71
+ }) : null]
72
+ })
73
+ }), orientation === 'vertical' ? _jsx("div", {
74
+ css: stepContentStyles,
75
+ children: _jsx(StepContent, {
76
+ children: children
77
+ })
78
+ }) : null]
79
+ }))
80
+ });
67
81
  };
68
82
  export default /*#__PURE__*/memo(Step);
@@ -1,4 +1,4 @@
1
- export declare const stepWrapperHorizontalStyles: import("@emotion/react").SerializedStyles;
2
- export declare const stepWrapperVerticalStyles: import("@emotion/react").SerializedStyles;
3
- export declare const stepHeaderStyles: import("@emotion/react").SerializedStyles;
4
- export declare const stepContentStyles: import("@emotion/react").SerializedStyles;
1
+ export declare const stepWrapperHorizontalStyles: import("@emotion/utils").SerializedStyles;
2
+ export declare const stepWrapperVerticalStyles: import("@emotion/utils").SerializedStyles;
3
+ export declare const stepHeaderStyles: import("@emotion/utils").SerializedStyles;
4
+ export declare const stepContentStyles: import("@emotion/utils").SerializedStyles;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type StepButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
3
- declare const StepButton: React.FC<StepButtonProps>;
2
+ type StepButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
3
+ declare const StepButton: ({ ...rest }: StepButtonProps) => React.JSX.Element;
4
4
  export default StepButton;