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

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 +18 -10
  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.d.ts +101 -0
  27. package/cjs/accordion/Accordion.js +4 -4
  28. package/cjs/accordion/AccordionContent.d.ts +13 -0
  29. package/cjs/accordion/AccordionContent.js +4 -4
  30. package/cjs/accordion/AccordionSmall.d.ts +55 -0
  31. package/cjs/accordion/AccordionSmall.js +4 -4
  32. package/cjs/accordion/index.d.ts +3 -0
  33. package/cjs/app-bar/AppBar.d.ts +13 -0
  34. package/cjs/app-bar/AppBar.js +9 -10
  35. package/cjs/app-bar/AppBarContext.d.ts +12 -0
  36. package/cjs/app-bar/AppBarContext.js +5 -6
  37. package/cjs/app-bar/AppBarDrawer.d.ts +5 -0
  38. package/cjs/app-bar/AppBarDrawer.js +5 -6
  39. package/cjs/app-bar/AppBarIconButton.d.ts +10 -0
  40. package/cjs/app-bar/AppBarIconButton.js +4 -4
  41. package/cjs/app-bar/AppBarItem.d.ts +23 -0
  42. package/cjs/app-bar/AppBarItem.js +9 -10
  43. package/cjs/app-bar/AppBarListItem.d.ts +16 -0
  44. package/cjs/app-bar/AppBarListItem.js +1 -1
  45. package/cjs/app-bar/index.d.ts +7 -0
  46. package/cjs/app-bar/index.js +1 -1
  47. package/cjs/assertions/banner/Banner.d.ts +74 -0
  48. package/cjs/assertions/banner/Banner.js +9 -10
  49. package/cjs/assertions/banner/BannerAction.d.ts +19 -0
  50. package/cjs/assertions/banner/BannerAction.js +4 -4
  51. package/cjs/assertions/banner/BannerTypography.d.ts +7 -0
  52. package/cjs/assertions/banner/BannerTypography.js +2 -2
  53. package/cjs/assertions/banner/index.d.ts +3 -0
  54. package/cjs/assertions/index.d.ts +2 -0
  55. package/cjs/assertions/toast/Toast.d.ts +12 -0
  56. package/cjs/assertions/toast/Toast.js +4 -4
  57. package/cjs/assertions/toast/Toaster.d.ts +19 -0
  58. package/cjs/assertions/toast/Toaster.js +10 -11
  59. package/cjs/assertions/toast/index.d.ts +2 -0
  60. package/cjs/assertions/toast/index.js +2 -3
  61. package/cjs/badge/Badge.d.ts +26 -0
  62. package/cjs/badge/Badge.js +4 -4
  63. package/cjs/badge/index.d.ts +2 -0
  64. package/cjs/badge/index.js +1 -2
  65. package/cjs/button/BadgeIcon.d.ts +7 -0
  66. package/cjs/button/BadgeIcon.js +1 -1
  67. package/cjs/button/BaseButton.d.ts +14 -0
  68. package/cjs/button/BaseButton.js +1 -1
  69. package/cjs/button/Button.d.ts +19 -0
  70. package/cjs/button/Button.js +4 -4
  71. package/cjs/button/IconButton.d.ts +75 -0
  72. package/cjs/button/IconButton.js +4 -5
  73. package/cjs/button/LinkButton.d.ts +8 -0
  74. package/cjs/button/LinkButton.js +3 -4
  75. package/cjs/button/button-style.d.ts +7 -0
  76. package/cjs/button/index.d.ts +7 -0
  77. package/cjs/button/index.js +1 -2
  78. package/cjs/button-stack/ButtonStack.d.ts +11 -0
  79. package/cjs/button-stack/ButtonStack.js +4 -4
  80. package/cjs/button-stack/index.d.ts +1 -0
  81. package/cjs/button-stack/index.js +1 -1
  82. package/cjs/card/Card.d.ts +18 -0
  83. package/cjs/card/Card.js +9 -10
  84. package/cjs/card/CardActions.d.ts +4 -0
  85. package/cjs/card/CardActions.js +4 -4
  86. package/cjs/card/CardContent.d.ts +13 -0
  87. package/cjs/card/CardContent.js +3 -3
  88. package/cjs/card/CardMedia.d.ts +18 -0
  89. package/cjs/card/CardMedia.js +3 -3
  90. package/cjs/card/CardPriceTag.d.ts +25 -0
  91. package/cjs/card/CardPriceTag.js +3 -3
  92. package/cjs/card/CardTitle.d.ts +18 -0
  93. package/cjs/card/CardTitle.js +4 -4
  94. package/cjs/card/index.d.ts +6 -0
  95. package/cjs/card/index.js +1 -1
  96. package/cjs/chip/Chip.d.ts +19 -0
  97. package/cjs/chip/Chip.js +9 -10
  98. package/cjs/chip/index.d.ts +2 -0
  99. package/cjs/chip/index.js +1 -2
  100. package/cjs/common/LockBodyScroll.d.ts +25 -0
  101. package/cjs/common/LockBodyScroll.js +4 -4
  102. package/cjs/common/arrow.d.ts +6 -0
  103. package/cjs/common/emotionCloneElement.d.ts +3 -0
  104. package/cjs/common/emotionCloneElement.js +1 -1
  105. package/cjs/common/intent.d.ts +3 -0
  106. package/cjs/common/miniMoize.d.ts +1 -0
  107. package/cjs/common/polymorphic.d.ts +25 -0
  108. package/cjs/common/polymorphic.js +3 -3
  109. package/cjs/common/use-media.d.ts +1 -0
  110. package/cjs/common/use-media.js +4 -4
  111. package/cjs/common/useOnClickOutside.d.ts +4 -0
  112. package/cjs/common/utils.d.ts +3 -0
  113. package/cjs/counter/Counter.d.ts +26 -0
  114. package/cjs/counter/Counter.js +6 -7
  115. package/cjs/counter/PluralCounter.d.ts +13 -0
  116. package/cjs/counter/PluralCounter.js +9 -10
  117. package/cjs/counter/index.d.ts +2 -0
  118. package/cjs/counter/index.js +1 -1
  119. package/cjs/data-table/DataTable.d.ts +10 -0
  120. package/cjs/data-table/DataTable.js +8 -9
  121. package/cjs/data-table/index.d.ts +1 -0
  122. package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
  123. package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
  124. package/cjs/date-range-picker/DateRangePicker.d.ts +33 -0
  125. package/cjs/date-range-picker/DateRangePicker.js +8 -9
  126. package/cjs/date-range-picker/index.d.ts +1 -0
  127. package/cjs/date-range-picker/index.js +1 -1
  128. package/cjs/divider/Divider.d.ts +26 -0
  129. package/cjs/divider/Divider.js +4 -4
  130. package/cjs/divider/index.d.ts +1 -0
  131. package/cjs/drawer/Drawer.d.ts +31 -0
  132. package/cjs/drawer/Drawer.js +4 -4
  133. package/cjs/drawer/index.d.ts +1 -0
  134. package/cjs/dropdown-menu/Dropdown.d.ts +46 -0
  135. package/cjs/dropdown-menu/Dropdown.js +8 -8
  136. package/cjs/dropdown-menu/DropdownContext.d.ts +13 -0
  137. package/cjs/dropdown-menu/DropdownContext.js +1 -2
  138. package/cjs/dropdown-menu/MenuCheckbox.d.ts +34 -0
  139. package/cjs/dropdown-menu/MenuCheckbox.js +2 -2
  140. package/cjs/dropdown-menu/MenuItem.d.ts +45 -0
  141. package/cjs/dropdown-menu/MenuItem.js +8 -8
  142. package/cjs/dropdown-menu/MenuTitle.d.ts +14 -0
  143. package/cjs/dropdown-menu/MenuTitle.js +1 -1
  144. package/cjs/dropdown-menu/index.d.ts +5 -0
  145. package/cjs/dropdown-menu/index.js +2 -3
  146. package/cjs/elevation/index.d.ts +3 -0
  147. package/cjs/flexbox/FlexBox.d.ts +100 -0
  148. package/cjs/flexbox/FlexBox.js +6 -6
  149. package/cjs/flexbox/index.d.ts +1 -0
  150. package/cjs/footer/Footer.d.ts +7 -0
  151. package/cjs/footer/Footer.js +1 -1
  152. package/cjs/footer/index.d.ts +1 -0
  153. package/cjs/footer/index.js +1 -1
  154. package/cjs/forms/assistive-text/AssistiveText.d.ts +8 -0
  155. package/cjs/forms/assistive-text/AssistiveText.js +1 -1
  156. package/cjs/forms/asterisk/Asterisk.d.ts +3 -0
  157. package/cjs/forms/asterisk/Asterisk.js +1 -1
  158. package/cjs/forms/checkbox/Checkbox.d.ts +39 -0
  159. package/cjs/forms/checkbox/Checkbox.js +4 -4
  160. package/cjs/forms/checkbox/ExampleControlComponent.d.ts +10 -0
  161. package/cjs/forms/checkbox/ExampleControlComponent.js +8 -8
  162. package/cjs/forms/checkbox/index.d.ts +1 -0
  163. package/cjs/forms/checkbox/index.js +1 -1
  164. package/cjs/forms/email-field/EmailField.d.ts +6 -0
  165. package/cjs/forms/email-field/EmailField.js +3 -3
  166. package/cjs/forms/error-text/ErrorText.d.ts +8 -0
  167. package/cjs/forms/error-text/ErrorText.js +1 -1
  168. package/cjs/forms/field/Field.d.ts +10 -0
  169. package/cjs/forms/field/Field.js +1 -1
  170. package/cjs/forms/index.d.ts +21 -0
  171. package/cjs/forms/index.js +1 -1
  172. package/cjs/forms/input/Input.d.ts +19 -0
  173. package/cjs/forms/input/Input.js +4 -4
  174. package/cjs/forms/input/InputComposition.d.ts +43 -0
  175. package/cjs/forms/input/InputComposition.js +5 -6
  176. package/cjs/forms/label/Label.d.ts +10 -0
  177. package/cjs/forms/label/Label.js +3 -3
  178. package/cjs/forms/number-field/NumberField.d.ts +6 -0
  179. package/cjs/forms/number-field/NumberField.js +3 -3
  180. package/cjs/forms/password-field/PasswordField.d.ts +4 -0
  181. package/cjs/forms/password-field/PasswordField.js +7 -8
  182. package/cjs/forms/radio/Radio.d.ts +35 -0
  183. package/cjs/forms/radio/Radio.js +4 -4
  184. package/cjs/forms/reactselect/ReactSelect.d.ts +25 -0
  185. package/cjs/forms/reactselect/ReactSelect.js +6 -7
  186. package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +6 -0
  187. package/cjs/forms/searchable-select/AsyncSearchableSelect.js +4 -4
  188. package/cjs/forms/select/Select.d.ts +16 -0
  189. package/cjs/forms/select/Select.js +4 -4
  190. package/cjs/forms/select-field/SelectField.d.ts +17 -0
  191. package/cjs/forms/select-field/SelectField.js +5 -5
  192. package/cjs/forms/switch/Switch.d.ts +13 -0
  193. package/cjs/forms/switch/Switch.js +4 -4
  194. package/cjs/forms/tel-field/TelField.d.ts +6 -0
  195. package/cjs/forms/tel-field/TelField.js +3 -3
  196. package/cjs/forms/text-field/TextField.d.ts +26 -0
  197. package/cjs/forms/text-field/TextField.js +5 -5
  198. package/cjs/global-styles/GlobalStyles.d.ts +3 -0
  199. package/cjs/global-styles/GlobalStyles.js +1 -1
  200. package/cjs/global-styles/ResetStyles.d.ts +9 -0
  201. package/cjs/global-styles/ResetStyles.js +1 -1
  202. package/cjs/global-styles/sanitize.d.ts +1 -0
  203. package/cjs/grid/Column.d.ts +10 -0
  204. package/cjs/grid/Column.js +4 -4
  205. package/cjs/grid/Container.d.ts +15 -0
  206. package/cjs/grid/Container.js +4 -4
  207. package/cjs/grid/index.d.ts +2 -0
  208. package/cjs/grid/index.js +1 -1
  209. package/cjs/hero/Hero.d.ts +10 -0
  210. package/cjs/hero/Hero.js +1 -1
  211. package/cjs/hero/index.d.ts +1 -0
  212. package/cjs/hero/index.js +1 -1
  213. package/cjs/hero/stripes.d.ts +6 -0
  214. package/cjs/hero/stripes.js +1 -1
  215. package/cjs/ie-banner/IEBanner.d.ts +11 -0
  216. package/cjs/ie-banner/IEBanner.js +5 -6
  217. package/cjs/ie-banner/index.d.ts +1 -0
  218. package/cjs/ie-banner/index.js +1 -1
  219. package/cjs/index.d.ts +44 -0
  220. package/cjs/index.js +1 -1
  221. package/cjs/layout/LayoutLegacy.d.ts +2 -0
  222. package/cjs/layout/LayoutLegacy.js +1 -1
  223. package/cjs/lists/FeatureList.d.ts +24 -0
  224. package/cjs/lists/FeatureList.js +4 -4
  225. package/cjs/lists/ListAddon.d.ts +11 -0
  226. package/cjs/lists/ListAddon.js +4 -4
  227. package/cjs/lists/ListDivider.d.ts +5 -0
  228. package/cjs/lists/ListDivider.js +4 -4
  229. package/cjs/lists/ListIcon.d.ts +18 -0
  230. package/cjs/lists/ListIcon.js +4 -4
  231. package/cjs/lists/ListItem.d.ts +46 -0
  232. package/cjs/lists/ListItem.js +4 -4
  233. package/cjs/lists/ListText.d.ts +39 -0
  234. package/cjs/lists/ListText.js +4 -4
  235. package/cjs/lists/ListTextGroup.d.ts +15 -0
  236. package/cjs/lists/ListTextGroup.js +4 -4
  237. package/cjs/lists/ListTitle.d.ts +4 -0
  238. package/cjs/lists/ListTitle.js +4 -4
  239. package/cjs/lists/index.d.ts +8 -0
  240. package/cjs/lists/index.js +1 -1
  241. package/cjs/loader/DfdsLoader.d.ts +9 -0
  242. package/cjs/loader/DfdsLoader.js +1 -1
  243. package/cjs/loader/Loader.d.ts +6 -0
  244. package/cjs/loader/Loader.js +1 -1
  245. package/cjs/loader/index.d.ts +2 -0
  246. package/cjs/loader/index.js +1 -1
  247. package/cjs/localization/LocaleFlag.d.ts +13 -0
  248. package/cjs/localization/LocaleFlag.js +5 -6
  249. package/cjs/localization/index.d.ts +2 -0
  250. package/cjs/localization/locales.d.ts +35 -0
  251. package/cjs/logo/Logo.d.ts +11 -0
  252. package/cjs/logo/Logo.js +5 -6
  253. package/cjs/logo/index.d.ts +1 -0
  254. package/cjs/media/index.d.ts +2 -0
  255. package/cjs/menu/Menu.d.ts +7 -0
  256. package/cjs/menu/Menu.js +4 -4
  257. package/cjs/menu/index.d.ts +2 -0
  258. package/cjs/menu/index.js +1 -2
  259. package/cjs/mobile-stepper/MobileStepper.d.ts +25 -0
  260. package/cjs/mobile-stepper/MobileStepper.js +4 -4
  261. package/cjs/mobile-stepper/index.d.ts +1 -0
  262. package/cjs/mobile-stepper/index.js +1 -1
  263. package/cjs/nav-bar/NavBar.d.ts +35 -0
  264. package/cjs/nav-bar/NavBar.js +9 -10
  265. package/cjs/nav-bar/index.d.ts +2 -0
  266. package/cjs/nav-bar/index.js +1 -2
  267. package/cjs/nav-menu/NavMenuItem.d.ts +10 -0
  268. package/cjs/nav-menu/NavMenuItem.js +1 -1
  269. package/cjs/nav-menu/index.d.ts +1 -0
  270. package/cjs/nav-menu/index.js +1 -1
  271. package/cjs/pagination/Pagination.d.ts +44 -0
  272. package/cjs/pagination/Pagination.js +3 -3
  273. package/cjs/pagination/Pagination.styles.d.ts +6 -0
  274. package/cjs/pagination/index.d.ts +1 -0
  275. package/cjs/popper/Popper.d.ts +29 -0
  276. package/cjs/popper/Popper.js +4 -4
  277. package/cjs/popper/index.d.ts +1 -0
  278. package/cjs/popper/index.js +1 -1
  279. package/cjs/progress-bar/ProgressBar.d.ts +8 -0
  280. package/cjs/progress-bar/ProgressBar.js +1 -1
  281. package/cjs/progress-bar/index.d.ts +2 -0
  282. package/cjs/progress-bar/index.js +1 -2
  283. package/cjs/schedule/ScheduleItem.d.ts +21 -0
  284. package/cjs/schedule/ScheduleItem.js +1 -1
  285. package/cjs/schedule/ScheduleList.d.ts +11 -0
  286. package/cjs/schedule/ScheduleList.js +4 -4
  287. package/cjs/schedule/index.d.ts +2 -0
  288. package/cjs/schedule/index.js +1 -1
  289. package/cjs/side-sheet/SideSheet.d.ts +57 -0
  290. package/cjs/side-sheet/SideSheet.js +9 -10
  291. package/cjs/side-sheet/SideSheetCloseButton.d.ts +13 -0
  292. package/cjs/side-sheet/SideSheetCloseButton.js +4 -4
  293. package/cjs/side-sheet/SideSheetContent.d.ts +7 -0
  294. package/cjs/side-sheet/SideSheetContent.js +4 -5
  295. package/cjs/side-sheet/SideSheetFooter.d.ts +7 -0
  296. package/cjs/side-sheet/SideSheetFooter.js +4 -5
  297. package/cjs/side-sheet/SideSheetHeader.d.ts +9 -0
  298. package/cjs/side-sheet/SideSheetHeader.js +5 -6
  299. package/cjs/side-sheet/SideSheetHeadline.d.ts +7 -0
  300. package/cjs/side-sheet/SideSheetHeadline.js +1 -1
  301. package/cjs/side-sheet/index.d.ts +4 -0
  302. package/cjs/side-sheet/index.js +2 -3
  303. package/cjs/site-layout/SiteLayout.d.ts +36 -0
  304. package/cjs/site-layout/SiteLayout.js +4 -4
  305. package/cjs/site-layout/index.d.ts +2 -0
  306. package/cjs/site-layout/index.js +1 -2
  307. package/cjs/skeleton/Skeleton.d.ts +8 -0
  308. package/cjs/skeleton/Skeleton.js +4 -4
  309. package/cjs/skeleton/index.d.ts +1 -0
  310. package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +26 -0
  311. package/cjs/social-media-link-list/SocialMediaLinkList.js +4 -4
  312. package/cjs/social-media-link-list/index.d.ts +1 -0
  313. package/cjs/spinner/Spinner.d.ts +58 -0
  314. package/cjs/spinner/Spinner.js +4 -4
  315. package/cjs/spinner/index.d.ts +1 -0
  316. package/cjs/step/Step.d.ts +45 -0
  317. package/cjs/step/Step.js +5 -6
  318. package/cjs/step/Step.styles.d.ts +4 -0
  319. package/cjs/step/StepButton.d.ts +4 -0
  320. package/cjs/step/StepButton.js +3 -3
  321. package/cjs/step/StepContent.d.ts +6 -0
  322. package/cjs/step/StepContent.js +1 -1
  323. package/cjs/step/StepContext.d.ts +12 -0
  324. package/cjs/step/StepContext.js +1 -1
  325. package/cjs/step/StepLabel.d.ts +7 -0
  326. package/cjs/step/StepLabel.js +1 -1
  327. package/cjs/step/index.d.ts +1 -0
  328. package/cjs/step/index.js +1 -1
  329. package/cjs/stepper/Stepper.d.ts +25 -0
  330. package/cjs/stepper/Stepper.js +6 -7
  331. package/cjs/stepper/StepperContext.d.ts +9 -0
  332. package/cjs/stepper/StepperContext.js +1 -1
  333. package/cjs/stepper/index.d.ts +1 -0
  334. package/cjs/stepper/index.js +1 -1
  335. package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +5 -0
  336. package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +1 -1
  337. package/cjs/stepper-feedback-message/index.d.ts +1 -0
  338. package/cjs/stepper-feedback-message/index.js +1 -1
  339. package/cjs/styles/index.d.ts +3 -0
  340. package/cjs/styles/index.js +2 -3
  341. package/cjs/styles/media.d.ts +21 -0
  342. package/cjs/styles/rem.d.ts +1 -0
  343. package/cjs/styles/style-helpers.d.ts +1 -0
  344. package/cjs/styles/theme.d.ts +39 -0
  345. package/cjs/surface/Surface.d.ts +32 -0
  346. package/cjs/surface/Surface.js +5 -6
  347. package/cjs/surface/index.d.ts +1 -0
  348. package/cjs/tab/Tab.d.ts +12 -0
  349. package/cjs/tab/Tab.js +4 -4
  350. package/cjs/tab/TabPanel.d.ts +7 -0
  351. package/cjs/tab/TabPanel.js +1 -1
  352. package/cjs/tab/Tabs.d.ts +11 -0
  353. package/cjs/tab/Tabs.js +9 -10
  354. package/cjs/tab/TabsContext.d.ts +16 -0
  355. package/cjs/tab/TabsContext.js +1 -2
  356. package/cjs/tab/index.d.ts +4 -0
  357. package/cjs/tab/index.js +1 -1
  358. package/cjs/table/Table.d.ts +22 -0
  359. package/cjs/table/Table.js +4 -5
  360. package/cjs/table/TableBody.d.ts +9 -0
  361. package/cjs/table/TableBody.js +4 -5
  362. package/cjs/table/TableDataCell.d.ts +14 -0
  363. package/cjs/table/TableDataCell.js +4 -5
  364. package/cjs/table/TableHead.d.ts +14 -0
  365. package/cjs/table/TableHead.js +5 -6
  366. package/cjs/table/TableHeaderCell.d.ts +15 -0
  367. package/cjs/table/TableHeaderCell.js +4 -5
  368. package/cjs/table/TableRow.d.ts +17 -0
  369. package/cjs/table/TableRow.js +5 -6
  370. package/cjs/table/index.d.ts +6 -0
  371. package/cjs/test/Test.d.ts +8 -0
  372. package/cjs/test/Test.js +1 -1
  373. package/cjs/tooltip/Tooltip.d.ts +26 -0
  374. package/cjs/tooltip/Tooltip.js +5 -6
  375. package/cjs/tooltip/index.d.ts +2 -0
  376. package/cjs/tooltip/index.js +1 -2
  377. package/cjs/typography/Headlines.d.ts +70 -0
  378. package/cjs/typography/Headlines.js +4 -4
  379. package/cjs/typography/Text.d.ts +5 -0
  380. package/cjs/typography/Text.js +1 -1
  381. package/cjs/typography/index.d.ts +2 -0
  382. package/common/LockBodyScroll.js +3 -3
  383. package/common/emotionCloneElement.js +1 -1
  384. package/common/polymorphic.js +2 -2
  385. package/common/use-media.js +4 -4
  386. package/common/utils.js +1 -1
  387. package/counter/Counter.js +4 -4
  388. package/counter/PluralCounter.js +7 -7
  389. package/data-table/DataTable.js +10 -10
  390. package/date-range-picker/DateRangePicker.js +8 -8
  391. package/divider/Divider.js +3 -3
  392. package/drawer/Drawer.js +3 -3
  393. package/dropdown-menu/Dropdown.js +7 -7
  394. package/dropdown-menu/MenuCheckbox.js +1 -1
  395. package/dropdown-menu/MenuItem.js +7 -7
  396. package/flexbox/FlexBox.js +5 -5
  397. package/forms/checkbox/Checkbox.js +3 -3
  398. package/forms/checkbox/ExampleControlComponent.js +7 -7
  399. package/forms/email-field/EmailField.js +2 -2
  400. package/forms/input/Input.js +3 -3
  401. package/forms/input/InputComposition.js +3 -3
  402. package/forms/label/Label.js +2 -2
  403. package/forms/number-field/NumberField.js +2 -2
  404. package/forms/password-field/PasswordField.js +5 -5
  405. package/forms/radio/Radio.js +3 -3
  406. package/forms/reactselect/ReactSelect.js +4 -4
  407. package/forms/searchable-select/AsyncSearchableSelect.js +3 -3
  408. package/forms/select/Select.js +3 -3
  409. package/forms/select-field/SelectField.js +4 -4
  410. package/forms/switch/Switch.js +3 -3
  411. package/forms/tel-field/TelField.js +2 -2
  412. package/forms/text-field/TextField.js +4 -4
  413. package/grid/Column.js +3 -3
  414. package/grid/Container.js +4 -4
  415. package/hero/Hero.js +1 -1
  416. package/ie-banner/IEBanner.js +4 -4
  417. package/lists/FeatureList.js +3 -3
  418. package/lists/ListAddon.js +3 -3
  419. package/lists/ListDivider.js +3 -3
  420. package/lists/ListIcon.js +3 -3
  421. package/lists/ListItem.js +3 -3
  422. package/lists/ListText.js +3 -3
  423. package/lists/ListTextGroup.js +3 -3
  424. package/lists/ListTitle.js +3 -3
  425. package/loader/DfdsLoader.js +1 -1
  426. package/loader/Loader.js +1 -1
  427. package/localization/LocaleFlag.js +3 -3
  428. package/logo/Logo.js +3 -3
  429. package/menu/Menu.js +3 -3
  430. package/mobile-stepper/MobileStepper.js +8 -8
  431. package/nav-bar/NavBar.js +7 -7
  432. package/package.json +10 -10
  433. package/pagination/Pagination.js +2 -2
  434. package/pagination/Pagination.styles.js +1 -1
  435. package/popper/Popper.js +3 -3
  436. package/schedule/ScheduleList.js +3 -3
  437. package/side-sheet/SideSheet.js +8 -8
  438. package/side-sheet/SideSheetCloseButton.js +3 -3
  439. package/side-sheet/SideSheetContent.js +3 -3
  440. package/side-sheet/SideSheetFooter.js +3 -3
  441. package/side-sheet/SideSheetHeader.js +3 -3
  442. package/site-layout/SiteLayout.js +3 -3
  443. package/skeleton/Skeleton.js +4 -4
  444. package/social-media-link-list/SocialMediaLinkList.js +3 -3
  445. package/spinner/Spinner.js +4 -4
  446. package/step/Step.js +3 -3
  447. package/step/StepButton.js +2 -2
  448. package/stepper/Stepper.js +4 -4
  449. package/surface/Surface.js +4 -4
  450. package/tab/Tab.js +3 -3
  451. package/tab/Tabs.js +7 -7
  452. package/table/Table.js +3 -3
  453. package/table/TableBody.js +3 -3
  454. package/table/TableDataCell.js +3 -3
  455. package/table/TableHead.js +4 -4
  456. package/table/TableHeaderCell.js +3 -3
  457. package/table/TableRow.js +4 -4
  458. package/tooltip/Tooltip.js +3 -3
  459. package/typography/Headlines.js +3 -3
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ declare const checkboxSizes: {
3
+ small: {
4
+ checkbox: string;
5
+ outline: string;
6
+ tick: string;
7
+ fontSize: string;
8
+ lineHeight: string;
9
+ paddingLeft: string;
10
+ };
11
+ medium: {
12
+ checkbox: string;
13
+ outline: string;
14
+ fontSize: string;
15
+ lineHeight: string;
16
+ tick: string;
17
+ paddingLeft: string;
18
+ };
19
+ };
20
+ declare type Size = keyof typeof checkboxSizes;
21
+ declare type BaseProps = Omit<JSX.IntrinsicElements['input'], 'size' | 'css'> & {
22
+ htmlSize?: number;
23
+ };
24
+ export declare type CheckboxProps = BaseProps & {
25
+ className?: string;
26
+ error?: boolean;
27
+ name?: string;
28
+ value?: string;
29
+ onChange?: (...args: any[]) => void;
30
+ onLabelClick?: JSX.IntrinsicElements['label']['onClick'];
31
+ disabled?: boolean;
32
+ checked?: boolean;
33
+ htmlSize?: number;
34
+ size?: Size;
35
+ indeterminate?: boolean;
36
+ leadingLabel?: boolean;
37
+ };
38
+ declare const _default: React.ForwardRefExoticComponent<Pick<CheckboxProps, "max" | "required" | "type" | "error" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "indeterminate" | "leadingLabel" | "onLabelClick" | "htmlSize"> & React.RefAttributes<HTMLInputElement>>;
39
+ export default _default;
@@ -12,10 +12,10 @@ var _theme = require("@dfds-ui/theme");
12
12
  var _typography = require("@dfds-ui/typography");
