@dnb/eufemia 10.75.2 → 10.75.3

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 (368) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/cjs/components/accordion/Accordion.js +2 -3
  3. package/cjs/components/accordion/Accordion.js.map +1 -1
  4. package/cjs/components/accordion/AccordionContext.d.ts +0 -4
  5. package/cjs/components/accordion/AccordionContext.js.map +1 -1
  6. package/cjs/components/accordion/AccordionGroup.js +1 -3
  7. package/cjs/components/accordion/AccordionGroup.js.map +1 -1
  8. package/cjs/components/accordion/AccordionProviderContext.d.ts +0 -4
  9. package/cjs/components/accordion/AccordionProviderContext.js +3 -1
  10. package/cjs/components/accordion/AccordionProviderContext.js.map +1 -1
  11. package/cjs/components/accordion/AccordionStore.js +1 -2
  12. package/cjs/components/accordion/AccordionStore.js.map +1 -1
  13. package/cjs/components/accordion/style/dnb-accordion.css +0 -6
  14. package/cjs/components/accordion/style/dnb-accordion.min.css +1 -1
  15. package/cjs/components/accordion/style/dnb-accordion.scss +0 -5
  16. package/cjs/components/autocomplete/Autocomplete.d.ts +1 -1
  17. package/cjs/components/autocomplete/Autocomplete.js +2 -2
  18. package/cjs/components/autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/autocomplete/AutocompleteDocs.js +1 -1
  20. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
  21. package/cjs/components/button/Button.js +8 -7
  22. package/cjs/components/button/Button.js.map +1 -1
  23. package/cjs/components/date-picker/DatePickerDocs.js +3 -3
  24. package/cjs/components/date-picker/DatePickerDocs.js.map +1 -1
  25. package/cjs/components/date-picker/DatePickerInput.js +2 -2
  26. package/cjs/components/date-picker/DatePickerInput.js.map +1 -1
  27. package/cjs/components/date-picker/style/dnb-date-picker.css +0 -1
  28. package/cjs/components/date-picker/style/dnb-date-picker.min.css +1 -1
  29. package/cjs/components/dialog/style/dnb-dialog.css +0 -4
  30. package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
  31. package/cjs/components/dialog/style/dnb-dialog.scss +0 -5
  32. package/cjs/components/drawer/DrawerDocs.js +2 -2
  33. package/cjs/components/drawer/DrawerDocs.js.map +1 -1
  34. package/cjs/components/drawer/style/dnb-drawer.css +0 -4
  35. package/cjs/components/drawer/style/dnb-drawer.min.css +1 -1
  36. package/cjs/components/drawer/style/dnb-drawer.scss +0 -5
  37. package/cjs/components/form-label/style/dnb-form-label.css +0 -1
  38. package/cjs/components/form-label/style/dnb-form-label.min.css +1 -1
  39. package/cjs/components/form-row/FormRow.d.ts +1 -1
  40. package/cjs/components/form-row/FormRowDocs.js +1 -1
  41. package/cjs/components/form-row/FormRowDocs.js.map +1 -1
  42. package/cjs/components/input-masked/style/dnb-input-masked.css +0 -1
  43. package/cjs/components/input-masked/style/dnb-input-masked.min.css +1 -1
  44. package/cjs/components/list-format/ListFormatDocs.js +2 -2
  45. package/cjs/components/list-format/ListFormatDocs.js.map +1 -1
  46. package/cjs/components/modal/style/dnb-modal.css +0 -4
  47. package/cjs/components/modal/style/dnb-modal.min.css +1 -1
  48. package/cjs/components/modal/style/dnb-modal.scss +0 -5
  49. package/cjs/components/pagination/PaginationDocs.js +2 -2
  50. package/cjs/components/pagination/PaginationDocs.js.map +1 -1
  51. package/cjs/components/slider/SliderDocs.js +1 -1
  52. package/cjs/components/slider/SliderDocs.js.map +1 -1
  53. package/cjs/components/step-indicator/StepIndicatorDocs.js +4 -4
  54. package/cjs/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  55. package/cjs/components/timeline/TimelineItem.js +5 -5
  56. package/cjs/components/timeline/TimelineItem.js.map +1 -1
  57. package/cjs/components/toggle-button/ToggleButtonDocs.js +1 -1
  58. package/cjs/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  59. package/cjs/components/upload/style/dnb-upload.css +0 -1
  60. package/cjs/components/upload/style/dnb-upload.min.css +1 -1
  61. package/cjs/core/jest/jestSetupScreenshots.css +6 -0
  62. package/cjs/extensions/forms/Field/Date/Date.js +10 -4
  63. package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
  64. package/cjs/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  65. package/cjs/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  66. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  67. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  68. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  69. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  70. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  71. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  72. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  73. package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  74. package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  75. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  76. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  77. package/cjs/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  78. package/cjs/extensions/forms/constants/locales/en-GB.js +2 -1
  79. package/cjs/extensions/forms/constants/locales/en-GB.js.map +1 -1
  80. package/cjs/extensions/forms/constants/locales/en-US.d.ts +1 -0
  81. package/cjs/extensions/forms/constants/locales/index.d.ts +2 -0
  82. package/cjs/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  83. package/cjs/extensions/forms/constants/locales/nb-NO.js +2 -1
  84. package/cjs/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  85. package/cjs/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  86. package/cjs/extensions/forms/constants/locales/sv-SE.js +2 -1
  87. package/cjs/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  88. package/cjs/extensions/forms/hooks/useFieldProps.js +3 -3
  89. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  90. package/cjs/extensions/payment-card/PaymentCard.js +8 -1
  91. package/cjs/extensions/payment-card/PaymentCard.js.map +1 -1
  92. package/cjs/shared/AlignmentHelper.d.ts +14 -8
  93. package/cjs/shared/AlignmentHelper.js +4 -8
  94. package/cjs/shared/AlignmentHelper.js.map +1 -1
  95. package/cjs/shared/BuildInfo.d.cts +2 -0
  96. package/cjs/shared/BuildInfo.js +5 -0
  97. package/cjs/shared/BuildInfo.js.map +1 -0
  98. package/cjs/shared/Eufemia.d.ts +14 -1
  99. package/cjs/shared/Eufemia.js +31 -3
  100. package/cjs/shared/Eufemia.js.map +1 -1
  101. package/cjs/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  102. package/cjs/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  103. package/cjs/shared/useMedia.js +66 -55
  104. package/cjs/shared/useMedia.js.map +1 -1
  105. package/cjs/style/core/helper-classes/helper-classes.scss +3 -0
  106. package/cjs/style/core/scopes.scss +1 -1
  107. package/cjs/style/core/utilities.scss +3 -1
  108. package/cjs/style/dnb-ui-basis.css +13 -2
  109. package/cjs/style/dnb-ui-basis.min.css +1 -1
  110. package/cjs/style/dnb-ui-body.css +1 -2
  111. package/cjs/style/dnb-ui-body.min.css +1 -1
  112. package/cjs/style/dnb-ui-components.css +0 -22
  113. package/cjs/style/dnb-ui-components.min.css +3 -3
  114. package/cjs/style/dnb-ui-core.css +13 -3
  115. package/cjs/style/dnb-ui-core.min.css +1 -1
  116. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +0 -22
  117. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  118. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +0 -22
  119. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +3 -3
  120. package/cjs/style/themes/theme-ui/ui-theme-components.css +0 -22
  121. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  122. package/components/accordion/Accordion.js +2 -3
  123. package/components/accordion/Accordion.js.map +1 -1
  124. package/components/accordion/AccordionContext.d.ts +0 -4
  125. package/components/accordion/AccordionContext.js.map +1 -1
  126. package/components/accordion/AccordionGroup.js +1 -3
  127. package/components/accordion/AccordionGroup.js.map +1 -1
  128. package/components/accordion/AccordionProviderContext.d.ts +0 -4
  129. package/components/accordion/AccordionProviderContext.js +3 -1
  130. package/components/accordion/AccordionProviderContext.js.map +1 -1
  131. package/components/accordion/AccordionStore.js +1 -2
  132. package/components/accordion/AccordionStore.js.map +1 -1
  133. package/components/accordion/style/dnb-accordion.css +0 -6
  134. package/components/accordion/style/dnb-accordion.min.css +1 -1
  135. package/components/accordion/style/dnb-accordion.scss +0 -5
  136. package/components/autocomplete/Autocomplete.d.ts +1 -1
  137. package/components/autocomplete/Autocomplete.js +2 -2
  138. package/components/autocomplete/Autocomplete.js.map +1 -1
  139. package/components/autocomplete/AutocompleteDocs.js +1 -1
  140. package/components/autocomplete/AutocompleteDocs.js.map +1 -1
  141. package/components/button/Button.js +8 -7
  142. package/components/button/Button.js.map +1 -1
  143. package/components/date-picker/DatePickerDocs.js +3 -3
  144. package/components/date-picker/DatePickerDocs.js.map +1 -1
  145. package/components/date-picker/DatePickerInput.js +2 -2
  146. package/components/date-picker/DatePickerInput.js.map +1 -1
  147. package/components/date-picker/style/dnb-date-picker.css +0 -1
  148. package/components/date-picker/style/dnb-date-picker.min.css +1 -1
  149. package/components/dialog/style/dnb-dialog.css +0 -4
  150. package/components/dialog/style/dnb-dialog.min.css +1 -1
  151. package/components/dialog/style/dnb-dialog.scss +0 -5
  152. package/components/drawer/DrawerDocs.js +2 -2
  153. package/components/drawer/DrawerDocs.js.map +1 -1
  154. package/components/drawer/style/dnb-drawer.css +0 -4
  155. package/components/drawer/style/dnb-drawer.min.css +1 -1
  156. package/components/drawer/style/dnb-drawer.scss +0 -5
  157. package/components/form-label/style/dnb-form-label.css +0 -1
  158. package/components/form-label/style/dnb-form-label.min.css +1 -1
  159. package/components/form-row/FormRow.d.ts +1 -1
  160. package/components/form-row/FormRowDocs.js +1 -1
  161. package/components/form-row/FormRowDocs.js.map +1 -1
  162. package/components/input-masked/style/dnb-input-masked.css +0 -1
  163. package/components/input-masked/style/dnb-input-masked.min.css +1 -1
  164. package/components/list-format/ListFormatDocs.js +2 -2
  165. package/components/list-format/ListFormatDocs.js.map +1 -1
  166. package/components/modal/style/dnb-modal.css +0 -4
  167. package/components/modal/style/dnb-modal.min.css +1 -1
  168. package/components/modal/style/dnb-modal.scss +0 -5
  169. package/components/pagination/PaginationDocs.js +2 -2
  170. package/components/pagination/PaginationDocs.js.map +1 -1
  171. package/components/slider/SliderDocs.js +1 -1
  172. package/components/slider/SliderDocs.js.map +1 -1
  173. package/components/step-indicator/StepIndicatorDocs.js +4 -4
  174. package/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  175. package/components/timeline/TimelineItem.js +5 -5
  176. package/components/timeline/TimelineItem.js.map +1 -1
  177. package/components/toggle-button/ToggleButtonDocs.js +1 -1
  178. package/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  179. package/components/upload/style/dnb-upload.css +0 -1
  180. package/components/upload/style/dnb-upload.min.css +1 -1
  181. package/core/jest/jestSetupScreenshots.css +6 -0
  182. package/es/components/accordion/Accordion.js +2 -3
  183. package/es/components/accordion/Accordion.js.map +1 -1
  184. package/es/components/accordion/AccordionContext.d.ts +0 -4
  185. package/es/components/accordion/AccordionContext.js.map +1 -1
  186. package/es/components/accordion/AccordionGroup.js +1 -3
  187. package/es/components/accordion/AccordionGroup.js.map +1 -1
  188. package/es/components/accordion/AccordionProviderContext.d.ts +0 -4
  189. package/es/components/accordion/AccordionProviderContext.js +3 -1
  190. package/es/components/accordion/AccordionProviderContext.js.map +1 -1
  191. package/es/components/accordion/AccordionStore.js +1 -2
  192. package/es/components/accordion/AccordionStore.js.map +1 -1
  193. package/es/components/accordion/style/dnb-accordion.css +0 -6
  194. package/es/components/accordion/style/dnb-accordion.min.css +1 -1
  195. package/es/components/accordion/style/dnb-accordion.scss +0 -5
  196. package/es/components/autocomplete/Autocomplete.d.ts +1 -1
  197. package/es/components/autocomplete/Autocomplete.js +2 -2
  198. package/es/components/autocomplete/Autocomplete.js.map +1 -1
  199. package/es/components/autocomplete/AutocompleteDocs.js +1 -1
  200. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
  201. package/es/components/button/Button.js +8 -7
  202. package/es/components/button/Button.js.map +1 -1
  203. package/es/components/date-picker/DatePickerDocs.js +3 -3
  204. package/es/components/date-picker/DatePickerDocs.js.map +1 -1
  205. package/es/components/date-picker/DatePickerInput.js +2 -2
  206. package/es/components/date-picker/DatePickerInput.js.map +1 -1
  207. package/es/components/date-picker/style/dnb-date-picker.css +0 -1
  208. package/es/components/date-picker/style/dnb-date-picker.min.css +1 -1
  209. package/es/components/dialog/style/dnb-dialog.css +0 -4
  210. package/es/components/dialog/style/dnb-dialog.min.css +1 -1
  211. package/es/components/dialog/style/dnb-dialog.scss +0 -5
  212. package/es/components/drawer/DrawerDocs.js +2 -2
  213. package/es/components/drawer/DrawerDocs.js.map +1 -1
  214. package/es/components/drawer/style/dnb-drawer.css +0 -4
  215. package/es/components/drawer/style/dnb-drawer.min.css +1 -1
  216. package/es/components/drawer/style/dnb-drawer.scss +0 -5
  217. package/es/components/form-label/style/dnb-form-label.css +0 -1
  218. package/es/components/form-label/style/dnb-form-label.min.css +1 -1
  219. package/es/components/form-row/FormRow.d.ts +1 -1
  220. package/es/components/form-row/FormRowDocs.js +1 -1
  221. package/es/components/form-row/FormRowDocs.js.map +1 -1
  222. package/es/components/input-masked/style/dnb-input-masked.css +0 -1
  223. package/es/components/input-masked/style/dnb-input-masked.min.css +1 -1
  224. package/es/components/list-format/ListFormatDocs.js +2 -2
  225. package/es/components/list-format/ListFormatDocs.js.map +1 -1
  226. package/es/components/modal/style/dnb-modal.css +0 -4
  227. package/es/components/modal/style/dnb-modal.min.css +1 -1
  228. package/es/components/modal/style/dnb-modal.scss +0 -5
  229. package/es/components/pagination/PaginationDocs.js +2 -2
  230. package/es/components/pagination/PaginationDocs.js.map +1 -1
  231. package/es/components/slider/SliderDocs.js +1 -1
  232. package/es/components/slider/SliderDocs.js.map +1 -1
  233. package/es/components/step-indicator/StepIndicatorDocs.js +4 -4
  234. package/es/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  235. package/es/components/timeline/TimelineItem.js +5 -5
  236. package/es/components/timeline/TimelineItem.js.map +1 -1
  237. package/es/components/toggle-button/ToggleButtonDocs.js +1 -1
  238. package/es/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  239. package/es/components/upload/style/dnb-upload.css +0 -1
  240. package/es/components/upload/style/dnb-upload.min.css +1 -1
  241. package/es/core/jest/jestSetupScreenshots.css +6 -0
  242. package/es/extensions/forms/Field/Date/Date.js +10 -4
  243. package/es/extensions/forms/Field/Date/Date.js.map +1 -1
  244. package/es/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  245. package/es/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  246. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  247. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  248. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  249. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  250. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  251. package/es/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  252. package/es/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  253. package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  254. package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  255. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  256. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  257. package/es/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  258. package/es/extensions/forms/constants/locales/en-GB.js +2 -1
  259. package/es/extensions/forms/constants/locales/en-GB.js.map +1 -1
  260. package/es/extensions/forms/constants/locales/en-US.d.ts +1 -0
  261. package/es/extensions/forms/constants/locales/index.d.ts +2 -0
  262. package/es/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  263. package/es/extensions/forms/constants/locales/nb-NO.js +2 -1
  264. package/es/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  265. package/es/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  266. package/es/extensions/forms/constants/locales/sv-SE.js +2 -1
  267. package/es/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  268. package/es/extensions/forms/hooks/useFieldProps.js +3 -3
  269. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  270. package/es/extensions/payment-card/PaymentCard.js +1 -0
  271. package/es/extensions/payment-card/PaymentCard.js.map +1 -1
  272. package/es/shared/AlignmentHelper.d.ts +14 -8
  273. package/es/shared/AlignmentHelper.js +4 -8
  274. package/es/shared/AlignmentHelper.js.map +1 -1
  275. package/es/shared/BuildInfo.cjs +6 -0
  276. package/es/shared/BuildInfo.d.cts +2 -0
  277. package/es/shared/Eufemia.d.ts +14 -1
  278. package/es/shared/Eufemia.js +27 -2
  279. package/es/shared/Eufemia.js.map +1 -1
  280. package/es/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  281. package/es/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  282. package/es/shared/useMedia.js +66 -55
  283. package/es/shared/useMedia.js.map +1 -1
  284. package/es/style/core/helper-classes/helper-classes.scss +3 -0
  285. package/es/style/core/scopes.scss +1 -1
  286. package/es/style/core/utilities.scss +3 -1
  287. package/es/style/dnb-ui-basis.css +13 -2
  288. package/es/style/dnb-ui-basis.min.css +1 -1
  289. package/es/style/dnb-ui-body.css +1 -2
  290. package/es/style/dnb-ui-body.min.css +1 -1
  291. package/es/style/dnb-ui-components.css +0 -22
  292. package/es/style/dnb-ui-components.min.css +3 -3
  293. package/es/style/dnb-ui-core.css +13 -3
  294. package/es/style/dnb-ui-core.min.css +1 -1
  295. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +0 -22
  296. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  297. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +0 -22
  298. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +3 -3
  299. package/es/style/themes/theme-ui/ui-theme-components.css +0 -22
  300. package/es/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  301. package/esm/dnb-ui-components.min.mjs +1 -1
  302. package/esm/dnb-ui-elements.min.mjs +1 -1
  303. package/esm/dnb-ui-extensions.min.mjs +1 -1
  304. package/esm/dnb-ui-lib.min.mjs +1 -1
  305. package/extensions/forms/Field/Date/Date.js +10 -4
  306. package/extensions/forms/Field/Date/Date.js.map +1 -1
  307. package/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  308. package/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  309. package/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  310. package/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  311. package/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  312. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  313. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  314. package/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  315. package/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  316. package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  317. package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  318. package/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  319. package/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  320. package/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  321. package/extensions/forms/constants/locales/en-GB.js +2 -1
  322. package/extensions/forms/constants/locales/en-GB.js.map +1 -1
  323. package/extensions/forms/constants/locales/en-US.d.ts +1 -0
  324. package/extensions/forms/constants/locales/index.d.ts +2 -0
  325. package/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  326. package/extensions/forms/constants/locales/nb-NO.js +2 -1
  327. package/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  328. package/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  329. package/extensions/forms/constants/locales/sv-SE.js +2 -1
  330. package/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  331. package/extensions/forms/hooks/useFieldProps.js +3 -3
  332. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  333. package/extensions/payment-card/PaymentCard.js +1 -0
  334. package/extensions/payment-card/PaymentCard.js.map +1 -1
  335. package/package.json +1 -1
  336. package/shared/AlignmentHelper.d.ts +14 -8
  337. package/shared/AlignmentHelper.js +4 -8
  338. package/shared/AlignmentHelper.js.map +1 -1
  339. package/shared/BuildInfo.cjs +6 -0
  340. package/shared/BuildInfo.d.cts +2 -0
  341. package/shared/Eufemia.d.ts +14 -1
  342. package/shared/Eufemia.js +27 -2
  343. package/shared/Eufemia.js.map +1 -1
  344. package/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  345. package/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  346. package/shared/useMedia.js +67 -56
  347. package/shared/useMedia.js.map +1 -1
  348. package/style/core/helper-classes/helper-classes.scss +3 -0
  349. package/style/core/scopes.scss +1 -1
  350. package/style/core/utilities.scss +3 -1
  351. package/style/dnb-ui-basis.css +13 -2
  352. package/style/dnb-ui-basis.min.css +1 -1
  353. package/style/dnb-ui-body.css +1 -2
  354. package/style/dnb-ui-body.min.css +1 -1
  355. package/style/dnb-ui-components.css +0 -22
  356. package/style/dnb-ui-components.min.css +3 -3
  357. package/style/dnb-ui-core.css +13 -3
  358. package/style/dnb-ui-core.min.css +1 -1
  359. package/style/themes/theme-eiendom/eiendom-theme-components.css +0 -22
  360. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  361. package/style/themes/theme-sbanken/sbanken-theme-components.css +0 -22
  362. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +3 -3
  363. package/style/themes/theme-ui/ui-theme-components.css +0 -22
  364. package/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  365. package/umd/dnb-ui-components.min.js +1 -1
  366. package/umd/dnb-ui-elements.min.js +1 -1
  367. package/umd/dnb-ui-extensions.min.js +1 -1
  368. package/umd/dnb-ui-lib.min.js +1 -1
