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

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 (459) hide show
  1. package/accordion/Accordion.js +3 -3
  2. package/accordion/AccordionContent.js +3 -3
  3. package/accordion/AccordionSmall.js +3 -3
  4. package/app-bar/AppBar.js +8 -8
  5. package/app-bar/AppBarContext.js +4 -4
  6. package/app-bar/AppBarDrawer.js +3 -3
  7. package/app-bar/AppBarIconButton.js +3 -3
  8. package/app-bar/AppBarItem.js +24 -24
  9. package/assertions/banner/Banner.js +8 -8
  10. package/assertions/banner/BannerAction.js +3 -3
  11. package/assertions/banner/BannerTypography.js +1 -1
  12. package/assertions/toast/Toast.js +3 -3
  13. package/assertions/toast/Toaster.js +9 -17
  14. package/badge/Badge.js +3 -3
  15. package/button/Button.js +3 -3
  16. package/button/IconButton.js +3 -3
  17. package/button/LinkButton.js +1 -1
  18. package/button-stack/ButtonStack.js +4 -4
  19. package/card/Card.js +10 -10
  20. package/card/CardActions.js +3 -3
  21. package/card/CardContent.js +2 -2
  22. package/card/CardMedia.js +2 -2
  23. package/card/CardPriceTag.js +2 -2
  24. package/card/CardTitle.js +3 -3
  25. package/chip/Chip.js +7 -7
  26. package/cjs/accordion/Accordion.js +4 -4
  27. package/cjs/accordion/AccordionContent.js +4 -4
  28. package/cjs/accordion/AccordionSmall.js +4 -4
  29. package/cjs/app-bar/AppBar.js +10 -9
  30. package/cjs/app-bar/AppBarContext.js +6 -5
  31. package/cjs/app-bar/AppBarDrawer.js +6 -5
  32. package/cjs/app-bar/AppBarIconButton.js +4 -4
  33. package/cjs/app-bar/AppBarItem.js +10 -9
  34. package/cjs/app-bar/AppBarListItem.js +1 -1
  35. package/cjs/app-bar/index.js +1 -1
  36. package/cjs/assertions/banner/Banner.js +10 -9
  37. package/cjs/assertions/banner/BannerAction.js +4 -4
  38. package/cjs/assertions/banner/BannerTypography.js +2 -2
  39. package/cjs/assertions/toast/Toast.js +4 -4
  40. package/cjs/assertions/toast/Toaster.js +11 -10
  41. package/cjs/assertions/toast/index.js +3 -2
  42. package/cjs/badge/Badge.js +4 -4
  43. package/cjs/badge/index.js +2 -1
  44. package/cjs/button/BadgeIcon.js +1 -1
  45. package/cjs/button/BaseButton.js +1 -1
  46. package/cjs/button/Button.js +4 -4
  47. package/cjs/button/IconButton.js +5 -4
  48. package/cjs/button/LinkButton.js +4 -3
  49. package/cjs/button/index.js +2 -1
  50. package/cjs/button-stack/ButtonStack.js +4 -4
  51. package/cjs/button-stack/index.js +1 -1
  52. package/cjs/card/Card.js +10 -9
  53. package/cjs/card/CardActions.js +4 -4
  54. package/cjs/card/CardContent.js +3 -3
  55. package/cjs/card/CardMedia.js +3 -3
  56. package/cjs/card/CardPriceTag.js +3 -3
  57. package/cjs/card/CardTitle.js +4 -4
  58. package/cjs/card/index.js +1 -1
  59. package/cjs/chip/Chip.js +10 -9
  60. package/cjs/chip/index.js +2 -1
  61. package/cjs/common/LockBodyScroll.js +4 -4
  62. package/cjs/common/emotionCloneElement.js +1 -1
  63. package/cjs/common/polymorphic.js +3 -3
  64. package/cjs/common/use-media.js +4 -4
  65. package/cjs/counter/Counter.js +7 -6
  66. package/cjs/counter/PluralCounter.js +10 -9
  67. package/cjs/counter/index.js +1 -1
  68. package/cjs/data-table/DataTable.js +9 -8
  69. package/cjs/date-range-picker/DateRangePicker.js +9 -8
  70. package/cjs/date-range-picker/index.js +1 -1
  71. package/cjs/divider/Divider.js +4 -4
  72. package/cjs/drawer/Drawer.js +4 -4
  73. package/cjs/dropdown-menu/Dropdown.js +8 -8
  74. package/cjs/dropdown-menu/DropdownContext.js +2 -1
  75. package/cjs/dropdown-menu/MenuCheckbox.js +2 -2
  76. package/cjs/dropdown-menu/MenuItem.js +8 -8
  77. package/cjs/dropdown-menu/MenuTitle.js +1 -1
  78. package/cjs/dropdown-menu/index.js +3 -2
  79. package/cjs/flexbox/FlexBox.js +6 -6
  80. package/cjs/footer/Footer.js +1 -1
  81. package/cjs/footer/index.js +1 -1
  82. package/cjs/forms/assistive-text/AssistiveText.js +1 -1
  83. package/cjs/forms/asterisk/Asterisk.js +1 -1
  84. package/cjs/forms/checkbox/Checkbox.js +4 -4
  85. package/cjs/forms/checkbox/ExampleControlComponent.js +8 -8
  86. package/cjs/forms/checkbox/index.js +1 -1
  87. package/cjs/forms/email-field/EmailField.js +2 -2
  88. package/cjs/forms/error-text/ErrorText.js +1 -1
  89. package/cjs/forms/field/Field.js +1 -1
  90. package/cjs/forms/index.js +1 -1
  91. package/cjs/forms/input/Input.js +4 -4
  92. package/cjs/forms/input/InputComposition.js +6 -5
  93. package/cjs/forms/label/Label.js +3 -3
  94. package/cjs/forms/number-field/NumberField.js +2 -2
  95. package/cjs/forms/password-field/PasswordField.js +8 -7
  96. package/cjs/forms/radio/Radio.js +4 -4
  97. package/cjs/forms/reactselect/ReactSelect.js +7 -6
  98. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +4 -4
  99. package/cjs/forms/select/Select.js +4 -4
  100. package/cjs/forms/select-field/SelectField.js +4 -4
  101. package/cjs/forms/switch/Switch.js +4 -4
  102. package/cjs/forms/tel-field/TelField.js +2 -2
  103. package/cjs/forms/text-field/TextField.js +4 -4
  104. package/cjs/global-styles/GlobalStyles.js +1 -1
  105. package/cjs/global-styles/ResetStyles.js +1 -1
  106. package/cjs/grid/Column.js +4 -4
  107. package/cjs/grid/Container.js +4 -4
  108. package/cjs/grid/index.js +1 -1
  109. package/cjs/hero/Hero.js +1 -1
  110. package/cjs/hero/index.js +1 -1
  111. package/cjs/hero/stripes.js +1 -1
  112. package/cjs/ie-banner/IEBanner.js +6 -5
  113. package/cjs/ie-banner/index.js +1 -1
  114. package/cjs/index.js +1 -1
  115. package/cjs/layout/LayoutLegacy.js +1 -1
  116. package/cjs/lists/FeatureList.js +4 -4
  117. package/cjs/lists/ListAddon.js +4 -4
  118. package/cjs/lists/ListDivider.js +4 -4
  119. package/cjs/lists/ListIcon.js +4 -4
  120. package/cjs/lists/ListItem.js +4 -4
  121. package/cjs/lists/ListText.js +4 -4
  122. package/cjs/lists/ListTextGroup.js +4 -4
  123. package/cjs/lists/ListTitle.js +4 -4
  124. package/cjs/lists/index.js +1 -1
  125. package/cjs/loader/DfdsLoader.js +1 -1
  126. package/cjs/loader/Loader.js +1 -1
  127. package/cjs/loader/index.js +1 -1
  128. package/cjs/localization/LocaleFlag.js +6 -5
  129. package/cjs/logo/Logo.js +6 -5
  130. package/cjs/menu/Menu.js +4 -4
  131. package/cjs/menu/index.js +2 -1
  132. package/cjs/mobile-stepper/MobileStepper.js +4 -4
  133. package/cjs/mobile-stepper/index.js +1 -1
  134. package/cjs/nav-bar/NavBar.js +10 -9
  135. package/cjs/nav-bar/index.js +2 -1
  136. package/cjs/nav-menu/NavMenuItem.js +1 -1
  137. package/cjs/nav-menu/index.js +1 -1
  138. package/cjs/pagination/Pagination.js +3 -3
  139. package/cjs/popper/Popper.js +4 -4
  140. package/cjs/popper/index.js +1 -1
  141. package/cjs/progress-bar/ProgressBar.js +1 -1
  142. package/cjs/progress-bar/index.js +2 -1
  143. package/cjs/schedule/ScheduleItem.js +1 -1
  144. package/cjs/schedule/ScheduleList.js +4 -4
  145. package/cjs/schedule/index.js +1 -1
  146. package/cjs/side-sheet/SideSheet.js +10 -9
  147. package/cjs/side-sheet/SideSheetCloseButton.js +4 -4
  148. package/cjs/side-sheet/SideSheetContent.js +5 -4
  149. package/cjs/side-sheet/SideSheetFooter.js +5 -4
  150. package/cjs/side-sheet/SideSheetHeader.js +6 -5
  151. package/cjs/side-sheet/SideSheetHeadline.js +1 -1
  152. package/cjs/side-sheet/index.js +3 -2
  153. package/cjs/site-layout/SiteLayout.js +4 -4
  154. package/cjs/site-layout/index.js +2 -1
  155. package/cjs/skeleton/Skeleton.js +4 -4
  156. package/cjs/social-media-link-list/SocialMediaLinkList.js +4 -4
  157. package/cjs/spinner/Spinner.js +4 -4
  158. package/cjs/step/Step.js +6 -5
  159. package/cjs/step/StepButton.js +3 -3
  160. package/cjs/step/StepContent.js +1 -1
  161. package/cjs/step/StepContext.js +1 -1
  162. package/cjs/step/StepLabel.js +1 -1
  163. package/cjs/step/index.js +1 -1
  164. package/cjs/stepper/Stepper.js +7 -6
  165. package/cjs/stepper/StepperContext.js +1 -1
  166. package/cjs/stepper/index.js +1 -1
  167. package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +1 -1
  168. package/cjs/stepper-feedback-message/index.js +1 -1
  169. package/cjs/styles/index.js +3 -2
  170. package/cjs/surface/Surface.js +6 -5
  171. package/cjs/tab/Tab.js +4 -4
  172. package/cjs/tab/TabPanel.js +1 -1
  173. package/cjs/tab/Tabs.js +10 -9
  174. package/cjs/tab/TabsContext.js +2 -1
  175. package/cjs/tab/index.js +1 -1
  176. package/cjs/table/Table.js +5 -4
  177. package/cjs/table/TableBody.js +5 -4
  178. package/cjs/table/TableDataCell.js +5 -4
  179. package/cjs/table/TableHead.js +6 -5
  180. package/cjs/table/TableHeaderCell.js +5 -4
  181. package/cjs/table/TableRow.js +6 -5
  182. package/cjs/test/Test.js +1 -1
  183. package/cjs/tooltip/Tooltip.js +6 -5
  184. package/cjs/tooltip/index.js +2 -1
  185. package/cjs/typography/Headlines.js +4 -4
  186. package/cjs/typography/Text.js +1 -1
  187. package/common/LockBodyScroll.js +3 -3
  188. package/common/emotionCloneElement.js +1 -1
  189. package/common/polymorphic.js +2 -2
  190. package/common/use-media.js +4 -4
  191. package/common/utils.js +1 -1
  192. package/counter/Counter.js +4 -4
  193. package/counter/PluralCounter.js +7 -7
  194. package/data-table/DataTable.js +10 -10
  195. package/date-range-picker/DateRangePicker.js +8 -8
  196. package/divider/Divider.js +3 -3
  197. package/drawer/Drawer.js +3 -3
  198. package/dropdown-menu/Dropdown.js +7 -7
  199. package/dropdown-menu/MenuCheckbox.js +1 -1
  200. package/dropdown-menu/MenuItem.js +7 -7
  201. package/flexbox/FlexBox.js +5 -5
  202. package/forms/checkbox/Checkbox.js +3 -3
  203. package/forms/checkbox/ExampleControlComponent.js +7 -7
  204. package/forms/email-field/EmailField.js +1 -1
  205. package/forms/input/Input.js +3 -3
  206. package/forms/input/InputComposition.js +3 -3
  207. package/forms/label/Label.js +2 -2
  208. package/forms/number-field/NumberField.js +1 -1
  209. package/forms/password-field/PasswordField.js +5 -5
  210. package/forms/radio/Radio.js +3 -3
  211. package/forms/reactselect/ReactSelect.js +4 -4
  212. package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
  213. package/forms/select/Select.js +3 -3
  214. package/forms/select-field/SelectField.js +3 -3
  215. package/forms/switch/Switch.js +3 -3
  216. package/forms/tel-field/TelField.js +1 -1
  217. package/forms/text-field/TextField.js +3 -3
  218. package/grid/Column.js +3 -3
  219. package/grid/Container.js +4 -4
  220. package/hero/Hero.js +1 -1
  221. package/ie-banner/IEBanner.js +4 -4
  222. package/lists/FeatureList.js +3 -3
  223. package/lists/ListAddon.js +3 -3
  224. package/lists/ListDivider.js +3 -3
  225. package/lists/ListIcon.js +3 -3
  226. package/lists/ListItem.js +3 -3
  227. package/lists/ListText.js +3 -3
  228. package/lists/ListTextGroup.js +3 -3
  229. package/lists/ListTitle.js +3 -3
  230. package/loader/DfdsLoader.js +1 -1
  231. package/loader/Loader.js +1 -1
  232. package/localization/LocaleFlag.js +3 -3
  233. package/logo/Logo.js +3 -3
  234. package/menu/Menu.js +3 -3
  235. package/mobile-stepper/MobileStepper.js +8 -8
  236. package/nav-bar/NavBar.js +7 -7
  237. package/package.json +10 -10
  238. package/pagination/Pagination.js +2 -2
  239. package/pagination/Pagination.styles.js +1 -1
  240. package/popper/Popper.js +3 -3
  241. package/schedule/ScheduleList.js +3 -3
  242. package/side-sheet/SideSheet.js +8 -8
  243. package/side-sheet/SideSheetCloseButton.js +3 -3
  244. package/side-sheet/SideSheetContent.js +3 -3
  245. package/side-sheet/SideSheetFooter.js +3 -3
  246. package/side-sheet/SideSheetHeader.js +3 -3
  247. package/site-layout/SiteLayout.js +3 -3
  248. package/skeleton/Skeleton.js +4 -4
  249. package/social-media-link-list/SocialMediaLinkList.js +3 -3
  250. package/spinner/Spinner.js +4 -4
  251. package/step/Step.js +3 -3
  252. package/step/StepButton.js +2 -2
  253. package/stepper/Stepper.js +4 -4
  254. package/surface/Surface.js +4 -4
  255. package/tab/Tab.js +3 -3
  256. package/tab/Tabs.js +7 -7
  257. package/table/Table.js +3 -3
  258. package/table/TableBody.js +3 -3
  259. package/table/TableDataCell.js +3 -3
  260. package/table/TableHead.js +4 -4
  261. package/table/TableHeaderCell.js +3 -3
  262. package/table/TableRow.js +4 -4
  263. package/tooltip/Tooltip.js +3 -3
  264. package/typography/Headlines.js +3 -3
  265. package/cjs/accordion/Accordion.d.ts +0 -101
  266. package/cjs/accordion/AccordionContent.d.ts +0 -13
  267. package/cjs/accordion/AccordionSmall.d.ts +0 -55
  268. package/cjs/accordion/index.d.ts +0 -3
  269. package/cjs/app-bar/AppBar.d.ts +0 -13
  270. package/cjs/app-bar/AppBarContext.d.ts +0 -12
  271. package/cjs/app-bar/AppBarDrawer.d.ts +0 -5
  272. package/cjs/app-bar/AppBarIconButton.d.ts +0 -10
  273. package/cjs/app-bar/AppBarItem.d.ts +0 -23
  274. package/cjs/app-bar/AppBarListItem.d.ts +0 -16
  275. package/cjs/app-bar/index.d.ts +0 -7
  276. package/cjs/assertions/banner/Banner.d.ts +0 -74
  277. package/cjs/assertions/banner/BannerAction.d.ts +0 -19
  278. package/cjs/assertions/banner/BannerTypography.d.ts +0 -7
  279. package/cjs/assertions/banner/index.d.ts +0 -3
  280. package/cjs/assertions/index.d.ts +0 -2
  281. package/cjs/assertions/toast/Toast.d.ts +0 -12
  282. package/cjs/assertions/toast/Toaster.d.ts +0 -19
  283. package/cjs/assertions/toast/index.d.ts +0 -2
  284. package/cjs/badge/Badge.d.ts +0 -26
  285. package/cjs/badge/index.d.ts +0 -2
  286. package/cjs/button/BadgeIcon.d.ts +0 -7
  287. package/cjs/button/BaseButton.d.ts +0 -14
  288. package/cjs/button/Button.d.ts +0 -19
  289. package/cjs/button/IconButton.d.ts +0 -75
  290. package/cjs/button/LinkButton.d.ts +0 -8
  291. package/cjs/button/button-style.d.ts +0 -7
  292. package/cjs/button/index.d.ts +0 -7
  293. package/cjs/button-stack/ButtonStack.d.ts +0 -11
  294. package/cjs/button-stack/index.d.ts +0 -1
  295. package/cjs/card/Card.d.ts +0 -18
  296. package/cjs/card/CardActions.d.ts +0 -4
  297. package/cjs/card/CardContent.d.ts +0 -13
  298. package/cjs/card/CardMedia.d.ts +0 -18
  299. package/cjs/card/CardPriceTag.d.ts +0 -25
  300. package/cjs/card/CardTitle.d.ts +0 -18
  301. package/cjs/card/index.d.ts +0 -6
  302. package/cjs/chip/Chip.d.ts +0 -19
  303. package/cjs/chip/index.d.ts +0 -2
  304. package/cjs/common/LockBodyScroll.d.ts +0 -25
  305. package/cjs/common/arrow.d.ts +0 -6
  306. package/cjs/common/emotionCloneElement.d.ts +0 -3
  307. package/cjs/common/intent.d.ts +0 -3
  308. package/cjs/common/miniMoize.d.ts +0 -1
  309. package/cjs/common/polymorphic.d.ts +0 -25
  310. package/cjs/common/use-media.d.ts +0 -1
  311. package/cjs/common/useOnClickOutside.d.ts +0 -4
  312. package/cjs/common/utils.d.ts +0 -3
  313. package/cjs/counter/Counter.d.ts +0 -26
  314. package/cjs/counter/PluralCounter.d.ts +0 -13
  315. package/cjs/counter/index.d.ts +0 -2
  316. package/cjs/data-table/DataTable.d.ts +0 -10
  317. package/cjs/data-table/index.d.ts +0 -1
  318. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +0 -2
  319. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +0 -2
  320. package/cjs/date-range-picker/DateRangePicker.d.ts +0 -33
  321. package/cjs/date-range-picker/index.d.ts +0 -1
  322. package/cjs/divider/Divider.d.ts +0 -26
  323. package/cjs/divider/index.d.ts +0 -1
  324. package/cjs/drawer/Drawer.d.ts +0 -31
  325. package/cjs/drawer/index.d.ts +0 -1
  326. package/cjs/dropdown-menu/Dropdown.d.ts +0 -46
  327. package/cjs/dropdown-menu/DropdownContext.d.ts +0 -13
  328. package/cjs/dropdown-menu/MenuCheckbox.d.ts +0 -34
  329. package/cjs/dropdown-menu/MenuItem.d.ts +0 -45
  330. package/cjs/dropdown-menu/MenuTitle.d.ts +0 -14
  331. package/cjs/dropdown-menu/index.d.ts +0 -5
  332. package/cjs/elevation/index.d.ts +0 -3
  333. package/cjs/flexbox/FlexBox.d.ts +0 -100
  334. package/cjs/flexbox/index.d.ts +0 -1
  335. package/cjs/footer/Footer.d.ts +0 -7
  336. package/cjs/footer/index.d.ts +0 -1
  337. package/cjs/forms/assistive-text/AssistiveText.d.ts +0 -8
  338. package/cjs/forms/asterisk/Asterisk.d.ts +0 -3
  339. package/cjs/forms/checkbox/Checkbox.d.ts +0 -39
  340. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +0 -10
  341. package/cjs/forms/checkbox/index.d.ts +0 -1
  342. package/cjs/forms/email-field/EmailField.d.ts +0 -6
  343. package/cjs/forms/error-text/ErrorText.d.ts +0 -8
  344. package/cjs/forms/field/Field.d.ts +0 -10
  345. package/cjs/forms/index.d.ts +0 -21
  346. package/cjs/forms/input/Input.d.ts +0 -19
  347. package/cjs/forms/input/InputComposition.d.ts +0 -43
  348. package/cjs/forms/label/Label.d.ts +0 -10
  349. package/cjs/forms/number-field/NumberField.d.ts +0 -6
  350. package/cjs/forms/password-field/PasswordField.d.ts +0 -4
  351. package/cjs/forms/radio/Radio.d.ts +0 -35
  352. package/cjs/forms/reactselect/ReactSelect.d.ts +0 -25
  353. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +0 -6
  354. package/cjs/forms/select/Select.d.ts +0 -16
  355. package/cjs/forms/select-field/SelectField.d.ts +0 -17
  356. package/cjs/forms/switch/Switch.d.ts +0 -13
  357. package/cjs/forms/tel-field/TelField.d.ts +0 -6
  358. package/cjs/forms/text-field/TextField.d.ts +0 -26
  359. package/cjs/global-styles/GlobalStyles.d.ts +0 -3
  360. package/cjs/global-styles/ResetStyles.d.ts +0 -9
  361. package/cjs/global-styles/sanitize.d.ts +0 -1
  362. package/cjs/grid/Column.d.ts +0 -10
  363. package/cjs/grid/Container.d.ts +0 -15
  364. package/cjs/grid/index.d.ts +0 -2
  365. package/cjs/hero/Hero.d.ts +0 -10
  366. package/cjs/hero/index.d.ts +0 -1
  367. package/cjs/hero/stripes.d.ts +0 -6
  368. package/cjs/ie-banner/IEBanner.d.ts +0 -11
  369. package/cjs/ie-banner/index.d.ts +0 -1
  370. package/cjs/index.d.ts +0 -44
  371. package/cjs/layout/LayoutLegacy.d.ts +0 -2
  372. package/cjs/lists/FeatureList.d.ts +0 -24
  373. package/cjs/lists/ListAddon.d.ts +0 -11
  374. package/cjs/lists/ListDivider.d.ts +0 -5
  375. package/cjs/lists/ListIcon.d.ts +0 -18
  376. package/cjs/lists/ListItem.d.ts +0 -46
  377. package/cjs/lists/ListText.d.ts +0 -39
  378. package/cjs/lists/ListTextGroup.d.ts +0 -15
  379. package/cjs/lists/ListTitle.d.ts +0 -4
  380. package/cjs/lists/index.d.ts +0 -8
  381. package/cjs/loader/DfdsLoader.d.ts +0 -9
  382. package/cjs/loader/Loader.d.ts +0 -6
  383. package/cjs/loader/index.d.ts +0 -2
  384. package/cjs/localization/LocaleFlag.d.ts +0 -13
  385. package/cjs/localization/index.d.ts +0 -2
  386. package/cjs/localization/locales.d.ts +0 -35
  387. package/cjs/logo/Logo.d.ts +0 -11
  388. package/cjs/logo/index.d.ts +0 -1
  389. package/cjs/media/index.d.ts +0 -2
  390. package/cjs/menu/Menu.d.ts +0 -7
  391. package/cjs/menu/index.d.ts +0 -2
  392. package/cjs/mobile-stepper/MobileStepper.d.ts +0 -25
  393. package/cjs/mobile-stepper/index.d.ts +0 -1
  394. package/cjs/nav-bar/NavBar.d.ts +0 -35
  395. package/cjs/nav-bar/index.d.ts +0 -2
  396. package/cjs/nav-menu/NavMenuItem.d.ts +0 -10
  397. package/cjs/nav-menu/index.d.ts +0 -1
  398. package/cjs/pagination/Pagination.d.ts +0 -44
  399. package/cjs/pagination/Pagination.styles.d.ts +0 -6
  400. package/cjs/pagination/index.d.ts +0 -1
  401. package/cjs/popper/Popper.d.ts +0 -29
  402. package/cjs/popper/index.d.ts +0 -1
  403. package/cjs/progress-bar/ProgressBar.d.ts +0 -8
  404. package/cjs/progress-bar/index.d.ts +0 -2
  405. package/cjs/schedule/ScheduleItem.d.ts +0 -21
  406. package/cjs/schedule/ScheduleList.d.ts +0 -11
  407. package/cjs/schedule/index.d.ts +0 -2
  408. package/cjs/side-sheet/SideSheet.d.ts +0 -57
  409. package/cjs/side-sheet/SideSheetCloseButton.d.ts +0 -13
  410. package/cjs/side-sheet/SideSheetContent.d.ts +0 -7
  411. package/cjs/side-sheet/SideSheetFooter.d.ts +0 -7
  412. package/cjs/side-sheet/SideSheetHeader.d.ts +0 -9
  413. package/cjs/side-sheet/SideSheetHeadline.d.ts +0 -7
  414. package/cjs/side-sheet/index.d.ts +0 -4
  415. package/cjs/site-layout/SiteLayout.d.ts +0 -36
  416. package/cjs/site-layout/index.d.ts +0 -2
  417. package/cjs/skeleton/Skeleton.d.ts +0 -8
  418. package/cjs/skeleton/index.d.ts +0 -1
  419. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +0 -26
  420. package/cjs/social-media-link-list/index.d.ts +0 -1
  421. package/cjs/spinner/Spinner.d.ts +0 -58
  422. package/cjs/spinner/index.d.ts +0 -1
  423. package/cjs/step/Step.d.ts +0 -45
  424. package/cjs/step/Step.styles.d.ts +0 -4
  425. package/cjs/step/StepButton.d.ts +0 -4
  426. package/cjs/step/StepContent.d.ts +0 -6
  427. package/cjs/step/StepContext.d.ts +0 -12
  428. package/cjs/step/StepLabel.d.ts +0 -7
  429. package/cjs/step/index.d.ts +0 -1
  430. package/cjs/stepper/Stepper.d.ts +0 -25
  431. package/cjs/stepper/StepperContext.d.ts +0 -9
  432. package/cjs/stepper/index.d.ts +0 -1
  433. package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +0 -5
  434. package/cjs/stepper-feedback-message/index.d.ts +0 -1
  435. package/cjs/styles/index.d.ts +0 -3
  436. package/cjs/styles/media.d.ts +0 -21
  437. package/cjs/styles/rem.d.ts +0 -1
  438. package/cjs/styles/style-helpers.d.ts +0 -1
  439. package/cjs/styles/theme.d.ts +0 -39
  440. package/cjs/surface/Surface.d.ts +0 -32
  441. package/cjs/surface/index.d.ts +0 -1
  442. package/cjs/tab/Tab.d.ts +0 -12
  443. package/cjs/tab/TabPanel.d.ts +0 -7
  444. package/cjs/tab/Tabs.d.ts +0 -11
  445. package/cjs/tab/TabsContext.d.ts +0 -16
  446. package/cjs/tab/index.d.ts +0 -4
  447. package/cjs/table/Table.d.ts +0 -22
  448. package/cjs/table/TableBody.d.ts +0 -9
  449. package/cjs/table/TableDataCell.d.ts +0 -14
  450. package/cjs/table/TableHead.d.ts +0 -14
  451. package/cjs/table/TableHeaderCell.d.ts +0 -15
  452. package/cjs/table/TableRow.d.ts +0 -17
  453. package/cjs/table/index.d.ts +0 -6
  454. package/cjs/test/Test.d.ts +0 -8
  455. package/cjs/tooltip/Tooltip.d.ts +0 -26
  456. package/cjs/tooltip/index.d.ts +0 -2
  457. package/cjs/typography/Headlines.d.ts +0 -70
  458. package/cjs/typography/Text.d.ts +0 -5
  459. package/cjs/typography/index.d.ts +0 -2
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type BadgeIconProps = {
3
- letter: string;
4
- className?: string;
5
- };
6
- export declare const BadgeIcon: ({ letter, className }: BadgeIconProps) => JSX.Element;
7
- export default BadgeIcon;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
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 = {
6
- variation?: ButtonVariation;
7
- };
8
- export declare const BaseButton: import("@emotion/styled").StyledComponent<{
9
- theme?: import("@emotion/react").Theme | undefined;
10
- as?: React.ElementType<any> | undefined;
11
- } & {
12
- selected?: boolean | undefined;
13
- }, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
14
- export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
@@ -1,19 +0,0 @@
1
- import React from 'react';
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 & {
6
- className?: string;
7
- replace?: boolean;
8
- submitting?: boolean;
9
- fillWidth?: boolean;
10
- size?: ButtonSize;
11
- icon?: React.ReactNode;
12
- iconAlign?: IconAlign;
13
- iconSpacing?: string;
14
- iconColor?: string;
15
- as?: React.ElementType;
16
- children?: React.ReactNode;
17
- };
18
- declare const Button: React.FC<ButtonProps>;
19
- export default Button;
@@ -1,75 +0,0 @@
1
- import React, { ElementType, ComponentPropsWithRef } from 'react';
2
- import { OverlayOptions } from '@dfds-ui/theme/states';
3
- import { PolymorphicComponentProps } from '../common/polymorphic';
4
- export declare type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
5
- export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
6
- /**
7
- * Icon to be displayed on the button.
8
- */
9
- icon: ElementType;
10
- /**
11
- * Text of the aria-label as well as the fallback value used for tooltip.
12
- */
13
- ariaLabel: string;
14
- /**
15
- * Size of the button.
16
- */
17
- size?: IconButtonSize;
18
- /**
19
- * className to be assigned to the button.
20
- */
21
- className?: string;
22
- /**
23
- * Disable button.
24
- */
25
- disabled?: boolean;
26
- /**
27
- * Disable overlay states.
28
- */
29
- disableOverlay?: boolean;
30
- /**
31
- * Disable tooltip.
32
- */
33
- disableTooltip?: boolean;
34
- /**
35
- * Text of the tooltip, if none, aria-label will be used.
36
- */
37
- tooltip?: string;
38
- /**
39
- * Color of the button and the overlay state.
40
- */
41
- color?: string;
42
- /**
43
- * Override color to be used for the hover state.
44
- */
45
- hoverColor?: string;
46
- /**
47
- * Override color to be used for the active state.
48
- */
49
- activeColor?: string;
50
- /**
51
- * Override color to be used for the focus state.
52
- */
53
- focusColor?: string;
54
- /**
55
- * Override the overlay options to use.
56
- */
57
- overlayOptions?: OverlayOptions;
58
- }
59
- /**
60
- * Helper function returning the default icon size when rendering an IconButton in the specified size.
61
- * @param size : IconButtonSize;
62
- * @returns The default icon size
63
- */
64
- export declare const getDefaultIconButtonIconSize: (size: IconButtonSize) => "1.5rem" | "1.25rem" | "2rem";
65
- /**
66
- * Helper function returning the default dimensions of an IconButton in the specified size.
67
- * @param size : IconButtonSize;
68
- * @returns The default size
69
- */
70
- export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
71
- height: string;
72
- width: string;
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>>;
75
- export default IconButton;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from './Button';
3
- export declare type LinkButtonProps = React.PropsWithoutRef<JSX.IntrinsicElements['a']> & ButtonProps & {
4
- href?: string;
5
- target?: string;
6
- };
7
- export declare const LinkButton: (props: LinkButtonProps) => JSX.Element;
8
- export default LinkButton;
@@ -1,7 +0,0 @@
1
- export declare const baseButtonStyle: import("@emotion/utils").SerializedStyles;
2
- export declare const primaryButtonStyles: import("@emotion/utils").SerializedStyles;
3
- export declare const secondaryButtonStyles: import("@emotion/utils").SerializedStyles;
4
- export declare const outlinedButtonStyles: import("@emotion/utils").SerializedStyles;
5
- export declare const textButtonStyles: import("@emotion/utils").SerializedStyles;
6
- export declare const dangerButtonStyles: import("@emotion/utils").SerializedStyles;
7
- export declare const linkButtonStyles: import("@emotion/utils").SerializedStyles;
@@ -1,7 +0,0 @@
1
- export { default as Button } from './Button';
2
- export * from './Button';
3
- export * from './LinkButton';
4
- export { default as IconButton } from './IconButton';
5
- export * from './IconButton';
6
- export * from './BadgeIcon';
7
- export { default as Anchor } from './LinkButton';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- declare type Orientation = 'horizontal' | 'vertical';
3
- declare type Alignment = 'left' | 'right' | 'center';
4
- declare type ButtonStackProps = {
5
- align?: Alignment;
6
- orientation?: Orientation;
7
- className?: string;
8
- reverse?: boolean;
9
- };
10
- declare const ButtonStack: React.FunctionComponent<ButtonStackProps>;
11
- export default ButtonStack;
@@ -1 +0,0 @@
1
- export { default as ButtonStack } from './ButtonStack';
@@ -1,18 +0,0 @@
1
- import React, { FunctionComponent, ReactNode } from 'react';
2
- import { SurfaceType } from '../surface';
3
- export declare const CardContext: React.Context<{}>;
4
- export declare type CardContextType = {
5
- cardSize: 's' | 'm' | 'l' | 'xl';
6
- cardVariant: 'outline' | 'fill' | 'surface';
7
- };
8
- export declare type CardProps = {
9
- size: 's' | 'm' | 'l' | 'xl';
10
- variant: 'outline' | 'fill' | 'surface';
11
- surface?: SurfaceType;
12
- reverse?: boolean;
13
- media?: ReactNode;
14
- ratio?: number[];
15
- className?: string;
16
- };
17
- declare const Card: FunctionComponent<CardProps>;
18
- export default Card;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { FlexBoxProps } from '../flexbox/FlexBox';
3
- declare const CardActions: FunctionComponent<FlexBoxProps>;
4
- export default CardActions;
@@ -1,13 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare type CardContentProps = {
3
- /**
4
- * Text color
5
- */
6
- color?: string;
7
- /**
8
- * className to be assigned to the component
9
- */
10
- className?: string;
11
- };
12
- declare const CardContent: FunctionComponent<CardContentProps>;
13
- export default CardContent;
@@ -1,18 +0,0 @@
1
- import { FunctionComponent, ReactNode } from 'react';
2
- export declare type CardMediaProps = {
3
- /**
4
- * Media component to be displayed
5
- */
6
- media: ReactNode;
7
- /**
8
- * Aspect ratio of media component
9
- */
10
- aspectRatio?: AspectRatio;
11
- /**
12
- * className to be assigned to the component
13
- */
14
- className?: string;
15
- };
16
- export declare type AspectRatio = '2:1' | '3:2';
17
- declare const CardMedia: FunctionComponent<CardMediaProps>;
18
- export default CardMedia;
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type CardPriceTagProps = {
3
- /**
4
- * Price for the price tag
5
- */
6
- price: number;
7
- /**
8
- * Currency symbol to be displayed
9
- */
10
- currency?: string;
11
- /**
12
- * Text to be displayed over the price
13
- */
14
- topText?: string;
15
- /**
16
- * Text to be displayed under the price
17
- */
18
- bottomText?: string;
19
- /**
20
- * className to be assigned to the component
21
- */
22
- className?: string;
23
- };
24
- declare const CardPriceTag: ({ price, topText, bottomText, currency, ...rest }: CardPriceTagProps) => JSX.Element;
25
- export default CardPriceTag;
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare type CardTitleProps = {
3
- /**
4
- * Text color
5
- */
6
- color?: string;
7
- /**
8
- * If set to true the title will be displayed using the `sectionHeadline` instead of a `smallHeadline`.
9
- * But only for large screens.
10
- */
11
- largeTitle?: boolean;
12
- /**
13
- * className to be assigned to the component
14
- */
15
- className?: string;
16
- };
17
- declare const CardTitle: FunctionComponent<CardTitleProps>;
18
- export default CardTitle;
@@ -1,6 +0,0 @@
1
- export { default as Card } from './Card';
2
- export { default as CardMedia } from './CardMedia';
3
- export { default as CardTitle } from './CardTitle';
4
- export { default as CardContent } from './CardContent';
5
- export { default as CardActions } from './CardActions';
6
- export { default as CardPriceTag } from './CardPriceTag';
@@ -1,19 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- declare type InteractionEvent = React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>;
3
- export declare type ChipProps = {
4
- children: ReactNode;
5
- dismissable?: boolean;
6
- disabled?: boolean;
7
- selectable?: boolean;
8
- selected?: boolean;
9
- onToggle?: (event: InteractionEvent) => void;
10
- onDismiss?: (event: InteractionEvent) => void;
11
- tabIndex?: number;
12
- className?: string;
13
- };
14
- export declare const ChipContainer: import("@emotion/styled").StyledComponent<{
15
- theme?: import("@emotion/react").Theme | undefined;
16
- as?: React.ElementType<any> | undefined;
17
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
- declare const _default: ({ children, dismissable, disabled, selectable, selected, onToggle, onDismiss, className, ...rest }: ChipProps) => JSX.Element;
19
- export default _default;
@@ -1,2 +0,0 @@
1
- export * from './Chip';
2
- export { default as Chip } from './Chip';
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- export declare type LockBodyScrollProps = {
3
- /**
4
- * If `true` scroll locking will be enabled
5
- */
6
- enabled?: boolean;
7
- /**
8
- * ClassName to be applied to the body element when scroll is locked
9
- */
10
- bodyClassNameApplied?: string;
11
- /**
12
- * ClassName to be applied to the html element when scroll is locked
13
- */
14
- htmlClassNameApplied?: string;
15
- /**
16
- * Preserve scroll position when locking.
17
- */
18
- preserveScrollPosition?: boolean;
19
- children?: React.ReactNode;
20
- };
21
- export declare type LockBodyScrollResult = {
22
- getGap(): number;
23
- };
24
- export declare const LockBodyScroll: React.ForwardRefExoticComponent<LockBodyScrollProps & React.RefAttributes<LockBodyScrollResult>>;
25
- export default LockBodyScroll;
@@ -1,6 +0,0 @@
1
- export declare type ArrowPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
2
- /**
3
- * Create css for an arrow
4
- * A <div> tag must surround {children} to work
5
- */
6
- export default function arrow(size: number, color: string, offset?: number, position?: ArrowPosition): import("@emotion/utils").SerializedStyles;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const emotionCloneElement: (element: any, config: any, ...children: any) => import("react").DetailedReactHTMLElement<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
- export default emotionCloneElement;
@@ -1,3 +0,0 @@
1
- export declare type Intent = 'info' | 'critical' | 'success' | 'warning' | 'none';
2
- export declare function getIntentColor(intent?: Intent, muted?: boolean): string;
3
- export declare function getIntentTextColor(intent: Intent): string;
@@ -1 +0,0 @@
1
- export declare function miniMoize(fn: (...args: any[]) => any): (...args: any[]) => any;
@@ -1,25 +0,0 @@
1
- import { ComponentType, ElementType } from 'react';
2
- export declare type RenderContainerProps<T> = {
3
- renderContainer: (props: T) => JSX.Element;
4
- };
5
- export declare type PolymorphicComponentProps = {
6
- /**
7
- * HTML tag or custom component being rendered.
8
- */
9
- as?: ElementType;
10
- };
11
- /**
12
- * Given a PolymorphicComponent and a desired RenderComponent this function will returns are new component where the
13
- * polymorphic prop will point to the provided `RenderComponent`.
14
- *
15
- * @example
16
- * import { Link } from `gatsby`;
17
- * import { AppBarItem, withRenderAs } from `@dfds-ui/react-components`;
18
- *
19
- * const AppBarLink = withRenderAs(AppBarItem, Link);
20
- *
21
- * const Example = () => {
22
- * return <AppBarLink id="1" title="example" to="/example">Example</AppBarLink>;
23
- * }
24
- */
25
- export declare function withRenderAs<PCProps extends PolymorphicComponentProps, RCProps>(PolymorphicComponent: ComponentType<PCProps>, RenderComponent: ComponentType<RCProps>): ({ ...props }: Omit<PCProps, keyof PolymorphicComponentProps> & RCProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export default function useMedia(queries: any, values: any, defaultValue: any): any;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Handler = (...args: any[]) => void;
3
- export default function useOnClickOutside(ref: React.RefObject<HTMLElement>, handler: Handler | null): void;
4
- export {};
@@ -1,3 +0,0 @@
1
- export declare function ie11MinHeightFix(minHeight?: string): import("@emotion/utils").SerializedStyles | undefined;
2
- export declare function onlyIE(strings: TemplateStringsArray, ...args: any): import("@emotion/utils").SerializedStyles;
3
- export declare function onlyChrome(strings: TemplateStringsArray, ...args: any): import("@emotion/utils").SerializedStyles;
@@ -1,26 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export declare type CounterProps = {
3
- label?: ReactNode | string;
4
- /**
5
- * Minimum value
6
- */
7
- minVal: number;
8
- /**
9
- * Maximum value
10
- */
11
- maxVal: number;
12
- disableMin?: boolean;
13
- disableMax?: boolean;
14
- /**
15
- *Name of the input element
16
- */
17
- name?: string;
18
- currentVal?: number;
19
- initialVal?: number;
20
- /**
21
- *Callback when the value changes
22
- */
23
- executeOnChange?: (arg: number) => any;
24
- };
25
- export declare const Counter: React.ForwardRefExoticComponent<CounterProps & React.RefAttributes<HTMLInputElement>>;
26
- export default Counter;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- declare type PluralCounterProps = {
3
- minVal: number;
4
- maxVal: number;
5
- currentVal?: number;
6
- initialVal?: number;
7
- singularLabel: string;
8
- name?: string;
9
- pluralLabel: string;
10
- executeOnChange?: (arg: number) => any;
11
- };
12
- declare const _default: React.ForwardRefExoticComponent<PluralCounterProps & React.RefAttributes<HTMLInputElement>>;
13
- export default _default;
@@ -1,2 +0,0 @@
1
- export { default as Counter } from './Counter';
2
- export { default as PluralCounter } from './PluralCounter';
@@ -1,10 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- export declare type DataTableProps = {
3
- onChange?: (model: object[]) => object[];
4
- columns?: string[];
5
- data: object[];
6
- className?: string;
7
- hasHeader?: boolean;
8
- };
9
- export declare const DataTable: FunctionComponent<DataTableProps>;
10
- export default DataTable;
@@ -1 +0,0 @@
1
- export * from './DataTable';
@@ -1,2 +0,0 @@
1
- declare const DatePickerDefaultStyles: import("@emotion/utils").SerializedStyles;
2
- export default DatePickerDefaultStyles;
@@ -1,2 +0,0 @@
1
- declare const DatePickerStyles: import("@emotion/utils").SerializedStyles;
2
- export default DatePickerStyles;
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import 'react-dates/initialize';
3
- interface IDateRangePickerProps {
4
- endDateDisabled?: boolean;
5
- valid: boolean;
6
- onDateChange: (d: string | null, r: string | null) => void;
7
- format?: string;
8
- infoLabel?: string;
9
- startDates: IDateLeg;
10
- endDates: IDateLeg;
11
- labels: IDateRangePickerLabels;
12
- onNextMonthClick?: () => void;
13
- onPrevMonthClick?: () => void;
14
- numberOfMobileMonths?: number;
15
- hideIcon?: boolean;
16
- className?: string;
17
- locale?: string;
18
- }
19
- interface IDateLeg {
20
- initial: string | null;
21
- maxDate: string;
22
- minDate: string;
23
- disabledDates?: string[];
24
- offerDates?: string[];
25
- }
26
- interface IDateRangePickerLabels {
27
- start: string;
28
- end: string;
29
- header: string;
30
- info?: string;
31
- }
32
- declare const DateRangePicker: React.FC<IDateRangePickerProps>;
33
- export default DateRangePicker;
@@ -1 +0,0 @@
1
- export { default as DateRangePicker } from './DateRangePicker';
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- export declare type DividerProps = {
3
- /**
4
- * Display the Divider in "light" mode.
5
- */
6
- light?: boolean;
7
- /**
8
- * Display the Divider in "indent" style
9
- */
10
- indent?: boolean;
11
- /**
12
- * Display the Divider in "margin" style
13
- */
14
- margins?: boolean;
15
- /**
16
- * HTML tag or custom component being rendered
17
- */
18
- as?: React.ElementType;
19
- /**
20
- * Class name to be assigned to the component
21
- */
22
- className?: string;
23
- };
24
- export declare const dividerBorder: (light?: boolean, placement?: 'top' | 'bottom') => import("@emotion/utils").SerializedStyles;
25
- export declare const Divider: ({ light, indent, margins, ...rest }: DividerProps) => JSX.Element;
26
- export default Divider;
@@ -1 +0,0 @@
1
- export * from './Divider';
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { theme } from '@dfds-ui/theme';
3
- declare type HorizontalPosition = 'left' | 'right';
4
- declare type VerticalPosition = 'top' | 'bottom';
5
- declare type Elevation = keyof typeof theme.elevation;
6
- export declare type DrawerProps = {
7
- /**
8
- * Horizontal position of the drawer
9
- */
10
- position?: HorizontalPosition;
11
- /**
12
- * Show arrow to visually indicate the relation to a connected component
13
- */
14
- showArrow?: boolean;
15
- /**
16
- * Set the `elevation` for the Drawer.
17
- */
18
- elevation?: Elevation;
19
- /**
20
- * Vertical position of the drawer in relation to a connected component.
21
- * Will only be used for placing the arrow on either the `top` or `bottom`
22
- */
23
- verticalPosition?: VerticalPosition;
24
- /**
25
- * Class name to be assigned to the component
26
- */
27
- className?: string;
28
- children?: React.ReactNode;
29
- };
30
- export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
31
- export default Drawer;
@@ -1 +0,0 @@
1
- export * from './Drawer';
@@ -1,46 +0,0 @@
1
- import React, { ReactElement } from 'react';
2
- import { PopperProps, PopperPlacementType } from '@mui/material';
3
- export declare type DropdownSize = 'medium' | 'small';
4
- export declare type DropdownProps = {
5
- /**
6
- * Placement for the `Dropdown`.
7
- */
8
- placement?: PopperPlacementType;
9
- /**
10
- * HTML element that the `Dropdown` will be anchor to.
11
- */
12
- anchorEl?: PopperProps['anchorEl'];
13
- /**
14
- * If set to `true`, the `Dropdown` is shown.
15
- */
16
- isOpen: boolean;
17
- /**
18
- * Set the state of the `Dropdown`.
19
- */
20
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
21
- /**
22
- * Specify the size of the `Dropdown`.
23
- */
24
- size?: DropdownSize;
25
- /**
26
- * Close the `Dropdown` on `esc` key.
27
- */
28
- shouldCloseOnEsc?: boolean;
29
- /**
30
- * className to be assigned to component.
31
- */
32
- className?: string;
33
- /**
34
- * Select multiple children from the `Dropdown`.
35
- */
36
- multiselect?: boolean;
37
- /**
38
- * Add an `id` to the `Dropdown`.
39
- */
40
- id?: string;
41
- onClickAway?: () => void;
42
- children: ReactElement[];
43
- filter?: boolean;
44
- };
45
- declare const DropdownMenu: ({ isOpen, multiselect, children, anchorEl, onClickAway, size, id, className, placement, setIsOpen, shouldCloseOnEsc, filter, ...rest }: DropdownProps) => JSX.Element;
46
- export default DropdownMenu;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- declare type DropdownSize = 'medium' | 'small';
3
- declare type DropdownContextProps = {
4
- size?: DropdownSize;
5
- multiselect?: boolean;
6
- };
7
- export declare const DropdownContext: React.Context<DropdownContextProps>;
8
- export declare const DropdownContextProvider: React.FC<{
9
- value: DropdownContextProps;
10
- children?: React.ReactNode;
11
- }>;
12
- declare const useDropdownContext: () => DropdownContextProps;
13
- export default useDropdownContext;