@dnb/eufemia 10.24.0 → 10.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (935) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/cjs/components/accordion/style/dnb-accordion.css +6 -2
  3. package/cjs/components/accordion/style/dnb-accordion.min.css +2 -2
  4. package/cjs/components/accordion/style/dnb-accordion.scss +8 -2
  5. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  6. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  7. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  8. package/cjs/components/autocomplete/Autocomplete.d.ts +0 -15
  9. package/cjs/components/autocomplete/Autocomplete.js +9 -2
  10. package/cjs/components/autocomplete/Autocomplete.js.map +1 -1
  11. package/cjs/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  12. package/cjs/components/autocomplete/AutocompleteDocs.js +293 -0
  13. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -0
  14. package/cjs/components/card/style/dnb-card.css +3 -0
  15. package/cjs/components/card/style/dnb-card.min.css +1 -1
  16. package/cjs/components/card/style/dnb-card.scss +4 -0
  17. package/cjs/components/dropdown/Dropdown.d.ts +0 -3
  18. package/cjs/components/input/InputDocs.js +2 -2
  19. package/cjs/components/input/InputDocs.js.map +1 -1
  20. package/cjs/components/input-masked/InputMaskedUtils.js +10 -7
  21. package/cjs/components/input-masked/InputMaskedUtils.js.map +1 -1
  22. package/cjs/components/table/style/dnb-table.css +3 -0
  23. package/cjs/components/table/style/dnb-table.min.css +1 -1
  24. package/cjs/components/table/style/table-th.scss +4 -1
  25. package/cjs/components/textarea/Textarea.js +24 -17
  26. package/cjs/components/textarea/Textarea.js.map +1 -1
  27. package/cjs/extensions/forms/DataContext/At/At.js +6 -6
  28. package/cjs/extensions/forms/DataContext/At/At.js.map +1 -1
  29. package/cjs/extensions/forms/DataContext/Context.d.ts +7 -3
  30. package/cjs/extensions/forms/DataContext/Context.js +2 -0
  31. package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
  32. package/cjs/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  33. package/cjs/extensions/forms/DataContext/Provider/Provider.js +56 -28
  34. package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  35. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  36. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  37. package/cjs/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +5 -7
  38. package/cjs/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  39. package/cjs/extensions/forms/Field/Boolean/Boolean.js +5 -8
  40. package/cjs/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
  41. package/cjs/extensions/forms/Field/Composition/Composition.d.ts +6 -0
  42. package/cjs/extensions/forms/Field/Composition/Composition.js +19 -0
  43. package/cjs/extensions/forms/Field/Composition/Composition.js.map +1 -0
  44. package/cjs/extensions/forms/Field/Composition/index.d.ts +2 -0
  45. package/cjs/extensions/forms/Field/Composition/index.js +27 -0
  46. package/cjs/extensions/forms/Field/Composition/index.js.map +1 -0
  47. package/cjs/extensions/forms/Field/Currency/Currency.js +6 -4
  48. package/cjs/extensions/forms/Field/Currency/Currency.js.map +1 -1
  49. package/cjs/extensions/forms/Field/Date/Date.js +5 -7
  50. package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
  51. package/cjs/extensions/forms/Field/Email/Email.js +6 -10
  52. package/cjs/extensions/forms/Field/Email/Email.js.map +1 -1
  53. package/cjs/extensions/forms/Field/Expiry/Expiry.js +24 -12
  54. package/cjs/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  55. package/cjs/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +4 -6
  56. package/cjs/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  57. package/cjs/extensions/forms/Field/Number/Number.js +8 -7
  58. package/cjs/extensions/forms/Field/Number/Number.js.map +1 -1
  59. package/cjs/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +5 -7
  60. package/cjs/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  61. package/cjs/extensions/forms/Field/Password/Password.js +5 -8
  62. package/cjs/extensions/forms/Field/Password/Password.js.map +1 -1
  63. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +1 -1
  64. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js +6 -5
  65. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  66. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.d.ts +1 -1
  67. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +15 -16
  68. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  69. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  70. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.js +6 -5
  71. package/cjs/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  72. package/cjs/extensions/forms/Field/String/String.js +9 -9
  73. package/cjs/extensions/forms/Field/String/String.js.map +1 -1
  74. package/cjs/extensions/forms/Field/Toggle/Toggle.js +6 -7
  75. package/cjs/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  76. package/cjs/extensions/forms/Field/index.d.ts +1 -0
  77. package/cjs/extensions/forms/Field/index.js +7 -0
  78. package/cjs/extensions/forms/Field/index.js.map +1 -1
  79. package/cjs/extensions/forms/FieldBlock/FieldBlock.js +3 -4
  80. package/cjs/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  81. package/cjs/extensions/forms/Form/Element/style/dnb-forms-element.css +7 -0
  82. package/cjs/extensions/forms/Form/Element/style/dnb-forms-element.min.css +1 -0
  83. package/cjs/extensions/forms/Form/Element/style/dnb-forms-element.scss +9 -0
  84. package/cjs/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  85. package/cjs/extensions/forms/Form/Handler/Handler.js +3 -3
  86. package/cjs/extensions/forms/Form/Handler/Handler.js.map +1 -1
  87. package/cjs/extensions/forms/Form/SubmitButton/SubmitButton.js +5 -5
  88. package/cjs/extensions/forms/Form/SubmitButton/SubmitButton.js.map +1 -1
  89. package/cjs/extensions/forms/Form/SubmitIndicator/style/index.d.ts +1 -1
  90. package/cjs/extensions/forms/Form/SubmitIndicator/style/index.js +1 -1
  91. package/cjs/extensions/forms/Form/SubmitIndicator/style/index.js.map +1 -1
  92. package/cjs/extensions/forms/Form/data-context/useData.js +6 -3
  93. package/cjs/extensions/forms/Form/data-context/useData.js.map +1 -1
  94. package/cjs/extensions/forms/Form/data-context/useError.d.ts +1 -0
  95. package/cjs/extensions/forms/Form/data-context/useError.js +13 -5
  96. package/cjs/extensions/forms/Form/data-context/useError.js.map +1 -1
  97. package/cjs/extensions/forms/Form/index.d.ts +1 -0
  98. package/cjs/extensions/forms/Form/index.js +7 -0
  99. package/cjs/extensions/forms/Form/index.js.map +1 -1
  100. package/cjs/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js +4 -7
  101. package/cjs/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js.map +1 -1
  102. package/cjs/extensions/forms/Value/Boolean/Boolean.js +4 -7
  103. package/cjs/extensions/forms/Value/Boolean/Boolean.js.map +1 -1
  104. package/cjs/extensions/forms/Value/Date/Date.js +4 -7
  105. package/cjs/extensions/forms/Value/Date/Date.js.map +1 -1
  106. package/cjs/extensions/forms/Value/Email/Email.js +4 -7
  107. package/cjs/extensions/forms/Value/Email/Email.js.map +1 -1
  108. package/cjs/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js +4 -7
  109. package/cjs/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  110. package/cjs/extensions/forms/Value/PhoneNumber/PhoneNumber.js +4 -7
  111. package/cjs/extensions/forms/Value/PhoneNumber/PhoneNumber.js.map +1 -1
  112. package/cjs/extensions/forms/Wizard/Buttons/Buttons.js +33 -0
  113. package/cjs/extensions/forms/Wizard/Buttons/Buttons.js.map +1 -0
  114. package/cjs/extensions/forms/Wizard/Buttons/index.js.map +1 -0
  115. package/cjs/extensions/forms/Wizard/Container/WizardContainer.d.ts +19 -0
  116. package/cjs/extensions/forms/{StepsLayout/StepsLayout.js → Wizard/Container/WizardContainer.js} +72 -61
  117. package/cjs/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -0
  118. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.d.ts +3 -0
  119. package/cjs/extensions/forms/{StepsLayout/StepsLayoutDocs.js → Wizard/Container/WizardContainerDocs.js} +9 -9
  120. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -0
  121. package/cjs/extensions/forms/Wizard/Container/index.d.ts +2 -0
  122. package/cjs/extensions/forms/Wizard/Container/index.js +27 -0
  123. package/cjs/extensions/forms/Wizard/Container/index.js.map +1 -0
  124. package/cjs/extensions/forms/Wizard/Context/WizardContext.d.ts +17 -0
  125. package/cjs/extensions/forms/{StepsLayout/StepsContext.js → Wizard/Context/WizardContext.js} +7 -4
  126. package/cjs/extensions/forms/Wizard/Context/WizardContext.js.map +1 -0
  127. package/cjs/extensions/forms/Wizard/Context/index.d.ts +2 -0
  128. package/cjs/extensions/forms/Wizard/Context/index.js +27 -0
  129. package/cjs/extensions/forms/Wizard/Context/index.js.map +1 -0
  130. package/cjs/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.js +6 -6
  131. package/cjs/extensions/forms/Wizard/NextButton/NextButton.js.map +1 -0
  132. package/cjs/extensions/forms/Wizard/NextButton/index.js.map +1 -0
  133. package/cjs/extensions/forms/{StepsLayout → Wizard}/PreviousButton/PreviousButton.js +7 -7
  134. package/cjs/extensions/forms/Wizard/PreviousButton/PreviousButton.js.map +1 -0
  135. package/cjs/extensions/forms/Wizard/PreviousButton/index.js.map +1 -0
  136. package/cjs/extensions/forms/{StepsLayout → Wizard}/Step/Step.js +3 -3
  137. package/cjs/extensions/forms/Wizard/Step/Step.js.map +1 -0
  138. package/cjs/extensions/forms/Wizard/Step/index.js.map +1 -0
  139. package/cjs/extensions/forms/Wizard/hooks/useNextRouter.d.ts +7 -0
  140. package/cjs/extensions/forms/Wizard/hooks/useNextRouter.js +52 -0
  141. package/cjs/extensions/forms/Wizard/hooks/useNextRouter.js.map +1 -0
  142. package/cjs/extensions/forms/Wizard/hooks/useQueryLocator.d.ts +3 -0
  143. package/cjs/extensions/forms/Wizard/hooks/useQueryLocator.js +60 -0
  144. package/cjs/extensions/forms/Wizard/hooks/useQueryLocator.js.map +1 -0
  145. package/cjs/extensions/forms/Wizard/hooks/useReachRouter.d.ts +6 -0
  146. package/cjs/extensions/forms/Wizard/hooks/useReachRouter.js +56 -0
  147. package/cjs/extensions/forms/Wizard/hooks/useReachRouter.js.map +1 -0
  148. package/cjs/extensions/forms/Wizard/hooks/useReactRouter.d.ts +5 -0
  149. package/cjs/extensions/forms/Wizard/hooks/useReactRouter.js +47 -0
  150. package/cjs/extensions/forms/Wizard/hooks/useReactRouter.js.map +1 -0
  151. package/cjs/extensions/forms/Wizard/hooks/useStep.d.ts +5 -0
  152. package/cjs/extensions/forms/Wizard/hooks/useStep.js +30 -0
  153. package/cjs/extensions/forms/Wizard/hooks/useStep.js.map +1 -0
  154. package/cjs/extensions/forms/Wizard/index.d.ts +13 -0
  155. package/cjs/extensions/forms/Wizard/index.js +87 -0
  156. package/cjs/extensions/forms/Wizard/index.js.map +1 -0
  157. package/{extensions/forms/StepsLayout/style/dnb-steps-layout.css → cjs/extensions/forms/Wizard/style/dnb-wizard-layout.css} +11 -10
  158. package/cjs/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -0
  159. package/{extensions/forms/StepsLayout/style/dnb-steps-layout.scss → cjs/extensions/forms/Wizard/style/dnb-wizard-layout.scss} +6 -5
  160. package/cjs/extensions/forms/Wizard/style/index.d.ts +5 -0
  161. package/cjs/extensions/forms/Wizard/style/index.js +4 -0
  162. package/cjs/extensions/forms/Wizard/style/index.js.map +1 -0
  163. package/cjs/extensions/forms/Wizard/style.js.map +1 -0
  164. package/cjs/extensions/forms/constants/countries.d.ts +1 -0
  165. package/cjs/extensions/forms/constants/countries.js.map +1 -1
  166. package/cjs/extensions/forms/constants/locales/en-GB.d.ts +99 -0
  167. package/cjs/extensions/forms/constants/locales/en-GB.js +100 -0
  168. package/cjs/extensions/forms/constants/locales/en-GB.js.map +1 -0
  169. package/cjs/extensions/forms/constants/locales/en-US.d.ts +93 -0
  170. package/cjs/extensions/forms/constants/locales/en-US.js +25 -0
  171. package/cjs/extensions/forms/constants/locales/en-US.js.map +1 -0
  172. package/cjs/extensions/forms/constants/locales/index.d.ts +183 -0
  173. package/cjs/extensions/forms/constants/locales/index.js +18 -0
  174. package/cjs/extensions/forms/constants/locales/index.js.map +1 -0
  175. package/cjs/extensions/forms/constants/locales/nb-NO.d.ts +99 -0
  176. package/cjs/extensions/forms/constants/locales/nb-NO.js +100 -0
  177. package/cjs/extensions/forms/constants/locales/nb-NO.js.map +1 -0
  178. package/cjs/extensions/forms/hooks/DataValueDocs.js +4 -4
  179. package/cjs/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  180. package/cjs/extensions/forms/hooks/useFieldProps.js +92 -65
  181. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  182. package/cjs/extensions/forms/hooks/useLocale.d.ts +10 -0
  183. package/cjs/extensions/forms/hooks/useLocale.js +32 -0
  184. package/cjs/extensions/forms/hooks/useLocale.js.map +1 -0
  185. package/cjs/extensions/forms/index.d.ts +14 -1
  186. package/cjs/extensions/forms/index.js +15 -15
  187. package/cjs/extensions/forms/index.js.map +1 -1
  188. package/cjs/extensions/forms/style/dnb-forms.css +36 -27
  189. package/cjs/extensions/forms/style/dnb-forms.min.css +1 -1
  190. package/cjs/extensions/forms/types.d.ts +2 -0
  191. package/cjs/extensions/forms/types.js.map +1 -1
  192. package/cjs/fragments/drawer-list/DrawerList.d.ts +95 -1
  193. package/cjs/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  194. package/cjs/fragments/drawer-list/DrawerListDocs.js +188 -0
  195. package/cjs/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  196. package/cjs/shared/Context.d.ts +7 -6
  197. package/cjs/shared/Context.js.map +1 -1
  198. package/cjs/shared/Eufemia.d.ts +1 -1
  199. package/cjs/shared/Eufemia.js +2 -2
  200. package/cjs/shared/Eufemia.js.map +1 -1
  201. package/cjs/shared/component-helper.d.ts +0 -1
  202. package/cjs/shared/component-helper.js +1 -9
  203. package/cjs/shared/component-helper.js.map +1 -1
  204. package/cjs/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  205. package/cjs/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  206. package/cjs/shared/helpers/useSharedState.d.ts +3 -1
  207. package/cjs/shared/helpers/useSharedState.js.map +1 -1
  208. package/cjs/shared/locales/en-GB.d.ts +0 -51
  209. package/cjs/shared/locales/en-GB.js +3 -54
  210. package/cjs/shared/locales/en-GB.js.map +1 -1
  211. package/cjs/shared/locales/en-US.d.ts +0 -51
  212. package/cjs/shared/locales/en-US.js.map +1 -1
  213. package/cjs/shared/locales/index.d.ts +0 -102
  214. package/cjs/shared/locales/nb-NO.d.ts +0 -51
  215. package/cjs/shared/locales/nb-NO.js +3 -54
  216. package/cjs/shared/locales/nb-NO.js.map +1 -1
  217. package/cjs/shared/types.d.ts +3 -0
  218. package/cjs/shared/types.js.map +1 -1
  219. package/cjs/shared/useLocale.d.ts +8 -1
  220. package/cjs/shared/useLocale.js +24 -11
  221. package/cjs/shared/useLocale.js.map +1 -1
  222. package/cjs/style/core/scopes.scss +1 -1
  223. package/cjs/style/dnb-ui-basis.css +1 -1
  224. package/cjs/style/dnb-ui-basis.min.css +1 -1
  225. package/cjs/style/dnb-ui-body.css +1 -1
  226. package/cjs/style/dnb-ui-body.min.css +1 -1
  227. package/cjs/style/dnb-ui-components.css +48 -29
  228. package/cjs/style/dnb-ui-components.min.css +3 -3
  229. package/cjs/style/dnb-ui-core.css +1 -1
  230. package/cjs/style/dnb-ui-core.min.css +1 -1
  231. package/cjs/style/dnb-ui-extensions.css +36 -27
  232. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  233. package/cjs/style/dnb-ui-forms.css +36 -27
  234. package/cjs/style/dnb-ui-forms.min.css +1 -1
  235. package/cjs/style/dnb-ui-forms.scss +2 -1
  236. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +84 -56
  237. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  238. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.css +36 -27
  239. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  240. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.css +36 -27
  241. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  242. package/cjs/style/themes/theme-eiendom/properties.js +10 -10
  243. package/cjs/style/themes/theme-eiendom/properties.js.map +1 -1
  244. package/cjs/style/themes/theme-sbanken/properties.js +10 -10
  245. package/cjs/style/themes/theme-sbanken/properties.js.map +1 -1
  246. package/cjs/style/themes/theme-sbanken/properties.scss +10 -10
  247. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  248. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  249. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +89 -60
  250. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  251. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.css +36 -27
  252. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  253. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.css +36 -27
  254. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  255. package/cjs/style/themes/theme-ui/properties.js +10 -10
  256. package/cjs/style/themes/theme-ui/properties.js.map +1 -1
  257. package/cjs/style/themes/theme-ui/ui-theme-components.css +84 -56
  258. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  259. package/cjs/style/themes/theme-ui/ui-theme-extensions.css +36 -27
  260. package/cjs/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  261. package/cjs/style/themes/theme-ui/ui-theme-forms.css +36 -27
  262. package/cjs/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  263. package/components/accordion/style/dnb-accordion.css +6 -2
  264. package/components/accordion/style/dnb-accordion.min.css +2 -2
  265. package/components/accordion/style/dnb-accordion.scss +8 -2
  266. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  267. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  268. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  269. package/components/autocomplete/Autocomplete.d.ts +0 -15
  270. package/components/autocomplete/Autocomplete.js +9 -2
  271. package/components/autocomplete/Autocomplete.js.map +1 -1
  272. package/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  273. package/components/autocomplete/AutocompleteDocs.js +285 -0
  274. package/components/autocomplete/AutocompleteDocs.js.map +1 -0
  275. package/components/card/style/dnb-card.css +3 -0
  276. package/components/card/style/dnb-card.min.css +1 -1
  277. package/components/card/style/dnb-card.scss +4 -0
  278. package/components/dropdown/Dropdown.d.ts +0 -3
  279. package/components/input/InputDocs.js +2 -2
  280. package/components/input/InputDocs.js.map +1 -1
  281. package/components/input-masked/InputMaskedUtils.js +10 -7
  282. package/components/input-masked/InputMaskedUtils.js.map +1 -1
  283. package/components/table/style/dnb-table.css +3 -0
  284. package/components/table/style/dnb-table.min.css +1 -1
  285. package/components/table/style/table-th.scss +4 -1
  286. package/components/textarea/Textarea.js +24 -17
  287. package/components/textarea/Textarea.js.map +1 -1
  288. package/es/components/accordion/style/dnb-accordion.css +6 -2
  289. package/es/components/accordion/style/dnb-accordion.min.css +2 -2
  290. package/es/components/accordion/style/dnb-accordion.scss +8 -2
  291. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  292. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  293. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  294. package/es/components/autocomplete/Autocomplete.d.ts +0 -15
  295. package/es/components/autocomplete/Autocomplete.js +9 -2
  296. package/es/components/autocomplete/Autocomplete.js.map +1 -1
  297. package/es/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  298. package/es/components/autocomplete/AutocompleteDocs.js +285 -0
  299. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -0
  300. package/es/components/card/style/dnb-card.css +3 -0
  301. package/es/components/card/style/dnb-card.min.css +1 -1
  302. package/es/components/card/style/dnb-card.scss +4 -0
  303. package/es/components/dropdown/Dropdown.d.ts +0 -3
  304. package/es/components/input/InputDocs.js +2 -2
  305. package/es/components/input/InputDocs.js.map +1 -1
  306. package/es/components/input-masked/InputMaskedUtils.js +10 -7
  307. package/es/components/input-masked/InputMaskedUtils.js.map +1 -1
  308. package/es/components/table/style/dnb-table.css +3 -0
  309. package/es/components/table/style/dnb-table.min.css +1 -1
  310. package/es/components/table/style/table-th.scss +4 -1
  311. package/es/components/textarea/Textarea.js +24 -17
  312. package/es/components/textarea/Textarea.js.map +1 -1
  313. package/es/extensions/forms/DataContext/At/At.js +7 -7
  314. package/es/extensions/forms/DataContext/At/At.js.map +1 -1
  315. package/es/extensions/forms/DataContext/Context.d.ts +7 -3
  316. package/es/extensions/forms/DataContext/Context.js +2 -0
  317. package/es/extensions/forms/DataContext/Context.js.map +1 -1
  318. package/es/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  319. package/es/extensions/forms/DataContext/Provider/Provider.js +55 -28
  320. package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  321. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  322. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  323. package/es/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +6 -9
  324. package/es/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  325. package/es/extensions/forms/Field/Boolean/Boolean.js +5 -7
  326. package/es/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
  327. package/es/extensions/forms/Field/Composition/Composition.d.ts +6 -0
  328. package/es/extensions/forms/Field/Composition/Composition.js +11 -0
  329. package/es/extensions/forms/Field/Composition/Composition.js.map +1 -0
  330. package/es/extensions/forms/Field/Composition/index.d.ts +2 -0
  331. package/es/extensions/forms/Field/Composition/index.js +3 -0
  332. package/es/extensions/forms/Field/Composition/index.js.map +1 -0
  333. package/es/extensions/forms/Field/Currency/Currency.js +4 -4
  334. package/es/extensions/forms/Field/Currency/Currency.js.map +1 -1
  335. package/es/extensions/forms/Field/Date/Date.js +6 -9
  336. package/es/extensions/forms/Field/Date/Date.js.map +1 -1
  337. package/es/extensions/forms/Field/Email/Email.js +6 -9
  338. package/es/extensions/forms/Field/Email/Email.js.map +1 -1
  339. package/es/extensions/forms/Field/Expiry/Expiry.js +25 -14
  340. package/es/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  341. package/es/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +5 -8
  342. package/es/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  343. package/es/extensions/forms/Field/Number/Number.js +8 -7
  344. package/es/extensions/forms/Field/Number/Number.js.map +1 -1
  345. package/es/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +6 -9
  346. package/es/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  347. package/es/extensions/forms/Field/Password/Password.js +5 -8
  348. package/es/extensions/forms/Field/Password/Password.js.map +1 -1
  349. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +1 -1
  350. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js +6 -5
  351. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  352. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.d.ts +1 -1
  353. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +15 -15
  354. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  355. package/es/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  356. package/es/extensions/forms/Field/SelectCountry/SelectCountry.js +6 -5
  357. package/es/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  358. package/es/extensions/forms/Field/String/String.js +9 -9
  359. package/es/extensions/forms/Field/String/String.js.map +1 -1
  360. package/es/extensions/forms/Field/Toggle/Toggle.js +7 -9
  361. package/es/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  362. package/es/extensions/forms/Field/index.d.ts +1 -0
  363. package/es/extensions/forms/Field/index.js +1 -0
  364. package/es/extensions/forms/Field/index.js.map +1 -1
  365. package/es/extensions/forms/FieldBlock/FieldBlock.js +3 -4
  366. package/es/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  367. package/es/extensions/forms/Form/Element/style/dnb-forms-element.css +7 -0
  368. package/es/extensions/forms/Form/Element/style/dnb-forms-element.min.css +1 -0
  369. package/es/extensions/forms/Form/Element/style/dnb-forms-element.scss +9 -0
  370. package/es/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  371. package/es/extensions/forms/Form/Handler/Handler.js +3 -3
  372. package/es/extensions/forms/Form/Handler/Handler.js.map +1 -1
  373. package/es/extensions/forms/Form/SubmitButton/SubmitButton.js +3 -3
  374. package/es/extensions/forms/Form/SubmitButton/SubmitButton.js.map +1 -1
  375. package/es/extensions/forms/Form/SubmitIndicator/style/index.d.ts +1 -1
  376. package/es/extensions/forms/Form/SubmitIndicator/style/index.js +1 -1
  377. package/es/extensions/forms/Form/SubmitIndicator/style/index.js.map +1 -1
  378. package/es/extensions/forms/Form/data-context/useData.js +7 -4
  379. package/es/extensions/forms/Form/data-context/useData.js.map +1 -1
  380. package/es/extensions/forms/Form/data-context/useError.d.ts +1 -0
  381. package/es/extensions/forms/Form/data-context/useError.js +14 -6
  382. package/es/extensions/forms/Form/data-context/useError.js.map +1 -1
  383. package/es/extensions/forms/Form/index.d.ts +1 -0
  384. package/es/extensions/forms/Form/index.js +1 -0
  385. package/es/extensions/forms/Form/index.js.map +1 -1
  386. package/es/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js +4 -6
  387. package/es/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js.map +1 -1
  388. package/es/extensions/forms/Value/Boolean/Boolean.js +4 -6
  389. package/es/extensions/forms/Value/Boolean/Boolean.js.map +1 -1
  390. package/es/extensions/forms/Value/Date/Date.js +4 -6
  391. package/es/extensions/forms/Value/Date/Date.js.map +1 -1
  392. package/es/extensions/forms/Value/Email/Email.js +4 -6
  393. package/es/extensions/forms/Value/Email/Email.js.map +1 -1
  394. package/es/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js +4 -6
  395. package/es/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  396. package/es/extensions/forms/Value/PhoneNumber/PhoneNumber.js +4 -6
  397. package/es/extensions/forms/Value/PhoneNumber/PhoneNumber.js.map +1 -1
  398. package/es/extensions/forms/Wizard/Buttons/Buttons.js +24 -0
  399. package/es/extensions/forms/Wizard/Buttons/Buttons.js.map +1 -0
  400. package/es/extensions/forms/Wizard/Buttons/index.js.map +1 -0
  401. package/es/extensions/forms/Wizard/Container/WizardContainer.d.ts +19 -0
  402. package/es/extensions/forms/{StepsLayout/StepsLayout.js → Wizard/Container/WizardContainer.js} +72 -61
  403. package/es/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -0
  404. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.d.ts +3 -0
  405. package/{extensions/forms/StepsLayout/StepsLayoutDocs.js → es/extensions/forms/Wizard/Container/WizardContainerDocs.js} +6 -6
  406. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -0
  407. package/es/extensions/forms/Wizard/Container/index.d.ts +2 -0
  408. package/es/extensions/forms/Wizard/Container/index.js +3 -0
  409. package/es/extensions/forms/Wizard/Container/index.js.map +1 -0
  410. package/es/extensions/forms/Wizard/Context/WizardContext.d.ts +17 -0
  411. package/es/extensions/forms/Wizard/Context/WizardContext.js +12 -0
  412. package/es/extensions/forms/Wizard/Context/WizardContext.js.map +1 -0
  413. package/es/extensions/forms/Wizard/Context/index.d.ts +2 -0
  414. package/es/extensions/forms/Wizard/Context/index.js +3 -0
  415. package/es/extensions/forms/Wizard/Context/index.js.map +1 -0
  416. package/es/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.js +6 -6
  417. package/es/extensions/forms/Wizard/NextButton/NextButton.js.map +1 -0
  418. package/es/extensions/forms/Wizard/NextButton/index.js.map +1 -0
  419. package/{extensions/forms/StepsLayout → es/extensions/forms/Wizard}/PreviousButton/PreviousButton.js +7 -7
  420. package/es/extensions/forms/Wizard/PreviousButton/PreviousButton.js.map +1 -0
  421. package/es/extensions/forms/Wizard/PreviousButton/index.js.map +1 -0
  422. package/{extensions/forms/StepsLayout → es/extensions/forms/Wizard}/Step/Step.js +3 -3
  423. package/es/extensions/forms/Wizard/Step/Step.js.map +1 -0
  424. package/es/extensions/forms/Wizard/Step/index.js.map +1 -0
  425. package/es/extensions/forms/Wizard/hooks/useNextRouter.d.ts +7 -0
  426. package/es/extensions/forms/Wizard/hooks/useNextRouter.js +42 -0
  427. package/es/extensions/forms/Wizard/hooks/useNextRouter.js.map +1 -0
  428. package/es/extensions/forms/Wizard/hooks/useQueryLocator.d.ts +3 -0
  429. package/es/extensions/forms/Wizard/hooks/useQueryLocator.js +51 -0
  430. package/es/extensions/forms/Wizard/hooks/useQueryLocator.js.map +1 -0
  431. package/es/extensions/forms/Wizard/hooks/useReachRouter.d.ts +6 -0
  432. package/es/extensions/forms/Wizard/hooks/useReachRouter.js +46 -0
  433. package/es/extensions/forms/Wizard/hooks/useReachRouter.js.map +1 -0
  434. package/es/extensions/forms/Wizard/hooks/useReactRouter.d.ts +5 -0
  435. package/es/extensions/forms/Wizard/hooks/useReactRouter.js +37 -0
  436. package/es/extensions/forms/Wizard/hooks/useReactRouter.js.map +1 -0
  437. package/es/extensions/forms/Wizard/hooks/useStep.d.ts +5 -0
  438. package/es/extensions/forms/Wizard/hooks/useStep.js +22 -0
  439. package/es/extensions/forms/Wizard/hooks/useStep.js.map +1 -0
  440. package/es/extensions/forms/Wizard/index.d.ts +13 -0
  441. package/es/extensions/forms/Wizard/index.js +14 -0
  442. package/es/extensions/forms/Wizard/index.js.map +1 -0
  443. package/{cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.css → es/extensions/forms/Wizard/style/dnb-wizard-layout.css} +11 -10
  444. package/es/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -0
  445. package/es/extensions/forms/{StepsLayout/style/dnb-steps-layout.scss → Wizard/style/dnb-wizard-layout.scss} +6 -5
  446. package/es/extensions/forms/Wizard/style/index.d.ts +5 -0
  447. package/es/extensions/forms/Wizard/style/index.js +1 -0
  448. package/es/extensions/forms/Wizard/style/index.js.map +1 -0
  449. package/es/extensions/forms/Wizard/style.js.map +1 -0
  450. package/es/extensions/forms/constants/countries.d.ts +1 -0
  451. package/es/extensions/forms/constants/countries.js.map +1 -1
  452. package/es/extensions/forms/constants/locales/en-GB.d.ts +99 -0
  453. package/es/extensions/forms/constants/locales/en-GB.js +93 -0
  454. package/es/extensions/forms/constants/locales/en-GB.js.map +1 -0
  455. package/es/extensions/forms/constants/locales/en-US.d.ts +93 -0
  456. package/es/extensions/forms/constants/locales/en-US.js +15 -0
  457. package/es/extensions/forms/constants/locales/en-US.js.map +1 -0
  458. package/es/extensions/forms/constants/locales/index.d.ts +183 -0
  459. package/es/extensions/forms/constants/locales/index.js +8 -0
  460. package/es/extensions/forms/constants/locales/index.js.map +1 -0
  461. package/es/extensions/forms/constants/locales/nb-NO.d.ts +99 -0
  462. package/es/extensions/forms/constants/locales/nb-NO.js +93 -0
  463. package/es/extensions/forms/constants/locales/nb-NO.js.map +1 -0
  464. package/es/extensions/forms/hooks/DataValueDocs.js +4 -4
  465. package/es/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  466. package/es/extensions/forms/hooks/useFieldProps.js +92 -65
  467. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  468. package/es/extensions/forms/hooks/useLocale.d.ts +10 -0
  469. package/es/extensions/forms/hooks/useLocale.js +26 -0
  470. package/es/extensions/forms/hooks/useLocale.js.map +1 -0
  471. package/es/extensions/forms/index.d.ts +14 -1
  472. package/es/extensions/forms/index.js +11 -1
  473. package/es/extensions/forms/index.js.map +1 -1
  474. package/es/extensions/forms/style/dnb-forms.css +36 -27
  475. package/es/extensions/forms/style/dnb-forms.min.css +1 -1
  476. package/es/extensions/forms/types.d.ts +2 -0
  477. package/es/extensions/forms/types.js.map +1 -1
  478. package/es/fragments/drawer-list/DrawerList.d.ts +95 -1
  479. package/es/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  480. package/es/fragments/drawer-list/DrawerListDocs.js +180 -0
  481. package/es/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  482. package/es/shared/Context.d.ts +7 -6
  483. package/es/shared/Context.js.map +1 -1
  484. package/es/shared/Eufemia.d.ts +1 -1
  485. package/es/shared/Eufemia.js +2 -2
  486. package/es/shared/Eufemia.js.map +1 -1
  487. package/es/shared/component-helper.d.ts +0 -1
  488. package/es/shared/component-helper.js +0 -1
  489. package/es/shared/component-helper.js.map +1 -1
  490. package/es/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  491. package/es/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  492. package/es/shared/helpers/useSharedState.d.ts +3 -1
  493. package/es/shared/helpers/useSharedState.js.map +1 -1
  494. package/es/shared/locales/en-GB.d.ts +0 -51
  495. package/es/shared/locales/en-GB.js +3 -54
  496. package/es/shared/locales/en-GB.js.map +1 -1
  497. package/es/shared/locales/en-US.d.ts +0 -51
  498. package/es/shared/locales/en-US.js.map +1 -1
  499. package/es/shared/locales/index.d.ts +0 -102
  500. package/es/shared/locales/nb-NO.d.ts +0 -51
  501. package/es/shared/locales/nb-NO.js +3 -54
  502. package/es/shared/locales/nb-NO.js.map +1 -1
  503. package/es/shared/types.d.ts +3 -0
  504. package/es/shared/types.js.map +1 -1
  505. package/es/shared/useLocale.d.ts +8 -1
  506. package/es/shared/useLocale.js +22 -11
  507. package/es/shared/useLocale.js.map +1 -1
  508. package/es/style/core/scopes.scss +1 -1
  509. package/es/style/dnb-ui-basis.css +1 -1
  510. package/es/style/dnb-ui-basis.min.css +1 -1
  511. package/es/style/dnb-ui-body.css +1 -1
  512. package/es/style/dnb-ui-body.min.css +1 -1
  513. package/es/style/dnb-ui-components.css +48 -29
  514. package/es/style/dnb-ui-components.min.css +3 -3
  515. package/es/style/dnb-ui-core.css +1 -1
  516. package/es/style/dnb-ui-core.min.css +1 -1
  517. package/es/style/dnb-ui-extensions.css +36 -27
  518. package/es/style/dnb-ui-extensions.min.css +1 -1
  519. package/es/style/dnb-ui-forms.css +36 -27
  520. package/es/style/dnb-ui-forms.min.css +1 -1
  521. package/es/style/dnb-ui-forms.scss +2 -1
  522. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +84 -56
  523. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  524. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.css +36 -27
  525. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  526. package/es/style/themes/theme-eiendom/eiendom-theme-forms.css +36 -27
  527. package/es/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  528. package/es/style/themes/theme-eiendom/properties.js +10 -10
  529. package/es/style/themes/theme-eiendom/properties.js.map +1 -1
  530. package/es/style/themes/theme-sbanken/properties.js +10 -10
  531. package/es/style/themes/theme-sbanken/properties.js.map +1 -1
  532. package/es/style/themes/theme-sbanken/properties.scss +10 -10
  533. package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  534. package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  535. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +89 -60
  536. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  537. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.css +36 -27
  538. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  539. package/es/style/themes/theme-sbanken/sbanken-theme-forms.css +36 -27
  540. package/es/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  541. package/es/style/themes/theme-ui/properties.js +10 -10
  542. package/es/style/themes/theme-ui/properties.js.map +1 -1
  543. package/es/style/themes/theme-ui/ui-theme-components.css +84 -56
  544. package/es/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  545. package/es/style/themes/theme-ui/ui-theme-extensions.css +36 -27
  546. package/es/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  547. package/es/style/themes/theme-ui/ui-theme-forms.css +36 -27
  548. package/es/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  549. package/esm/dnb-ui-basis.min.mjs +1 -1
  550. package/esm/dnb-ui-components.min.mjs +1 -1
  551. package/esm/dnb-ui-elements.min.mjs +1 -1
  552. package/esm/dnb-ui-extensions.min.mjs +3 -3
  553. package/esm/dnb-ui-lib.min.mjs +1 -1
  554. package/extensions/forms/DataContext/At/At.js +7 -7
  555. package/extensions/forms/DataContext/At/At.js.map +1 -1
  556. package/extensions/forms/DataContext/Context.d.ts +7 -3
  557. package/extensions/forms/DataContext/Context.js +2 -0
  558. package/extensions/forms/DataContext/Context.js.map +1 -1
  559. package/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  560. package/extensions/forms/DataContext/Provider/Provider.js +56 -28
  561. package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  562. package/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  563. package/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  564. package/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +6 -9
  565. package/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  566. package/extensions/forms/Field/Boolean/Boolean.js +5 -7
  567. package/extensions/forms/Field/Boolean/Boolean.js.map +1 -1
  568. package/extensions/forms/Field/Composition/Composition.d.ts +6 -0
  569. package/extensions/forms/Field/Composition/Composition.js +11 -0
  570. package/extensions/forms/Field/Composition/Composition.js.map +1 -0
  571. package/extensions/forms/Field/Composition/index.d.ts +2 -0
  572. package/extensions/forms/Field/Composition/index.js +3 -0
  573. package/extensions/forms/Field/Composition/index.js.map +1 -0
  574. package/extensions/forms/Field/Currency/Currency.js +4 -4
  575. package/extensions/forms/Field/Currency/Currency.js.map +1 -1
  576. package/extensions/forms/Field/Date/Date.js +6 -9
  577. package/extensions/forms/Field/Date/Date.js.map +1 -1
  578. package/extensions/forms/Field/Email/Email.js +6 -9
  579. package/extensions/forms/Field/Email/Email.js.map +1 -1
  580. package/extensions/forms/Field/Expiry/Expiry.js +25 -14
  581. package/extensions/forms/Field/Expiry/Expiry.js.map +1 -1
  582. package/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +5 -8
  583. package/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  584. package/extensions/forms/Field/Number/Number.js +8 -7
  585. package/extensions/forms/Field/Number/Number.js.map +1 -1
  586. package/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +6 -9
  587. package/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  588. package/extensions/forms/Field/Password/Password.js +5 -8
  589. package/extensions/forms/Field/Password/Password.js.map +1 -1
  590. package/extensions/forms/Field/PhoneNumber/PhoneNumber.d.ts +1 -1
  591. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js +6 -5
  592. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  593. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.d.ts +1 -1
  594. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +15 -15
  595. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  596. package/extensions/forms/Field/SelectCountry/SelectCountry.d.ts +2 -2
  597. package/extensions/forms/Field/SelectCountry/SelectCountry.js +6 -5
  598. package/extensions/forms/Field/SelectCountry/SelectCountry.js.map +1 -1
  599. package/extensions/forms/Field/String/String.js +9 -9
  600. package/extensions/forms/Field/String/String.js.map +1 -1
  601. package/extensions/forms/Field/Toggle/Toggle.js +7 -9
  602. package/extensions/forms/Field/Toggle/Toggle.js.map +1 -1
  603. package/extensions/forms/Field/index.d.ts +1 -0
  604. package/extensions/forms/Field/index.js +1 -0
  605. package/extensions/forms/Field/index.js.map +1 -1
  606. package/extensions/forms/FieldBlock/FieldBlock.js +3 -4
  607. package/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  608. package/extensions/forms/Form/Element/style/dnb-forms-element.css +7 -0
  609. package/extensions/forms/Form/Element/style/dnb-forms-element.min.css +1 -0
  610. package/extensions/forms/Form/Element/style/dnb-forms-element.scss +9 -0
  611. package/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  612. package/extensions/forms/Form/Handler/Handler.js +3 -3
  613. package/extensions/forms/Form/Handler/Handler.js.map +1 -1
  614. package/extensions/forms/Form/SubmitButton/SubmitButton.js +3 -3
  615. package/extensions/forms/Form/SubmitButton/SubmitButton.js.map +1 -1
  616. package/extensions/forms/Form/SubmitIndicator/style/index.d.ts +1 -1
  617. package/extensions/forms/Form/SubmitIndicator/style/index.js +1 -1
  618. package/extensions/forms/Form/SubmitIndicator/style/index.js.map +1 -1
  619. package/extensions/forms/Form/data-context/useData.js +7 -4
  620. package/extensions/forms/Form/data-context/useData.js.map +1 -1
  621. package/extensions/forms/Form/data-context/useError.d.ts +1 -0
  622. package/extensions/forms/Form/data-context/useError.js +14 -6
  623. package/extensions/forms/Form/data-context/useError.js.map +1 -1
  624. package/extensions/forms/Form/index.d.ts +1 -0
  625. package/extensions/forms/Form/index.js +1 -0
  626. package/extensions/forms/Form/index.js.map +1 -1
  627. package/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js +4 -6
  628. package/extensions/forms/Value/BankAccountNumber/BankAccountNumber.js.map +1 -1
  629. package/extensions/forms/Value/Boolean/Boolean.js +4 -6
  630. package/extensions/forms/Value/Boolean/Boolean.js.map +1 -1
  631. package/extensions/forms/Value/Date/Date.js +4 -6
  632. package/extensions/forms/Value/Date/Date.js.map +1 -1
  633. package/extensions/forms/Value/Email/Email.js +4 -6
  634. package/extensions/forms/Value/Email/Email.js.map +1 -1
  635. package/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js +4 -6
  636. package/extensions/forms/Value/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  637. package/extensions/forms/Value/PhoneNumber/PhoneNumber.js +4 -6
  638. package/extensions/forms/Value/PhoneNumber/PhoneNumber.js.map +1 -1
  639. package/extensions/forms/Wizard/Buttons/Buttons.js +24 -0
  640. package/extensions/forms/Wizard/Buttons/Buttons.js.map +1 -0
  641. package/extensions/forms/Wizard/Buttons/index.js.map +1 -0
  642. package/extensions/forms/Wizard/Container/WizardContainer.d.ts +19 -0
  643. package/extensions/forms/{StepsLayout/StepsLayout.js → Wizard/Container/WizardContainer.js} +72 -61
  644. package/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -0
  645. package/extensions/forms/Wizard/Container/WizardContainerDocs.d.ts +3 -0
  646. package/{es/extensions/forms/StepsLayout/StepsLayoutDocs.js → extensions/forms/Wizard/Container/WizardContainerDocs.js} +6 -6
  647. package/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -0
  648. package/extensions/forms/Wizard/Container/index.d.ts +2 -0
  649. package/extensions/forms/Wizard/Container/index.js +3 -0
  650. package/extensions/forms/Wizard/Container/index.js.map +1 -0
  651. package/extensions/forms/Wizard/Context/WizardContext.d.ts +17 -0
  652. package/extensions/forms/Wizard/Context/WizardContext.js +12 -0
  653. package/extensions/forms/Wizard/Context/WizardContext.js.map +1 -0
  654. package/extensions/forms/Wizard/Context/index.d.ts +2 -0
  655. package/extensions/forms/Wizard/Context/index.js +3 -0
  656. package/extensions/forms/Wizard/Context/index.js.map +1 -0
  657. package/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.js +6 -6
  658. package/extensions/forms/Wizard/NextButton/NextButton.js.map +1 -0
  659. package/extensions/forms/Wizard/NextButton/index.js.map +1 -0
  660. package/{es/extensions/forms/StepsLayout → extensions/forms/Wizard}/PreviousButton/PreviousButton.js +7 -7
  661. package/extensions/forms/Wizard/PreviousButton/PreviousButton.js.map +1 -0
  662. package/extensions/forms/Wizard/PreviousButton/index.js.map +1 -0
  663. package/{es/extensions/forms/StepsLayout → extensions/forms/Wizard}/Step/Step.js +3 -3
  664. package/extensions/forms/Wizard/Step/Step.js.map +1 -0
  665. package/extensions/forms/Wizard/Step/index.js.map +1 -0
  666. package/extensions/forms/Wizard/hooks/useNextRouter.d.ts +7 -0
  667. package/extensions/forms/Wizard/hooks/useNextRouter.js +43 -0
  668. package/extensions/forms/Wizard/hooks/useNextRouter.js.map +1 -0
  669. package/extensions/forms/Wizard/hooks/useQueryLocator.d.ts +3 -0
  670. package/extensions/forms/Wizard/hooks/useQueryLocator.js +51 -0
  671. package/extensions/forms/Wizard/hooks/useQueryLocator.js.map +1 -0
  672. package/extensions/forms/Wizard/hooks/useReachRouter.d.ts +6 -0
  673. package/extensions/forms/Wizard/hooks/useReachRouter.js +47 -0
  674. package/extensions/forms/Wizard/hooks/useReachRouter.js.map +1 -0
  675. package/extensions/forms/Wizard/hooks/useReactRouter.d.ts +5 -0
  676. package/extensions/forms/Wizard/hooks/useReactRouter.js +38 -0
  677. package/extensions/forms/Wizard/hooks/useReactRouter.js.map +1 -0
  678. package/extensions/forms/Wizard/hooks/useStep.d.ts +5 -0
  679. package/extensions/forms/Wizard/hooks/useStep.js +24 -0
  680. package/extensions/forms/Wizard/hooks/useStep.js.map +1 -0
  681. package/extensions/forms/Wizard/index.d.ts +13 -0
  682. package/extensions/forms/Wizard/index.js +14 -0
  683. package/extensions/forms/Wizard/index.js.map +1 -0
  684. package/{es/extensions/forms/StepsLayout/style/dnb-steps-layout.css → extensions/forms/Wizard/style/dnb-wizard-layout.css} +11 -10
  685. package/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -0
  686. package/{cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.scss → extensions/forms/Wizard/style/dnb-wizard-layout.scss} +6 -5
  687. package/extensions/forms/Wizard/style/index.d.ts +5 -0
  688. package/extensions/forms/Wizard/style/index.js +1 -0
  689. package/extensions/forms/Wizard/style/index.js.map +1 -0
  690. package/extensions/forms/Wizard/style.js.map +1 -0
  691. package/extensions/forms/constants/countries.d.ts +1 -0
  692. package/extensions/forms/constants/countries.js.map +1 -1
  693. package/extensions/forms/constants/locales/en-GB.d.ts +99 -0
  694. package/extensions/forms/constants/locales/en-GB.js +93 -0
  695. package/extensions/forms/constants/locales/en-GB.js.map +1 -0
  696. package/extensions/forms/constants/locales/en-US.d.ts +93 -0
  697. package/extensions/forms/constants/locales/en-US.js +15 -0
  698. package/extensions/forms/constants/locales/en-US.js.map +1 -0
  699. package/extensions/forms/constants/locales/index.d.ts +183 -0
  700. package/extensions/forms/constants/locales/index.js +8 -0
  701. package/extensions/forms/constants/locales/index.js.map +1 -0
  702. package/extensions/forms/constants/locales/nb-NO.d.ts +99 -0
  703. package/extensions/forms/constants/locales/nb-NO.js +93 -0
  704. package/extensions/forms/constants/locales/nb-NO.js.map +1 -0
  705. package/extensions/forms/hooks/DataValueDocs.js +4 -4
  706. package/extensions/forms/hooks/DataValueDocs.js.map +1 -1
  707. package/extensions/forms/hooks/useFieldProps.js +92 -65
  708. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  709. package/extensions/forms/hooks/useLocale.d.ts +10 -0
  710. package/extensions/forms/hooks/useLocale.js +26 -0
  711. package/extensions/forms/hooks/useLocale.js.map +1 -0
  712. package/extensions/forms/index.d.ts +14 -1
  713. package/extensions/forms/index.js +12 -1
  714. package/extensions/forms/index.js.map +1 -1
  715. package/extensions/forms/style/dnb-forms.css +36 -27
  716. package/extensions/forms/style/dnb-forms.min.css +1 -1
  717. package/extensions/forms/types.d.ts +2 -0
  718. package/extensions/forms/types.js.map +1 -1
  719. package/fragments/drawer-list/DrawerList.d.ts +95 -1
  720. package/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  721. package/fragments/drawer-list/DrawerListDocs.js +180 -0
  722. package/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  723. package/package.json +1 -1
  724. package/shared/Context.d.ts +7 -6
  725. package/shared/Context.js.map +1 -1
  726. package/shared/Eufemia.d.ts +1 -1
  727. package/shared/Eufemia.js +2 -2
  728. package/shared/Eufemia.js.map +1 -1
  729. package/shared/component-helper.d.ts +0 -1
  730. package/shared/component-helper.js +0 -1
  731. package/shared/component-helper.js.map +1 -1
  732. package/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  733. package/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  734. package/shared/helpers/useSharedState.d.ts +3 -1
  735. package/shared/helpers/useSharedState.js.map +1 -1
  736. package/shared/locales/en-GB.d.ts +0 -51
  737. package/shared/locales/en-GB.js +3 -54
  738. package/shared/locales/en-GB.js.map +1 -1
  739. package/shared/locales/en-US.d.ts +0 -51
  740. package/shared/locales/en-US.js.map +1 -1
  741. package/shared/locales/index.d.ts +0 -102
  742. package/shared/locales/nb-NO.d.ts +0 -51
  743. package/shared/locales/nb-NO.js +3 -54
  744. package/shared/locales/nb-NO.js.map +1 -1
  745. package/shared/types.d.ts +3 -0
  746. package/shared/types.js.map +1 -1
  747. package/shared/useLocale.d.ts +8 -1
  748. package/shared/useLocale.js +23 -11
  749. package/shared/useLocale.js.map +1 -1
  750. package/style/core/scopes.scss +1 -1
  751. package/style/dnb-ui-basis.css +1 -1
  752. package/style/dnb-ui-basis.min.css +1 -1
  753. package/style/dnb-ui-body.css +1 -1
  754. package/style/dnb-ui-body.min.css +1 -1
  755. package/style/dnb-ui-components.css +48 -29
  756. package/style/dnb-ui-components.min.css +3 -3
  757. package/style/dnb-ui-core.css +1 -1
  758. package/style/dnb-ui-core.min.css +1 -1
  759. package/style/dnb-ui-extensions.css +36 -27
  760. package/style/dnb-ui-extensions.min.css +1 -1
  761. package/style/dnb-ui-forms.css +36 -27
  762. package/style/dnb-ui-forms.min.css +1 -1
  763. package/style/dnb-ui-forms.scss +2 -1
  764. package/style/themes/theme-eiendom/eiendom-theme-components.css +84 -56
  765. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  766. package/style/themes/theme-eiendom/eiendom-theme-extensions.css +36 -27
  767. package/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  768. package/style/themes/theme-eiendom/eiendom-theme-forms.css +36 -27
  769. package/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  770. package/style/themes/theme-eiendom/properties.js +10 -10
  771. package/style/themes/theme-eiendom/properties.js.map +1 -1
  772. package/style/themes/theme-sbanken/properties.js +10 -10
  773. package/style/themes/theme-sbanken/properties.js.map +1 -1
  774. package/style/themes/theme-sbanken/properties.scss +10 -10
  775. package/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  776. package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  777. package/style/themes/theme-sbanken/sbanken-theme-components.css +89 -60
  778. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  779. package/style/themes/theme-sbanken/sbanken-theme-extensions.css +36 -27
  780. package/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  781. package/style/themes/theme-sbanken/sbanken-theme-forms.css +36 -27
  782. package/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  783. package/style/themes/theme-ui/properties.js +10 -10
  784. package/style/themes/theme-ui/properties.js.map +1 -1
  785. package/style/themes/theme-ui/ui-theme-components.css +84 -56
  786. package/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  787. package/style/themes/theme-ui/ui-theme-extensions.css +36 -27
  788. package/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  789. package/style/themes/theme-ui/ui-theme-forms.css +36 -27
  790. package/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  791. package/umd/dnb-ui-basis.min.js +1 -1
  792. package/umd/dnb-ui-components.min.js +1 -1
  793. package/umd/dnb-ui-elements.min.js +1 -1
  794. package/umd/dnb-ui-extensions.min.js +3 -3
  795. package/umd/dnb-ui-lib.min.js +1 -1
  796. package/cjs/extensions/forms/Field/style/index.d.ts +0 -5
  797. package/cjs/extensions/forms/Field/style/index.js +0 -4
  798. package/cjs/extensions/forms/Field/style/index.js.map +0 -1
  799. package/cjs/extensions/forms/StepsLayout/Buttons/Buttons.js +0 -26
  800. package/cjs/extensions/forms/StepsLayout/Buttons/Buttons.js.map +0 -1
  801. package/cjs/extensions/forms/StepsLayout/Buttons/index.js.map +0 -1
  802. package/cjs/extensions/forms/StepsLayout/NextButton/NextButton.js.map +0 -1
  803. package/cjs/extensions/forms/StepsLayout/NextButton/index.js.map +0 -1
  804. package/cjs/extensions/forms/StepsLayout/PreviousButton/PreviousButton.js.map +0 -1
  805. package/cjs/extensions/forms/StepsLayout/PreviousButton/index.js.map +0 -1
  806. package/cjs/extensions/forms/StepsLayout/Step/Step.js.map +0 -1
  807. package/cjs/extensions/forms/StepsLayout/Step/index.js.map +0 -1
  808. package/cjs/extensions/forms/StepsLayout/StepsContext.d.ts +0 -10
  809. package/cjs/extensions/forms/StepsLayout/StepsContext.js.map +0 -1
  810. package/cjs/extensions/forms/StepsLayout/StepsLayout.d.ts +0 -24
  811. package/cjs/extensions/forms/StepsLayout/StepsLayout.js.map +0 -1
  812. package/cjs/extensions/forms/StepsLayout/StepsLayoutDocs.d.ts +0 -3
  813. package/cjs/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +0 -1
  814. package/cjs/extensions/forms/StepsLayout/index.d.ts +0 -3
  815. package/cjs/extensions/forms/StepsLayout/index.js +0 -18
  816. package/cjs/extensions/forms/StepsLayout/index.js.map +0 -1
  817. package/cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +0 -1
  818. package/cjs/extensions/forms/StepsLayout/style/index.d.ts +0 -5
  819. package/cjs/extensions/forms/StepsLayout/style/index.js +0 -4
  820. package/cjs/extensions/forms/StepsLayout/style/index.js.map +0 -1
  821. package/cjs/extensions/forms/StepsLayout/style.js.map +0 -1
  822. package/cjs/extensions/forms/StepsLayout/useStep.d.ts +0 -3
  823. package/cjs/extensions/forms/StepsLayout/useStep.js +0 -19
  824. package/cjs/extensions/forms/StepsLayout/useStep.js.map +0 -1
  825. package/cjs/shared/helpers/useEventEmitter.d.ts +0 -16
  826. package/cjs/shared/helpers/useEventEmitter.js +0 -38
  827. package/cjs/shared/helpers/useEventEmitter.js.map +0 -1
  828. package/es/extensions/forms/Field/style/index.d.ts +0 -5
  829. package/es/extensions/forms/Field/style/index.js +0 -1
  830. package/es/extensions/forms/Field/style/index.js.map +0 -1
  831. package/es/extensions/forms/StepsLayout/Buttons/Buttons.js +0 -18
  832. package/es/extensions/forms/StepsLayout/Buttons/Buttons.js.map +0 -1
  833. package/es/extensions/forms/StepsLayout/Buttons/index.js.map +0 -1
  834. package/es/extensions/forms/StepsLayout/NextButton/NextButton.js.map +0 -1
  835. package/es/extensions/forms/StepsLayout/NextButton/index.js.map +0 -1
  836. package/es/extensions/forms/StepsLayout/PreviousButton/PreviousButton.js.map +0 -1
  837. package/es/extensions/forms/StepsLayout/PreviousButton/index.js.map +0 -1
  838. package/es/extensions/forms/StepsLayout/Step/Step.js.map +0 -1
  839. package/es/extensions/forms/StepsLayout/Step/index.js.map +0 -1
  840. package/es/extensions/forms/StepsLayout/StepsContext.d.ts +0 -10
  841. package/es/extensions/forms/StepsLayout/StepsContext.js +0 -9
  842. package/es/extensions/forms/StepsLayout/StepsContext.js.map +0 -1
  843. package/es/extensions/forms/StepsLayout/StepsLayout.d.ts +0 -24
  844. package/es/extensions/forms/StepsLayout/StepsLayout.js.map +0 -1
  845. package/es/extensions/forms/StepsLayout/StepsLayoutDocs.d.ts +0 -3
  846. package/es/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +0 -1
  847. package/es/extensions/forms/StepsLayout/index.d.ts +0 -3
  848. package/es/extensions/forms/StepsLayout/index.js +0 -4
  849. package/es/extensions/forms/StepsLayout/index.js.map +0 -1
  850. package/es/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +0 -1
  851. package/es/extensions/forms/StepsLayout/style/index.d.ts +0 -5
  852. package/es/extensions/forms/StepsLayout/style/index.js +0 -1
  853. package/es/extensions/forms/StepsLayout/style/index.js.map +0 -1
  854. package/es/extensions/forms/StepsLayout/style.js.map +0 -1
  855. package/es/extensions/forms/StepsLayout/useStep.d.ts +0 -3
  856. package/es/extensions/forms/StepsLayout/useStep.js +0 -12
  857. package/es/extensions/forms/StepsLayout/useStep.js.map +0 -1
  858. package/es/shared/helpers/useEventEmitter.d.ts +0 -16
  859. package/es/shared/helpers/useEventEmitter.js +0 -29
  860. package/es/shared/helpers/useEventEmitter.js.map +0 -1
  861. package/extensions/forms/Field/style/index.d.ts +0 -5
  862. package/extensions/forms/Field/style/index.js +0 -1
  863. package/extensions/forms/Field/style/index.js.map +0 -1
  864. package/extensions/forms/StepsLayout/Buttons/Buttons.js +0 -18
  865. package/extensions/forms/StepsLayout/Buttons/Buttons.js.map +0 -1
  866. package/extensions/forms/StepsLayout/Buttons/index.js.map +0 -1
  867. package/extensions/forms/StepsLayout/NextButton/NextButton.js.map +0 -1
  868. package/extensions/forms/StepsLayout/NextButton/index.js.map +0 -1
  869. package/extensions/forms/StepsLayout/PreviousButton/PreviousButton.js.map +0 -1
  870. package/extensions/forms/StepsLayout/PreviousButton/index.js.map +0 -1
  871. package/extensions/forms/StepsLayout/Step/Step.js.map +0 -1
  872. package/extensions/forms/StepsLayout/Step/index.js.map +0 -1
  873. package/extensions/forms/StepsLayout/StepsContext.d.ts +0 -10
  874. package/extensions/forms/StepsLayout/StepsContext.js +0 -9
  875. package/extensions/forms/StepsLayout/StepsContext.js.map +0 -1
  876. package/extensions/forms/StepsLayout/StepsLayout.d.ts +0 -24
  877. package/extensions/forms/StepsLayout/StepsLayout.js.map +0 -1
  878. package/extensions/forms/StepsLayout/StepsLayoutDocs.d.ts +0 -3
  879. package/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +0 -1
  880. package/extensions/forms/StepsLayout/index.d.ts +0 -3
  881. package/extensions/forms/StepsLayout/index.js +0 -4
  882. package/extensions/forms/StepsLayout/index.js.map +0 -1
  883. package/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +0 -1
  884. package/extensions/forms/StepsLayout/style/index.d.ts +0 -5
  885. package/extensions/forms/StepsLayout/style/index.js +0 -1
  886. package/extensions/forms/StepsLayout/style/index.js.map +0 -1
  887. package/extensions/forms/StepsLayout/style.js.map +0 -1
  888. package/extensions/forms/StepsLayout/useStep.d.ts +0 -3
  889. package/extensions/forms/StepsLayout/useStep.js +0 -13
  890. package/extensions/forms/StepsLayout/useStep.js.map +0 -1
  891. package/shared/helpers/useEventEmitter.d.ts +0 -16
  892. package/shared/helpers/useEventEmitter.js +0 -30
  893. package/shared/helpers/useEventEmitter.js.map +0 -1
  894. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Buttons/Buttons.d.ts +0 -0
  895. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Buttons/index.d.ts +0 -0
  896. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Buttons/index.js +0 -0
  897. /package/cjs/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.d.ts +0 -0
  898. /package/cjs/extensions/forms/{StepsLayout → Wizard}/NextButton/index.d.ts +0 -0
  899. /package/cjs/extensions/forms/{StepsLayout → Wizard}/NextButton/index.js +0 -0
  900. /package/cjs/extensions/forms/{StepsLayout → Wizard}/PreviousButton/PreviousButton.d.ts +0 -0
  901. /package/cjs/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.d.ts +0 -0
  902. /package/cjs/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.js +0 -0
  903. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Step/Step.d.ts +0 -0
  904. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Step/index.d.ts +0 -0
  905. /package/cjs/extensions/forms/{StepsLayout → Wizard}/Step/index.js +0 -0
  906. /package/cjs/extensions/forms/{StepsLayout → Wizard}/style.d.ts +0 -0
  907. /package/cjs/extensions/forms/{StepsLayout → Wizard}/style.js +0 -0
  908. /package/es/extensions/forms/{StepsLayout → Wizard}/Buttons/Buttons.d.ts +0 -0
  909. /package/es/extensions/forms/{StepsLayout → Wizard}/Buttons/index.d.ts +0 -0
  910. /package/es/extensions/forms/{StepsLayout → Wizard}/Buttons/index.js +0 -0
  911. /package/es/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.d.ts +0 -0
  912. /package/es/extensions/forms/{StepsLayout → Wizard}/NextButton/index.d.ts +0 -0
  913. /package/es/extensions/forms/{StepsLayout → Wizard}/NextButton/index.js +0 -0
  914. /package/es/extensions/forms/{StepsLayout → Wizard}/PreviousButton/PreviousButton.d.ts +0 -0
  915. /package/es/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.d.ts +0 -0
  916. /package/es/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.js +0 -0
  917. /package/es/extensions/forms/{StepsLayout → Wizard}/Step/Step.d.ts +0 -0
  918. /package/es/extensions/forms/{StepsLayout → Wizard}/Step/index.d.ts +0 -0
  919. /package/es/extensions/forms/{StepsLayout → Wizard}/Step/index.js +0 -0
  920. /package/es/extensions/forms/{StepsLayout → Wizard}/style.d.ts +0 -0
  921. /package/es/extensions/forms/{StepsLayout → Wizard}/style.js +0 -0
  922. /package/extensions/forms/{StepsLayout → Wizard}/Buttons/Buttons.d.ts +0 -0
  923. /package/extensions/forms/{StepsLayout → Wizard}/Buttons/index.d.ts +0 -0
  924. /package/extensions/forms/{StepsLayout → Wizard}/Buttons/index.js +0 -0
  925. /package/extensions/forms/{StepsLayout → Wizard}/NextButton/NextButton.d.ts +0 -0
  926. /package/extensions/forms/{StepsLayout → Wizard}/NextButton/index.d.ts +0 -0
  927. /package/extensions/forms/{StepsLayout → Wizard}/NextButton/index.js +0 -0
  928. /package/extensions/forms/{StepsLayout → Wizard}/PreviousButton/PreviousButton.d.ts +0 -0
  929. /package/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.d.ts +0 -0
  930. /package/extensions/forms/{StepsLayout → Wizard}/PreviousButton/index.js +0 -0
  931. /package/extensions/forms/{StepsLayout → Wizard}/Step/Step.d.ts +0 -0
  932. /package/extensions/forms/{StepsLayout → Wizard}/Step/index.d.ts +0 -0
  933. /package/extensions/forms/{StepsLayout → Wizard}/Step/index.js +0 -0
  934. /package/extensions/forms/{StepsLayout → Wizard}/style.d.ts +0 -0
  935. /package/extensions/forms/{StepsLayout → Wizard}/style.js +0 -0