@@ -5,7 +5,7 @@ export const AutocompleteProperties = {
5
5
  status: 'optional'
6
6
  },
7
7
  input_value: {
8
- doc: 'Lets you define a custom input value.',
8
+ doc: 'Lets you define a custom input value. Setting it to an empty string `""` will reset the input value.',
9
9
  type: 'string',
10
10
  status: 'optional'
11
11
  },
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteDocs.js","names":["AutocompleteProperties","mode","doc","type","status","input_value","placeholder","title","disable_filter","disable_highlighting","disable_reorder","search_numbers","search_in_word_index","keep_value","keep_selection","keep_value_and_selection","prevent_selection","show_clear_button","icon","icon_size","icon_position","input_icon","triangle_position","size","drawer_class","show_submit_button","align_autocomplete","no_options","aria_live_options","show_all","indicator_label","show_options_sr","selected_sr","selectall","submit_button_title","submit_button_icon","submit_element","opened","open_on_focus","stretch","skip_portal","status_state","status_props","globalStatus","label","label_direction","label_sr_only","suffix","skeleton","input_ref","input_element","AutocompleteEvents","on_type","on_focus","on_blur","on_change","on_select","on_show","on_hide"],"sources":["../../../../src/components/autocomplete/AutocompleteDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const AutocompleteProperties = {\n mode: {\n doc: 'If set to `async`, it prevents showing the \"no options\" message during typing / filtering. Defaults to `sync`.',\n type: 'string',\n status: 'optional',\n },\n input_value: {\n doc: 'Lets you define a custom input value.',\n type: 'string',\n status: 'optional',\n },\n placeholder: {\n doc: 'Use this to define the pre-filled placeholder text in the input. Defaults to `title=\"Skriv og velg\"`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'Give a title to let the user know what they have to do. Defaults to `Skriv og få alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n disable_filter: {\n doc: 'If set to `true`, word highlighting will still be active, but no options will be filtered out. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_highlighting: {\n doc: 'If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_reorder: {\n doc: 'If set to `true`, reordering of search results will be disabled. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_numbers: {\n doc: 'If set to `true` and `search_in_word_index` is not set, the user will be able to more easily search and filter e.g. bank account numbers. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_in_word_index: {\n doc: 'This gives you the possibility to change the threshold number, which defines from what word on we search \"inside words\". Defaults to `3`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value: {\n doc: '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. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_selection: {\n doc: 'Use `true` to not remove selected item on input blur, when the input value is empty. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value_and_selection: {\n doc: 'Like `keep_value` – but would not reset to the selected value during input field blur. Also, the selected value would still be kept. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n prevent_selection: {\n doc: 'If set to `true`, no permanent selection will be made. Also, the typed value will not disappear on input blur (like `keep_value`). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n show_clear_button: {\n doc: 'If set to `true`, a clear button is shown inside the input field. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n icon: {\n doc: 'To be included in the autocomplete input.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_size: {\n doc: 'Change the size of the icon pragmatically.',\n type: 'string',\n status: 'optional',\n },\n icon_position: {\n doc: 'Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n input_icon: {\n doc: 'Same as `icon`.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n triangle_position: {\n doc: 'Position of icon arrow / triangle the drawer. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n size: {\n doc: 'Define the height of the Autocomplete. Can be set to `small`, `default`, `medium` and `large`. Defaults to `default`.',\n type: 'string',\n status: 'optional',\n },\n drawer_class: {\n doc: 'Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n show_submit_button: {\n doc: 'Use `true` to show a Autocomplete button to toggle the [DrawerList](/uilib/components/fragments/drawer-list). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n align_autocomplete: {\n doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n no_options: {\n doc: 'Text show in the \"no options\" item. Defaults to `Ingen alternativer`.',\n type: 'boolean',\n status: 'optional',\n },\n aria_live_options: {\n doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_all: {\n doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',\n type: 'boolean',\n status: 'optional',\n },\n indicator_label: {\n doc: 'Text show on indicator \"options\" item. Defaults to `Henter data ...`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_options_sr: {\n doc: '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`.',\n type: 'string',\n status: 'optional',\n },\n selected_sr: {\n doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',\n type: 'string',\n status: 'optional',\n },\n selectall: {\n doc: 'If set to `true`, then the whole input value gets selected on the entry focus. A second click will place the cursor on the wanted position.',\n type: 'boolean',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title on submit button. Defaults to `Vis alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n submit_button_icon: {\n doc: 'The icon used in the submit button. Defaults to `chevron_down`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n submit_element: {\n doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from '@dnb/eufemia/components/input/Input'`.',\n type: 'React.Node',\n status: 'optional',\n },\n opened: {\n doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',\n type: 'boolean',\n status: 'optional',\n },\n open_on_focus: {\n doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: ['error', 'info'],\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n label: {\n doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',\n type: 'React.Node',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'React.Node',\n status: 'optional',\n },\n label_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the Autocomplete more than the label. You can also send in a React component, so it gets wrapped inside the Autocomplete component.',\n type: 'React.Node',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n input_ref: {\n doc: 'Use a React.Ref to get access to the `input` DOM element.',\n type: 'React.RefObject',\n status: 'optional',\n },\n input_element: {\n doc: 'Lets you provide a custom React element as the input HTML element.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n '[DrawerList](/uilib/components/fragments/drawer-list/properties)': {\n doc: 'all DrawerList properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n\nexport const AutocompleteEvents = {\n on_type: {\n doc: 'Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data)',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users focuses or selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The \"active_item\" property is the currently selected item by keyboard navigation',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,GAAG;EACpCC,IAAI,EAAE;IACJC,GAAG,EAAE,gHAAgH;IACrHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,WAAW,EAAE;IACXH,GAAG,EAAE,uCAAuC;IAC5CC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,WAAW,EAAE;IACXJ,GAAG,EAAE,uGAAuG;IAC5GC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,iGAAiG;IACtGC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDI,cAAc,EAAE;IACdN,GAAG,EAAE,qHAAqH;IAC1HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDK,oBAAoB,EAAE;IACpBP,GAAG,EAAE,qHAAqH;IAC1HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,eAAe,EAAE;IACfR,GAAG,EAAE,uFAAuF;IAC5FC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,cAAc,EAAE;IACdT,GAAG,EAAE,gKAAgK;IACrKC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDQ,oBAAoB,EAAE;IACpBV,GAAG,EAAE,2IAA2I;IAChJC,IAAI,EAAE,SAAS;IACfC,MAAM,EA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C,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqD,OAAO,EAAE;IACPvD,GAAG,EAAE,sGAAsG;IAC3GC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDsD,OAAO,EAAE;IACPxD,GAAG,EAAE,sIAAsI;IAC3IC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAgC","ignoreList":[]}
1
+ {"version":3,"file":"AutocompleteDocs.js","names":["AutocompleteProperties","mode","doc","type","status","input_value","placeholder","title","disable_filter","disable_highlighting","disable_reorder","search_numbers","search_in_word_index","keep_value","keep_selection","keep_value_and_selection","prevent_selection","show_clear_button","icon","icon_size","icon_position","input_icon","triangle_position","size","drawer_class","show_submit_button","align_autocomplete","no_options","aria_live_options","show_all","indicator_label","show_options_sr","selected_sr","selectall","submit_button_title","submit_button_icon","submit_element","opened","open_on_focus","stretch","skip_portal","status_state","status_props","globalStatus","label","label_direction","label_sr_only","suffix","skeleton","input_ref","input_element","AutocompleteEvents","on_type","on_focus","on_blur","on_change","on_select","on_show","on_hide"],"sources":["../../../../src/components/autocomplete/AutocompleteDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const AutocompleteProperties = {\n mode: {\n doc: 'If set to `async`, it prevents showing the \"no options\" message during typing / filtering. Defaults to `sync`.',\n type: 'string',\n status: 'optional',\n },\n input_value: {\n doc: 'Lets you define a custom input value. Setting it to an empty string `\"\"` will reset the input value.',\n type: 'string',\n status: 'optional',\n },\n placeholder: {\n doc: 'Use this to define the pre-filled placeholder text in the input. Defaults to `title=\"Skriv og velg\"`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'Give a title to let the user know what they have to do. Defaults to `Skriv og få alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n disable_filter: {\n doc: 'If set to `true`, word highlighting will still be active, but no options will be filtered out. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_highlighting: {\n doc: 'If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_reorder: {\n doc: 'If set to `true`, reordering of search results will be disabled. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_numbers: {\n doc: 'If set to `true` and `search_in_word_index` is not set, the user will be able to more easily search and filter e.g. bank account numbers. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_in_word_index: {\n doc: 'This gives you the possibility to change the threshold number, which defines from what word on we search \"inside words\". Defaults to `3`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value: {\n doc: '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. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_selection: {\n doc: 'Use `true` to not remove selected item on input blur, when the input value is empty. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value_and_selection: {\n doc: 'Like `keep_value` – but would not reset to the selected value during input field blur. Also, the selected value would still be kept. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n prevent_selection: {\n doc: 'If set to `true`, no permanent selection will be made. Also, the typed value will not disappear on input blur (like `keep_value`). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n show_clear_button: {\n doc: 'If set to `true`, a clear button is shown inside the input field. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n icon: {\n doc: 'To be included in the autocomplete input.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_size: {\n doc: 'Change the size of the icon pragmatically.',\n type: 'string',\n status: 'optional',\n },\n icon_position: {\n doc: 'Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n input_icon: {\n doc: 'Same as `icon`.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n triangle_position: {\n doc: 'Position of icon arrow / triangle the drawer. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n size: {\n doc: 'Define the height of the Autocomplete. Can be set to `small`, `default`, `medium` and `large`. Defaults to `default`.',\n type: 'string',\n status: 'optional',\n },\n drawer_class: {\n doc: 'Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n show_submit_button: {\n doc: 'Use `true` to show a Autocomplete button to toggle the [DrawerList](/uilib/components/fragments/drawer-list). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n align_autocomplete: {\n doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n no_options: {\n doc: 'Text show in the \"no options\" item. Defaults to `Ingen alternativer`.',\n type: 'boolean',\n status: 'optional',\n },\n aria_live_options: {\n doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_all: {\n doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',\n type: 'boolean',\n status: 'optional',\n },\n indicator_label: {\n doc: 'Text show on indicator \"options\" item. Defaults to `Henter data ...`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_options_sr: {\n doc: '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`.',\n type: 'string',\n status: 'optional',\n },\n selected_sr: {\n doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',\n type: 'string',\n status: 'optional',\n },\n selectall: {\n doc: 'If set to `true`, then the whole input value gets selected on the entry focus. A second click will place the cursor on the wanted position.',\n type: 'boolean',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title on submit button. Defaults to `Vis alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n submit_button_icon: {\n doc: 'The icon used in the submit button. Defaults to `chevron_down`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n submit_element: {\n doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from '@dnb/eufemia/components/input/Input'`.',\n type: 'React.Node',\n status: 'optional',\n },\n opened: {\n doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',\n type: 'boolean',\n status: 'optional',\n },\n open_on_focus: {\n doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: ['error', 'info'],\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n label: {\n doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',\n type: 'React.Node',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'React.Node',\n status: 'optional',\n },\n label_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the Autocomplete more than the label. You can also send in a React component, so it gets wrapped inside the Autocomplete component.',\n type: 'React.Node',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n input_ref: {\n doc: 'Use a React.Ref to get access to the `input` DOM element.',\n type: 'React.RefObject',\n status: 'optional',\n },\n input_element: {\n doc: 'Lets you provide a custom React element as the input HTML element.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n '[DrawerList](/uilib/components/fragments/drawer-list/properties)': {\n doc: 'all DrawerList properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n\nexport const AutocompleteEvents = {\n on_type: {\n doc: 'Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data)',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users focuses or selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The \"active_item\" property is the currently selected item by keyboard navigation',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n} satisfies PropertiesTableProps\n"],"mappings":"AAEA,OAAO,MAAMA,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esm/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- var _span, _span2, _span3;
6
+ var _span, _AlignmentHelper, _AlignmentHelper2;
7
7
  const _excluded = ["class", "className", "variant", "size", "title", "custom_content", "tooltip", "status", "status_state", "status_props", "status_no_animation", "globalStatus", "id", "disabled", "text", "icon", "icon_position", "icon_size", "wrap", "bounding", "stretch", "skeleton", "element", "inner_ref", "innerRef"];
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -20,6 +20,7 @@ import FormStatus from '../form-status/FormStatus';
20
20
  import Anchor, { pickIcon, opensNewTab } from '../anchor/Anchor';
21
21
  import { launch } from '../../icons';
22
22
  import Tooltip from '../tooltip/Tooltip';
23
+ import AlignmentHelper from '../../shared/AlignmentHelper';
23
24
  export const buttonVariantPropType = {
24
25
  variant: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'signal', 'unstyled'])
25
26
  };
@@ -262,18 +263,18 @@ function Content(_ref) {
262
263
  className: "dnb-button__bounding"
263
264
  }))), custom_content && React.createElement(React.Fragment, {
264
265
  key: "button-custom-content"
265
- }, custom_content), content && React.createElement(React.Fragment, null, _span2 || (_span2 = React.createElement("span", {
266
+ }, custom_content), content && React.createElement(React.Fragment, null, _AlignmentHelper || (_AlignmentHelper = React.createElement(AlignmentHelper, {
266
267
  key: "button-alignment",
267
268
  className: "dnb-button__alignment",
268
- "aria-hidden": true
269
- }, "\u200C")), React.createElement("span", {
269
+ pseudoElementOnly: true
270
+ })), React.createElement("span", {
270
271
  key: "button-text",
271
272
  className: "dnb-button__text dnb-skeleton--show-font"
272
- }, content)), !content && icon && (_span3 || (_span3 = React.createElement("span", {
273
+ }, content)), !content && icon && (_AlignmentHelper2 || (_AlignmentHelper2 = React.createElement(AlignmentHelper, {
273
274
  key: "button-alignment",
274
275
  className: "dnb-button__alignment",
275
- "aria-hidden": true
276
- }, "\u200C"))), icon && (pickIcon(icon, 'dnb-button__icon') || React.createElement(IconPrimary, {
276
+ pseudoElementOnly: true
277
+ }))), icon && (pickIcon(icon, 'dnb-button__icon') || React.createElement(IconPrimary, {
277
278
  key: "button-icon",
278
279
  className: "dnb-button__icon",
279
280
  icon: icon,
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","names":["React","PropTypes","classnames","Context","warn","makeUniqueId","isTrue","extendPropsWithContextInClassComponent","validateDOMAttributes","processChildren","getStatusState","dispatchCustomElementEvent","spacingPropTypes","createSpacingClasses","skeletonDOMAttributes","createSkeletonClass","pickFormElementProps","IconPrimary","FormStatus","Anchor","pickIcon","opensNewTab","launch","Tooltip","buttonVariantPropType","variant","oneOf","Button","PureComponent","getContent","props","constructor","_defineProperty","src","event","afterContent","isValidElement","setState","_id","id","status","tooltip","_ref","createRef","state","componentDidMount","innerRef","current","inner_ref","render","_this$context","_this$context2","_this$context3","_this$context4","_this$context4$theme","defaultProps","skeleton","context","FormRow","formElement","class","classProp","className","size","title","custom_content","status_state","status_props","status_no_animation","globalStatus","disabled","text","_text","icon","_icon","icon_position","icon_size","wrap","bounding","stretch","element","attributes","_objectWithoutProperties","_excluded","showStatus","usedVariant","usedSize","iconSize","content","isIconOnly","Boolean","Element","href","to","omitClass","target","classes","theme","darkBackground","params","_objectSpread","on_click","onClick","getOnClickHandler","type","undefined","createElement","Fragment","_extends","ref","Content","show","label","text_id","no_animation","targetElement","process","env","NODE_ENV","propTypes","oneOfType","string","node","func","number","bool","object","shape","message","rel","children","_span","key","_span2","_span3","array","_formElement","_supportsSpacingProps"],"sources":["../../../../src/components/button/Button.js"],"sourcesContent":["/**\n * Web Button Component\n *\n * This is a legacy component.\n * For referencing while developing new features, please use a Functional component.\n */\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport classnames from 'classnames'\nimport Context from '../../shared/Context'\nimport {\n warn,\n makeUniqueId,\n isTrue,\n extendPropsWithContextInClassComponent,\n validateDOMAttributes,\n processChildren,\n getStatusState,\n dispatchCustomElementEvent,\n} from '../../shared/component-helper'\nimport {\n spacingPropTypes,\n createSpacingClasses,\n} from '../space/SpacingHelper'\nimport {\n skeletonDOMAttributes,\n createSkeletonClass,\n} from '../skeleton/SkeletonHelper'\nimport { pickFormElementProps } from '../../shared/helpers/filterValidProps'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport FormStatus from '../form-status/FormStatus'\nimport Anchor, { pickIcon, opensNewTab } from '../anchor/Anchor'\nimport { launch } from '../../icons'\nimport Tooltip from '../tooltip/Tooltip'\n\nexport const buttonVariantPropType = {\n variant: PropTypes.oneOf([\n 'primary',\n 'secondary',\n 'tertiary',\n 'signal',\n\n /**\n * For internal use only (as of now)\n */\n 'unstyled',\n ]),\n}\n\n/**\n * The button component should be used as the call-to-action in a form, or as a user interaction mechanism. Generally speaking, a button should not be used when a link would do the trick. Exceptions are made at times when it is used as a navigation element in the action-nav element.\n */\nexport default class Button extends React.PureComponent {\n static contextType = Context\n\n static getContent(props) {\n return processChildren(props)\n }\n\n constructor(props) {\n super(props)\n\n this._id =\n props.id || ((props.status || props.tooltip) && makeUniqueId()) // cause we need an id anyway\n this._ref = React.createRef()\n\n this.state = { afterContent: null }\n }\n\n componentDidMount() {\n if (this.props.innerRef) {\n typeof this.props.innerRef === 'function'\n ? this.props.innerRef(this._ref.current)\n : (this.props.innerRef.current = this._ref.current)\n }\n if (this.props.inner_ref) {\n typeof this.props.innerRef === 'function'\n ? this.props.inner_ref(this._ref.current)\n : (this.props.inner_ref.current = this._ref.current)\n }\n }\n\n getOnClickHandler = (src) => (event) => {\n const afterContent = dispatchCustomElementEvent(src, 'on_click', {\n event,\n })\n if (afterContent && React.isValidElement(afterContent)) {\n this.setState({\n afterContent,\n })\n }\n }\n\n render() {\n // use only the props from context, who are available here anyway\n const props = extendPropsWithContextInClassComponent(\n this.props,\n Button.defaultProps,\n { skeleton: this.context?.skeleton },\n // Deprecated – can be removed in v11\n pickFormElementProps(this.context?.FormRow),\n pickFormElementProps(this.context?.formElement),\n this.context.Button\n )\n\n const {\n class: classProp, // @deprecated – can be removed in v11\n className,\n variant,\n size,\n title,\n custom_content,\n tooltip,\n status,\n status_state,\n status_props,\n status_no_animation,\n globalStatus,\n id, // eslint-disable-line\n disabled,\n text: _text, // eslint-disable-line\n icon: _icon, // eslint-disable-line\n icon_position,\n icon_size,\n wrap,\n bounding, // eslint-disable-line\n stretch,\n skeleton,\n element,\n inner_ref, // eslint-disable-line\n innerRef, // eslint-disable-line\n ...attributes\n } = props\n\n const showStatus = getStatusState(status)\n\n let { text, icon } = props\n let usedVariant = variant\n let usedSize = size\n let iconSize = icon_size\n const content = Button.getContent(this.props)\n\n if (\n variant === 'tertiary' &&\n (text || content) &&\n !icon &&\n icon !== false\n ) {\n warn(\n `Icon required: A Tertiary Button requires an icon to be WCAG compliant in most cases, because variant tertiary has no underline.\n(Override this warning using icon={false}, or consider using one of the other variants)`\n )\n }\n\n // if only has Icon, then resize it and define it as secondary\n const isIconOnly = Boolean(!text && !content && icon)\n if (isIconOnly) {\n if (!usedVariant) {\n usedVariant = 'secondary'\n }\n if (!iconSize && (usedSize === 'default' || usedSize === 'large')) {\n iconSize = 'medium'\n }\n if (!usedSize) {\n usedSize = 'medium'\n }\n } else if (content) {\n if (!usedVariant) {\n usedVariant = 'primary'\n }\n if (!usedSize) {\n usedSize = 'default'\n }\n }\n if (!iconSize && variant === 'tertiary' && icon_position === 'top') {\n iconSize = 'medium'\n }\n\n const Element = element\n ? element\n : props.href || props.to\n ? Anchor\n : 'button'\n if (Element === Anchor) {\n attributes.omitClass = true\n if (opensNewTab(props.target, props.href) && !icon) {\n icon = launch\n }\n }\n\n const classes = classnames(\n 'dnb-button',\n `dnb-button--${usedVariant || 'primary'}`,\n usedSize && usedSize !== 'default' && `dnb-button--size-${usedSize}`,\n this.context?.theme?.darkBackground &&\n `dnb-button--on-dark-background`,\n icon && `dnb-button--icon-position-${icon_position}`,\n isTrue(stretch) && 'dnb-button--stretch',\n icon && iconSize && `dnb-button--icon-size-${iconSize}`,\n (text || content || custom_content) && 'dnb-button--has-text',\n icon && 'dnb-button--has-icon',\n wrap && 'dnb-button--wrap',\n status && `dnb-button__status--${status_state}`,\n createSkeletonClass(\n variant === 'tertiary' ? 'font' : 'shape',\n skeleton,\n this.context\n ),\n createSpacingClasses(props),\n classProp, // @deprecated – can be removed in v11\n className,\n props.href || props.to ? '' : null, // dnb-anchor--no-underline dnb-anchor--no-hover\n Element === Anchor && 'dnb-anchor--no-style'\n )\n\n const params = {\n className: classes,\n title,\n id: this._id,\n disabled: isTrue(disabled),\n ...attributes,\n }\n\n if (props.on_click || props.onClick) {\n params.onClick = this.getOnClickHandler(props)\n }\n\n if (Element !== Anchor && !params.type) {\n params.type = params.type === '' ? undefined : 'button'\n }\n if (isIconOnly) {\n params['aria-label'] = params['aria-label'] || title\n }\n\n skeletonDOMAttributes(params, skeleton, this.context)\n\n // also used for code markup simulation\n validateDOMAttributes(this.props, params)\n\n return (\n <>\n <Element ref={this._ref} {...params}>\n <Content\n {...this.props}\n icon={icon}\n icon_size={iconSize}\n content={text || content}\n custom_content={custom_content}\n isIconOnly={isIconOnly}\n skeleton={isTrue(skeleton)}\n />\n </Element>\n\n {this.state.afterContent}\n\n <FormStatus\n show={showStatus}\n id={this._id + '-form-status'}\n globalStatus={globalStatus}\n label={text}\n text={status}\n state={status_state}\n text_id={this._id + '-status'} // used for \"aria-describedby\"\n no_animation={status_no_animation}\n skeleton={skeleton}\n {...status_props}\n />\n\n {tooltip && this._ref && (\n <Tooltip\n id={this._id + '-tooltip'}\n targetElement={this._ref}\n tooltip={tooltip}\n />\n )}\n </>\n )\n }\n}\n\nButton.propTypes = {\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n type: PropTypes.string,\n title: PropTypes.string,\n variant: buttonVariantPropType.variant,\n size: PropTypes.oneOf(['default', 'small', 'medium', 'large']),\n icon: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n PropTypes.func,\n ]),\n icon_position: PropTypes.oneOf(['left', 'right', 'top']),\n icon_size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n tooltip: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.node,\n ]),\n status: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.func,\n PropTypes.node,\n ]),\n status_state: PropTypes.string,\n status_props: PropTypes.object,\n status_no_animation: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n ]),\n globalStatus: PropTypes.shape({\n id: PropTypes.string,\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n }),\n id: PropTypes.string,\n href: PropTypes.string,\n target: PropTypes.string,\n rel: PropTypes.string,\n to: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n ]),\n custom_content: PropTypes.node,\n wrap: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n bounding: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n stretch: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n skeleton: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n disabled: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n inner_ref: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),\n className: PropTypes.string,\n /**\n * @deprecated – use className instead. Will be removed in v11.\n */\n class: PropTypes.string,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),\n children: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.node,\n ]),\n element: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n PropTypes.node,\n ]),\n\n ...spacingPropTypes,\n\n on_click: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n}\n\nButton.defaultProps = {\n type: null, // set the type because of the anchor/href situation – can be made more smart in future\n text: null,\n variant: null,\n size: null,\n title: null,\n icon: null,\n icon_position: 'right',\n icon_size: null,\n href: null,\n target: null,\n rel: null,\n to: null,\n id: null,\n custom_content: null,\n wrap: null,\n bounding: null,\n stretch: null,\n skeleton: null,\n disabled: null,\n tooltip: null,\n status: null,\n status_state: 'error',\n status_props: null,\n status_no_animation: null,\n globalStatus: null,\n inner_ref: null,\n\n className: null,\n /**\n * @deprecated – use className instead. Will be removed in v11.\n */\n class: null,\n innerRef: null,\n children: null,\n element: null,\n\n on_click: null,\n onClick: null,\n}\n\nfunction Content({\n title = null,\n content = null,\n custom_content = null,\n icon = null,\n icon_size = 'default',\n bounding = null,\n skeleton = null,\n isIconOnly = null,\n}) {\n return (\n <>\n {isTrue(bounding) && (\n <span key=\"button-bounding\" className=\"dnb-button__bounding\" />\n )}\n\n {custom_content && (\n <React.Fragment key=\"button-custom-content\">\n {custom_content}\n </React.Fragment>\n )}\n\n {content && (\n <>\n <span\n key=\"button-alignment\"\n className=\"dnb-button__alignment\"\n aria-hidden\n >\n &zwnj;\n </span>\n <span\n key=\"button-text\"\n className=\"dnb-button__text dnb-skeleton--show-font\"\n >\n {content}\n </span>\n </>\n )}\n\n {\n // on empty text, use a zero-width non-joiner\n // so the icon button gets vertical aligned\n // we need the dnb-button__text for alignment\n !content && icon && (\n <span\n key=\"button-alignment\"\n className=\"dnb-button__alignment\"\n aria-hidden\n >\n &zwnj;\n </span>\n )\n }\n\n {icon &&\n (pickIcon(icon, 'dnb-button__icon') || (\n <IconPrimary\n key=\"button-icon\"\n className=\"dnb-button__icon\"\n icon={icon}\n size={icon_size}\n aria-hidden={isIconOnly && !title ? null : true}\n skeleton={skeleton}\n />\n ))}\n </>\n )\n}\n\nContent.propTypes = {\n title: PropTypes.string,\n custom_content: PropTypes.node,\n content: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.array,\n PropTypes.node,\n ]),\n icon: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n PropTypes.func,\n ]),\n icon_size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n bounding: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n skeleton: PropTypes.bool,\n isIconOnly: PropTypes.bool,\n}\n\nButton._formElement = true\nButton._supportsSpacingProps = true\n"],"mappings":";;;;;;;;;AAOA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,SACEC,IAAI,EACJC,YAAY,EACZC,MAAM,EACNC,sCAAsC,EACtCC,qBAAqB,EACrBC,eAAe,EACfC,cAAc,EACdC,0BAA0B,QACrB,+BAA+B;AACtC,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,wBAAwB;AAC/B,SACEC,qBAAqB,EACrBC,mBAAmB,QACd,4BAA4B;AACnC,SAASC,oBAAoB,QAAQ,uCAAuC;AAC5E,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,MAAM,IAAIC,QAAQ,EAAEC,WAAW,QAAQ,kBAAkB;AAChE,SAASC,MAAM,QAAQ,aAAa;AACpC,OAAOC,OAAO,MAAM,oBAAoB;AAExC,OAAO,MAAMC,qBAAqB,GAAG;EACnCC,OAAO,EAAExB,SAAS,CAACyB,KAAK,CAAC,CACvB,SAAS,EACT,WAAW,EACX,UAAU,EACV,QAAQ,EAKR,UAAU,CACX;AACH,CAAC;AAKD,eAAe,MAAMC,MAA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EAAExE,SAAS,CAACuH,SAAS,CAAC,CACxBvH,SAAS,CAACwH,MAAM,EAChBxH,SAAS,CAACyH,IAAI,EACdzH,SAAS,CAAC0H,IAAI,CACf,CAAC;EACF/C,SAAS,EAAE3E,SAAS,CAACuH,SAAS,CAAC,CAACvH,SAAS,CAACwH,MAAM,EAAExH,SAAS,CAAC2H,MAAM,CAAC,CAAC;EACpE9C,QAAQ,EAAE7E,SAAS,CAACuH,SAAS,CAAC,CAACvH,SAAS,CAACwH,MAAM,EAAExH,SAAS,CAAC4H,IAAI,CAAC,CAAC;EACjErE,QAAQ,EAAEvD,SAAS,CAAC4H,IAAI;EACxBpC,UAAU,EAAExF,SAAS,CAAC4H;AACxB,CAAC;AAEDlG,MAAM,CAAC6G,YAAY,GAAG,IAAI;AAC1B7G,MAAM,CAAC8G,qBAAqB,GAAG,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"Button.js","names":["React","PropTypes","classnames","Context","warn","makeUniqueId","isTrue","extendPropsWithContextInClassComponent","validateDOMAttributes","processChildren","getStatusState","dispatchCustomElementEvent","spacingPropTypes","createSpacingClasses","skeletonDOMAttributes","createSkeletonClass","pickFormElementProps","IconPrimary","FormStatus","Anchor","pickIcon","opensNewTab","launch","Tooltip","AlignmentHelper","buttonVariantPropType","variant","oneOf","Button","PureComponent","getContent","props","constructor","_defineProperty","src","event","afterContent","isValidElement","setState","_id","id","status","tooltip","_ref","createRef","state","componentDidMount","innerRef","current","inner_ref","render","_this$context","_this$context2","_this$context3","_this$context4","_this$context4$theme","defaultProps","skeleton","context","FormRow","formElement","class","classProp","className","size","title","custom_content","status_state","status_props","status_no_animation","globalStatus","disabled","text","_text","icon","_icon","icon_position","icon_size","wrap","bounding","stretch","element","attributes","_objectWithoutProperties","_excluded","showStatus","usedVariant","usedSize","iconSize","content","isIconOnly","Boolean","Element","href","to","omitClass","target","classes","theme","darkBackground","params","_objectSpread","on_click","onClick","getOnClickHandler","type","undefined","createElement","Fragment","_extends","ref","Content","show","label","text_id","no_animation","targetElement","process","env","NODE_ENV","propTypes","oneOfType","string","node","func","number","bool","object","shape","message","rel","children","_span","key","_AlignmentHelper","pseudoElementOnly","_AlignmentHelper2","array","_formElement","_supportsSpacingProps"],"sources":["../../../../src/components/button/Button.js"],"sourcesContent":["/**\n * Web Button Component\n *\n * This is a legacy component.\n * For referencing while developing new features, please use a Functional component.\n */\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport classnames from 'classnames'\nimport Context from '../../shared/Context'\nimport {\n warn,\n makeUniqueId,\n isTrue,\n extendPropsWithContextInClassComponent,\n validateDOMAttributes,\n processChildren,\n getStatusState,\n dispatchCustomElementEvent,\n} from '../../shared/component-helper'\nimport {\n spacingPropTypes,\n createSpacingClasses,\n} from '../space/SpacingHelper'\nimport {\n skeletonDOMAttributes,\n createSkeletonClass,\n} from '../skeleton/SkeletonHelper'\nimport { pickFormElementProps } from '../../shared/helpers/filterValidProps'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport FormStatus from '../form-status/FormStatus'\nimport Anchor, { pickIcon, opensNewTab } from '../anchor/Anchor'\nimport { launch } from '../../icons'\nimport Tooltip from '../tooltip/Tooltip'\nimport AlignmentHelper from '../../shared/AlignmentHelper'\n\nexport const buttonVariantPropType = {\n variant: PropTypes.oneOf([\n 'primary',\n 'secondary',\n 'tertiary',\n 'signal',\n\n /**\n * For internal use only (as of now)\n */\n 'unstyled',\n ]),\n}\n\n/**\n * The button component should be used as the call-to-action in a form, or as a user interaction mechanism. Generally speaking, a button should not be used when a link would do the trick. Exceptions are made at times when it is used as a navigation element in the action-nav element.\n */\nexport default class Button extends React.PureComponent {\n static contextType = Context\n\n static getContent(props) {\n return processChildren(props)\n }\n\n constructor(props) {\n super(props)\n\n this._id =\n props.id || ((props.status || props.tooltip) && makeUniqueId()) // cause we need an id anyway\n this._ref = React.createRef()\n\n this.state = { afterContent: null }\n }\n\n componentDidMount() {\n if (this.props.innerRef) {\n typeof this.props.innerRef === 'function'\n ? this.props.innerRef(this._ref.current)\n : (this.props.innerRef.current = this._ref.current)\n }\n if (this.props.inner_ref) {\n typeof this.props.innerRef === 'function'\n ? this.props.inner_ref(this._ref.current)\n : (this.props.inner_ref.current = this._ref.current)\n }\n }\n\n getOnClickHandler = (src) => (event) => {\n const afterContent = dispatchCustomElementEvent(src, 'on_click', {\n event,\n })\n if (afterContent && React.isValidElement(afterContent)) {\n this.setState({\n afterContent,\n })\n }\n }\n\n render() {\n // use only the props from context, who are available here anyway\n const props = extendPropsWithContextInClassComponent(\n this.props,\n Button.defaultProps,\n { skeleton: this.context?.skeleton },\n // Deprecated – can be removed in v11\n pickFormElementProps(this.context?.FormRow),\n pickFormElementProps(this.context?.formElement),\n this.context.Button\n )\n\n const {\n class: classProp, // @deprecated – can be removed in v11\n className,\n variant,\n size,\n title,\n custom_content,\n tooltip,\n status,\n status_state,\n status_props,\n status_no_animation,\n globalStatus,\n id, // eslint-disable-line\n disabled,\n text: _text, // eslint-disable-line\n icon: _icon, // eslint-disable-line\n icon_position,\n icon_size,\n wrap,\n bounding, // eslint-disable-line\n stretch,\n skeleton,\n element,\n inner_ref, // eslint-disable-line\n innerRef, // eslint-disable-line\n ...attributes\n } = props\n\n const showStatus = getStatusState(status)\n\n let { text, icon } = props\n let usedVariant = variant\n let usedSize = size\n let iconSize = icon_size\n const content = Button.getContent(this.props)\n\n if (\n variant === 'tertiary' &&\n (text || content) &&\n !icon &&\n icon !== false\n ) {\n warn(\n `Icon required: A Tertiary Button requires an icon to be WCAG compliant in most cases, because variant tertiary has no underline.\n(Override this warning using icon={false}, or consider using one of the other variants)`\n )\n }\n\n // if only has Icon, then resize it and define it as secondary\n const isIconOnly = Boolean(!text && !content && icon)\n if (isIconOnly) {\n if (!usedVariant) {\n usedVariant = 'secondary'\n }\n if (!iconSize && (usedSize === 'default' || usedSize === 'large')) {\n iconSize = 'medium'\n }\n if (!usedSize) {\n usedSize = 'medium'\n }\n } else if (content) {\n if (!usedVariant) {\n usedVariant = 'primary'\n }\n if (!usedSize) {\n usedSize = 'default'\n }\n }\n if (!iconSize && variant === 'tertiary' && icon_position === 'top') {\n iconSize = 'medium'\n }\n\n const Element = element\n ? element\n : props.href || props.to\n ? Anchor\n : 'button'\n if (Element === Anchor) {\n attributes.omitClass = true\n if (opensNewTab(props.target, props.href) && !icon) {\n icon = launch\n }\n }\n\n const classes = classnames(\n 'dnb-button',\n `dnb-button--${usedVariant || 'primary'}`,\n usedSize && usedSize !== 'default' && `dnb-button--size-${usedSize}`,\n this.context?.theme?.darkBackground &&\n `dnb-button--on-dark-background`,\n icon && `dnb-button--icon-position-${icon_position}`,\n isTrue(stretch) && 'dnb-button--stretch',\n icon && iconSize && `dnb-button--icon-size-${iconSize}`,\n (text || content || custom_content) && 'dnb-button--has-text',\n icon && 'dnb-button--has-icon',\n wrap && 'dnb-button--wrap',\n status && `dnb-button__status--${status_state}`,\n createSkeletonClass(\n variant === 'tertiary' ? 'font' : 'shape',\n skeleton,\n this.context\n ),\n createSpacingClasses(props),\n classProp, // @deprecated – can be removed in v11\n className,\n props.href || props.to ? '' : null, // dnb-anchor--no-underline dnb-anchor--no-hover\n Element === Anchor && 'dnb-anchor--no-style'\n )\n\n const params = {\n className: classes,\n title,\n id: this._id,\n disabled: isTrue(disabled),\n ...attributes,\n }\n\n if (props.on_click || props.onClick) {\n params.onClick = this.getOnClickHandler(props)\n }\n\n if (Element !== Anchor && !params.type) {\n params.type = params.type === '' ? undefined : 'button'\n }\n if (isIconOnly) {\n params['aria-label'] = params['aria-label'] || title\n }\n\n skeletonDOMAttributes(params, skeleton, this.context)\n\n // also used for code markup simulation\n validateDOMAttributes(this.props, params)\n\n return (\n <>\n <Element ref={this._ref} {...params}>\n <Content\n {...this.props}\n icon={icon}\n icon_size={iconSize}\n content={text || content}\n custom_content={custom_content}\n isIconOnly={isIconOnly}\n skeleton={isTrue(skeleton)}\n />\n </Element>\n\n {this.state.afterContent}\n\n <FormStatus\n show={showStatus}\n id={this._id + '-form-status'}\n globalStatus={globalStatus}\n label={text}\n text={status}\n state={status_state}\n text_id={this._id + '-status'} // used for \"aria-describedby\"\n no_animation={status_no_animation}\n skeleton={skeleton}\n {...status_props}\n />\n\n {tooltip && this._ref && (\n <Tooltip\n id={this._id + '-tooltip'}\n targetElement={this._ref}\n tooltip={tooltip}\n />\n )}\n </>\n )\n }\n}\n\nButton.propTypes = {\n text: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n type: PropTypes.string,\n title: PropTypes.string,\n variant: buttonVariantPropType.variant,\n size: PropTypes.oneOf(['default', 'small', 'medium', 'large']),\n icon: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n PropTypes.func,\n ]),\n icon_position: PropTypes.oneOf(['left', 'right', 'top']),\n icon_size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n tooltip: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.node,\n ]),\n status: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n PropTypes.func,\n PropTypes.node,\n ]),\n status_state: PropTypes.string,\n status_props: PropTypes.object,\n status_no_animation: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.bool,\n ]),\n globalStatus: PropTypes.shape({\n id: PropTypes.string,\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),\n }),\n id: PropTypes.string,\n href: PropTypes.string,\n target: PropTypes.string,\n rel: PropTypes.string,\n to: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n PropTypes.func,\n ]),\n custom_content: PropTypes.node,\n wrap: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n bounding: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n stretch: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n skeleton: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n disabled: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n inner_ref: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),\n className: PropTypes.string,\n /**\n * @deprecated – use className instead. Will be removed in v11.\n */\n class: PropTypes.string,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),\n children: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.node,\n ]),\n element: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n PropTypes.node,\n ]),\n\n ...spacingPropTypes,\n\n on_click: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n}\n\nButton.defaultProps = {\n type: null, // set the type because of the anchor/href situation – can be made more smart in future\n text: null,\n variant: null,\n size: null,\n title: null,\n icon: null,\n icon_position: 'right',\n icon_size: null,\n href: null,\n target: null,\n rel: null,\n to: null,\n id: null,\n custom_content: null,\n wrap: null,\n bounding: null,\n stretch: null,\n skeleton: null,\n disabled: null,\n tooltip: null,\n status: null,\n status_state: 'error',\n status_props: null,\n status_no_animation: null,\n globalStatus: null,\n inner_ref: null,\n\n className: null,\n /**\n * @deprecated – use className instead. Will be removed in v11.\n */\n class: null,\n innerRef: null,\n children: null,\n element: null,\n\n on_click: null,\n onClick: null,\n}\n\nfunction Content({\n title = null,\n content = null,\n custom_content = null,\n icon = null,\n icon_size = 'default',\n bounding = null,\n skeleton = null,\n isIconOnly = null,\n}) {\n return (\n <>\n {isTrue(bounding) && (\n <span key=\"button-bounding\" className=\"dnb-button__bounding\" />\n )}\n\n {custom_content && (\n <React.Fragment key=\"button-custom-content\">\n {custom_content}\n </React.Fragment>\n )}\n\n {content && (\n <>\n <AlignmentHelper\n key=\"button-alignment\"\n className=\"dnb-button__alignment\"\n pseudoElementOnly\n />\n <span\n key=\"button-text\"\n className=\"dnb-button__text dnb-skeleton--show-font\"\n >\n {content}\n </span>\n </>\n )}\n\n {\n // on empty text, use a zero-width non-joiner\n // so the icon button gets vertical aligned\n // we need the dnb-button__text for alignment\n !content && icon && (\n <AlignmentHelper\n key=\"button-alignment\"\n className=\"dnb-button__alignment\"\n pseudoElementOnly\n />\n )\n }\n\n {icon &&\n (pickIcon(icon, 'dnb-button__icon') || (\n <IconPrimary\n key=\"button-icon\"\n className=\"dnb-button__icon\"\n icon={icon}\n size={icon_size}\n aria-hidden={isIconOnly && !title ? null : true}\n skeleton={skeleton}\n />\n ))}\n </>\n )\n}\n\nContent.propTypes = {\n title: PropTypes.string,\n custom_content: PropTypes.node,\n content: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.array,\n PropTypes.node,\n ]),\n icon: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n PropTypes.func,\n ]),\n icon_size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n bounding: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n skeleton: PropTypes.bool,\n isIconOnly: PropTypes.bool,\n}\n\nButton._formElement = true\nButton._supportsSpacingProps = true\n"],"mappings":";;;;;;;;;AAOA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,SACEC,IAAI,EACJC,YAAY,EACZC,MAAM,EACNC,sCAAsC,EACtCC,qBAAqB,EACrBC,eAAe,EACfC,cAAc,EACdC,0BAA0B,QACrB,+BAA+B;AACtC,SACEC,gBAAgB,EAChBC,oBAAoB,QACf,wBAAwB;AAC/B,SACEC,qBAAqB,EACrBC,mBAAmB,QACd,4BAA4B;AACnC,SAASC,oBAAoB,QAAQ,uCAAuC;AAC5E,OAAOC,WAAW,MAAM,6BAA6B;AACrD,OAAOC,UAAU,MAAM,2BAA2B;AAClD,OAAOC,MAAM,IAAIC,QAAQ,EAAEC,WAAW,QAAQ,kBAAkB;AAChE,SAASC,MAAM,QAAQ,aAAa;AACpC,OAAOC,OAAO,MAAM,oBAAoB;AACxC,OAAOC,eAAe,MAAM,8BAA8B;AAE1D,OAAO,MAAMC,qBAAqB,GAAG;EACnCC,OAAO,EAAEzB,SAAS,CAAC0B,KAAK,CAAC,CACvB,SAAS,EACT,WAA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OAAO,EAAExF,SAAS,CAACwH,SAAS,CAAC,CAC3BxH,SAAS,CAACyH,MAAM,EAChBzH,SAAS,CAACwI,KAAK,EACfxI,SAAS,CAAC0H,IAAI,CACf,CAAC;EACFjD,IAAI,EAAEzE,SAAS,CAACwH,SAAS,CAAC,CACxBxH,SAAS,CAACyH,MAAM,EAChBzH,SAAS,CAAC0H,IAAI,EACd1H,SAAS,CAAC2H,IAAI,CACf,CAAC;EACF/C,SAAS,EAAE5E,SAAS,CAACwH,SAAS,CAAC,CAACxH,SAAS,CAACyH,MAAM,EAAEzH,SAAS,CAAC4H,MAAM,CAAC,CAAC;EACpE9C,QAAQ,EAAE9E,SAAS,CAACwH,SAAS,CAAC,CAACxH,SAAS,CAACyH,MAAM,EAAEzH,SAAS,CAAC6H,IAAI,CAAC,CAAC;EACjErE,QAAQ,EAAExD,SAAS,CAAC6H,IAAI;EACxBpC,UAAU,EAAEzF,SAAS,CAAC6H;AACxB,CAAC;AAEDlG,MAAM,CAAC8G,YAAY,GAAG,IAAI;AAC1B9G,MAAM,CAAC+G,qBAAqB,GAAG,IAAI","ignoreList":[]}
@@ -11,7 +11,7 @@ export const DatePickerProperties = {
11
11
  status: 'optional'
12
12
  },
13
13
  endDate: {
14
- doc: 'To set the pre-filled ending date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`',
14
+ doc: 'To set the pre-filled ending date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`.',
15
15
  type: dateType,
16
16
  status: 'optional'
17
17
  },
@@ -91,7 +91,7 @@ export const DatePickerProperties = {
91
91
  status: 'optional'
92
92
  },
93
93
  showCancelButton: {
94
- doc: 'If set to `true`, a cancel button will be shown. You can change the default text by using `cancelButtonText="Avbryt"`. If the `range` property is `true`, then the cancel button is shown. Defaults to `false`',
94
+ doc: 'If set to `true`, a cancel button will be shown. You can change the default text by using `cancelButtonText="Avbryt"`. If the `range` property is `true`, then the cancel button is shown. Defaults to `false`.',
95
95
  type: 'boolean',
96
96
  status: 'optional'
97
97
  },
@@ -146,7 +146,7 @@ export const DatePickerProperties = {
146
146
  status: 'optional'
147
147
  },
148
148
  stretch: {
149
- doc: 'If set to `true`, then the date-picker input field will be 100% in `width`',
149
+ doc: 'If set to `true`, then the date-picker input field will be 100% in `width`.',
150
150
  type: 'boolean',
151
151
  status: 'optional'
152
152
  },
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerDocs.js","names":["dateType","DatePickerProperties","date","doc","type","status","startDate","endDate","month","startMonth","endMonth","minDate","maxDate","dateFormat","returnFormat","range","showInput","maskOrder","opened","maskPlaceholder","hideNavigation","hideDays","showSubmitButton","showCancelButton","showResetButton","link","sync","firstDay","alignPicker","skipPortal","yearNavigation","labelAlignment","onlyMonth","hideLastWeek","stretch","label","labelDirection","suffix","labelSrOnly","shortcuts","addonElement","inputElement","statusState","statusProps","disableAutofocus","globalStatus","tooltip","skeleton","size","DatePickerEvents","onChange","onType","onSubmit","onCancel","onReset","onShow","onHide","onDaysRender","onFocus","onBlur"],"sources":["../../../../src/components/date-picker/DatePickerDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nconst dateType = ['string', 'Date']\n\nexport const DatePickerProperties: PropertiesTableProps = {\n date: {\n doc: 'Defines the pre-filled date by either a JavaScript DateInstance or (ISO 8601) like `date=\"2019-05-05\"` and `content`.',\n type: dateType,\n status: 'optional',\n },\n startDate: {\n doc: 'To set the pre-filled starting date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`.',\n type: dateType,\n status: 'optional',\n },\n endDate: {\n doc: 'To set the pre-filled ending date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`',\n type: dateType,\n status: 'optional',\n },\n month: {\n doc: 'To display what month should be shown in the first calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n startMonth: {\n doc: 'To display what month should be shown in the first calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n endMonth: {\n doc: 'To display what month should be shown in the second calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n minDate: {\n doc: 'To limit a date range to a minimum `startDate`. Defaults to `null`.',\n type: dateType,\n status: 'optional',\n },\n maxDate: {\n doc: 'To limit a date range to a maximum `endDate`. Defaults to `null`.',\n type: dateType,\n status: 'optional',\n },\n dateFormat: {\n doc: 'Defines how the property dates (`date`, `startDate` and `endDate`) should be parsed, e.g. `yyyy/MM/dd`. Defaults to `yyyy-MM-dd`.',\n type: 'string',\n status: 'optional',\n },\n returnFormat: {\n doc: 'Defines how the returned date, as a string, should be formatted as. Defaults to `yyyy-MM-dd`.',\n type: 'string',\n status: 'optional',\n },\n range: {\n doc:\n 'Defines if the date picker should support a range of two dates (starting and ending date).' +\n 'Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n showInput: {\n doc: 'If the input fields with the mask should be visible. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n maskOrder: {\n doc: 'To define the order of the masked placeholder input fields. Defaults to `dd/mm/yyyy`.',\n type: 'string',\n status: 'optional',\n },\n opened: {\n doc: 'To open the date-picker by default. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n maskPlaceholder: {\n doc: 'To display the placeholder on input. Defaults to `dd/mm/åååå`.',\n type: 'string',\n status: 'optional',\n },\n hideNavigation: {\n doc: 'If set to `true`, the navigation will be hidden. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n hideDays: {\n doc: 'If set to `true`, the week days will be hidden. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n showSubmitButton: {\n doc: 'If set to `true`, a submit button will be shown. You can change the default text by using `submitButtonText=\"Ok\"`. Defaults to `false`. If the `range` property is `true`, then the submit button is shown.',\n type: 'boolean',\n status: 'optional',\n },\n showCancelButton: {\n doc: 'If set to `true`, a cancel button will be shown. You can change the default text by using `cancelButtonText=\"Avbryt\"`. If the `range` property is `true`, then the cancel button is shown. Defaults to `false`',\n type: 'boolean',\n status: 'optional',\n },\n showResetButton: {\n doc: 'If set to `true`, a reset button will be shown. You can change the default text by using `resetButtonText=\"Tilbakestill\"`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n link: {\n doc: '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`.',\n type: 'boolean',\n status: 'optional',\n },\n sync: {\n doc: 'Sync input values with the calendars views. Once the input values get changed, the calendar changes its views in sync. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n firstDay: {\n doc: 'To define the first day of the week. Defaults to `monday`.',\n type: [\n 'monday',\n 'tuesday',\n 'wednesday',\n 'thursday',\n 'friday',\n 'saturday',\n 'sunday',\n ],\n status: 'optional',\n },\n alignPicker: {\n doc: 'Use `right` to change the calendar alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n skipPortal: {\n doc: 'If set to `true`, the calendar will not be rendered inside a react portal. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n yearNavigation: {\n doc: 'Will enable year navigation in the calendar if set to `true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n labelAlignment: {\n doc: 'Sets the alignment of the label. Defaults to `left`.',\n type: ['left', 'right'],\n status: 'optional',\n },\n onlyMonth: {\n doc: 'Use `true` to only show the defined month. Disables the month navigation possibility. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n hideLastWeek: {\n doc: '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`.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the date-picker input field will be 100% in `width`',\n type: 'boolean',\n status: 'optional',\n },\n label: {\n doc: 'A prepending label in sync with the date input field.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n labelDirection: {\n doc: ' Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the DatePicker more than the label. You can also send in a React component, so it gets wrapped inside the DatePicker component.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n labelSrOnly: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n shortcuts: {\n doc: '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.',\n type: 'object',\n status: 'optional',\n },\n addonElement: {\n doc: 'Gives you the possibility to inject a React element showing up over the footer. Use it to customize `shortcuts`.',\n type: 'object',\n status: 'optional',\n },\n inputElement: {\n doc: 'Gives you the possibility to use a plain/vanilla `<input />` HTML element by defining it as a string `inputElement=\"input\"`, a React element, or a render function `inputElement={(internalProps) => (<Return />)}`. Can also be used in circumstances where the `react-text-mask` should not be used, e.g. in testing environments. Defaults to custom masked input.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n statusState: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n statusProps: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n disableAutofocus: {\n doc: 'Once the date picker gets opened, there is a focus handling to ensure good accessibility. This can be disabled with this property. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n tooltip: {\n doc: 'Provide a short Tooltip content that shows up on the picker button.',\n type: 'string',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `small` (1.5rem), `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`.',\n type: 'string',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const DatePickerEvents: PropertiesTableProps = {\n onChange: {\n doc: 'Will be called on a date change event. Returns an object. See Returned Object below.',\n type: 'function',\n status: 'optional',\n },\n onType: {\n doc: 'Will be called on every input and date picker interaction. Returns an `object`. See Returned Object below.',\n type: 'function',\n status: 'optional',\n },\n onSubmit: {\n doc: 'Will be called once a user presses the submit button.',\n type: 'function',\n status: 'optional',\n },\n onCancel: {\n doc: 'Will be called once a user presses the cancel button.',\n type: 'function',\n status: 'optional',\n },\n onReset: {\n doc: 'Will be called once a user presses the reset button.',\n type: 'function',\n status: 'optional',\n },\n onShow: {\n doc: 'Will be called once date-picker is visible.',\n type: 'function',\n status: 'optional',\n },\n onHide: {\n doc: 'Will be called once date-picker is hidden.',\n type: 'function',\n status: 'optional',\n },\n onDaysRender: {\n doc: 'Will be called right before every new calendar view gets rendered. See the example above.',\n type: 'function',\n status: 'optional',\n },\n onFocus: {\n doc: 'Will be called once the input gets focus.',\n type: 'function',\n status: 'optional',\n },\n onBlur: {\n doc: 'Will be called once the input lose focus.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,MAAMA,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC;AAEnC,OAAO,MAAMC,oBAA0C,GAAG;EACxDC,IAAI,EAAE;IACJC,GAAG,EAAE,uHAAuH;IAC5HC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACTH,GAAG,EAAE,qIAAqI;IAC1IC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,kIAAkI;IACvIC,IAAI,EAAEJ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G,EAAE,uDAAuD;IAC5DC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDgD,QAAQ,EAAE;IACRlD,GAAG,EAAE,uDAAuD;IAC5DC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDiD,OAAO,EAAE;IACPnD,GAAG,EAAE,sDAAsD;IAC3DC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDkD,MAAM,EAAE;IACNpD,GAAG,EAAE,6CAA6C;IAClDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDmD,MAAM,EAAE;IACNrD,GAAG,EAAE,4CAA4C;IACjDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoD,YAAY,EAAE;IACZtD,GAAG,EAAE,2FAA2F;IAChGC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqD,OAAO,EAAE;IACPvD,GAAG,EAAE,2CAA2C;IAChDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDsD,MAAM,EAAE;IACNxD,GAAG,EAAE,2CAA2C;IAChDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"DatePickerDocs.js","names":["dateType","DatePickerProperties","date","doc","type","status","startDate","endDate","month","startMonth","endMonth","minDate","maxDate","dateFormat","returnFormat","range","showInput","maskOrder","opened","maskPlaceholder","hideNavigation","hideDays","showSubmitButton","showCancelButton","showResetButton","link","sync","firstDay","alignPicker","skipPortal","yearNavigation","labelAlignment","onlyMonth","hideLastWeek","stretch","label","labelDirection","suffix","labelSrOnly","shortcuts","addonElement","inputElement","statusState","statusProps","disableAutofocus","globalStatus","tooltip","skeleton","size","DatePickerEvents","onChange","onType","onSubmit","onCancel","onReset","onShow","onHide","onDaysRender","onFocus","onBlur"],"sources":["../../../../src/components/date-picker/DatePickerDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nconst dateType = ['string', 'Date']\n\nexport const DatePickerProperties: PropertiesTableProps = {\n date: {\n doc: 'Defines the pre-filled date by either a JavaScript DateInstance or (ISO 8601) like `date=\"2019-05-05\"` and `content`.',\n type: dateType,\n status: 'optional',\n },\n startDate: {\n doc: 'To set the pre-filled starting date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`.',\n type: dateType,\n status: 'optional',\n },\n endDate: {\n doc: 'To set the pre-filled ending date. Is used if `range={true}` is set to `true`. Defaults to `null`, showing the `maskPlaceholder`.',\n type: dateType,\n status: 'optional',\n },\n month: {\n doc: 'To display what month should be shown in the first calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n startMonth: {\n doc: 'To display what month should be shown in the first calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n endMonth: {\n doc: 'To display what month should be shown in the second calendar by default. Defaults to the `date` respective `startDate`.',\n type: dateType,\n status: 'optional',\n },\n minDate: {\n doc: 'To limit a date range to a minimum `startDate`. Defaults to `null`.',\n type: dateType,\n status: 'optional',\n },\n maxDate: {\n doc: 'To limit a date range to a maximum `endDate`. Defaults to `null`.',\n type: dateType,\n status: 'optional',\n },\n dateFormat: {\n doc: 'Defines how the property dates (`date`, `startDate` and `endDate`) should be parsed, e.g. `yyyy/MM/dd`. Defaults to `yyyy-MM-dd`.',\n type: 'string',\n status: 'optional',\n },\n returnFormat: {\n doc: 'Defines how the returned date, as a string, should be formatted as. Defaults to `yyyy-MM-dd`.',\n type: 'string',\n status: 'optional',\n },\n range: {\n doc:\n 'Defines if the date picker should support a range of two dates (starting and ending date).' +\n 'Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n showInput: {\n doc: 'If the input fields with the mask should be visible. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n maskOrder: {\n doc: 'To define the order of the masked placeholder input fields. Defaults to `dd/mm/yyyy`.',\n type: 'string',\n status: 'optional',\n },\n opened: {\n doc: 'To open the date-picker by default. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n maskPlaceholder: {\n doc: 'To display the placeholder on input. Defaults to `dd/mm/åååå`.',\n type: 'string',\n status: 'optional',\n },\n hideNavigation: {\n doc: 'If set to `true`, the navigation will be hidden. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n hideDays: {\n doc: 'If set to `true`, the week days will be hidden. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n showSubmitButton: {\n doc: 'If set to `true`, a submit button will be shown. You can change the default text by using `submitButtonText=\"Ok\"`. Defaults to `false`. If the `range` property is `true`, then the submit button is shown.',\n type: 'boolean',\n status: 'optional',\n },\n showCancelButton: {\n doc: 'If set to `true`, a cancel button will be shown. You can change the default text by using `cancelButtonText=\"Avbryt\"`. If the `range` property is `true`, then the cancel button is shown. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n showResetButton: {\n doc: 'If set to `true`, a reset button will be shown. You can change the default text by using `resetButtonText=\"Tilbakestill\"`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n link: {\n doc: '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`.',\n type: 'boolean',\n status: 'optional',\n },\n sync: {\n doc: 'Sync input values with the calendars views. Once the input values get changed, the calendar changes its views in sync. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n firstDay: {\n doc: 'To define the first day of the week. Defaults to `monday`.',\n type: [\n 'monday',\n 'tuesday',\n 'wednesday',\n 'thursday',\n 'friday',\n 'saturday',\n 'sunday',\n ],\n status: 'optional',\n },\n alignPicker: {\n doc: 'Use `right` to change the calendar alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n skipPortal: {\n doc: 'If set to `true`, the calendar will not be rendered inside a react portal. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n yearNavigation: {\n doc: 'Will enable year navigation in the calendar if set to `true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n labelAlignment: {\n doc: 'Sets the alignment of the label. Defaults to `left`.',\n type: ['left', 'right'],\n status: 'optional',\n },\n onlyMonth: {\n doc: 'Use `true` to only show the defined month. Disables the month navigation possibility. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n hideLastWeek: {\n doc: '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`.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the date-picker input field will be 100% in `width`.',\n type: 'boolean',\n status: 'optional',\n },\n label: {\n doc: 'A prepending label in sync with the date input field.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n labelDirection: {\n doc: ' Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the DatePicker more than the label. You can also send in a React component, so it gets wrapped inside the DatePicker component.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n labelSrOnly: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n shortcuts: {\n doc: '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.',\n type: 'object',\n status: 'optional',\n },\n addonElement: {\n doc: 'Gives you the possibility to inject a React element showing up over the footer. Use it to customize `shortcuts`.',\n type: 'object',\n status: 'optional',\n },\n inputElement: {\n doc: 'Gives you the possibility to use a plain/vanilla `<input />` HTML element by defining it as a string `inputElement=\"input\"`, a React element, or a render function `inputElement={(internalProps) => (<Return />)}`. Can also be used in circumstances where the `react-text-mask` should not be used, e.g. in testing environments. Defaults to custom masked input.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n statusState: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n statusProps: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n disableAutofocus: {\n doc: 'Once the date picker gets opened, there is a focus handling to ensure good accessibility. This can be disabled with this property. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n tooltip: {\n doc: 'Provide a short Tooltip content that shows up on the picker button.',\n type: 'string',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `small` (1.5rem), `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`.',\n type: 'string',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const DatePickerEvents: PropertiesTableProps = {\n onChange: {\n doc: 'Will be called on a date change event. Returns an object. See Returned Object below.',\n type: 'function',\n status: 'optional',\n },\n onType: {\n doc: 'Will be called on every input and date picker interaction. Returns an `object`. See Returned Object below.',\n type: 'function',\n status: 'optional',\n },\n onSubmit: {\n doc: 'Will be called once a user presses the submit button.',\n type: 'function',\n status: 'optional',\n },\n onCancel: {\n doc: 'Will be called once a user presses the cancel button.',\n type: 'function',\n status: 'optional',\n },\n onReset: {\n doc: 'Will be called once a user presses the reset button.',\n type: 'function',\n status: 'optional',\n },\n onShow: {\n doc: 'Will be called once date-picker is visible.',\n type: 'function',\n status: 'optional',\n },\n onHide: {\n doc: 'Will be called once date-picker is hidden.',\n type: 'function',\n status: 'optional',\n },\n onDaysRender: {\n doc: 'Will be called right before every new calendar view gets rendered. See the example above.',\n type: 'function',\n status: 'optional',\n },\n onFocus: {\n doc: 'Will be called once the input gets focus.',\n type: 'function',\n status: 'optional',\n },\n onBlur: {\n doc: 'Will be called once the input lose focus.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,MAAMA,QAAQ,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC;AAEnC,OAAO,MAAMC,oBAA0C,GAAG;EACxDC,IAAI,EAAE;IACJC,GAAG,EAAE,uHAAuH;IAC5HC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACTH,GAAG,EAAE,qIAAqI;IAC1IC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,mIAAmI;IACxIC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,wHAAwH;IAC7HC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDI,UAAU,EAAE;IACVN,GAAG,EAAE,wHAAwH;IAC7HC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDK,QAAQ,EAAE;IACRP,GAAG,EAAE,yHAAyH;IAC9HC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDM,OAAO,EAAE;IACPR,GAAG,EAAE,qEAAqE;IAC1EC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDO,OAAO,EAAE;IACPT,GAAG,EAAE,mEAAmE;IACxEC,IAAI,EAAEJ,QAAQ;IACdK,MAAM,EAAE;EACV,CAAC;EACDQ,UAAU,EAAE;IACVV,GAAG,EAAE,mIAAmI;IACxIC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDS,YAAY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,MAAM,EAAE;EACV,CAAC;EACDsD,MAAM,EAAE;IACNxD,GAAG,EAAE,2CAA2C;IAChDC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -196,7 +196,7 @@ function DatePickerInput(externalProps) {
196
196
  warn(error);
197
197
  }
198
198
  }, [updateDates]);
199
- const callOnChangeAsInvalid = useCallback(state => {
199
+ const callOnChangeAsInvalid = useCallback(params => {
200
200
  if (isDateFullyFilledOutRef.current || hasHadValidDate) {
201
201
  const datesFromContext = {
202
202
  startDate,
@@ -206,7 +206,7 @@ function DatePickerInput(externalProps) {
206
206
  startDate: derivedStartDate,
207
207
  endDate: derivedEndDate,
208
208
  event
209
- } = _objectSpread(_objectSpread({}, state), datesFromContext);
209
+ } = _objectSpread(_objectSpread({}, datesFromContext), params);
210
210
  callOnChangeHandler(_objectSpread({
211
211
  startDate: derivedStartDate,
212
212
  endDate: derivedEndDate,