@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
@@ -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
  /**
@@ -157,14 +157,16 @@ export default class Button extends React.PureComponent {
157
157
 
158
158
  const classes = classnames(`dnb-button dnb-button--${usedVariant || 'primary'}`, (text || content || custom_content) && 'dnb-button--has-text', createSkeletonClass(variant === 'tertiary' ? 'font' : 'shape', skeleton, this.context), createSpacingClasses(props), class_name, className, (props.href || props.to) && '', icon && `dnb-button--icon-position-${icon_position} dnb-button--has-icon` + (iconSize ? ` dnb-button--icon-size-${iconSize}` : ""), usedSize && usedSize !== 'default' && `dnb-button--size-${usedSize}`, isTrue(stretch) && 'dnb-button--stretch', wrap && 'dnb-button--wrap', status && `dnb-button__status--${status_state}`);
159
159
 
160
- const params = _objectSpread(_objectSpread({
160
+ const params = _objectSpread({
161
161
  className: classes,
162
162
  title,
163
163
  id: this._id,
164
164
  disabled: isTrue(disabled)
165
- }, attributes), {}, {
166
- onClick: this.onClickHandler
167
- });
165
+ }, attributes);
166
+
167
+ if (this.props.on_click || this.props.onClick) {
168
+ params.onClick = this.onClickHandler;
169
+ }
168
170
 
169
171
  if (Element !== Anchor && !params.type) {
170
172
  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
 
@@ -83,7 +83,7 @@ export interface FormSetProps extends React.HTMLProps<HTMLElement> {
83
83
  id?: string;
84
84
 
85
85
  /**
86
- * Use either the `label` property or provide custom one.
86
+ * Use either the `label` property or provide a custom one.
87
87
  */
88
88
  label?: FormSetLabel;
89
89
 
