@dnb/eufemia 9.17.2 → 9.18.0

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 (382) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/components/Tag.d.ts +14 -0
  3. package/cjs/components/Tag.js +52 -0
  4. package/cjs/components/accordion/Accordion.d.ts +7 -7
  5. package/cjs/components/autocomplete/Autocomplete.d.ts +13 -13
  6. package/cjs/components/button/Button.d.ts +7 -7
  7. package/cjs/components/button/Button.js +6 -4
  8. package/cjs/components/checkbox/Checkbox.d.ts +3 -3
  9. package/cjs/components/date-picker/DatePicker.d.ts +14 -14
  10. package/cjs/components/date-picker/DatePickerAddon.d.ts +1 -1
  11. package/cjs/components/date-picker/DatePickerCalendar.d.ts +1 -1
  12. package/cjs/components/date-picker/DatePickerInput.d.ts +1 -1
  13. package/cjs/components/dropdown/Dropdown.d.ts +9 -9
  14. package/cjs/components/form-row/FormRow.d.ts +4 -4
  15. package/cjs/components/form-set/FormSet.d.ts +5 -5
  16. package/cjs/components/global-error/GlobalError.d.ts +1 -1
  17. package/cjs/components/global-status/GlobalStatus.d.ts +5 -5
  18. package/cjs/components/heading/Heading.d.ts +2 -2
  19. package/cjs/components/heading/HeadingProvider.d.ts +2 -2
  20. package/cjs/components/icon/Icon.d.ts +1 -1
  21. package/cjs/components/icon-primary/IconPrimary.d.ts +1 -1
  22. package/cjs/components/index.d.ts +2 -0
  23. package/cjs/components/index.js +8 -0
  24. package/cjs/components/input/Input.d.ts +9 -9
  25. package/cjs/components/input-masked/InputMasked.d.ts +11 -11
  26. package/cjs/components/input-masked/InputMasked.js +6 -3
  27. package/cjs/components/input-masked/InputMaskedHooks.js +26 -34
  28. package/cjs/components/input-masked/InputMaskedUtils.js +9 -20
  29. package/cjs/components/lib.js +9 -0
  30. package/cjs/components/modal/Modal.js +123 -271
  31. package/cjs/components/modal/ModalContent.js +145 -243
  32. package/cjs/components/modal/ModalRoot.js +194 -0
  33. package/cjs/components/modal/components/CloseButton.js +125 -0
  34. package/cjs/components/modal/components/ModalHeader.js +124 -0
  35. package/cjs/components/modal/{ModalHeader.js → components/ModalHeaderBar.js} +50 -162
  36. package/cjs/components/modal/{ModalInner.js → components/ModalInner.js} +11 -19
  37. package/cjs/components/modal/helpers.js +80 -0
  38. package/cjs/components/modal/types.js +1 -0
  39. package/cjs/components/number-format/NumberFormat.d.ts +8 -8
  40. package/cjs/components/pagination/Pagination.d.ts +30 -30
  41. package/cjs/components/pagination/PaginationProvider.d.ts +2 -2
  42. package/cjs/components/radio/Radio.d.ts +4 -4
  43. package/cjs/components/radio/RadioGroup.d.ts +3 -3
  44. package/cjs/components/section/Section.d.ts +3 -2
  45. package/cjs/components/skeleton/Skeleton.d.ts +2 -2
  46. package/cjs/components/slider/Slider.d.ts +4 -4
  47. package/cjs/components/step-indicator/StepIndicator.d.ts +5 -5
  48. package/cjs/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  49. package/cjs/components/step-indicator/StepIndicatorItem.d.ts +2 -2
  50. package/cjs/components/step-indicator/StepIndicatorItem.js +1 -0
  51. package/cjs/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  52. package/cjs/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  53. package/cjs/components/switch/Switch.d.ts +5 -5
  54. package/cjs/components/tabs/Tabs.d.ts +4 -4
  55. package/cjs/components/tabs/TabsContentWrapper.d.ts +1 -1
  56. package/cjs/components/tag/Tag.js +97 -0
  57. package/cjs/components/tag/index.d.ts +8 -0
  58. package/cjs/components/tag/index.js +52 -0
  59. package/cjs/components/tag/style/_tag.scss +26 -0
  60. package/cjs/components/tag/style/dnb-tag.css +109 -0
  61. package/cjs/components/tag/style/dnb-tag.min.css +1 -0
  62. package/cjs/components/tag/style/dnb-tag.scss +12 -0
  63. package/cjs/components/tag/style/index.d.ts +6 -0
  64. package/cjs/components/tag/style/index.js +3 -0
  65. package/cjs/components/tag/style.js +3 -0
  66. package/cjs/components/textarea/Textarea.d.ts +4 -4
  67. package/cjs/components/toggle-button/ToggleButton.d.ts +6 -6
  68. package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
  69. package/cjs/components/tooltip/Tooltip.d.ts +5 -5
  70. package/cjs/components/tooltip/TooltipContainer.d.ts +3 -3
  71. package/cjs/components/tooltip/TooltipPortal.d.ts +1 -1
  72. package/cjs/components/tooltip/TooltipWithEvents.d.ts +1 -1
  73. package/cjs/fragments/scroll-view/ScrollView.js +7 -16
  74. package/cjs/index.d.ts +2 -0
  75. package/cjs/index.js +8 -0
  76. package/cjs/shared/Context.js +2 -1
  77. package/cjs/style/core/helper-classes/skip-link.scss +1 -1
  78. package/cjs/style/dnb-ui-components.css +40 -0
  79. package/cjs/style/dnb-ui-components.min.css +1 -1
  80. package/cjs/style/dnb-ui-components.scss +1 -0
  81. package/components/Tag.d.ts +14 -0
  82. package/components/Tag.js +3 -0
  83. package/components/accordion/Accordion.d.ts +7 -7
  84. package/components/autocomplete/Autocomplete.d.ts +13 -13
  85. package/components/button/Button.d.ts +7 -7
  86. package/components/button/Button.js +6 -4
  87. package/components/checkbox/Checkbox.d.ts +3 -3
  88. package/components/date-picker/DatePicker.d.ts +14 -14
  89. package/components/date-picker/DatePickerAddon.d.ts +1 -1
  90. package/components/date-picker/DatePickerCalendar.d.ts +1 -1
  91. package/components/date-picker/DatePickerInput.d.ts +1 -1
  92. package/components/dropdown/Dropdown.d.ts +9 -9
  93. package/components/form-row/FormRow.d.ts +4 -4
  94. package/components/form-set/FormSet.d.ts +5 -5
  95. package/components/global-error/GlobalError.d.ts +1 -1
  96. package/components/global-status/GlobalStatus.d.ts +5 -5
  97. package/components/heading/Heading.d.ts +2 -2
  98. package/components/heading/HeadingProvider.d.ts +2 -2
  99. package/components/icon/Icon.d.ts +1 -1
  100. package/components/index.d.ts +2 -0
  101. package/components/index.js +2 -1
  102. package/components/input/Input.d.ts +9 -9
  103. package/components/input-masked/InputMasked.d.ts +11 -11
  104. package/components/input-masked/InputMasked.js +6 -4
  105. package/components/input-masked/InputMaskedHooks.js +24 -28
  106. package/components/input-masked/InputMaskedUtils.js +9 -20
  107. package/components/lib.js +3 -1
  108. package/components/modal/Modal.js +112 -250
  109. package/components/modal/Modal.tsx +524 -0
  110. package/components/modal/ModalContent.js +137 -224
  111. package/components/modal/ModalContent.tsx +515 -0
  112. package/components/modal/ModalContext.tsx +10 -0
  113. package/components/modal/ModalRoot.js +145 -0
  114. package/components/modal/ModalRoot.tsx +131 -0
  115. package/components/modal/components/CloseButton.js +72 -0
  116. package/components/modal/components/CloseButton.tsx +56 -0
  117. package/components/modal/components/ModalHeader.js +70 -0
  118. package/components/modal/components/ModalHeader.tsx +79 -0
  119. package/components/modal/components/ModalHeaderBar.js +122 -0
  120. package/components/modal/components/ModalHeaderBar.tsx +118 -0
  121. package/components/modal/{ModalInner.js → components/ModalInner.js} +11 -17
  122. package/components/modal/components/ModalInner.tsx +45 -0
  123. package/components/modal/helpers.js +64 -0
  124. package/components/modal/helpers.ts +63 -0
  125. package/components/modal/types.js +1 -0
  126. package/{cjs/components/modal/Modal.d.ts → components/modal/types.ts} +124 -182
  127. package/components/number-format/NumberFormat.d.ts +8 -8
  128. package/components/pagination/Pagination.d.ts +30 -30
  129. package/components/pagination/PaginationProvider.d.ts +2 -2
  130. package/components/radio/Radio.d.ts +4 -4
  131. package/components/radio/RadioGroup.d.ts +3 -3
  132. package/components/section/Section.d.ts +3 -1
  133. package/components/skeleton/Skeleton.d.ts +2 -2
  134. package/components/slider/Slider.d.ts +4 -4
  135. package/components/step-indicator/StepIndicator.d.ts +5 -5
  136. package/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  137. package/components/step-indicator/StepIndicatorItem.d.ts +2 -2
  138. package/components/step-indicator/StepIndicatorItem.js +1 -0
  139. package/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  140. package/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  141. package/components/switch/Switch.d.ts +5 -5
  142. package/components/tabs/Tabs.d.ts +4 -4
  143. package/components/tabs/TabsContentWrapper.d.ts +1 -1
  144. package/components/tag/Tag.js +63 -0
  145. package/components/tag/Tag.tsx +95 -0
  146. package/components/tag/index.d.ts +8 -0
  147. package/components/tag/index.js +3 -0
  148. package/components/tag/style/_tag.scss +26 -0
  149. package/components/tag/style/dnb-tag.css +109 -0
  150. package/components/tag/style/dnb-tag.min.css +1 -0
  151. package/components/tag/style/dnb-tag.scss +12 -0
  152. package/components/tag/style/index.d.ts +6 -0
  153. package/components/tag/style/index.js +1 -0
  154. package/components/tag/style.js +1 -0
  155. package/components/textarea/Textarea.d.ts +4 -4
  156. package/components/toggle-button/ToggleButton.d.ts +6 -6
  157. package/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
  158. package/components/tooltip/Tooltip.d.ts +5 -5
  159. package/components/tooltip/TooltipContainer.d.ts +3 -3
  160. package/components/tooltip/TooltipPortal.d.ts +1 -1
  161. package/components/tooltip/TooltipWithEvents.d.ts +1 -1
  162. package/es/components/Tag.d.ts +14 -0
  163. package/es/components/Tag.js +3 -0
  164. package/es/components/accordion/Accordion.d.ts +7 -7
  165. package/es/components/autocomplete/Autocomplete.d.ts +13 -13
  166. package/es/components/button/Button.d.ts +7 -7
  167. package/es/components/button/Button.js +6 -4
  168. package/es/components/checkbox/Checkbox.d.ts +3 -3
  169. package/es/components/date-picker/DatePicker.d.ts +14 -14
  170. package/es/components/date-picker/DatePickerAddon.d.ts +1 -1
  171. package/es/components/date-picker/DatePickerCalendar.d.ts +1 -1
  172. package/es/components/date-picker/DatePickerInput.d.ts +1 -1
  173. package/es/components/dropdown/Dropdown.d.ts +9 -9
  174. package/es/components/form-row/FormRow.d.ts +4 -4
  175. package/es/components/form-set/FormSet.d.ts +5 -5
  176. package/es/components/global-error/GlobalError.d.ts +1 -1
  177. package/es/components/global-status/GlobalStatus.d.ts +5 -5
  178. package/es/components/heading/Heading.d.ts +2 -2
  179. package/es/components/heading/HeadingProvider.d.ts +2 -2
  180. package/es/components/icon/Icon.d.ts +1 -1
  181. package/es/components/icon-primary/IconPrimary.d.ts +1 -1
  182. package/es/components/index.d.ts +2 -0
  183. package/es/components/index.js +2 -1
  184. package/es/components/input/Input.d.ts +9 -9
  185. package/es/components/input-masked/InputMasked.d.ts +11 -11
  186. package/es/components/input-masked/InputMasked.js +6 -4
  187. package/es/components/input-masked/InputMaskedHooks.js +14 -18
  188. package/es/components/input-masked/InputMaskedUtils.js +7 -18
  189. package/es/components/lib.js +3 -1
  190. package/es/components/modal/Modal.js +97 -227
  191. package/es/components/modal/Modal.tsx +524 -0
  192. package/es/components/modal/ModalContent.js +95 -186
  193. package/es/components/modal/ModalContent.tsx +515 -0
  194. package/es/components/modal/ModalContext.tsx +10 -0
  195. package/es/components/modal/ModalRoot.js +108 -0
  196. package/es/components/modal/ModalRoot.tsx +131 -0
  197. package/es/components/modal/components/CloseButton.js +41 -0
  198. package/es/components/modal/components/CloseButton.tsx +56 -0
  199. package/es/components/modal/components/ModalHeader.js +40 -0
  200. package/es/components/modal/components/ModalHeader.tsx +79 -0
  201. package/es/components/modal/components/ModalHeaderBar.js +88 -0
  202. package/es/components/modal/components/ModalHeaderBar.tsx +118 -0
  203. package/es/components/modal/{ModalInner.js → components/ModalInner.js} +8 -18
  204. package/es/components/modal/components/ModalInner.tsx +45 -0
  205. package/es/components/modal/helpers.js +60 -0
  206. package/es/components/modal/helpers.ts +63 -0
  207. package/es/components/modal/types.js +1 -0
  208. package/es/components/modal/{Modal.d.ts → types.ts} +124 -182
  209. package/es/components/number-format/NumberFormat.d.ts +8 -8
  210. package/es/components/pagination/Pagination.d.ts +30 -30
  211. package/es/components/pagination/PaginationProvider.d.ts +2 -2
  212. package/es/components/radio/Radio.d.ts +4 -4
  213. package/es/components/radio/RadioGroup.d.ts +3 -3
  214. package/es/components/section/Section.d.ts +3 -2
  215. package/es/components/skeleton/Skeleton.d.ts +2 -2
  216. package/es/components/slider/Slider.d.ts +4 -4
  217. package/es/components/step-indicator/StepIndicator.d.ts +5 -5
  218. package/es/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  219. package/es/components/step-indicator/StepIndicatorItem.d.ts +2 -2
  220. package/es/components/step-indicator/StepIndicatorItem.js +1 -0
  221. package/es/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  222. package/es/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  223. package/es/components/switch/Switch.d.ts +5 -5
  224. package/es/components/tabs/Tabs.d.ts +4 -4
  225. package/es/components/tabs/TabsContentWrapper.d.ts +1 -1
  226. package/es/components/tag/Tag.js +58 -0
  227. package/es/components/tag/Tag.tsx +95 -0
  228. package/es/components/tag/index.d.ts +8 -0
  229. package/es/components/tag/index.js +3 -0
  230. package/es/components/tag/style/_tag.scss +26 -0
  231. package/es/components/tag/style/dnb-tag.css +109 -0
  232. package/es/components/tag/style/dnb-tag.min.css +1 -0
  233. package/es/components/tag/style/dnb-tag.scss +12 -0
  234. package/es/components/tag/style/index.d.ts +6 -0
  235. package/es/components/tag/style/index.js +1 -0
  236. package/es/components/tag/style.js +1 -0
  237. package/es/components/textarea/Textarea.d.ts +4 -4
  238. package/es/components/toggle-button/ToggleButton.d.ts +6 -6
  239. package/es/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
  240. package/es/components/tooltip/Tooltip.d.ts +5 -5
  241. package/es/components/tooltip/TooltipContainer.d.ts +3 -3
  242. package/es/components/tooltip/TooltipPortal.d.ts +1 -1
  243. package/es/components/tooltip/TooltipWithEvents.d.ts +1 -1
  244. package/es/fragments/scroll-view/ScrollView.js +7 -15
  245. package/es/fragments/scroll-view/ScrollView.tsx +92 -0
  246. package/es/index.d.ts +2 -0
  247. package/es/index.js +2 -1
  248. package/es/shared/Context.js +2 -1
  249. package/es/style/core/helper-classes/skip-link.scss +1 -1
  250. package/es/style/dnb-ui-components.css +40 -0
  251. package/es/style/dnb-ui-components.min.css +1 -1
  252. package/es/style/dnb-ui-components.scss +1 -0
  253. package/esm/components/Tag.d.ts +14 -0
  254. package/esm/components/Tag.js +3 -0
  255. package/esm/components/accordion/Accordion.d.ts +7 -7
  256. package/esm/components/autocomplete/Autocomplete.d.ts +13 -13
  257. package/esm/components/button/Button.d.ts +7 -7
  258. package/esm/components/button/Button.js +6 -4
  259. package/esm/components/checkbox/Checkbox.d.ts +3 -3
  260. package/esm/components/date-picker/DatePicker.d.ts +14 -14
  261. package/esm/components/date-picker/DatePickerAddon.d.ts +1 -1
  262. package/esm/components/date-picker/DatePickerCalendar.d.ts +1 -1
  263. package/esm/components/date-picker/DatePickerInput.d.ts +1 -1
  264. package/esm/components/dropdown/Dropdown.d.ts +9 -9
  265. package/esm/components/form-row/FormRow.d.ts +4 -4
  266. package/esm/components/form-set/FormSet.d.ts +5 -5
  267. package/esm/components/global-error/GlobalError.d.ts +1 -1
  268. package/esm/components/global-status/GlobalStatus.d.ts +5 -5
  269. package/esm/components/heading/Heading.d.ts +2 -2
  270. package/esm/components/heading/HeadingProvider.d.ts +2 -2
  271. package/esm/components/icon/Icon.d.ts +1 -1
  272. package/esm/components/index.d.ts +2 -0
  273. package/esm/components/index.js +2 -1
  274. package/esm/components/input/Input.d.ts +9 -9
  275. package/esm/components/input-masked/InputMasked.d.ts +11 -11
  276. package/esm/components/input-masked/InputMasked.js +6 -4
  277. package/esm/components/input-masked/InputMaskedHooks.js +24 -28
  278. package/esm/components/input-masked/InputMaskedUtils.js +9 -20
  279. package/esm/components/lib.js +3 -1
  280. package/esm/components/modal/Modal.js +112 -250
  281. package/esm/components/modal/Modal.tsx +524 -0
  282. package/esm/components/modal/ModalContent.js +137 -224
  283. package/esm/components/modal/ModalContent.tsx +515 -0
  284. package/esm/components/modal/ModalContext.tsx +10 -0
  285. package/esm/components/modal/ModalRoot.js +145 -0
  286. package/esm/components/modal/ModalRoot.tsx +131 -0
  287. package/esm/components/modal/components/CloseButton.js +72 -0
  288. package/esm/components/modal/components/CloseButton.tsx +56 -0
  289. package/esm/components/modal/components/ModalHeader.js +70 -0
  290. package/esm/components/modal/components/ModalHeader.tsx +79 -0
  291. package/esm/components/modal/components/ModalHeaderBar.js +122 -0
  292. package/esm/components/modal/components/ModalHeaderBar.tsx +118 -0
  293. package/esm/components/modal/{ModalInner.js → components/ModalInner.js} +11 -17
  294. package/esm/components/modal/components/ModalInner.tsx +45 -0
  295. package/esm/components/modal/helpers.js +64 -0
  296. package/esm/components/modal/helpers.ts +63 -0
  297. package/esm/components/modal/types.js +1 -0
  298. package/esm/components/modal/{Modal.d.ts → types.ts} +124 -182
  299. package/esm/components/number-format/NumberFormat.d.ts +8 -8
  300. package/esm/components/pagination/Pagination.d.ts +30 -30
  301. package/esm/components/pagination/PaginationProvider.d.ts +2 -2
  302. package/esm/components/radio/Radio.d.ts +4 -4
  303. package/esm/components/radio/RadioGroup.d.ts +3 -3
  304. package/esm/components/section/Section.d.ts +3 -1
  305. package/esm/components/skeleton/Skeleton.d.ts +2 -2
  306. package/esm/components/slider/Slider.d.ts +4 -4
  307. package/esm/components/step-indicator/StepIndicator.d.ts +5 -5
  308. package/esm/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  309. package/esm/components/step-indicator/StepIndicatorItem.d.ts +2 -2
  310. package/esm/components/step-indicator/StepIndicatorItem.js +1 -0
  311. package/esm/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  312. package/esm/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  313. package/esm/components/switch/Switch.d.ts +5 -5
  314. package/esm/components/tabs/Tabs.d.ts +4 -4
  315. package/esm/components/tabs/TabsContentWrapper.d.ts +1 -1
  316. package/esm/components/tag/Tag.js +63 -0
  317. package/esm/components/tag/Tag.tsx +95 -0
  318. package/esm/components/tag/index.d.ts +8 -0
  319. package/esm/components/tag/index.js +3 -0
  320. package/esm/components/tag/style/_tag.scss +26 -0
  321. package/esm/components/tag/style/dnb-tag.css +109 -0
  322. package/esm/components/tag/style/dnb-tag.min.css +1 -0
  323. package/esm/components/tag/style/dnb-tag.scss +12 -0
  324. package/esm/components/tag/style/index.d.ts +6 -0
  325. package/esm/components/tag/style/index.js +1 -0
  326. package/esm/components/tag/style.js +1 -0
  327. package/esm/components/textarea/Textarea.d.ts +4 -4
  328. package/esm/components/toggle-button/ToggleButton.d.ts +6 -6
  329. package/esm/components/toggle-button/ToggleButtonGroup.d.ts +3 -3
  330. package/esm/components/tooltip/Tooltip.d.ts +5 -5
  331. package/esm/components/tooltip/TooltipContainer.d.ts +3 -3
  332. package/esm/components/tooltip/TooltipPortal.d.ts +1 -1
  333. package/esm/components/tooltip/TooltipWithEvents.d.ts +1 -1
  334. package/esm/dnb-ui-components.min.mjs +1 -1
  335. package/esm/dnb-ui-elements.min.mjs +1 -1
  336. package/esm/dnb-ui-extensions.min.mjs +1 -1
  337. package/esm/dnb-ui-lib.min.mjs +2 -2
  338. package/esm/dnb-ui-web-components.min.mjs +2 -2
  339. package/esm/fragments/scroll-view/ScrollView.js +10 -16
  340. package/esm/fragments/scroll-view/ScrollView.tsx +92 -0
  341. package/esm/index.d.ts +2 -0
  342. package/esm/index.js +2 -1
  343. package/esm/shared/Context.js +2 -1
  344. package/esm/style/core/helper-classes/skip-link.scss +1 -1
  345. package/esm/style/dnb-ui-components.css +40 -0
  346. package/esm/style/dnb-ui-components.min.css +1 -1
  347. package/esm/style/dnb-ui-components.scss +1 -0
  348. package/fragments/scroll-view/ScrollView.js +10 -16
  349. package/fragments/scroll-view/ScrollView.tsx +92 -0
  350. package/index.d.ts +2 -0
  351. package/index.js +2 -1
  352. package/package.json +1 -1
  353. package/shared/Context.js +2 -1
  354. package/style/core/helper-classes/skip-link.scss +1 -1
  355. package/style/dnb-ui-components.css +40 -0
  356. package/style/dnb-ui-components.min.css +1 -1
  357. package/style/dnb-ui-components.scss +1 -0
  358. package/umd/dnb-ui-components.min.js +5 -5
  359. package/umd/dnb-ui-elements.min.js +1 -1
  360. package/umd/dnb-ui-extensions.min.js +1 -1
  361. package/umd/dnb-ui-lib.min.js +4 -4
  362. package/umd/dnb-ui-web-components.min.js +2 -2
  363. package/cjs/components/modal/ModalContent.d.ts +0 -168
  364. package/cjs/components/modal/ModalHeader.d.ts +0 -73
  365. package/cjs/components/modal/ModalInner.d.ts +0 -20
  366. package/cjs/fragments/scroll-view/ScrollView.d.ts +0 -1
  367. package/components/modal/Modal.d.ts +0 -329
  368. package/components/modal/ModalContent.d.ts +0 -168
  369. package/components/modal/ModalHeader.d.ts +0 -73
  370. package/components/modal/ModalHeader.js +0 -224
  371. package/components/modal/ModalInner.d.ts +0 -20
  372. package/es/components/modal/ModalContent.d.ts +0 -168
  373. package/es/components/modal/ModalHeader.d.ts +0 -73
  374. package/es/components/modal/ModalHeader.js +0 -166
  375. package/es/components/modal/ModalInner.d.ts +0 -20
  376. package/es/fragments/scroll-view/ScrollView.d.ts +0 -1
  377. package/esm/components/modal/ModalContent.d.ts +0 -168
  378. package/esm/components/modal/ModalHeader.d.ts +0 -73
  379. package/esm/components/modal/ModalHeader.js +0 -224
  380. package/esm/components/modal/ModalInner.d.ts +0 -20
  381. package/esm/fragments/scroll-view/ScrollView.d.ts +0 -1
  382. package/fragments/scroll-view/ScrollView.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to @dnb/eufemia will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [9.18.0](https://github.com/dnbexperience/eufemia/compare/v9.17.2...v9.18.0) (2021-12-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **InputMasked:** inherit of provider/context props ([89db309](https://github.com/dnbexperience/eufemia/commit/89db309fd0d09f125c3d66ff9e745a12fbfb6ed2))
12
+ * **Modal:** Convert to TypeScript ([#1177](https://github.com/dnbexperience/eufemia/issues/1177)) ([b832b29](https://github.com/dnbexperience/eufemia/commit/b832b29c401d6c1d8f1e9bb36eadbcac984bd330))
13
+ * **StepIndicator:** enhance NVDA support by omitting click event ([74ae87c](https://github.com/dnbexperience/eufemia/commit/74ae87ca601ac3f004518d6c5b6fd34ca8d5a439))
14
+
15
+
16
+ ### Features
17
+
18
+ * **Tag:** add new tag component ([dec57cb](https://github.com/dnbexperience/eufemia/commit/dec57cb8ded032b70b15a1b479d5cdc9782e0528))
19
+
6
20
  ## [9.17.2](https://github.com/dnbexperience/eufemia/compare/v9.17.1...v9.17.2) (2021-12-15)
7
21
 
8
22
 
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ATTENTION: This file is auto generated by using "prepareTemplates".
3
+ * Do not change the content!
4
+ *
5
+ */
6
+
7
+ /**
8
+ * Library Index tag to autogenerate all the components and extensions
9
+ * Used by "prepareTags"
10
+ */
11
+
12
+ import Tag from './tag/Tag'
13
+ export * from './tag/Tag'
14
+ export default Tag
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ require("core-js/modules/es.array.iterator.js");
6
+
7
+ require("core-js/modules/es.object.to-string.js");
8
+
9
+ require("core-js/modules/es.string.iterator.js");
10
+
11
+ require("core-js/modules/es.weak-map.js");
12
+
13
+ require("core-js/modules/web.dom-collections.iterator.js");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
16
+
17
+ require("core-js/modules/web.dom-collections.for-each.js");
18
+
19
+ require("core-js/modules/es.object.keys.js");
20
+
21
+ require("core-js/modules/es.symbol.js");
22
+
23
+ require("core-js/modules/es.symbol.description.js");
24
+
25
+ require("core-js/modules/es.symbol.iterator.js");
26
+
27
+ Object.defineProperty(exports, "__esModule", {
28
+ value: true
29
+ });
30
+ var _exportNames = {};
31
+ exports.default = void 0;
32
+
33
+ var _Tag = _interopRequireWildcard(require("./tag/Tag"));
34
+
35
+ Object.keys(_Tag).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
38
+ if (key in exports && exports[key] === _Tag[key]) return;
39
+ Object.defineProperty(exports, key, {
40
+ enumerable: true,
41
+ get: function get() {
42
+ return _Tag[key];
43
+ }
44
+ });
45
+ });
46
+
47
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
48
+
49
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
50
+
51
+ var _default = _Tag.default;
52
+ exports.default = _default;
@@ -59,7 +59,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
59
59
  title?: React.ReactNode;
60
60
 
61
61
  /**
62
- * If set to `true` the accordion will be expanded as it&#39;s initial state.
62
+ * If set to `true` the accordion will be expanded as its initial state.
63
63
  */
64
64
  expanded?: AccordionExpanded;
65
65
 
@@ -69,7 +69,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
69
69
  no_animation?: AccordionNoAnimation;
70
70
 
71
71
  /**
72
- * If set to `true` the accordion will be expanded during SSR. Can be potentially useful for SEO, although it will disturb client hydration, where React expects the same state. But thats mainly an technical aspect to consider.
72
+ * If set to `true` the accordion will be expanded during SSR. Can be potentially useful for SEO, although it will disturb client hydration, where React expects the same state. But that&#39;s mainly a technical aspect to consider.
73
73
  */
74
74
  expanded_ssr?: AccordionExpandedSsr;
75
75
 
@@ -79,7 +79,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
79
79
  prerender?: AccordionPrerender;
80
80
 
81
81
  /**
82
- * If set to `true` the accordion component will not re-render it&#39;s content – can be useful for widgets you don&#39;t have control of storing the temporary state during interaction.
82
+ * If set to `true` the accordion component will not re-render its content – can be useful for widgets you don&#39;t have control of storing the temporary state during an interaction.
83
83
  */
84
84
  prevent_rerender?: AccordionPreventRerender;
85
85
 
@@ -89,7 +89,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
89
89
  prevent_rerender_conditional?: AccordionPreventRerenderConditional;
90
90
 
91
91
  /**
92
- * If set to `true`, it will remember a changed state initiated by the user. It requires an unique `id`. It will store the sate in the local storage.
92
+ * If set to `true`, it will remember a changed state initiated by the user. It requires a unique `id`. It will store the sate in the local storage.
93
93
  */
94
94
  remember_state?: AccordionRememberState;
95
95
 
@@ -125,7 +125,7 @@ export interface AccordionProps extends React.HTMLProps<HTMLElement> {
125
125
  skeleton?: AccordionSkeleton;
126
126
 
127
127
  /**
128
- * An unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
128
+ * A unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
129
129
  */
130
130
  id?: string;
131
131
  group?: string;
@@ -214,13 +214,13 @@ export type GroupRememberState = string | boolean;
214
214
  */
215
215
  export interface GroupProps {
216
216
  /**
217
- * An unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
217
+ * A unique `id` that will be used on the button element. If you use `remember_state`, an id is required.
218
218
  */
219
219
  id?: string;
220
220
  group?: string;
221
221
 
222
222
  /**
223
- * If set to `true`, it will remember a changed state initiated by the user. It requires an unique `id`. It will store the sate in the local storage.
223
+ * If set to `true`, it will remember a changed state initiated by the user. It requires a unique `id`. It will store the sate in the local storage.
224
224
  */
225
225
  remember_state?: GroupRememberState;
226
226
  }
@@ -224,12 +224,12 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
224
224
  mode?: AutocompleteMode;
225
225
 
226
226
  /**
227
- * Give a title to let the user know what they has to do. Defaults to `Skriv og få alternativer&#39;` .
227
+ * Give a title to let the user know what theyhaves to do. Defaults to `Skriv og få alternativer&#39;` .
228
228
  */
229
229
  title?: AutocompleteTitle;
230
230
 
231
231
  /**
232
- * Use this to define the pre filled placeholder text in the input. Defaults to `title="Skriv og velg"`.
232
+ * Use this to define the pre-filled placeholder text in the input. Defaults to `title="Skriv og velg"`.
233
233
  */
234
234
  placeholder?: AutocompletePlaceholder;
235
235
 
@@ -254,7 +254,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
254
254
  indicator_label?: AutocompleteIndicatorLabel;
255
255
 
256
256
  /**
257
- * Only for screen readers. Title of the button in order to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.
257
+ * Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.
258
258
  */
259
259
  show_options_sr?: string;
260
260
 
@@ -284,7 +284,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
284
284
  icon_size?: string;
285
285
 
286
286
  /**
287
- * Position of icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.
287
+ * Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.
288
288
  */
289
289
  icon_position?: AutocompleteIconPosition;
290
290
 
@@ -314,7 +314,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
314
314
  label_sr_only?: AutocompleteLabelSrOnly;
315
315
 
316
316
  /**
317
- * Use `true` to not remove the typed value on input blur, if it is invalid. By default the typed value will disappear / replaced by a selected value from the data list during the input field blur.
317
+ * Use `true` to not remove the typed value on input blur, if it is invalid. By default, the typed value will disappear / replaced by a selected value from the data list during the input field blur.
318
318
  */
319
319
  keep_value?: AutocompleteKeepValue;
320
320
 
@@ -324,7 +324,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
324
324
  keep_value_and_selection?: AutocompleteKeepValueAndSelection;
325
325
 
326
326
  /**
327
- * If set to `true`, a clear button is showed inside the input field. Defaults to `false`.
327
+ * If set to `true`, a clear button is shown inside the input field. Defaults to `false`.
328
328
  */
329
329
  show_clear_button?: AutocompleteShowClearButton;
330
330
 
@@ -334,7 +334,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
334
334
  status?: AutocompleteStatus;
335
335
 
336
336
  /**
337
- * Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
337
+ * Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
338
338
  */
339
339
  status_state?: string;
340
340
 
@@ -375,7 +375,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
375
375
  focusable?: AutocompleteFocusable;
376
376
 
377
377
  /**
378
- * If set to `true`, word highlighting will disabled, but the options will still get filtered. Defaults to `false`.
378
+ * If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.
379
379
  */
380
380
  disable_highlighting?: AutocompleteDisableHighlighting;
381
381
 
@@ -410,7 +410,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
410
410
  show_submit_button?: AutocompleteShowSubmitButton;
411
411
 
412
412
  /**
413
- * Replace the drop down / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from &#39;@dnb/eufemia/components/input/Input&#39;`.
413
+ * Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from &#39;@dnb/eufemia/components/input/Input&#39;`.
414
414
  */
415
415
  submit_element?: React.ReactNode;
416
416
 
@@ -440,7 +440,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
440
440
  input_element?: AutocompleteInputElement;
441
441
 
442
442
  /**
443
- * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If You don&#39;t have to define a `value`, You can also send in a `function` which will be called once the user opens the DrawerList.
443
+ * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
444
444
  */
445
445
  data?: AutocompleteData;
446
446
 
@@ -455,7 +455,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
455
455
  search_numbers?: AutocompleteSearchNumbers;
456
456
 
457
457
  /**
458
- * If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice . Defaults to `null`.
458
+ * If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice. Defaults to `null`.
459
459
  */
460
460
  default_value?: AutocompleteDefaultValue;
461
461
 
@@ -470,7 +470,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
470
470
  input_value?: string;
471
471
 
472
472
  /**
473
- * Use `true` to auto open the list once the users is entering the input field with the keyboard.
473
+ * Use `true` to auto open the list once the user is entering the input field with the keyboard.
474
474
  */
475
475
  open_on_focus?: AutocompleteOpenOnFocus;
476
476
 
@@ -513,7 +513,7 @@ export interface AutocompleteProps extends React.HTMLProps<HTMLElement> {
513
513
  className?: string;
514
514
 
515
515
  /**
516
- * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If You don&#39;t have to define a `value`, You can also send in a `function` which will be called once the user opens the DrawerList.
516
+ * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
517
517
  */
518
518
  children?: AutocompleteChildren;
519
519
  custom_element?: Object;
@@ -22,7 +22,7 @@ export type ButtonStatus =
22
22
  | ((...args: any[]) => any)
23
23
  | React.ReactNode;
24
24
  export type ButtonStatusNoAnimation = string | boolean;
25
- export type ButtonTo = string | Object | ((...args: any[]) => any);
25
+ export type ButtonTo = string | any | ((...args: any[]) => any);
26
26
  export type ButtonWrap = string | boolean;
27
27
  export type ButtonBounding = string | boolean;
28
28
  export type ButtonStretch = string | boolean;
@@ -34,7 +34,7 @@ export type ButtonChildren =
34
34
  | React.ReactNode;
35
35
  export type ButtonElement =
36
36
  | ((...args: any[]) => any)
37
- | Object
37
+ | any
38
38
  | React.ReactNode;
39
39
  export type ButtonSpace =
40
40
  | string
@@ -66,10 +66,10 @@ export type ButtonRight = string | number | boolean;
66
66
  export type ButtonBottom = string | number | boolean;
67
67
  export type ButtonLeft = string | number | boolean;
68
68
  export type ButtonOnClick = string | ((...args: any[]) => any);
69
-
70
69
  /**
71
70
  * NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
72
71
  */
72
+
73
73
  export interface ButtonProps extends React.HTMLProps<HTMLElement> {
74
74
  /**
75
75
  * The content of the button can be a string or a React Element.
@@ -129,7 +129,7 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
129
129
  /**
130
130
  * Use an object to define additional FormStatus properties.
131
131
  */
132
- status_props?: Object;
132
+ status_props?: any;
133
133
  status_no_animation?: ButtonStatusNoAnimation;
134
134
 
135
135
  /**
@@ -178,9 +178,9 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
178
178
  */
179
179
  skeleton?: ButtonSkeleton;
180
180
  disabled?: ButtonDisabled;
181
- inner_ref?: Object;
181
+ inner_ref?: any;
182
182
  className?: string;
183
- innerRef?: Object;
183
+ innerRef?: any;
184
184
 
185
185
  /**
186
186
  * The content of the button can be a string or a React Element.
@@ -216,7 +216,7 @@ export interface ButtonProps extends React.HTMLProps<HTMLElement> {
216
216
  * Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
217
217
  */
218
218
  left?: ButtonLeft;
219
- custom_element?: Object;
219
+ custom_element?: any;
220
220
  custom_method?: (...args: any[]) => any;
221
221
 
222
222
  /**
@@ -241,14 +241,16 @@ var Button = function (_React$PureComponent) {
241
241
 
242
242
  var classes = (0, _classnames.default)("dnb-button dnb-button--".concat(usedVariant || 'primary'), (text || content || custom_content) && 'dnb-button--has-text', (0, _SkeletonHelper.createSkeletonClass)(variant === 'tertiary' ? 'font' : 'shape', skeleton, this.context), (0, _SpacingHelper.createSpacingClasses)(props), class_name, className, (props.href || props.to) && '', icon && "dnb-button--icon-position-".concat(icon_position, " dnb-button--has-icon") + (iconSize ? " dnb-button--icon-size-".concat(iconSize) : ""), usedSize && usedSize !== 'default' && "dnb-button--size-".concat(usedSize), (0, _componentHelper.isTrue)(stretch) && 'dnb-button--stretch', wrap && 'dnb-button--wrap', status && "dnb-button__status--".concat(status_state));
243
243
 
244
- var params = _objectSpread(_objectSpread({
244
+ var params = _objectSpread({
245
245
  className: classes,
246
246
  title: title,
247
247
  id: this._id,
248
248
  disabled: (0, _componentHelper.isTrue)(disabled)
249
- }, attributes), {}, {
250
- onClick: this.onClickHandler
251
- });
249
+ }, attributes);
250
+
251
+ if (this.props.on_click || this.props.onClick) {
252
+ params.onClick = this.onClickHandler;
253
+ }
252
254
 
253
255
  if (Element !== _Anchor.default && !params.type) {
254
256
  params.type = params.type === '' ? undefined : 'button';
@@ -57,7 +57,7 @@ export type CheckboxChildren = string | ((...args: any[]) => any);
57
57
  */
58
58
  export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
59
59
  /**
60
- * Use either the `label` property or provide custom one.
60
+ * Use either the `label` property or provide a custom one.
61
61
  */
62
62
  label?: CheckboxLabel;
63
63
 
@@ -74,7 +74,7 @@ export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
74
74
  default_state?: CheckboxDefaultState;
75
75
 
76
76
  /**
77
- * Determine whether the checkbox is checked or not. Default will be `false`.
77
+ * Determine whether the checkbox is checked or not. The default is `false`.
78
78
  */
79
79
  checked?: CheckboxChecked;
80
80
  disabled?: CheckboxDisabled;
@@ -91,7 +91,7 @@ export interface CheckboxProps extends React.HTMLProps<HTMLElement> {
91
91
  status?: CheckboxStatus;
92
92
 
93
93
  /**
94
- * Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
94
+ * Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
95
95
  */
96
96
  status_state?: string;
97
97
 
@@ -91,32 +91,32 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
91
91
  title?: string;
92
92
 
93
93
  /**
94
- * Defines the pre filled date by either a JavaScript DateInstance or (ISO 8601) like `date="2019-05-05"`.
94
+ * Defines the pre-filled date by either a JavaScript DateInstance or (ISO 8601) like `date="2019-05-05"`.
95
95
  */
96
96
  date?: DatePickerDate;
97
97
 
98
98
  /**
99
- * To set the pre filled starting date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
99
+ * To set the pre-filled starting date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
100
100
  */
101
101
  start_date?: DatePickerStartDate;
102
102
 
103
103
  /**
104
- * To set the pre filled ending date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
104
+ * To set the pre-filled ending date. Is used if `range={true}` is set to true. Defaults to null, showing the `mask_placeholder`.
105
105
  */
106
106
  end_date?: DatePickerEndDate;
107
107
 
108
108
  /**
109
- * To display what month should be shows in the first calendar by default. Defaults to the `date` respective `start_date`.
109
+ * To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
110
110
  */
111
111
  month?: DatePickerMonth;
112
112
 
113
113
  /**
114
- * To display what month should be shows in the first calendar by default. Defaults to the `date` respective `start_date`.
114
+ * To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
115
115
  */
116
116
  start_month?: DatePickerStartMonth;
117
117
 
118
118
  /**
119
- * To display what month should be shows in the second calendar by default. Defaults to the `date` respective `start_date`.
119
+ * To display what month should be shown in the second calendar by default. Defaults to the `date` respective `start_date`.
120
120
  */
121
121
  end_month?: DatePickerEndMonth;
122
122
 
@@ -168,7 +168,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
168
168
  only_month?: DatePickerOnlyMonth;
169
169
 
170
170
  /**
171
- * Use `true` to only show the last week in the current month, if it needs to be shows. The result is that there will mainly be shows five (5) weeks (rows) instead of six (6). Defaults to `false`.
171
+ * Use `true` to only show the last week in the current month if it needs to be shown. The result is that there will mainly be shows five (5) weeks (rows) instead of six (6). Defaults to `false`.
172
172
  */
173
173
  hide_last_week?: DatePickerHideLastWeek;
174
174
 
@@ -184,12 +184,12 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
184
184
  show_input?: DatePickerShowInput;
185
185
 
186
186
  /**
187
- * If set to `true`, a submit button will be shown. You can change the default text by using `submit_button_text="Ok"`. Defaults to `false`. If the `range` prop is `true`, then the submit button is show by.
187
+ * If set to `true`, a submit button will be shown. You can change the default text by using `submit_button_text="Ok"`. Defaults to `false`. If the `range` prop is `true`, then the submit button is shown.
188
188
  */
189
189
  show_submit_button?: DatePickerShowSubmitButton;
190
190
 
191
191
  /**
192
- * If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `false`. If the `range` prop is `true`, then the cancel button is show by.
192
+ * If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `false`. If the `range` prop is `true`, then the cancel button is shown.
193
193
  */
194
194
  show_cancel_button?: DatePickerShowCancelButton;
195
195
 
@@ -218,12 +218,12 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
218
218
  range?: DatePickerRange;
219
219
 
220
220
  /**
221
- * Link both calendars, once to user is navigating between months. Only meant to use if range is set to true. Defaults to `false`.
221
+ * Link both calendars, once to the user is navigating between months. Only meant to use if the range is set to true. Defaults to `false`.
222
222
  */
223
223
  link?: DatePickerLink;
224
224
 
225
225
  /**
226
- * Sync input values with the calendars views. Once the input values getting changed, the calendar changes its views in sync. Defaults to `true`.
226
+ * Sync input values with the calendars views. Once the input values get changed, the calendar changes its views in sync. Defaults to `true`.
227
227
  */
228
228
  sync?: DatePickerSync;
229
229
 
@@ -253,7 +253,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
253
253
  addon_element?: DatePickerAddonElement;
254
254
 
255
255
  /**
256
- * Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info below.
256
+ * Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info is below.
257
257
  */
258
258
  shortcuts?: DatePickerShortcuts;
259
259
  disabled?: DatePickerDisabled;
@@ -274,7 +274,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
274
274
  status?: DatePickerStatus;
275
275
 
276
276
  /**
277
- * Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
277
+ * Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
278
278
  */
279
279
  status_state?: string;
280
280
 
@@ -337,7 +337,7 @@ export interface DatePickerProps extends React.HTMLProps<HTMLElement> {
337
337
  custom_method?: (...args: any[]) => any;
338
338
 
339
339
  /**
340
- * Will be called right before every new calendar view gets rendered. Se example above.
340
+ * Will be called right before every new calendar view gets rendered. See the example above.
341
341
  */
342
342
  on_days_render?: (...args: any[]) => any;
343
343
 
@@ -10,7 +10,7 @@ export type DatePickerAddonRenderElement =
10
10
  export interface DatePickerAddonProps
11
11
  extends React.HTMLProps<HTMLElement> {
12
12
  /**
13
- * Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info below.
13
+ * Gives you the possibility to set predefined dates and date ranges so the user can select these by one click. Define either a JSON or an object with the defined shortcuts. More info is below.
14
14
  */
15
15
  shortcuts?: DatePickerAddonShortcuts;
16
16
  renderElement?: DatePickerAddonRenderElement;
@@ -9,7 +9,7 @@ export interface DatePickerCalendarProps
9
9
  nr?: number;
10
10
 
11
11
  /**
12
- * To display what month should be shows in the first calendar by default. Defaults to the `date` respective `start_date`.
12
+ * To display what month should be shown in the first calendar by default. Defaults to the `date` respective `start_date`.
13
13
  */
14
14
  month?: Date;
15
15
  prevBtn?: boolean;
@@ -29,7 +29,7 @@ export interface DatePickerInputProps
29
29
  status?: DatePickerInputStatus;
30
30
 
31
31
  /**
32
- * Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
32
+ * Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
33
33
  */
34
34
  status_state?: string;
35
35
 
@@ -200,12 +200,12 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
200
200
  id?: string;
201
201
 
202
202
  /**
203
- * Give a title to let the user know what they has to do. Defaults to `Valgmeny` .
203
+ * Give a title to let the users know what they have to do. Defaults to `Valgmeny`.
204
204
  */
205
205
  title?: DropdownTitle;
206
206
 
207
207
  /**
208
- * Defines the kind of dropdown. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `secondary` .
208
+ * Defines the kind of dropdown. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `secondary`.
209
209
  */
210
210
  variant?: DropdownVariant;
211
211
 
@@ -220,7 +220,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
220
220
  icon_size?: string;
221
221
 
222
222
  /**
223
- * Position of icon inside the dropdown. Set to `left` or `right`. Defaults to `right`.
223
+ * Position of the icon inside the dropdown. Set to `left` or `right`. Defaults to `right`.
224
224
  */
225
225
  icon_position?: DropdownIconPosition;
226
226
 
@@ -250,7 +250,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
250
250
  status?: DropdownStatus;
251
251
 
252
252
  /**
253
- * Defines the state of the status. Currently there are two statuses `[error, info]`. Defaults to `error`.
253
+ * Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.
254
254
  */
255
255
  status_state?: string;
256
256
 
@@ -346,12 +346,12 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
346
346
  trigger_element?: DropdownTriggerElement;
347
347
 
348
348
  /**
349
- * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If You don&#39;t have to define a `value`, You can also send in a `function` which will be called once the user opens the DrawerList.
349
+ * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
350
350
  */
351
351
  data?: DropdownData;
352
352
 
353
353
  /**
354
- * If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice . Defaults to `null`.
354
+ * If you want to define only a startup value (integer) or have to handle a re-render without handling the state during the re-render by yourself, then using `default_value` is a good choice. Defaults to `null`.
355
355
  */
356
356
  default_value?: DropdownDefaultValue;
357
357
 
@@ -361,7 +361,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
361
361
  value?: DropdownValue;
362
362
 
363
363
  /**
364
- * If set to `true`, the Dropdown will be opened when the users enters the trigger button with a focus action.
364
+ * If set to `true`, the Dropdown will be opened when the users enter the trigger button with a focus action.
365
365
  */
366
366
  open_on_focus?: DropdownOpenOnFocus;
367
367
 
@@ -394,7 +394,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
394
394
  className?: string;
395
395
 
396
396
  /**
397
- * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If You don&#39;t have to define a `value`, You can also send in a `function` which will be called once the user opens the DrawerList.
397
+ * The data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
398
398
  */
399
399
  children?: DropdownChildren;
400
400
  custom_element?: Object;
@@ -416,7 +416,7 @@ export interface DropdownProps extends React.HTMLProps<HTMLElement> {
416
416
  on_change?: (...args: any[]) => any;
417
417
 
418
418
  /**
419
- * Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, selected_key, value, active_item }`. The "active_item" property is the currently selected item by keyboard navigation
419
+ * Will be called once the user selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, selected_key, value, active_item }`. The "active_item" property is the currently selected item by keyboard navigation
420
420
  */
421
421
  on_select?: (...args: any[]) => any;
422
422
  on_state_update?: (...args: any[]) => any;
@@ -57,7 +57,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
57
57
  id?: string;
58
58
 
59
59
  /**
60
- * Use either the `label` property or provide custom one.
60
+ * Use either the `label` property or provide a custom one.
61
61
  */
62
62
  label?: FormRowLabel;
63
63
 
@@ -73,7 +73,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
73
73
  label_id?: string;
74
74
 
75
75
  /**
76
- * If You need to style the "legend", then You can either send in a custom Component, like `label={ <H2> }`, or define Your styling class with the `label_class` property.
76
+ * If you need to style the "legend", then you can either send in a custom Component, like `label={ <H2> }`, or define Your styling class with the `label_class` property.
77
77
  */
78
78
  label_class?: string;
79
79
  no_label?: FormRowNoLabel;
@@ -94,7 +94,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
94
94
  indent?: FormRowIndent;
95
95
 
96
96
  /**
97
- * Forces the content of a FormRow to wrap. Make sure You always define spacing as `right="..."` and not `left`, this way components will align left once they wrap. Defaults to `false`.
97
+ * Forces the content of a FormRow to wrap. Make sure you always define spacing as `right="..."` and not `left`, this way components will align left once they wrap. Defaults to `false`.
98
98
  */
99
99
  wrap?: FormRowWrap;
100
100
 
@@ -109,7 +109,7 @@ export interface FormRowProps extends React.HTMLProps<HTMLElement> {
109
109
  vertical?: FormRowVertical;
110
110
 
111
111
  /**
112
- * Will center all children vertically as long as the screen not hits a mobile width.
112
+ * Will center all children vertically as long as the screen does not hit a mobile width.
113
113
  */
114
114
  centered?: FormRowCentered;
115
115