13
13
  var _styles = require("../../styles");
14
14
  const _excluded = ["children", "className", "error", "checked", "disabled", "indeterminate", "onChange", "onLabelClick", "size", "htmlSize", "leadingLabel"];
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- 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); }
17
- 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; }
18
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
18
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
19
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)."; }
20
20
  const checkboxSizes = {
21
21
  small: {
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare type ExampleControlComponentProps = {
3
+ onChange?: (...args: any[]) => void;
4
+ checked?: boolean;
5
+ error?: boolean;
6
+ disabled?: boolean;
7
+ size?: 'small' | 'medium';
8
+ };
9
+ declare const ExampleControlComponent: React.FunctionComponent<ExampleControlComponentProps>;
10
+ export default ExampleControlComponent;
@@ -8,16 +8,16 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
9
9
  var _react2 = require("@emotion/react");
10
10
  const _excluded = ["checked", "children"];
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); }
13
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
14
14
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
16
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
16
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
17
17
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
18
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
- 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; }
20
- 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; }
18
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
19
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
20
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
21
21
  const ExampleControlComponent = _ref => {
22
22
  let defaultChecked = _ref.checked,
23
23
  children = _ref.children,
@@ -0,0 +1 @@
1
+ export { default as Checkbox } from './Checkbox';
@@ -10,4 +10,4 @@ Object.defineProperty(exports, "Checkbox", {
10
10
  }
11
11
  });