@@ -99,7 +99,7 @@ export interface FormSetProps extends React.HTMLProps<HTMLElement> {
99
99
  label_id?: string;
100
100
 
101
101
  /**
102
- * 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.
102
+ * 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.
103
103
  */
104
104
  label_class?: string;
105
105
  no_label?: FormSetNoLabel;
@@ -120,7 +120,7 @@ export interface FormSetProps extends React.HTMLProps<HTMLElement> {
120
120
  indent?: FormSetIndent;
121
121
 
122
122
  /**
123
- * 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`.
123
+ * 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`.
124
124
  */
125
125
  wrap?: FormSetWrap;
126
126
 
@@ -135,7 +135,7 @@ export interface FormSetProps extends React.HTMLProps<HTMLElement> {
135
135
  vertical?: FormSetVertical;
136
136
 
137
137
  /**
138
- * Will center all children vertically as long as the screen not hits a mobile width.
138
+ * Will center all children vertically as long as the screen does not hit a mobile width.
139
139
  */
140
140
  centered?: FormSetCentered;
141
141
 
@@ -190,7 +190,7 @@ export interface FormSetProps extends React.HTMLProps<HTMLElement> {
190
190
  children?: FormSetChildren;
191
191
 
192
192
  /**
193
- * Will be called on submit. Returns an object with the a native event: `{ event }`
193
+ * Will be called on submit. Returns an object with a native event: `{ event }`
194
194
  */
195
195
  on_submit?: (...args: any[]) => any;
196
196
  custom_element?: Object;
@@ -27,7 +27,7 @@ export type GlobalErrorChildren =
27
27
  */
28
28
  export interface GlobalErrorProps extends React.HTMLProps<HTMLElement> {
29
29
  /**
30
- * Status code define the view showing up.
30
+ * Status code defines the view showing up.
31
31
  */
32
32
  status?: string;
33
33
 
@@ -70,17 +70,17 @@ export interface GlobalStatusProps extends React.HTMLProps<HTMLElement> {
70
70
  default_title?: string;
71
71
 
72
72
  /**
73
- * The text appears as the status content. Beside plain text, You can send in a React component as well. Defaults to `null`.
73
+ * The text appears as the status content. Besides plain text, you can send in a React component as well. Defaults to `null`.
74
74
  */
75
75
  text?: GlobalStatusText;
76
76
 
77
77
  /**
78
- * The items (list items) appears as a part of the status content. You can both use an JSON array, or a vanilla array with a string or an object content. Se "Item Object" example below.
78
+ * The items (list items) appear as a part of the status content. you can both use an JSON array, or a vanilla array with a string or an object content. Se "Item Object" example below.
79
79
  */
80
80
  items?: GlobalStatusItems;
81
81
 
82
82
  /**
83
- * The icon show before the status title. Defaults to `exclamation`.
83
+ * The icon shown before the status title. Defaults to `exclamation`.
84
84
  */
85
85
  icon?: GlobalStatusIcon;
86
86
 
@@ -115,7 +115,7 @@ export interface GlobalStatusProps extends React.HTMLProps<HTMLElement> {
115
115
  no_animation?: GlobalStatusNoAnimation;
116
116
 
117
117
  /**
118
- * Defines the delay on how long the automated visibility should wait, before it appears to the user. Defaults to `200ms`.
118
+ * Defines the delay on how long the automated visibility should wait before it appears to the user. Defaults to `200ms`.
119
119
  */
120
120
  delay?: GlobalStatusDelay;
121
121
 
@@ -169,7 +169,7 @@ export interface GlobalStatusProps extends React.HTMLProps<HTMLElement> {
169
169
  className?: string;
170
170
 
171
171
  /**
172
- * The text appears as the status content. Beside plain text, You can send in a React component as well. Defaults to `null`.
172
+ * The text appears as the status content. Besides plain text, you can send in a React component as well. Defaults to `null`.
173
173
  */
174
174
  children?: GlobalStatusChildren;
175
175
 
@@ -58,7 +58,7 @@ export interface HeadingProps extends React.HTMLProps<HTMLElement> {
58
58
  group?: string;
59
59
 
60
60
  /**
61
- * A heading, can be text or a another component.
61
+ * A heading, can be text or React.Node.
62
62
  */
63
63
  text?: HeadingText;
64
64
 
@@ -144,7 +144,7 @@ export interface HeadingProps extends React.HTMLProps<HTMLElement> {
144
144
  className?: string;
145
145
 
146
146
  /**
147
- * A heading, can be text or a another component.
147
+ * A heading, can be text or React.Node.
148
148
  */
149
149
  children?: HeadingChildren;
150
150
  }
@@ -40,12 +40,12 @@ export interface HeadingProviderProps
40
40
  reset?: HeadingProviderReset;
41
41
 
42
42
  /**
43
- * A heading, can be text or a another component.
43
+ * A heading, can be text or React.Node.
44
44
  */
45
45
  text?: any;
46
46
 
47
47
  /**
48
- * A heading, can be text or a another component.
48
+ * A heading, can be text or React.Node.
49
49
  */
50
50
  children?: any;
51
51
  }
@@ -56,7 +56,7 @@ export interface IconProps extends React.HTMLProps<HTMLElement> {
56
56
  modifier?: string;
57
57
 
58
58
  /**
59
- * The dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the mother HTML element, if it provides a `font-size`.
59
+ * The dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the parent HTML element if it provides a `font-size`.
60
60
  */
61
61
  size?: IconSize;
62
62
 
@@ -65,7 +65,7 @@ export interface IconPrimaryProps extends React.HTMLProps<HTMLElement> {
65
65
  modifier?: string;
66
66
 
67
67
  /**
68
- * The dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the mother HTML element, if it provides a `font-size`.
68
+ * The dimension of the icon. This will be the `viewBox` and represent `width` and `height`. Defaults to `16`. You can use `small`,`medium`, `large` or `auto`. Auto will enable that the icon size gets inherited by the parent HTML element if it provides a `font-size`.
69
69
  */
70
70
  size?: IconPrimarySize;
71
71
 
@@ -42,6 +42,7 @@ import Space from './space/Space'
42
42
  import StepIndicator from './step-indicator/StepIndicator'
43
43
  import Switch from './switch/Switch'
44
44
  import Tabs from './tabs/Tabs'
45
+ import Tag from './tag/Tag'
45
46
  import Textarea from './textarea/Textarea'
46
47
  import ToggleButton from './toggle-button/ToggleButton'
47
48
  import Tooltip from './tooltip/Tooltip'
@@ -80,6 +81,7 @@ export {
80
81
  StepIndicator,
81
82
  Switch,
82
83
  Tabs,
84
+ Tag,
83
85
  Textarea,
84
86
  ToggleButton,
85
87
  Tooltip,
@@ -30,7 +30,8 @@ import Space from './space/Space';
30
30
  import StepIndicator from './step-indicator/StepIndicator';
31
31
  import Switch from './switch/Switch';
32
32
  import Tabs from './tabs/Tabs';
33
+ import Tag from './tag/Tag';
33
34
  import Textarea from './textarea/Textarea';
34
35
  import ToggleButton from './toggle-button/ToggleButton';
35
36
  import Tooltip from './tooltip/Tooltip';
36
- export { Accordion, Autocomplete, Breadcrumb, Button, Checkbox, DatePicker, Dropdown, FormLabel, FormRow, FormSet, FormStatus, GlobalError, GlobalStatus, Heading, HelpButton, Icon, IconPrimary, Input, InputMasked, Logo, Modal, NumberFormat, Pagination, ProgressIndicator, Radio, Section, Skeleton, Slider, Space, StepIndicator, Switch, Tabs, Textarea, ToggleButton, Tooltip };
37
+ export { Accordion, Autocomplete, Breadcrumb, Button, Checkbox, DatePicker, Dropdown, FormLabel, FormRow, FormSet, FormStatus, GlobalError, GlobalStatus, Heading, HelpButton, Icon, IconPrimary, Input, InputMasked, Logo, Modal, NumberFormat, Pagination, ProgressIndicator, Radio, Section, Skeleton, Slider, Space, StepIndicator, Switch, Tabs, Tag, Textarea, ToggleButton, Tooltip };