@dfds-ui/react-components 2.2.0-alpha.d82ee43f → 2.2.0-alpha.daf8252e

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 (532) 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 +76 -60
  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 +4 -4
  26. package/assertions/toast/Toaster.js +53 -57
  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 +2 -2
  36. package/button/IconButton.js +24 -18
  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 +69 -60
  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 +4 -4
  81. package/cjs/assertions/toast/Toaster.js +37 -29
  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 +2 -2
  91. package/cjs/button/IconButton.js +20 -20
  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 +4 -3
  112. package/cjs/common/LockBodyScroll.js +23 -16
  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 +3 -2
  123. package/cjs/counter/Counter.js +57 -49
  124. package/cjs/counter/PluralCounter.d.ts +4 -3
  125. package/cjs/counter/PluralCounter.js +15 -14
  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 +6 -5
  131. package/cjs/drawer/Drawer.js +12 -10
  132. package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
  133. package/cjs/dropdown-menu/Dropdown.js +39 -35
  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 +6 -6
  150. package/cjs/forms/checkbox/Checkbox.js +41 -37
  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 +19 -3
  154. package/cjs/forms/email-field/EmailField.js +12 -8
  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 +4 -4
  161. package/cjs/forms/input/Input.js +34 -33
  162. package/cjs/forms/input/InputComposition.d.ts +12 -12
  163. package/cjs/forms/input/InputComposition.js +40 -35
  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 +19 -3
  167. package/cjs/forms/number-field/NumberField.js +12 -8
  168. package/cjs/forms/password-field/PasswordField.d.ts +2 -2
  169. package/cjs/forms/password-field/PasswordField.js +13 -14
  170. package/cjs/forms/radio/Radio.d.ts +4 -4
  171. package/cjs/forms/radio/Radio.js +25 -23
  172. package/cjs/forms/reactselect/ReactSelect.d.ts +14 -14
  173. package/cjs/forms/reactselect/ReactSelect.js +76 -68
  174. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
  175. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +47 -38
  176. package/cjs/forms/select/Select.d.ts +5 -5
  177. package/cjs/forms/select/Select.js +33 -31
  178. package/cjs/forms/select-field/SelectField.d.ts +13 -5
  179. package/cjs/forms/select-field/SelectField.js +37 -34
  180. package/cjs/forms/switch/Switch.d.ts +2 -2
  181. package/cjs/forms/switch/Switch.js +41 -35
  182. package/cjs/forms/tel-field/TelField.d.ts +19 -3
  183. package/cjs/forms/tel-field/TelField.js +12 -8
  184. package/cjs/forms/text-field/TextField.d.ts +22 -5
  185. package/cjs/forms/text-field/TextField.js +42 -40
  186. package/cjs/global-styles/GlobalStyles.js +3 -2
  187. package/cjs/global-styles/ResetStyles.js +2 -1
  188. package/cjs/global-styles/sanitize.d.ts +1 -1
  189. package/cjs/global-styles/sanitize.js +2 -3
  190. package/cjs/grid/Column.d.ts +1 -1
  191. package/cjs/grid/Column.js +7 -7
  192. package/cjs/grid/Container.d.ts +2 -2
  193. package/cjs/grid/Container.js +34 -29
  194. package/cjs/hero/Hero.d.ts +2 -2
  195. package/cjs/hero/Hero.js +42 -22
  196. package/cjs/hero/stripes.d.ts +2 -2
  197. package/cjs/hero/stripes.js +177 -162
  198. package/cjs/ie-banner/IEBanner.d.ts +1 -1
  199. package/cjs/ie-banner/IEBanner.js +13 -8
  200. package/cjs/index.d.ts +0 -1
  201. package/cjs/index.js +0 -12
  202. package/cjs/layout/LayoutLegacy.js +2 -1
  203. package/cjs/lists/FeatureList.d.ts +7 -7
  204. package/cjs/lists/FeatureList.js +16 -13
  205. package/cjs/lists/ListAddon.d.ts +1 -1
  206. package/cjs/lists/ListAddon.js +10 -7
  207. package/cjs/lists/ListDivider.d.ts +1 -1
  208. package/cjs/lists/ListDivider.js +6 -6
  209. package/cjs/lists/ListIcon.d.ts +2 -2
  210. package/cjs/lists/ListIcon.js +6 -6
  211. package/cjs/lists/ListItem.d.ts +2 -2
  212. package/cjs/lists/ListItem.js +7 -6
  213. package/cjs/lists/ListText.d.ts +3 -3
  214. package/cjs/lists/ListText.js +6 -6
  215. package/cjs/lists/ListTextGroup.d.ts +1 -1
  216. package/cjs/lists/ListTextGroup.js +6 -6
  217. package/cjs/lists/ListTitle.js +6 -6
  218. package/cjs/loader/DfdsLoader.d.ts +1 -1
  219. package/cjs/loader/DfdsLoader.js +29 -23
  220. package/cjs/loader/Loader.d.ts +1 -1
  221. package/cjs/loader/Loader.js +9 -3
  222. package/cjs/localization/LocaleFlag.d.ts +1 -1
  223. package/cjs/localization/LocaleFlag.js +5 -4
  224. package/cjs/localization/locales.d.ts +2 -2
  225. package/cjs/localization/locales.js +3 -6
  226. package/cjs/logo/Logo.d.ts +1 -1
  227. package/cjs/logo/Logo.js +12 -9
  228. package/cjs/media/index.js +1 -2
  229. package/cjs/menu/Menu.d.ts +1 -1
  230. package/cjs/menu/Menu.js +29 -23
  231. package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
  232. package/cjs/mobile-stepper/MobileStepper.js +17 -15
  233. package/cjs/nav-bar/NavBar.d.ts +9 -9
  234. package/cjs/nav-bar/NavBar.js +34 -24
  235. package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
  236. package/cjs/nav-menu/NavMenuItem.js +13 -11
  237. package/cjs/pagination/Pagination.d.ts +2 -2
  238. package/cjs/pagination/Pagination.js +50 -38
  239. package/cjs/pagination/Pagination.styles.d.ts +6 -6
  240. package/cjs/pagination/Pagination.styles.js +6 -12
  241. package/cjs/popper/Popper.d.ts +3 -3
  242. package/cjs/popper/Popper.js +21 -17
  243. package/cjs/progress-bar/ProgressBar.d.ts +1 -1
  244. package/cjs/progress-bar/ProgressBar.js +3 -3
  245. package/cjs/schedule/ScheduleItem.d.ts +8 -8
  246. package/cjs/schedule/ScheduleItem.js +11 -8
  247. package/cjs/schedule/ScheduleList.d.ts +3 -3
  248. package/cjs/schedule/ScheduleList.js +10 -11
  249. package/cjs/side-sheet/SideSheet.d.ts +4 -4
  250. package/cjs/side-sheet/SideSheet.js +41 -33
  251. package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
  252. package/cjs/side-sheet/SideSheetCloseButton.js +6 -6
  253. package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
  254. package/cjs/side-sheet/SideSheetContent.js +10 -7
  255. package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
  256. package/cjs/side-sheet/SideSheetFooter.js +10 -7
  257. package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
  258. package/cjs/side-sheet/SideSheetHeader.js +10 -7
  259. package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
  260. package/cjs/side-sheet/SideSheetHeadline.js +6 -5
  261. package/cjs/site-layout/SiteLayout.d.ts +11 -11
  262. package/cjs/site-layout/SiteLayout.js +30 -19
  263. package/cjs/skeleton/Skeleton.d.ts +1 -1
  264. package/cjs/skeleton/Skeleton.js +6 -6
  265. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  266. package/cjs/social-media-link-list/SocialMediaLinkList.js +64 -58
  267. package/cjs/spinner/Spinner.d.ts +7 -7
  268. package/cjs/spinner/Spinner.js +13 -13
  269. package/cjs/step/Step.d.ts +1 -1
  270. package/cjs/step/Step.js +29 -20
  271. package/cjs/step/Step.styles.d.ts +4 -4
  272. package/cjs/step/Step.styles.js +4 -8
  273. package/cjs/step/StepButton.d.ts +2 -2
  274. package/cjs/step/StepButton.js +30 -27
  275. package/cjs/step/StepContent.d.ts +1 -1
  276. package/cjs/step/StepContent.js +12 -10
  277. package/cjs/step/StepContext.d.ts +1 -1
  278. package/cjs/step/StepContext.js +1 -2
  279. package/cjs/step/StepLabel.d.ts +1 -1
  280. package/cjs/step/StepLabel.js +9 -7
  281. package/cjs/stepper/Stepper.d.ts +1 -1
  282. package/cjs/stepper/Stepper.js +12 -10
  283. package/cjs/stepper/StepperContext.d.ts +1 -1
  284. package/cjs/stepper/StepperContext.js +1 -2
  285. package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +10 -7
  286. package/cjs/styles/media.d.ts +1 -1
  287. package/cjs/styles/media.js +2 -4
  288. package/cjs/styles/style-helpers.d.ts +1 -1
  289. package/cjs/styles/theme.d.ts +1 -1
  290. package/cjs/styles/theme.js +2 -4
  291. package/cjs/surface/Surface.d.ts +9 -8
  292. package/cjs/surface/Surface.js +20 -14
  293. package/cjs/tab/Tab.d.ts +3 -3
  294. package/cjs/tab/Tab.js +9 -8
  295. package/cjs/tab/TabPanel.d.ts +2 -2
  296. package/cjs/tab/TabPanel.js +7 -7
  297. package/cjs/tab/Tabs.d.ts +3 -3
  298. package/cjs/tab/Tabs.js +32 -31
  299. package/cjs/tab/TabsContext.d.ts +3 -3
  300. package/cjs/tab/TabsContext.js +7 -8
  301. package/cjs/table/Table.d.ts +3 -3
  302. package/cjs/table/Table.js +17 -17
  303. package/cjs/table/TableBody.d.ts +2 -2
  304. package/cjs/table/TableBody.js +11 -12
  305. package/cjs/table/TableDataCell.d.ts +2 -2
  306. package/cjs/table/TableDataCell.js +13 -14
  307. package/cjs/table/TableHead.d.ts +3 -3
  308. package/cjs/table/TableHead.js +12 -15
  309. package/cjs/table/TableHeaderCell.d.ts +4 -4
  310. package/cjs/table/TableHeaderCell.js +14 -15
  311. package/cjs/table/TableRow.d.ts +2 -2
  312. package/cjs/table/TableRow.js +12 -14
  313. package/cjs/test/Test.js +5 -4
  314. package/cjs/tooltip/Tooltip.d.ts +3 -3
  315. package/cjs/tooltip/Tooltip.js +31 -25
  316. package/cjs/typography/Headlines.d.ts +36 -36
  317. package/cjs/typography/Headlines.js +25 -31
  318. package/cjs/typography/Text.d.ts +2 -2
  319. package/cjs/typography/Text.js +2 -3
  320. package/common/LockBodyScroll.d.ts +4 -3
  321. package/common/LockBodyScroll.js +28 -16
  322. package/common/arrow.d.ts +2 -2
  323. package/common/emotionCloneElement.js +1 -2
  324. package/common/intent.d.ts +1 -1
  325. package/common/polymorphic.d.ts +3 -3
  326. package/common/polymorphic.js +9 -3
  327. package/common/use-media.js +3 -3
  328. package/common/useOnClickOutside.d.ts +2 -2
  329. package/common/useOnClickOutside.js +2 -2
  330. package/common/utils.d.ts +3 -3
  331. package/counter/Counter.d.ts +3 -2
  332. package/counter/Counter.js +59 -51
  333. package/counter/PluralCounter.d.ts +4 -3
  334. package/counter/PluralCounter.js +24 -17
  335. package/data-table/DataTable.d.ts +1 -1
  336. package/data-table/DataTable.js +54 -41
  337. package/divider/Divider.d.ts +2 -2
  338. package/divider/Divider.js +10 -5
  339. package/drawer/Drawer.d.ts +6 -5
  340. package/drawer/Drawer.js +19 -11
  341. package/dropdown-menu/Dropdown.d.ts +3 -3
  342. package/dropdown-menu/Dropdown.js +47 -38
  343. package/dropdown-menu/DropdownContext.d.ts +4 -4
  344. package/dropdown-menu/DropdownContext.js +5 -4
  345. package/dropdown-menu/MenuCheckbox.js +24 -17
  346. package/dropdown-menu/MenuItem.d.ts +2 -2
  347. package/dropdown-menu/MenuItem.js +26 -18
  348. package/dropdown-menu/MenuTitle.js +14 -11
  349. package/elevation/index.d.ts +2 -2
  350. package/flexbox/FlexBox.d.ts +5 -5
  351. package/flexbox/FlexBox.js +2 -2
  352. package/footer/Footer.d.ts +2 -2
  353. package/footer/Footer.js +12 -7
  354. package/forms/assistive-text/AssistiveText.d.ts +3 -3
  355. package/forms/asterisk/Asterisk.js +4 -2
  356. package/forms/checkbox/Checkbox.d.ts +6 -6
  357. package/forms/checkbox/Checkbox.js +50 -41
  358. package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  359. package/forms/checkbox/ExampleControlComponent.js +15 -8
  360. package/forms/email-field/EmailField.d.ts +19 -3
  361. package/forms/email-field/EmailField.js +16 -6
  362. package/forms/error-text/ErrorText.d.ts +3 -3
  363. package/forms/field/Field.d.ts +1 -1
  364. package/forms/field/Field.js +9 -4
  365. package/forms/index.d.ts +3 -3
  366. package/forms/input/Input.d.ts +4 -4
  367. package/forms/input/Input.js +42 -36
  368. package/forms/input/InputComposition.d.ts +12 -12
  369. package/forms/input/InputComposition.js +41 -31
  370. package/forms/label/Label.d.ts +1 -1
  371. package/forms/label/Label.js +12 -4
  372. package/forms/number-field/NumberField.d.ts +19 -3
  373. package/forms/number-field/NumberField.js +17 -7
  374. package/forms/password-field/PasswordField.d.ts +2 -2
  375. package/forms/password-field/PasswordField.js +19 -14
  376. package/forms/radio/Radio.d.ts +4 -4
  377. package/forms/radio/Radio.js +33 -25
  378. package/forms/reactselect/ReactSelect.d.ts +14 -14
  379. package/forms/reactselect/ReactSelect.js +73 -67
  380. package/forms/searchable-select/AsyncSearchableSelect.d.ts +3 -3
  381. package/forms/searchable-select/AsyncSearchableSelect.js +51 -39
  382. package/forms/select/Select.d.ts +5 -5
  383. package/forms/select/Select.js +41 -34
  384. package/forms/select-field/SelectField.d.ts +13 -5
  385. package/forms/select-field/SelectField.js +44 -36
  386. package/forms/switch/Switch.d.ts +2 -2
  387. package/forms/switch/Switch.js +52 -40
  388. package/forms/tel-field/TelField.d.ts +19 -3
  389. package/forms/tel-field/TelField.js +16 -6
  390. package/forms/text-field/TextField.d.ts +22 -5
  391. package/forms/text-field/TextField.js +50 -42
  392. package/global-styles/GlobalStyles.js +3 -3
  393. package/global-styles/ResetStyles.js +2 -2
  394. package/global-styles/sanitize.d.ts +1 -1
  395. package/grid/Column.d.ts +1 -1
  396. package/grid/Column.js +14 -7
  397. package/grid/Container.d.ts +2 -2
  398. package/grid/Container.js +41 -35
  399. package/hero/Hero.d.ts +2 -2
  400. package/hero/Hero.js +42 -20
  401. package/hero/stripes.d.ts +2 -2
  402. package/hero/stripes.js +176 -160
  403. package/ie-banner/IEBanner.d.ts +1 -1
  404. package/ie-banner/IEBanner.js +14 -8
  405. package/index.d.ts +0 -1
  406. package/index.js +0 -1
  407. package/layout/LayoutLegacy.js +2 -2
  408. package/lists/FeatureList.d.ts +7 -7
  409. package/lists/FeatureList.js +21 -11
  410. package/lists/ListAddon.d.ts +1 -1
  411. package/lists/ListAddon.js +13 -6
  412. package/lists/ListDivider.d.ts +1 -1
  413. package/lists/ListDivider.js +10 -5
  414. package/lists/ListIcon.d.ts +2 -2
  415. package/lists/ListIcon.js +10 -5
  416. package/lists/ListItem.d.ts +2 -2
  417. package/lists/ListItem.js +13 -6
  418. package/lists/ListText.d.ts +3 -3
  419. package/lists/ListText.js +10 -5
  420. package/lists/ListTextGroup.d.ts +1 -1
  421. package/lists/ListTextGroup.js +10 -5
  422. package/lists/ListTitle.js +10 -5
  423. package/loader/DfdsLoader.d.ts +1 -1
  424. package/loader/DfdsLoader.js +26 -20
  425. package/loader/Loader.d.ts +1 -1
  426. package/loader/Loader.js +8 -2
  427. package/localization/LocaleFlag.d.ts +1 -1
  428. package/localization/LocaleFlag.js +10 -5
  429. package/localization/locales.d.ts +2 -2
  430. package/logo/Logo.d.ts +1 -1
  431. package/logo/Logo.js +14 -7
  432. package/menu/Menu.d.ts +1 -1
  433. package/menu/Menu.js +33 -21
  434. package/mobile-stepper/MobileStepper.d.ts +1 -1
  435. package/mobile-stepper/MobileStepper.js +26 -18
  436. package/nav-bar/NavBar.d.ts +9 -9
  437. package/nav-bar/NavBar.js +41 -23
  438. package/nav-menu/NavMenuItem.d.ts +1 -1
  439. package/nav-menu/NavMenuItem.js +12 -10
  440. package/package.json +16 -20
  441. package/pagination/Pagination.d.ts +2 -2
  442. package/pagination/Pagination.js +53 -35
  443. package/pagination/Pagination.styles.d.ts +6 -6
  444. package/popper/Popper.d.ts +3 -3
  445. package/popper/Popper.js +27 -17
  446. package/progress-bar/ProgressBar.d.ts +1 -1
  447. package/progress-bar/ProgressBar.js +2 -2
  448. package/schedule/ScheduleItem.d.ts +8 -8
  449. package/schedule/ScheduleItem.js +9 -4
  450. package/schedule/ScheduleList.d.ts +3 -3
  451. package/schedule/ScheduleList.js +16 -10
  452. package/side-sheet/SideSheet.d.ts +4 -4
  453. package/side-sheet/SideSheet.js +47 -34
  454. package/side-sheet/SideSheetCloseButton.d.ts +1 -1
  455. package/side-sheet/SideSheetCloseButton.js +10 -5
  456. package/side-sheet/SideSheetContent.d.ts +1 -1
  457. package/side-sheet/SideSheetContent.js +17 -8
  458. package/side-sheet/SideSheetFooter.d.ts +1 -1
  459. package/side-sheet/SideSheetFooter.js +17 -8
  460. package/side-sheet/SideSheetHeader.d.ts +1 -1
  461. package/side-sheet/SideSheetHeader.js +17 -8
  462. package/side-sheet/SideSheetHeadline.d.ts +1 -1
  463. package/side-sheet/SideSheetHeadline.js +5 -4
  464. package/site-layout/SiteLayout.d.ts +11 -11
  465. package/site-layout/SiteLayout.js +31 -12
  466. package/skeleton/Skeleton.d.ts +1 -1
  467. package/skeleton/Skeleton.js +10 -5
  468. package/social-media-link-list/SocialMediaLinkList.d.ts +7 -7
  469. package/social-media-link-list/SocialMediaLinkList.js +69 -55
  470. package/spinner/Spinner.d.ts +7 -7
  471. package/spinner/Spinner.js +17 -10
  472. package/step/Step.d.ts +1 -1
  473. package/step/Step.js +34 -20
  474. package/step/Step.styles.d.ts +4 -4
  475. package/step/StepButton.d.ts +2 -2
  476. package/step/StepButton.js +27 -19
  477. package/step/StepContent.d.ts +1 -1
  478. package/step/StepContent.js +11 -9
  479. package/step/StepContext.d.ts +1 -1
  480. package/step/StepLabel.d.ts +1 -1
  481. package/step/StepLabel.js +8 -6
  482. package/stepper/Stepper.d.ts +1 -1
  483. package/stepper/Stepper.js +13 -11
  484. package/stepper/StepperContext.d.ts +1 -1
  485. package/stepper-feedback-message/StepperFeedbackMessage.js +9 -6
  486. package/styles/media.d.ts +1 -1
  487. package/styles/style-helpers.d.ts +1 -1
  488. package/styles/theme.d.ts +1 -1
  489. package/surface/Surface.d.ts +9 -8
  490. package/surface/Surface.js +17 -14
  491. package/tab/Tab.d.ts +3 -3
  492. package/tab/Tab.js +18 -11
  493. package/tab/TabPanel.d.ts +2 -2
  494. package/tab/TabPanel.js +6 -5
  495. package/tab/Tabs.d.ts +3 -3
  496. package/tab/Tabs.js +46 -39
  497. package/tab/TabsContext.d.ts +3 -3
  498. package/tab/TabsContext.js +5 -4
  499. package/table/Table.d.ts +3 -3
  500. package/table/Table.js +23 -17
  501. package/table/TableBody.d.ts +2 -2
  502. package/table/TableBody.js +15 -10
  503. package/table/TableDataCell.d.ts +2 -2
  504. package/table/TableDataCell.js +17 -12
  505. package/table/TableHead.d.ts +3 -3
  506. package/table/TableHead.js +13 -12
  507. package/table/TableHeaderCell.d.ts +4 -4
  508. package/table/TableHeaderCell.js +18 -13
  509. package/table/TableRow.d.ts +2 -2
  510. package/table/TableRow.js +14 -14
  511. package/test/Test.js +4 -2
  512. package/tooltip/Tooltip.d.ts +3 -3
  513. package/tooltip/Tooltip.js +34 -24
  514. package/typography/Headlines.d.ts +36 -36
  515. package/typography/Headlines.js +24 -17
  516. package/typography/Text.d.ts +2 -2
  517. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
  518. package/cjs/date-range-picker/DatePickerDefaultStyles.js +0 -19
  519. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
  520. package/cjs/date-range-picker/DatePickerDfdsStyles.js +0 -11
  521. package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
  522. package/cjs/date-range-picker/DateRangePicker.js +0 -263
  523. package/cjs/date-range-picker/index.d.ts +0 -1
  524. package/cjs/date-range-picker/index.js +0 -13
  525. package/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
  526. package/date-range-picker/DatePickerDefaultStyles.js +0 -12
  527. package/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
  528. package/date-range-picker/DatePickerDfdsStyles.js +0 -4
  529. package/date-range-picker/DateRangePicker.d.ts +0 -33
  530. package/date-range-picker/DateRangePicker.js +0 -310
  531. package/date-range-picker/index.d.ts +0 -1
  532. package/date-range-picker/index.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type CardContentProps = {
2
+ export type CardContentProps = {
3
3
  children?: React.ReactNode;
4
4
  /**
5
5
  * Text color
@@ -1,11 +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 = ["children", "color"];
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; }
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; }
5
11
  import React from 'react';
6
12
  import { theme } from '@dfds-ui/theme';
7
13
  import { Text } from '@dfds-ui/typography';
8
- import { jsx as ___EmotionJSX } from "@emotion/react";
14
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
9
15
  var ContentContainer = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
10
16
  target: "e13iposs1"
11
17
  } : {
@@ -24,11 +30,15 @@ var CardContent = function CardContent(_ref) {
24
30
  var children = _ref.children,
25
31
  color = _ref.color,
26
32
  rest = _objectWithoutProperties(_ref, _excluded);
27
- return ___EmotionJSX(ContentContainer, rest, ___EmotionJSX(Content, {
28
- color: color
29
- }, ___EmotionJSX(Text, {
30
- as: "div",
31
- styledAs: 'body'
32
- }, children)));
33
+ return _jsx(ContentContainer, _objectSpread(_objectSpread({}, rest), {}, {
34
+ children: _jsx(Content, {
35
+ color: color,
36
+ children: _jsx(Text, {
37
+ as: "div",
38
+ styledAs: 'body',
39
+ children: children
40
+ })
41
+ })
42
+ }));
33
43
  };
34
44
  export default CardContent;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
- export declare type CardMediaProps = {
2
+ export type CardMediaProps = {
3
3
  children?: React.ReactNode;
4
4
  /**
5
5
  * Media component to be displayed
@@ -14,6 +14,6 @@ export declare type CardMediaProps = {
14
14
  */
15
15
  className?: string;
16
16
  };
17
- export declare type AspectRatio = '2:1' | '3:2';
17
+ export type AspectRatio = '2:1' | '3:2';
18
18
  declare const CardMedia: FunctionComponent<CardMediaProps>;
19
19
  export default CardMedia;
package/card/CardMedia.js CHANGED
@@ -1,10 +1,16 @@
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 = ["children", "media", "aspectRatio"];
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; }
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; }
5
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
6
12
  import React from 'react';
