@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
@@ -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
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type AccordionContentProps = {
2
+ export type AccordionContentProps = {
3
3
  /**
4
4
  * The compressed variant removes the `margin-bottom` of the Accordion.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type AccordionSmallHeaderProps = {
2
+ export type AccordionSmallHeaderProps = {
3
3
  /**
4
4
  * Add a heading to the Accordion.
5
5
  */
@@ -27,7 +27,7 @@ export declare type AccordionSmallHeaderProps = {
27
27
  onToggle?: () => void;
28
28
  };
29
29
  export declare const AccordionSmallHeader: React.FunctionComponent<AccordionSmallHeaderProps>;
30
- export declare type AccordionSmallProps = {
30
+ export type AccordionSmallProps = {
31
31
  /**
32
32
  * Add a heading to the Accordion.
33
33
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Breakpoint = 's' | 'm' | 'l';
2
+ type Breakpoint = 's' | 'm' | 'l';
3
3
  declare const AppBar: React.FC<{
4
4
  leftActions?: React.ReactNode;
5
5
  actions?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type AppBarState = {
2
+ type AppBarState = {
3
3
  drawerOpen: boolean;
4
4
  setDrawerOpen: React.Dispatch<React.SetStateAction<boolean>>;
5
5
  height: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type AppBarIconButtonProps = {
2
+ type AppBarIconButtonProps = {
3
3
  isActive?: boolean;
4
4
  ariaLabel: string;
5
5
  icon: React.ElementType;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PopperProps } from '@mui/material';
3
- export declare type AppBarItemProps = {
3
+ export type AppBarItemProps = {
4
4
  id: string;
5
5
  Icon?: React.ElementType;
6
6
  LeadingIcon?: React.ElementType;
@@ -17,7 +17,7 @@ export declare type AppBarItemProps = {
17
17
  export declare const MenuPopOverContext: React.Context<{
18
18
  handlePopoverClose: () => void;
19
19
  } | undefined>;
20
- export declare const AppBarPopper: import("@emotion/styled").StyledComponent<Pick<PopperProps, "key" | "id" | "open" | "color" | "transition" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "sx" | "components" | "container" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "componentsProps" | "keepMounted" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement> & {
20
+ export declare const AppBarPopper: import("@emotion/styled").StyledComponent<Pick<PopperProps, "key" | "id" | "open" | "color" | "container" | "transition" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "sx" | "components" | "placement" | "disablePortal" | "modifiers" | "anchorEl" | "componentsProps" | "keepMounted" | "popperOptions" | "popperRef"> & React.RefAttributes<HTMLDivElement> & {
21
21
  theme?: import("@emotion/react").Theme | undefined;
22
22
  }, {}, {}>;
23
23
  export declare const AppBarItem: React.FC<AppBarItemProps & JSX.IntrinsicElements['a']>;
@@ -1,8 +1,8 @@
1
1
  import React, { ElementType, FunctionComponent, ReactNode } from 'react';
2
2
  import { Intent } from '../../common/intent';
3
- export declare type BannerVariant = 'lowEmphasis' | 'mediumEmphasis' | 'highEmphasis' | 'default' | 'inverted';
4
- export declare type BannerStickyPosition = 'top' | 'bottom' | 'bottom-right';
5
- export declare type BannerProps = {
3
+ export type BannerVariant = 'lowEmphasis' | 'mediumEmphasis' | 'highEmphasis' | 'default' | 'inverted';
4
+ export type BannerStickyPosition = 'top' | 'bottom' | 'bottom-right';
5
+ export type BannerProps = {
6
6
  /**
7
7
  * Specifies the intent of the Banner (change the color of the banner icon to match intended status)
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type BannerActionVariation = 'primary' | 'secondary' | 'primary-thick' | 'secondary-thick';
2
+ export type BannerActionVariation = 'primary' | 'secondary' | 'primary-thick' | 'secondary-thick';
3
3
  export interface BannerActionProps {
4
4
  variation?: BannerActionVariation;
5
5
  onClick?: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Intent } from '../../common/intent';
3
- export declare type ToastProps = {
3
+ export type ToastProps = {
4
4
  intent?: Intent;
5
5
  className?: string;
6
6
  loading?: boolean;
@@ -1,9 +1,9 @@
1
1
  import React, { PropsWithChildren, FunctionComponent } from 'react';
2
2
  import { ToastProps } from './Toast';
3
- declare type TimeoutType = {
3
+ type TimeoutType = {
4
4
  timeout?: number;
5
5
  };
6
- declare type ToasterState = {
6
+ type ToasterState = {
7
7
  open: boolean;
8
8
  hasActive: boolean;
9
9
  toastProps: ToastProps | null;
package/badge/Badge.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Intent } from '../common/intent';
3
3
  import { FlexBoxProps } from '../flexbox/FlexBox';
4
- export declare type BadgeProps = {
4
+ export type BadgeProps = {
5
5
  /**
6
6
  * Specifies the intent of the Badge
7
7
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type BadgeIconProps = {
2
+ export type BadgeIconProps = {
3
3
  letter: string;
4
4
  className?: string;
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
3
- export declare type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
4
- export declare type ButtonVariation = typeof variations[number];
5
- export declare type ButtonVariationProps = {
3
+ export type BaseButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['button']>;
4
+ export type ButtonVariation = typeof variations[number];
5
+ export type ButtonVariationProps = {
6
6
  variation?: ButtonVariation;
7
7
  };
8
8
  export declare const BaseButton: import("@emotion/styled").StyledComponent<{
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
3
- declare type ButtonSize = 'medium' | 'small';
4
- declare type IconAlign = 'left' | 'right';
5
- export declare type ButtonProps = BaseButtonProps & ButtonVariationProps & {
3
+ type ButtonSize = 'medium' | 'small';
4
+ type IconAlign = 'left' | 'right';
5
+ export type ButtonProps = BaseButtonProps & ButtonVariationProps & {
6
6
  className?: string;
7
7
  replace?: boolean;
8
8
  submitting?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React, { ElementType, ComponentPropsWithRef } from 'react';
2
2
  import { OverlayOptions } from '@dfds-ui/theme/states';
3
3
  import { PolymorphicComponentProps } from '../common/polymorphic';
4
- export declare type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
4
+ export type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
5
5
  export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
6
6
  /**
7
7
  * Icon to be displayed on the button.
@@ -71,5 +71,5 @@ export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
71
71
  height: string;
72
72
  width: string;
73
73
  };
74
- declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "type" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "ariaLabel" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "icon" | "tooltip" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disableOverlay" | "disableTooltip" | "hoverColor" | "activeColor" | "focusColor" | "overlayOptions"> & React.RefAttributes<HTMLButtonElement>>;
74
+ declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "type" | "key" | "id" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "ariaLabel" | "role" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "icon" | "tooltip" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disableOverlay" | "disableTooltip" | "hoverColor" | "activeColor" | "focusColor" | "overlayOptions"> & React.RefAttributes<HTMLButtonElement>>;
75
75
  export default IconButton;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from './Button';
3
- export declare type LinkButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['a']> & ButtonProps & {
3
+ export type LinkButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['a']> & ButtonProps & {
4
4
  href?: string;
5
5
  target?: string;
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- declare type Orientation = 'horizontal' | 'vertical';
3
- declare type Alignment = 'left' | 'right' | 'center';
4
- declare type ButtonStackProps = {
2
+ type Orientation = 'horizontal' | 'vertical';
3
+ type Alignment = 'left' | 'right' | 'center';
4
+ type ButtonStackProps = {
5
5
  align?: Alignment;
6
6
  orientation?: Orientation;
7
7
  className?: string;
package/card/Card.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import React, { FunctionComponent, ReactNode } from 'react';
2
2
  import { SurfaceType } from '../surface';
3
3
  export declare const CardContext: React.Context<{}>;
4
- export declare type CardContextType = {
4
+ export type CardContextType = {
5
5
  cardSize: 's' | 'm' | 'l' | 'xl';
6
6
  cardVariant: 'outline' | 'fill' | 'surface';
7
7
  };
8
- export declare type CardProps = {
8
+ export type CardProps = {
9
9
  size: 's' | 'm' | 'l' | 'xl';
10
10
  variant: 'outline' | 'fill' | 'surface';
11
11
  surface?: SurfaceType;
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- export declare type CardContentProps = {
2
+ export type CardContentProps = {
3
3
  /**
4
4
  * Text color
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- export declare type CardMediaProps = {
2
+ export type CardMediaProps = {
3
3
  /**
4
4
  * Media component to be displayed
5
5
  */
@@ -13,6 +13,6 @@ export declare type CardMediaProps = {
13
13
  */
14
14
  className?: string;
15
15
  };
16
- export declare type AspectRatio = '2:1' | '3:2';
16
+ export type AspectRatio = '2:1' | '3:2';
17
17
  declare const CardMedia: FunctionComponent<CardMediaProps>;
18
18
  export default CardMedia;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type CardPriceTagProps = {
2
+ export type CardPriceTagProps = {
3
3
  /**
4
4
  * Price for the price tag
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- export declare type CardTitleProps = {
2
+ export type CardTitleProps = {
3
3
  /**
4
4
  * Text color
5
5
  */
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;
@@ -0,0 +1,101 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { CollapseProps } from '@kunukn/react-collapse';
3
+ export type AccordionHeaderProps = {
4
+ /**
5
+ * Add heading to the Accordion.
6
+ */
7
+ heading?: string;
8
+ /**
9
+ * Add secondary heading to the Accordion.
10
+ */
11
+ secondaryHeading?: ReactNode;
12
+ /**
13
+ * Specify the duration of the transition between open and closed.
14
+ */
15
+ transitionDuration?: string;
16
+ /**
17
+ * If set to `true` the Accordion is open.
18
+ */
19
+ isOpen?: boolean;
20
+ /**
21
+ * Disable the Accordion.
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Use the Accordion without animation.
26
+ */
27
+ noAnimation?: boolean;
28
+ /**
29
+ * Hide the secondary heading when the Accordion is opened.
30
+ */
31
+ noSecondaryHeadingWhenOpen?: boolean;
32
+ /**
33
+ * Callback when toggling the accordion
34
+ */
35
+ onToggle?: () => void;
36
+ };
37
+ export declare const AccordionHeader: React.FunctionComponent<AccordionHeaderProps>;
38
+ export type AccordionProps = {
39
+ /**
40
+ * Add heading to the Accordion.
41
+ */
42
+ heading?: string;
43
+ /**
44
+ * Add a custom header to the Accordion.
45
+ */
46
+ header?: ReactNode;
47
+ /**
48
+ * Add secondary heading to the Accordion.
49
+ */
50
+ secondaryHeading?: ReactNode;
51
+ /**
52
+ * Specify the duration of the transition between open and closed.
53
+ */
54
+ transitionDuration?: string;
55
+ /**
56
+ * If set to `true` the Accordion is open.
57
+ */
58
+ isOpen?: boolean;
59
+ /**
60
+ * Disable the Accordion.
61
+ */
62
+ disabled?: boolean;
63
+ /**
64
+ * Callback when toggling the accordion
65
+ */
66
+ onToggle?: () => void;
67
+ /**
68
+ * Props passed on to the Collapse component
69
+ */
70
+ collapseProps?: CollapseProps;
71
+ /**
72
+ * Use the Accordion without animation.
73
+ */
74
+ noAnimation?: boolean;
75
+ /**
76
+ * The compressed variant removes the `margin-bottom` of the Accordion.
77
+ */
78
+ variant?: 'default' | 'compressed';
79
+ /**
80
+ * Specify the content padding of the Accordion.
81
+ */
82
+ type?: 'small' | 'medium';
83
+ /**
84
+ * Add a className to the Accordion.
85
+ */
86
+ className?: string;
87
+ /**
88
+ * Hide the secondary heading when the Accordion is opened.
89
+ */
90
+ noSecondaryHeadingWhenOpen?: boolean;
91
+ /**
92
+ * Hide the Divider (the grey line under the header)
93
+ */
94
+ hideDivider?: boolean;
95
+ /**
96
+ * Updates component with children prop accordingly to the @types update
97
+ */
98
+ children?: ReactNode;
99
+ };
100
+ export declare const Accordion: React.FunctionComponent<AccordionProps>;
101
+ export default Accordion;
@@ -14,11 +14,8 @@ var _theme = require("@dfds-ui/theme");
14
14
  var _divider = require("../divider");
15
15
  var _typography = require("@dfds-ui/typography");
16
16
  var _flexbox = require("../flexbox");
17
- const _excluded = ["children", "isOpen", "header", "disabled", "heading", "secondaryHeading", "transitionDuration", "onToggle", "collapseProps", "noAnimation", "variant", "className", "type", "noSecondaryHeadingWhenOpen", "hideDivider"];
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
  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)."; }
23
20
  var _ref = process.env.NODE_ENV === "production" ? {
24
21
  name: "82a6rk",
@@ -64,27 +61,26 @@ const AccordionHeader = ({
64
61
  }));
65
62
  };
66
63
  exports.AccordionHeader = AccordionHeader;
67
- const Accordion = _ref2 => {
68
- let children = _ref2.children,
69
- isOpen = _ref2.isOpen,
70
- header = _ref2.header,
71
- disabled = _ref2.disabled,
72
- heading = _ref2.heading,
73
- secondaryHeading = _ref2.secondaryHeading,
74
- _ref2$transitionDurat = _ref2.transitionDuration,
75
- transitionDuration = _ref2$transitionDurat === void 0 ? '260ms' : _ref2$transitionDurat,
76
- onToggle = _ref2.onToggle,
77
- _ref2$collapseProps = _ref2.collapseProps,
78
- collapseProps = _ref2$collapseProps === void 0 ? {
79
- overflowOnExpanded: true
80
- } : _ref2$collapseProps,
81
- noAnimation = _ref2.noAnimation,
82
- variant = _ref2.variant,
83
- className = _ref2.className,
84
- type = _ref2.type,
85
- noSecondaryHeadingWhenOpen = _ref2.noSecondaryHeadingWhenOpen,
86
- hideDivider = _ref2.hideDivider,
87
- rest = _objectWithoutProperties(_ref2, _excluded);
64
+ const Accordion = ({
65
+ children,
66
+ isOpen,
67
+ header,
68
+ disabled,
69
+ heading,
70
+ secondaryHeading,
71
+ transitionDuration = '260ms',
72
+ onToggle,
73
+ collapseProps = {
74
+ overflowOnExpanded: true
75
+ },
76
+ noAnimation,
77
+ variant,
78
+ className,
79
+ type,
80
+ noSecondaryHeadingWhenOpen,
81
+ hideDivider,
82
+ ...rest
83
+ }) => {
88
84
  return (0, _react2.jsx)("div", _extends({
89
85
  className: (0, _classnames.default)('accordion', {
90
86
  'accordion--is-open': isOpen,
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export type AccordionContentProps = {
3
+ /**
4
+ * The compressed variant removes the `margin-bottom` of the Accordion.
5
+ */
6
+ variant?: 'default' | 'compressed';
7
+ /**
8
+ * Specify the content padding of the Accordion.
9
+ */
10
+ type?: 'small' | 'medium';
11
+ };
12
+ export declare const AccordionContent: React.FunctionComponent<AccordionContentProps>;
13
+ export default AccordionContent;
@@ -8,16 +8,14 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _react2 = require("@emotion/react");
9
9
  var _theme = require("@dfds-ui/theme");
10
10
  var _typography = require("@dfds-ui/typography");
11
- const _excluded = ["variant", "type", "children"];
12
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
12
  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); }
14
- 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; }
15
- 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; }
16
- const AccordionContent = _ref => {
17
- let variant = _ref.variant,
18
- type = _ref.type,
19
- children = _ref.children,
20
- rest = _objectWithoutProperties(_ref, _excluded);
13
+ const AccordionContent = ({
14
+ variant,
15
+ type,
16
+ children,
17
+ ...rest
18
+ }) => {
21
19
  return (0, _react2.jsx)("div", _extends({
22
20
  className: "accordion__content",
23
21
  css: /*#__PURE__*/(0, _react2.css)(_typography.typography.body, ";margin-bottom:", variant === 'default' ? _theme.theme.spacing.xs : '0', ";padding:0 ", _theme.theme.spacing.s, " ", _theme.theme.spacing.s, ";background-color:white;color:", _theme.theme.colors.text.dark.primary, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:AccordionContent;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hY2NvcmRpb24vQWNjb3JkaW9uQ29udGVudC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUJjIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9hY2NvcmRpb24vQWNjb3JkaW9uQ29udGVudC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IHRoZW1lIH0gZnJvbSAnQGRmZHMtdWkvdGhlbWUnXG5pbXBvcnQgeyB0eXBvZ3JhcGh5IH0gZnJvbSAnQGRmZHMtdWkvdHlwb2dyYXBoeSdcblxuZXhwb3J0IHR5cGUgQWNjb3JkaW9uQ29udGVudFByb3BzID0ge1xuICAvKipcbiAgICogVGhlIGNvbXByZXNzZWQgdmFyaWFudCByZW1vdmVzIHRoZSBgbWFyZ2luLWJvdHRvbWAgb2YgdGhlIEFjY29yZGlvbi5cbiAgICovXG4gIHZhcmlhbnQ/OiAnZGVmYXVsdCcgfCAnY29tcHJlc3NlZCdcbiAgLyoqXG4gICAqIFNwZWNpZnkgdGhlIGNvbnRlbnQgcGFkZGluZyBvZiB0aGUgQWNjb3JkaW9uLlxuICAgKi9cbiAgdHlwZT86ICdzbWFsbCcgfCAnbWVkaXVtJ1xufVxuXG5leHBvcnQgY29uc3QgQWNjb3JkaW9uQ29udGVudDogUmVhY3QuRnVuY3Rpb25Db21wb25lbnQ8QWNjb3JkaW9uQ29udGVudFByb3BzPiA9ICh7XG4gIHZhcmlhbnQsXG4gIHR5cGUsXG4gIGNoaWxkcmVuLFxuICAuLi5yZXN0XG59KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgY2xhc3NOYW1lPVwiYWNjb3JkaW9uX19jb250ZW50XCJcbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICAke3R5cG9ncmFwaHkuYm9keX07XG4gICAgICAgIG1hcmdpbi1ib3R0b206ICR7dmFyaWFudCA9PT0gJ2RlZmF1bHQnID8gdGhlbWUuc3BhY2luZy54cyA6ICcwJ307XG4gICAgICAgIHBhZGRpbmc6IDAgJHt0aGVtZS5zcGFjaW5nLnN9ICR7dGhlbWUuc3BhY2luZy5zfTtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gICAgICAgIGNvbG9yOiAke3RoZW1lLmNvbG9ycy50ZXh0LmRhcmsucHJpbWFyeX07XG4gICAgICBgfVxuICAgICAgey4uLnJlc3R9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvZGl2PlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFjY29yZGlvbkNvbnRlbnRcbiJdfQ== */")
@@ -0,0 +1,55 @@
1
+ import React from 'react';
2
+ export type AccordionSmallHeaderProps = {
3
+ /**
4
+ * Add a heading to the Accordion.
5
+ */
6
+ heading: string;
7
+ /**
8
+ * Add a secondary heading to the Accordion.
9
+ */
10
+ secondaryHeading?: string;
11
+ /**
12
+ * Specify the duration of the transition between open and closed.
13
+ */
14
+ transitionDuration?: string;
15
+ /**
16
+ * If set to `true` the Accordion is open.
17
+ */
18
+ isOpen?: boolean;
19
+ /**
20
+ * Disable the Accordion.
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * Use the Accordion without animation.
25
+ */
26
+ noAnimation?: boolean;
27
+ onToggle?: () => void;
28
+ };
29
+ export declare const AccordionSmallHeader: React.FunctionComponent<AccordionSmallHeaderProps>;
30
+ export type AccordionSmallProps = {
31
+ /**
32
+ * Add a heading to the Accordion.
33
+ */
34
+ heading: string;
35
+ /**
36
+ * Specify the duration of the transition between open and closed.
37
+ */
38
+ transitionDuration?: string;
39
+ /**
40
+ * If set to `true` the Accordion is open.
41
+ */
42
+ isOpen?: boolean;
43
+ /**
44
+ * Disable the Accordion.
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * Use the Accordion without animation.
49
+ */
50
+ noAnimation?: boolean;
51
+ onToggle?: () => void;
52
+ collapseProps?: object;
53
+ };
54
+ export declare const AccordionSmall: React.FunctionComponent<AccordionSmallProps>;
55
+ export default AccordionSmall;