@dfds-ui/react-components 2.2.0-alpha.8d87a90d → 2.2.0-alpha.e74a6756

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 (458) hide show
  1. package/accordion/Accordion.d.ts +2 -2
  2. package/accordion/AccordionContent.d.ts +1 -1
  3. package/accordion/AccordionSmall.d.ts +2 -2
  4. package/app-bar/AppBar.d.ts +1 -1
  5. package/app-bar/AppBarContext.d.ts +1 -1
  6. package/app-bar/AppBarIconButton.d.ts +1 -1
  7. package/app-bar/AppBarItem.d.ts +2 -2
  8. package/assertions/banner/Banner.d.ts +3 -3
  9. package/assertions/banner/BannerAction.d.ts +1 -1
  10. package/assertions/toast/Toast.d.ts +1 -1
  11. package/assertions/toast/Toaster.d.ts +2 -2
  12. package/badge/Badge.d.ts +1 -1
  13. package/button/BadgeIcon.d.ts +1 -1
  14. package/button/BaseButton.d.ts +3 -3
  15. package/button/Button.d.ts +3 -3
  16. package/button/IconButton.d.ts +2 -2
  17. package/button/LinkButton.d.ts +1 -1
  18. package/button-stack/ButtonStack.d.ts +3 -3
  19. package/card/Card.d.ts +2 -2
  20. package/card/CardContent.d.ts +1 -1
  21. package/card/CardMedia.d.ts +2 -2
  22. package/card/CardPriceTag.d.ts +1 -1
  23. package/card/CardTitle.d.ts +1 -1
  24. package/chip/Chip.d.ts +2 -2
  25. package/cjs/accordion/Accordion.d.ts +101 -0
  26. package/cjs/accordion/Accordion.js +20 -24
  27. package/cjs/accordion/AccordionContent.d.ts +13 -0
  28. package/cjs/accordion/AccordionContent.js +6 -8
  29. package/cjs/accordion/AccordionSmall.d.ts +55 -0
  30. package/cjs/accordion/AccordionSmall.js +11 -14
  31. package/cjs/accordion/index.d.ts +3 -0
  32. package/cjs/accordion/index.js +3 -3
  33. package/cjs/app-bar/AppBar.d.ts +13 -0
  34. package/cjs/app-bar/AppBar.js +42 -63
  35. package/cjs/app-bar/AppBarContext.d.ts +12 -0
  36. package/cjs/app-bar/AppBarContext.js +3 -15
  37. package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
  38. package/cjs/app-bar/AppBarDrawer.js +9 -10
  39. package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
  40. package/cjs/app-bar/AppBarIconButton.js +6 -9
  41. package/cjs/app-bar/AppBarItem.d.ts +23 -0
  42. package/cjs/app-bar/AppBarItem.js +17 -31
  43. package/cjs/app-bar/AppBarListItem.d.ts +16 -0
  44. package/cjs/app-bar/index.d.ts +7 -0
  45. package/cjs/app-bar/index.js +8 -8
  46. package/cjs/assertions/banner/Banner.d.ts +74 -0
  47. package/cjs/assertions/banner/Banner.js +23 -43
  48. package/cjs/assertions/banner/BannerAction.d.ts +19 -0
  49. package/cjs/assertions/banner/BannerAction.js +7 -9
  50. package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
  51. package/cjs/assertions/banner/index.d.ts +3 -0
  52. package/cjs/assertions/banner/index.js +3 -3
  53. package/cjs/assertions/index.d.ts +2 -0
  54. package/cjs/assertions/index.js +2 -2
  55. package/cjs/assertions/toast/Toast.d.ts +12 -0
  56. package/cjs/assertions/toast/Toast.js +9 -13
  57. package/cjs/assertions/toast/Toaster.d.ts +19 -0
  58. package/cjs/assertions/toast/Toaster.js +20 -39
  59. package/cjs/assertions/toast/index.d.ts +2 -0
  60. package/cjs/assertions/toast/index.js +4 -4
  61. package/cjs/badge/Badge.d.ts +26 -0
  62. package/cjs/badge/Badge.js +9 -14
  63. package/cjs/badge/index.d.ts +2 -0
  64. package/cjs/badge/index.js +3 -3
  65. package/cjs/button/BadgeIcon.d.ts +7 -0
  66. package/cjs/button/BaseButton.d.ts +14 -0
  67. package/cjs/button/Button.d.ts +19 -0
  68. package/cjs/button/Button.js +13 -20
  69. package/cjs/button/IconButton.d.ts +75 -0
  70. package/cjs/button/IconButton.js +19 -27
  71. package/cjs/button/LinkButton.d.ts +8 -0
  72. package/cjs/button/LinkButton.js +1 -1
  73. package/cjs/button/button-style.d.ts +7 -0
  74. package/cjs/button/index.d.ts +7 -0
  75. package/cjs/button/index.js +8 -8
  76. package/cjs/button-stack/ButtonStack.d.ts +11 -0
  77. package/cjs/button-stack/ButtonStack.js +8 -12
  78. package/cjs/button-stack/index.d.ts +1 -0
  79. package/cjs/button-stack/index.js +1 -1
  80. package/cjs/card/Card.d.ts +18 -0
  81. package/cjs/card/Card.js +21 -37
  82. package/cjs/card/CardActions.d.ts +4 -0
  83. package/cjs/card/CardActions.js +6 -10
  84. package/cjs/card/CardContent.d.ts +13 -0
  85. package/cjs/card/CardContent.js +10 -14
  86. package/cjs/card/CardMedia.d.ts +18 -0
  87. package/cjs/card/CardMedia.js +6 -9
  88. package/cjs/card/CardPriceTag.d.ts +25 -0
  89. package/cjs/card/CardPriceTag.js +7 -11
  90. package/cjs/card/CardTitle.d.ts +18 -0
  91. package/cjs/card/CardTitle.js +9 -11
  92. package/cjs/card/index.d.ts +6 -0
  93. package/cjs/card/index.js +6 -6
  94. package/cjs/chip/Chip.d.ts +19 -0
  95. package/cjs/chip/Chip.js +13 -28
  96. package/cjs/chip/index.d.ts +2 -0
  97. package/cjs/chip/index.js +3 -3
  98. package/cjs/common/LockBodyScroll.d.ts +25 -0
  99. package/cjs/common/LockBodyScroll.js +5 -8
  100. package/cjs/common/arrow.d.ts +6 -0
  101. package/cjs/common/emotionCloneElement.d.ts +3 -0
  102. package/cjs/common/emotionCloneElement.js +5 -8
  103. package/cjs/common/intent.d.ts +3 -0
  104. package/cjs/common/miniMoize.d.ts +1 -0
  105. package/cjs/common/polymorphic.d.ts +25 -0
  106. package/cjs/common/polymorphic.js +3 -3
  107. package/cjs/common/use-media.d.ts +1 -0
  108. package/cjs/common/use-media.js +1 -10
  109. package/cjs/common/useOnClickOutside.d.ts +4 -0
  110. package/cjs/common/utils.d.ts +3 -0
  111. package/cjs/counter/Counter.d.ts +26 -0
  112. package/cjs/counter/Counter.js +4 -14
  113. package/cjs/counter/PluralCounter.d.ts +13 -0
  114. package/cjs/counter/PluralCounter.js +10 -22
  115. package/cjs/counter/index.d.ts +2 -0
  116. package/cjs/counter/index.js +2 -2
  117. package/cjs/data-table/DataTable.d.ts +10 -0
  118. package/cjs/data-table/DataTable.js +16 -27
  119. package/cjs/data-table/index.d.ts +1 -0
  120. package/cjs/data-table/index.js +1 -1
  121. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
  122. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
  123. package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
  124. package/cjs/date-range-picker/DateRangePicker.js +28 -55
  125. package/cjs/date-range-picker/index.d.ts +1 -0
  126. package/cjs/date-range-picker/index.js +1 -1
  127. package/cjs/divider/Divider.d.ts +26 -0
  128. package/cjs/divider/Divider.js +9 -9
  129. package/cjs/divider/index.d.ts +1 -0
  130. package/cjs/divider/index.js +1 -1
  131. package/cjs/drawer/Drawer.d.ts +31 -0
  132. package/cjs/drawer/Drawer.js +9 -15
  133. package/cjs/drawer/index.d.ts +1 -0
  134. package/cjs/drawer/index.js +1 -1
  135. package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
  136. package/cjs/dropdown-menu/Dropdown.js +18 -32
  137. package/cjs/dropdown-menu/DropdownContext.d.ts +13 -0
  138. package/cjs/dropdown-menu/DropdownContext.js +1 -1
  139. package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
  140. package/cjs/dropdown-menu/MenuCheckbox.js +3 -2
  141. package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
  142. package/cjs/dropdown-menu/MenuItem.js +18 -30
  143. package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
  144. package/cjs/dropdown-menu/MenuTitle.js +3 -2
  145. package/cjs/dropdown-menu/index.d.ts +5 -0
  146. package/cjs/dropdown-menu/index.js +6 -6
  147. package/cjs/elevation/index.d.ts +3 -0
  148. package/cjs/flexbox/FlexBox.d.ts +100 -0
  149. package/cjs/flexbox/FlexBox.js +3 -11
  150. package/cjs/flexbox/index.d.ts +1 -0
  151. package/cjs/flexbox/index.js +1 -1
  152. package/cjs/footer/Footer.d.ts +7 -0
  153. package/cjs/footer/index.d.ts +1 -0
  154. package/cjs/footer/index.js +1 -1
  155. package/cjs/forms/assistive-text/AssistiveText.d.ts +8 -0
  156. package/cjs/forms/asterisk/Asterisk.d.ts +3 -0
  157. package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
  158. package/cjs/forms/checkbox/Checkbox.js +14 -19
  159. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
  160. package/cjs/forms/checkbox/ExampleControlComponent.js +6 -17
  161. package/cjs/forms/checkbox/index.d.ts +1 -0
  162. package/cjs/forms/checkbox/index.js +1 -1
  163. package/cjs/forms/email-field/EmailField.d.ts +6 -0
  164. package/cjs/forms/error-text/ErrorText.d.ts +8 -0
  165. package/cjs/forms/field/Field.d.ts +10 -0
  166. package/cjs/forms/index.d.ts +21 -0
  167. package/cjs/forms/index.js +18 -18
  168. package/cjs/forms/input/Input.d.ts +19 -0
  169. package/cjs/forms/input/Input.js +13 -15
  170. package/cjs/forms/input/InputComposition.d.ts +43 -0
  171. package/cjs/forms/input/InputComposition.js +23 -27
  172. package/cjs/forms/label/Label.d.ts +10 -0
  173. package/cjs/forms/label/Label.js +6 -8
  174. package/cjs/forms/number-field/NumberField.d.ts +6 -0
  175. package/cjs/forms/password-field/PasswordField.d.ts +4 -0
  176. package/cjs/forms/password-field/PasswordField.js +2 -11
  177. package/cjs/forms/radio/Radio.d.ts +35 -0
  178. package/cjs/forms/radio/Radio.js +27 -32
  179. package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
  180. package/cjs/forms/reactselect/ReactSelect.js +40 -48
  181. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
  182. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +29 -33
  183. package/cjs/forms/select/Select.d.ts +16 -0
  184. package/cjs/forms/select/Select.js +10 -12
  185. package/cjs/forms/select-field/SelectField.d.ts +17 -0
  186. package/cjs/forms/select-field/SelectField.js +13 -14
  187. package/cjs/forms/switch/Switch.d.ts +13 -0
  188. package/cjs/forms/switch/Switch.js +11 -15
  189. package/cjs/forms/tel-field/TelField.d.ts +6 -0
  190. package/cjs/forms/text-field/TextField.d.ts +26 -0
  191. package/cjs/forms/text-field/TextField.js +16 -17
  192. package/cjs/global-styles/GlobalStyles.d.ts +3 -0
  193. package/cjs/global-styles/ResetStyles.d.ts +9 -0
  194. package/cjs/global-styles/sanitize.d.ts +1 -0
  195. package/cjs/grid/Column.d.ts +10 -0
  196. package/cjs/grid/Column.js +8 -10
  197. package/cjs/grid/Container.d.ts +15 -0
  198. package/cjs/grid/Container.js +9 -11
  199. package/cjs/grid/index.d.ts +2 -0
  200. package/cjs/grid/index.js +2 -2
  201. package/cjs/hero/Hero.d.ts +10 -0
  202. package/cjs/hero/index.d.ts +1 -0
  203. package/cjs/hero/index.js +1 -1
  204. package/cjs/hero/stripes.d.ts +6 -0
  205. package/cjs/ie-banner/IEBanner.d.ts +11 -0
  206. package/cjs/ie-banner/IEBanner.js +4 -19
  207. package/cjs/ie-banner/index.d.ts +1 -0
  208. package/cjs/ie-banner/index.js +1 -1
  209. package/cjs/index.d.ts +44 -0
  210. package/cjs/index.js +45 -45
  211. package/cjs/layout/LayoutLegacy.d.ts +2 -0
  212. package/cjs/lists/FeatureList.d.ts +24 -0
  213. package/cjs/lists/FeatureList.js +7 -10
  214. package/cjs/lists/ListAddon.d.ts +11 -0
  215. package/cjs/lists/ListAddon.js +6 -9
  216. package/cjs/lists/ListDivider.d.ts +5 -0
  217. package/cjs/lists/ListDivider.js +6 -9
  218. package/cjs/lists/ListIcon.d.ts +18 -0
  219. package/cjs/lists/ListIcon.js +12 -15
  220. package/cjs/lists/ListItem.d.ts +46 -0
  221. package/cjs/lists/ListItem.js +15 -24
  222. package/cjs/lists/ListText.d.ts +39 -0
  223. package/cjs/lists/ListText.js +8 -11
  224. package/cjs/lists/ListTextGroup.d.ts +15 -0
  225. package/cjs/lists/ListTextGroup.js +9 -13
  226. package/cjs/lists/ListTitle.d.ts +4 -0
  227. package/cjs/lists/ListTitle.js +4 -7
  228. package/cjs/lists/index.d.ts +8 -0
  229. package/cjs/lists/index.js +8 -8
  230. package/cjs/loader/DfdsLoader.d.ts +9 -0
  231. package/cjs/loader/DfdsLoader.js +2 -2
  232. package/cjs/loader/Loader.d.ts +6 -0
  233. package/cjs/loader/index.d.ts +2 -0
  234. package/cjs/loader/index.js +2 -2
  235. package/cjs/localization/LocaleFlag.d.ts +13 -0
  236. package/cjs/localization/LocaleFlag.js +8 -12
  237. package/cjs/localization/index.d.ts +2 -0
  238. package/cjs/localization/index.js +2 -2
  239. package/cjs/localization/locales.d.ts +35 -0
  240. package/cjs/logo/Logo.d.ts +11 -0
  241. package/cjs/logo/Logo.js +5 -7
  242. package/cjs/logo/index.d.ts +1 -0
  243. package/cjs/logo/index.js +1 -1
  244. package/cjs/media/index.d.ts +2 -0
  245. package/cjs/menu/Menu.d.ts +7 -0
  246. package/cjs/menu/Menu.js +18 -20
  247. package/cjs/menu/index.d.ts +2 -0
  248. package/cjs/menu/index.js +3 -3
  249. package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
  250. package/cjs/mobile-stepper/MobileStepper.js +8 -12
  251. package/cjs/mobile-stepper/index.d.ts +1 -0
  252. package/cjs/mobile-stepper/index.js +1 -1
  253. package/cjs/nav-bar/NavBar.d.ts +35 -0
  254. package/cjs/nav-bar/NavBar.js +24 -36
  255. package/cjs/nav-bar/index.d.ts +2 -0
  256. package/cjs/nav-bar/index.js +3 -3
  257. package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
  258. package/cjs/nav-menu/index.d.ts +1 -0
  259. package/cjs/nav-menu/index.js +1 -1
  260. package/cjs/pagination/Pagination.d.ts +44 -0
  261. package/cjs/pagination/Pagination.js +7 -6
  262. package/cjs/pagination/Pagination.styles.d.ts +6 -0
  263. package/cjs/pagination/index.d.ts +1 -0
  264. package/cjs/pagination/index.js +1 -1
  265. package/cjs/popper/Popper.d.ts +29 -0
  266. package/cjs/popper/Popper.js +21 -25
  267. package/cjs/popper/index.d.ts +1 -0
  268. package/cjs/popper/index.js +1 -1
  269. package/cjs/progress-bar/ProgressBar.d.ts +8 -0
  270. package/cjs/progress-bar/index.d.ts +2 -0
  271. package/cjs/progress-bar/index.js +3 -3
  272. package/cjs/schedule/ScheduleItem.d.ts +21 -0
  273. package/cjs/schedule/ScheduleList.d.ts +11 -0
  274. package/cjs/schedule/ScheduleList.js +4 -6
  275. package/cjs/schedule/index.d.ts +2 -0
  276. package/cjs/schedule/index.js +2 -2
  277. package/cjs/side-sheet/SideSheet.d.ts +57 -0
  278. package/cjs/side-sheet/SideSheet.js +29 -45
  279. package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
  280. package/cjs/side-sheet/SideSheetCloseButton.js +8 -13
  281. package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
  282. package/cjs/side-sheet/SideSheetContent.js +6 -8
  283. package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
  284. package/cjs/side-sheet/SideSheetFooter.js +6 -8
  285. package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
  286. package/cjs/side-sheet/SideSheetHeader.js +8 -11
  287. package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
  288. package/cjs/side-sheet/index.d.ts +4 -0
  289. package/cjs/side-sheet/index.js +5 -5
  290. package/cjs/site-layout/SiteLayout.d.ts +36 -0
  291. package/cjs/site-layout/SiteLayout.js +24 -27
  292. package/cjs/site-layout/index.d.ts +2 -0
  293. package/cjs/site-layout/index.js +3 -3
  294. package/cjs/skeleton/Skeleton.d.ts +8 -0
  295. package/cjs/skeleton/Skeleton.js +10 -14
  296. package/cjs/skeleton/index.d.ts +1 -0
  297. package/cjs/skeleton/index.js +1 -1
  298. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
  299. package/cjs/social-media-link-list/SocialMediaLinkList.js +13 -15
  300. package/cjs/social-media-link-list/index.d.ts +1 -0
  301. package/cjs/social-media-link-list/index.js +1 -1
  302. package/cjs/spinner/Spinner.d.ts +58 -0
  303. package/cjs/spinner/Spinner.js +8 -12
  304. package/cjs/spinner/index.d.ts +1 -0
  305. package/cjs/spinner/index.js +1 -1
  306. package/cjs/step/Step.d.ts +45 -0
  307. package/cjs/step/Step.js +21 -29
  308. package/cjs/step/Step.styles.d.ts +4 -0
  309. package/cjs/step/StepButton.d.ts +4 -0
  310. package/cjs/step/StepButton.js +14 -12
  311. package/cjs/step/StepContent.d.ts +6 -0
  312. package/cjs/step/StepContent.js +3 -2
  313. package/cjs/step/StepContext.d.ts +12 -0
  314. package/cjs/step/StepLabel.d.ts +7 -0
  315. package/cjs/step/StepLabel.js +4 -3
  316. package/cjs/step/index.d.ts +1 -0
  317. package/cjs/step/index.js +1 -1
  318. package/cjs/stepper/Stepper.d.ts +25 -0
  319. package/cjs/stepper/Stepper.js +13 -22
  320. package/cjs/stepper/StepperContext.d.ts +9 -0
  321. package/cjs/stepper/index.d.ts +1 -0
  322. package/cjs/stepper/index.js +1 -1
  323. package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
  324. package/cjs/stepper-feedback-message/index.d.ts +1 -0
  325. package/cjs/stepper-feedback-message/index.js +1 -1
  326. package/cjs/styles/index.d.ts +3 -0
  327. package/cjs/styles/index.js +5 -5
  328. package/cjs/styles/media.d.ts +21 -0
  329. package/cjs/styles/rem.d.ts +1 -0
  330. package/cjs/styles/style-helpers.d.ts +1 -0
  331. package/cjs/styles/theme.d.ts +39 -0
  332. package/cjs/surface/Surface.d.ts +32 -0
  333. package/cjs/surface/Surface.js +13 -19
  334. package/cjs/surface/index.d.ts +1 -0
  335. package/cjs/surface/index.js +1 -1
  336. package/cjs/tab/Tab.d.ts +12 -0
  337. package/cjs/tab/Tab.js +13 -14
  338. package/cjs/tab/TabPanel.d.ts +7 -0
  339. package/cjs/tab/TabPanel.js +3 -2
  340. package/cjs/tab/Tabs.d.ts +11 -0
  341. package/cjs/tab/Tabs.js +21 -37
  342. package/cjs/tab/TabsContext.d.ts +16 -0
  343. package/cjs/tab/TabsContext.js +1 -1
  344. package/cjs/tab/index.d.ts +4 -0
  345. package/cjs/tab/index.js +4 -4
  346. package/cjs/table/Table.d.ts +22 -0
  347. package/cjs/table/Table.js +7 -11
  348. package/cjs/table/TableBody.d.ts +9 -0
  349. package/cjs/table/TableBody.js +5 -7
  350. package/cjs/table/TableDataCell.d.ts +14 -0
  351. package/cjs/table/TableDataCell.js +6 -9
  352. package/cjs/table/TableHead.d.ts +14 -0
  353. package/cjs/table/TableHead.js +9 -10
  354. package/cjs/table/TableHeaderCell.d.ts +15 -0
  355. package/cjs/table/TableHeaderCell.js +6 -9
  356. package/cjs/table/TableRow.d.ts +17 -0
  357. package/cjs/table/TableRow.js +10 -12
  358. package/cjs/table/index.d.ts +6 -0
  359. package/cjs/table/index.js +6 -6
  360. package/cjs/test/Test.d.ts +8 -0
  361. package/cjs/tooltip/Tooltip.d.ts +26 -0
  362. package/cjs/tooltip/Tooltip.js +11 -12
  363. package/cjs/tooltip/index.d.ts +2 -0
  364. package/cjs/tooltip/index.js +3 -3
  365. package/cjs/typography/Headlines.d.ts +70 -0
  366. package/cjs/typography/Headlines.js +8 -11
  367. package/cjs/typography/Text.d.ts +5 -0
  368. package/cjs/typography/index.d.ts +2 -0
  369. package/cjs/typography/index.js +2 -2
  370. package/common/LockBodyScroll.d.ts +2 -2
  371. package/common/arrow.d.ts +1 -1
  372. package/common/intent.d.ts +1 -1
  373. package/common/polymorphic.d.ts +2 -2
  374. package/common/useOnClickOutside.d.ts +1 -1
  375. package/counter/Counter.d.ts +1 -1
  376. package/counter/PluralCounter.d.ts +1 -1
  377. package/data-table/DataTable.d.ts +1 -1
  378. package/divider/Divider.d.ts +1 -1
  379. package/drawer/Drawer.d.ts +4 -4
  380. package/dropdown-menu/Dropdown.d.ts +2 -2
  381. package/dropdown-menu/DropdownContext.d.ts +2 -2
  382. package/elevation/index.d.ts +1 -1
  383. package/flexbox/FlexBox.d.ts +2 -2
  384. package/forms/checkbox/Checkbox.d.ts +4 -4
  385. package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  386. package/forms/email-field/EmailField.d.ts +1 -1
  387. package/forms/field/Field.d.ts +1 -1
  388. package/forms/index.d.ts +3 -3
  389. package/forms/input/Input.d.ts +3 -3
  390. package/forms/input/InputComposition.d.ts +7 -7
  391. package/forms/label/Label.d.ts +1 -1
  392. package/forms/number-field/NumberField.d.ts +1 -1
  393. package/forms/password-field/PasswordField.d.ts +1 -1
  394. package/forms/radio/Radio.d.ts +4 -4
  395. package/forms/reactselect/ReactSelect.d.ts +2 -2
  396. package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
  397. package/forms/select/Select.d.ts +4 -4
  398. package/forms/select-field/SelectField.d.ts +2 -2
  399. package/forms/switch/Switch.d.ts +2 -2
  400. package/forms/tel-field/TelField.d.ts +1 -1
  401. package/forms/text-field/TextField.d.ts +3 -3
  402. package/grid/Column.d.ts +1 -1
  403. package/grid/Container.d.ts +1 -1
  404. package/hero/Hero.d.ts +1 -1
  405. package/hero/stripes.d.ts +1 -1
  406. package/ie-banner/IEBanner.d.ts +1 -1
  407. package/lists/FeatureList.d.ts +2 -2
  408. package/lists/ListAddon.d.ts +1 -1
  409. package/lists/ListDivider.d.ts +1 -1
  410. package/lists/ListIcon.d.ts +2 -2
  411. package/lists/ListItem.d.ts +1 -1
  412. package/lists/ListText.d.ts +3 -3
  413. package/lists/ListTextGroup.d.ts +1 -1
  414. package/loader/Loader.d.ts +1 -1
  415. package/localization/LocaleFlag.d.ts +1 -1
  416. package/localization/locales.d.ts +2 -2
  417. package/logo/Logo.d.ts +1 -1
  418. package/menu/Menu.d.ts +1 -1
  419. package/mobile-stepper/MobileStepper.d.ts +1 -1
  420. package/nav-bar/NavBar.d.ts +4 -4
  421. package/nav-menu/NavMenuItem.d.ts +1 -1
  422. package/package.json +10 -10
  423. package/pagination/Pagination.d.ts +2 -2
  424. package/popper/Popper.d.ts +2 -2
  425. package/progress-bar/ProgressBar.d.ts +1 -1
  426. package/schedule/ScheduleItem.d.ts +2 -2
  427. package/schedule/ScheduleList.d.ts +3 -3
  428. package/side-sheet/SideSheet.d.ts +4 -4
  429. package/side-sheet/SideSheetCloseButton.d.ts +1 -1
  430. package/side-sheet/SideSheetContent.d.ts +1 -1
  431. package/side-sheet/SideSheetFooter.d.ts +1 -1
  432. package/side-sheet/SideSheetHeader.d.ts +1 -1
  433. package/side-sheet/SideSheetHeadline.d.ts +1 -1
  434. package/site-layout/SiteLayout.d.ts +3 -3
  435. package/skeleton/Skeleton.d.ts +1 -1
  436. package/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
  437. package/spinner/Spinner.d.ts +2 -2
  438. package/step/Step.d.ts +1 -1
  439. package/step/StepButton.d.ts +1 -1
  440. package/step/StepContent.d.ts +1 -1
  441. package/step/StepContext.d.ts +1 -1
  442. package/step/StepLabel.d.ts +1 -1
  443. package/stepper/Stepper.d.ts +1 -1
  444. package/stepper/StepperContext.d.ts +1 -1
  445. package/styles/media.d.ts +1 -1
  446. package/styles/theme.d.ts +1 -1
  447. package/surface/Surface.d.ts +2 -2
  448. package/tab/Tab.d.ts +2 -2
  449. package/tab/TabPanel.d.ts +1 -1
  450. package/tab/Tabs.d.ts +2 -2
  451. package/tab/TabsContext.d.ts +1 -1
  452. package/table/Table.d.ts +2 -2
  453. package/table/TableBody.d.ts +1 -1
  454. package/table/TableDataCell.d.ts +1 -1
  455. package/table/TableHead.d.ts +1 -1
  456. package/table/TableHeaderCell.d.ts +2 -2
  457. package/table/TableRow.d.ts +1 -1
  458. package/tooltip/Tooltip.d.ts +2 -2