7
- import { jsx as ___EmotionJSX } from "@emotion/react";
13
+ import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
8
14
  function toPercent(_ref) {
9
15
  var aspectRatio = _ref.aspectRatio;
10
16
  return aspectRatio === '3:2' ? '66.6667%' : '50.00%';
@@ -34,8 +40,11 @@ var CardMedia = function CardMedia(_ref2) {
34
40
  _ref2$aspectRatio = _ref2.aspectRatio,
35
41
  aspectRatio = _ref2$aspectRatio === void 0 ? '2:1' : _ref2$aspectRatio,
36
42
  rest = _objectWithoutProperties(_ref2, _excluded);
37
- return ___EmotionJSX(MediaContainer, rest, ___EmotionJSX(AspectWrapper, {
38
- aspectRatio: aspectRatio
39
- }, media, children));
43
+ return _jsx(MediaContainer, _objectSpread(_objectSpread({}, rest), {}, {
44
+ children: _jsxs(AspectWrapper, {
45
+ aspectRatio: aspectRatio,
46
+ children: [media, children]
47
+ })
48
+ }));
40
49
  };
41
50
  export default CardMedia;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type CardPriceTagProps = {
2
+ export type CardPriceTagProps = {
3
3
  /**
4
4
  * Price for the price tag
5
5
  */
@@ -1,10 +1,16 @@
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 = ["price", "topText", "bottomText", "currency"];
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; }
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; }
5
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
6
12
  import React from 'react';
7
- import { jsx as ___EmotionJSX } from "@emotion/react";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
8
14
  var Wrapper = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
9
15
  target: "eci6nyw5"
10
16
  } : {
@@ -89,6 +95,18 @@ var CardPriceTag = function CardPriceTag(_ref) {
89
95
  bottomText = _ref.bottomText,
90
96
  currency = _ref.currency,
91
97
  rest = _objectWithoutProperties(_ref, _excluded);
92
- return ___EmotionJSX(Wrapper, rest, ___EmotionJSX(Content, null, ___EmotionJSX(From, null, topText), ___EmotionJSX(Currency, null, currency), ___EmotionJSX(Price, null, price), ___EmotionJSX(Info, null, bottomText)));
98
+ return _jsx(Wrapper, _objectSpread(_objectSpread({}, rest), {}, {
99
+ children: _jsxs(Content, {
100
+ children: [_jsx(From, {
101
+ children: topText
102
+ }), _jsx(Currency, {
103
+ children: currency
104
+ }), _jsx(Price, {
105
+ children: price
106
+ }), _jsx(Info, {
107
+ children: bottomText
108
+ })]
109
+ })
110
+ }));
93
111
  };
94
112
  export default CardPriceTag;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type CardTitleProps = {
2
+ export type CardTitleProps = {
3
3
  children?: React.ReactNode;
4
4
  /**
5
5
  * Text color
package/card/CardTitle.js CHANGED
@@ -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 { css as _css } from "@emotion/react";
2
3
  var _excluded = ["children", "color", "largeTitle"];
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 { Text } from '@dfds-ui/typography';
8
13
  import { theme, useBreakpoint } from '@dfds-ui/theme';
9
14
  import { CardContext } from './Card';
10
15
  import { css } from '@emotion/react';
11
- import { jsx as ___EmotionJSX } from "@emotion/react";
16
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
12
17
  var CardTitle = function CardTitle(_ref) {
13
- var children = _ref.children,
18
+ var _children = _ref.children,
14
19
  color = _ref.color,
15
20
  _ref$largeTitle = _ref.largeTitle,
16
21
  largeTitle = _ref$largeTitle === void 0 ? false : _ref$largeTitle,
@@ -23,16 +28,21 @@ var CardTitle = function CardTitle(_ref) {
23
28
  }
24
29
  return theme.spacing.s;
25
30
  };
26
- return ___EmotionJSX(CardContext.Consumer, null, function (context) {
27
- return ___EmotionJSX("div", _extends({
28
- css: /*#__PURE__*/css("padding-top:", getPadding(context), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CardTitle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=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ufVxuXG5leHBvcnQgZGVmYXVsdCBDYXJkVGl0bGVcbiJdfQ== */")
29
- }, rest), ___EmotionJSX(Text, {
30
- css: /*#__PURE__*/_css({
31
- color: color ? color : theme.colors.text.primary.primary
32
- }, process.env.NODE_ENV === "production" ? "" : ";label:CardTitle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jYXJkL0NhcmRUaXRsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkNZIiwiZmlsZSI6Ii4uLy4uL3NyYy9jYXJkL0NhcmRUaXRsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFRleHQgfSBmcm9tICdAZGZkcy11aS90eXBvZ3JhcGh5J1xuaW1wb3J0IHsgdGhlbWUsIHVzZUJyZWFrcG9pbnQgfSBmcm9tICdAZGZkcy11aS90aGVtZSdcbmltcG9ydCB7IENhcmRDb250ZXh0IH0gZnJvbSAnLi9DYXJkJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5cbmV4cG9ydCB0eXBlIENhcmRUaXRsZVByb3BzID0ge1xuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZVxuICAvKipcbiAgICogVGV4dCBjb2xvclxuICAgKi9cbiAgY29sb3I/OiBzdHJpbmdcblxuICAvKipcbiAgICogSWYgc2V0IHRvIHRydWUgdGhlIHRpdGxlIHdpbGwgYmUgZGlzcGxheWVkIHVzaW5nIHRoZSBgc2VjdGlvbkhlYWRsaW5lYCBpbnN0ZWFkIG9mIGEgYHNtYWxsSGVhZGxpbmVgLlxuICAgKiBCdXQgb25seSBmb3IgbGFyZ2Ugc2NyZWVucy5cbiAgICovXG4gIGxhcmdlV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ICdzZWN0aW9uSGVhZGxpbmUnIDogJ3NtYWxsSGVhZGxpbmUnfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgIDwvZGl2PlxuICAgICAgKX1cbiAgICA8L0NhcmRDb250ZXh0LkNvbnN1bWVyPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IENhcmRUaXRsZVxuIl19 */"),
33
- as: 'div',
34
- styledAs: largeTitle && greaterThan('l') ? 'sectionHeadline' : 'smallHeadline'
35
- }, children));
31
+ return _jsx(CardContext.Consumer, {
32
+ children: function children(context) {
33
+ return _jsx("div", _objectSpread(_objectSpread({
34
+ css: /*#__PURE__*/css("padding-top:", getPadding(context), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CardTitle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jYXJkL0NhcmRUaXRsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUNrQiIsImZpbGUiOiIuLi8uLi9zcmMvY2FyZC9DYXJkVGl0bGUudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IEZ1bmN0aW9uQ29tcG9uZW50IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBUZXh0IH0gZnJvbSAnQGRmZHMtdWkvdHlwb2dyYXBoeSdcbmltcG9ydCB7IHRoZW1lLCB1c2VCcmVha3BvaW50IH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5pbXBvcnQgeyBDYXJkQ29udGV4dCB9IGZyb20gJy4vQ2FyZCdcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0J1xuXG5leHBvcnQgdHlwZSBDYXJkVGl0bGVQcm9wcyA9IHtcbiAgY2hpbGRyZW4/OiBSZWFjd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hjb250ZXh0KX07XG4gICAgICAgICAgYH1cbiAgICAgICAgICB7Li4ucmVzdH1cbiAgICAgICAgPlxuICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICBjc3M9e3sgY29sb3I6IGNvbG9yID8gY29sb3IgOiB0aGVtZS5jb2xvcnMudGV4dC5wcmltYXJ5LnByaW1hcnkgfX1cbiAgICAgICAgICAgIGFzPXsnZGl2J31cbiAgICAgICAgICAgIHN0eWxlZEFzPXtsYXJnZVRpdGxlICYmIGdyZWF0ZXJUaGFuKCdsJykgPyAnc2VjdGlvbkhlYWRsaW5lJyA6ICdzbWFsbEhlYWRsaW5lJ31cbiAgICAgICAgICA+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICl9XG4gICAgPC9DYXJkQ29udGV4dC5Db25zdW1lcj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBDYXJkVGl0bGVcbiJdfQ== */")
35
+ }, rest), {}, {
36
+ children: _jsx(Text, {
37
+ css: /*#__PURE__*/_css({
38
+ color: color ? color : theme.colors.text.primary.primary
39
+ }, process.env.NODE_ENV === "production" ? "" : ";label:CardTitle;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jYXJkL0NhcmRUaXRsZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkNZIiwiZmlsZSI6Ii4uLy4uL3NyYy9jYXJkL0NhcmRUaXRsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFRleHQgfSBmcm9tICdAZGZkcy11aS90eXBvZ3JhcGh5J1xuaW1wb3J0IHsgdGhlbWUsIHVzZUJyZWFrcG9pbnQ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R1cm4gdGhlbWUuc3BhY2luZy5zXG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxDYXJkQ29udGV4dC5Db25zdW1lcj5cbiAgICAgIHsoY29udGV4dCkgPT4gKFxuICAgICAgICA8ZGl2XG4gICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICBwYWRkaW5nLXRvcDogJHtnZXRQYWRkaW5nKGNvbnRleHQpfTtcbiAgICAgICAgICBgfVxuICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICA+XG4gICAgICAgICAgPFRleHRcbiAgICAgICAgICAgIGNzcz17eyBjb2xvcjogY29sb3IgPyBjb2xvciA6IHRoZW1lLmNvbG9ycy50ZXh0LnByaW1hcnkucHJpbWFyeSB9fVxuICAgICAgICAgICAgYXM9eydkaXYnfVxuICAgICAgICAgICAgc3R5bGVkQXM9e2xhcmdlVGl0bGUgJiYgZ3JlYXRlclRoYW4oJ2wnKSA/ICdzZWN0aW9uSGVhZGxpbmUnIDogJ3NtYWxsSGVhZGxpbmUnfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgIDwvZGl2PlxuICAgICAgKX1cbiAgICA8L0NhcmRDb250ZXh0LkNvbnN1bWVyPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IENhcmRUaXRsZVxuIl19 */"),
40
+ as: 'div',
41
+ styledAs: largeTitle && greaterThan('l') ? 'sectionHeadline' : 'smallHeadline',
42
+ children: _children
43
+ })
44
+ }));
45
+ }
36
46
  });
37
47
  };
38
48
  export default CardTitle;
package/chip/Chip.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type InteractionEvent = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>;
3
- export declare type ChipProps = {
2
+ type InteractionEvent = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>;
3
+ export type ChipProps = {
4
4
  children: ReactNode;
5
5
  dismissable?: boolean;
6
6
  disabled?: boolean;
@@ -12,8 +12,8 @@ export declare type ChipProps = {
12
12
  className?: string;
13
13
  };
14
14
  export declare const ChipContainer: import("@emotion/styled").StyledComponent<{
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType;
17
17
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
18
  declare const _default: ({ children, dismissable, disabled, selectable, selected, onToggle, onDismiss, className, ...rest }: ChipProps) => React.JSX.Element;
19
19
  export default _default;
package/chip/Chip.js CHANGED
@@ -1,21 +1,26 @@
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 = ["children", "dismissable", "disabled", "selectable", "selected", "onToggle", "onDismiss", "className"];
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 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); }
4
9
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
10
  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."); }
6
11
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
7
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
8
- 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; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ 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; } }
9
14
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
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; }
15
+ 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; }
16
+ 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; }
12
17
  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)."; }
