@dfds-ui/react-components 2.0.29 → 2.2.0-alpha.4e495871

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 (375) 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 +2 -2
  26. package/cjs/accordion/Accordion.js +20 -24
  27. package/cjs/accordion/AccordionContent.d.ts +1 -1
  28. package/cjs/accordion/AccordionContent.js +6 -8
  29. package/cjs/accordion/AccordionSmall.d.ts +2 -2
  30. package/cjs/accordion/AccordionSmall.js +11 -14
  31. package/cjs/accordion/index.js +3 -3
  32. package/cjs/app-bar/AppBar.d.ts +1 -1
  33. package/cjs/app-bar/AppBar.js +42 -63
  34. package/cjs/app-bar/AppBarContext.d.ts +1 -1
  35. package/cjs/app-bar/AppBarContext.js +3 -15
  36. package/cjs/app-bar/AppBarDrawer.js +9 -10
  37. package/cjs/app-bar/AppBarIconButton.d.ts +1 -1
  38. package/cjs/app-bar/AppBarIconButton.js +6 -9
  39. package/cjs/app-bar/AppBarItem.d.ts +2 -2
  40. package/cjs/app-bar/AppBarItem.js +17 -31
  41. package/cjs/app-bar/index.js +8 -8
  42. package/cjs/assertions/banner/Banner.d.ts +3 -3
  43. package/cjs/assertions/banner/Banner.js +23 -43
  44. package/cjs/assertions/banner/BannerAction.d.ts +1 -1
  45. package/cjs/assertions/banner/BannerAction.js +7 -9
  46. package/cjs/assertions/banner/index.js +3 -3
  47. package/cjs/assertions/index.js +2 -2
  48. package/cjs/assertions/toast/Toast.d.ts +1 -1
  49. package/cjs/assertions/toast/Toast.js +9 -13
  50. package/cjs/assertions/toast/Toaster.d.ts +2 -2
  51. package/cjs/assertions/toast/Toaster.js +20 -39
  52. package/cjs/assertions/toast/index.js +4 -4
  53. package/cjs/badge/Badge.d.ts +1 -1
  54. package/cjs/badge/Badge.js +9 -14
  55. package/cjs/badge/index.js +3 -3
  56. package/cjs/button/BadgeIcon.d.ts +1 -1
  57. package/cjs/button/BaseButton.d.ts +3 -3
  58. package/cjs/button/Button.d.ts +3 -3
  59. package/cjs/button/Button.js +13 -20
  60. package/cjs/button/IconButton.d.ts +2 -2
  61. package/cjs/button/IconButton.js +19 -27
  62. package/cjs/button/LinkButton.d.ts +1 -1
  63. package/cjs/button/LinkButton.js +1 -1
  64. package/cjs/button/index.js +8 -8
  65. package/cjs/button-stack/ButtonStack.d.ts +3 -3
  66. package/cjs/button-stack/ButtonStack.js +8 -12
  67. package/cjs/button-stack/index.js +1 -1
  68. package/cjs/card/Card.d.ts +2 -2
  69. package/cjs/card/Card.js +21 -37
  70. package/cjs/card/CardActions.js +6 -10
  71. package/cjs/card/CardContent.d.ts +1 -1
  72. package/cjs/card/CardContent.js +10 -14
  73. package/cjs/card/CardMedia.d.ts +2 -2
  74. package/cjs/card/CardMedia.js +6 -9
  75. package/cjs/card/CardPriceTag.d.ts +1 -1
  76. package/cjs/card/CardPriceTag.js +7 -11
  77. package/cjs/card/CardTitle.d.ts +1 -1
  78. package/cjs/card/CardTitle.js +9 -11
  79. package/cjs/card/index.js +6 -6
  80. package/cjs/chip/Chip.d.ts +2 -2
  81. package/cjs/chip/Chip.js +13 -28
  82. package/cjs/chip/index.js +3 -3
  83. package/cjs/common/LockBodyScroll.d.ts +2 -2
  84. package/cjs/common/LockBodyScroll.js +5 -8
  85. package/cjs/common/arrow.d.ts +1 -1
  86. package/cjs/common/emotionCloneElement.js +5 -8
  87. package/cjs/common/intent.d.ts +1 -1
  88. package/cjs/common/polymorphic.d.ts +2 -2
  89. package/cjs/common/polymorphic.js +3 -3
  90. package/cjs/common/use-media.js +1 -10
  91. package/cjs/common/useOnClickOutside.d.ts +1 -1
  92. package/cjs/counter/Counter.d.ts +1 -1
  93. package/cjs/counter/Counter.js +4 -14
  94. package/cjs/counter/PluralCounter.d.ts +1 -1
  95. package/cjs/counter/PluralCounter.js +10 -22
  96. package/cjs/counter/index.js +2 -2
  97. package/cjs/data-table/DataTable.d.ts +1 -1
  98. package/cjs/data-table/DataTable.js +16 -27
  99. package/cjs/data-table/index.js +1 -1
  100. package/cjs/date-range-picker/DateRangePicker.js +28 -55
  101. package/cjs/date-range-picker/index.js +1 -1
  102. package/cjs/divider/Divider.d.ts +1 -1
  103. package/cjs/divider/Divider.js +9 -9
  104. package/cjs/divider/index.js +1 -1
  105. package/cjs/drawer/Drawer.d.ts +4 -4
  106. package/cjs/drawer/Drawer.js +9 -15
  107. package/cjs/drawer/index.js +1 -1
  108. package/cjs/dropdown-menu/Dropdown.d.ts +2 -2
  109. package/cjs/dropdown-menu/Dropdown.js +18 -32
  110. package/cjs/dropdown-menu/DropdownContext.d.ts +2 -2
  111. package/cjs/dropdown-menu/DropdownContext.js +1 -1
  112. package/cjs/dropdown-menu/MenuCheckbox.js +3 -2
  113. package/cjs/dropdown-menu/MenuItem.js +18 -30
  114. package/cjs/dropdown-menu/MenuTitle.js +3 -2
  115. package/cjs/dropdown-menu/index.js +6 -6
  116. package/cjs/elevation/index.d.ts +1 -1
  117. package/cjs/flexbox/FlexBox.d.ts +2 -2
  118. package/cjs/flexbox/FlexBox.js +3 -11
  119. package/cjs/flexbox/index.js +1 -1
  120. package/cjs/footer/index.js +1 -1
  121. package/cjs/forms/checkbox/Checkbox.d.ts +4 -4
  122. package/cjs/forms/checkbox/Checkbox.js +14 -19
  123. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  124. package/cjs/forms/checkbox/ExampleControlComponent.js +6 -17
  125. package/cjs/forms/checkbox/index.js +1 -1
  126. package/cjs/forms/email-field/EmailField.d.ts +1 -1
  127. package/cjs/forms/field/Field.d.ts +1 -1
  128. package/cjs/forms/index.d.ts +3 -3
  129. package/cjs/forms/index.js +18 -18
  130. package/cjs/forms/input/Input.d.ts +3 -3
  131. package/cjs/forms/input/Input.js +13 -15
  132. package/cjs/forms/input/InputComposition.d.ts +7 -7
  133. package/cjs/forms/input/InputComposition.js +23 -27
  134. package/cjs/forms/label/Label.d.ts +1 -1
  135. package/cjs/forms/label/Label.js +6 -8
  136. package/cjs/forms/number-field/NumberField.d.ts +1 -1
  137. package/cjs/forms/password-field/PasswordField.d.ts +1 -1
  138. package/cjs/forms/password-field/PasswordField.js +2 -11
  139. package/cjs/forms/radio/Radio.d.ts +4 -4
  140. package/cjs/forms/radio/Radio.js +27 -32
  141. package/cjs/forms/reactselect/ReactSelect.d.ts +2 -2
  142. package/cjs/forms/reactselect/ReactSelect.js +40 -48
  143. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
  144. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +29 -33
  145. package/cjs/forms/select/Select.d.ts +4 -4
  146. package/cjs/forms/select/Select.js +10 -12
  147. package/cjs/forms/select-field/SelectField.d.ts +2 -2
  148. package/cjs/forms/select-field/SelectField.js +13 -14
  149. package/cjs/forms/switch/Switch.d.ts +2 -2
  150. package/cjs/forms/switch/Switch.js +11 -15
  151. package/cjs/forms/tel-field/TelField.d.ts +1 -1
  152. package/cjs/forms/text-field/TextField.d.ts +3 -3
  153. package/cjs/forms/text-field/TextField.js +16 -17
  154. package/cjs/grid/Column.d.ts +1 -1
  155. package/cjs/grid/Column.js +8 -10
  156. package/cjs/grid/Container.d.ts +1 -1
  157. package/cjs/grid/Container.js +9 -11
  158. package/cjs/grid/index.js +2 -2
  159. package/cjs/hero/Hero.d.ts +1 -1
  160. package/cjs/hero/index.js +1 -1
  161. package/cjs/hero/stripes.d.ts +1 -1
  162. package/cjs/ie-banner/IEBanner.d.ts +1 -1
  163. package/cjs/ie-banner/IEBanner.js +4 -19
  164. package/cjs/ie-banner/index.js +1 -1
  165. package/cjs/index.js +45 -45
  166. package/cjs/lists/FeatureList.d.ts +2 -2
  167. package/cjs/lists/FeatureList.js +7 -10
  168. package/cjs/lists/ListAddon.d.ts +1 -1
  169. package/cjs/lists/ListAddon.js +6 -9
  170. package/cjs/lists/ListDivider.d.ts +1 -1
  171. package/cjs/lists/ListDivider.js +6 -9
  172. package/cjs/lists/ListIcon.d.ts +2 -2
  173. package/cjs/lists/ListIcon.js +12 -15
  174. package/cjs/lists/ListItem.d.ts +1 -1
  175. package/cjs/lists/ListItem.js +15 -24
  176. package/cjs/lists/ListText.d.ts +3 -3
  177. package/cjs/lists/ListText.js +8 -11
  178. package/cjs/lists/ListTextGroup.d.ts +1 -1
  179. package/cjs/lists/ListTextGroup.js +9 -13
  180. package/cjs/lists/ListTitle.js +4 -7
  181. package/cjs/lists/index.js +8 -8
  182. package/cjs/loader/DfdsLoader.js +2 -2
  183. package/cjs/loader/Loader.d.ts +1 -1
  184. package/cjs/loader/index.js +2 -2
  185. package/cjs/localization/LocaleFlag.d.ts +1 -1
  186. package/cjs/localization/LocaleFlag.js +8 -12
  187. package/cjs/localization/index.js +2 -2
  188. package/cjs/localization/locales.d.ts +2 -2
  189. package/cjs/logo/Logo.d.ts +1 -1
  190. package/cjs/logo/Logo.js +5 -7
  191. package/cjs/logo/index.js +1 -1
  192. package/cjs/menu/Menu.d.ts +1 -1
  193. package/cjs/menu/Menu.js +18 -20
  194. package/cjs/menu/index.js +3 -3
  195. package/cjs/mobile-stepper/MobileStepper.d.ts +1 -1
  196. package/cjs/mobile-stepper/MobileStepper.js +8 -12
  197. package/cjs/mobile-stepper/index.js +1 -1
  198. package/cjs/nav-bar/NavBar.d.ts +4 -4
  199. package/cjs/nav-bar/NavBar.js +24 -36
  200. package/cjs/nav-bar/index.js +3 -3
  201. package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
  202. package/cjs/nav-menu/index.js +1 -1
  203. package/cjs/pagination/Pagination.d.ts +2 -2
  204. package/cjs/pagination/Pagination.js +7 -6
  205. package/cjs/pagination/index.js +1 -1
  206. package/cjs/popper/Popper.d.ts +2 -2
  207. package/cjs/popper/Popper.js +21 -25
  208. package/cjs/popper/index.js +1 -1
  209. package/cjs/progress-bar/ProgressBar.d.ts +1 -1
  210. package/cjs/progress-bar/index.js +3 -3
  211. package/cjs/schedule/ScheduleItem.d.ts +2 -2
  212. package/cjs/schedule/ScheduleList.d.ts +3 -3
  213. package/cjs/schedule/ScheduleList.js +4 -6
  214. package/cjs/schedule/index.js +2 -2
  215. package/cjs/side-sheet/SideSheet.d.ts +4 -4
  216. package/cjs/side-sheet/SideSheet.js +29 -45
  217. package/cjs/side-sheet/SideSheetCloseButton.d.ts +1 -1
  218. package/cjs/side-sheet/SideSheetCloseButton.js +8 -13
  219. package/cjs/side-sheet/SideSheetContent.d.ts +1 -1
  220. package/cjs/side-sheet/SideSheetContent.js +6 -8
  221. package/cjs/side-sheet/SideSheetFooter.d.ts +1 -1
  222. package/cjs/side-sheet/SideSheetFooter.js +6 -8
  223. package/cjs/side-sheet/SideSheetHeader.d.ts +1 -1
  224. package/cjs/side-sheet/SideSheetHeader.js +8 -11
  225. package/cjs/side-sheet/SideSheetHeadline.d.ts +1 -1
  226. package/cjs/side-sheet/index.js +5 -5
  227. package/cjs/site-layout/SiteLayout.d.ts +3 -3
  228. package/cjs/site-layout/SiteLayout.js +24 -27
  229. package/cjs/site-layout/index.js +3 -3
  230. package/cjs/skeleton/Skeleton.d.ts +1 -1
  231. package/cjs/skeleton/Skeleton.js +10 -14
  232. package/cjs/skeleton/index.js +1 -1
  233. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
  234. package/cjs/social-media-link-list/SocialMediaLinkList.js +13 -15
  235. package/cjs/social-media-link-list/index.js +1 -1
  236. package/cjs/spinner/Spinner.d.ts +2 -2
  237. package/cjs/spinner/Spinner.js +8 -12
  238. package/cjs/spinner/index.js +1 -1
  239. package/cjs/step/Step.d.ts +1 -1
  240. package/cjs/step/Step.js +21 -29
  241. package/cjs/step/StepButton.d.ts +1 -1
  242. package/cjs/step/StepButton.js +14 -12
  243. package/cjs/step/StepContent.d.ts +1 -1
  244. package/cjs/step/StepContent.js +3 -2
  245. package/cjs/step/StepContext.d.ts +1 -1
  246. package/cjs/step/StepLabel.d.ts +1 -1
  247. package/cjs/step/StepLabel.js +4 -3
  248. package/cjs/step/index.js +1 -1
  249. package/cjs/stepper/Stepper.d.ts +1 -1
  250. package/cjs/stepper/Stepper.js +13 -22
  251. package/cjs/stepper/StepperContext.d.ts +1 -1
  252. package/cjs/stepper/index.js +1 -1
  253. package/cjs/stepper-feedback-message/index.js +1 -1
  254. package/cjs/styles/index.js +5 -5
  255. package/cjs/styles/media.d.ts +1 -1
  256. package/cjs/styles/theme.d.ts +1 -1
  257. package/cjs/surface/Surface.d.ts +2 -2
  258. package/cjs/surface/Surface.js +13 -19
  259. package/cjs/surface/index.js +1 -1
  260. package/cjs/tab/Tab.d.ts +2 -2
  261. package/cjs/tab/Tab.js +13 -14
  262. package/cjs/tab/TabPanel.d.ts +1 -1
  263. package/cjs/tab/TabPanel.js +3 -2
  264. package/cjs/tab/Tabs.d.ts +2 -2
  265. package/cjs/tab/Tabs.js +21 -37
  266. package/cjs/tab/TabsContext.d.ts +1 -1
  267. package/cjs/tab/TabsContext.js +1 -1
  268. package/cjs/tab/index.js +4 -4
  269. package/cjs/table/Table.d.ts +2 -2
  270. package/cjs/table/Table.js +7 -11
  271. package/cjs/table/TableBody.d.ts +1 -1
  272. package/cjs/table/TableBody.js +5 -7
  273. package/cjs/table/TableDataCell.d.ts +1 -1
  274. package/cjs/table/TableDataCell.js +6 -9
  275. package/cjs/table/TableHead.d.ts +1 -1
  276. package/cjs/table/TableHead.js +9 -10
  277. package/cjs/table/TableHeaderCell.d.ts +2 -2
  278. package/cjs/table/TableHeaderCell.js +6 -9
  279. package/cjs/table/TableRow.d.ts +1 -1
  280. package/cjs/table/TableRow.js +10 -12
  281. package/cjs/table/index.js +6 -6
  282. package/cjs/tooltip/Tooltip.d.ts +2 -2
  283. package/cjs/tooltip/Tooltip.js +11 -12
  284. package/cjs/tooltip/index.js +3 -3
  285. package/cjs/typography/Headlines.js +8 -11
  286. package/cjs/typography/index.js +2 -2
  287. package/common/LockBodyScroll.d.ts +2 -2
  288. package/common/arrow.d.ts +1 -1
  289. package/common/intent.d.ts +1 -1
  290. package/common/polymorphic.d.ts +2 -2
  291. package/common/useOnClickOutside.d.ts +1 -1
  292. package/counter/Counter.d.ts +1 -1
  293. package/counter/PluralCounter.d.ts +1 -1
  294. package/data-table/DataTable.d.ts +1 -1
  295. package/divider/Divider.d.ts +1 -1
  296. package/drawer/Drawer.d.ts +4 -4
  297. package/dropdown-menu/Dropdown.d.ts +2 -2
  298. package/dropdown-menu/DropdownContext.d.ts +2 -2
  299. package/elevation/index.d.ts +1 -1
  300. package/flexbox/FlexBox.d.ts +2 -2
  301. package/forms/checkbox/Checkbox.d.ts +4 -4
  302. package/forms/checkbox/ExampleControlComponent.d.ts +1 -1
  303. package/forms/email-field/EmailField.d.ts +1 -1
  304. package/forms/field/Field.d.ts +1 -1
  305. package/forms/index.d.ts +3 -3
  306. package/forms/input/Input.d.ts +3 -3
  307. package/forms/input/InputComposition.d.ts +7 -7
  308. package/forms/label/Label.d.ts +1 -1
  309. package/forms/number-field/NumberField.d.ts +1 -1
  310. package/forms/password-field/PasswordField.d.ts +1 -1
  311. package/forms/radio/Radio.d.ts +4 -4
  312. package/forms/reactselect/ReactSelect.d.ts +2 -2
  313. package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
  314. package/forms/select/Select.d.ts +4 -4
  315. package/forms/select-field/SelectField.d.ts +2 -2
  316. package/forms/switch/Switch.d.ts +2 -2
  317. package/forms/tel-field/TelField.d.ts +1 -1
  318. package/forms/text-field/TextField.d.ts +3 -3
  319. package/grid/Column.d.ts +1 -1
  320. package/grid/Container.d.ts +1 -1
  321. package/hero/Hero.d.ts +1 -1
  322. package/hero/stripes.d.ts +1 -1
  323. package/ie-banner/IEBanner.d.ts +1 -1
  324. package/lists/FeatureList.d.ts +2 -2
  325. package/lists/ListAddon.d.ts +1 -1
  326. package/lists/ListDivider.d.ts +1 -1
  327. package/lists/ListIcon.d.ts +2 -2
  328. package/lists/ListItem.d.ts +1 -1
  329. package/lists/ListText.d.ts +3 -3
  330. package/lists/ListTextGroup.d.ts +1 -1
  331. package/loader/Loader.d.ts +1 -1
  332. package/localization/LocaleFlag.d.ts +1 -1
  333. package/localization/locales.d.ts +2 -2
  334. package/logo/Logo.d.ts +1 -1
  335. package/menu/Menu.d.ts +1 -1
  336. package/mobile-stepper/MobileStepper.d.ts +1 -1
  337. package/nav-bar/NavBar.d.ts +4 -4
  338. package/nav-menu/NavMenuItem.d.ts +1 -1
  339. package/package.json +10 -10
  340. package/pagination/Pagination.d.ts +2 -2
  341. package/popper/Popper.d.ts +2 -2
  342. package/progress-bar/ProgressBar.d.ts +1 -1
  343. package/schedule/ScheduleItem.d.ts +2 -2
  344. package/schedule/ScheduleList.d.ts +3 -3
  345. package/side-sheet/SideSheet.d.ts +4 -4
  346. package/side-sheet/SideSheetCloseButton.d.ts +1 -1
  347. package/side-sheet/SideSheetContent.d.ts +1 -1
  348. package/side-sheet/SideSheetFooter.d.ts +1 -1
  349. package/side-sheet/SideSheetHeader.d.ts +1 -1
  350. package/side-sheet/SideSheetHeadline.d.ts +1 -1
  351. package/site-layout/SiteLayout.d.ts +3 -3
  352. package/skeleton/Skeleton.d.ts +1 -1
  353. package/social-media-link-list/SocialMediaLinkList.d.ts +2 -2
  354. package/spinner/Spinner.d.ts +2 -2
  355. package/step/Step.d.ts +1 -1
  356. package/step/StepButton.d.ts +1 -1
  357. package/step/StepContent.d.ts +1 -1
  358. package/step/StepContext.d.ts +1 -1
  359. package/step/StepLabel.d.ts +1 -1
  360. package/stepper/Stepper.d.ts +1 -1
  361. package/stepper/StepperContext.d.ts +1 -1
  362. package/styles/media.d.ts +1 -1
  363. package/styles/theme.d.ts +1 -1
  364. package/surface/Surface.d.ts +2 -2
  365. package/tab/Tab.d.ts +2 -2
  366. package/tab/TabPanel.d.ts +1 -1
  367. package/tab/Tabs.d.ts +2 -2
  368. package/tab/TabsContext.d.ts +1 -1
  369. package/table/Table.d.ts +2 -2
  370. package/table/TableBody.d.ts +1 -1
  371. package/table/TableDataCell.d.ts +1 -1
  372. package/table/TableHead.d.ts +1 -1
  373. package/table/TableHeaderCell.d.ts +2 -2
  374. package/table/TableRow.d.ts +1 -1
  375. package/tooltip/Tooltip.d.ts +2 -2
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { theme } from '@dfds-ui/theme';
3
3
  import { typography } from '@dfds-ui/typography';