@@ -0,0 +1,3 @@
1
+ import { PropertiesTableProps } from '../../shared/types';
2
+ export declare const autocompleteProperties: PropertiesTableProps;
3
+ export declare const AutocompleteEvents: PropertiesTableProps;
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.autocompleteProperties = exports.AutocompleteEvents = void 0;
7
+ const autocompleteProperties = {
8
+ mode: {
9
+ doc: 'If set to `async`, it prevents showing the "no options" message during typing / filtering. Defaults to `sync`.',
10
+ type: 'string',
11
+ status: 'optional'
12
+ },
13
+ input_value: {
14
+ doc: 'Lets you define a custom input value.',
15
+ type: 'string',
16
+ status: 'optional'
17
+ },
18
+ placeholder: {
19
+ doc: 'Use this to define the pre-filled placeholder text in the input. Defaults to `title="Skriv og velg"`.',
20
+ type: 'string',
21
+ status: 'optional'
22
+ },
23
+ title: {
24
+ doc: 'Give a title to let the user know what they have to do. Defaults to `Skriv og få alternativer`.',
25
+ type: 'React.Node',
26
+ status: 'optional'
27
+ },
28
+ disable_filter: {
29
+ doc: 'If set to `true`, word highlighting will still be active, but no options will be filtered out. Defaults to `false`.',
30
+ type: 'boolean',
31
+ status: 'optional'
32
+ },
33
+ disable_highlighting: {
34
+ doc: 'If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.',
35
+ type: 'boolean',
36
+ status: 'optional'
37
+ },
38
+ disable_reorder: {
39
+ doc: 'If set to `true`, reordering of search results will be disabled. Defaults to `false`.',
40
+ type: 'boolean',
41
+ status: 'optional'
42
+ },
43
+ search_numbers: {
44
+ 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`.',
45
+ type: 'boolean',
46
+ status: 'optional'
47
+ },
48
+ search_in_word_index: {
49
+ doc: 'This gives you the possibility to change the threshold number, which defines from what word on we search "inside words". Defaults to `3`.',
50
+ type: 'boolean',
51
+ status: 'optional'
52
+ },
53
+ keep_value: {
54
+ 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`.',
55
+ type: 'boolean',
56
+ status: 'optional'
57
+ },
58
+ keep_selection: {
59
+ doc: 'Use `true` to not remove selected item on input blur, when the input value is empty. Defaults to `false`.',
60
+ type: 'boolean',
61
+ status: 'optional'
62
+ },
63
+ keep_value_and_selection: {
64
+ 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`.',
65
+ type: 'boolean',
66
+ status: 'optional'
67
+ },
68
+ prevent_selection: {
69
+ 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`.',
70
+ type: 'boolean',
71
+ status: 'optional'
72
+ },
73
+ show_clear_button: {
74
+ doc: 'If set to `true`, a clear button is shown inside the input field. Defaults to `false`.',
75
+ type: 'boolean',
76
+ status: 'optional'
77
+ },
78
+ icon: {
79
+ doc: 'To be included in the autocomplete input.',
80
+ type: ['string', 'React.Node'],
81
+ status: 'optional'
82
+ },
83
+ icon_size: {
84
+ doc: 'Change the size of the icon pragmatically.',
85
+ type: 'string',
86
+ status: 'optional'
87
+ },
88
+ icon_position: {
89
+ doc: 'Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.',
90
+ type: 'string',
91
+ status: 'optional'
92
+ },
93
+ input_icon: {
94
+ doc: 'Same as `icon`.',
95
+ type: ['string', 'React.Node'],
96
+ status: 'optional'
97
+ },
98
+ triangle_position: {
99
+ doc: 'Position of icon arrow / triangle the drawer. Set to `left` or `right`. Defaults to `left`.',
100
+ type: 'string',
101
+ status: 'optional'
102
+ },
103
+ size: {
104
+ doc: 'Define the height of the Autocomplete. Can be set to `small`, `default`, `medium` and `large`. Defaults to `default`.',
105
+ type: 'string',
106
+ status: 'optional'
107
+ },
108
+ drawer_class: {
109
+ 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`.',
110
+ type: 'string',
111
+ status: 'optional'
112
+ },
113
+ show_submit_button: {
114
+ doc: 'Use `true` to show a Autocomplete button to toggle the <a href="/uilib/components/fragments/drawer-list">DrawerList</a>. Defaults to `false`.',
115
+ type: 'boolean',
116
+ status: 'optional'
117
+ },
118
+ align_autocomplete: {
119
+ doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',
120
+ type: 'string',
121
+ status: 'optional'
122
+ },
123
+ no_options: {
124
+ doc: 'Text show in the "no options" item. Defaults to `Ingen alternativer`.',
125
+ type: 'boolean',
126
+ status: 'optional'
127
+ },
128
+ aria_live_options: {
129
+ 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`.',
130
+ type: 'React.Node',
131
+ status: 'optional'
132
+ },
133
+ show_all: {
134
+ doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',
135
+ type: 'boolean',
136
+ status: 'optional'
137
+ },
138
+ indicator_label: {
139
+ doc: 'Text show on indicator "options" item. Defaults to `Henter data ...`.',
140
+ type: 'React.Node',
141
+ status: 'optional'
142
+ },
143
+ show_options_sr: {
144
+ 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`.',
145
+ type: 'string',
146
+ status: 'optional'
147
+ },
148
+ selected_sr: {
149
+ doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',
150
+ type: 'string',
151
+ status: 'optional'
152
+ },
153
+ submit_button_title: {
154
+ doc: 'Title on submit button. Defaults to `Vis alternativer`.',
155
+ type: 'React.Node',
156
+ status: 'optional'
157
+ },
158
+ submit_button_icon: {
159
+ doc: 'The icon used in the submit button. Defaults to `chevron_down`.',
160
+ type: ['string', 'React.Element'],
161
+ status: 'optional'
162
+ },
163
+ submit_element: {
164
+ doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from &#39;@dnb/eufemia/components/input/Input&#39;`.',
165
+ type: 'React.Node',
166
+ status: 'optional'
167
+ },
168
+ opened: {
169
+ doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',
170
+ type: 'boolean',
171
+ status: 'optional'
172
+ },
173
+ open_on_focus: {
174
+ doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',
175
+ type: 'boolean',
176
+ status: 'optional'
177
+ },
178
+ stretch: {
179
+ doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',
180
+ type: 'boolean',
181
+ status: 'optional'
182
+ },
183
+ skip_portal: {
184
+ doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',
185
+ type: 'string',
186
+ status: 'optional'
187
+ },
188
+ status: {
189
+ 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.',
190
+ type: 'string',
191
+ status: 'optional'
192
+ },
193
+ status_state: {
194
+ doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',
195
+ type: 'string',
196
+ status: 'optional'
197
+ },
198
+ status_props: {
199
+ doc: 'Use an object to define additional FormStatus properties.',
200
+ type: 'object',
201
+ status: 'optional'
202
+ },
203
+ globalStatus: {
204
+ doc: 'The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.',
205
+ type: 'object',
206
+ status: 'optional'
207
+ },
208
+ label: {
209
+ doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',
210
+ type: 'React.Node',
211
+ status: 'optional'
212
+ },
213
+ label_direction: {
214
+ doc: 'Use `label_direction="vertical"` to change the label layout direction. Defaults to `horizontal`.',
215
+ type: 'React.Node',
216
+ status: 'optional'
217
+ },
218
+ label_sr_only: {
219
+ doc: 'Use `true` to make the label only readable by screen readers.',
220
+ type: 'boolean',
221
+ status: 'optional'
222
+ },
223
+ suffix: {
224
+ 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.',
225
+ type: 'React.Node',
226
+ status: 'optional'
227
+ },
228
+ skeleton: {
229
+ doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
230
+ type: 'boolean',
231
+ status: 'optional'
232
+ },
233
+ input_ref: {
234
+ doc: 'Use a React.Ref to get access to the `input` DOM element.',
235
+ type: 'React.Ref',
236
+ status: 'optional'
237
+ },
238
+ input_element: {
239
+ doc: 'Lets you provide a custom React element as the input HTML element.',
240
+ type: ['string', 'React.Element'],
241
+ status: 'optional'
242
+ },
243
+ '[DrawerList](/uilib/components/fragments/drawer-list/properties)': {
244
+ doc: 'all DrawerList properties.',
245
+ type: 'Various',
246
+ status: 'optional'
247
+ },
248
+ '[Space](/uilib/layout/space/properties)': {
249
+ doc: 'Spacing properties like `top` or `bottom` are supported.',
250
+ type: ['string', 'object'],
251
+ status: 'optional'
252
+ }
253
+ };
254
+ exports.autocompleteProperties = autocompleteProperties;
255
+ const AutocompleteEvents = {
256
+ on_type: {
257
+ doc: 'Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
258
+ type: 'function',
259
+ status: 'optional'
260
+ },
261
+ on_focus: {
262
+ doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
263
+ type: 'function',
264
+ status: 'optional'
265
+ },
266
+ on_blur: {
267
+ doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
268
+ type: 'function',
269
+ status: 'optional'
270
+ },
271
+ on_change: {
272
+ 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 <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
273
+ type: 'function',
274
+ status: 'optional'
275
+ },
276
+ on_select: {
277
+ doc: 'Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>. The "active_item" property is the currently selected item by keyboard navigation',
278
+ type: 'function',
279
+ status: 'optional'
280
+ },
281
+ on_show: {
282
+ doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',
283
+ type: 'function',
284
+ status: 'optional'
285
+ },
286
+ on_hide: {
287
+ doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',
288
+ type: 'function',
289
+ status: 'optional'
290
+ }
291
+ };
292
+ exports.AutocompleteEvents = AutocompleteEvents;
293
+ //# sourceMappingURL=AutocompleteDocs.js.map
@@ -0,0 +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","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","exports","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: PropertiesTableProps = {\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 <a href=\"/uilib/components/fragments/drawer-list\">DrawerList</a>. 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 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 &#39;@dnb/eufemia/components/input/Input&#39;`.',\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: 'string',\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: 'string',\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 <a href=\"/uilib/components/global-status/properties/#configuration-object\">configuration</a> used for the target <a href=\"/uilib/components/global-status\">GlobalStatus</a>.',\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.Ref',\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}\n\nexport const AutocompleteEvents: PropertiesTableProps = {\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 <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\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 <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\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 <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\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 <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>. 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}\n"],"mappings":";;;;;;AAEO,MAAMA,sBAA4C,GAAG;EAC1DC,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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U;IAChBC,MAAM,EAAE;EACV,CAAC;EACDiD,QAAQ,EAAE;IACRnD,GAAG,EAAE,oOAAoO;IACzOC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDkD,OAAO,EAAE;IACPpD,GAAG,EAAE,mOAAmO;IACxOC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDmD,SAAS,EAAE;IACTrD,GAAG,EAAE,iPAAiP;IACtPC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoD,SAAS,EAAE;IACTtD,GAAG,EAAE,8WAA8W;IACnXC,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,CAAC;AAAA8C,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
@@ -61,4 +61,7 @@
61
61
  .dnb-card--filled .dnb-scroll-view {
62
62
  -webkit-clip-path: inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner));