13
18
  import React, { useState } from 'react';
14
19
  import { css } from '@emotion/react';
15
20
  import { theme } from '@dfds-ui/theme';
16
21
  import { typography } from '@dfds-ui/typography';
17
22
  import { Clear } from '@dfds-ui/icons/system';
18
- import { jsx as ___EmotionJSX } from "@emotion/react";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
19
24
  var Text = /*#__PURE__*/_styled("span", process.env.NODE_ENV === "production" ? {
20
25
  target: "evt86lh3"
21
26
  } : {
@@ -105,7 +110,7 @@ export default (function (_ref4) {
105
110
  toggleSelected(event);
106
111
  handleDismiss(event);
107
112
  };
108
- return ___EmotionJSX(Chip, _extends({
113
+ return _jsxs(Chip, _objectSpread(_objectSpread(_objectSpread({
109
114
  className: className,
110
115
  tabIndex: 0,
111
116
  disabled: disabled,
@@ -117,11 +122,15 @@ export default (function (_ref4) {
117
122
  onKeyPress: function onKeyPress(event) {
118
123
  return event.key === 'Enter' && handleKeyPress(event);
119
124
  }
120
- }, {
125
+ }), {}, {
121
126
  selected: selectable && isSelected
122
- }, rest), ___EmotionJSX(Text, {
123
- dismissable: dismissable
124
- }, children), dismissable && ___EmotionJSX(DismissIcon, {
125
- onClick: handleDismiss
126
- }, ___EmotionJSX(Clear, null)));
127
+ }, rest), {}, {
128
+ children: [_jsx(Text, {
129
+ dismissable: dismissable,
130
+ children: children
131
+ }), dismissable && _jsx(DismissIcon, {
132
+ onClick: handleDismiss,
133
+ children: _jsx(Clear, {})
134
+ })]
135
+ }));
127
136
  });
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { CollapseProps } from '@kunukn/react-collapse';
3
- export declare type AccordionHeaderProps = {
3
+ export type AccordionHeaderProps = {
4
4
  /**
5
5
  * Add heading to the Accordion.
6
6
  */
@@ -35,7 +35,7 @@ export declare type AccordionHeaderProps = {
35
35
  onToggle?: () => void;
36
36
  };
37
37
  export declare const AccordionHeader: React.FunctionComponent<AccordionHeaderProps>;
38
- export declare type AccordionProps = {
38
+ export type AccordionProps = {
39
39
  /**
40
40
  * Add heading to the Accordion.
41
41
  */