@dnb/eufemia 10.69.1 → 10.70.1

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 (918) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/cjs/components/aria-live/AriaLiveDocs.d.ts +2 -0
  3. package/cjs/components/aria-live/AriaLiveDocs.js +54 -0
  4. package/cjs/components/aria-live/AriaLiveDocs.js.map +1 -0
  5. package/cjs/components/autocomplete/AutocompleteDocs.js +3 -3
  6. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
  7. package/cjs/components/avatar/Avatar.d.ts +10 -0
  8. package/cjs/components/avatar/Avatar.js +12 -3
  9. package/cjs/components/avatar/Avatar.js.map +1 -1
  10. package/cjs/components/avatar/AvatarDocs.d.ts +3 -0
  11. package/cjs/components/avatar/AvatarDocs.js +101 -0
  12. package/cjs/components/avatar/AvatarDocs.js.map +1 -0
  13. package/cjs/components/avatar/AvatarGroup.d.ts +10 -0
  14. package/cjs/components/avatar/AvatarGroup.js +17 -5
  15. package/cjs/components/avatar/AvatarGroup.js.map +1 -1
  16. package/cjs/components/avatar/style/dnb-avatar.css +8 -0
  17. package/cjs/components/avatar/style/dnb-avatar.min.css +1 -1
  18. package/cjs/components/avatar/style/dnb-avatar.scss +9 -0
  19. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
  20. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  21. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
  22. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
  23. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
  24. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
  25. package/cjs/components/badge/BadgeDocs.d.ts +2 -0
  26. package/cjs/components/badge/BadgeDocs.js +54 -0
  27. package/cjs/components/badge/BadgeDocs.js.map +1 -0
  28. package/cjs/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
  29. package/cjs/components/breadcrumb/BreadcrumbDocs.js +125 -0
  30. package/cjs/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
  31. package/cjs/components/button/Button.d.ts +0 -3
  32. package/cjs/components/button/ButtonDocs.d.ts +1 -0
  33. package/cjs/components/button/ButtonDocs.js +8 -1
  34. package/cjs/components/button/ButtonDocs.js.map +1 -1
  35. package/cjs/components/checkbox/CheckboxDocs.js +2 -2
  36. package/cjs/components/checkbox/CheckboxDocs.js.map +1 -1
  37. package/cjs/components/date-picker/DatePickerAddon.js +1 -3
  38. package/cjs/components/date-picker/DatePickerAddon.js.map +1 -1
  39. package/cjs/components/date-picker/DatePickerCalc.d.ts +13 -0
  40. package/cjs/components/date-picker/DatePickerCalc.js +44 -0
  41. package/cjs/components/date-picker/DatePickerCalc.js.map +1 -1
  42. package/cjs/components/date-picker/DatePickerCalendar.js +13 -11
  43. package/cjs/components/date-picker/DatePickerCalendar.js.map +1 -1
  44. package/cjs/components/date-picker/DatePickerContext.d.ts +1 -1
  45. package/cjs/components/date-picker/DatePickerContext.js.map +1 -1
  46. package/cjs/components/date-picker/DatePickerDocs.js +1 -1
  47. package/cjs/components/date-picker/DatePickerDocs.js.map +1 -1
  48. package/cjs/components/date-picker/DatePickerInput.js +120 -94
  49. package/cjs/components/date-picker/DatePickerInput.js.map +1 -1
  50. package/cjs/components/date-picker/DatePickerProvider.js +2 -2
  51. package/cjs/components/date-picker/DatePickerProvider.js.map +1 -1
  52. package/cjs/components/date-picker/hooks/useViews.d.ts +2 -4
  53. package/cjs/components/date-picker/hooks/useViews.js +37 -23
  54. package/cjs/components/date-picker/hooks/useViews.js.map +1 -1
  55. package/cjs/components/date-picker/style/dnb-date-picker.css +4 -0
  56. package/cjs/components/date-picker/style/dnb-date-picker.min.css +1 -1
  57. package/cjs/components/date-picker/style/dnb-date-picker.scss +3 -0
  58. package/cjs/components/dialog/DialogDocs.d.ts +1 -0
  59. package/cjs/components/dialog/DialogDocs.js +20 -3
  60. package/cjs/components/dialog/DialogDocs.js.map +1 -1
  61. package/cjs/components/drawer/DrawerDocs.d.ts +2 -0
  62. package/cjs/components/drawer/DrawerDocs.js +69 -0
  63. package/cjs/components/drawer/DrawerDocs.js.map +1 -0
  64. package/cjs/components/dropdown/Dropdown.d.ts +20 -20
  65. package/cjs/components/dropdown/DropdownDocs.d.ts +3 -0
  66. package/cjs/components/dropdown/DropdownDocs.js +186 -0
  67. package/cjs/components/dropdown/DropdownDocs.js.map +1 -0
  68. package/cjs/components/flex/ContainerDocs.js +1 -1
  69. package/cjs/components/flex/ContainerDocs.js.map +1 -1
  70. package/cjs/components/flex/ItemDocs.d.ts +2 -0
  71. package/cjs/components/flex/ItemDocs.js +39 -0
  72. package/cjs/components/flex/ItemDocs.js.map +1 -0
  73. package/cjs/components/form-label/FormLabelDocs.d.ts +2 -0
  74. package/cjs/components/form-label/FormLabelDocs.js +59 -0
  75. package/cjs/components/form-label/FormLabelDocs.js.map +1 -0
  76. package/cjs/components/form-row/FormRow.d.ts +45 -0
  77. package/cjs/components/form-row/FormRowDocs.d.ts +2 -0
  78. package/cjs/components/form-row/FormRowDocs.js +89 -0
  79. package/cjs/components/form-row/FormRowDocs.js.map +1 -0
  80. package/cjs/components/form-set/FormSet.d.ts +18 -0
  81. package/cjs/components/form-set/FormSetDocs.d.ts +3 -0
  82. package/cjs/components/form-set/FormSetDocs.js +56 -0
  83. package/cjs/components/form-set/FormSetDocs.js.map +1 -0
  84. package/cjs/components/form-status/FormStatus.d.ts +18 -18
  85. package/cjs/components/form-status/FormStatusDocs.d.ts +2 -0
  86. package/cjs/components/form-status/FormStatusDocs.js +89 -0
  87. package/cjs/components/form-status/FormStatusDocs.js.map +1 -0
  88. package/cjs/components/global-error/GlobalError.d.ts +12 -0
  89. package/cjs/components/global-error/GlobalError.js +15 -6
  90. package/cjs/components/global-error/GlobalError.js.map +1 -1
  91. package/cjs/components/global-error/GlobalErrorDocs.js +14 -4
  92. package/cjs/components/global-error/GlobalErrorDocs.js.map +1 -1
  93. package/cjs/components/global-status/GlobalStatus.d.ts +37 -58
  94. package/cjs/components/global-status/GlobalStatusController.d.ts +0 -9
  95. package/cjs/components/global-status/GlobalStatusDocs.d.ts +6 -0
  96. package/cjs/components/global-status/GlobalStatusDocs.js +192 -0
  97. package/cjs/components/global-status/GlobalStatusDocs.js.map +1 -0
  98. package/cjs/components/grid/ItemDocs.d.ts +2 -0
  99. package/cjs/components/grid/ItemDocs.js +19 -0
  100. package/cjs/components/grid/ItemDocs.js.map +1 -0
  101. package/cjs/components/heading/HeadingDocs.d.ts +2 -0
  102. package/cjs/components/heading/HeadingDocs.js +79 -0
  103. package/cjs/components/heading/HeadingDocs.js.map +1 -0
  104. package/cjs/components/help-button/HelpButtonDocs.d.ts +3 -0
  105. package/cjs/components/help-button/HelpButtonDocs.js +46 -0
  106. package/cjs/components/help-button/HelpButtonDocs.js.map +1 -0
  107. package/cjs/components/icon/IconDocs.d.ts +2 -0
  108. package/cjs/components/icon/IconDocs.js +59 -0
  109. package/cjs/components/icon/IconDocs.js.map +1 -0
  110. package/cjs/components/icon/IconPrimaryDocs.d.ts +2 -0
  111. package/cjs/components/icon/IconPrimaryDocs.js +24 -0
  112. package/cjs/components/icon/IconPrimaryDocs.js.map +1 -0
  113. package/cjs/components/info-card/InfoCard.d.ts +6 -1
  114. package/cjs/components/info-card/InfoCard.js +4 -3
  115. package/cjs/components/info-card/InfoCard.js.map +1 -1
  116. package/cjs/components/info-card/InfoCardDocs.js +8 -3
  117. package/cjs/components/info-card/InfoCardDocs.js.map +1 -1
  118. package/cjs/components/input/Input.d.ts +0 -21
  119. package/cjs/components/input/InputDocs.d.ts +1 -0
  120. package/cjs/components/input/InputDocs.js +36 -4
  121. package/cjs/components/input/InputDocs.js.map +1 -1
  122. package/cjs/components/input-masked/InputMasked.d.ts +0 -15
  123. package/cjs/components/input-masked/InputMaskedDocs.d.ts +2 -0
  124. package/cjs/components/input-masked/InputMaskedDocs.js +70 -1
  125. package/cjs/components/input-masked/InputMaskedDocs.js.map +1 -1
  126. package/cjs/components/input-masked/MultiInputMaskedDocs.d.ts +4 -0
  127. package/cjs/components/input-masked/MultiInputMaskedDocs.js +93 -0
  128. package/cjs/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
  129. package/cjs/components/input-masked/style/dnb-input-masked.css +9 -0
  130. package/cjs/components/input-masked/style/dnb-input-masked.min.css +1 -1
  131. package/cjs/components/input-masked/style/dnb-input-masked.scss +12 -0
  132. package/cjs/components/input-masked/text-mask/InputModeNumber.d.ts +8 -0
  133. package/cjs/components/input-masked/text-mask/InputModeNumber.js +32 -9
  134. package/cjs/components/input-masked/text-mask/InputModeNumber.js.map +1 -1
  135. package/cjs/components/input-masked/text-mask/adjustCaretPosition.d.ts +2 -1
  136. package/cjs/components/input-masked/text-mask/adjustCaretPosition.js +3 -2
  137. package/cjs/components/input-masked/text-mask/adjustCaretPosition.js.map +1 -1
  138. package/cjs/components/input-masked/text-mask/createTextMaskInputElement.js +9 -3
  139. package/cjs/components/input-masked/text-mask/createTextMaskInputElement.js.map +1 -1
  140. package/cjs/components/modal/ModalDocs.d.ts +3 -0
  141. package/cjs/components/modal/ModalDocs.js +191 -0
  142. package/cjs/components/modal/ModalDocs.js.map +1 -0
  143. package/cjs/components/pagination/Pagination.d.ts +35 -33
  144. package/cjs/components/pagination/Pagination.js +2 -0
  145. package/cjs/components/pagination/Pagination.js.map +1 -1
  146. package/cjs/components/pagination/PaginationDocs.d.ts +3 -0
  147. package/cjs/components/pagination/PaginationDocs.js +191 -0
  148. package/cjs/components/pagination/PaginationDocs.js.map +1 -0
  149. package/cjs/components/pagination/PaginationHelpers.d.ts +0 -3
  150. package/cjs/components/pagination/PaginationInfinity.d.ts +0 -3
  151. package/cjs/components/pagination/PaginationProvider.js +1 -1
  152. package/cjs/components/pagination/PaginationProvider.js.map +1 -1
  153. package/cjs/components/radio/Radio.d.ts +12 -15
  154. package/cjs/components/radio/RadioDocs.d.ts +5 -0
  155. package/cjs/components/radio/RadioDocs.js +145 -0
  156. package/cjs/components/radio/RadioDocs.js.map +1 -0
  157. package/cjs/components/radio/RadioGroup.d.ts +0 -30
  158. package/cjs/components/section/Section.js +2 -7
  159. package/cjs/components/section/Section.js.map +1 -1
  160. package/cjs/components/section/SectionDocs.js +1 -1
  161. package/cjs/components/section/SectionDocs.js.map +1 -1
  162. package/cjs/components/skeleton/SkeletonDocs.d.ts +2 -0
  163. package/cjs/components/skeleton/SkeletonDocs.js +44 -0
  164. package/cjs/components/skeleton/SkeletonDocs.js.map +1 -0
  165. package/cjs/components/skeleton/SkeletonHelper.d.ts +0 -6
  166. package/cjs/components/skip-content/SkipContentDocs.d.ts +2 -0
  167. package/cjs/components/skip-content/SkipContentDocs.js +29 -0
  168. package/cjs/components/skip-content/SkipContentDocs.js.map +1 -0
  169. package/cjs/components/slider/SliderDocs.js +2 -2
  170. package/cjs/components/slider/SliderDocs.js.map +1 -1
  171. package/cjs/components/space/SpaceDocs.d.ts +3 -0
  172. package/cjs/components/space/SpaceDocs.js +61 -0
  173. package/cjs/components/space/SpaceDocs.js.map +1 -0
  174. package/cjs/components/switch/SwitchDocs.js +2 -2
  175. package/cjs/components/switch/SwitchDocs.js.map +1 -1
  176. package/cjs/components/tag/TagDocs.d.ts +4 -0
  177. package/cjs/components/tag/TagDocs.js +93 -0
  178. package/cjs/components/tag/TagDocs.js.map +1 -0
  179. package/cjs/components/textarea/Textarea.d.ts +0 -12
  180. package/cjs/components/textarea/TextareaDocs.d.ts +1 -0
  181. package/cjs/components/textarea/TextareaDocs.js +26 -4
  182. package/cjs/components/textarea/TextareaDocs.js.map +1 -1
  183. package/cjs/components/timeline/TimelineDocs.d.ts +3 -0
  184. package/cjs/components/timeline/TimelineDocs.js +66 -0
  185. package/cjs/components/timeline/TimelineDocs.js.map +1 -0
  186. package/cjs/components/toggle-button/ToggleButton.d.ts +0 -3
  187. package/cjs/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
  188. package/cjs/components/toggle-button/ToggleButtonDocs.js +8 -1
  189. package/cjs/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  190. package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
  191. package/cjs/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
  192. package/cjs/components/toggle-button/ToggleButtonGroupDocs.js +9 -2
  193. package/cjs/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
  194. package/cjs/components/tooltip/TooltipDocs.d.ts +2 -0
  195. package/cjs/components/tooltip/TooltipDocs.js +79 -0
  196. package/cjs/components/tooltip/TooltipDocs.js.map +1 -0
  197. package/cjs/components/upload/Upload.js +6 -4
  198. package/cjs/components/upload/Upload.js.map +1 -1
  199. package/cjs/components/upload/UploadDocs.js +5 -0
  200. package/cjs/components/upload/UploadDocs.js.map +1 -1
  201. package/cjs/components/upload/UploadFileList.js +3 -1
  202. package/cjs/components/upload/UploadFileList.js.map +1 -1
  203. package/cjs/components/upload/UploadFileListCell.d.ts +6 -1
  204. package/cjs/components/upload/UploadFileListCell.js +8 -5
  205. package/cjs/components/upload/UploadFileListCell.js.map +1 -1
  206. package/cjs/components/upload/types.d.ts +5 -0
  207. package/cjs/components/upload/types.js.map +1 -1
  208. package/cjs/components/upload/useUpload.d.ts +1 -0
  209. package/cjs/components/upload/useUpload.js +9 -2
  210. package/cjs/components/upload/useUpload.js.map +1 -1
  211. package/cjs/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
  212. package/cjs/components/visually-hidden/VisuallyHiddenDocs.js +19 -0
  213. package/cjs/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
  214. package/cjs/extensions/forms/DataContext/At/AtDocs.d.ts +2 -0
  215. package/cjs/extensions/forms/DataContext/At/AtDocs.js +24 -0
  216. package/cjs/extensions/forms/DataContext/At/AtDocs.js.map +1 -0
  217. package/cjs/extensions/forms/DataContext/Context.d.ts +6 -5
  218. package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
  219. package/cjs/extensions/forms/DataContext/Provider/Provider.js +29 -35
  220. package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  221. package/cjs/extensions/forms/Field/Date/Date.d.ts +1 -0
  222. package/cjs/extensions/forms/Field/Date/Date.js +8 -8
  223. package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
  224. package/cjs/extensions/forms/Field/Password/Password.js +2 -1
  225. package/cjs/extensions/forms/Field/Password/Password.js.map +1 -1
  226. package/cjs/extensions/forms/Field/Password/PasswordDocs.d.ts +1 -0
  227. package/cjs/extensions/forms/Field/Password/PasswordDocs.js +14 -2
  228. package/cjs/extensions/forms/Field/Password/PasswordDocs.js.map +1 -1
  229. package/cjs/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
  230. package/cjs/extensions/forms/Field/String/StringDocs.js +1 -1
  231. package/cjs/extensions/forms/Field/String/StringDocs.js.map +1 -1
  232. package/cjs/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  233. package/cjs/extensions/forms/Field/Upload/Upload.js +10 -2
  234. package/cjs/extensions/forms/Field/Upload/Upload.js.map +1 -1
  235. package/cjs/extensions/forms/Form/ButtonRow/ButtonRowDocs.d.ts +2 -0
  236. package/cjs/extensions/forms/Form/ButtonRow/ButtonRowDocs.js +19 -0
  237. package/cjs/extensions/forms/Form/ButtonRow/ButtonRowDocs.js.map +1 -0
  238. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  239. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  240. package/cjs/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
  241. package/cjs/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
  242. package/cjs/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
  243. package/cjs/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
  244. package/cjs/extensions/forms/Form/Visibility/useVisibility.js +10 -14
  245. package/cjs/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
  246. package/cjs/extensions/forms/Value/Date/Date.d.ts +0 -6
  247. package/cjs/extensions/forms/Value/Date/Date.js +14 -38
  248. package/cjs/extensions/forms/Value/Date/Date.js.map +1 -1
  249. package/cjs/extensions/forms/Wizard/Buttons/ButtonsDocs.d.ts +2 -0
  250. package/cjs/extensions/forms/Wizard/Buttons/ButtonsDocs.js +14 -0
  251. package/cjs/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -0
  252. package/cjs/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
  253. package/cjs/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
  254. package/cjs/extensions/forms/hooks/useFieldProps.js +8 -5
  255. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  256. package/cjs/extensions/payment-card/PaymentCard.d.ts +7 -7
  257. package/cjs/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
  258. package/cjs/extensions/payment-card/PaymentCardDocs.js +205 -0
  259. package/cjs/extensions/payment-card/PaymentCardDocs.js.map +1 -0
  260. package/cjs/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
  261. package/cjs/fragments/scroll-view/ScrollViewDocs.js +19 -0
  262. package/cjs/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
  263. package/cjs/fragments/text-counter/TextCounterDocs.d.ts +2 -0
  264. package/cjs/fragments/text-counter/TextCounterDocs.js +29 -0
  265. package/cjs/fragments/text-counter/TextCounterDocs.js.map +1 -0
  266. package/cjs/shared/Eufemia.d.ts +1 -1
  267. package/cjs/shared/Eufemia.js +2 -2
  268. package/cjs/shared/Eufemia.js.map +1 -1
  269. package/cjs/shared/MediaQueryDocs.d.ts +2 -0
  270. package/cjs/shared/MediaQueryDocs.js +34 -0
  271. package/cjs/shared/MediaQueryDocs.js.map +1 -0
  272. package/cjs/shared/ThemeDocs.d.ts +2 -0
  273. package/cjs/shared/ThemeDocs.js +39 -0
  274. package/cjs/shared/ThemeDocs.js.map +1 -0
  275. package/cjs/shared/helpers.d.ts +1 -0
  276. package/cjs/shared/helpers.js +7 -0
  277. package/cjs/shared/helpers.js.map +1 -1
  278. package/cjs/shared/locales/en-GB.d.ts +1 -0
  279. package/cjs/shared/locales/en-GB.js +1 -0
  280. package/cjs/shared/locales/en-GB.js.map +1 -1
  281. package/cjs/shared/locales/en-US.d.ts +1 -0
  282. package/cjs/shared/locales/index.d.ts +2 -0
  283. package/cjs/shared/locales/nb-NO.d.ts +1 -0
  284. package/cjs/shared/locales/nb-NO.js +1 -0
  285. package/cjs/shared/locales/nb-NO.js.map +1 -1
  286. package/cjs/shared/locales/sv-SE.d.ts +1 -0
  287. package/cjs/shared/locales/sv-SE.js +3 -2
  288. package/cjs/shared/locales/sv-SE.js.map +1 -1
  289. package/cjs/style/core/scopes.scss +1 -1
  290. package/cjs/style/dnb-ui-basis.css +1 -1
  291. package/cjs/style/dnb-ui-basis.min.css +1 -1
  292. package/cjs/style/dnb-ui-body.css +1 -1
  293. package/cjs/style/dnb-ui-body.min.css +1 -1
  294. package/cjs/style/dnb-ui-components.css +21 -0
  295. package/cjs/style/dnb-ui-components.min.css +1 -1
  296. package/cjs/style/dnb-ui-core.css +1 -1
  297. package/cjs/style/dnb-ui-core.min.css +1 -1
  298. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +26 -5
  299. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
  300. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +26 -5
  301. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
  302. package/cjs/style/themes/theme-ui/ui-theme-components.css +26 -5
  303. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +2 -2
  304. package/components/aria-live/AriaLiveDocs.d.ts +2 -0
  305. package/components/aria-live/AriaLiveDocs.js +48 -0
  306. package/components/aria-live/AriaLiveDocs.js.map +1 -0
  307. package/components/autocomplete/AutocompleteDocs.js +3 -3
  308. package/components/autocomplete/AutocompleteDocs.js.map +1 -1
  309. package/components/avatar/Avatar.d.ts +10 -0
  310. package/components/avatar/Avatar.js +12 -3
  311. package/components/avatar/Avatar.js.map +1 -1
  312. package/components/avatar/AvatarDocs.d.ts +3 -0
  313. package/components/avatar/AvatarDocs.js +95 -0
  314. package/components/avatar/AvatarDocs.js.map +1 -0
  315. package/components/avatar/AvatarGroup.d.ts +10 -0
  316. package/components/avatar/AvatarGroup.js +17 -5
  317. package/components/avatar/AvatarGroup.js.map +1 -1
  318. package/components/avatar/style/dnb-avatar.css +8 -0
  319. package/components/avatar/style/dnb-avatar.min.css +1 -1
  320. package/components/avatar/style/dnb-avatar.scss +9 -0
  321. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
  322. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  323. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
  324. package/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
  325. package/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
  326. package/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
  327. package/components/badge/BadgeDocs.d.ts +2 -0
  328. package/components/badge/BadgeDocs.js +48 -0
  329. package/components/badge/BadgeDocs.js.map +1 -0
  330. package/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
  331. package/components/breadcrumb/BreadcrumbDocs.js +119 -0
  332. package/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
  333. package/components/button/Button.d.ts +0 -3
  334. package/components/button/ButtonDocs.d.ts +1 -0
  335. package/components/button/ButtonDocs.js +7 -0
  336. package/components/button/ButtonDocs.js.map +1 -1
  337. package/components/checkbox/CheckboxDocs.js +2 -2
  338. package/components/checkbox/CheckboxDocs.js.map +1 -1
  339. package/components/date-picker/DatePickerAddon.js +1 -3
  340. package/components/date-picker/DatePickerAddon.js.map +1 -1
  341. package/components/date-picker/DatePickerCalc.d.ts +13 -0
  342. package/components/date-picker/DatePickerCalc.js +41 -0
  343. package/components/date-picker/DatePickerCalc.js.map +1 -1
  344. package/components/date-picker/DatePickerCalendar.js +13 -11
  345. package/components/date-picker/DatePickerCalendar.js.map +1 -1
  346. package/components/date-picker/DatePickerContext.d.ts +1 -1
  347. package/components/date-picker/DatePickerContext.js.map +1 -1
  348. package/components/date-picker/DatePickerDocs.js +1 -1
  349. package/components/date-picker/DatePickerDocs.js.map +1 -1
  350. package/components/date-picker/DatePickerInput.js +121 -95
  351. package/components/date-picker/DatePickerInput.js.map +1 -1
  352. package/components/date-picker/DatePickerProvider.js +2 -2
  353. package/components/date-picker/DatePickerProvider.js.map +1 -1
  354. package/components/date-picker/hooks/useViews.d.ts +2 -4
  355. package/components/date-picker/hooks/useViews.js +38 -24
  356. package/components/date-picker/hooks/useViews.js.map +1 -1
  357. package/components/date-picker/style/dnb-date-picker.css +4 -0
  358. package/components/date-picker/style/dnb-date-picker.min.css +1 -1
  359. package/components/date-picker/style/dnb-date-picker.scss +3 -0
  360. package/components/dialog/DialogDocs.d.ts +1 -0
  361. package/components/dialog/DialogDocs.js +19 -2
  362. package/components/dialog/DialogDocs.js.map +1 -1
  363. package/components/drawer/DrawerDocs.d.ts +2 -0
  364. package/components/drawer/DrawerDocs.js +63 -0
  365. package/components/drawer/DrawerDocs.js.map +1 -0
  366. package/components/dropdown/Dropdown.d.ts +20 -20
  367. package/components/dropdown/DropdownDocs.d.ts +3 -0
  368. package/components/dropdown/DropdownDocs.js +180 -0
  369. package/components/dropdown/DropdownDocs.js.map +1 -0
  370. package/components/flex/ContainerDocs.js +1 -1
  371. package/components/flex/ContainerDocs.js.map +1 -1
  372. package/components/flex/ItemDocs.d.ts +2 -0
  373. package/components/flex/ItemDocs.js +33 -0
  374. package/components/flex/ItemDocs.js.map +1 -0
  375. package/components/form-label/FormLabelDocs.d.ts +2 -0
  376. package/components/form-label/FormLabelDocs.js +53 -0
  377. package/components/form-label/FormLabelDocs.js.map +1 -0
  378. package/components/form-row/FormRow.d.ts +45 -0
  379. package/components/form-row/FormRowDocs.d.ts +2 -0
  380. package/components/form-row/FormRowDocs.js +83 -0
  381. package/components/form-row/FormRowDocs.js.map +1 -0
  382. package/components/form-set/FormSet.d.ts +18 -0
  383. package/components/form-set/FormSetDocs.d.ts +3 -0
  384. package/components/form-set/FormSetDocs.js +50 -0
  385. package/components/form-set/FormSetDocs.js.map +1 -0
  386. package/components/form-status/FormStatus.d.ts +18 -18
  387. package/components/form-status/FormStatusDocs.d.ts +2 -0
  388. package/components/form-status/FormStatusDocs.js +83 -0
  389. package/components/form-status/FormStatusDocs.js.map +1 -0
  390. package/components/global-error/GlobalError.d.ts +12 -0
  391. package/components/global-error/GlobalError.js +15 -6
  392. package/components/global-error/GlobalError.js.map +1 -1
  393. package/components/global-error/GlobalErrorDocs.js +14 -4
  394. package/components/global-error/GlobalErrorDocs.js.map +1 -1
  395. package/components/global-status/GlobalStatus.d.ts +37 -58
  396. package/components/global-status/GlobalStatusController.d.ts +0 -9
  397. package/components/global-status/GlobalStatusDocs.d.ts +6 -0
  398. package/components/global-status/GlobalStatusDocs.js +186 -0
  399. package/components/global-status/GlobalStatusDocs.js.map +1 -0
  400. package/components/grid/ItemDocs.d.ts +2 -0
  401. package/components/grid/ItemDocs.js +13 -0
  402. package/components/grid/ItemDocs.js.map +1 -0
  403. package/components/heading/HeadingDocs.d.ts +2 -0
  404. package/components/heading/HeadingDocs.js +73 -0
  405. package/components/heading/HeadingDocs.js.map +1 -0
  406. package/components/help-button/HelpButtonDocs.d.ts +3 -0
  407. package/components/help-button/HelpButtonDocs.js +40 -0
  408. package/components/help-button/HelpButtonDocs.js.map +1 -0
  409. package/components/icon/IconDocs.d.ts +2 -0
  410. package/components/icon/IconDocs.js +53 -0
  411. package/components/icon/IconDocs.js.map +1 -0
  412. package/components/icon/IconPrimaryDocs.d.ts +2 -0
  413. package/components/icon/IconPrimaryDocs.js +18 -0
  414. package/components/icon/IconPrimaryDocs.js.map +1 -0
  415. package/components/info-card/InfoCard.d.ts +6 -1
  416. package/components/info-card/InfoCard.js +4 -3
  417. package/components/info-card/InfoCard.js.map +1 -1
  418. package/components/info-card/InfoCardDocs.js +8 -3
  419. package/components/info-card/InfoCardDocs.js.map +1 -1
  420. package/components/input/Input.d.ts +0 -21
  421. package/components/input/InputDocs.d.ts +1 -0
  422. package/components/input/InputDocs.js +35 -3
  423. package/components/input/InputDocs.js.map +1 -1
  424. package/components/input-masked/InputMasked.d.ts +0 -15
  425. package/components/input-masked/InputMaskedDocs.d.ts +2 -0
  426. package/components/input-masked/InputMaskedDocs.js +69 -0
  427. package/components/input-masked/InputMaskedDocs.js.map +1 -1
  428. package/components/input-masked/MultiInputMaskedDocs.d.ts +4 -0
  429. package/components/input-masked/MultiInputMaskedDocs.js +87 -0
  430. package/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
  431. package/components/input-masked/style/dnb-input-masked.css +9 -0
  432. package/components/input-masked/style/dnb-input-masked.min.css +1 -1
  433. package/components/input-masked/style/dnb-input-masked.scss +12 -0
  434. package/components/input-masked/text-mask/InputModeNumber.d.ts +8 -0
  435. package/components/input-masked/text-mask/InputModeNumber.js +32 -9
  436. package/components/input-masked/text-mask/InputModeNumber.js.map +1 -1
  437. package/components/input-masked/text-mask/adjustCaretPosition.d.ts +2 -1
  438. package/components/input-masked/text-mask/adjustCaretPosition.js +3 -2
  439. package/components/input-masked/text-mask/adjustCaretPosition.js.map +1 -1
  440. package/components/input-masked/text-mask/createTextMaskInputElement.js +9 -3
  441. package/components/input-masked/text-mask/createTextMaskInputElement.js.map +1 -1
  442. package/components/modal/ModalDocs.d.ts +3 -0
  443. package/components/modal/ModalDocs.js +185 -0
  444. package/components/modal/ModalDocs.js.map +1 -0
  445. package/components/pagination/Pagination.d.ts +35 -33
  446. package/components/pagination/Pagination.js +2 -0
  447. package/components/pagination/Pagination.js.map +1 -1
  448. package/components/pagination/PaginationDocs.d.ts +3 -0
  449. package/components/pagination/PaginationDocs.js +185 -0
  450. package/components/pagination/PaginationDocs.js.map +1 -0
  451. package/components/pagination/PaginationHelpers.d.ts +0 -3
  452. package/components/pagination/PaginationInfinity.d.ts +0 -3
  453. package/components/pagination/PaginationProvider.js +1 -1
  454. package/components/pagination/PaginationProvider.js.map +1 -1
  455. package/components/radio/Radio.d.ts +12 -15
  456. package/components/radio/RadioDocs.d.ts +5 -0
  457. package/components/radio/RadioDocs.js +139 -0
  458. package/components/radio/RadioDocs.js.map +1 -0
  459. package/components/radio/RadioGroup.d.ts +0 -30
  460. package/components/section/Section.js +1 -6
  461. package/components/section/Section.js.map +1 -1
  462. package/components/section/SectionDocs.js +1 -1
  463. package/components/section/SectionDocs.js.map +1 -1
  464. package/components/skeleton/SkeletonDocs.d.ts +2 -0
  465. package/components/skeleton/SkeletonDocs.js +38 -0
  466. package/components/skeleton/SkeletonDocs.js.map +1 -0
  467. package/components/skeleton/SkeletonHelper.d.ts +0 -6
  468. package/components/skip-content/SkipContentDocs.d.ts +2 -0
  469. package/components/skip-content/SkipContentDocs.js +23 -0
  470. package/components/skip-content/SkipContentDocs.js.map +1 -0
  471. package/components/slider/SliderDocs.js +2 -2
  472. package/components/slider/SliderDocs.js.map +1 -1
  473. package/components/space/SpaceDocs.d.ts +3 -0
  474. package/components/space/SpaceDocs.js +55 -0
  475. package/components/space/SpaceDocs.js.map +1 -0
  476. package/components/switch/SwitchDocs.js +2 -2
  477. package/components/switch/SwitchDocs.js.map +1 -1
  478. package/components/tag/TagDocs.d.ts +4 -0
  479. package/components/tag/TagDocs.js +87 -0
  480. package/components/tag/TagDocs.js.map +1 -0
  481. package/components/textarea/Textarea.d.ts +0 -12
  482. package/components/textarea/TextareaDocs.d.ts +1 -0
  483. package/components/textarea/TextareaDocs.js +25 -3
  484. package/components/textarea/TextareaDocs.js.map +1 -1
  485. package/components/timeline/TimelineDocs.d.ts +3 -0
  486. package/components/timeline/TimelineDocs.js +60 -0
  487. package/components/timeline/TimelineDocs.js.map +1 -0
  488. package/components/toggle-button/ToggleButton.d.ts +0 -3
  489. package/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
  490. package/components/toggle-button/ToggleButtonDocs.js +7 -0
  491. package/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  492. package/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
  493. package/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
  494. package/components/toggle-button/ToggleButtonGroupDocs.js +8 -1
  495. package/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
  496. package/components/tooltip/TooltipDocs.d.ts +2 -0
  497. package/components/tooltip/TooltipDocs.js +73 -0
  498. package/components/tooltip/TooltipDocs.js.map +1 -0
  499. package/components/upload/Upload.js +6 -4
  500. package/components/upload/Upload.js.map +1 -1
  501. package/components/upload/UploadDocs.js +5 -0
  502. package/components/upload/UploadDocs.js.map +1 -1
  503. package/components/upload/UploadFileList.js +3 -1
  504. package/components/upload/UploadFileList.js.map +1 -1
  505. package/components/upload/UploadFileListCell.d.ts +6 -1
  506. package/components/upload/UploadFileListCell.js +8 -5
  507. package/components/upload/UploadFileListCell.js.map +1 -1
  508. package/components/upload/types.d.ts +5 -0
  509. package/components/upload/types.js.map +1 -1
  510. package/components/upload/useUpload.d.ts +1 -0
  511. package/components/upload/useUpload.js +7 -1
  512. package/components/upload/useUpload.js.map +1 -1
  513. package/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
  514. package/components/visually-hidden/VisuallyHiddenDocs.js +13 -0
  515. package/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
  516. package/es/components/aria-live/AriaLiveDocs.d.ts +2 -0
  517. package/es/components/aria-live/AriaLiveDocs.js +48 -0
  518. package/es/components/aria-live/AriaLiveDocs.js.map +1 -0
  519. package/es/components/autocomplete/AutocompleteDocs.js +3 -3
  520. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
  521. package/es/components/avatar/Avatar.d.ts +10 -0
  522. package/es/components/avatar/Avatar.js +12 -3
  523. package/es/components/avatar/Avatar.js.map +1 -1
  524. package/es/components/avatar/AvatarDocs.d.ts +3 -0
  525. package/es/components/avatar/AvatarDocs.js +95 -0
  526. package/es/components/avatar/AvatarDocs.js.map +1 -0
  527. package/es/components/avatar/AvatarGroup.d.ts +10 -0
  528. package/es/components/avatar/AvatarGroup.js +17 -5
  529. package/es/components/avatar/AvatarGroup.js.map +1 -1
  530. package/es/components/avatar/style/dnb-avatar.css +8 -0
  531. package/es/components/avatar/style/dnb-avatar.min.css +1 -1
  532. package/es/components/avatar/style/dnb-avatar.scss +9 -0
  533. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +5 -5
  534. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  535. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +5 -6
  536. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.css +5 -5
  537. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -1
  538. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.scss +5 -5
  539. package/es/components/badge/BadgeDocs.d.ts +2 -0
  540. package/es/components/badge/BadgeDocs.js +48 -0
  541. package/es/components/badge/BadgeDocs.js.map +1 -0
  542. package/es/components/breadcrumb/BreadcrumbDocs.d.ts +5 -0
  543. package/es/components/breadcrumb/BreadcrumbDocs.js +119 -0
  544. package/es/components/breadcrumb/BreadcrumbDocs.js.map +1 -0
  545. package/es/components/button/Button.d.ts +0 -3
  546. package/es/components/button/ButtonDocs.d.ts +1 -0
  547. package/es/components/button/ButtonDocs.js +7 -0
  548. package/es/components/button/ButtonDocs.js.map +1 -1
  549. package/es/components/checkbox/CheckboxDocs.js +2 -2
  550. package/es/components/checkbox/CheckboxDocs.js.map +1 -1
  551. package/es/components/date-picker/DatePickerAddon.js +1 -3
  552. package/es/components/date-picker/DatePickerAddon.js.map +1 -1
  553. package/es/components/date-picker/DatePickerCalc.d.ts +13 -0
  554. package/es/components/date-picker/DatePickerCalc.js +39 -0
  555. package/es/components/date-picker/DatePickerCalc.js.map +1 -1
  556. package/es/components/date-picker/DatePickerCalendar.js +13 -11
  557. package/es/components/date-picker/DatePickerCalendar.js.map +1 -1
  558. package/es/components/date-picker/DatePickerContext.d.ts +1 -1
  559. package/es/components/date-picker/DatePickerContext.js.map +1 -1
  560. package/es/components/date-picker/DatePickerDocs.js +1 -1
  561. package/es/components/date-picker/DatePickerDocs.js.map +1 -1
  562. package/es/components/date-picker/DatePickerInput.js +116 -92
  563. package/es/components/date-picker/DatePickerInput.js.map +1 -1
  564. package/es/components/date-picker/DatePickerProvider.js +2 -2
  565. package/es/components/date-picker/DatePickerProvider.js.map +1 -1
  566. package/es/components/date-picker/hooks/useViews.d.ts +2 -4
  567. package/es/components/date-picker/hooks/useViews.js +39 -25
  568. package/es/components/date-picker/hooks/useViews.js.map +1 -1
  569. package/es/components/date-picker/style/dnb-date-picker.css +4 -0
  570. package/es/components/date-picker/style/dnb-date-picker.min.css +1 -1
  571. package/es/components/date-picker/style/dnb-date-picker.scss +3 -0
  572. package/es/components/dialog/DialogDocs.d.ts +1 -0
  573. package/es/components/dialog/DialogDocs.js +19 -2
  574. package/es/components/dialog/DialogDocs.js.map +1 -1
  575. package/es/components/drawer/DrawerDocs.d.ts +2 -0
  576. package/es/components/drawer/DrawerDocs.js +63 -0
  577. package/es/components/drawer/DrawerDocs.js.map +1 -0
  578. package/es/components/dropdown/Dropdown.d.ts +20 -20
  579. package/es/components/dropdown/DropdownDocs.d.ts +3 -0
  580. package/es/components/dropdown/DropdownDocs.js +180 -0
  581. package/es/components/dropdown/DropdownDocs.js.map +1 -0
  582. package/es/components/flex/ContainerDocs.js +1 -1
  583. package/es/components/flex/ContainerDocs.js.map +1 -1
  584. package/es/components/flex/ItemDocs.d.ts +2 -0
  585. package/es/components/flex/ItemDocs.js +33 -0
  586. package/es/components/flex/ItemDocs.js.map +1 -0
  587. package/es/components/form-label/FormLabelDocs.d.ts +2 -0
  588. package/es/components/form-label/FormLabelDocs.js +53 -0
  589. package/es/components/form-label/FormLabelDocs.js.map +1 -0
  590. package/es/components/form-row/FormRow.d.ts +45 -0
  591. package/es/components/form-row/FormRowDocs.d.ts +2 -0
  592. package/es/components/form-row/FormRowDocs.js +83 -0
  593. package/es/components/form-row/FormRowDocs.js.map +1 -0
  594. package/es/components/form-set/FormSet.d.ts +18 -0
  595. package/es/components/form-set/FormSetDocs.d.ts +3 -0
  596. package/es/components/form-set/FormSetDocs.js +50 -0
  597. package/es/components/form-set/FormSetDocs.js.map +1 -0
  598. package/es/components/form-status/FormStatus.d.ts +18 -18
  599. package/es/components/form-status/FormStatusDocs.d.ts +2 -0
  600. package/es/components/form-status/FormStatusDocs.js +83 -0
  601. package/es/components/form-status/FormStatusDocs.js.map +1 -0
  602. package/es/components/global-error/GlobalError.d.ts +12 -0
  603. package/es/components/global-error/GlobalError.js +14 -6
  604. package/es/components/global-error/GlobalError.js.map +1 -1
  605. package/es/components/global-error/GlobalErrorDocs.js +14 -4
  606. package/es/components/global-error/GlobalErrorDocs.js.map +1 -1
  607. package/es/components/global-status/GlobalStatus.d.ts +37 -58
  608. package/es/components/global-status/GlobalStatusController.d.ts +0 -9
  609. package/es/components/global-status/GlobalStatusDocs.d.ts +6 -0
  610. package/es/components/global-status/GlobalStatusDocs.js +186 -0
  611. package/es/components/global-status/GlobalStatusDocs.js.map +1 -0
  612. package/es/components/grid/ItemDocs.d.ts +2 -0
  613. package/es/components/grid/ItemDocs.js +13 -0
  614. package/es/components/grid/ItemDocs.js.map +1 -0
  615. package/es/components/heading/HeadingDocs.d.ts +2 -0
  616. package/es/components/heading/HeadingDocs.js +73 -0
  617. package/es/components/heading/HeadingDocs.js.map +1 -0
  618. package/es/components/help-button/HelpButtonDocs.d.ts +3 -0
  619. package/es/components/help-button/HelpButtonDocs.js +40 -0
  620. package/es/components/help-button/HelpButtonDocs.js.map +1 -0
  621. package/es/components/icon/IconDocs.d.ts +2 -0
  622. package/es/components/icon/IconDocs.js +53 -0
  623. package/es/components/icon/IconDocs.js.map +1 -0
  624. package/es/components/icon/IconPrimaryDocs.d.ts +2 -0
  625. package/es/components/icon/IconPrimaryDocs.js +18 -0
  626. package/es/components/icon/IconPrimaryDocs.js.map +1 -0
  627. package/es/components/info-card/InfoCard.d.ts +6 -1
  628. package/es/components/info-card/InfoCard.js +4 -3
  629. package/es/components/info-card/InfoCard.js.map +1 -1
  630. package/es/components/info-card/InfoCardDocs.js +8 -3
  631. package/es/components/info-card/InfoCardDocs.js.map +1 -1
  632. package/es/components/input/Input.d.ts +0 -21
  633. package/es/components/input/InputDocs.d.ts +1 -0
  634. package/es/components/input/InputDocs.js +35 -3
  635. package/es/components/input/InputDocs.js.map +1 -1
  636. package/es/components/input-masked/InputMasked.d.ts +0 -15
  637. package/es/components/input-masked/InputMaskedDocs.d.ts +2 -0
  638. package/es/components/input-masked/InputMaskedDocs.js +69 -0
  639. package/es/components/input-masked/InputMaskedDocs.js.map +1 -1
  640. package/es/components/input-masked/MultiInputMaskedDocs.d.ts +4 -0
  641. package/es/components/input-masked/MultiInputMaskedDocs.js +87 -0
  642. package/es/components/input-masked/MultiInputMaskedDocs.js.map +1 -0
  643. package/es/components/input-masked/style/dnb-input-masked.css +9 -0
  644. package/es/components/input-masked/style/dnb-input-masked.min.css +1 -1
  645. package/es/components/input-masked/style/dnb-input-masked.scss +12 -0
  646. package/es/components/input-masked/text-mask/InputModeNumber.d.ts +8 -0
  647. package/es/components/input-masked/text-mask/InputModeNumber.js +39 -9
  648. package/es/components/input-masked/text-mask/InputModeNumber.js.map +1 -1
  649. package/es/components/input-masked/text-mask/adjustCaretPosition.d.ts +2 -1
  650. package/es/components/input-masked/text-mask/adjustCaretPosition.js +3 -2
  651. package/es/components/input-masked/text-mask/adjustCaretPosition.js.map +1 -1
  652. package/es/components/input-masked/text-mask/createTextMaskInputElement.js +9 -3
  653. package/es/components/input-masked/text-mask/createTextMaskInputElement.js.map +1 -1
  654. package/es/components/modal/ModalDocs.d.ts +3 -0
  655. package/es/components/modal/ModalDocs.js +185 -0
  656. package/es/components/modal/ModalDocs.js.map +1 -0
  657. package/es/components/pagination/Pagination.d.ts +35 -33
  658. package/es/components/pagination/Pagination.js +2 -0
  659. package/es/components/pagination/Pagination.js.map +1 -1
  660. package/es/components/pagination/PaginationDocs.d.ts +3 -0
  661. package/es/components/pagination/PaginationDocs.js +185 -0
  662. package/es/components/pagination/PaginationDocs.js.map +1 -0
  663. package/es/components/pagination/PaginationHelpers.d.ts +0 -3
  664. package/es/components/pagination/PaginationInfinity.d.ts +0 -3
  665. package/es/components/pagination/PaginationProvider.js +1 -1
  666. package/es/components/pagination/PaginationProvider.js.map +1 -1
  667. package/es/components/radio/Radio.d.ts +12 -15
  668. package/es/components/radio/RadioDocs.d.ts +5 -0
  669. package/es/components/radio/RadioDocs.js +139 -0
  670. package/es/components/radio/RadioDocs.js.map +1 -0
  671. package/es/components/radio/RadioGroup.d.ts +0 -30
  672. package/es/components/section/Section.js +1 -6
  673. package/es/components/section/Section.js.map +1 -1
  674. package/es/components/section/SectionDocs.js +1 -1
  675. package/es/components/section/SectionDocs.js.map +1 -1
  676. package/es/components/skeleton/SkeletonDocs.d.ts +2 -0
  677. package/es/components/skeleton/SkeletonDocs.js +38 -0
  678. package/es/components/skeleton/SkeletonDocs.js.map +1 -0
  679. package/es/components/skeleton/SkeletonHelper.d.ts +0 -6
  680. package/es/components/skip-content/SkipContentDocs.d.ts +2 -0
  681. package/es/components/skip-content/SkipContentDocs.js +23 -0
  682. package/es/components/skip-content/SkipContentDocs.js.map +1 -0
  683. package/es/components/slider/SliderDocs.js +2 -2
  684. package/es/components/slider/SliderDocs.js.map +1 -1
  685. package/es/components/space/SpaceDocs.d.ts +3 -0
  686. package/es/components/space/SpaceDocs.js +55 -0
  687. package/es/components/space/SpaceDocs.js.map +1 -0
  688. package/es/components/switch/SwitchDocs.js +2 -2
  689. package/es/components/switch/SwitchDocs.js.map +1 -1
  690. package/es/components/tag/TagDocs.d.ts +4 -0
  691. package/es/components/tag/TagDocs.js +87 -0
  692. package/es/components/tag/TagDocs.js.map +1 -0
  693. package/es/components/textarea/Textarea.d.ts +0 -12
  694. package/es/components/textarea/TextareaDocs.d.ts +1 -0
  695. package/es/components/textarea/TextareaDocs.js +25 -3
  696. package/es/components/textarea/TextareaDocs.js.map +1 -1
  697. package/es/components/timeline/TimelineDocs.d.ts +3 -0
  698. package/es/components/timeline/TimelineDocs.js +60 -0
  699. package/es/components/timeline/TimelineDocs.js.map +1 -0
  700. package/es/components/toggle-button/ToggleButton.d.ts +0 -3
  701. package/es/components/toggle-button/ToggleButtonDocs.d.ts +1 -0
  702. package/es/components/toggle-button/ToggleButtonDocs.js +7 -0
  703. package/es/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  704. package/es/components/toggle-button/ToggleButtonGroup.d.ts +0 -3
  705. package/es/components/toggle-button/ToggleButtonGroupDocs.d.ts +1 -0
  706. package/es/components/toggle-button/ToggleButtonGroupDocs.js +8 -1
  707. package/es/components/toggle-button/ToggleButtonGroupDocs.js.map +1 -1
  708. package/es/components/tooltip/TooltipDocs.d.ts +2 -0
  709. package/es/components/tooltip/TooltipDocs.js +73 -0
  710. package/es/components/tooltip/TooltipDocs.js.map +1 -0
  711. package/es/components/upload/Upload.js +6 -4
  712. package/es/components/upload/Upload.js.map +1 -1
  713. package/es/components/upload/UploadDocs.js +5 -0
  714. package/es/components/upload/UploadDocs.js.map +1 -1
  715. package/es/components/upload/UploadFileList.js +3 -1
  716. package/es/components/upload/UploadFileList.js.map +1 -1
  717. package/es/components/upload/UploadFileListCell.d.ts +6 -1
  718. package/es/components/upload/UploadFileListCell.js +8 -5
  719. package/es/components/upload/UploadFileListCell.js.map +1 -1
  720. package/es/components/upload/types.d.ts +5 -0
  721. package/es/components/upload/types.js.map +1 -1
  722. package/es/components/upload/useUpload.d.ts +1 -0
  723. package/es/components/upload/useUpload.js +7 -1
  724. package/es/components/upload/useUpload.js.map +1 -1
  725. package/es/components/visually-hidden/VisuallyHiddenDocs.d.ts +2 -0
  726. package/es/components/visually-hidden/VisuallyHiddenDocs.js +13 -0
  727. package/es/components/visually-hidden/VisuallyHiddenDocs.js.map +1 -0
  728. package/es/extensions/forms/DataContext/At/AtDocs.d.ts +2 -0
  729. package/es/extensions/forms/DataContext/At/AtDocs.js +18 -0
  730. package/es/extensions/forms/DataContext/At/AtDocs.js.map +1 -0
  731. package/es/extensions/forms/DataContext/Context.d.ts +6 -5
  732. package/es/extensions/forms/DataContext/Context.js.map +1 -1
  733. package/es/extensions/forms/DataContext/Provider/Provider.js +28 -34
  734. package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  735. package/es/extensions/forms/Field/Date/Date.d.ts +1 -0
  736. package/es/extensions/forms/Field/Date/Date.js +2 -3
  737. package/es/extensions/forms/Field/Date/Date.js.map +1 -1
  738. package/es/extensions/forms/Field/Password/Password.js +2 -1
  739. package/es/extensions/forms/Field/Password/Password.js.map +1 -1
  740. package/es/extensions/forms/Field/Password/PasswordDocs.d.ts +1 -0
  741. package/es/extensions/forms/Field/Password/PasswordDocs.js +13 -1
  742. package/es/extensions/forms/Field/Password/PasswordDocs.js.map +1 -1
  743. package/es/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
  744. package/es/extensions/forms/Field/String/StringDocs.js +1 -1
  745. package/es/extensions/forms/Field/String/StringDocs.js.map +1 -1
  746. package/es/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  747. package/es/extensions/forms/Field/Upload/Upload.js +10 -2
  748. package/es/extensions/forms/Field/Upload/Upload.js.map +1 -1
  749. package/es/extensions/forms/Form/ButtonRow/ButtonRowDocs.d.ts +2 -0
  750. package/es/extensions/forms/Form/ButtonRow/ButtonRowDocs.js +13 -0
  751. package/es/extensions/forms/Form/ButtonRow/ButtonRowDocs.js.map +1 -0
  752. package/es/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  753. package/es/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  754. package/es/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
  755. package/es/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
  756. package/es/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
  757. package/es/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
  758. package/es/extensions/forms/Form/Visibility/useVisibility.js +10 -14
  759. package/es/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
  760. package/es/extensions/forms/Value/Date/Date.d.ts +0 -6
  761. package/es/extensions/forms/Value/Date/Date.js +13 -34
  762. package/es/extensions/forms/Value/Date/Date.js.map +1 -1
  763. package/es/extensions/forms/Wizard/Buttons/ButtonsDocs.d.ts +2 -0
  764. package/es/extensions/forms/Wizard/Buttons/ButtonsDocs.js +8 -0
  765. package/es/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -0
  766. package/es/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
  767. package/es/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
  768. package/es/extensions/forms/hooks/useFieldProps.js +8 -5
  769. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  770. package/es/extensions/payment-card/PaymentCard.d.ts +7 -7
  771. package/es/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
  772. package/es/extensions/payment-card/PaymentCardDocs.js +199 -0
  773. package/es/extensions/payment-card/PaymentCardDocs.js.map +1 -0
  774. package/es/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
  775. package/es/fragments/scroll-view/ScrollViewDocs.js +13 -0
  776. package/es/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
  777. package/es/fragments/text-counter/TextCounterDocs.d.ts +2 -0
  778. package/es/fragments/text-counter/TextCounterDocs.js +23 -0
  779. package/es/fragments/text-counter/TextCounterDocs.js.map +1 -0
  780. package/es/shared/Eufemia.d.ts +1 -1
  781. package/es/shared/Eufemia.js +2 -2
  782. package/es/shared/Eufemia.js.map +1 -1
  783. package/es/shared/MediaQueryDocs.d.ts +2 -0
  784. package/es/shared/MediaQueryDocs.js +28 -0
  785. package/es/shared/MediaQueryDocs.js.map +1 -0
  786. package/es/shared/ThemeDocs.d.ts +2 -0
  787. package/es/shared/ThemeDocs.js +33 -0
  788. package/es/shared/ThemeDocs.js.map +1 -0
  789. package/es/shared/helpers.d.ts +1 -0
  790. package/es/shared/helpers.js +6 -0
  791. package/es/shared/helpers.js.map +1 -1
  792. package/es/shared/locales/en-GB.d.ts +1 -0
  793. package/es/shared/locales/en-GB.js +1 -0
  794. package/es/shared/locales/en-GB.js.map +1 -1
  795. package/es/shared/locales/en-US.d.ts +1 -0
  796. package/es/shared/locales/index.d.ts +2 -0
  797. package/es/shared/locales/nb-NO.d.ts +1 -0
  798. package/es/shared/locales/nb-NO.js +1 -0
  799. package/es/shared/locales/nb-NO.js.map +1 -1
  800. package/es/shared/locales/sv-SE.d.ts +1 -0
  801. package/es/shared/locales/sv-SE.js +3 -2
  802. package/es/shared/locales/sv-SE.js.map +1 -1
  803. package/es/style/core/scopes.scss +1 -1
  804. package/es/style/dnb-ui-basis.css +1 -1
  805. package/es/style/dnb-ui-basis.min.css +1 -1
  806. package/es/style/dnb-ui-body.css +1 -1
  807. package/es/style/dnb-ui-body.min.css +1 -1
  808. package/es/style/dnb-ui-components.css +21 -0
  809. package/es/style/dnb-ui-components.min.css +1 -1
  810. package/es/style/dnb-ui-core.css +1 -1
  811. package/es/style/dnb-ui-core.min.css +1 -1
  812. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +26 -5
  813. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
  814. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +26 -5
  815. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
  816. package/es/style/themes/theme-ui/ui-theme-components.css +26 -5
  817. package/es/style/themes/theme-ui/ui-theme-components.min.css +2 -2
  818. package/esm/dnb-ui-basis.min.mjs +1 -1
  819. package/esm/dnb-ui-components.min.mjs +1 -1
  820. package/esm/dnb-ui-elements.min.mjs +1 -1
  821. package/esm/dnb-ui-extensions.min.mjs +1 -1
  822. package/esm/dnb-ui-lib.min.mjs +1 -1
  823. package/extensions/forms/DataContext/At/AtDocs.d.ts +2 -0
  824. package/extensions/forms/DataContext/At/AtDocs.js +18 -0
  825. package/extensions/forms/DataContext/At/AtDocs.js.map +1 -0
  826. package/extensions/forms/DataContext/Context.d.ts +6 -5
  827. package/extensions/forms/DataContext/Context.js.map +1 -1
  828. package/extensions/forms/DataContext/Provider/Provider.js +29 -35
  829. package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  830. package/extensions/forms/Field/Date/Date.d.ts +1 -0
  831. package/extensions/forms/Field/Date/Date.js +2 -3
  832. package/extensions/forms/Field/Date/Date.js.map +1 -1
  833. package/extensions/forms/Field/Password/Password.js +2 -1
  834. package/extensions/forms/Field/Password/Password.js.map +1 -1
  835. package/extensions/forms/Field/Password/PasswordDocs.d.ts +1 -0
  836. package/extensions/forms/Field/Password/PasswordDocs.js +13 -1
  837. package/extensions/forms/Field/Password/PasswordDocs.js.map +1 -1
  838. package/extensions/forms/Field/Provider/useFieldProvider.d.ts +9 -3
  839. package/extensions/forms/Field/String/StringDocs.js +1 -1
  840. package/extensions/forms/Field/String/StringDocs.js.map +1 -1
  841. package/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  842. package/extensions/forms/Field/Upload/Upload.js +10 -2
  843. package/extensions/forms/Field/Upload/Upload.js.map +1 -1
  844. package/extensions/forms/Form/ButtonRow/ButtonRowDocs.d.ts +2 -0
  845. package/extensions/forms/Form/ButtonRow/ButtonRowDocs.js +13 -0
  846. package/extensions/forms/Form/ButtonRow/ButtonRowDocs.js.map +1 -0
  847. package/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  848. package/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  849. package/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js +4 -4
  850. package/extensions/forms/Form/SubmitConfirmation/SubmitConfirmation.js.map +1 -1
  851. package/extensions/forms/Form/Visibility/VisibilityDocs.js +1 -1
  852. package/extensions/forms/Form/Visibility/VisibilityDocs.js.map +1 -1
  853. package/extensions/forms/Form/Visibility/useVisibility.js +10 -14
  854. package/extensions/forms/Form/Visibility/useVisibility.js.map +1 -1
  855. package/extensions/forms/Value/Date/Date.d.ts +0 -6
  856. package/extensions/forms/Value/Date/Date.js +14 -36
  857. package/extensions/forms/Value/Date/Date.js.map +1 -1
  858. package/extensions/forms/Wizard/Buttons/ButtonsDocs.d.ts +2 -0
  859. package/extensions/forms/Wizard/Buttons/ButtonsDocs.js +8 -0
  860. package/extensions/forms/Wizard/Buttons/ButtonsDocs.js.map +1 -0
  861. package/extensions/forms/Wizard/Container/WizardContainer.js +2 -2
  862. package/extensions/forms/Wizard/Container/WizardContainer.js.map +1 -1
  863. package/extensions/forms/hooks/useFieldProps.js +8 -5
  864. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  865. package/extensions/payment-card/PaymentCard.d.ts +7 -7
  866. package/extensions/payment-card/PaymentCardDocs.d.ts +5 -0
  867. package/extensions/payment-card/PaymentCardDocs.js +199 -0
  868. package/extensions/payment-card/PaymentCardDocs.js.map +1 -0
  869. package/fragments/scroll-view/ScrollViewDocs.d.ts +2 -0
  870. package/fragments/scroll-view/ScrollViewDocs.js +13 -0
  871. package/fragments/scroll-view/ScrollViewDocs.js.map +1 -0
  872. package/fragments/text-counter/TextCounterDocs.d.ts +2 -0
  873. package/fragments/text-counter/TextCounterDocs.js +23 -0
  874. package/fragments/text-counter/TextCounterDocs.js.map +1 -0
  875. package/package.json +1 -1
  876. package/shared/Eufemia.d.ts +1 -1
  877. package/shared/Eufemia.js +2 -2
  878. package/shared/Eufemia.js.map +1 -1
  879. package/shared/MediaQueryDocs.d.ts +2 -0
  880. package/shared/MediaQueryDocs.js +28 -0
  881. package/shared/MediaQueryDocs.js.map +1 -0
  882. package/shared/ThemeDocs.d.ts +2 -0
  883. package/shared/ThemeDocs.js +33 -0
  884. package/shared/ThemeDocs.js.map +1 -0
  885. package/shared/helpers.d.ts +1 -0
  886. package/shared/helpers.js +6 -0
  887. package/shared/helpers.js.map +1 -1
  888. package/shared/locales/en-GB.d.ts +1 -0
  889. package/shared/locales/en-GB.js +1 -0
  890. package/shared/locales/en-GB.js.map +1 -1
  891. package/shared/locales/en-US.d.ts +1 -0
  892. package/shared/locales/index.d.ts +2 -0
  893. package/shared/locales/nb-NO.d.ts +1 -0
  894. package/shared/locales/nb-NO.js +1 -0
  895. package/shared/locales/nb-NO.js.map +1 -1
  896. package/shared/locales/sv-SE.d.ts +1 -0
  897. package/shared/locales/sv-SE.js +3 -2
  898. package/shared/locales/sv-SE.js.map +1 -1
  899. package/style/core/scopes.scss +1 -1
  900. package/style/dnb-ui-basis.css +1 -1
  901. package/style/dnb-ui-basis.min.css +1 -1
  902. package/style/dnb-ui-body.css +1 -1
  903. package/style/dnb-ui-body.min.css +1 -1
  904. package/style/dnb-ui-components.css +21 -0
  905. package/style/dnb-ui-components.min.css +1 -1
  906. package/style/dnb-ui-core.css +1 -1
  907. package/style/dnb-ui-core.min.css +1 -1
  908. package/style/themes/theme-eiendom/eiendom-theme-components.css +26 -5
  909. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +2 -2
  910. package/style/themes/theme-sbanken/sbanken-theme-components.css +26 -5
  911. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +2 -2
  912. package/style/themes/theme-ui/ui-theme-components.css +26 -5
  913. package/style/themes/theme-ui/ui-theme-components.min.css +2 -2
  914. package/umd/dnb-ui-basis.min.js +1 -1
  915. package/umd/dnb-ui-components.min.js +1 -1
  916. package/umd/dnb-ui-elements.min.js +1 -1
  917. package/umd/dnb-ui-extensions.min.js +1 -1
  918. package/umd/dnb-ui-lib.min.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InputDocs.js","names":["inputProperties","exports","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"],"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,GAAAC,OAAA,CAAAD,eAAA,GAAG;EACnDE,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,MA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,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","ignoreList":[]}