12
12
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from '../text-field/TextField';
3
+ declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ }, {}, {}>;
6
+ export default _default;
@@ -8,15 +8,15 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _TextField = _interopRequireDefault(require("../text-field/TextField"));
10
10
  var _react2 = require("@emotion/react");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); } // EmailField is a composite component used to encapsulate a complete field with label, input and error/hint
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } // EmailField is a composite component used to encapsulate a complete field with label, input and error/hint
13
13
  const EmailField = (props, ref) => {
14
14
  return (0, _react2.jsx)(_TextField.default, _extends({}, props, {
15
15
  ref: ref,
16
16
  type: "email"
17
17
  }));
18
18
  };
19
- var _default = /*#__PURE__*/(0, _base.default)( /*#__PURE__*/_react.default.forwardRef(EmailField), {
19
+ var _default = /*#__PURE__*/(0, _base.default)(/*#__PURE__*/_react.default.forwardRef(EmailField), {
20
20
  target: "eoo1you0"
21
21
  })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9mb3Jtcy9lbWFpbC1maWVsZC9FbWFpbEZpZWxkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTZSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvZm9ybXMvZW1haWwtZmllbGQvRW1haWxGaWVsZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCBUZXh0RmllbGQsIHsgVGV4dEZpZWxkUHJvcHMgfSBmcm9tICcuLi90ZXh0LWZpZWxkL1RleHRGaWVsZCdcblxuLy8gRW1haWxGaWVsZCBpcyBhIGNvbXBvc2l0ZSBjb21wb25lbnQgdXNlZCB0byBlbmNhcHN1bGF0ZSBhIGNvbXBsZXRlIGZpZWxkIHdpdGggbGFiZWwsIGlucHV0IGFuZCBlcnJvci9oaW50XG5jb25zdCBFbWFpbEZpZWxkOiBSZWFjdC5Gb3J3YXJkUmVmUmVuZGVyRnVuY3Rpb248SFRNTElucHV0RWxlbWVudCwgVGV4dEZpZWxkUHJvcHM+ID0gKHByb3BzLCByZWYpID0+IHtcbiAgcmV0dXJuIDxUZXh0RmllbGQgey4uLnByb3BzfSByZWY9e3JlZiBhcyBhbnl9IHR5cGU9XCJlbWFpbFwiIC8+XG59XG5cbmV4cG9ydCBkZWZhdWx0IHN0eWxlZChSZWFjdC5mb3J3YXJkUmVmKEVtYWlsRmllbGQpKSgpXG4iXX0= */");
22
22
  exports.default = _default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const ErrorText: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ } & {
6
+ small?: boolean | undefined;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export default ErrorText;
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
  var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
8
  var _react = require("@emotion/react");
9
9
  var _theme = require("@dfds-ui/theme");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
12
12
  var _ref = process.env.NODE_ENV === "production" ? {
13
13
  name: "30ohwh",
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { LabelProps } from '../label/Label';
3
+ declare type FieldProps = {
4
+ labelProps?: LabelProps;
5
+ label?: React.ReactNode;
6
+ required?: boolean;
7
+ assistiveText?: string;
8
+ };
9
+ declare const Field: React.FunctionComponent<FieldProps>;
10
+ export default Field;
@@ -8,7 +8,7 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _Label = _interopRequireDefault(require("../label/Label"));
10
10
  var _react2 = require("@emotion/react");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
13
13
  const Wrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
14
14
  target: "eazjpxc2"
@@ -0,0 +1,21 @@
1
+ export { default as AssistiveText } from './assistive-text/AssistiveText';
2
+ export { default as Asterisk } from './asterisk/Asterisk';
3
+ export { default as Field } from './field/Field';
4
+ export { default as Input } from './input/Input';
5
+ export { default as Switch } from './switch/Switch';
6
+ export { default as Select } from './select/Select';
7
+ export { default as Label } from './label/Label';
8
+ export { default as TextField } from './text-field/TextField';
9
+ export { default as Radio } from './radio/Radio';
10
+ export declare type RadioProps = import('./radio/Radio').RadioProps;
11
+ export { default as Checkbox } from './checkbox/Checkbox';
12
+ export declare type CheckboxProps = import('./checkbox/Checkbox').CheckboxProps;
13
+ export { default as SelectField } from './select-field/SelectField';
14
+ export { default as TelField } from './tel-field/TelField';
15
+ export { default as EmailField } from './email-field/EmailField';
16
+ export { default as NumberField } from './number-field/NumberField';
17
+ export { default as ReactSelect } from './reactselect/ReactSelect';
18
+ export declare type BaseReactSelectProps = import('./reactselect/ReactSelect').BaseReactSelectProps;
19
+ export { default as PasswordField } from './password-field/PasswordField';
20
+ export { default as AsyncSearchableSelect } from './searchable-select/AsyncSearchableSelect';
21
+ export { default as ErrorText } from './error-text/ErrorText';
@@ -129,4 +129,4 @@ var _ReactSelect = _interopRequireDefault(require("./reactselect/ReactSelect"));
129
129
  var _PasswordField = _interopRequireDefault(require("./password-field/PasswordField"));
130
130
  var _AsyncSearchableSelect = _interopRequireDefault(require("./searchable-select/AsyncSearchableSelect"));
131
131
  var _ErrorText = _interopRequireDefault(require("./error-text/ErrorText"));
132
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
132
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare type Alignment = 'left' | 'right';
3
+ export declare type Size = 'small' | 'medium';
4
+ interface InputProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size' | 'css'> {
5
+ name: string;
6
+ multiline?: boolean;
7
+ required?: boolean;
8
+ error?: boolean;
9
+ className?: string;
10
+ wrapperClassName?: string;
11
+ icon?: React.ReactNode;
12
+ iconAlignment?: Alignment;
13
+ placeholder?: string;
14
+ placeholderAlignment?: Alignment;
15
+ size?: Size;
16
+ htmlSize?: number;
17
+ }
18
+ declare const _default: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "type" | "error" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "multiline" | "htmlSize" | "placeholderAlignment" | "wrapperClassName" | "iconAlignment"> & React.RefAttributes<HTMLInputElement>>;
19
+ export default _default;
@@ -9,10 +9,10 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
10
  var _theme = require("@dfds-ui/theme");
11
11
  const _excluded = ["name", "multiline", "error", "icon", "placeholder", "placeholderAlignment", "wrapperClassName", "size", "htmlSize", "disabled"];
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- 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; }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
16
  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)."; }