63
63
  clip-path: inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner));
64
+ }
65
+ .dnb-card > .dnb-flex-container > .dnb-space {
66
+ width: 100%;
64
67
  }
@@ -1 +1 @@
1
- .dnb-card__heading{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium)}.dnb-card+.dnb-card__heading{margin-top:var(--spacing-small)}.dnb-card__title{font-size:var(--font-size-small);font-weight:var(--font-weight-medium);padding-bottom:1rem}.dnb-card:not([style*="--space-"]) .dnb-card__title{padding:1rem}.dnb-card.dnb-section{background-color:var(--background-color)}.dnb-card--filled.dnb-card.dnb-section{--background-color:var(--outline-color)}@media screen and (max-width:40em){.dnb-card--responsive.dnb-section:before{--outline:99vw 0 0 0 var(--background-color),198vw 0 0 0 var(--background-color),297vw 0 0 0 var(--background-color),396vw 0 0 0 var(--background-color),0 var(--outline-width) 0 0 var(--outline-color),99vw var(--outline-width) 0 0 var(--outline-color),0 calc(var(--outline-width)*-1) 0 0 var(--outline-color),99vw calc(var(--outline-width)*-1) 0 0 var(--outline-color),198vw var(--outline-width) 0 0 var(--outline-color),198vw calc(var(--outline-width)*-1) 0 0 var(--outline-color);left:var(--left)}.dnb-card+.dnb-card--responsive:not([class*=space__top]){background:linear-gradient(to left,var(--background-color),var(--background-color)) no-repeat 0 var(--outline-width)}.dnb-card+.dnb-card--responsive:not([class*=space__top]):before{top:var(--outline-width)}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive{margin-top:0}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive:before{top:var(--outline-width);z-index:0}}.dnb-card .dnb-flex-container:has(>.dnb-card__title+.dnb-scroll-view){align-items:stretch;flex-wrap:nowrap}.dnb-card--filled .dnb-scroll-view{-webkit-clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner));clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner))}
1
+ .dnb-card__heading{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium)}.dnb-card+.dnb-card__heading{margin-top:var(--spacing-small)}.dnb-card__title{font-size:var(--font-size-small);font-weight:var(--font-weight-medium);padding-bottom:1rem}.dnb-card:not([style*="--space-"]) .dnb-card__title{padding:1rem}.dnb-card.dnb-section{background-color:var(--background-color)}.dnb-card--filled.dnb-card.dnb-section{--background-color:var(--outline-color)}@media screen and (max-width:40em){.dnb-card--responsive.dnb-section:before{--outline:99vw 0 0 0 var(--background-color),198vw 0 0 0 var(--background-color),297vw 0 0 0 var(--background-color),396vw 0 0 0 var(--background-color),0 var(--outline-width) 0 0 var(--outline-color),99vw var(--outline-width) 0 0 var(--outline-color),0 calc(var(--outline-width)*-1) 0 0 var(--outline-color),99vw calc(var(--outline-width)*-1) 0 0 var(--outline-color),198vw var(--outline-width) 0 0 var(--outline-color),198vw calc(var(--outline-width)*-1) 0 0 var(--outline-color);left:var(--left)}.dnb-card+.dnb-card--responsive:not([class*=space__top]){background:linear-gradient(to left,var(--background-color),var(--background-color)) no-repeat 0 var(--outline-width)}.dnb-card+.dnb-card--responsive:not([class*=space__top]):before{top:var(--outline-width)}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive{margin-top:0}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive:before{top:var(--outline-width);z-index:0}}.dnb-card .dnb-flex-container:has(>.dnb-card__title+.dnb-scroll-view){align-items:stretch;flex-wrap:nowrap}.dnb-card--filled .dnb-scroll-view{-webkit-clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner));clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner))}.dnb-card>.dnb-flex-container>.dnb-space{width:100%}
@@ -89,4 +89,8 @@
89
89
  var(--rounded-corner) var(--rounded-corner)