@@ -7,18 +7,16 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _material = require("@mui/material");
9
9
  var _react2 = require("@emotion/react");
10
- const _excluded = ["children", "m", "l", "xl", "xxl"];
11
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
11
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
14
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
- const Column = _ref => {
16
- let children = _ref.children,
17
- m = _ref.m,
18
- l = _ref.l,
19
- xl = _ref.xl,
20
- xxl = _ref.xxl,
21
- rest = _objectWithoutProperties(_ref, _excluded);
12
+ const Column = ({
13
+ children,
14
+ m,
15
+ l,
16
+ xl,
17
+ xxl,
18
+ ...rest
19
+ }) => {
22
20
  return (0, _react2.jsx)(_material.Grid, _extends({
23
21
  item: true,
24
22
  xs: 12,
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { SurfaceType } from '../surface';
3
+ type ContainerProps = {
4
+ /**
5
+ * Specify whether the container spans the entire width of its parent or it has a max-width set to 1200px (75rem)
6
+ */
7
+ fluid?: boolean;
8
+ /**
9
+ * Specify the surface variant for the container
10
+ */
11
+ surface?: SurfaceType;
12
+ children?: React.ReactNode;
13
+ };
14
+ declare const Container: React.FC<ContainerProps>;
15
+ export default Container;
@@ -12,13 +12,10 @@ var _styles = require("@mui/styles");
12
12
  var _createBreakpoints = _interopRequireDefault(require("@mui/system/createTheme/createBreakpoints"));
13
13
  var _styles2 = require("@mui/material/styles");
14
14
  var _theme = require("@dfds-ui/theme");
15
- var _spacing2 = require("@dfds-ui/spacing");
15
+ var _spacing = require("@dfds-ui/spacing");
16
16
  var _surface = require("../surface");
17
- const _excluded = ["children", "fluid", "surface"];
18
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
19
  const breakpointsObj = (0, _createBreakpoints.default)({
23
20
  values: {
24
21
  xs: _theme.theme.breakpoints.s,
@@ -30,12 +27,12 @@ const breakpointsObj = (0, _createBreakpoints.default)({
30
27
  });
31
28
  const theme = (0, _styles2.createTheme)({
32
29
  breakpoints: breakpointsObj,
33
- spacing: () => _spacing2.spacing.s,
30
+ spacing: () => _spacing.spacing.s,
34
31
  components: {
35
32
  MuiContainer: {
36
33
  styleOverrides: {
37
34
  root: {
38
- marginBottom: `${_spacing2.spacing.xs}`,
35
+ marginBottom: `${_spacing.spacing.xs}`,
39
36
  [breakpointsObj.only('xs')]: {
40
37
  paddingLeft: '0px',
41
38
  paddingRight: '0px'
@@ -63,11 +60,12 @@ const ContainerStyled = /*#__PURE__*/(0, _base.default)(_material.Container, pro
63
60
  target: "eiog5ix0",
64
61
  label: "ContainerStyled"
65
62
  })("@media screen and (min-width: ", breakpointsObj.values.lg, "px){max-width:1200px;}@media screen and (min-width: ", breakpointsObj.values.sm + 1, "px) and (max-width: ", breakpointsObj.values.lg - 1, "px){max-width:none;}@media screen and (max-width: ", breakpointsObj.values.sm, "px){max-width:none;.MuiGrid-spacing-xs-1{width:unset;margin:unset;}.MuiGrid-spacing-xs-1>.MuiGrid-item{padding:unset;}}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ncmlkL0NvbnRhaW5lci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUUwQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvZ3JpZC9Db250YWluZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgQ29udGFpbmVyIGFzIENvbnRhaW5lcl8sIEdyaWQgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuaW1wb3J0IHsgU3R5bGVzUHJvdmlkZXIgfSBmcm9tICdAbXVpL3N0eWxlcydcbmltcG9ydCBjcmVhdGVCcmVha3BvaW50cyBmcm9tICdAbXVpL3N5c3RlbS9jcmVhdGVUaGVtZS9jcmVhdGVCcmVha3BvaW50cydcbmltcG9ydCB7IGNyZWF0ZVRoZW1lLCBUaGVtZVByb3ZpZGVyIH0gZnJvbSAnQG11aS9tYXRlcmlhbC9zdHlsZXMnXG5pbXBvcnQgeyB0aGVtZSBhcyBEZmRzVGhlbWUgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IHNwYWNpbmcgfSBmcm9tICdAZGZkcy11aS9zcGFjaW5nJ1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IFN1cmZhY2VUeXBlLCBnZXRCYWNrZ3JvdW5kQ29sb3IsIE1heWJlU3VyZmFjZVByb3ZpZGVyIH0gZnJvbSAnLi4vc3VyZmFjZSdcblxudHlwZSBDb250YWluZXJQcm9wcyA9IHtcbiAgLyoqXG4gICAqIFNwZWNpZnkgd2hldGhlciB0aGUgY29udGFpbmVyIHNwYW5zIHRoZSBlbnRpcmUgd2lkdGggb2YgaXRzIHBhcmVudCBvciBpdCBoYXMgYSBtYXgtd2lkdGggc2V0IHRvIDEyMDBweCAoNzVyZW0pXG4gICAqL1xuICBmbHVpZD86IGJvb2xlYW5cbiAgLyoqXG4gICAqIFNwZWNpZnkgdGhlIHN1cmZhY2UgdmFyaWFudCBmb3IgdGhlIGNvbnRhaW5lclxuICAgKi9cbiAgc3VyZmFjZT86IFN1cmZhY2VUeXBlXG5cbiAgY2hpbGRyZW4/OiBSZWFjdC5SZWFjdE5vZGVcbn1cblxuY29uc3QgYnJlYWtwb2ludHNPYmogPSBjcmVhdGVCcmVha3BvaW50cyh7XG4gIHZhbHVlczoge1xuICAgIHhzOiBEZmRzVGhlbWUuYnJlYWtwb2ludHMucyxcbiAgICBzbTogRGZkc1RoZW1lLmJyZWFrcG9pbnRzLm0sXG4gICAgbWQ6IERmZHNUaGVtZS5icmVha3BvaW50cy5sLFxuICAgIGxnOiBEZmRzVGhlbWUuYnJlYWtwb2ludHMueGwsXG4gICAgeGw6IERmZHNUaGVtZS5icmVha3BvaW50cy54eGwsXG4gIH0sXG59KVxuXG5jb25zdCB0aGVtZSA9IGNyZWF0ZVRoZW1lKHtcbiAgYnJlYWtwb2ludHM6IGJyZWFrcG9pbnRzT2JqLFxuICBzcGFjaW5nOiAoKSA9PiBzcGFjaW5nLnMsXG4gIGNvbXBvbmVudHM6IHtcbiAgICBNdWlDb250YWluZXI6IHtcbiAgICAgIHN0eWxlT3ZlcnJpZGVzOiB7XG4gICAgICAgIHJvb3Q6IHtcbiAgICAgICAgICBtYXJnaW5Cb3R0b206IGAke3NwYWNpbmcueHN9YCxcblxuICAgICAgICAgIFticmVha3BvaW50c09iai5vbmx5KCd4cycpXToge1xuICAgICAgICAgICAgcGFkZGluZ0xlZnQ6ICcwcHgnLFxuICAgICAgICAgICAgcGFkZGluZ1JpZ2h0OiAnMHB4JyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIFticmVha3BvaW50c09iai5vbmx5KCdzbScpXToge1xuICAgICAgICAgICAgcGFkZGluZ0xlZnQ6ICc0MHB4JyxcbiAgICAgICAgICAgIHBhZGRpbmdSaWdodDogJzQwcHgnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgW2JyZWFrcG9pbnRzT2JqLm9ubHkoJ21kJyldOiB7XG4gICAgICAgICAgICBwYWRkaW5nTGVmdDogJzQwcHgnLFxuICAgICAgICAgICAgcGFkZGluZ1JpZ2h0OiAnNDBweCcsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBbYnJlYWtwb2ludHNPYmoudXAoJ2xnJyldOiB7XG4gICAgICAgICAgICBwYWRkaW5nTGVmdDogJzBweCcsXG4gICAgICAgICAgICBwYWRkaW5nUmlnaHQ6ICcwcHgnLFxuICAgICAgICAgIH0sXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG59KVxuXG5jb25zdCBDb250YWluZXJTdHlsZWQgPSBzdHlsZWQoQ29udGFpbmVyXylgXG4gIEBtZWRpYSBzY3JlZW4gYW5kIChtaW4td2lkdGg6ICR7YnJlYWtwb2ludHNPYmoudmFsdWVzLmxnfXB4KSB7XG4gICAgbWF4LXdpZHRoOiAxMjAwcHg7XG4gIH1cblxuICBAbWVkaWEgc2NyZWVuIGFuZCAobWluLXdpZHRoOiAke2JyZWFrcG9pbnRzT2JqLnZhbHVlcy5zbSArIDF9cHgpIGFuZCAobWF4LXdpZHRoOiAke2JyZWFrcG9pbnRzT2JqLnZhbHVlcy5sZyAtIDF9cHgpIHtcbiAgICBtYXgtd2lkdGg6IG5vbmU7XG4gIH1cblxuICBAbWVkaWEgc2NyZWVuIGFuZCAobWF4LXdpZHRoOiAke2JyZWFrcG9pbnRzT2JqLnZhbHVlcy5zbX1weCkge1xuICAgIG1heC13aWR0aDogbm9uZTtcblxuICAgIC5NdWlHcmlkLXNwYWNpbmcteHMtMSB7XG4gICAgICB3aWR0aDogdW5zZXQ7XG4gICAgICBtYXJnaW46IHVuc2V0O1xuICAgIH1cblxuICAgIC5NdWlHcmlkLXNwYWNpbmcteHMtMSA+IC5NdWlHcmlkLWl0ZW0ge1xuICAgICAgcGFkZGluZzogdW5zZXQ7XG4gICAgfVxuICB9XG5gXG5cbmNvbnN0IENvbnRhaW5lcjogUmVhY3QuRkM8Q29udGFpbmVyUHJvcHM+ID0gKHsgY2hpbGRyZW4sIGZsdWlkLCBzdXJmYWNlLCAuLi5yZXN0IH0pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8VGhlbWVQcm92aWRlciB0aGVtZT17dGhlbWV9PlxuICAgICAgPFN0eWxlc1Byb3ZpZGVyIGluamVjdEZpcnN0PlxuICAgICAgICA8TWF5YmVTdXJmYWNlUHJvdmlkZXIgc3VyZmFjZT17c3VyZmFjZX0+XG4gICAgICAgICAgPFdyYXBwZXIgZmx1aWQ9e2ZsdWlkfSBzdXJmYWNlPXtzdXJmYWNlfT5cbiAgICAgICAgICAgIDxDb250YWluZXJTdHlsZWRcbiAgICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtzdXJmYWNlICYmIGdldEJhY2tncm91bmRDb2xvcihzdXJmYWNlKX07XG4gICAgICAgICAgICAgIGB9XG4gICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8R3JpZCBjb250YWluZXIgc3BhY2luZz17MX0+XG4gICAgICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgICA8L0dyaWQ+XG4gICAgICAgICAgICA8L0NvbnRhaW5lclN0eWxlZD5cbiAgICAgICAgICA8L1dyYXBwZXI+XG4gICAgICAgIDwvTWF5YmVTdXJmYWNlUHJvdmlkZXI+XG4gICAgICA8L1N0eWxlc1Byb3ZpZGVyPlxuICAgIDwvVGhlbWVQcm92aWRlcj5cbiAgKVxufVxuXG5jb25zdCBXcmFwcGVyOiBSZWFjdC5GQzxDb250YWluZXJQcm9wcz4gPSAoeyBjaGlsZHJlbiwgZmx1aWQsIHN1cmZhY2UgfSkgPT4gKFxuICA8PiB7Zmx1aWQgPyA8ZGl2IGNzcz17eyBiYWNrZ3JvdW5kQ29sb3I6IHN1cmZhY2UgJiYgZ2V0QmFja2dyb3VuZENvbG9yKHN1cmZhY2UpIH19PntjaGlsZHJlbn08L2Rpdj4gOiBjaGlsZHJlbn0gPC8+XG4pXG5cbmV4cG9ydCBkZWZhdWx0IENvbnRhaW5lclxuIl19 */"));
66
- const Container = _ref => {
67
- let children = _ref.children,
68
- fluid = _ref.fluid,
69
- surface = _ref.surface,
70
- rest = _objectWithoutProperties(_ref, _excluded);
63
+ const Container = ({
64
+ children,
65
+ fluid,
66
+ surface,
67
+ ...rest
68
+ }) => {
71
69
  return (0, _react.jsx)(_styles2.ThemeProvider, {
72
70
  theme: theme
73
71
  }, (0, _react.jsx)(_styles.StylesProvider, {
@@ -0,0 +1,2 @@
1
+ export { default as Container } from './Container';
2
+ export { default as Column } from './Column';
package/cjs/grid/index.js CHANGED
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Column", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Column.default;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "Container", {
13
13
  enumerable: true,
14
- get: function get() {
14
+ get: function () {
15
15
  return _Container.default;
16
16
  }
17
17
  });
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ title: string;
4
+ headline: string;
5
+ headlineAs?: React.ElementType;
6
+ imageSrc: string;
7
+ color?: string;
8
+ };
9
+ declare const Hero: React.FC<Props>;
10
+ export default Hero;
@@ -0,0 +1 @@
1
+ export { default as Hero } from './Hero';
package/cjs/hero/index.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "Hero", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _Hero.default;
10
10
  }
11
11
  });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ color?: string;
4
+ };
5
+ declare const Stripes: React.FC<Props>;
6
+ export default Stripes;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type IEBannerProps = {
3
+ heading?: string;
4
+ openInEdge: string;
5
+ /**
6
+ * Class name to be assigned to the component
7
+ */
8
+ className?: string;
9
+ };
10
+ declare const IEBanner: React.FunctionComponent<IEBannerProps>;
11
+ export default IEBanner;
@@ -7,32 +7,17 @@ exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _banner = require("./../assertions/banner");
9
9
  var _react2 = require("@emotion/react");
10
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
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."); }
14
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
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; } }
17
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
12
  const IEBanner = ({
19
13
  heading,
20
14
  openInEdge,
21
15
  className,
22
16
  children
23
17
  }) => {
24
- const _useState = (0, _react.useState)(false),
25
- _useState2 = _slicedToArray(_useState, 2),
26
- getIE = _useState2[0],
27
- setIE = _useState2[1];
28
- const _useState3 = (0, _react.useState)(false),
29
- _useState4 = _slicedToArray(_useState3, 2),
30
- getIsWin10 = _useState4[0],
31
- setIsWin10 = _useState4[1];
32
- const _useState5 = (0, _react.useState)(''),
33
- _useState6 = _slicedToArray(_useState5, 2),
34
- getLink = _useState6[0],
35
- setLink = _useState6[1];
18
+ const [getIE, setIE] = (0, _react.useState)(false);
19
+ const [getIsWin10, setIsWin10] = (0, _react.useState)(false);
20
+ const [getLink, setLink] = (0, _react.useState)('');
36
21
  (0, _react.useEffect)(() => {
37
22
  if (typeof navigator !== 'undefined') {
38
23
  setIE(navigator.userAgent.includes('MSIE ') || navigator.userAgent.includes('Trident/'));
@@ -0,0 +1 @@
1
+ export { default as IEBanner } from './IEBanner';
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  Object.defineProperty(exports, "IEBanner", {
7
7
  enumerable: true,
8
- get: function get() {
8
+ get: function () {
9
9
  return _IEBanner.default;
10
10
  }
11
11
  });
package/cjs/index.d.ts ADDED
@@ -0,0 +1,44 @@
1
+ export { default as elevation } from './elevation';
2
+ export { default as media } from './media';
3
+ export { ResetStyles } from './global-styles/ResetStyles';
4
+ export { GlobalStyles, DfdsFontFace } from './global-styles/GlobalStyles';
5
+ export * from './accordion';
6
+ export * from './app-bar';
7
+ export * from './assertions';
8
+ export * from './badge';
9
+ export * from './button-stack';
10
+ export * from './button';
11
+ export * from './card';
12
+ export * from './chip';
13
+ export * from './common/polymorphic';
14
+ export * from './counter';
15
+ export * from './data-table';
16
+ export * from './date-range-picker';
17
+ export * from './drawer';
18
+ export * from './footer';
19
+ export * from './forms';
20
+ export * from './grid';
21
+ export * from './hero';
22
+ export * from './ie-banner';
23
+ export * from './lists';
24
+ export * from './loader';
25
+ export * from './localization';
26
+ export * from './menu';
27
+ export * from './nav-bar';
28
+ export * from './nav-menu';
29
+ export * from './pagination';
30
+ export * from './popper';
31
+ export * from './progress-bar';
32
+ export * from './side-sheet';
33
+ export * from './schedule';
34
+ export * from './site-layout';
35
+ export * from './social-media-link-list';
36
+ export * from './spinner';
37
+ export * from './styles';
38
+ export * from './tab';
39
+ export * from './table';
40
+ export * from './typography';
41
+ export * from './common/LockBodyScroll';
42
+ export * from './dropdown-menu';
43
+ export * from './skeleton';
44
+ export * from './tooltip';
package/cjs/index.js CHANGED
@@ -12,31 +12,31 @@ var _exportNames = {
12
12
  };
13
13
  Object.defineProperty(exports, "DfdsFontFace", {
14
14
  enumerable: true,
15
- get: function get() {
15
+ get: function () {
16
16
  return _GlobalStyles.DfdsFontFace;
17
17
  }
18
18
  });
19
19
  Object.defineProperty(exports, "GlobalStyles", {
20
20
  enumerable: true,
21
- get: function get() {
21
+ get: function () {
22
22
  return _GlobalStyles.GlobalStyles;
23
23
  }
24
24
  });
25
25
  Object.defineProperty(exports, "ResetStyles", {
26
26
  enumerable: true,
27
- get: function get() {
27
+ get: function () {
28
28
  return _ResetStyles.ResetStyles;
29
29
  }
30
30
  });
31
31
  Object.defineProperty(exports, "elevation", {
32
32
  enumerable: true,
33
- get: function get() {
33
+ get: function () {
34
34
  return _elevation.default;
35
35
  }
36
36
  });
37
37
  Object.defineProperty(exports, "media", {
38
38
  enumerable: true,
39
- get: function get() {
39
+ get: function () {
40
40
  return _media.default;
41
41
  }
42
42
  });
@@ -51,7 +51,7 @@ Object.keys(_accordion).forEach(function (key) {
51
51
  if (key in exports && exports[key] === _accordion[key]) return;
52
52
  Object.defineProperty(exports, key, {
53
53
  enumerable: true,
54
- get: function get() {
54
+ get: function () {
55
55
  return _accordion[key];
56
56
  }
57
57
  });
@@ -63,7 +63,7 @@ Object.keys(_appBar).forEach(function (key) {
63
63
  if (key in exports && exports[key] === _appBar[key]) return;
64
64
  Object.defineProperty(exports, key, {
65
65
  enumerable: true,
66
- get: function get() {
66
+ get: function () {
67
67
  return _appBar[key];
68
68
  }
69
69
  });
@@ -75,7 +75,7 @@ Object.keys(_assertions).forEach(function (key) {
75
75
  if (key in exports && exports[key] === _assertions[key]) return;
76
76
  Object.defineProperty(exports, key, {
77
77
  enumerable: true,
78
- get: function get() {
78
+ get: function () {
79
79
  return _assertions[key];
80
80
  }
81
81
  });
@@ -87,7 +87,7 @@ Object.keys(_badge).forEach(function (key) {
87
87
  if (key in exports && exports[key] === _badge[key]) return;
88
88
  Object.defineProperty(exports, key, {
89
89
  enumerable: true,
90
- get: function get() {
90
+ get: function () {
91
91
  return _badge[key];
92
92
  }
93
93
  });
@@ -99,7 +99,7 @@ Object.keys(_buttonStack).forEach(function (key) {
99
99
  if (key in exports && exports[key] === _buttonStack[key]) return;
100
100
  Object.defineProperty(exports, key, {
101
101
  enumerable: true,
102
- get: function get() {
102
+ get: function () {
103
103
  return _buttonStack[key];
104
104
  }
105
105
  });
@@ -111,7 +111,7 @@ Object.keys(_button).forEach(function (key) {
111
111
  if (key in exports && exports[key] === _button[key]) return;
112
112
  Object.defineProperty(exports, key, {
113
113
  enumerable: true,
114
- get: function get() {
114
+ get: function () {
115
115
  return _button[key];
116
116
  }
117
117
  });
@@ -123,7 +123,7 @@ Object.keys(_card).forEach(function (key) {
123
123
  if (key in exports && exports[key] === _card[key]) return;
124
124
  Object.defineProperty(exports, key, {
125
125
  enumerable: true,
126
- get: function get() {
126
+ get: function () {
127
127
  return _card[key];
128
128
  }
129
129
  });
@@ -135,7 +135,7 @@ Object.keys(_chip).forEach(function (key) {
135
135
  if (key in exports && exports[key] === _chip[key]) return;
136
136
  Object.defineProperty(exports, key, {
137
137
  enumerable: true,
138
- get: function get() {
138
+ get: function () {
139
139
  return _chip[key];
140
140
  }
141
141
  });
@@ -147,7 +147,7 @@ Object.keys(_polymorphic).forEach(function (key) {
147
147
  if (key in exports && exports[key] === _polymorphic[key]) return;
148
148
  Object.defineProperty(exports, key, {
149
149
  enumerable: true,
150
- get: function get() {
150
+ get: function () {
151
151
  return _polymorphic[key];
152
152
  }
153
153
  });
@@ -159,7 +159,7 @@ Object.keys(_counter).forEach(function (key) {
159
159
  if (key in exports && exports[key] === _counter[key]) return;
160
160
  Object.defineProperty(exports, key, {
161
161
  enumerable: true,
162
- get: function get() {
162
+ get: function () {
163
163
  return _counter[key];
164
164
  }
165
165
  });
@@ -171,7 +171,7 @@ Object.keys(_dataTable).forEach(function (key) {
171
171
  if (key in exports && exports[key] === _dataTable[key]) return;
172
172
  Object.defineProperty(exports, key, {
173
173
  enumerable: true,
174
- get: function get() {
174
+ get: function () {
175
175
  return _dataTable[key];
176
176
  }
177
177
  });
@@ -183,7 +183,7 @@ Object.keys(_dateRangePicker).forEach(function (key) {
183
183
  if (key in exports && exports[key] === _dateRangePicker[key]) return;
184
184
  Object.defineProperty(exports, key, {
185
185
  enumerable: true,
186
- get: function get() {
186
+ get: function () {
187
187
  return _dateRangePicker[key];
188
188
  }
189
189
  });
@@ -195,7 +195,7 @@ Object.keys(_drawer).forEach(function (key) {
195
195
  if (key in exports && exports[key] === _drawer[key]) return;
196
196
  Object.defineProperty(exports, key, {
197
197
  enumerable: true,
198
- get: function get() {
198
+ get: function () {
199
199
  return _drawer[key];
200
200
  }
201
201
  });
@@ -207,7 +207,7 @@ Object.keys(_footer).forEach(function (key) {
207
207
  if (key in exports && exports[key] === _footer[key]) return;
208
208
  Object.defineProperty(exports, key, {
209
209
  enumerable: true,
210
- get: function get() {
210
+ get: function () {
211
211
  return _footer[key];
212
212
  }
213
213
  });
@@ -219,7 +219,7 @@ Object.keys(_forms).forEach(function (key) {
219
219
  if (key in exports && exports[key] === _forms[key]) return;
220
220
  Object.defineProperty(exports, key, {
221
221
  enumerable: true,
222
- get: function get() {
222
+ get: function () {
223
223
  return _forms[key];
224
224
  }
225
225
  });
@@ -231,7 +231,7 @@ Object.keys(_grid).forEach(function (key) {
231
231
  if (key in exports && exports[key] === _grid[key]) return;
232
232
  Object.defineProperty(exports, key, {
233
233
  enumerable: true,
234
- get: function get() {
234
+ get: function () {
235
235
  return _grid[key];
236
236
  }
237
237
  });
@@ -243,7 +243,7 @@ Object.keys(_hero).forEach(function (key) {
243
243
  if (key in exports && exports[key] === _hero[key]) return;
244
244
  Object.defineProperty(exports, key, {
245
245
  enumerable: true,
246
- get: function get() {
246
+ get: function () {
247
247
  return _hero[key];
248
248
  }
249
249
  });
@@ -255,7 +255,7 @@ Object.keys(_ieBanner).forEach(function (key) {
255
255
  if (key in exports && exports[key] === _ieBanner[key]) return;
256
256
  Object.defineProperty(exports, key, {
257
257
  enumerable: true,
258
- get: function get() {
258
+ get: function () {
259
259
  return _ieBanner[key];
260
260
  }
261
261
  });
@@ -267,7 +267,7 @@ Object.keys(_lists).forEach(function (key) {
267
267
  if (key in exports && exports[key] === _lists[key]) return;
268
268
  Object.defineProperty(exports, key, {
269
269
  enumerable: true,
270
- get: function get() {
270
+ get: function () {
271
271
  return _lists[key];
272
272
  }
273
273
  });
@@ -279,7 +279,7 @@ Object.keys(_loader).forEach(function (key) {
279
279
  if (key in exports && exports[key] === _loader[key]) return;
280
280
  Object.defineProperty(exports, key, {
281
281
  enumerable: true,
282
- get: function get() {
282
+ get: function () {
283
283
  return _loader[key];
284
284
  }
285
285
  });
@@ -291,7 +291,7 @@ Object.keys(_localization).forEach(function (key) {
291
291
  if (key in exports && exports[key] === _localization[key]) return;
292
292
  Object.defineProperty(exports, key, {
293
293
  enumerable: true,
294
- get: function get() {
294
+ get: function () {
295
295
  return _localization[key];
296
296
  }
297
297
  });
@@ -303,7 +303,7 @@ Object.keys(_menu).forEach(function (key) {
303
303
  if (key in exports && exports[key] === _menu[key]) return;
304
304
  Object.defineProperty(exports, key, {
305
305
  enumerable: true,
306
- get: function get() {
306
+ get: function () {
307
307
  return _menu[key];
308
308
  }
309
309
  });
@@ -315,7 +315,7 @@ Object.keys(_navBar).forEach(function (key) {
315
315
  if (key in exports && exports[key] === _navBar[key]) return;
316
316
  Object.defineProperty(exports, key, {
317
317
  enumerable: true,
318
- get: function get() {
318
+ get: function () {
319
319
  return _navBar[key];
320
320
  }
321
321
  });
@@ -327,7 +327,7 @@ Object.keys(_navMenu).forEach(function (key) {
327
327
  if (key in exports && exports[key] === _navMenu[key]) return;
328
328
  Object.defineProperty(exports, key, {
329
329
  enumerable: true,
330
- get: function get() {
330
+ get: function () {
331
331
  return _navMenu[key];
332
332
  }
333
333
  });
@@ -339,7 +339,7 @@ Object.keys(_pagination).forEach(function (key) {
339
339
  if (key in exports && exports[key] === _pagination[key]) return;
340
340
  Object.defineProperty(exports, key, {
341
341
  enumerable: true,
342
- get: function get() {
342
+ get: function () {
343
343
  return _pagination[key];
344
344
  }
345
345
  });
@@ -351,7 +351,7 @@ Object.keys(_popper).forEach(function (key) {
351
351
  if (key in exports && exports[key] === _popper[key]) return;
352
352
  Object.defineProperty(exports, key, {
353
353
  enumerable: true,
354
- get: function get() {
354
+ get: function () {
355
355
  return _popper[key];
356
356
  }
357
357
  });
@@ -363,7 +363,7 @@ Object.keys(_progressBar).forEach(function (key) {
363
363
  if (key in exports && exports[key] === _progressBar[key]) return;
364
364
  Object.defineProperty(exports, key, {
365
365
  enumerable: true,
366
- get: function get() {
366
+ get: function () {
367
367
  return _progressBar[key];
368
368
  }
369
369
  });
@@ -375,7 +375,7 @@ Object.keys(_sideSheet).forEach(function (key) {
375
375
  if (key in exports && exports[key] === _sideSheet[key]) return;
376
376
  Object.defineProperty(exports, key, {
377
377
  enumerable: true,
378
- get: function get() {
378
+ get: function () {
379
379
  return _sideSheet[key];
380
380
  }
381
381
  });
@@ -387,7 +387,7 @@ Object.keys(_schedule).forEach(function (key) {
387
387
  if (key in exports && exports[key] === _schedule[key]) return;
388
388
  Object.defineProperty(exports, key, {
389
389
  enumerable: true,
390
- get: function get() {
390
+ get: function () {
391
391
  return _schedule[key];
392
392
  }
393
393
  });
@@ -399,7 +399,7 @@ Object.keys(_siteLayout).forEach(function (key) {
399
399
  if (key in exports && exports[key] === _siteLayout[key]) return;
400
400
  Object.defineProperty(exports, key, {
401
401
  enumerable: true,
402
- get: function get() {
402
+ get: function () {
403
403
  return _siteLayout[key];
404
404
  }
405
405
  });
@@ -411,7 +411,7 @@ Object.keys(_socialMediaLinkList).forEach(function (key) {
411
411
  if (key in exports && exports[key] === _socialMediaLinkList[key]) return;
412
412
  Object.defineProperty(exports, key, {
413
413
  enumerable: true,
414
- get: function get() {
414
+ get: function () {
415
415
  return _socialMediaLinkList[key];
416
416
  }
417
417
  });
@@ -423,7 +423,7 @@ Object.keys(_spinner).forEach(function (key) {
423
423
  if (key in exports && exports[key] === _spinner[key]) return;
424
424
  Object.defineProperty(exports, key, {
425
425
  enumerable: true,
426
- get: function get() {
426
+ get: function () {
427
427
  return _spinner[key];
428
428
  }
429
429
  });
@@ -435,7 +435,7 @@ Object.keys(_styles).forEach(function (key) {
435
435
  if (key in exports && exports[key] === _styles[key]) return;
436
436
  Object.defineProperty(exports, key, {
437
437
  enumerable: true,
438
- get: function get() {
438
+ get: function () {
439
439
  return _styles[key];
440
440
  }
441
441
  });
@@ -447,7 +447,7 @@ Object.keys(_tab).forEach(function (key) {
447
447
  if (key in exports && exports[key] === _tab[key]) return;
448
448
  Object.defineProperty(exports, key, {
449
449
  enumerable: true,
450
- get: function get() {
450
+ get: function () {
451
451
  return _tab[key];
452
452
  }
453
453
  });
@@ -459,7 +459,7 @@ Object.keys(_table).forEach(function (key) {
459
459
  if (key in exports && exports[key] === _table[key]) return;
460
460
  Object.defineProperty(exports, key, {
461
461
  enumerable: true,
462
- get: function get() {
462
+ get: function () {
463
463
  return _table[key];
464
464
  }
465
465
  });
@@ -471,7 +471,7 @@ Object.keys(_typography).forEach(function (key) {
471
471
  if (key in exports && exports[key] === _typography[key]) return;
472
472
  Object.defineProperty(exports, key, {
473
473
  enumerable: true,
474
- get: function get() {
474
+ get: function () {
475
475
  return _typography[key];
476
476
  }
477
477
  });
@@ -483,7 +483,7 @@ Object.keys(_LockBodyScroll).forEach(function (key) {
483
483
  if (key in exports && exports[key] === _LockBodyScroll[key]) return;
484
484
  Object.defineProperty(exports, key, {
485
485
  enumerable: true,
486
- get: function get() {
486
+ get: function () {
487
487
  return _LockBodyScroll[key];
488
488
  }
489
489
  });
@@ -495,7 +495,7 @@ Object.keys(_dropdownMenu).forEach(function (key) {
495
495
  if (key in exports && exports[key] === _dropdownMenu[key]) return;
496
496
  Object.defineProperty(exports, key, {
497
497
  enumerable: true,
498
- get: function get() {
498
+ get: function () {
499
499
  return _dropdownMenu[key];
500
500
  }
501
501
  });
@@ -507,7 +507,7 @@ Object.keys(_skeleton).forEach(function (key) {
507
507
  if (key in exports && exports[key] === _skeleton[key]) return;
508
508
  Object.defineProperty(exports, key, {
509
509
  enumerable: true,
510
- get: function get() {
510
+ get: function () {
511
511
  return _skeleton[key];
512
512
  }
513
513
  });
@@ -519,7 +519,7 @@ Object.keys(_tooltip).forEach(function (key) {
519
519
  if (key in exports && exports[key] === _tooltip[key]) return;
520
520
  Object.defineProperty(exports, key, {
521
521
  enumerable: true,
522
- get: function get() {
522
+ get: function () {
523
523
  return _tooltip[key];
524
524
  }
525
525
  });
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Layout: () => JSX.Element;