17
17
  const Wrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
18
18
  target: "ezaj29z2"
@@ -0,0 +1,43 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare type Alignment = 'left' | 'right';
3
+ export declare type Size = 'small' | 'medium' | 'large';
4
+ declare type ReactInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
5
+ export declare type InputCompositionProps = {
6
+ visualSize?: Size;
7
+ className?: string;
8
+ children?: ReactNode;
9
+ } & React.PropsWithoutRef<JSX.IntrinsicElements['div']>;
10
+ export declare type InputIconProps = {
11
+ icon: React.ElementType;
12
+ color?: string;
13
+ className?: string;
14
+ size?: Size;
15
+ };
16
+ export declare type InputProps = {
17
+ /**
18
+ * Name of the input element
19
+ */
20
+ name: string;
21
+ /**
22
+ * Indicates that the input element has an error
23
+ */
24
+ error?: boolean;
25
+ className?: string;
26
+ placeholder?: string;
27
+ placeholderAlignment?: Alignment;
28
+ disabled?: boolean;
29
+ children?: React.ReactNode;
30
+ } & Omit<ReactInputProps, 'css'>;
31
+ export declare function inputTypography(size: Size): import("@emotion/utils").SerializedStyles;
32
+ export declare const InputComposition: ({ visualSize, children, ...rest }: InputCompositionProps) => JSX.Element;
33
+ export declare const InputIcon: import("@emotion/styled").StyledComponent<InputIconProps & {
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ }, {}, {}>;
36
+ export declare const InputAddon: import("@emotion/styled").StyledComponent<{
37
+ className?: string | undefined;
38
+ children?: ReactNode;
39
+ } & {
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ }, {}, {}>;
42
+ export declare const InputControl: React.ForwardRefExoticComponent<Pick<InputProps, "error" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "placeholderAlignment"> & React.RefAttributes<HTMLInputElement>>;
43
+ export {};
@@ -13,12 +13,11 @@ const _excluded = ["visualSize", "children"],
13
13
  _excluded2 = ["className", "icon", "color", "size"],