4
- declare type FontFamily = keyof typeof theme.fontFamilies;
5
- declare type StyledAs = keyof Pick<typeof typography, 'body' | 'bodyBold' | 'action' | 'actionBold' | 'label' | 'labelBold' | 'labelSmall' | 'caption' | 'sectionHeadline' | 'subHeadline' | 'smallHeadline'>;
6
- export declare type ListTextProps = {
4
+ type FontFamily = keyof typeof theme.fontFamilies;
5
+ type StyledAs = keyof Pick<typeof typography, 'body' | 'bodyBold' | 'action' | 'actionBold' | 'label' | 'labelBold' | 'labelSmall' | 'caption' | 'sectionHeadline' | 'subHeadline' | 'smallHeadline'>;
6
+ export type ListTextProps = {
7
7
  /**
8
8
  * Set the style of the text.
9
9
  */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { FlexBoxProps } from '../flexbox/FlexBox';
3
- export declare type ListTextGroupProps = {
3
+ export type ListTextGroupProps = {
4
4
  /**
5
5
  * Props controlling the flexbox.
6
6
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  label?: string;
4
4
  };
5
5
  declare function Loader(props: Props): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import { Locale } from './locales';
3
- export declare type LocaleFlagProps = {
3
+ export type LocaleFlagProps = {
4
4
  /**
5
5
  * The locale specifying which flag will be rendered.
6
6
  */
@@ -1,8 +1,8 @@
1
1
  import * as flags from '@dfds-ui/icons/flags';
2
2
  export declare const locales: readonly ["en", "nl-BE", "bg-BG", "pt-BR", "en-CA", "zh-CN", "cs-CZ", "da-DK", "et-EE", "fi-FI", "fr-BE", "fr-FR", "fr-MA", "de-DE", "hu-HU", "it-IT", "ja-JP", "lv-LV", "lt-LT", "nl-NL", "nb-NO", "pl-PL", "ro-RO", "ru-RU", "sk-SK", "ko-KR", "es-ES", "sv-SE", "tr-TR", "en-GB", "en-US"];
3
- export declare type Locale = typeof locales[number];
3
+ export type Locale = typeof locales[number];
4
4
  export declare const fallbackLocale = "en";
5
- export declare type LocaleInfo = {
5
+ export type LocaleInfo = {
6
6
  /**
7
7
  * Name of the country
8
8
  */
package/logo/Logo.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type LogoProps = {
2
+ export type LogoProps = {
3
3
  className?: string;
4
4
  title?: string;
5
5
  width?: string | number;
package/menu/Menu.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type MenuItemProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
2
+ export type MenuItemProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
3
3
  children?: React.ReactNode;
4
4
  onClick: React.MouseEventHandler<HTMLDivElement>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- declare type MobileStepperProps = {
2
+ type MobileStepperProps = {
3
3
  /**
4
4
  * Total steps
5
5
  */
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- declare type ItemAlignment = 'left' | 'right';
3
- declare type NavBarProps = {
2
+ type ItemAlignment = 'left' | 'right';
3
+ type NavBarProps = {
4
4
  className?: string;
5
5
  showLogo?: boolean;
6
6
  href?: string;
7
7
  };
8
- declare type ItemProps = {
8
+ type ItemProps = {
9
9
  href?: string;
10
10
  className?: string;
11
11
  alignment?: ItemAlignment;
@@ -14,7 +14,7 @@ declare type ItemProps = {
14
14
  };
15
15
  declare const NavBar: React.FunctionComponent<NavBarProps>;
16
16
  export declare const NavBarItem: React.FunctionComponent<ItemProps>;
17
- declare type NavBarIconProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & // React.AnchorHTMLAttributes<HTMLAnchorElement> &
17
+ type NavBarIconProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & // React.AnchorHTMLAttributes<HTMLAnchorElement> &
18
18
  ItemProps & {
19
19
  menu?: React.ReactNode;
20
20
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type NavMenuItemProps = {
2
+ type NavMenuItemProps = {
3
3
  isActive?: boolean;
4
4
  leftIcon?: React.ElementType;
5
5
  rightIcon?: React.ElementType;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared react components within DFDS",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.0.29",
6
+ "version": "2.2.0-alpha.4e495871",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -18,13 +18,13 @@
18
18
  "react-select": "^4.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@dfds-ui/colors": "2.0.29",
22
- "@dfds-ui/fonts": "2.0.29",
23
- "@dfds-ui/hooks": "2.0.29",
24
- "@dfds-ui/icons": "2.0.29",
25
- "@dfds-ui/spacing": "2.0.29",
26
- "@dfds-ui/theme": "2.0.29",
27
- "@dfds-ui/typography": "2.0.29",
21
+ "@dfds-ui/colors": "2.2.0-alpha.4e495871",
22
+ "@dfds-ui/fonts": "2.2.0-alpha.4e495871",
23
+ "@dfds-ui/hooks": "2.2.0-alpha.4e495871",
24
+ "@dfds-ui/icons": "2.2.0-alpha.4e495871",
25
+ "@dfds-ui/spacing": "2.2.0-alpha.4e495871",
26
+ "@dfds-ui/theme": "2.2.0-alpha.4e495871",
27
+ "@dfds-ui/typography": "2.2.0-alpha.4e495871",
28
28
  "@kunukn/react-collapse": "^2.2.9",
29
29
  "@mui/base": "^5.0.0-alpha.102",
30
30
  "@mui/material": "^5.10.10",
@@ -34,9 +34,9 @@
34
34
  "classnames": "^2.3.2",
35
35
  "humps": "^2.0.1",
36
36
  "react-hook-intersection-observer": "^0.1.0",
37
- "uuid": "^9.0.0"
37
+ "uuid": "^11.1.1"
38
38
  },
39
- "gitHead": "60bd70013cac7851ef2636948985f2ecdecc0729",
39
+ "gitHead": "4e4958718cdb23e314fd502618fa60c2613b0c6b",
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  }
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type Option = {
2
+ type Option = {
3
3
  disabled?: boolean;
4
4
  label: string;
5
5
  value: number;
6
6
  };
7
- export declare type PaginationProps = {
7
+ export type PaginationProps = {
8
8
  /**
9
9
  * The current page.
10
10
  */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PopperProps, PopperPlacementType } from '@mui/material';
3
- export declare type PopperBaseProps = {
3
+ export type PopperBaseProps = {
4
4
  open?: boolean;
5
5
  children: React.ReactElement | string;
6
6
  anchorEl?: any;
@@ -22,7 +22,7 @@ export declare type PopperBaseProps = {
22
22
  modifiers?: PopperProps['modifiers'];
23
23
  };
24
24
  export declare const PopperBase: ({ open, children, anchorEl, id, placement, onClickAway, className, noMaxWidthRestriction, ...rest }: PopperBaseProps) => JSX.Element;
25
- declare type PopperComponentProps = {
25
+ type PopperComponentProps = {
26
26
  setAnchorEl: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
27
27
  } & Omit<PopperBaseProps, 'onClickAway'>;
28
28
  declare const Popper: ({ children, anchorEl, id, setAnchorEl, placement, popperRef, ...rest }: PopperComponentProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type ProgressBarProps = {
2
+ export type ProgressBarProps = {
3
3
  light?: boolean;
4
4
  indeterminate?: boolean;
5
5
  progress?: number;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type ListItemProps = {
2
+ export type ListItemProps = {
3
3
  time: string;
4
4
  text: string;
5
5
  backgroundColor?: string;
@@ -16,6 +16,6 @@ export declare const ListItemBase: import("@emotion/styled").StyledComponent<{
16
16
  } & {
17
17
  backgroundColor?: string | undefined;
18
18
  }, {}, {}>;
19
- declare type ScheduleItemComponent = FunctionComponent<ListItemProps>;
19
+ type ScheduleItemComponent = FunctionComponent<ListItemProps>;
20
20
  declare const ScheduleItem: ScheduleItemComponent;
21
21
  export default ScheduleItem;
@@ -1,11 +1,11 @@
1
1
  import { FunctionComponent } from 'react';
2
- declare type ScheduleListItem = {
2
+ type ScheduleListItem = {
3
3
  time: string;
4
4
  text: string;
5
5
  };
6
- declare type ScheduleListProps = {
6
+ type ScheduleListProps = {
7
7
  items: ScheduleListItem[];
8
8
  };
9
- declare type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
9
+ type ScheduleListComponent = FunctionComponent<ScheduleListProps>;
10
10
  declare const ScheduleList: ScheduleListComponent;
11
11
  export default ScheduleList;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- declare type Variant = 'nested' | 'elevated';
3
- declare type BackdropEmphasis = 'low' | 'high';
4
- declare type Align = 'left' | 'right';
5
- export declare type SideSheetProps = {
2
+ type Variant = 'nested' | 'elevated';
3
+ type BackdropEmphasis = 'low' | 'high';
4
+ type Align = 'left' | 'right';
5
+ export type SideSheetProps = {
6
6
  children?: React.ReactNode;
7
7
  /**
8
8
  * Choose the `width` of the `SideSheet`.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconButtonSize } from '../button/IconButton';
3
- export declare type SideSheetCloseButtonProps = {
3
+ export type SideSheetCloseButtonProps = {
4
4
  onRequestClose?: () => void;
5
5
  className?: string;
6
6
  icon?: React.ElementType;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SideSheetFooterProps = {
2
+ export type SideSheetFooterProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SideSheetFooterProps = {
2
+ export type SideSheetFooterProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type ModalHeaderProps = {
2
+ export type ModalHeaderProps = {
3
3
  className?: string;
4
4
  sticky?: boolean;
5
5
  children?: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare type SideSheetHeadlineProps = {
2
+ export type SideSheetHeadlineProps = {
3
3
  className?: string;
4
4
  children?: ReactNode;
5
5
  };
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- declare type RenderAs = {
2
+ type RenderAs = {
3
3
  as?: React.ElementType;
4
4
  };
5
- declare type LayoutProps = {
5
+ type LayoutProps = {
6
6
  fullWidth?: boolean;
7
7
  className?: string;
8
8
  } & RenderAs;
9
- declare type LayoutChildProps = {
9
+ type LayoutChildProps = {
10
10
  fullWidth?: boolean;
11
11
  className?: string;
12
12
  } & RenderAs;
@@ -3,6 +3,6 @@ export interface SkeletonProps {
3
3
  variant: SkeletonVariant;
4
4
  disableAnimation?: boolean;
5
5
  }
6
- export declare type SkeletonVariant = 'text' | 'circle' | 'rect';
6
+ export type SkeletonVariant = 'text' | 'circle' | 'rect';
7
7
  export declare const Skeleton: ({ variant, disableAnimation, ...rest }: SkeletonProps) => JSX.Element;
8
8
  export default Skeleton;
@@ -1,5 +1,5 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export declare type SocialMediaLinkListProps = {
2
+ export type SocialMediaLinkListProps = {
3
3
  instagramLink?: string;
4
4
  facebookLink?: string;
5
5
  blogLink?: string;
@@ -21,6 +21,6 @@ export declare const SoMeWrapper: import("@emotion/styled").StyledComponent<{
21
21
  } & {
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
23
  } & SocialMediaLinkListProps, {}, {}>;
24
- declare type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
24
+ type socialMediaLinkListComponent = FunctionComponent<SocialMediaLinkListProps>;
25
25
  export declare const SocialMediaLinkList: socialMediaLinkListComponent;
26
26
  export default SocialMediaLinkList;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { PolymorphicComponentProps } from '../common/polymorphic';
3
- declare type Color = 'dark' | 'secondary' | 'light';
4
- export declare type SpinnerProps = {
3
+ type Color = 'dark' | 'secondary' | 'light';
4
+ export type SpinnerProps = {
5
5
  /**
6
6
  * Indicates that Spinner will show up instantaneously (instead of fading in).
7
7
  *
package/step/Step.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type StepProps = {
2
+ export type StepProps = {
3
3
  /**
4
4
  * The position of the step
5
5
  */
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- declare type StepButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
2
+ type StepButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
3
3
  declare const StepButton: React.FC<StepButtonProps>;
4
4
  export default StepButton;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- declare type StepContentProps = {
2
+ type StepContentProps = {
3
3
  children: ReactNode;
4
4
  };
5
5
  declare const StepContent: ({ children }: StepContentProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type StepContextType = {
2
+ export type StepContextType = {
3
3
  index: number;
4
4
  active: boolean;
5
5
  hasError?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- declare type StepLableTypes = {
2
+ type StepLableTypes = {
3
3
  children: ReactNode;
4
4
  optionalStepText?: ReactNode;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type StepperProps = {
2
+ export type StepperProps = {
3
3
  /**
4
4
  * Stepper layout orientation `'horizontal' | 'vertical'`
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type StepperContextType = {
2
+ type StepperContextType = {
3
3
  activeStep: number;
4
4
  orientation: 'horizontal' | 'vertical';
5
5
  sequential: boolean;
package/styles/media.d.ts CHANGED
@@ -5,7 +5,7 @@ declare const defaultBreakPoints: {
5
5
  sm: number;
6
6
  xs: number;
7
7
  };
8
- declare type BreakPoint = keyof typeof defaultBreakPoints | number;
8
+ type BreakPoint = keyof typeof defaultBreakPoints | number;
9
9
  export declare function legacyGenerateMedia(breakPoints: typeof defaultBreakPoints): {
10
10
  lt: (breakPoint: BreakPoint) => string;
11
11
  gt: (breakPoint: BreakPoint) => string;
package/styles/theme.d.ts CHANGED
@@ -35,5 +35,5 @@ export declare const theme: {
35
35
  };
36
36
  uiRoundness: string;
37
37
  };
38
- export declare type ThemeInterface = typeof theme;
38
+ export type ThemeInterface = typeof theme;
39
39
  export default theme;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { theme } from '@dfds-ui/theme';
3
- export declare type SurfaceType = keyof typeof theme.colors.surface;
4
- export declare type SurfaceContextType = {
3
+ export type SurfaceType = keyof typeof theme.colors.surface;
4
+ export type SurfaceContextType = {
5
5
  surface: SurfaceType;
6
6
  backgroundColor: string;
7
7
  textColors: {
package/tab/Tab.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type Index = number | string;
3
- export declare type TabProps = {
2
+ export type Index = number | string;
3
+ export type TabProps = {
4
4
  active?: boolean;
5
5
  disabled?: boolean;
6
6
  transparent?: boolean;
package/tab/TabPanel.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type TabPanelProps = {
2
+ type TabPanelProps = {
3
3
  index: number | string;
4
4
  children: React.ReactNode;
5
5
  };
package/tab/Tabs.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- declare type TabsLabels = {
2
+ type TabsLabels = {
3
3
  scrollLeft: string;
4
4
  scrollRight: string;
5
5
  };
6
- declare type TabsProps = {
6
+ type TabsProps = {
7
7
  tabsLabels?: TabsLabels;
8
8
  children?: any;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { Index } from './Tab';
3
- export declare type TabsContextProps = {
3
+ export type TabsContextProps = {
4
4
  transparent?: boolean;
5
5
  onChange?: (index: any) => void;
6
6
  size?: 's' | 'm';
package/table/Table.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- export declare type TableProps = {
2
+ export type TableProps = {
3
3
  /**
4
4
  * Table content
5
5
  */
@@ -13,7 +13,7 @@ export declare type TableProps = {
13
13
  */
14
14
  isHeaderSticky?: boolean;
15
15
  } & ComponentPropsWithRef<'table'>;
16
- export declare type TableContextProps = {
16
+ export type TableContextProps = {
17
17
  isInteractive: boolean;
18
18
  isHeaderSticky: boolean;
19
19
  };
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- export declare type TableBodyProps = {
2
+ export type TableBodyProps = {
3
3
  /**
4
4
  * Table body content
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { Alignment } from './TableHeaderCell';
3
- export declare type TableDataCellProps = {
3
+ export type TableDataCellProps = {
4
4
  /**
5
5
  * Sets alignment for the content in the tag
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- export declare type TableHeadProps = {
2
+ export type TableHeadProps = {
3
3
  /**
4
4
  * Table header content
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- export declare type Alignment = 'left' | 'center' | 'right' | 'justify' | 'char';
3
- export declare type TableHeaderCellProps = {
2
+ export type Alignment = 'left' | 'center' | 'right' | 'justify' | 'char';
3
+ export type TableHeaderCellProps = {
4
4
  /**
5
5
  * Sets alignment for the content in the tag
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
- export declare type TableRowProps = {
2
+ export type TableRowProps = {
3
3
  /**
4
4
  * Table row content
5
5
  */
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TippyProps } from '@tippyjs/react';
3
- declare type Placement = 'top' | 'right' | 'bottom' | 'left';
4
- declare type TooltipProps = {
3
+ type Placement = 'top' | 'right' | 'bottom' | 'left';
4
+ type TooltipProps = {
5
5
  content: string | React.ReactNode;
6
6
  name?: string;
7
7
  placement?: Placement;