1
+ {"version":3,"file":"InputDocs.js","names":["inputProperties","exports","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","inputEvents","on_change","on_focus","on_key_down","on_blur","on_submit","on_clear"],"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: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: ['error', 'info'],\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n 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.RefObject',\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\nexport const inputEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'will be called on focus set by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_key_down: {\n doc: 'will be called on key down by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'will be called on blur set by the user. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_submit: {\n doc: 'will be called on submit button click. Returns `{ value, event }`.',\n type: 'function',\n status: 'optional',\n },\n on_clear: {\n doc: 'will be called on a clear button click. Returns `{ value, previousValue, event }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,eAAqC,GAAAC,OAAA,CAAAD,eAAA,GAAG;EACnDE,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,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;IAClCC,MAAM,EAAE;EACV,CAAC;EACDK,YAAY,EAAE;IACZP,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACvBC,MAAM,EAAE;EACV,CAAC;EACDM,YAAY,EAAE;IACZR,GAAG,EAAE,2DAA2D;IAChEC,IAAI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AyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,MAAM4B,WAAiC,GAAAhC,OAAA,CAAAgC,WAAA,GAAG;EAC/CC,SAAS,EAAE;IACT/B,GAAG,EAAE,0IAA0I;IAC/IC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD8B,QAAQ,EAAE;IACRhC,GAAG,EAAE,sEAAsE;IAC3EC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD+B,WAAW,EAAE;IACXjC,GAAG,EAAE,qEAAqE;IAC1EC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDgC,OAAO,EAAE;IACPlC,GAAG,EAAE,qEAAqE;IAC1EC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDiC,SAAS,EAAE;IACTnC,GAAG,EAAE,oEAAoE;IACzEC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDkC,QAAQ,EAAE;IACRpC,GAAG,EAAE,oFAAoF;IACzFC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -104,21 +104,9 @@ export interface InputMaskedProps
104
104
  */
105
105
  placeholder_char?: string;
106
106
  inner_ref?: React.Ref;
107
- /**
108
- * Will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.
109
- */
110
107
  on_change?: (...args: any[]) => any;
111
- /**
112
- * Will be called on submit button click. Returns `{ value, event }`.
113
- */
114
108
  on_submit?: (...args: any[]) => any;
115
- /**
116
- * Will be called on focus set by the user. Returns `{ value, event }`.
117
- */
118
109
  on_focus?: (...args: any[]) => any;
119
- /**
120
- * Will be called on blur set by the user. Returns `{ value, event }`.
121
- */
122
110
  on_blur?: (...args: any[]) => any;
123
111
  on_submit_focus?: (...args: any[]) => any;
124
112
  on_submit_blur?: (...args: any[]) => any;
@@ -141,9 +129,6 @@ export interface InputMaskedProps
141
129
  placeholder?: string;
142
130
  clear?: boolean;
143
131
  keep_placeholder?: boolean;
144
- /**
145
- * (string): What to display after the amount. Defaults to an empty string.
146
- */
147
132
  suffix?: InputMaskedSuffix;
148
133
  align?: InputMaskedAlign;
149
134
  selectall?: boolean;
@@ -1,2 +1,4 @@
1
1
  import { PropertiesTableProps } from '../../shared/types';
2
2
  export declare const inputMaskedProperties: PropertiesTableProps;
3
+ export declare const inputMaskedEvents: PropertiesTableProps;
4
+ export declare const inputMaskedMaskOptionsProperties: PropertiesTableProps;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.inputMaskedProperties = void 0;
6
+ exports.inputMaskedProperties = exports.inputMaskedMaskOptionsProperties = exports.inputMaskedEvents = void 0;
7
7
  const inputMaskedProperties = exports.inputMaskedProperties = {
8
8
  as_number: {
9
9
  doc: 'Set to `true` to automatically set a number mask based on the given or inherited locale.',
@@ -81,4 +81,73 @@ const inputMaskedProperties = exports.inputMaskedProperties = {
81
81
  status: 'optional'
82
82
  }
83
83
  };
84
+ const inputMaskedEvents = exports.inputMaskedEvents = {
85
+ on_change: {
86
+ doc: 'will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, numberValue, cleanedValue, event }`.',
87
+ type: 'function',
88
+ status: 'optional'
89
+ },
90
+ '[Input](/uilib/components/input/events)': {
91
+ doc: 'All `Input` events are supported.',
92
+ type: 'Various',
93
+ status: 'optional'
94
+ }
95
+ };
96
+ const inputMaskedMaskOptionsProperties = exports.inputMaskedMaskOptionsProperties = {
97
+ prefix: {
98
+ doc: 'What to display before the amount. Defaults to an empty string.',
99
+ type: 'string',
100
+ status: 'optional'
101
+ },
102
+ suffix: {
103
+ doc: 'What to display after the amount. Defaults to an empty string.',
104
+ type: 'string',
105
+ status: 'optional'
106
+ },
107
+ includeThousandsSeparator: {
108
+ doc: 'Whether or not to separate thousands. Defaults to `true`.',
109
+ type: 'boolean',
110
+ status: 'optional'
111
+ },
112
+ thousandsSeparatorSymbol: {
113
+ doc: "Character with which to separate thousands. Defaults to `' '`.",
114
+ type: 'string',
115
+ status: 'optional'
116
+ },
117
+ allowDecimal: {
118
+ doc: 'Whether or not to allow the user to enter a fraction with the amount. Defaults to `false`.',
119
+ type: 'boolean',
120
+ status: 'optional'
121
+ },
122
+ decimalSymbol: {
123
+ doc: "Character that will act as a decimal point. Defaults to `','`.",
124
+ type: 'string',
125
+ status: 'optional'
126
+ },
127
+ decimalLimit: {
128
+ doc: 'How many digits to allow after the decimal. Defaults to `2`.',
129
+ type: 'number',
130
+ status: 'optional'
131
+ },
132
+ integerLimit: {
133
+ doc: 'Limit the length of the integer number. Defaults to `null` for unlimited.',
134
+ type: 'number',
135
+ status: 'optional'
136
+ },
137
+ requireDecimal: {
138
+ doc: 'Whether or not to always include a decimal point and placeholder for decimal digits after the integer. Defaults to `false`.',
139
+ type: 'boolean',
140
+ status: 'optional'
141
+ },
142
+ allowNegative: {
143
+ doc: 'Whether or not to allow negative numbers. Defaults to `true`.',
144
+ type: 'boolean',
145
+ status: 'optional'
146
+ },
147
+ disallowLeadingZeroes: {
148
+ doc: 'Whether or not to allow leading zeroes. Defaults to `false`.',
149
+ type: 'boolean',
150
+ status: 'optional'
151
+ }
152
+ };
84
153
  //# sourceMappingURL=InputMaskedDocs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputMaskedDocs.js","names":["inputMaskedProperties","exports","as_number","doc","type","status","as_percent","as_currency","mask_options","number_mask","currency_mask","number_format","locale","mask","show_mask","show_guide","placeholder_char","keep_char_positions"],"sources":["../../../../src/components/input-masked/InputMaskedDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputMaskedProperties: PropertiesTableProps = {\n as_number: {\n doc: 'Set to `true` to automatically set a number mask based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n as_percent: {\n doc: 'Set to `true` to automatically set a number mask with a percentage sign based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n as_currency: {\n doc: 'Set to `true` to use `NOK` or give it a currency code e.g. `USD` to automatically set a currency mask based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n mask_options: {\n doc: 'Use it to manipulate internal masks. You can use it instead of e.g. `number_mask` or `currency_mask`. All options are listed below.',\n type: 'object',\n status: 'optional',\n },\n number_mask: {\n doc: 'Set to `true` to enable the default numbers formatting – or give an `object` containing the number mask properties. More details below. Can be a JSON string as well, containing the number mask properties. Is disabled by default.',\n type: ['boolean', 'object'],\n status: 'optional',\n },\n currency_mask: {\n doc: 'Set to `true` or set the _valuta_ (currency_mask=\"kr\") to enable a custom currency mask – or give an `object` containing the number mask properties. More details below. Can be a JSON string as well, containing the number mask properties. Is disabled by default. Defaults to `kr`.',\n type: ['boolean', 'object'],\n status: 'optional',\n },\n number_format: {\n doc: 'Use an object with [NumberFormat](/uilib/components/number-format/properties).',\n type: 'object',\n status: 'optional',\n },\n locale: {\n doc: 'Define the locale to be used in the `as_number` or `as_currency` masked. It will be inherited from the [Eufemia Provider](/uilib/usage/customisation/provider) if not given. Defaults to `nb-NO`.',\n type: 'string',\n status: 'optional',\n },\n mask: {\n doc: 'A mask can be defined both as a [RegExp style of characters](https://github.com/text-mask/text-mask/blob/master/componentDocumentation.md#readme) or a callback function. Example below. Defaults to number mask.',\n type: ['RegExp', 'function'],\n status: 'optional',\n },\n show_mask: {\n doc: 'Show mask when input is empty and has no focus. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n show_guide: {\n doc: \"When `false` is given, it doesn't print out placeholder characters and only adds mask characters when the user reaches them as they're typing. Defaults to `true`.\",\n type: 'boolean',\n status: 'optional',\n },\n placeholder_char: {\n doc: 'The placeholder character represents the fillable spot in the mask (e.g. `_`). Defaults to invisible space.',\n type: 'string',\n status: 'optional',\n },\n keep_char_positions: {\n doc: 'When `true`, adding or deleting characters will not affect the positions of existing characters. Defaults to `false`.',\n type: 'boolean',\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 '[Input](/uilib/components/input/properties)': {\n doc: 'All `Input` properties are supported.',\n type: 'Various',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,qBAA2C,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACzDE,SAAS,EAAE;IACTC,GAAG,EAAE,0FAA0F;IAC/FC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDC,UAAU,EAAE;IACVH,GAAG,EAAE,iHAAiH;IACtHC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDE,WAAW,EAAE;IACXJ,GAAG,EAAE,+IAA+I;IACpJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,YAAY,EAAE;IACZL,GAAG,EAAE,qIAAqI;IAC1IC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,WAAW,EAAE;IACXN,GAAG,EAAE,sOAAsO;IAC3OC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC3BC,MAAM,EAAE;EACV,CAAC;EACDK,aAAa,EAAE;IACbP,GAAG,EAAE,yRAAyR;IAC9RC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC3BC,MAAM,EAAE;EACV,CAAC;EACDM,aAAa,EAAE;IACbR,GAAG,EAAE,gFAAgF;IACrFC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDO,MAAM,EAAE;IACNT,GAAG,EAAE,mMAAmM;IACxMC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDQ,IAAI,EAAE;IACJV,GAAG,EAAE,mNAAmN;IACxNC,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC5BC,MAAM,EAAE;EACV,CAAC;EACDS,SAAS,EAAE;IACTX,GAAG,EAAE,sEAAsE;IAC3EC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDU,UAAU,EAAE;IACVZ,GAAG,EAAE,oKAAoK;IACzKC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDW,gBAAgB,EAAE;IAChBb,GAAG,EAAE,6GAA6G;IAClHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDY,mBAAmB,EAAE;IACnBd,GAAG,EAAE,uHAAuH;IAC5HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,yCAAyC,EAAE;IACzCF,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC1BC,MAAM,EAAE;EACV,CAAC;EACD,6CAA6C,EAAE;IAC7CF,GAAG,EAAE,uCAAuC;IAC5CC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"InputMaskedDocs.js","names":["inputMaskedProperties","exports","as_number","doc","type","status","as_percent","as_currency","mask_options","number_mask","currency_mask","number_format","locale","mask","show_mask","show_guide","placeholder_char","keep_char_positions","inputMaskedEvents","on_change","inputMaskedMaskOptionsProperties","prefix","suffix","includeThousandsSeparator","thousandsSeparatorSymbol","allowDecimal","decimalSymbol","decimalLimit","integerLimit","requireDecimal","allowNegative","disallowLeadingZeroes"],"sources":["../../../../src/components/input-masked/InputMaskedDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const inputMaskedProperties: PropertiesTableProps = {\n as_number: {\n doc: 'Set to `true` to automatically set a number mask based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n as_percent: {\n doc: 'Set to `true` to automatically set a number mask with a percentage sign based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n as_currency: {\n doc: 'Set to `true` to use `NOK` or give it a currency code e.g. `USD` to automatically set a currency mask based on the given or inherited locale.',\n type: 'boolean',\n status: 'optional',\n },\n mask_options: {\n doc: 'Use it to manipulate internal masks. You can use it instead of e.g. `number_mask` or `currency_mask`. All options are listed below.',\n type: 'object',\n status: 'optional',\n },\n number_mask: {\n doc: 'Set to `true` to enable the default numbers formatting – or give an `object` containing the number mask properties. More details below. Can be a JSON string as well, containing the number mask properties. Is disabled by default.',\n type: ['boolean', 'object'],\n status: 'optional',\n },\n currency_mask: {\n doc: 'Set to `true` or set the _valuta_ (currency_mask=\"kr\") to enable a custom currency mask – or give an `object` containing the number mask properties. More details below. Can be a JSON string as well, containing the number mask properties. Is disabled by default. Defaults to `kr`.',\n type: ['boolean', 'object'],\n status: 'optional',\n },\n number_format: {\n doc: 'Use an object with [NumberFormat](/uilib/components/number-format/properties).',\n type: 'object',\n status: 'optional',\n },\n locale: {\n doc: 'Define the locale to be used in the `as_number` or `as_currency` masked. It will be inherited from the [Eufemia Provider](/uilib/usage/customisation/provider) if not given. Defaults to `nb-NO`.',\n type: 'string',\n status: 'optional',\n },\n mask: {\n doc: 'A mask can be defined both as a [RegExp style of characters](https://github.com/text-mask/text-mask/blob/master/componentDocumentation.md#readme) or a callback function. Example below. Defaults to number mask.',\n type: ['RegExp', 'function'],\n status: 'optional',\n },\n show_mask: {\n doc: 'Show mask when input is empty and has no focus. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n show_guide: {\n doc: \"When `false` is given, it doesn't print out placeholder characters and only adds mask characters when the user reaches them as they're typing. Defaults to `true`.\",\n type: 'boolean',\n status: 'optional',\n },\n placeholder_char: {\n doc: 'The placeholder character represents the fillable spot in the mask (e.g. `_`). Defaults to invisible space.',\n type: 'string',\n status: 'optional',\n },\n keep_char_positions: {\n doc: 'When `true`, adding or deleting characters will not affect the positions of existing characters. Defaults to `false`.',\n type: 'boolean',\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 '[Input](/uilib/components/input/properties)': {\n doc: 'All `Input` properties are supported.',\n type: 'Various',\n status: 'optional',\n },\n}\n\nexport const inputMaskedEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, numberValue, cleanedValue, event }`.',\n type: 'function',\n status: 'optional',\n },\n '[Input](/uilib/components/input/events)': {\n doc: 'All `Input` events are supported.',\n type: 'Various',\n status: 'optional',\n },\n}\n\nexport const inputMaskedMaskOptionsProperties: PropertiesTableProps = {\n prefix: {\n doc: 'What to display before the amount. Defaults to an empty string.',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'What to display after the amount. Defaults to an empty string.',\n type: 'string',\n status: 'optional',\n },\n includeThousandsSeparator: {\n doc: 'Whether or not to separate thousands. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n thousandsSeparatorSymbol: {\n doc: \"Character with which to separate thousands. Defaults to `' '`.\",\n type: 'string',\n status: 'optional',\n },\n allowDecimal: {\n doc: 'Whether or not to allow the user to enter a fraction with the amount. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n decimalSymbol: {\n doc: \"Character that will act as a decimal point. Defaults to `','`.\",\n type: 'string',\n status: 'optional',\n },\n decimalLimit: {\n doc: 'How many digits to allow after the decimal. Defaults to `2`.',\n type: 'number',\n status: 'optional',\n },\n integerLimit: {\n doc: 'Limit the length of the integer number. Defaults to `null` for unlimited.',\n type: 'number',\n status: 'optional',\n },\n requireDecimal: {\n doc: 'Whether or not to always include a decimal point and placeholder for decimal digits after the integer. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n allowNegative: {\n doc: 'Whether or not to allow negative numbers. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n disallowLeadingZeroes: {\n doc: 'Whether or not to allow leading zeroes. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,qBAA2C,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACzDE,SAAS,EAAE;IACTC,GAAG,EAAE,0FAA0F;IAC/FC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDC,UAAU,EAAE;IACVH,GAAG,EAAE,iHAAiH;IACtHC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDE,WAAW,EAAE;IACXJ,GAAG,EAAE,+IAA+I;IACpJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,YAAY,EAAE;IACZL,GAAG,EAAE,qIAAqI;IAC1IC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,WAAW,EAAE;IACXN,GAAG,EAAE,sOAAsO;IAC3OC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC3BC,MAAM,EAAE;EACV,CAAC;EACDK,aAAa,EAAE;IACbP,GAAG,EAAE,yRAAyR;IAC9RC,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC3BC,MAAM,EAAE;EACV,CAAC;EACDM,aAAa,EAAE;IACbR,GAAG,EAAE,gFAAgF;IACrFC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDO,MAAM,EAAE;IACNT,GAAG,EAAE,mMAAmM;IACxMC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDQ,IAAI,EAAE;IACJV,GAAG,EAAE,mNAAmN;IACxNC,IAAI,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC5BC,MAAM,EAAE;EACV,CAAC;EACDS,SAAS,EAAE;IACTX,GAAG,EAAE,sEAAsE;IAC3EC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDU,UAAU,EAAE;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AAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDoB,YAAY,EAAE;IACZtB,GAAG,EAAE,4FAA4F;IACjGC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDqB,aAAa,EAAE;IACbvB,GAAG,EAAE,gEAAgE;IACrEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDsB,YAAY,EAAE;IACZxB,GAAG,EAAE,8DAA8D;IACnEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDuB,YAAY,EAAE;IACZzB,GAAG,EAAE,2EAA2E;IAChFC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDwB,cAAc,EAAE;IACd1B,GAAG,EAAE,6HAA6H;IAClIC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDyB,aAAa,EAAE;IACb3B,GAAG,EAAE,+DAA+D;IACpEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD0B,qBAAqB,EAAE;IACrB5B,GAAG,EAAE,8DAA8D;IACnEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ import { PropertiesTableProps } from '../../shared/types';
2
+ export declare const multiInputMaskedEvents: PropertiesTableProps;
3
+ export declare const multiInputMaskedProperties: PropertiesTableProps;
4
+ export declare const multiInputMaskedInputsProperties: PropertiesTableProps;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.multiInputMaskedProperties = exports.multiInputMaskedInputsProperties = exports.multiInputMaskedEvents = void 0;
7
+ const multiInputMaskedEvents = exports.multiInputMaskedEvents = {
8
+ onChange: {
9
+ doc: "runs when an input value changes. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.",
10
+ type: 'function',
11
+ status: 'optional'
12
+ },
13
+ onFocus: {
14
+ doc: "runs when an input gains focus. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.",
15
+ type: 'function',
16
+ status: 'optional'
17
+ },
18
+ onBlur: {
19
+ doc: "runs when an input lose focus. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.",
20
+ type: 'function',
21
+ status: 'optional'
22
+ }
23
+ };
24
+ const multiInputMaskedProperties = exports.multiInputMaskedProperties = {
25
+ label: {
26
+ doc: '`legend` element describing the group of inputs inside the components.',
27
+ type: 'React.ReactNode',
28
+ status: 'optional'
29
+ },
30
+ labelDirection: {
31
+ doc: 'Use to change the label layout direction. Defaults to `horizontal`.',
32
+ type: ['horizontal', 'vertical'],
33
+ status: 'optional'
34
+ },
35
+ inputs: {
36
+ doc: "array of [MultiInputMaskInput](/uilib/components/input-masked/properties/#multiinputmask-inputs-properties) that defines the inputs in the component. The id's defined here is used to map input value to correct property in `values` parameters used in `onChange`.",
37
+ type: 'array',
38
+ status: 'optional'
39
+ },
40
+ values: {
41
+ doc: "values used for the inputs in the component. Expects an object with keys matching the id's defined in `inputs`.",
42
+ type: 'object',
43
+ status: 'optional'
44
+ },
45
+ delimiter: {
46
+ doc: 'character that separates the input inputs.',
47
+ type: 'string',
48
+ status: 'optional'
49
+ },
50
+ stretch: {
51
+ doc: 'use `true` in order to stretch the input to the available space. Defaults to `false`.',
52
+ type: 'boolean',
53
+ status: 'optional'
54
+ },
55
+ status: {
56
+ 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.`.',
57
+ type: ['React.ReactNode'],
58
+ status: 'optional'
59
+ },
60
+ statusState: {
61
+ doc: "defines the state of the status. It's two statuses [error, info]. Defaults to error.",
62
+ type: ['error', 'info'],
63
+ status: 'optional'
64
+ },
65
+ suffix: {
66
+ 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.',
67
+ type: 'React.ReactNode',
68
+ status: 'optional'
69
+ }
70
+ };
71
+ const multiInputMaskedInputsProperties = exports.multiInputMaskedInputsProperties = {
72
+ id: {
73
+ doc: '(string) Defines input id. This id is also used to map the input value to the correct property on the objects used for `values` and `onChange` parameters.',
74
+ type: 'string',
75
+ status: 'optional'
76
+ },
77
+ label: {
78
+ doc: 'Label used by the input. The label itself is hidden, but required to uphold accessibility standards for screen readers.',
79
+ type: 'string',
80
+ status: 'optional'
81
+ },
82
+ mask: {
83
+ doc: 'Each RegExp item in the array defines what the mask should be for each subsequent character in the input. The array length sets the inputs size/character limit.',
84
+ type: 'array',
85
+ status: 'optional'
86
+ },
87
+ placeholderCharacter: {
88
+ doc: 'Sets the placeholder character used for the input.',
89
+ type: 'string',
90
+ status: 'optional'
91
+ }
92
+ };
93
+ //# sourceMappingURL=MultiInputMaskedDocs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiInputMaskedDocs.js","names":["multiInputMaskedEvents","exports","onChange","doc","type","status","onFocus","onBlur","multiInputMaskedProperties","label","labelDirection","inputs","values","delimiter","stretch","statusState","suffix","multiInputMaskedInputsProperties","id","mask","placeholderCharacter"],"sources":["../../../../src/components/input-masked/MultiInputMaskedDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const multiInputMaskedEvents: PropertiesTableProps = {\n onChange: {\n doc: \"runs when an input value changes. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.\",\n type: 'function',\n status: 'optional',\n },\n onFocus: {\n doc: \"runs when an input gains focus. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.\",\n type: 'function',\n status: 'optional',\n },\n onBlur: {\n doc: \"runs when an input lose focus. Has an object parameter with keys matching the id's defined in `inputs`, and values of string. E.g: `{month: string, year: string}`.\",\n type: 'function',\n status: 'optional',\n },\n}\n\nexport const multiInputMaskedProperties: PropertiesTableProps = {\n label: {\n doc: '`legend` element describing the group of inputs inside the components.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n labelDirection: {\n doc: 'Use to change the label layout direction. Defaults to `horizontal`.',\n type: ['horizontal', 'vertical'],\n status: 'optional',\n },\n inputs: {\n doc: \"array of [MultiInputMaskInput](/uilib/components/input-masked/properties/#multiinputmask-inputs-properties) that defines the inputs in the component. The id's defined here is used to map input value to correct property in `values` parameters used in `onChange`.\",\n type: 'array',\n status: 'optional',\n },\n values: {\n doc: \"values used for the inputs in the component. Expects an object with keys matching the id's defined in `inputs`.\",\n type: 'object',\n status: 'optional',\n },\n delimiter: {\n doc: 'character that separates the input inputs.',\n type: 'string',\n status: 'optional',\n },\n stretch: {\n doc: 'use `true` in order to stretch the input to the available space. Defaults to `false`.',\n type: 'boolean',\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: ['React.ReactNode'],\n status: 'optional',\n },\n statusState: {\n doc: \"defines the state of the status. It's two statuses [error, info]. Defaults to error.\",\n type: ['error', 'info'],\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: 'React.ReactNode',\n status: 'optional',\n },\n}\n\nexport const multiInputMaskedInputsProperties: PropertiesTableProps = {\n id: {\n doc: '(string) Defines input id. This id is also used to map the input value to the correct property on the objects used for `values` and `onChange` parameters.',\n type: 'string',\n status: 'optional',\n },\n label: {\n doc: 'Label used by the input. The label itself is hidden, but required to uphold accessibility standards for screen readers.',\n type: 'string',\n status: 'optional',\n },\n mask: {\n doc: 'Each RegExp item in the array defines what the mask should be for each subsequent character in the input. The array length sets the inputs size/character limit.',\n type: 'array',\n status: 'optional',\n },\n placeholderCharacter: {\n doc: 'Sets the placeholder character used for the input.',\n type: 'string',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,sBAA4C,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EAC1DE,QAAQ,EAAE;IACRC,GAAG,EAAE,wKAAwK;IAC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sJ;IAC3JC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,MAAMY,gCAAsD,GAAAhB,OAAA,CAAAgB,gCAAA,GAAG;EACpEC,EAAE,EAAE;IACFf,GAAG,EAAE,4JAA4J;IACjKC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,KAAK,EAAE;IACLN,GAAG,EAAE,yHAAyH;IAC9HC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDc,IAAI,EAAE;IACJhB,GAAG,EAAE,kKAAkK;IACvKC,IAAI,EAAE,OAAO;IACbC,MAAM,EAAE;EACV,CAAC;EACDe,oBAAoB,EAAE;IACpBjB,GAAG,EAAE,oDAAoD;IACzDC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -11,6 +11,15 @@
11
11
  .dnb-input-masked input::placeholder {
12
12
  color: inherit;
13
13
  }
14
+ .dnb-input-masked--hide-controls[type=number]::-webkit-outer-spin-button, .dnb-input-masked--hide-controls[type=number]::-webkit-inner-spin-button {
15
+ -webkit-appearance: none;
16
+ appearance: none;
17
+ margin: 0;
18
+ }
19
+ .dnb-input-masked--hide-controls[type=number] {
20
+ -webkit-appearance: textfield;
21
+ appearance: textfield;
22
+ }
14
23
 
15
24
  .dnb-multi-input-mask__fieldset {
16
25
  padding: 0;
@@ -1 +1 @@
1
- .dnb-input-masked--guide{font-family:var(--font-family-monospace)}.dnb-input-masked input::placeholder{color:inherit}.dnb-multi-input-mask__fieldset{border:none;padding:0}.dnb-multi-input-mask__fieldset:not([class*=space__top]){margin-top:0}.dnb-multi-input-mask__fieldset:not([class*=space__bottom]){margin-bottom:0}.dnb-multi-input-mask__fieldset:not([class*=space__left]){margin-left:0}.dnb-multi-input-mask__fieldset:not([class*=space__right]){margin-right:0}.dnb-multi-input-mask__fieldset--horizontal{align-items:baseline;display:inline-flex;flex-flow:row wrap;gap:1rem}.dnb-multi-input-mask__input.dnb-input__input{background:transparent;border:none;display:inline-block;font-family:var(--font-family-monospace);margin:0;outline:none;overflow:visible;padding:0 .125rem;text-align:center;transform:translateY(0);white-space:nowrap;width:auto}.dnb-multi-input-mask__input.dnb-input__input:first-of-type{padding-left:.5rem}.dnb-multi-input-mask__input.dnb-input__input:last-of-type{padding-right:.5rem}.dnb-input--large .dnb-multi-input-mask__input.dnb-input__input,.dnb-input--medium .dnb-multi-input-mask__input.dnb-input__input{padding:0 .25rem}.dnb-multi-input-mask{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__delimiter,.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__input{color:var(--color-black-55)}.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__delimiter--highlight,.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__input--highlight{color:var(--color-black)}
1
+ .dnb-input-masked--guide{font-family:var(--font-family-monospace)}.dnb-input-masked input::placeholder{color:inherit}.dnb-input-masked--hide-controls[type=number]::-webkit-inner-spin-button,.dnb-input-masked--hide-controls[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.dnb-input-masked--hide-controls[type=number]{-webkit-appearance:textfield;appearance:textfield}.dnb-multi-input-mask__fieldset{border:none;padding:0}.dnb-multi-input-mask__fieldset:not([class*=space__top]){margin-top:0}.dnb-multi-input-mask__fieldset:not([class*=space__bottom]){margin-bottom:0}.dnb-multi-input-mask__fieldset:not([class*=space__left]){margin-left:0}.dnb-multi-input-mask__fieldset:not([class*=space__right]){margin-right:0}.dnb-multi-input-mask__fieldset--horizontal{align-items:baseline;display:inline-flex;flex-flow:row wrap;gap:1rem}.dnb-multi-input-mask__input.dnb-input__input{background:transparent;border:none;display:inline-block;font-family:var(--font-family-monospace);margin:0;outline:none;overflow:visible;padding:0 .125rem;text-align:center;transform:translateY(0);white-space:nowrap;width:auto}.dnb-multi-input-mask__input.dnb-input__input:first-of-type{padding-left:.5rem}.dnb-multi-input-mask__input.dnb-input__input:last-of-type{padding-right:.5rem}.dnb-input--large .dnb-multi-input-mask__input.dnb-input__input,.dnb-input--medium .dnb-multi-input-mask__input.dnb-input__input{padding:0 .25rem}.dnb-multi-input-mask{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__delimiter,.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__input{color:var(--color-black-55)}.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__delimiter--highlight,.dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__input--highlight{color:var(--color-black)}
@@ -14,6 +14,18 @@
14
14
  input::placeholder {
15
15
  color: inherit;
16
16
  }
17
+
18
+ &--hide-controls {
19
+ &[type='number']::-webkit-outer-spin-button,
20
+ &[type='number']::-webkit-inner-spin-button {
21
+ appearance: none;
22
+ margin: 0;
23
+ }
24
+
25
+ &[type='number'] {
26
+ appearance: textfield;
27
+ }
28
+ }
17
29
  }
18
30
 
19
31
  // MultiInputMask
@@ -10,6 +10,13 @@ export default class InputModeNumber {
10
10
  hasFocus: boolean;
11
11
  focusEventName: string;
12
12
  blurEventName: string;
13
+ _type: string;
14
+ _value: string;
15
+ _width: number;
16
+ _cssText: string;
17
+ _placeholder: string;
18
+ _selectionStart: number;
19
+ _selectionEnd: number;
13
20
  setElement(element: HTMLInputElement): void;
14
21
  handleLabel(): void;
15
22
  add(): void;
@@ -17,4 +24,5 @@ export default class InputModeNumber {
17
24
  remove(): void;
18
25
  onBlur: () => void;
19
26
  onFocus: () => void;
27
+ reset: () => void;
20
28
  }
@@ -18,22 +18,44 @@ class InputModeNumber {
18
18
  return;
19
19
  }
20
20
  this.hasFocus = true;
21
- const type = this.inputElement.type;
22
- if (type === 'number') {
21
+ this._type = this.inputElement.type;
22
+ if (this._type === 'number') {
23
23
  return;
24
24
  }
25
- const value = this.inputElement.value;
26
- const placeholder = this.inputElement.placeholder;
27
- this.inputElement.placeholder = value;
25
+ this._value = this.inputElement.value;
26
+ this._width = this.inputElement.offsetWidth;
27
+ this._cssText = this.inputElement.style.cssText;
28
+ this._placeholder = this.inputElement.placeholder;
29
+ this._selectionStart = this.inputElement.selectionStart;
30
+ this._selectionEnd = this.inputElement.selectionEnd;
31
+ this.inputElement.placeholder = this._value;
28
32
  this.inputElement.type = 'number';
33
+ this.inputElement.classList.add('dnb-input-masked--hide-controls');
34
+ this.inputElement.style.width = `${this._width}px`;
29
35
  clearTimeout(this.timeout);
30
36
  this.timeout = setTimeout(() => {
37
+ this.reset();
38
+ }, 10);
39
+ });
40
+ _defineProperty(this, "reset", () => {
41
+ if (!this.inputElement) {
42
+ return;
43
+ }
44
+ try {
31
45
  var _this$inputElement$ru, _this$inputElement;
32
- this.inputElement.type = type;
33
- this.inputElement.value = value;
34
- this.inputElement.placeholder = placeholder;
46
+ this.inputElement.type = this._type;
47
+ this.inputElement.style.cssText = this._cssText;
48
+ this.inputElement.classList.remove('dnb-input-masked--hide-controls');
49
+ this.inputElement.value = this._value;
50
+ this.inputElement.placeholder = this._placeholder;
51
+ if (this._selectionStart > 0) {
52
+ this.inputElement.selectionStart = this._selectionStart;
53
+ this.inputElement.selectionEnd = this._selectionEnd;
54
+ }
35
55
  (_this$inputElement$ru = (_this$inputElement = this.inputElement)['runCorrectCaretPosition']) === null || _this$inputElement$ru === void 0 ? void 0 : _this$inputElement$ru.call(_this$inputElement);
36
- }, 5);
56
+ } catch (error) {
57
+ console.error(error);
58
+ }
37
59
  });
38
60
  }
39
61
  setElement(element) {
@@ -76,6 +98,7 @@ class InputModeNumber {
76
98
  }
77
99
  }
78
100
  remove() {
101
+ this.reset();
79
102
  clearTimeout(this.timeout);
80
103
  this.removeEvent(this.inputElement);
81
104
  this.removeEvent(this.labelElement);
@@ -1 +1 @@
1
- {"version":3,"file":"InputModeNumber.js","names":["_helpers","require","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","InputModeNumber","constructor","hasFocus","inputElement","type","placeholder","clearTimeout","timeout","setTimeout","_this$inputElement$ru","_this$inputElement","setElement","element","IS_IOS","focusEventName","blurEventName","add","handleLabel","_this$inputElement2","id","labelElement","document","querySelector","addEventListener","onFocus","_this$inputElement3","fnId","onBlur","removeEvent","removeEventListener","remove","exports","default"],"sources":["../../../../../src/components/input-masked/text-mask/InputModeNumber.ts"],"sourcesContent":["import { IS_IOS } from '../../../shared/helpers'\n\n/**\n * This is a helper function (hack),\n * that will evoke a good numeric keyboard (on iOS) that supports decimals and minus keys.\n */\nexport default class InputModeNumber {\n inputElement: HTMLInputElement\n labelElement: HTMLLabelElement\n timeout: NodeJS.Timer\n hasFocus: boolean\n focusEventName: string\n blurEventName: string\n\n setElement(element: HTMLInputElement) {\n if (!IS_IOS) {\n return // stop here\n }\n\n /**\n * Why use \"mouseenter\" and not \"focus\", \"mousedown\" or \"touchstart\"?\n * - Because \"touchstart\" has unexpected behavior when holding the finger down before releasing.\n * - And because \"focus\" and \"mousedown\" is too late, we then can't change the type anymore.\n */\n this.focusEventName = 'mouseenter'\n this.blurEventName = 'blur'\n\n if (!this.inputElement) {\n this.inputElement = element\n this.add()\n this.handleLabel()\n }\n }\n handleLabel() {\n const id = this.inputElement?.id\n if (!id) {\n return\n }\n\n this.labelElement = document.querySelector(\n `[for=\"${id}\"]`\n ) as HTMLLabelElement\n\n if (this.labelElement) {\n this.labelElement.addEventListener('mousedown', this.onFocus)\n }\n }\n add() {\n const fnId = '__getCorrectCaretPosition'\n if (this.inputElement && !this.inputElement?.[fnId]) {\n this.inputElement[fnId] = true\n\n this.inputElement.addEventListener(this.focusEventName, this.onFocus)\n this.inputElement.addEventListener(this.blurEventName, this.onBlur)\n }\n }\n removeEvent(element: HTMLInputElement | HTMLLabelElement) {\n if (element) {\n element.removeEventListener(this.focusEventName, this.onFocus)\n element.removeEventListener(this.blurEventName, this.onBlur)\n element.removeEventListener('mousedown', this.onFocus)\n }\n }\n remove() {\n clearTimeout(this.timeout)\n\n this.removeEvent(this.inputElement)\n this.removeEvent(this.labelElement)\n\n delete this.inputElement\n delete this.labelElement\n }\n onBlur = () => {\n this.hasFocus = false\n }\n onFocus = () => {\n if (this.hasFocus || !this.inputElement) {\n return\n }\n\n this.hasFocus = true\n\n const type = this.inputElement.type\n\n if (type === 'number') {\n return // stop here\n }\n\n const value = this.inputElement.value\n const placeholder = this.inputElement.placeholder\n\n // To prevent flickering, show the placeholder, while the input value is \"empty\".\n this.inputElement.placeholder = value\n\n // Changing the type, will remove the current input value to show as \"empty\".\n this.inputElement.type = 'number'\n\n // Reset the input again\n clearTimeout(this.timeout)\n this.timeout = setTimeout(() => {\n this.inputElement.type = type\n this.inputElement.value = value // set the input value\n this.inputElement.placeholder = placeholder\n this.inputElement['runCorrectCaretPosition']?.()\n }, 5)\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAgD,SAAAC,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAb,CAAA,QAAA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AACiB,mBAAmB,CAAC,IAAI,CAACf,cAAc,EAAE,IAAI,CAACU,OAAO,CAAC;MAC9DZ,OAAO,CAACiB,mBAAmB,CAAC,IAAI,CAACd,aAAa,EAAE,IAAI,CAACY,MAAM,CAAC;MAC5Df,OAAO,CAACiB,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAACL,OAAO,CAAC;IACxD;EACF;EACAM,MAAMA,CAAA,EAAG;IACPxB,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;IAE1B,IAAI,CAACqB,WAAW,CAAC,IAAI,CAACzB,YAAY,CAAC;IACnC,IAAI,CAACyB,WAAW,CAAC,IAAI,CAACR,YAAY,CAAC;IAEnC,OAAO,IAAI,CAACjB,YAAY;IACxB,OAAO,IAAI,CAACiB,YAAY;EAC1B;AAmCF;AAACW,OAAA,CAAAC,OAAA,GAAAhC,eAAA","ignoreList":[]}
1
+ {"version":3,"file":"InputModeNumber.js","names":["_helpers","require","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","InputModeNumber","constructor","hasFocus","inputElement","_type","type","_value","_width","offsetWidth","_cssText","style","cssText","_placeholder","placeholder","_selectionStart","selectionStart","_selectionEnd","selectionEnd","classList","add","width","clearTimeout","timeout","setTimeout","reset","_this$inputElement$ru","_this$inputElement","remove","error","console","setElement","element","IS_IOS","focusEventName","blurEventName","handleLabel","_this$inputElement2","id","labelElement","document","querySelector","addEventListener","onFocus","_this$inputElement3","fnId","onBlur","removeEvent","removeEventListener","exports","default"],"sources":["../../../../../src/components/input-masked/text-mask/InputModeNumber.ts"],"sourcesContent":["import { IS_IOS } from '../../../shared/helpers'\n\n/**\n * This is a helper function (hack),\n * that will evoke a good numeric keyboard (on iOS) that supports decimals and minus keys.\n */\nexport default class InputModeNumber {\n inputElement: HTMLInputElement\n labelElement: HTMLLabelElement\n timeout: NodeJS.Timer\n hasFocus: boolean\n focusEventName: string\n blurEventName: string\n _type: string\n _value: string\n _width: number\n _cssText: string\n _placeholder: string\n _selectionStart: number\n _selectionEnd: number\n\n setElement(element: HTMLInputElement) {\n if (!IS_IOS) {\n return // stop here\n }\n\n /**\n * Why use \"mouseenter\" and not \"focus\", \"mousedown\" or \"touchstart\"?\n * - Because \"touchstart\" has unexpected behavior when holding the finger down before releasing.\n * - And because \"focus\" and \"mousedown\" is too late, we then can't change the type anymore.\n */\n this.focusEventName = 'mouseenter'\n this.blurEventName = 'blur'\n\n if (!this.inputElement) {\n this.inputElement = element\n this.add()\n this.handleLabel()\n }\n }\n handleLabel() {\n const id = this.inputElement?.id\n if (!id) {\n return\n }\n\n this.labelElement = document.querySelector(\n `[for=\"${id}\"]`\n ) as HTMLLabelElement\n\n if (this.labelElement) {\n this.labelElement.addEventListener('mousedown', this.onFocus)\n }\n }\n add() {\n const fnId = '__getCorrectCaretPosition'\n if (this.inputElement && !this.inputElement?.[fnId]) {\n this.inputElement[fnId] = true\n\n this.inputElement.addEventListener(this.focusEventName, this.onFocus)\n this.inputElement.addEventListener(this.blurEventName, this.onBlur)\n }\n }\n removeEvent(element: HTMLInputElement | HTMLLabelElement) {\n if (element) {\n element.removeEventListener(this.focusEventName, this.onFocus)\n element.removeEventListener(this.blurEventName, this.onBlur)\n element.removeEventListener('mousedown', this.onFocus)\n }\n }\n remove() {\n this.reset()\n\n clearTimeout(this.timeout)\n\n this.removeEvent(this.inputElement)\n this.removeEvent(this.labelElement)\n\n delete this.inputElement\n delete this.labelElement\n }\n onBlur = () => {\n this.hasFocus = false\n }\n onFocus = () => {\n if (this.hasFocus || !this.inputElement) {\n return // stop here\n }\n\n this.hasFocus = true\n\n this._type = this.inputElement.type\n\n if (this._type === 'number') {\n return // stop here\n }\n\n this._value = this.inputElement.value\n this._width = this.inputElement.offsetWidth\n this._cssText = this.inputElement.style.cssText\n this._placeholder = this.inputElement.placeholder\n this._selectionStart = this.inputElement.selectionStart\n this._selectionEnd = this.inputElement.selectionEnd\n\n // To prevent flickering, show the placeholder, while the input value is \"empty\".\n this.inputElement.placeholder = this._value\n\n // Changing the type, will remove the current input value to show as \"empty\".\n this.inputElement.type = 'number'\n\n // Hide steppers with pseudo-elements using CSS injection\n this.inputElement.classList.add('dnb-input-masked--hide-controls')\n\n // Keep the width the same as the input element\n this.inputElement.style.width = `${this._width}px`\n\n // Reset the input again\n clearTimeout(this.timeout)\n this.timeout = setTimeout(() => {\n this.reset()\n }, 10) // Delay before changing the type back again.\n }\n reset = () => {\n if (!this.inputElement) {\n return // stop here\n }\n try {\n this.inputElement.type = this._type\n this.inputElement.style.cssText = this._cssText // Because we did set a width, we need to reset the cssText\n this.inputElement.classList.remove('dnb-input-masked--hide-controls')\n this.inputElement.value = this._value // set the input value, else it will be empty\n this.inputElement.placeholder = this._placeholder\n if (this._selectionStart > 0) {\n this.inputElement.selectionStart = this._selectionStart\n this.inputElement.selectionEnd = this._selectionEnd\n }\n this.inputElement['runCorrectCaretPosition']?.()\n } catch (error) {\n console.error(error)\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAAgD,SAAAC,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAb,CAAA,QAAAU,CAA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IAAI,CAACL,OAAO,CAAC;IACxD;EACF;EACAf,MAAMA,CAAA,EAAG;IACP,IAAI,CAACH,KAAK,CAAC,CAAC;IAEZH,YAAY,CAAC,IAAI,CAACC,OAAO,CAAC;IAE1B,IAAI,CAACwB,WAAW,CAAC,IAAI,CAAC3C,YAAY,CAAC;IACnC,IAAI,CAAC2C,WAAW,CAAC,IAAI,CAACR,YAAY,CAAC;IAEnC,OAAO,IAAI,CAACnC,YAAY;IACxB,OAAO,IAAI,CAACmC,YAAY;EAC1B;AA6DF;AAACU,OAAA,CAAAC,OAAA,GAAAjD,eAAA","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- export default function adjustCaretPosition({ previousConformedValue, previousPlaceholder, currentCaretPosition, conformedValue, rawValue, placeholderChar, placeholder, indexesOfPipedChars, caretTrapIndexes, }: {
1
+ export default function adjustCaretPosition({ previousConformedValue, previousPlaceholder, currentCaretPosition, conformedValue, rawValue, placeholderChar, placeholder, indexesOfPipedChars, caretTrapIndexes, keepCharPositions, }: {
2
2
  previousConformedValue?: string;
3
3
  previousPlaceholder?: string;
4
4
  currentCaretPosition?: number;
@@ -8,4 +8,5 @@ export default function adjustCaretPosition({ previousConformedValue, previousPl
8
8
  placeholder: any;
9
9
  indexesOfPipedChars?: any[];
10
10
  caretTrapIndexes?: any[];
11
+ keepCharPositions?: boolean;
11
12
  }): number;
@@ -16,7 +16,8 @@ function adjustCaretPosition(_ref) {
16
16
  placeholderChar,
17
17
  placeholder,
18
18
  indexesOfPipedChars = defaultArray,
19
- caretTrapIndexes = defaultArray
19
+ caretTrapIndexes = defaultArray,
20
+ keepCharPositions = false
20
21
  } = _ref;
21
22
  if (currentCaretPosition === 0 || !rawValue.length) {
22
23
  return 0;
@@ -32,7 +33,7 @@ function adjustCaretPosition(_ref) {
32
33
  if (isPartialMultiCharEdit) {
33
34
  return currentCaretPosition;
34
35
  }
35
- const possiblyHasRejectedChar = isAddition && (previousConformedValue === conformedValue || conformedValue === placeholder);
36
+ const possiblyHasRejectedChar = isAddition && (keepCharPositions !== false && previousConformedValue === conformedValue || conformedValue === placeholder);
36
37
  let startingSearchIndex = 0;
37
38
  let trackRightCharacter;
38
39
  let targetChar;