14
14
  _excluded3 = ["className", "children"],
15
15
  _excluded4 = ["error", "disabled"];
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
- 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; }
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
19
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
20
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
22
21
  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)."; } // Example
23
22
  /*
24
23
  <InputComposition>
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export declare type LabelProps = {
3
+ required?: boolean;
4
+ size?: string;
5
+ htmlFor?: string;
6
+ inverted?: boolean;
7
+ hideAsterisk?: boolean;
8
+ };
9
+ declare const Label: React.FunctionComponent<LabelProps>;
10
+ export default Label;
@@ -10,9 +10,9 @@ var _react2 = require("@emotion/react");
10
10
  var _Asterisk = _interopRequireDefault(require("../asterisk/Asterisk"));
11
11
  var _theme = require("@dfds-ui/theme");
12
12
  const _excluded = ["required", "children", "hideAsterisk"];
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
16
16
  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)."; }
17
17
  const labelStyles = process.env.NODE_ENV === "production" ? {
18
18
  name: "1q659ri",
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from '../text-field/TextField';
3
+ declare const _default: import("@emotion/styled").StyledComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement> & {
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ }, {}, {}>;
6
+ export default _default;
@@ -8,8 +8,8 @@ var _base = _interopRequireDefault(require("@emotion/styled/base"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
10
  var _TextField = _interopRequireDefault(require("../text-field/TextField"));
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
13
  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)."; }
14
14
  const textFieldStyles = process.env.NODE_ENV === "production" ? {
15
15
  name: "wcz3kh",
@@ -29,7 +29,7 @@ const NumberField = (props, ref) => {
29
29
  type: "number"
30
30
  }));
31
31
  };
32
- var _default = /*#__PURE__*/(0, _base.default)( /*#__PURE__*/_react.default.forwardRef(NumberField), {
32
+ var _default = /*#__PURE__*/(0, _base.default)(/*#__PURE__*/_react.default.forwardRef(NumberField), {
33
33
  target: "e1utn77e0"
34
34
  })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9mb3Jtcy9udW1iZXItZmllbGQvTnVtYmVyRmllbGQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCZSIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMvZm9ybXMvbnVtYmVyLWZpZWxkL051bWJlckZpZWxkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgVGV4dEZpZWxkLCB7IFRleHRGaWVsZFByb3BzIH0gZnJvbSAnLi4vdGV4dC1maWVsZC9UZXh0RmllbGQnXG5cbmNvbnN0IHRleHRGaWVsZFN0eWxlcyA9IGNzc2BcbiAgaW5wdXRbdHlwZT0nbnVtYmVyJ10ge1xuICAgIGFwcGVhcmFuY2U6IHRleHRmaWVsZDtcbiAgfVxuICBpbnB1dFt0eXBlPSdudW1iZXInXTo6LXdlYmtpdC1pbm5lci1zcGluLWJ1dHRvbixcbiAgaW5wdXRbdHlwZT0nbnVtYmVyJ106Oi13ZWJraXQtb3V0ZXItc3Bpbi1idXR0b24ge1xuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgbWFyZ2luOiAwO1xuICB9XG5gXG5cbi8vIE51bWJlckZpZWxkIGlzIGEgY29tcG9zaXRlIGNvbXBvbmVudCB1c2VkIHRvIGVuY2Fwc3VsYXRlIGEgY29tcGxldGUgZmllbGQgd2l0aCBsYWJlbCwgaW5wdXQgYW5kIGVycm9yL2hpbnRcbmNvbnN0IE51bWJlckZpZWxkOiBSZWFjdC5Gb3J3YXJkUmVmUmVuZGVyRnVuY3Rpb248SFRNTElucHV0RWxlbWVudCwgVGV4dEZpZWxkUHJvcHM+ID0gKHByb3BzLCByZWYpID0+IHtcbiAgcmV0dXJuIDxUZXh0RmllbGQgey4uLnByb3BzfSBjc3M9e3RleHRGaWVsZFN0eWxlc30gcmVmPXtyZWYgYXMgYW55fSB0eXBlPVwibnVtYmVyXCIgLz5cbn1cblxuZXhwb3J0IGRlZmF1bHQgc3R5bGVkKFJlYWN0LmZvcndhcmRSZWYoTnVtYmVyRmllbGQpKSgpXG4iXX0= */");
35
35
  exports.default = _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TextFieldProps } from '../text-field/TextField';
3
+ declare const _default: React.ForwardRefExoticComponent<Pick<TextFieldProps, "max" | "required" | "type" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "label" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "icon" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "inverted" | "hideAsterisk" | "assistiveText" | "hintText" | "errorMessage"> & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
@@ -9,16 +9,15 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _icons = require("@dfds-ui/icons");
10
10
  var _TextField = _interopRequireDefault(require("../text-field/TextField"));
11
11
  var _react2 = require("@emotion/react");
12
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- 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); }
16
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
16
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
19
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
21
  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)."; } /* eslint-disable deprecation/deprecation */