90
90
  );
91
91
  }
92
+
93
+ & > .dnb-flex-container > .dnb-space {
94
+ width: 100%;
95
+ }
92
96
  }
@@ -112,9 +112,6 @@ export default class Dropdown extends React.Component<DropdownProps, any> {
112
112
  static HorizontalItem: ({
113
113
  children
114
114
  }: {
115
- /**
116
- * <em>(required)</em> the data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
117
- */
118
115
  children: React.ReactNode;
119
116
  }) => JSX.Element;
120
117
  render(): JSX.Element;
@@ -57,7 +57,7 @@ const inputProperties = {
57
57
  },
58
58
  icon: {
59
59
  doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',
60
- type: ['string', 'React.Component'],
60
+ type: ['string', 'React.Node'],
61
61
  status: 'optional'
62
62
  },
63
63
  icon_position: {
@@ -97,7 +97,7 @@ const inputProperties = {
97
97
  },
98
98
  suffix: {
99
99
  doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',
100
- type: ['string', 'React.Component'],
100
+ type: ['string', 'React.Node'],
101
101
  status: 'optional'
102
102
  },
103
103
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"InputDocs.js","names":["inputProperties","value","doc","type","status","align","label","label_sr_only","label_direction","status_state","status_props","globalStatus","placeholder","icon","icon_position","icon_size","keep_placeholder","input_class","autocomplete","submit_button_title","suffix","size","selectall","clear","stretch","skeleton","input_attributes","input_state","submit_element","inner_ref","input_element","inner_element","exports"],"sources":["../../../../src/components/input/InputDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputProperties: PropertiesTableProps = {\n value: {\n doc: 'The content value of the input.',\n type: 'string',\n status: 'optional',\n },\n align: {\n doc: 'Defines the text alignment of the input. Can be `left`, `right` or `center`. Defaults to `left`.',\n type: 'string',\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_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\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: 'string',\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: 'string',\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 placeholder: {\n doc: 'The placeholder which shows up once the input value is empty.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',\n type: ['string', 'React.Component'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Defines the position of icon inside the input. Set to `left` or `right`. Defaults to `left` if not set.',\n type: 'string',\n status: 'optional',\n },\n icon_size: {\n doc: 'The icon size of the icon shows. Defaults to `medium`.',\n type: 'string',\n status: 'optional',\n },\n keep_placeholder: {\n doc: 'Set to `true` in case the `placeholder` has to be kept during focus. By default, the placeholder disappears on focus.',\n type: 'boolean',\n status: 'optional',\n },\n input_class: {\n doc: 'In case we have to set a custom input class.',\n type: 'string',\n status: 'optional',\n },\n type: {\n doc: 'Choose between `text`, `number`, `email`, `password`, `url`, `tel` and `search`.',\n type: 'string',\n status: 'optional',\n },\n autocomplete: {\n doc: 'Defaults to `off`. Set to `on` or any of [allowed `attributes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete). Keep in mind, 1. you may have to define a `name`, 2. have the input as a descendant of a `<form>` element, 3. and have a submit button inside the form.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title attribute for the search icon. Only relevant if search input.',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',\n type: ['string', 'React.Component'],\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`. Also, if you define a number like `size={2}` then it will be forwarded as the input element attribute.',\n type: ['string', 'number'],\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 clear: {\n doc: 'If set to `true`, then a clear button will be shown which lets the user clear any given input value.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the input field will be 100% in `width`.',\n type: 'boolean',\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_attributes: {\n doc: 'Provide the Input element with any attributes by using an Object `input_attributes={{size:\\'2\\'}}` or a JSON Object `input_attributes=\\'{\"size\":\"2\"}\\'`. **NB:** Keep in mind, that also every not listed component property will be sent along and set as an Input element attribute.',\n type: 'object',\n status: 'optional',\n },\n input_state: {\n doc: 'Defines a custom visual state of the input. Use it only if you have to simulate a custom state. Currently are three statuses `virgin` , `focus` and `dirty`. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n submit_element: {\n doc: 'Accepts a React element which will show up like the \"submit button\" would do on `type=\"search\"`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n inner_ref: {\n doc: 'By providing a React.ref we can get the internally used input element (DOM). E.g. `inner_ref={myRef}` by using `React.createRef()` or `React.useRef()`.',\n type: 'React.Ref',\n status: 'optional',\n },\n input_element: {\n doc: 'By providing a new component we can change the internally used element. Also supports a string only, like `input_element=\"input\"`.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n inner_element: {\n doc: 'By providing a new component to be rendered inside the \"shell\" – we can add a freely customizable internal element. Used by the Autocomplete component.',\n type: ['string', 'React.Element'],\n status: 'internal',\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"],"mappings":";;;;;;AAEO,MAAMA,eAAqC,GAAG;EACnDC,KAAK,EAAE;IACLC,GAAG,EAAE,iCAAiC;IACtCC,IAAI,EAAE,QAAQ;IACdC,MA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,GAAG,EAAE,wRAAwR;IAC7RC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDuB,WAAW,EAAE;IACXzB,GAAG,EAAE,kLAAkL;IACvLC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDwB,cAAc,EAAE;IACd1B,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACDyB,SAAS,EAAE;IACT3B,GAAG,EAAE,yJAAyJ;IAC9JC,IAAI,EAAE,WAAW;IACjBC,MAAM,EAAE;EACV,CAAC;EACD0B,aAAa,EAAE;IACb5B,GAAG,EAAE,oIAAoI;IACzIC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACD2B,aAAa,EAAE;IACb7B,GAAG,EAAE,yJAAyJ;IAC9JC,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CAAC;IACjCC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC;AAAA4B,OAAA,CAAAhC,eAAA,GAAAA,eAAA"}
1
+ {"version":3,"file":"InputDocs.js","names":["inputProperties","value","doc","type","status","align","label","label_sr_only","label_direction","status_state","status_props","globalStatus","placeholder","icon","icon_position","icon_size","keep_placeholder","input_class","autocomplete","submit_button_title","suffix","size","selectall","clear","stretch","skeleton","input_attributes","input_state","submit_element","inner_ref","input_element","inner_element","exports"],"sources":["../../../../src/components/input/InputDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputProperties: PropertiesTableProps = {\n value: {\n doc: 'The content value of the input.',\n type: 'string',\n status: 'optional',\n },\n align: {\n doc: 'Defines the text alignment of the input. Can be `left`, `right` or `center`. Defaults to `left`.',\n type: 'string',\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_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\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: 'string',\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: 'string',\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 placeholder: {\n doc: 'The placeholder which shows up once the input value is empty.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Defines the position of icon inside the input. Set to `left` or `right`. Defaults to `left` if not set.',\n type: 'string',\n status: 'optional',\n },\n icon_size: {\n doc: 'The icon size of the icon shows. Defaults to `medium`.',\n type: 'string',\n status: 'optional',\n },\n keep_placeholder: {\n doc: 'Set to `true` in case the `placeholder` has to be kept during focus. By default, the placeholder disappears on focus.',\n type: 'boolean',\n status: 'optional',\n },\n input_class: {\n doc: 'In case we have to set a custom input class.',\n type: 'string',\n status: 'optional',\n },\n type: {\n doc: 'Choose between `text`, `number`, `email`, `password`, `url`, `tel` and `search`.',\n type: 'string',\n status: 'optional',\n },\n autocomplete: {\n doc: 'Defaults to `off`. Set to `on` or any of [allowed `attributes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete). Keep in mind, 1. you may have to define a `name`, 2. have the input as a descendant of a `<form>` element, 3. and have a submit button inside the form.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title attribute for the search icon. Only relevant if search input.',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n size: {\n doc: 'The sizes you can choose is `default` (2rem), `medium` (2.5rem) and `large` (3rem) are supported component sizes. Defaults to `default` / `null`. Also, if you define a number like `size={2}` then it will be forwarded as the input element attribute.',\n type: ['string', 'number'],\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 clear: {\n doc: 'If set to `true`, then a clear button will be shown which lets the user clear any given input value.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the input field will be 100% in `width`.',\n type: 'boolean',\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_attributes: {\n doc: 'Provide the Input element with any attributes by using an Object `input_attributes={{size:\\'2\\'}}` or a JSON Object `input_attributes=\\'{\"size\":\"2\"}\\'`. **NB:** Keep in mind, that also every not listed component property will be sent along and set as an Input element attribute.',\n type: 'object',\n status: 'optional',\n },\n input_state: {\n doc: 'Defines a custom visual state of the input. Use it only if you have to simulate a custom state. Currently are three statuses `virgin` , `focus` and `dirty`. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n submit_element: {\n doc: 'Accepts a React element which will show up like the \"submit button\" would do on `type=\"search\"`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n inner_ref: {\n doc: 'By providing a React.ref we can get the internally used input element (DOM). E.g. `inner_ref={myRef}` by using `React.createRef()` or `React.useRef()`.',\n type: 'React.Ref',\n status: 'optional',\n },\n input_element: {\n doc: 'By providing a new component we can change the internally used element. Also supports a string only, like `input_element=\"input\"`.',\n type: ['string', 'React.Element'],\n status: 'internal',\n },\n inner_element: {\n doc: 'By providing a new component to be rendered inside the \"shell\" – we can add a freely customizable internal element. Used by the Autocomplete component.',\n type: ['string', 'React.Element'],\n status: 'internal',\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"],"mappings":";;;;;;AAEO,MAAMA,eAAqC,GAAG;EACnDC,KAAK,EAAE;IACLC,GAAG,EAAE,iCAAiC;IACtCC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,KAAK,EAAE;IACLJ,GAAG,EAAE,kFAAkF;IACvFC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDG,aAAa,EAAE;IACbL,GAAG,EAAE,+DAA+D;IACpEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDI,eAAe,EAAE;IACfN,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDA,MAAM,EAAE;IACNF,GAAG,EAAE,yIAAyI;IAC9IC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,YAAY,EAAE;IACZP,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDM,YAAY,EAAE;IACZR,GAAG,EAAE,2DAA2D;IAChEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDO,YAAY,EAAE;IACZT,GAAG,EAAE,4JAA4J;IACj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C1BC,MAAM,EAAE;EACV;AACF,CAAC;AAAA4B,OAAA,CAAAhC,eAAA,GAAAA,eAAA"}
@@ -80,12 +80,15 @@ const correctNumberValue = _ref3 => {
80
80
  if (localValue !== null) {
81
81
  const localNumberValue = localValue.replace(/[^\d,.-]/g, '');
82
82
  const numberValue = value.replace(/[^\d,.-]/g, '');
83
- const endsWithDecimal = localNumberValue.endsWith(decimalSymbol);
84
- const endsWithZeroAndDecimal = localNumberValue.endsWith(`${decimalSymbol}0`);
85
- if (endsWithDecimal) {
86
- value = `${value}${decimalSymbol}`;
87
- } else if (endsWithZeroAndDecimal && !numberValue.endsWith(`${decimalSymbol}0`)) {
88
- value = `${value}${decimalSymbol}0`;
83
+ const valueHasDecimal = numberValue.includes(decimalSymbol);
84
+ if (!valueHasDecimal) {
85
+ const endsWithDecimal = localNumberValue.endsWith(decimalSymbol);
86
+ const endsWithZeroAndDecimal = localNumberValue.endsWith(`${decimalSymbol}0`);
87
+ if (endsWithDecimal) {
88
+ value = `${value}${decimalSymbol}`;
89
+ } else if (endsWithZeroAndDecimal && !numberValue.endsWith(`${decimalSymbol}0`)) {
90
+ value = `${value}${decimalSymbol}0`;
91
+ }
89
92
  }
90
93
  if (localNumberValue !== '0' && localNumberValue.startsWith('0') && parseFloat(numberValue.replace(decimalSymbol, '.')) === parseFloat(localNumberValue.replace(decimalSymbol, '.'))) {
91
94
  value = localValue;
@@ -141,7 +144,7 @@ const correctCaretPosition = (element, maskParams, props) => {
141
144
  for (let n = i + 1; n < l; n++) {
142
145
  var _mask$test;
143
146
  const mask = props.mask[n];
144
- if ((mask === null || mask === void 0 ? void 0 : (_mask$test = mask.test) === null || _mask$test === void 0 ? void 0 : _mask$test.call(mask, mask)) === false) {
147
+ if (mask !== null && mask !== void 0 && (_mask$test = mask.test) !== null && _mask$test !== void 0 && _mask$test.call(mask, char)) {
145
148
  (0, _createTextMaskInputElement.safeSetSelection)(element, n);
146
149
  break;
147
150
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InputMaskedUtils.js","names":["_NumberUtils","require","_componentHelper","_helpers","_createTextMaskInputElement","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","enableLocaleSupportWhen","enableNumberMaskWhen","invisibleSpace","exports","isRequestingLocaleSupport","props","entries","some","_ref","k","v","includes","isRequestingNumberMask","_ref2","correctNumberValue","_ref3","localValue","locale","maskParams","isNaN","parseFloat","decimalPos","indexOf","integerLimit","limit","integers","split","isNegative","decimals","slice","shouldHaveDecimals","allowDecimal","decimalLimit","number_format","options","format","decimalSymbol","replace","localNumberValue","numberValue","endsWithDecimal","endsWith","endsWithZeroAndDecimal","startsWith","test","correctCaretPosition","element","correction","suffix","prefix","start","selectionStart","end","selectionEnd","suffixStart","suffixEnd","pos","placeholderChar","prefixStart","prefixEnd","char","safeSetSelection","mask","chars","l","RegExp","n","_mask$test","e","warn","window","requestAnimationFrame","handlePercentMask","_ref4","_String","_String$match","percent","match","handleCurrencyMask","_ref5","mask_options","currency_mask","showMask","fix","currency","handleNumberMask","_ref6","number_mask","getSoftKeyboardAttributes","instanceOf","IS_IOS","allowNegative","inputMode","handleThousandsSeparator","getThousandsSeparator","handleDecimalSeparator","getDecimalSeparator","fromJSON","str","fallback","JSON","parse"],"sources":["../../../../src/components/input-masked/InputMaskedUtils.js"],"sourcesContent":["/**\n * Web InputMasked Component\n *\n */\n\nimport {\n format,\n getDecimalSeparator,\n getThousandsSeparator,\n} from '../number-format/NumberUtils'\nimport { warn } from '../../shared/component-helper'\nimport { IS_IOS } from '../../shared/helpers'\nimport { safeSetSelection } from './text-mask/createTextMaskInputElement'\n\nconst enableLocaleSupportWhen = ['as_number', 'as_percent', 'as_currency']\nconst enableNumberMaskWhen = [\n 'as_number',\n 'as_percent',\n 'as_currency',\n 'number_mask',\n 'currency_mask',\n]\n\nexport const invisibleSpace = '\\u200B'\n\n/**\n * Will return true if a prop needs Locale support\n *\n * @param {object} props object with given component props\n * @returns boolean\n */\nexport const isRequestingLocaleSupport = (props) => {\n return Object.entries(props).some(\n ([k, v]) => v && enableLocaleSupportWhen.includes(k)\n )\n}\n\n/**\n * Will return true if a prop will enable the internal NumberMask\n *\n * @param {object} props object with given component props\n * @returns boolean\n */\nexport const isRequestingNumberMask = (props) => {\n return Object.entries(props).some(\n ([k, v]) => v && enableNumberMaskWhen.includes(k)\n )\n}\n\n/**\n * Probably the most complex part of this component\n * It will modify a given value based on certain criteria's\n *\n * @param {object} param0 object with properties\n * @property {string} localValue optional – if given, it will uses its ending to determine of what to return\n * @property {number|string} value component property value\n * @property {object} context Eufemia Context\n * @property {string} locale Eufemia locale (either from component or context)\n * @property {object} maskParams predefined mask parameters\n * @returns string Value\n */\nexport const correctNumberValue = ({\n localValue = null,\n props,\n locale,\n maskParams,\n}) => {\n let value = props.value === null ? null : String(props.value)\n\n if (isNaN(parseFloat(value))) {\n return value\n }\n\n const decimalPos = value.indexOf('.')\n\n if (\n maskParams.integerLimit &&\n typeof maskParams.integerLimit === 'number'\n ) {\n const limit = maskParams.integerLimit\n const integers = value.split('.')[0]\n const isNegative = parseFloat(integers) < 0\n if (integers.length - (isNegative ? 1 : 0) > limit) {\n const decimals = decimalPos > 0 ? value.slice(decimalPos) : ''\n value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals\n }\n }\n\n const shouldHaveDecimals =\n maskParams.allowDecimal ||\n (maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false)\n\n if (!shouldHaveDecimals) {\n if (decimalPos > -1) {\n value = value.slice(0, decimalPos)\n }\n }\n\n /**\n * This only runs IF \"number_format\" is set – we do not use it else\n */\n if (props.number_format) {\n const options = {\n locale,\n decimals: 0,\n ...props.number_format,\n }\n if (shouldHaveDecimals) {\n options.decimals = maskParams.decimalLimit\n }\n value = format(value, options)\n }\n\n const decimalSymbol = maskParams.decimalSymbol\n value = value.replace('.', decimalSymbol)\n\n if (localValue !== null) {\n const localNumberValue = localValue.replace(/[^\\d,.-]/g, '')\n const numberValue = value.replace(/[^\\d,.-]/g, '')\n\n const endsWithDecimal = localNumberValue.endsWith(decimalSymbol)\n const endsWithZeroAndDecimal = localNumberValue.endsWith(\n `${decimalSymbol}0`\n )\n\n if (endsWithDecimal) {\n value = `${value}${decimalSymbol}`\n } else if (\n endsWithZeroAndDecimal &&\n !numberValue.endsWith(`${decimalSymbol}0`)\n ) {\n /**\n * When the users has 20,02, then hits \"backspace\",\n * the returned {numberValue} in the onChange event would then be \"20\",\n * but we want it to be 20,0\n */\n value = `${value}${decimalSymbol}0`\n }\n\n /**\n * If the user removes a leading digit and we have left a leading zero.\n *\n * The users enters these steps:\n * Step 1. 1012\n * Step 2. 012 -> user removes 1, now use \"localValue\"\n * Step 3. 2012\n *\n * If a dev listens on_change and sends the number value back in,\n * for this, we also ensure that \"numberValue\" and \"localNumberValue\" is the same.\n */\n if (\n localNumberValue !== '0' &&\n localNumberValue.startsWith('0') &&\n parseFloat(numberValue.replace(decimalSymbol, '.')) ===\n parseFloat(localNumberValue.replace(decimalSymbol, '.'))\n ) {\n value = localValue\n }\n\n /**\n * While typing;\n * If the local value is - or -0 we use it.\n * Also, because of invisible whitespace we remove everything else\n */\n if (/^(-|-0)$/.test(localValue.replace(/[^\\d-0]/g, ''))) {\n value = localValue\n } else if (localNumberValue === '' && numberValue === '0') {\n value = ''\n }\n }\n\n return value\n}\n\n/**\n * This is a helper for setting the cursor position,\n * when it is on a not allowed position\n *\n * @param {Element} element Input Element\n * @param {Object} maskParams Mask parameters, containing eventually suffix or prefix\n */\nexport const correctCaretPosition = (element, maskParams, props) => {\n const correction = () => {\n try {\n const suffix = maskParams?.suffix\n const prefix = maskParams?.prefix\n\n const start = element.selectionStart\n const end = element.selectionEnd\n\n if (start !== end) {\n return // stop here\n }\n\n if (suffix || prefix) {\n const suffixStart = element.value.indexOf(suffix)\n const suffixEnd = suffixStart + suffix?.length\n let pos = undefined\n\n if (start >= suffixStart && start <= suffixEnd) {\n pos = suffixStart\n\n // If there is a placeholder,\n // and the user clicks after the suffix\n // we want the position to be \"before\" the placeholderChar\n if (\n maskParams.placeholderChar !== invisibleSpace &&\n element.value.length - 1 === String(suffix + prefix).length\n ) {\n pos = pos - 1\n }\n } else {\n const prefixStart = element.value.indexOf(prefix)\n const prefixEnd = prefixStart + prefix?.length || 0\n\n if (start >= prefixStart && start <= prefixEnd) {\n pos = prefixEnd\n }\n }\n\n const char = element.value.slice(pos - 1, pos)\n if (char === invisibleSpace) {\n pos = suffixStart - 1\n }\n\n if (!isNaN(parseFloat(pos))) {\n safeSetSelection(element, pos)\n }\n } else if (props?.mask && element.value.length === end) {\n const chars = element.value.split('')\n\n for (let l = chars.length, i = l - 1; i >= 0; i--) {\n const char = chars[i]\n const mask = props.mask[i]\n if (\n char &&\n char !== invisibleSpace &&\n mask instanceof RegExp &&\n mask.test(char)\n ) {\n for (let n = i + 1; n < l; n++) {\n const mask = props.mask[n]\n if (mask?.test?.(mask) === false) {\n safeSetSelection(element, n)\n break\n }\n }\n\n break\n }\n }\n }\n } catch (e) {\n warn(e)\n }\n }\n\n if (typeof window !== 'undefined') {\n window.requestAnimationFrame(correction)\n }\n}\n\n/**\n * Manipulate needed mask for handle: percent\n *\n * @param {object} param0 object with properties\n * @property {object} props Component property\n * @property {string} locale Eufemia locale (either from component or context)\n * @property {object} maskParams predefined mask parameters\n * @returns object maskParams\n */\nexport const handlePercentMask = ({ props, locale, maskParams }) => {\n const value = format(props.value, { locale, percent: true })\n maskParams.suffix = String(value)?.match(/((\\s|)%)$/g, '$1')?.[0] || ' %'\n\n return maskParams\n}\n\n/**\n * Return needed mask for handle: currency\n *\n * @param {object} param0 object with properties\n * @property {object} context Eufemia context\n * @property {object} mask_options Component property for change the mask parameters\n * @property {object} currency_mask Component property for change the currency parameters\n * @returns object maskParams\n */\nexport const handleCurrencyMask = ({ mask_options, currency_mask }) => {\n const maskParams = {\n showMask: true,\n placeholderChar: null,\n allowDecimal: true,\n decimalLimit: 2,\n decimalSymbol: ',',\n ...mask_options,\n ...currency_mask,\n }\n\n const fix =\n typeof currency_mask === 'string'\n ? currency_mask\n : typeof maskParams.currency === 'string'\n ? maskParams.currency\n : 'kr'\n\n maskParams.suffix = ` ${fix}`\n\n return maskParams\n}\n\n/**\n * Return needed mask for handle: number\n *\n * @param {object} param0 object with properties\n * @property {object} context Eufemia context\n * @property {object} mask_options Component property for change the mask parameters\n * @property {object} number_mask Component property for change the number parameters\n * @returns object maskParams\n */\nexport const handleNumberMask = ({ mask_options, number_mask }) => {\n const maskParams = {\n decimalSymbol: ',',\n ...mask_options,\n ...number_mask,\n }\n\n if (typeof maskParams.allowDecimal === 'undefined') {\n maskParams.allowDecimal = maskParams.decimalLimit > 0\n }\n\n return maskParams\n}\n\n/**\n * Returns the type of what inputMode or type attribute should be used\n *\n * @param {function} mask mask function\n * @returns undefined|decimal|numeric\n */\nexport function getSoftKeyboardAttributes(mask) {\n if (mask?.instanceOf !== 'createNumberMask') {\n return undefined\n }\n\n const maskParams = mask?.maskParams\n\n // because of the missing minus key, we still have to use text on iOS\n if (IS_IOS && maskParams?.allowNegative !== false) {\n return undefined\n }\n\n return {\n inputMode:\n maskParams.allowDecimal && maskParams.decimalLimit !== 0\n ? 'decimal'\n : 'numeric',\n }\n}\n\n/**\n * Returns the thousands separator character\n *\n * @param {string} locale Component or context locale\n * @returns string\n */\nexport function handleThousandsSeparator(locale) {\n return getThousandsSeparator(locale).replace(' ', ' ') // replace non-breaking space with a regular space\n}\n\n/**\n * Returns the decimal separator character\n *\n * @param {string} locale Component or context locale\n * @returns string\n */\nexport function handleDecimalSeparator(locale) {\n let decimalSymbol = getDecimalSeparator(locale)\n\n return decimalSymbol\n}\n\n/**\n * Will take a JSON and return it parsed\n *\n * @param {string} str\n * @param {*} fallback optional fallback\n * @returns parsed json\n */\nexport function fromJSON(str, fallback = null) {\n if (typeof str === 'string' && str[0] === '{') {\n return JSON.parse(str)\n }\n\n return str || fallback\n}\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAAyE,SAAAI,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,IAAAC,eAAA,CAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAoB,cAAA,CAAAV,MAAA,EAAAM,GAAA,EAAAhB,MAA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mB;EAAA,IAAjBC,QAAQ,GAAA9H,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAsB,SAAA,GAAAtB,SAAA,MAAG,IAAI;EAC3C,IAAI,OAAO6H,GAAG,KAAK,QAAQ,IAAIA,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IAC7C,OAAOE,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;EACxB;EAEA,OAAOA,GAAG,IAAIC,QAAQ;AACxB"}
1
+ {"version":3,"file":"InputMaskedUtils.js","names":["_NumberUtils","require","_componentHelper","_helpers","_createTextMaskInputElement","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","enableLocaleSupportWhen","enableNumberMaskWhen","invisibleSpace","exports","isRequestingLocaleSupport","props","entries","some","_ref","k","v","includes","isRequestingNumberMask","_ref2","correctNumberValue","_ref3","localValue","locale","maskParams","isNaN","parseFloat","decimalPos","indexOf","integerLimit","limit","integers","split","isNegative","decimals","slice","shouldHaveDecimals","allowDecimal","decimalLimit","number_format","options","format","decimalSymbol","replace","localNumberValue","numberValue","valueHasDecimal","endsWithDecimal","endsWith","endsWithZeroAndDecimal","startsWith","test","correctCaretPosition","element","correction","suffix","prefix","start","selectionStart","end","selectionEnd","suffixStart","suffixEnd","pos","placeholderChar","prefixStart","prefixEnd","char","safeSetSelection","mask","chars","l","RegExp","n","_mask$test","e","warn","window","requestAnimationFrame","handlePercentMask","_ref4","_String","_String$match","percent","match","handleCurrencyMask","_ref5","mask_options","currency_mask","showMask","fix","currency","handleNumberMask","_ref6","number_mask","getSoftKeyboardAttributes","instanceOf","IS_IOS","allowNegative","inputMode","handleThousandsSeparator","getThousandsSeparator","handleDecimalSeparator","getDecimalSeparator","fromJSON","str","fallback","JSON","parse"],"sources":["../../../../src/components/input-masked/InputMaskedUtils.js"],"sourcesContent":["/**\n * Web InputMasked Component\n *\n */\n\nimport {\n format,\n getDecimalSeparator,\n getThousandsSeparator,\n} from '../number-format/NumberUtils'\nimport { warn } from '../../shared/component-helper'\nimport { IS_IOS } from '../../shared/helpers'\nimport { safeSetSelection } from './text-mask/createTextMaskInputElement'\n\nconst enableLocaleSupportWhen = ['as_number', 'as_percent', 'as_currency']\nconst enableNumberMaskWhen = [\n 'as_number',\n 'as_percent',\n 'as_currency',\n 'number_mask',\n 'currency_mask',\n]\n\nexport const invisibleSpace = '\\u200B'\n\n/**\n * Will return true if a prop needs Locale support\n *\n * @param {object} props object with given component props\n * @returns boolean\n */\nexport const isRequestingLocaleSupport = (props) => {\n return Object.entries(props).some(\n ([k, v]) => v && enableLocaleSupportWhen.includes(k)\n )\n}\n\n/**\n * Will return true if a prop will enable the internal NumberMask\n *\n * @param {object} props object with given component props\n * @returns boolean\n */\nexport const isRequestingNumberMask = (props) => {\n return Object.entries(props).some(\n ([k, v]) => v && enableNumberMaskWhen.includes(k)\n )\n}\n\n/**\n * Probably the most complex part of this component\n * It will modify a given value based on certain criteria's\n *\n * @param {object} param0 object with properties\n * @property {string} localValue optional – if given, it will uses its ending to determine of what to return\n * @property {number|string} value component property value\n * @property {object} context Eufemia Context\n * @property {string} locale Eufemia locale (either from component or context)\n * @property {object} maskParams predefined mask parameters\n * @returns string Value\n */\nexport const correctNumberValue = ({\n localValue = null,\n props,\n locale,\n maskParams,\n}) => {\n let value = props.value === null ? null : String(props.value)\n\n if (isNaN(parseFloat(value))) {\n return value\n }\n\n const decimalPos = value.indexOf('.')\n\n if (\n maskParams.integerLimit &&\n typeof maskParams.integerLimit === 'number'\n ) {\n const limit = maskParams.integerLimit\n const integers = value.split('.')[0]\n const isNegative = parseFloat(integers) < 0\n if (integers.length - (isNegative ? 1 : 0) > limit) {\n const decimals = decimalPos > 0 ? value.slice(decimalPos) : ''\n value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals\n }\n }\n\n const shouldHaveDecimals =\n maskParams.allowDecimal ||\n (maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false)\n\n if (!shouldHaveDecimals) {\n if (decimalPos > -1) {\n value = value.slice(0, decimalPos)\n }\n }\n\n /**\n * This only runs IF \"number_format\" is set – we do not use it else\n */\n if (props.number_format) {\n const options = {\n locale,\n decimals: 0,\n ...props.number_format,\n }\n if (shouldHaveDecimals) {\n options.decimals = maskParams.decimalLimit\n }\n value = format(value, options)\n }\n\n const decimalSymbol = maskParams.decimalSymbol\n value = value.replace('.', decimalSymbol)\n\n if (localValue !== null) {\n const localNumberValue = localValue.replace(/[^\\d,.-]/g, '')\n const numberValue = value.replace(/[^\\d,.-]/g, '')\n const valueHasDecimal = numberValue.includes(decimalSymbol)\n\n if (!valueHasDecimal) {\n const endsWithDecimal = localNumberValue.endsWith(decimalSymbol)\n const endsWithZeroAndDecimal = localNumberValue.endsWith(\n `${decimalSymbol}0`\n )\n\n if (endsWithDecimal) {\n value = `${value}${decimalSymbol}`\n } else if (\n endsWithZeroAndDecimal &&\n !numberValue.endsWith(`${decimalSymbol}0`)\n ) {\n /**\n * When the users has 20,02, then hits \"backspace\",\n * the returned {numberValue} in the onChange event would then be \"20\",\n * but we want it to be 20,0\n */\n value = `${value}${decimalSymbol}0`\n }\n }\n\n /**\n * If the user removes a leading digit and we have left a leading zero.\n *\n * The users enters these steps:\n * Step 1. 1012\n * Step 2. 012 -> user removes 1, now use \"localValue\"\n * Step 3. 2012\n *\n * If a dev listens on_change and sends the number value back in,\n * for this, we also ensure that \"numberValue\" and \"localNumberValue\" is the same.\n */\n if (\n localNumberValue !== '0' &&\n localNumberValue.startsWith('0') &&\n parseFloat(numberValue.replace(decimalSymbol, '.')) ===\n parseFloat(localNumberValue.replace(decimalSymbol, '.'))\n ) {\n value = localValue\n }\n\n /**\n * While typing;\n * If the local value is - or -0 we use it.\n * Also, because of invisible whitespace we remove everything else\n */\n if (/^(-|-0)$/.test(localValue.replace(/[^\\d-0]/g, ''))) {\n value = localValue\n } else if (localNumberValue === '' && numberValue === '0') {\n value = ''\n }\n }\n\n return value\n}\n\n/**\n * This is a helper for setting the cursor position,\n * when it is on a not allowed position\n *\n * @param {Element} element Input Element\n * @param {Object} maskParams Mask parameters, containing eventually suffix or prefix\n */\nexport const correctCaretPosition = (element, maskParams, props) => {\n const correction = () => {\n try {\n const suffix = maskParams?.suffix\n const prefix = maskParams?.prefix\n\n const start = element.selectionStart\n const end = element.selectionEnd\n\n if (start !== end) {\n return // stop here\n }\n\n if (suffix || prefix) {\n const suffixStart = element.value.indexOf(suffix)\n const suffixEnd = suffixStart + suffix?.length\n let pos = undefined\n\n if (start >= suffixStart && start <= suffixEnd) {\n pos = suffixStart\n\n // If there is a placeholder,\n // and the user clicks after the suffix\n // we want the position to be \"before\" the placeholderChar\n if (\n maskParams.placeholderChar !== invisibleSpace &&\n element.value.length - 1 === String(suffix + prefix).length\n ) {\n pos = pos - 1\n }\n } else {\n const prefixStart = element.value.indexOf(prefix)\n const prefixEnd = prefixStart + prefix?.length || 0\n\n if (start >= prefixStart && start <= prefixEnd) {\n pos = prefixEnd\n }\n }\n\n const char = element.value.slice(pos - 1, pos)\n if (char === invisibleSpace) {\n pos = suffixStart - 1\n }\n\n if (!isNaN(parseFloat(pos))) {\n safeSetSelection(element, pos)\n }\n } else if (props?.mask && element.value.length === end) {\n const chars = element.value.split('')\n\n for (let l = chars.length, i = l - 1; i >= 0; i--) {\n const char = chars[i]\n const mask = props.mask[i]\n if (\n char &&\n char !== invisibleSpace &&\n mask instanceof RegExp &&\n mask.test(char)\n ) {\n for (let n = i + 1; n < l; n++) {\n const mask = props.mask[n]\n if (mask?.test?.(char)) {\n safeSetSelection(element, n)\n break\n }\n }\n\n break\n }\n }\n }\n } catch (e) {\n warn(e)\n }\n }\n\n if (typeof window !== 'undefined') {\n window.requestAnimationFrame(correction)\n }\n}\n\n/**\n * Manipulate needed mask for handle: percent\n *\n * @param {object} param0 object with properties\n * @property {object} props Component property\n * @property {string} locale Eufemia locale (either from component or context)\n * @property {object} maskParams predefined mask parameters\n * @returns object maskParams\n */\nexport const handlePercentMask = ({ props, locale, maskParams }) => {\n const value = format(props.value, { locale, percent: true })\n maskParams.suffix = String(value)?.match(/((\\s|)%)$/g, '$1')?.[0] || ' %'\n\n return maskParams\n}\n\n/**\n * Return needed mask for handle: currency\n *\n * @param {object} param0 object with properties\n * @property {object} context Eufemia context\n * @property {object} mask_options Component property for change the mask parameters\n * @property {object} currency_mask Component property for change the currency parameters\n * @returns object maskParams\n */\nexport const handleCurrencyMask = ({ mask_options, currency_mask }) => {\n const maskParams = {\n showMask: true,\n placeholderChar: null,\n allowDecimal: true,\n decimalLimit: 2,\n decimalSymbol: ',',\n ...mask_options,\n ...currency_mask,\n }\n\n const fix =\n typeof currency_mask === 'string'\n ? currency_mask\n : typeof maskParams.currency === 'string'\n ? maskParams.currency\n : 'kr'\n\n maskParams.suffix = ` ${fix}`\n\n return maskParams\n}\n\n/**\n * Return needed mask for handle: number\n *\n * @param {object} param0 object with properties\n * @property {object} context Eufemia context\n * @property {object} mask_options Component property for change the mask parameters\n * @property {object} number_mask Component property for change the number parameters\n * @returns object maskParams\n */\nexport const handleNumberMask = ({ mask_options, number_mask }) => {\n const maskParams = {\n decimalSymbol: ',',\n ...mask_options,\n ...number_mask,\n }\n\n if (typeof maskParams.allowDecimal === 'undefined') {\n maskParams.allowDecimal = maskParams.decimalLimit > 0\n }\n\n return maskParams\n}\n\n/**\n * Returns the type of what inputMode or type attribute should be used\n *\n * @param {function} mask mask function\n * @returns undefined|decimal|numeric\n */\nexport function getSoftKeyboardAttributes(mask) {\n if (mask?.instanceOf !== 'createNumberMask') {\n return undefined\n }\n\n const maskParams = mask?.maskParams\n\n // because of the missing minus key, we still have to use text on iOS\n if (IS_IOS && maskParams?.allowNegative !== false) {\n return undefined\n }\n\n return {\n inputMode:\n maskParams.allowDecimal && maskParams.decimalLimit !== 0\n ? 'decimal'\n : 'numeric',\n }\n}\n\n/**\n * Returns the thousands separator character\n *\n * @param {string} locale Component or context locale\n * @returns string\n */\nexport function handleThousandsSeparator(locale) {\n return getThousandsSeparator(locale).replace(' ', ' ') // replace non-breaking space with a regular space\n}\n\n/**\n * Returns the decimal separator character\n *\n * @param {string} locale Component or context locale\n * @returns string\n */\nexport function handleDecimalSeparator(locale) {\n let decimalSymbol = getDecimalSeparator(locale)\n\n return decimalSymbol\n}\n\n/**\n * Will take a JSON and return it parsed\n *\n * @param {string} str\n * @param {*} fallback optional fallback\n * @returns parsed json\n */\nexport function fromJSON(str, fallback = null) {\n if (typeof str === 'string' && str[0] === '{') {\n return JSON.parse(str)\n }\n\n return str || fallback\n}\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAAyE,SAAAI,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAA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,SAAS;EAClB;EAEA,OAAO;IACLkG,SAAS,EACP3E,UAAU,CAACa,YAAY,IAAIb,UAAU,CAACc,YAAY,KAAK,CAAC,GACpD,SAAS,GACT;EACR,CAAC;AACH;AAQO,SAAS8D,wBAAwBA,CAAC7E,MAAM,EAAE;EAC/C,OAAO,IAAA8E,kCAAqB,EAAC9E,MAAM,CAAC,CAACoB,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;AACxD;AAQO,SAAS2D,sBAAsBA,CAAC/E,MAAM,EAAE;EAC7C,IAAImB,aAAa,GAAG,IAAA6D,gCAAmB,EAAChF,MAAM,CAAC;EAE/C,OAAOmB,aAAa;AACtB;AASO,SAAS8D,QAAQA,CAACC,GAAG,EAAmB;EAAA,IAAjBC,QAAQ,GAAA/H,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAsB,SAAA,GAAAtB,SAAA,MAAG,IAAI;EAC3C,IAAI,OAAO8H,GAAG,KAAK,QAAQ,IAAIA,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;IAC7C,OAAOE,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;EACxB;EAEA,OAAOA,GAAG,IAAIC,QAAQ;AACxB"}
@@ -312,6 +312,9 @@ html[data-whatinput=keyboard] .dnb-table > thead > tr > th.dnb-table--active .dn
312
312
  .dnb-table tbody tr:has(th:first-child + td:last-child) th[scope=row] {
313
313
  --table-th-background-color: initial;
314
314
  }
315
+ .dnb-table tbody tr th[scope=row] + td:last-child {
316
+ width: 100%;
317
+ }
315
318
 
316
319
  /*
317
320
  * Table component