23
22
  const IconWrapper = /*#__PURE__*/(0, _base.default)("span", process.env.NODE_ENV === "production" ? {
24
23
  target: "e82rmjd0"
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export declare const radioSizes: {
3
+ small: {
4
+ circle: string;
5
+ mark: string;
6
+ outline: string;
7
+ fontSize: string;
8
+ lineHeight: string;
9
+ paddingLeft: string;
10
+ };
11
+ medium: {
12
+ circle: string;
13
+ mark: string;
14
+ outline: string;
15
+ fontSize: string;
16
+ lineHeight: string;
17
+ paddingLeft: string;
18
+ };
19
+ };
20
+ export declare type BaseProps = Omit<JSX.IntrinsicElements['input'], 'size' | 'css'> & {
21
+ htmlSize?: number;
22
+ };
23
+ export declare type Size = keyof typeof radioSizes;
24
+ export declare type RadioProps = BaseProps & {
25
+ className?: string;
26
+ error?: boolean;
27
+ name: string;
28
+ value: string;
29
+ onChange?: any;
30
+ disabled?: boolean;
31
+ checked?: boolean;
32
+ size?: Size;
33
+ };
34
+ declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "max" | "required" | "type" | "error" | "key" | "id" | "height" | "width" | "name" | "color" | "translate" | "value" | "hidden" | "form" | "slot" | "style" | "title" | "dir" | "pattern" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "enterKeyHint" | "inputMode" | "tabIndex" | "disabled" | "multiple" | "size" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "min" | "minLength" | "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" | "readOnly" | "src" | "step" | "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" | "htmlSize"> & React.RefAttributes<HTMLInputElement>>;
35
+ export default Radio;