@dnb/eufemia 10.75.2 → 10.75.4

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 (452) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/cjs/components/accordion/Accordion.js +2 -3
  3. package/cjs/components/accordion/Accordion.js.map +1 -1
  4. package/cjs/components/accordion/AccordionContext.d.ts +0 -4
  5. package/cjs/components/accordion/AccordionContext.js.map +1 -1
  6. package/cjs/components/accordion/AccordionGroup.js +1 -3
  7. package/cjs/components/accordion/AccordionGroup.js.map +1 -1
  8. package/cjs/components/accordion/AccordionProviderContext.d.ts +0 -4
  9. package/cjs/components/accordion/AccordionProviderContext.js +3 -1
  10. package/cjs/components/accordion/AccordionProviderContext.js.map +1 -1
  11. package/cjs/components/accordion/AccordionStore.js +1 -2
  12. package/cjs/components/accordion/AccordionStore.js.map +1 -1
  13. package/cjs/components/accordion/style/dnb-accordion.css +0 -6
  14. package/cjs/components/accordion/style/dnb-accordion.min.css +1 -1
  15. package/cjs/components/accordion/style/dnb-accordion.scss +0 -5
  16. package/cjs/components/autocomplete/Autocomplete.d.ts +1 -1
  17. package/cjs/components/autocomplete/Autocomplete.js +2 -2
  18. package/cjs/components/autocomplete/Autocomplete.js.map +1 -1
  19. package/cjs/components/autocomplete/AutocompleteDocs.js +1 -1
  20. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
  21. package/cjs/components/button/Button.js +8 -7
  22. package/cjs/components/button/Button.js.map +1 -1
  23. package/cjs/components/date-picker/DatePickerDocs.js +3 -3
  24. package/cjs/components/date-picker/DatePickerDocs.js.map +1 -1
  25. package/cjs/components/date-picker/DatePickerInput.js +2 -2
  26. package/cjs/components/date-picker/DatePickerInput.js.map +1 -1
  27. package/cjs/components/date-picker/style/dnb-date-picker.css +0 -1
  28. package/cjs/components/date-picker/style/dnb-date-picker.min.css +1 -1
  29. package/cjs/components/dialog/style/dnb-dialog.css +0 -4
  30. package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
  31. package/cjs/components/dialog/style/dnb-dialog.scss +0 -5
  32. package/cjs/components/drawer/DrawerDocs.js +2 -2
  33. package/cjs/components/drawer/DrawerDocs.js.map +1 -1
  34. package/cjs/components/drawer/style/dnb-drawer.css +0 -4
  35. package/cjs/components/drawer/style/dnb-drawer.min.css +1 -1
  36. package/cjs/components/drawer/style/dnb-drawer.scss +0 -5
  37. package/cjs/components/form-label/style/dnb-form-label.css +0 -1
  38. package/cjs/components/form-label/style/dnb-form-label.min.css +1 -1
  39. package/cjs/components/form-row/FormRow.d.ts +1 -1
  40. package/cjs/components/form-row/FormRowDocs.js +1 -1
  41. package/cjs/components/form-row/FormRowDocs.js.map +1 -1
  42. package/cjs/components/input-masked/style/dnb-input-masked.css +0 -1
  43. package/cjs/components/input-masked/style/dnb-input-masked.min.css +1 -1
  44. package/cjs/components/list-format/ListFormatDocs.js +2 -2
  45. package/cjs/components/list-format/ListFormatDocs.js.map +1 -1
  46. package/cjs/components/modal/style/dnb-modal.css +0 -4
  47. package/cjs/components/modal/style/dnb-modal.min.css +1 -1
  48. package/cjs/components/modal/style/dnb-modal.scss +0 -5
  49. package/cjs/components/pagination/PaginationDocs.js +2 -2
  50. package/cjs/components/pagination/PaginationDocs.js.map +1 -1
  51. package/cjs/components/slider/SliderDocs.js +1 -1
  52. package/cjs/components/slider/SliderDocs.js.map +1 -1
  53. package/cjs/components/step-indicator/StepIndicatorDocs.js +4 -4
  54. package/cjs/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  55. package/cjs/components/timeline/TimelineItem.js +5 -5
  56. package/cjs/components/timeline/TimelineItem.js.map +1 -1
  57. package/cjs/components/toggle-button/ToggleButtonDocs.js +1 -1
  58. package/cjs/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  59. package/cjs/components/upload/style/dnb-upload.css +0 -1
  60. package/cjs/components/upload/style/dnb-upload.min.css +1 -1
  61. package/cjs/core/jest/jestSetupScreenshots.css +6 -0
  62. package/cjs/extensions/forms/Field/Date/Date.js +10 -4
  63. package/cjs/extensions/forms/Field/Date/Date.js.map +1 -1
  64. package/cjs/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  65. package/cjs/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  66. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  67. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  68. package/cjs/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  69. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  70. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  71. package/cjs/extensions/forms/Field/Selection/style/dnb-selection.css +0 -2
  72. package/cjs/extensions/forms/Field/Selection/style/dnb-selection.min.css +1 -1
  73. package/cjs/extensions/forms/Field/Selection/style/dnb-selection.scss +0 -2
  74. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  75. package/cjs/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  76. package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  77. package/cjs/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  78. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  79. package/cjs/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  80. package/cjs/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  81. package/cjs/extensions/forms/constants/locales/en-GB.js +2 -1
  82. package/cjs/extensions/forms/constants/locales/en-GB.js.map +1 -1
  83. package/cjs/extensions/forms/constants/locales/en-US.d.ts +1 -0
  84. package/cjs/extensions/forms/constants/locales/index.d.ts +2 -0
  85. package/cjs/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  86. package/cjs/extensions/forms/constants/locales/nb-NO.js +2 -1
  87. package/cjs/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  88. package/cjs/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  89. package/cjs/extensions/forms/constants/locales/sv-SE.js +2 -1
  90. package/cjs/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  91. package/cjs/extensions/forms/hooks/useFieldProps.js +3 -3
  92. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  93. package/cjs/extensions/forms/style/dnb-forms.css +0 -2
  94. package/cjs/extensions/forms/style/dnb-forms.min.css +1 -1
  95. package/cjs/extensions/payment-card/PaymentCard.js +8 -1
  96. package/cjs/extensions/payment-card/PaymentCard.js.map +1 -1
  97. package/cjs/fragments/drawer-list/DrawerList.d.ts +2 -1
  98. package/cjs/fragments/drawer-list/DrawerList.js.map +1 -1
  99. package/cjs/shared/AlignmentHelper.d.ts +14 -8
  100. package/cjs/shared/AlignmentHelper.js +4 -8
  101. package/cjs/shared/AlignmentHelper.js.map +1 -1
  102. package/cjs/shared/Eufemia.d.ts +14 -1
  103. package/cjs/shared/Eufemia.js +28 -3
  104. package/cjs/shared/Eufemia.js.map +1 -1
  105. package/cjs/shared/build-info/BuildInfo.d.ts +2 -0
  106. package/cjs/shared/build-info/BuildInfo.js +16 -0
  107. package/cjs/shared/build-info/BuildInfo.js.map +1 -0
  108. package/cjs/shared/build-info/BuildInfoData.d.ts +2 -0
  109. package/cjs/shared/build-info/BuildInfoData.js +9 -0
  110. package/cjs/shared/build-info/BuildInfoData.js.map +1 -0
  111. package/cjs/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  112. package/cjs/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  113. package/cjs/shared/useMedia.js +66 -55
  114. package/cjs/shared/useMedia.js.map +1 -1
  115. package/cjs/style/core/helper-classes/helper-classes.scss +3 -0
  116. package/cjs/style/core/scopes.scss +1 -1
  117. package/cjs/style/core/utilities.scss +3 -1
  118. package/cjs/style/dnb-ui-basis.css +13 -2
  119. package/cjs/style/dnb-ui-basis.min.css +1 -1
  120. package/cjs/style/dnb-ui-body.css +1 -2
  121. package/cjs/style/dnb-ui-body.min.css +1 -1
  122. package/cjs/style/dnb-ui-components.css +0 -24
  123. package/cjs/style/dnb-ui-components.min.css +3 -3
  124. package/cjs/style/dnb-ui-core.css +13 -3
  125. package/cjs/style/dnb-ui-core.min.css +1 -1
  126. package/cjs/style/dnb-ui-extensions.css +0 -2
  127. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  128. package/cjs/style/dnb-ui-forms.css +0 -2
  129. package/cjs/style/dnb-ui-forms.min.css +1 -1
  130. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +0 -26
  131. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  132. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.css +0 -2
  133. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  134. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.css +0 -2
  135. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  136. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +0 -26
  137. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  138. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.css +0 -2
  139. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  140. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.css +0 -2
  141. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  142. package/cjs/style/themes/theme-ui/ui-theme-components.css +0 -26
  143. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  144. package/cjs/style/themes/theme-ui/ui-theme-extensions.css +0 -2
  145. package/cjs/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  146. package/cjs/style/themes/theme-ui/ui-theme-forms.css +0 -2
  147. package/cjs/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  148. package/components/accordion/Accordion.js +2 -3
  149. package/components/accordion/Accordion.js.map +1 -1
  150. package/components/accordion/AccordionContext.d.ts +0 -4
  151. package/components/accordion/AccordionContext.js.map +1 -1
  152. package/components/accordion/AccordionGroup.js +1 -3
  153. package/components/accordion/AccordionGroup.js.map +1 -1
  154. package/components/accordion/AccordionProviderContext.d.ts +0 -4
  155. package/components/accordion/AccordionProviderContext.js +3 -1
  156. package/components/accordion/AccordionProviderContext.js.map +1 -1
  157. package/components/accordion/AccordionStore.js +1 -2
  158. package/components/accordion/AccordionStore.js.map +1 -1
  159. package/components/accordion/style/dnb-accordion.css +0 -6
  160. package/components/accordion/style/dnb-accordion.min.css +1 -1
  161. package/components/accordion/style/dnb-accordion.scss +0 -5
  162. package/components/autocomplete/Autocomplete.d.ts +1 -1
  163. package/components/autocomplete/Autocomplete.js +2 -2
  164. package/components/autocomplete/Autocomplete.js.map +1 -1
  165. package/components/autocomplete/AutocompleteDocs.js +1 -1
  166. package/components/autocomplete/AutocompleteDocs.js.map +1 -1
  167. package/components/button/Button.js +8 -7
  168. package/components/button/Button.js.map +1 -1
  169. package/components/date-picker/DatePickerDocs.js +3 -3
  170. package/components/date-picker/DatePickerDocs.js.map +1 -1
  171. package/components/date-picker/DatePickerInput.js +2 -2
  172. package/components/date-picker/DatePickerInput.js.map +1 -1
  173. package/components/date-picker/style/dnb-date-picker.css +0 -1
  174. package/components/date-picker/style/dnb-date-picker.min.css +1 -1
  175. package/components/dialog/style/dnb-dialog.css +0 -4
  176. package/components/dialog/style/dnb-dialog.min.css +1 -1
  177. package/components/dialog/style/dnb-dialog.scss +0 -5
  178. package/components/drawer/DrawerDocs.js +2 -2
  179. package/components/drawer/DrawerDocs.js.map +1 -1
  180. package/components/drawer/style/dnb-drawer.css +0 -4
  181. package/components/drawer/style/dnb-drawer.min.css +1 -1
  182. package/components/drawer/style/dnb-drawer.scss +0 -5
  183. package/components/form-label/style/dnb-form-label.css +0 -1
  184. package/components/form-label/style/dnb-form-label.min.css +1 -1
  185. package/components/form-row/FormRow.d.ts +1 -1
  186. package/components/form-row/FormRowDocs.js +1 -1
  187. package/components/form-row/FormRowDocs.js.map +1 -1
  188. package/components/input-masked/style/dnb-input-masked.css +0 -1
  189. package/components/input-masked/style/dnb-input-masked.min.css +1 -1
  190. package/components/list-format/ListFormatDocs.js +2 -2
  191. package/components/list-format/ListFormatDocs.js.map +1 -1
  192. package/components/modal/style/dnb-modal.css +0 -4
  193. package/components/modal/style/dnb-modal.min.css +1 -1
  194. package/components/modal/style/dnb-modal.scss +0 -5
  195. package/components/pagination/PaginationDocs.js +2 -2
  196. package/components/pagination/PaginationDocs.js.map +1 -1
  197. package/components/slider/SliderDocs.js +1 -1
  198. package/components/slider/SliderDocs.js.map +1 -1
  199. package/components/step-indicator/StepIndicatorDocs.js +4 -4
  200. package/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  201. package/components/timeline/TimelineItem.js +5 -5
  202. package/components/timeline/TimelineItem.js.map +1 -1
  203. package/components/toggle-button/ToggleButtonDocs.js +1 -1
  204. package/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  205. package/components/upload/style/dnb-upload.css +0 -1
  206. package/components/upload/style/dnb-upload.min.css +1 -1
  207. package/core/jest/jestSetupScreenshots.css +6 -0
  208. package/es/components/accordion/Accordion.js +2 -3
  209. package/es/components/accordion/Accordion.js.map +1 -1
  210. package/es/components/accordion/AccordionContext.d.ts +0 -4
  211. package/es/components/accordion/AccordionContext.js.map +1 -1
  212. package/es/components/accordion/AccordionGroup.js +1 -3
  213. package/es/components/accordion/AccordionGroup.js.map +1 -1
  214. package/es/components/accordion/AccordionProviderContext.d.ts +0 -4
  215. package/es/components/accordion/AccordionProviderContext.js +3 -1
  216. package/es/components/accordion/AccordionProviderContext.js.map +1 -1
  217. package/es/components/accordion/AccordionStore.js +1 -2
  218. package/es/components/accordion/AccordionStore.js.map +1 -1
  219. package/es/components/accordion/style/dnb-accordion.css +0 -6
  220. package/es/components/accordion/style/dnb-accordion.min.css +1 -1
  221. package/es/components/accordion/style/dnb-accordion.scss +0 -5
  222. package/es/components/autocomplete/Autocomplete.d.ts +1 -1
  223. package/es/components/autocomplete/Autocomplete.js +2 -2
  224. package/es/components/autocomplete/Autocomplete.js.map +1 -1
  225. package/es/components/autocomplete/AutocompleteDocs.js +1 -1
  226. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
  227. package/es/components/button/Button.js +8 -7
  228. package/es/components/button/Button.js.map +1 -1
  229. package/es/components/date-picker/DatePickerDocs.js +3 -3
  230. package/es/components/date-picker/DatePickerDocs.js.map +1 -1
  231. package/es/components/date-picker/DatePickerInput.js +2 -2
  232. package/es/components/date-picker/DatePickerInput.js.map +1 -1
  233. package/es/components/date-picker/style/dnb-date-picker.css +0 -1
  234. package/es/components/date-picker/style/dnb-date-picker.min.css +1 -1
  235. package/es/components/dialog/style/dnb-dialog.css +0 -4
  236. package/es/components/dialog/style/dnb-dialog.min.css +1 -1
  237. package/es/components/dialog/style/dnb-dialog.scss +0 -5
  238. package/es/components/drawer/DrawerDocs.js +2 -2
  239. package/es/components/drawer/DrawerDocs.js.map +1 -1
  240. package/es/components/drawer/style/dnb-drawer.css +0 -4
  241. package/es/components/drawer/style/dnb-drawer.min.css +1 -1
  242. package/es/components/drawer/style/dnb-drawer.scss +0 -5
  243. package/es/components/form-label/style/dnb-form-label.css +0 -1
  244. package/es/components/form-label/style/dnb-form-label.min.css +1 -1
  245. package/es/components/form-row/FormRow.d.ts +1 -1
  246. package/es/components/form-row/FormRowDocs.js +1 -1
  247. package/es/components/form-row/FormRowDocs.js.map +1 -1
  248. package/es/components/input-masked/style/dnb-input-masked.css +0 -1
  249. package/es/components/input-masked/style/dnb-input-masked.min.css +1 -1
  250. package/es/components/list-format/ListFormatDocs.js +2 -2
  251. package/es/components/list-format/ListFormatDocs.js.map +1 -1
  252. package/es/components/modal/style/dnb-modal.css +0 -4
  253. package/es/components/modal/style/dnb-modal.min.css +1 -1
  254. package/es/components/modal/style/dnb-modal.scss +0 -5
  255. package/es/components/pagination/PaginationDocs.js +2 -2
  256. package/es/components/pagination/PaginationDocs.js.map +1 -1
  257. package/es/components/slider/SliderDocs.js +1 -1
  258. package/es/components/slider/SliderDocs.js.map +1 -1
  259. package/es/components/step-indicator/StepIndicatorDocs.js +4 -4
  260. package/es/components/step-indicator/StepIndicatorDocs.js.map +1 -1
  261. package/es/components/timeline/TimelineItem.js +5 -5
  262. package/es/components/timeline/TimelineItem.js.map +1 -1
  263. package/es/components/toggle-button/ToggleButtonDocs.js +1 -1
  264. package/es/components/toggle-button/ToggleButtonDocs.js.map +1 -1
  265. package/es/components/upload/style/dnb-upload.css +0 -1
  266. package/es/components/upload/style/dnb-upload.min.css +1 -1
  267. package/es/core/jest/jestSetupScreenshots.css +6 -0
  268. package/es/extensions/forms/Field/Date/Date.js +10 -4
  269. package/es/extensions/forms/Field/Date/Date.js.map +1 -1
  270. package/es/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  271. package/es/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  272. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  273. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  274. package/es/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  275. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  276. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  277. package/es/extensions/forms/Field/Selection/style/dnb-selection.css +0 -2
  278. package/es/extensions/forms/Field/Selection/style/dnb-selection.min.css +1 -1
  279. package/es/extensions/forms/Field/Selection/style/dnb-selection.scss +0 -2
  280. package/es/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  281. package/es/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  282. package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  283. package/es/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  284. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  285. package/es/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  286. package/es/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  287. package/es/extensions/forms/constants/locales/en-GB.js +2 -1
  288. package/es/extensions/forms/constants/locales/en-GB.js.map +1 -1
  289. package/es/extensions/forms/constants/locales/en-US.d.ts +1 -0
  290. package/es/extensions/forms/constants/locales/index.d.ts +2 -0
  291. package/es/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  292. package/es/extensions/forms/constants/locales/nb-NO.js +2 -1
  293. package/es/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  294. package/es/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  295. package/es/extensions/forms/constants/locales/sv-SE.js +2 -1
  296. package/es/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  297. package/es/extensions/forms/hooks/useFieldProps.js +3 -3
  298. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  299. package/es/extensions/forms/style/dnb-forms.css +0 -2
  300. package/es/extensions/forms/style/dnb-forms.min.css +1 -1
  301. package/es/extensions/payment-card/PaymentCard.js +1 -0
  302. package/es/extensions/payment-card/PaymentCard.js.map +1 -1
  303. package/es/fragments/drawer-list/DrawerList.d.ts +2 -1
  304. package/es/fragments/drawer-list/DrawerList.js.map +1 -1
  305. package/es/shared/AlignmentHelper.d.ts +14 -8
  306. package/es/shared/AlignmentHelper.js +4 -8
  307. package/es/shared/AlignmentHelper.js.map +1 -1
  308. package/es/shared/Eufemia.d.ts +14 -1
  309. package/es/shared/Eufemia.js +27 -2
  310. package/es/shared/Eufemia.js.map +1 -1
  311. package/es/shared/build-info/BuildInfo.cjs +22 -0
  312. package/es/shared/build-info/BuildInfo.d.ts +2 -0
  313. package/es/shared/build-info/BuildInfo.js +8 -0
  314. package/es/shared/build-info/BuildInfo.js.map +1 -0
  315. package/es/shared/build-info/BuildInfoData.cjs +2 -0
  316. package/es/shared/build-info/BuildInfoData.d.ts +2 -0
  317. package/es/shared/build-info/BuildInfoData.js +3 -0
  318. package/es/shared/build-info/BuildInfoData.js.map +1 -0
  319. package/es/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  320. package/es/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  321. package/es/shared/useMedia.js +66 -55
  322. package/es/shared/useMedia.js.map +1 -1
  323. package/es/style/core/helper-classes/helper-classes.scss +3 -0
  324. package/es/style/core/scopes.scss +1 -1
  325. package/es/style/core/utilities.scss +3 -1
  326. package/es/style/dnb-ui-basis.css +13 -2
  327. package/es/style/dnb-ui-basis.min.css +1 -1
  328. package/es/style/dnb-ui-body.css +1 -2
  329. package/es/style/dnb-ui-body.min.css +1 -1
  330. package/es/style/dnb-ui-components.css +0 -24
  331. package/es/style/dnb-ui-components.min.css +3 -3
  332. package/es/style/dnb-ui-core.css +13 -3
  333. package/es/style/dnb-ui-core.min.css +1 -1
  334. package/es/style/dnb-ui-extensions.css +0 -2
  335. package/es/style/dnb-ui-extensions.min.css +1 -1
  336. package/es/style/dnb-ui-forms.css +0 -2
  337. package/es/style/dnb-ui-forms.min.css +1 -1
  338. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +0 -26
  339. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  340. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.css +0 -2
  341. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  342. package/es/style/themes/theme-eiendom/eiendom-theme-forms.css +0 -2
  343. package/es/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  344. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +0 -26
  345. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  346. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.css +0 -2
  347. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  348. package/es/style/themes/theme-sbanken/sbanken-theme-forms.css +0 -2
  349. package/es/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  350. package/es/style/themes/theme-ui/ui-theme-components.css +0 -26
  351. package/es/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  352. package/es/style/themes/theme-ui/ui-theme-extensions.css +0 -2
  353. package/es/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  354. package/es/style/themes/theme-ui/ui-theme-forms.css +0 -2
  355. package/es/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  356. package/esm/dnb-ui-components.min.mjs +1 -1
  357. package/esm/dnb-ui-elements.min.mjs +1 -1
  358. package/esm/dnb-ui-extensions.min.mjs +1 -1
  359. package/esm/dnb-ui-lib.min.mjs +1 -1
  360. package/extensions/forms/Field/Date/Date.js +10 -4
  361. package/extensions/forms/Field/Date/Date.js.map +1 -1
  362. package/extensions/forms/Field/Indeterminate/Indeterminate.js +4 -2
  363. package/extensions/forms/Field/Indeterminate/Indeterminate.js.map +1 -1
  364. package/extensions/forms/Field/Indeterminate/useDependencePaths.d.ts +1 -0
  365. package/extensions/forms/Field/Indeterminate/useDependencePaths.js +12 -5
  366. package/extensions/forms/Field/Indeterminate/useDependencePaths.js.map +1 -1
  367. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js +1 -1
  368. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs.js.map +1 -1
  369. package/extensions/forms/Field/Selection/style/dnb-selection.css +0 -2
  370. package/extensions/forms/Field/Selection/style/dnb-selection.min.css +1 -1
  371. package/extensions/forms/Field/Selection/style/dnb-selection.scss +0 -2
  372. package/extensions/forms/Form/Isolation/IsolationDocs.js +1 -1
  373. package/extensions/forms/Form/Isolation/IsolationDocs.js.map +1 -1
  374. package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js +2 -2
  375. package/extensions/forms/Iterate/PushContainer/PushContainerDocs.js.map +1 -1
  376. package/extensions/forms/Wizard/Container/WizardContainerDocs.js +1 -1
  377. package/extensions/forms/Wizard/Container/WizardContainerDocs.js.map +1 -1
  378. package/extensions/forms/constants/locales/en-GB.d.ts +1 -0
  379. package/extensions/forms/constants/locales/en-GB.js +2 -1
  380. package/extensions/forms/constants/locales/en-GB.js.map +1 -1
  381. package/extensions/forms/constants/locales/en-US.d.ts +1 -0
  382. package/extensions/forms/constants/locales/index.d.ts +2 -0
  383. package/extensions/forms/constants/locales/nb-NO.d.ts +1 -0
  384. package/extensions/forms/constants/locales/nb-NO.js +2 -1
  385. package/extensions/forms/constants/locales/nb-NO.js.map +1 -1
  386. package/extensions/forms/constants/locales/sv-SE.d.ts +1 -0
  387. package/extensions/forms/constants/locales/sv-SE.js +2 -1
  388. package/extensions/forms/constants/locales/sv-SE.js.map +1 -1
  389. package/extensions/forms/hooks/useFieldProps.js +3 -3
  390. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  391. package/extensions/forms/style/dnb-forms.css +0 -2
  392. package/extensions/forms/style/dnb-forms.min.css +1 -1
  393. package/extensions/payment-card/PaymentCard.js +1 -0
  394. package/extensions/payment-card/PaymentCard.js.map +1 -1
  395. package/fragments/drawer-list/DrawerList.d.ts +2 -1
  396. package/fragments/drawer-list/DrawerList.js.map +1 -1
  397. package/package.json +1 -1
  398. package/shared/AlignmentHelper.d.ts +14 -8
  399. package/shared/AlignmentHelper.js +4 -8
  400. package/shared/AlignmentHelper.js.map +1 -1
  401. package/shared/Eufemia.d.ts +14 -1
  402. package/shared/Eufemia.js +27 -2
  403. package/shared/Eufemia.js.map +1 -1
  404. package/shared/build-info/BuildInfo.cjs +22 -0
  405. package/shared/build-info/BuildInfo.d.ts +2 -0
  406. package/shared/build-info/BuildInfo.js +8 -0
  407. package/shared/build-info/BuildInfo.js.map +1 -0
  408. package/shared/build-info/BuildInfoData.cjs +2 -0
  409. package/shared/build-info/BuildInfoData.d.ts +2 -0
  410. package/shared/build-info/BuildInfoData.js +3 -0
  411. package/shared/build-info/BuildInfoData.js.map +1 -0
  412. package/shared/helpers/runCssVersionMismatchWarning.d.ts +0 -7
  413. package/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  414. package/shared/useMedia.js +67 -56
  415. package/shared/useMedia.js.map +1 -1
  416. package/style/core/helper-classes/helper-classes.scss +3 -0
  417. package/style/core/scopes.scss +1 -1
  418. package/style/core/utilities.scss +3 -1
  419. package/style/dnb-ui-basis.css +13 -2
  420. package/style/dnb-ui-basis.min.css +1 -1
  421. package/style/dnb-ui-body.css +1 -2
  422. package/style/dnb-ui-body.min.css +1 -1
  423. package/style/dnb-ui-components.css +0 -24
  424. package/style/dnb-ui-components.min.css +3 -3
  425. package/style/dnb-ui-core.css +13 -3
  426. package/style/dnb-ui-core.min.css +1 -1
  427. package/style/dnb-ui-extensions.css +0 -2
  428. package/style/dnb-ui-extensions.min.css +1 -1
  429. package/style/dnb-ui-forms.css +0 -2
  430. package/style/dnb-ui-forms.min.css +1 -1
  431. package/style/themes/theme-eiendom/eiendom-theme-components.css +0 -26
  432. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +4 -4
  433. package/style/themes/theme-eiendom/eiendom-theme-extensions.css +0 -2
  434. package/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  435. package/style/themes/theme-eiendom/eiendom-theme-forms.css +0 -2
  436. package/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  437. package/style/themes/theme-sbanken/sbanken-theme-components.css +0 -26
  438. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  439. package/style/themes/theme-sbanken/sbanken-theme-extensions.css +0 -2
  440. package/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  441. package/style/themes/theme-sbanken/sbanken-theme-forms.css +0 -2
  442. package/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  443. package/style/themes/theme-ui/ui-theme-components.css +0 -26
  444. package/style/themes/theme-ui/ui-theme-components.min.css +4 -4
  445. package/style/themes/theme-ui/ui-theme-extensions.css +0 -2
  446. package/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  447. package/style/themes/theme-ui/ui-theme-forms.css +0 -2
  448. package/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  449. package/umd/dnb-ui-components.min.js +1 -1
  450. package/umd/dnb-ui-elements.min.js +1 -1
  451. package/umd/dnb-ui-extensions.min.js +1 -1
  452. package/umd/dnb-ui-lib.min.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FormRowDocs.js","names":["FormRowProperties","exports","label","doc","type","status","label_direction","label_sr_only","direction","vertical","centered","wrap","responsive","section_style","section_spacing","no_fieldset","label_class","locale","disabled","skeleton"],"sources":["../../../../src/components/form-row/FormRowDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const FormRowProperties: PropertiesTableProps = {\n label: {\n doc: 'use either the `label` property or provide a custom one.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n label_direction: {\n doc: 'use `label_direction=\"vertical\"` to change the label/legend layout direction. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\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 direction: {\n doc: 'to define the layout direction on how the next component should be placed on. Can be either `vertical` or `horizontal`. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n vertical: {\n doc: 'will force both `direction` and `label_direction` to be **vertical** if set to `true`',\n type: 'boolean',\n status: 'optional',\n },\n centered: {\n doc: 'will center all children vertically as long as the screen does not hit a mobile width.',\n type: 'boolean',\n status: 'optional',\n },\n wrap: {\n doc: 'forces the content of a FormRow to wrap. Make sure you always define spacing as `right=\"...\"` and not `left`, this way components will align left once they wrap. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n responsive: {\n doc: 'to force responsiveness on form components (like [Input](/uilib/components/input) and their labels ([FormLabel](/uilib/components/form-label)), set the property to `true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n section_style: {\n doc: 'to enable the visual helper `.dnb-section` class. Use a supported modifier from the [Section component](/uilib/components/section/properties). Defaults to `null`.',\n type: ['divider', 'white', 'transparent'],\n status: 'optional',\n },\n section_spacing: {\n doc: 'to modify the `spacing`. Use a supported modifier from the [Section component](/uilib/components/section/properties). Defaults to `null`.',\n type: ['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'],\n status: 'optional',\n },\n no_fieldset: {\n doc: 'if set to `true`, then the internal `legend` element will be a `label` instead, and no `<fieldset>` is used. Keep in mind, that `<legend>` and `<fieldset>` **is only used if a `label` is provided**. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n label_class: {\n doc: 'if you need to style the \"legend\", then you can either send in a custom Component, like `label={ <H2> }`, or define your styling class with the `label_class` property.',\n type: 'string',\n status: 'optional',\n },\n locale: {\n doc: 'Send along a different locale to all nested components.',\n type: 'string',\n status: 'optional',\n },\n disabled: {\n doc: 'if set to `true`, every component inside will be disabled. Defaults to `false`.',\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 '[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,iBAAuC,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EACrDE,KAAK,EAAE;IACLC,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDC,eAAe,EAAE;IACfH,GAAG,EAAE,yGAAyG;IAC9GC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDE,aAAa,EAAE;IACbJ,GAAG,EAAE,+DAA+D;IACpEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,SAAS,EAAE;IACTL,GAAG,EAAE,mJAAmJ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wEAAwE;IAC7EC,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;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FormRowDocs.js","names":["FormRowProperties","exports","label","doc","type","status","label_direction","label_sr_only","direction","vertical","centered","wrap","responsive","section_style","section_spacing","no_fieldset","label_class","locale","disabled","skeleton"],"sources":["../../../../src/components/form-row/FormRowDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const FormRowProperties: PropertiesTableProps = {\n label: {\n doc: 'use either the `label` property or provide a custom one.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n label_direction: {\n doc: 'use `label_direction=\"vertical\"` to change the label/legend layout direction. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\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 direction: {\n doc: 'to define the layout direction on how the next component should be placed on. Can be either `vertical` or `horizontal`. Defaults to `horizontal`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n vertical: {\n doc: 'will force both `direction` and `label_direction` to be **vertical** if set to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n centered: {\n doc: 'will center all children vertically as long as the screen does not hit a mobile width.',\n type: 'boolean',\n status: 'optional',\n },\n wrap: {\n doc: 'forces the content of a FormRow to wrap. Make sure you always define spacing as `right=\"...\"` and not `left`, this way components will align left once they wrap. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n responsive: {\n doc: 'to force responsiveness on form components (like [Input](/uilib/components/input) and their labels ([FormLabel](/uilib/components/form-label)), set the property to `true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n section_style: {\n doc: 'to enable the visual helper `.dnb-section` class. Use a supported modifier from the [Section component](/uilib/components/section/properties). Defaults to `null`.',\n type: ['divider', 'white', 'transparent'],\n status: 'optional',\n },\n section_spacing: {\n doc: 'to modify the `spacing`. Use a supported modifier from the [Section component](/uilib/components/section/properties). Defaults to `null`.',\n type: ['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'],\n status: 'optional',\n },\n no_fieldset: {\n doc: 'if set to `true`, then the internal `legend` element will be a `label` instead, and no `<fieldset>` is used. Keep in mind, that `<legend>` and `<fieldset>` **is only used if a `label` is provided**. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n label_class: {\n doc: 'if you need to style the \"legend\", then you can either send in a custom Component, like `label={ <H2> }`, or define your styling class with the `label_class` property.',\n type: 'string',\n status: 'optional',\n },\n locale: {\n doc: 'Send along a different locale to all nested components.',\n type: 'string',\n status: 'optional',\n },\n disabled: {\n doc: 'if set to `true`, every component inside will be disabled. Defaults to `false`.',\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 '[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,iBAAuC,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EACrDE,KAAK,EAAE;IACLC,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDC,eAAe,EAAE;IACfH,GAAG,EAAE,yGAAyG;IAC9GC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDE,aAAa,EAAE;IACbJ,GAAG,EAAE,+DAA+D;IACpEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,SAAS,EAAE;IACTL,GAAG,EAAE,mJAAmJ;IACxJC,IAAI,EAAE,C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,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;AACF,CAAC","ignoreList":[]}
@@ -70,7 +70,6 @@
70
70
 
71
71
  .dnb-multi-input-mask {
72
72
  width: -webkit-fit-content;
73
- width: -moz-fit-content;
74
73
  width: fit-content;
75
74
  }
76
75
  .dnb-multi-input-mask:not(.dnb-input__status--error) .dnb-multi-input-mask__input,
@@ -1 +1 @@
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)}
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: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)}
@@ -35,12 +35,12 @@ const ListFormatProperties = exports.ListFormatProperties = _objectSpread({
35
35
  status: 'optional'
36
36
  },
37
37
  variant: {
38
- doc: 'Defines if the value should be displayed in list format (`ol`, `ul`) or regular text format in one line. Defaults to `text`',
38
+ doc: 'Defines if the value should be displayed in list format (`ol`, `ul`) or regular text format in one line. Defaults to `text`.',
39
39
  type: ['ol', 'ul', 'text'],
40
40
  status: 'optional'
41
41
  },
42
42
  listType: {
43
- doc: 'Defines the type of list styling used for list variants. Used together with variant `ol` and `ul`. Variant `ol`: `a`, `A`, `i`, `I` and `1`. Variant `ul`: `circle`, `disc` and `square`. Defaults to `undefined`',
43
+ doc: 'Defines the type of list styling used for list variants. Used together with variant `ol` and `ul`. Variant `ol`: `a`, `A`, `i`, `I` and `1`. Variant `ul`: `circle`, `disc` and `square`. Defaults to `undefined`.',
44
44
  type: ['a', 'A', 'i', 'I', '1', 'circle', 'disc', 'square', 'unstyled', 'undefined'],
45
45
  status: 'optional'
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ListFormatDocs.js","names":["_UlDocs","require","_OlDocs","_objectWithoutProperties","e","t","o","r","i","_objectWithoutPropertiesLoose","Object","getOwnPropertySymbols","n","length","indexOf","propertyIsEnumerable","call","hasOwnProperty","ownKeys","keys","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","ListProperties","UlProperties","OlProperties","children","ListPropertiesWithoutChildren","ListFormatProperties","exports","doc","type","status","format","variant","listType"],"sources":["../../../../src/components/list-format/ListFormatDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\nimport { UlProperties } from './../../elements/lists/UlDocs'\nimport { OlProperties } from './../../elements/lists/OlDocs'\n\nconst ListProperties = { ...UlProperties, ...OlProperties }\nconst { children, ...ListPropertiesWithoutChildren } = ListProperties\n\nexport const ListFormatProperties: PropertiesTableProps = {\n value: {\n doc: 'The value to format. Can be given as `children` instead.',\n type: ['Array<React.ReactNode>'],\n status: 'optional',\n },\n children: {\n doc: 'The children to format.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n format: {\n doc: 'Formatting options for the value when variant is `text`. See the [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat) documentation.',\n type: 'Intl.ListFormatOptions',\n status: 'optional',\n },\n variant: {\n doc: 'Defines if the value should be displayed in list format (`ol`, `ul`) or regular text format in one line. Defaults to `text`',\n type: ['ol', 'ul', 'text'],\n status: 'optional',\n },\n listType: {\n doc: 'Defines the type of list styling used for list variants. Used together with variant `ol` and `ul`. Variant `ol`: `a`, `A`, `i`, `I` and `1`. Variant `ul`: `circle`, `disc` and `square`. Defaults to `undefined`',\n type: [\n 'a',\n 'A',\n 'i',\n 'I',\n '1',\n 'circle',\n 'disc',\n 'square',\n 'unstyled',\n 'undefined',\n ],\n status: 'optional',\n },\n ...ListPropertiesWithoutChildren,\n}\n"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAA4D,SAAAE,yBAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,6BAAA,CAAAL,CAAA,EAAAC,CAAA,OAAAK,MAAA,CAAAC,qBAAA,QAAAC,CAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAP,CAAA,QAAAG,CAAA,MAAAA,CAAA,GAAAK,CAAA,CAAAC,MAAA,EAAAN,CAAA,IAAAD,CAAA,GAAAM,CAAA,CAAAL,CAAA,UAAAF,CAAA,CAAAS,OAAA,CAAAR,CAAA,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EAAE;EACV,CAAC;EACDN,QAAQ,EAAE;IACRI,GAAG,EAAE,yBAAyB;IAC9BC,IAAI,EAAE,iBAAiB;IACvBC,MAAM,EAAE;EACV,CAAC;EACDC,MAAM,EAAE;IACNH,GAAG,EAAE,gNAAgN;IACrNC,IAAI,EAAE,wBAAwB;IAC9BC,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,6HAA6H;IAClIC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC;IAC1BC,MAAM,EAAE;EACV,CAAC;EACDG,QAAQ,EAAE;IACRL,GAAG,EAAE,mNAAmN;IACxNC,IAAI,EAAE,CACJ,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,UAAU,EACV,WAAW,CACZ;IACDC,MAAM,EAAE;EACV;AAAC,GACEL,6BAA6B,CACjC","ignoreList":[]}
1
+ {"version":3,"file":"ListFormatDocs.js","names":["_UlDocs","require","_OlDocs","_objectWithoutProperties","e","t","o","r","i","_objectWithoutPropertiesLoose","Object","getOwnPropertySymbols","n","length","indexOf","propertyIsEnumerable","call","hasOwnProperty","ownKeys","keys","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","ListProperties","UlProperties","OlProperties","children","ListPropertiesWithoutChildren","ListFormatProperties","exports","doc","type","status","format","variant","listType"],"sources":["../../../../src/components/list-format/ListFormatDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\nimport { UlProperties } from './../../elements/lists/UlDocs'\nimport { OlProperties } from './../../elements/lists/OlDocs'\n\nconst ListProperties = { ...UlProperties, ...OlProperties }\nconst { children, ...ListPropertiesWithoutChildren } = ListProperties\n\nexport const ListFormatProperties: PropertiesTableProps = {\n value: {\n doc: 'The value to format. Can be given as `children` instead.',\n type: ['Array<React.ReactNode>'],\n status: 'optional',\n },\n children: {\n doc: 'The children to format.',\n type: 'React.ReactNode',\n status: 'optional',\n },\n format: {\n doc: 'Formatting options for the value when variant is `text`. See the [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat) documentation.',\n type: 'Intl.ListFormatOptions',\n status: 'optional',\n },\n variant: {\n doc: 'Defines if the value should be displayed in list format (`ol`, `ul`) or regular text format in one line. Defaults to `text`.',\n type: ['ol', 'ul', 'text'],\n status: 'optional',\n },\n listType: {\n doc: 'Defines the type of list styling used for list variants. Used together with variant `ol` and `ul`. Variant `ol`: `a`, `A`, `i`, `I` and `1`. Variant `ul`: `circle`, `disc` and `square`. Defaults to `undefined`.',\n type: [\n 'a',\n 'A',\n 'i',\n 'I',\n '1',\n 'circle',\n 'disc',\n 'square',\n 'unstyled',\n 'undefined',\n ],\n status: 'optional',\n },\n ...ListPropertiesWithoutChildren,\n}\n"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAA4D,SAAAE,yBAAAC,CAAA,EAAAC,CAAA,gBAAAD,CAAA,iBAAAE,CAAA,EAAAC,CAAA,EAAAC,CAAA,GAAAC,6BAAA,CAAAL,CAAA,EAAAC,CAAA,OAAAK,MAAA,CAAAC,qBAAA,QAAAC,CAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAP,CAAA,QAAAG,CAAA,MAAAA,CAAA,GAAAK,CAAA,CAAAC,MAAA,EAAAN,CAAA,IAAAD,CAAA,GAAAM,CAAA,CAAAL,CAAA,UAAAF,CAAA,CAAAS,OAAA,CAAAR,CAAA,QAAAS,oBAAA,CAAAC,IAAA,CAAAZ,CAAA,EAAAE,CAAA,MAAAE,CAAA,CAAAF,CAAA,IAAAF,CAAA,CAAAE,CAAA,aAAAE,CAAA;AAAA,SAAAC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EAAE;IACNH,GAAG,EAAE,gNAAgN;IACrNC,IAAI,EAAE,wBAAwB;IAC9BC,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,8HAA8H;IACnIC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC;IAC1BC,MAAM,EAAE;EACV,CAAC;EACDG,QAAQ,EAAE;IACRL,GAAG,EAAE,oNAAoN;IACzNC,IAAI,EAAE,CACJ,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,UAAU,EACV,WAAW,CACZ;IACDC,MAAM,EAAE;EACV;AAAC,GACEL,6BAA6B,CACjC","ignoreList":[]}
@@ -195,8 +195,4 @@ html[data-visual-test] .dnb-modal__overlay, .dnb-modal__overlay--no-animation {
195
195
  display: flex;
196
196
  flex-direction: row;
197
197
  justify-content: space-between;
198
- }
199
-
200
- [data-visual-test].hide-page-content #___gatsby {
201
- opacity: 0;
202
198
  }
@@ -1 +1 @@
1
- @keyframes show-modal{0%{opacity:.1;transform:translate3d(0,-1rem,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hide-modal{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,1rem,0)}}@keyframes show-drawer{to{opacity:1;transform:translateZ(0)}}@keyframes hide-drawer-left{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-20rem,0,0)}}@keyframes hide-drawer-top{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20rem,0)}}@keyframes hide-drawer-bottom{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,20rem,0)}}@keyframes hide-drawer-right{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(20rem,0,0)}}@keyframes show-modal-overlay{0%{opacity:0}to{opacity:1}}@keyframes hide-modal-overlay{0%{opacity:1}to{opacity:0}}:root{--modal-z-index:3000;--modal-animation-duration:300ms}html[data-dnb-modal-active]{user-select:none;-webkit-user-select:none}#dnb-modal-root{left:0;position:absolute;top:0}.dnb-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;max-width:100vw;position:fixed;top:0;user-select:none;-webkit-user-select:none;width:100%;z-index:calc(var(--modal-z-index) + 1)}@media screen and (max-width:40em){.dnb-modal__content--auto-fullscreen{height:auto}}.dnb-modal__content--fullscreen{align-items:flex-start;justify-content:flex-start}.dnb-modal__content--fullscreen .dnb-modal__content__content{height:auto}.dnb-modal__content--left,.dnb-modal__content--top{align-items:flex-start;justify-content:flex-start}.dnb-modal__content--right{align-items:flex-start;justify-content:flex-end}.dnb-modal__content--bottom{align-items:flex-end;justify-content:flex-start}.dnb-modal__vertical-alignment--top{align-items:flex-start;padding-top:5vh}.dnb-modal__overlay{height:100%;left:0;position:fixed;top:0;width:100%;z-index:var(--modal-z-index)}.dnb-modal-root__inner .dnb-modal__overlay{animation:hide-modal-overlay var(--modal-animation-duration) ease-out forwards}.dnb-modal-root__inner:last-of-type .dnb-modal__overlay{animation:show-modal-overlay var(--modal-animation-duration) ease-out}.dnb-modal-root__inner:last-of-type .dnb-modal__overlay--hide{animation:hide-modal-overlay var(--modal-animation-duration) ease-out forwards}.dnb-modal__overlay--no-animation,html[data-visual-test] .dnb-modal__overlay{animation-delay:0ms!important;animation-duration:0ms!important}.dnb-modal-root__inner{position:relative;z-index:calc(var(--modal-z-index) + 1)}.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 2)}.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 3)}.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 4)}.dnb-modal__close-button{z-index:calc(var(--modal-z-index) + 1)}.dnb-modal__header__bar.dnb-section{display:flex;flex-direction:row;justify-content:space-between}[data-visual-test].hide-page-content #___gatsby{opacity:0}
1
+ @keyframes show-modal{0%{opacity:.1;transform:translate3d(0,-1rem,0)}to{opacity:1;transform:translateZ(0)}}@keyframes hide-modal{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,1rem,0)}}@keyframes show-drawer{to{opacity:1;transform:translateZ(0)}}@keyframes hide-drawer-left{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-20rem,0,0)}}@keyframes hide-drawer-top{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20rem,0)}}@keyframes hide-drawer-bottom{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,20rem,0)}}@keyframes hide-drawer-right{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(20rem,0,0)}}@keyframes show-modal-overlay{0%{opacity:0}to{opacity:1}}@keyframes hide-modal-overlay{0%{opacity:1}to{opacity:0}}:root{--modal-z-index:3000;--modal-animation-duration:300ms}html[data-dnb-modal-active]{user-select:none;-webkit-user-select:none}#dnb-modal-root{left:0;position:absolute;top:0}.dnb-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;max-width:100vw;position:fixed;top:0;user-select:none;-webkit-user-select:none;width:100%;z-index:calc(var(--modal-z-index) + 1)}@media screen and (max-width:40em){.dnb-modal__content--auto-fullscreen{height:auto}}.dnb-modal__content--fullscreen{align-items:flex-start;justify-content:flex-start}.dnb-modal__content--fullscreen .dnb-modal__content__content{height:auto}.dnb-modal__content--left,.dnb-modal__content--top{align-items:flex-start;justify-content:flex-start}.dnb-modal__content--right{align-items:flex-start;justify-content:flex-end}.dnb-modal__content--bottom{align-items:flex-end;justify-content:flex-start}.dnb-modal__vertical-alignment--top{align-items:flex-start;padding-top:5vh}.dnb-modal__overlay{height:100%;left:0;position:fixed;top:0;width:100%;z-index:var(--modal-z-index)}.dnb-modal-root__inner .dnb-modal__overlay{animation:hide-modal-overlay var(--modal-animation-duration) ease-out forwards}.dnb-modal-root__inner:last-of-type .dnb-modal__overlay{animation:show-modal-overlay var(--modal-animation-duration) ease-out}.dnb-modal-root__inner:last-of-type .dnb-modal__overlay--hide{animation:hide-modal-overlay var(--modal-animation-duration) ease-out forwards}.dnb-modal__overlay--no-animation,html[data-visual-test] .dnb-modal__overlay{animation-delay:0ms!important;animation-duration:0ms!important}.dnb-modal-root__inner{position:relative;z-index:calc(var(--modal-z-index) + 1)}.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 2)}.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 3)}.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner~.dnb-modal-root__inner{z-index:calc(var(--modal-z-index) + 4)}.dnb-modal__close-button{z-index:calc(var(--modal-z-index) + 1)}.dnb-modal__header__bar.dnb-section{display:flex;flex-direction:row;justify-content:space-between}
@@ -135,8 +135,3 @@ html[data-dnb-modal-active] {
135
135
  }
136
136
  }
137
137
  }
138
-
139
- [data-visual-test].hide-page-content #___gatsby {
140
- // NB: visibility: hidden; does not work here, because puppeteer does not find the selectors anymore
141
- opacity: 0;
142
- }
@@ -16,7 +16,7 @@ const PaginationProperties = exports.PaginationProperties = {
16
16
  status: 'optional'
17
17
  },
18
18
  children: {
19
- doc: 'the given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section. ',
19
+ doc: 'the given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.',
20
20
  type: ['React.ReactNode', 'function'],
21
21
  status: 'optional'
22
22
  },
@@ -96,7 +96,7 @@ const PaginationProperties = exports.PaginationProperties = {
96
96
  status: 'optional'
97
97
  },
98
98
  set_content_handler: {
99
- doc: 'callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode. ',
99
+ doc: 'callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.',
100
100
  type: 'function',
101
101
  status: 'optional'
102
102
  },
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationDocs.js","names":["PaginationProperties","exports","mode","doc","type","status","paginationBarLayout","children","align","startup_page","current_page","page_count","startup_count","parallel_load_count","min_wait_time","place_maker_before_content","place_marker_before_content","use_load_button","hide_progress_indicator","page_element","fallback_element","indicator_element","marker_element","set_content_handler","reset_content_handler","reset_pagination_handler","end_infinity_handler","button_title","next_title","prev_title","more_pages","is_loading_text","barSpace","load_button_text","loadButton","disabled","skeleton","PaginationEvents","on_change","on_startup","on_load","on_end"],"sources":["../../../../src/components/pagination/PaginationDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const PaginationProperties: PropertiesTableProps = {\n mode: {\n doc: 'if set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the [Infinity Scroller](/uilib/components/pagination/infinity-scroller). Defaults to `pagination`.',\n type: ['pagination', 'infinity'],\n status: 'optional',\n },\n paginationBarLayout: {\n doc: 'The layout of the pagination bar. Defaults to `vertical`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n children: {\n doc: 'the given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section. ',\n type: ['React.ReactNode', 'function'],\n status: 'optional',\n },\n align: {\n doc: 'define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.',\n type: ['left', 'center', 'right'],\n status: 'optional',\n },\n startup_page: {\n doc: 'the page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.',\n type: ['number', 'string'],\n status: 'optional',\n },\n current_page: {\n doc: 'the page shown at the moment the component renders. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n page_count: {\n doc: 'the total pages count. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n startup_count: {\n doc: 'defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n parallel_load_count: {\n doc: 'defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n min_wait_time: {\n doc: 'the minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.',\n type: ['number', 'string'],\n status: 'optional',\n },\n place_maker_before_content: {\n doc: 'if set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`. This prop is deprecated and will be removed in v11, use `place_marker_before_content` instead.',\n type: 'boolean',\n status: 'deprecated',\n },\n place_marker_before_content: {\n doc: 'if set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n use_load_button: {\n doc: 'if set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.',\n type: 'boolean',\n status: 'optional',\n },\n hide_progress_indicator: {\n doc: 'if set to `true` no indicator will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n page_element: {\n doc: 'by default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n fallback_element: {\n doc: '(infinity mode) is used by the _indicator_, _load more_ bar as well as by the marker. Defaults to a `div`.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n indicator_element: {\n doc: '(infinity mode) is used by the _indicator_. Falls back to `fallback_element` if not defined.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n marker_element: {\n doc: '(infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n set_content_handler: {\n doc: 'callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode. ',\n type: 'function',\n status: 'optional',\n },\n reset_content_handler: {\n doc: 'callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.',\n type: 'function',\n status: 'optional',\n },\n reset_pagination_handler: {\n doc: 'callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.',\n type: 'function',\n status: 'optional',\n },\n end_infinity_handler: {\n doc: 'callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.',\n type: 'function',\n status: 'optional',\n },\n button_title: {\n doc: 'The title used in every button shown in the bar. Defaults to `Side %s`.',\n type: 'string',\n status: 'optional',\n },\n next_title: {\n doc: 'The title used in the next page button. Defaults to `Neste side`.',\n type: 'string',\n status: 'optional',\n },\n prev_title: {\n doc: 'The title used in the previous page button. Defaults to `Forrige side`.',\n type: 'string',\n status: 'optional',\n },\n more_pages: {\n doc: 'The title used in the dots. Relevant for screen readers. Defaults to `%s flere sider`.',\n type: 'string',\n status: 'optional',\n },\n is_loading_text: {\n doc: 'Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.',\n type: 'string',\n status: 'optional',\n },\n barSpace: {\n doc: 'Used to set spacing for the pagination bar. Has to be an object with either: `top`, `right`, `bottom` or `left`. Use spacing values like: `small`, `1rem`, `1` or , `16px`. See property [space](/uilib/layout/space/properties).',\n type: 'Various',\n status: 'optional',\n },\n load_button_text: {\n doc: 'Used during infinity mode. If `use_load_button` is set to `true`, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.',\n type: 'string',\n status: 'optional',\n },\n loadButton: {\n doc: 'Used to set load button text and icon alignment. Accepts a function returning a ReactNode too, so you can replace the button with your own component.',\n type: 'Various',\n status: 'optional',\n },\n disabled: {\n doc: 'if set to `true`, all pagination bar buttons are disabled.',\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 '[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 PaginationEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called for every page change, regardless if the mode is `mode=\"infinity\"` or not. Returns an object with number of useful properties and methods. See below for more details.',\n type: 'function',\n status: 'optional',\n },\n on_startup: {\n doc: 'Only on **infinity** mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. **NB:** Will be called again as soon as we reset the content by calling `resetContent()`.',\n type: 'function',\n status: 'optional',\n },\n on_load: {\n doc: 'Only on **infinity** mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.',\n type: 'function',\n status: 'optional',\n },\n on_end: {\n doc: 'Only on **infinity** mode. Will be called once `page_count` is reached or `endInfinity` was called.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,oBAA0C,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EACxDE,IAAI,EAAE;IACJC,GAAG,EAAE,iQAAiQ;IACtQC,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDC,mBAAmB,EAAE;IACnBH,GAAG,EAAE,2DAA2D;IAChEC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDE,QAAQ,EAAE;IACRJ,GAAG,EAAE,mNAAmN;IACxNC,IAAI,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC;IACrCC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,4GAA4G;IACjHC,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;I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AAsM;IAC3MC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoC,MAAM,EAAE;IACNtC,GAAG,EAAE,qGAAqG;IAC1GC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"PaginationDocs.js","names":["PaginationProperties","exports","mode","doc","type","status","paginationBarLayout","children","align","startup_page","current_page","page_count","startup_count","parallel_load_count","min_wait_time","place_maker_before_content","place_marker_before_content","use_load_button","hide_progress_indicator","page_element","fallback_element","indicator_element","marker_element","set_content_handler","reset_content_handler","reset_pagination_handler","end_infinity_handler","button_title","next_title","prev_title","more_pages","is_loading_text","barSpace","load_button_text","loadButton","disabled","skeleton","PaginationEvents","on_change","on_startup","on_load","on_end"],"sources":["../../../../src/components/pagination/PaginationDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const PaginationProperties: PropertiesTableProps = {\n mode: {\n doc: 'if set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the [Infinity Scroller](/uilib/components/pagination/infinity-scroller). Defaults to `pagination`.',\n type: ['pagination', 'infinity'],\n status: 'optional',\n },\n paginationBarLayout: {\n doc: 'The layout of the pagination bar. Defaults to `vertical`.',\n type: ['vertical', 'horizontal'],\n status: 'optional',\n },\n children: {\n doc: 'the given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.',\n type: ['React.ReactNode', 'function'],\n status: 'optional',\n },\n align: {\n doc: 'define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.',\n type: ['left', 'center', 'right'],\n status: 'optional',\n },\n startup_page: {\n doc: 'the page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.',\n type: ['number', 'string'],\n status: 'optional',\n },\n current_page: {\n doc: 'the page shown at the moment the component renders. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n page_count: {\n doc: 'the total pages count. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n startup_count: {\n doc: 'defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n parallel_load_count: {\n doc: 'defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.',\n type: ['number', 'string'],\n status: 'optional',\n },\n min_wait_time: {\n doc: 'the minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.',\n type: ['number', 'string'],\n status: 'optional',\n },\n place_maker_before_content: {\n doc: 'if set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`. This prop is deprecated and will be removed in v11, use `place_marker_before_content` instead.',\n type: 'boolean',\n status: 'deprecated',\n },\n place_marker_before_content: {\n doc: 'if set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n use_load_button: {\n doc: 'if set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.',\n type: 'boolean',\n status: 'optional',\n },\n hide_progress_indicator: {\n doc: 'if set to `true` no indicator will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n page_element: {\n doc: 'by default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n fallback_element: {\n doc: '(infinity mode) is used by the _indicator_, _load more_ bar as well as by the marker. Defaults to a `div`.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n indicator_element: {\n doc: '(infinity mode) is used by the _indicator_. Falls back to `fallback_element` if not defined.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n marker_element: {\n doc: '(infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.',\n type: ['string', 'object', 'React.ReactNode'],\n status: 'optional',\n },\n set_content_handler: {\n doc: 'callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.',\n type: 'function',\n status: 'optional',\n },\n reset_content_handler: {\n doc: 'callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.',\n type: 'function',\n status: 'optional',\n },\n reset_pagination_handler: {\n doc: 'callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.',\n type: 'function',\n status: 'optional',\n },\n end_infinity_handler: {\n doc: 'callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.',\n type: 'function',\n status: 'optional',\n },\n button_title: {\n doc: 'The title used in every button shown in the bar. Defaults to `Side %s`.',\n type: 'string',\n status: 'optional',\n },\n next_title: {\n doc: 'The title used in the next page button. Defaults to `Neste side`.',\n type: 'string',\n status: 'optional',\n },\n prev_title: {\n doc: 'The title used in the previous page button. Defaults to `Forrige side`.',\n type: 'string',\n status: 'optional',\n },\n more_pages: {\n doc: 'The title used in the dots. Relevant for screen readers. Defaults to `%s flere sider`.',\n type: 'string',\n status: 'optional',\n },\n is_loading_text: {\n doc: 'Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.',\n type: 'string',\n status: 'optional',\n },\n barSpace: {\n doc: 'Used to set spacing for the pagination bar. Has to be an object with either: `top`, `right`, `bottom` or `left`. Use spacing values like: `small`, `1rem`, `1` or , `16px`. See property [space](/uilib/layout/space/properties).',\n type: 'Various',\n status: 'optional',\n },\n load_button_text: {\n doc: 'Used during infinity mode. If `use_load_button` is set to `true`, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.',\n type: 'string',\n status: 'optional',\n },\n loadButton: {\n doc: 'Used to set load button text and icon alignment. Accepts a function returning a ReactNode too, so you can replace the button with your own component.',\n type: 'Various',\n status: 'optional',\n },\n disabled: {\n doc: 'if set to `true`, all pagination bar buttons are disabled.',\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 '[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 PaginationEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called for every page change, regardless if the mode is `mode=\"infinity\"` or not. Returns an object with number of useful properties and methods. See below for more details.',\n type: 'function',\n status: 'optional',\n },\n on_startup: {\n doc: 'Only on **infinity** mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. **NB:** Will be called again as soon as we reset the content by calling `resetContent()`.',\n type: 'function',\n status: 'optional',\n },\n on_load: {\n doc: 'Only on **infinity** mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.',\n type: 'function',\n status: 'optional',\n },\n on_end: {\n doc: 'Only on **infinity** mode. Will be called once `page_count` is reached or `endInfinity` was called.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,oBAA0C,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EACxDE,IAAI,EAAE;IACJC,GAAG,EAAE,iQAAiQ;IACtQC,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDC,mBAAmB,EAAE;IACnBH,GAAG,EAAE,2DAA2D;IAChEC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;IAChCC,MAAM,EAAE;EACV,CAAC;EACDE,QAAQ,EAAE;IACRJ,GAAG,EAAE,kNAAkN;IACvNC,IAAI,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC;IACrCC,MAAM,EAAE;EACV,CAAC;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E,8QAA8Q;IACnRC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDmC,OAAO,EAAE;IACPrC,GAAG,EAAE,sMAAsM;IAC3MC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoC,MAAM,EAAE;IACNtC,GAAG,EAAE,qGAAqG;IAC1GC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -66,7 +66,7 @@ const SliderProperties = exports.SliderProperties = {
66
66
  status: 'optional'
67
67
  },
68
68
  numberFormat: {
69
- doc: 'Will extend the return object with a `number` property (from `onChange` event). You can use all the options from the [NumberFormat](/uilib/components/number-format/properties) component. It also will use that formatted number in the increase/decrease buttons. If it has to represent a currency, then use e.g. `numberFormat={{ currency: true, decimals: 0 }}`',
69
+ doc: 'Will extend the return object with a `number` property (from `onChange` event). You can use all the options from the [NumberFormat](/uilib/components/number-format/properties) component. It also will use that formatted number in the increase/decrease buttons. If it has to represent a currency, then use e.g. `numberFormat={{ currency: true, decimals: 0 }}`.',
70
70
  type: 'object',
71
71
  status: 'optional'
72
72
  },
@@ -1 +1 @@
1
- {"version":3,"file":"SliderDocs.js","names":["SliderProperties","exports","value","doc","type","status","min","max","step","vertical","reverse","stretch","hideButtons","multiThumbBehavior","thumbTitle","subtractTitle","addTitle","numberFormat","tooltip","alwaysShowTooltip","label","labelDirection","labelSrOnly","statusState","statusProps","globalStatusId","suffix","skeleton","extensions","SliderEvents","onChange","onDragStart","onDragEnd"],"sources":["../../../../src/components/slider/SliderDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const SliderProperties: PropertiesTableProps = {\n value: {\n doc: 'The `value` of the slider as a number or an array. If an array with numbers is provided, each number will represent a thumb button (the `+` and `-` button will be hidden on multiple thumbs).',\n type: ['number', 'Array<number>'],\n status: 'required',\n },\n min: {\n doc: 'The minimum value. Can be a negative number as well. Defaults to `0`.',\n type: 'number',\n status: 'optional',\n },\n max: {\n doc: 'The maximum value. Defaults to `100`.',\n type: 'number',\n status: 'optional',\n },\n step: {\n doc: 'The steps the slider takes on changing the value. Defaults to `null`.',\n type: 'number',\n status: 'optional',\n },\n vertical: {\n doc: 'Show the slider vertically. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n reverse: {\n doc: 'Show the slider reversed. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the slider will be 100% in `width`.',\n type: 'boolean',\n status: 'optional',\n },\n hideButtons: {\n doc: 'Removes the helper buttons. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n multiThumbBehavior: {\n doc: 'Use either `omit`, `push` or `swap`. This property only works for two (range) or more thumb buttons, while `omit` will stop the thumb from swapping, `push` will push its nearest thumb along. Defaults to `swap`.',\n type: 'string',\n status: 'optional',\n },\n thumbTitle: {\n doc: 'Give the slider thumb button a title for accessibility reasons. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n subtractTitle: {\n doc: 'Give the subtract button a title for accessibility reasons. Defaults to `Decrease (%s)`.',\n type: 'string',\n status: 'optional',\n },\n addTitle: {\n doc: 'Give the add button a title for accessibility reasons. Defaults to `Increase (%s)`.',\n type: 'string',\n status: 'optional',\n },\n numberFormat: {\n doc: 'Will extend the return object with a `number` property (from `onChange` event). You can use all the options from the [NumberFormat](/uilib/components/number-format/properties) component. It also will use that formatted number in the increase/decrease buttons. If it has to represent a currency, then use e.g. `numberFormat={{ currency: true, decimals: 0 }}`',\n type: 'object',\n status: 'optional',\n },\n tooltip: {\n doc: 'Use `true` to show a tooltip on `mouseOver`, `touchStart` and `focus`, showing the current number (if `numberFormat` is given) or the raw value.',\n type: 'boolean',\n status: 'optional',\n },\n alwaysShowTooltip: {\n doc: 'Use `true` to always show the tooltip, in addition to the `tooltip` property.',\n type: 'boolean',\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: 'string',\n status: 'optional',\n },\n labelDirection: {\n doc: 'Use `labelDirection=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'string',\n status: 'optional',\n },\n labelSrOnly: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n statusState: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: ['error', 'info'],\n status: 'optional',\n },\n statusProps: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatusId: {\n doc: 'The `status_id` used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the Slider more than the label. You can also send in a React component, so it gets wrapped inside the Slider component.',\n type: 'string',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n extensions: {\n doc: 'Makes it possible to display overlays with other functionality such as a marker on the slider marking a given value.',\n type: 'object',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const SliderEvents: PropertiesTableProps = {\n onChange: {\n doc: 'will be called on state changes made by the user. The callback `value` and `rawValue` is a number `{ value, rawValue, event }`. But if the prop `numberFormat` is given, then it will return an additional `number` with the given format `{ value, number, rawValue, event }`.',\n type: 'function',\n status: 'optional',\n },\n onDragStart: {\n doc: 'will be called once the user stops dragging. Returns `{ event }`.',\n type: 'function',\n status: 'optional',\n },\n onDragEnd: {\n doc: 'will be called once the user starts dragging. Returns `{ event }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,gBAAsC,GAAAC,OAAA,CAA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,GAAG,EAAE,wEAAwE;IAC7EC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDuB,UAAU,EAAE;IACVzB,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,QAAQ;IACdC,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;AAEM,MAAMwB,YAAkC,GAAA5B,OAAA,CAAA4B,YAAA,GAAG;EAChDC,QAAQ,EAAE;IACR3B,GAAG,EAAE,iRAAiR;IACtRC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD0B,WAAW,EAAE;IACX5B,GAAG,EAAE,mEAAmE;IACxEC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD2B,SAAS,EAAE;IACT7B,GAAG,EAAE,oEAAoE;IACzEC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"SliderDocs.js","names":["SliderProperties","exports","value","doc","type","status","min","max","step","vertical","reverse","stretch","hideButtons","multiThumbBehavior","thumbTitle","subtractTitle","addTitle","numberFormat","tooltip","alwaysShowTooltip","label","labelDirection","labelSrOnly","statusState","statusProps","globalStatusId","suffix","skeleton","extensions","SliderEvents","onChange","onDragStart","onDragEnd"],"sources":["../../../../src/components/slider/SliderDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const SliderProperties: PropertiesTableProps = {\n value: {\n doc: 'The `value` of the slider as a number or an array. If an array with numbers is provided, each number will represent a thumb button (the `+` and `-` button will be hidden on multiple thumbs).',\n type: ['number', 'Array<number>'],\n status: 'required',\n },\n min: {\n doc: 'The minimum value. Can be a negative number as well. Defaults to `0`.',\n type: 'number',\n status: 'optional',\n },\n max: {\n doc: 'The maximum value. Defaults to `100`.',\n type: 'number',\n status: 'optional',\n },\n step: {\n doc: 'The steps the slider takes on changing the value. Defaults to `null`.',\n type: 'number',\n status: 'optional',\n },\n vertical: {\n doc: 'Show the slider vertically. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n reverse: {\n doc: 'Show the slider reversed. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the slider will be 100% in `width`.',\n type: 'boolean',\n status: 'optional',\n },\n hideButtons: {\n doc: 'Removes the helper buttons. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n multiThumbBehavior: {\n doc: 'Use either `omit`, `push` or `swap`. This property only works for two (range) or more thumb buttons, while `omit` will stop the thumb from swapping, `push` will push its nearest thumb along. Defaults to `swap`.',\n type: 'string',\n status: 'optional',\n },\n thumbTitle: {\n doc: 'Give the slider thumb button a title for accessibility reasons. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n subtractTitle: {\n doc: 'Give the subtract button a title for accessibility reasons. Defaults to `Decrease (%s)`.',\n type: 'string',\n status: 'optional',\n },\n addTitle: {\n doc: 'Give the add button a title for accessibility reasons. Defaults to `Increase (%s)`.',\n type: 'string',\n status: 'optional',\n },\n numberFormat: {\n doc: 'Will extend the return object with a `number` property (from `onChange` event). You can use all the options from the [NumberFormat](/uilib/components/number-format/properties) component. It also will use that formatted number in the increase/decrease buttons. If it has to represent a currency, then use e.g. `numberFormat={{ currency: true, decimals: 0 }}`.',\n type: 'object',\n status: 'optional',\n },\n tooltip: {\n doc: 'Use `true` to show a tooltip on `mouseOver`, `touchStart` and `focus`, showing the current number (if `numberFormat` is given) or the raw value.',\n type: 'boolean',\n status: 'optional',\n },\n alwaysShowTooltip: {\n doc: 'Use `true` to always show the tooltip, in addition to the `tooltip` property.',\n type: 'boolean',\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: 'string',\n status: 'optional',\n },\n labelDirection: {\n doc: 'Use `labelDirection=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'string',\n status: 'optional',\n },\n labelSrOnly: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: ['error', 'info', 'boolean'],\n status: 'optional',\n },\n statusState: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: ['error', 'info'],\n status: 'optional',\n },\n statusProps: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatusId: {\n doc: 'The `status_id` used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'string',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the Slider more than the label. You can also send in a React component, so it gets wrapped inside the Slider component.',\n type: 'string',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n extensions: {\n doc: 'Makes it possible to display overlays with other functionality such as a marker on the slider marking a given value.',\n type: 'object',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const SliderEvents: PropertiesTableProps = {\n onChange: {\n doc: 'will be called on state changes made by the user. The callback `value` and `rawValue` is a number `{ value, rawValue, event }`. But if the prop `numberFormat` is given, then it will return an additional `number` with the given format `{ value, number, rawValue, event }`.',\n type: 'function',\n status: 'optional',\n },\n onDragStart: {\n doc: 'will be called once the user stops dragging. Returns `{ event }`.',\n type: 'function',\n status: 'optional',\n },\n onDragEnd: {\n doc: 'will be called once the user starts dragging. Returns `{ event }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,gBAAsC,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EACpDE,KAAK,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IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDuB,UAAU,EAAE;IACVzB,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,QAAQ;IACdC,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;AAEM,MAAMwB,YAAkC,GAAA5B,OAAA,CAAA4B,YAAA,GAAG;EAChDC,QAAQ,EAAE;IACR3B,GAAG,EAAE,iRAAiR;IACtRC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD0B,WAAW,EAAE;IACX5B,GAAG,EAAE,mEAAmE;IACxEC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACD2B,SAAS,EAAE;IACT7B,GAAG,EAAE,oEAAoE;IACzEC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -46,12 +46,12 @@ const StepIndicatorProperties = exports.StepIndicatorProperties = {
46
46
  status: 'optional'
47
47
  },
48
48
  outset: {
49
- doc: 'Same as `outset` in [Card](/uilib/components/card/properties). Defaults to `false`',
49
+ doc: 'Same as `outset` in [Card](/uilib/components/card/properties). Defaults to `false`.',
50
50
  type: 'boolean',
51
51
  status: 'optional'
52
52
  },
53
53
  status: {
54
- doc: 'Text for status shown below the step indicator when it is not expanded. Defaults to `undefined`',
54
+ doc: 'Text for status shown below the step indicator when it is not expanded. Defaults to `undefined`.',
55
55
  type: 'string',
56
56
  status: 'optional'
57
57
  },
@@ -88,12 +88,12 @@ const StepIndicatorProperties = exports.StepIndicatorProperties = {
88
88
  };
89
89
  const StepIndicatorEvents = exports.StepIndicatorEvents = {
90
90
  on_click: {
91
- doc: 'Will be called when the user clicks on any clickable step in the list. Is called right before `on_change`. Receives parameter `{ event, item, current_step, currentStep }`',
91
+ doc: 'Will be called when the user clicks on any clickable step in the list. Is called right before `on_change`. Receives parameter `{ event, item, current_step, currentStep }`.',
92
92
  type: 'function',
93
93
  status: 'optional'
94
94
  },
95
95
  on_change: {
96
- doc: 'Will be called when the user changes step by clicking in the steps list (changing the `current_step` prop does not trigger the event). Receives parameter `{ event, item, current_step, currentStep }`',
96
+ doc: 'Will be called when the user changes step by clicking in the steps list (changing the `current_step` prop does not trigger the event). Receives parameter `{ event, item, current_step, currentStep }`.',
97
97
  type: 'function',
98
98
  status: 'optional'
99
99
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StepIndicatorDocs.js","names":["StepIndicatorProperties","exports","mode","doc","type","status","data","current_step","overview_title","step_title","hide_numbers","no_animation","expandedInitially","outset","status_state","skeleton","sidebar_id","step_title_extended","on_item_render","StepIndicatorEvents","on_click","on_change","StepIndicatorStepProperties","title","is_current","inactive","disabled","on_render","StepIndicatorStepEvents"],"sources":["../../../../src/components/step-indicator/StepIndicatorDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const StepIndicatorProperties: PropertiesTableProps = {\n mode: {\n doc: 'Defines how the StepIndicator should work. Use `static` for non-interactive steps. Use `strict` for a chronological step order, also, the user can navigate between visited steps. Use `loose` if the user should be able to navigate freely.',\n type: [`'static'`, `'strict'`, `'loose'`],\n status: 'required',\n },\n data: {\n doc: 'Defines the data/steps showing up in a JavaScript Array or JSON format like `[{title,is_current}]`. See below for properties of `STEP_DATA`.',\n type: ['[Step Item](#step-item-properties)[]', 'string[]'],\n status: 'required',\n },\n current_step: {\n doc: 'Defines the initial step starting from 0. Also defines the furthest step visited when `mode=\"strict\"`. Will update to the new step if changed (but will not trigger the `on_change` event). Defaults to `0`.',\n type: 'number',\n status: 'optional',\n },\n overview_title: {\n doc: 'The title shown inside the `<StepIndicatorModal />` supplemental screen reader text for the `<StepIndicatorTriggerButton />`. Defaults to `Steps Overview`.',\n type: 'string',\n status: 'optional',\n },\n step_title: {\n doc: 'Label for `<StepIndicatorTriggerButton />` and screen reader text for `<StepIndicatorItem />`. Must contain `%step` and `%count` to interpolate `current_step` and `stepCount` into the text. Defaults to `Step %step of %count`.',\n type: 'string',\n status: 'optional',\n },\n hide_numbers: {\n doc: 'Define whether to show automatically counted numbers or not. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n no_animation: {\n doc: 'If set to `true`, the height animation on step change and list expansion will be omitted. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n expandedInitially: {\n doc: 'Set to `true` to have the list be expanded initially. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n outset: {\n doc: 'Same as `outset` in [Card](/uilib/components/card/properties). Defaults to `false`',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Text for status shown below the step indicator when it is not expanded. Defaults to `undefined`',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'The type of status shown when the `status` prop is set. Defaults to `warn`.',\n type: `['warn', 'info', 'error']`,\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 '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n sidebar_id: {\n doc: 'A unique string-based ID in order to bind together the main component and the sidebar (`<StepIndicator.Sidebar />`). Both have to get the same ID.',\n type: 'string',\n status: 'deprecated',\n },\n step_title_extended: {\n doc: 'Descriptive label for `<StepIndicatorModal />`. Must contain `%step` and `%count` to interpolate `current_step` and `stepCount` into the text. Defaults to `You are on step %step of %count`.',\n type: 'string',\n status: 'deprecated',\n },\n on_item_render: {\n doc: 'Deprecated, just use step item `title`. Callback function whose return is rendered inside each step instead of the default render. Has to return a React Node. Receives parameter `{ StepItem, element, attributes, props, context }`, where `props` also includes all props from the step object (like `title` or `status`) and the `<StepItem>` is a component that can be used to wrap your returned content.',\n type: 'function',\n status: 'deprecated',\n },\n}\n\nexport const StepIndicatorEvents: PropertiesTableProps = {\n on_click: {\n doc: 'Will be called when the user clicks on any clickable step in the list. Is called right before `on_change`. Receives parameter `{ event, item, current_step, currentStep }`',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called when the user changes step by clicking in the steps list (changing the `current_step` prop does not trigger the event). Receives parameter `{ event, item, current_step, currentStep }`',\n type: 'function',\n status: 'optional',\n },\n}\n\nexport const StepIndicatorStepProperties: PropertiesTableProps = {\n title: {\n doc: 'The title of the step.',\n type: ['string', 'React.ReactNode'],\n status: 'required',\n },\n is_current: {\n doc: 'If set to `true`, this item step will be set as the current selected step. This can be used instead of `current_step` on the main component.',\n type: 'boolean',\n status: 'optional',\n },\n inactive: {\n doc: 'If set to `true`, this item step will be handled as an inactive step and will not be clickable. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disabled: {\n doc: 'If set to `true`, this step will be handled the same as `inactive` as well as getting a disabled mouseover and `aria-disabled=\"true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Is used to set the status text.',\n type: ['string', 'React.ReactNode'],\n status: 'optional',\n },\n status_state: {\n doc: 'In case the status state should be `info` or `error`. Defaults to `warn`.',\n type: [`'warn'`, `'info'`, `'error'`],\n status: 'optional',\n },\n on_render: {\n doc: 'Deprecated, just use `title`. Callback function whose return is rendered inside the step instead of the default render (or `on_item_render`). Has to return a React Node. <br/> Receives parameter `{ StepItem, element, attributes, props, context }`, where `props` also includes all props in the step object (like `title` or `status`) and the `<StepItem>` is a component that can be used to wrap your returned content.',\n type: 'function',\n status: 'deprecated',\n },\n}\n\nexport const StepIndicatorStepEvents: PropertiesTableProps = {\n on_click: {\n doc: \"Called when user clicks the step. Is called right before the main component's `on_click`. Receives parameter `{ event, item, current_step, currentStep }`\",\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,uBAA6C,GAAAC,OAAA,CAAAD,uBAAA,GAAG;EA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;EACV,CAAC;EACDA,MAAM,EAAE;IACNF,GAAG,EAAE,iCAAiC;IACtCC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDS,YAAY,EAAE;IACZX,GAAG,EAAE,2EAA2E;IAChFC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC;IACrCC,MAAM,EAAE;EACV,CAAC;EACDsB,SAAS,EAAE;IACTxB,GAAG,EAAE,iaAAia;IACtaC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,MAAMuB,uBAA6C,GAAA3B,OAAA,CAAA2B,uBAAA,GAAG;EAC3DR,QAAQ,EAAE;IACRjB,GAAG,EAAE,2JAA2J;IAChKC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"StepIndicatorDocs.js","names":["StepIndicatorProperties","exports","mode","doc","type","status","data","current_step","overview_title","step_title","hide_numbers","no_animation","expandedInitially","outset","status_state","skeleton","sidebar_id","step_title_extended","on_item_render","StepIndicatorEvents","on_click","on_change","StepIndicatorStepProperties","title","is_current","inactive","disabled","on_render","StepIndicatorStepEvents"],"sources":["../../../../src/components/step-indicator/StepIndicatorDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const StepIndicatorProperties: PropertiesTableProps = {\n mode: {\n doc: 'Defines how the StepIndicator should work. Use `static` for non-interactive steps. Use `strict` for a chronological step order, also, the user can navigate between visited steps. Use `loose` if the user should be able to navigate freely.',\n type: [`'static'`, `'strict'`, `'loose'`],\n status: 'required',\n },\n data: {\n doc: 'Defines the data/steps showing up in a JavaScript Array or JSON format like `[{title,is_current}]`. See below for properties of `STEP_DATA`.',\n type: ['[Step Item](#step-item-properties)[]', 'string[]'],\n status: 'required',\n },\n current_step: {\n doc: 'Defines the initial step starting from 0. Also defines the furthest step visited when `mode=\"strict\"`. Will update to the new step if changed (but will not trigger the `on_change` event). Defaults to `0`.',\n type: 'number',\n status: 'optional',\n },\n overview_title: {\n doc: 'The title shown inside the `<StepIndicatorModal />` supplemental screen reader text for the `<StepIndicatorTriggerButton />`. Defaults to `Steps Overview`.',\n type: 'string',\n status: 'optional',\n },\n step_title: {\n doc: 'Label for `<StepIndicatorTriggerButton />` and screen reader text for `<StepIndicatorItem />`. Must contain `%step` and `%count` to interpolate `current_step` and `stepCount` into the text. Defaults to `Step %step of %count`.',\n type: 'string',\n status: 'optional',\n },\n hide_numbers: {\n doc: 'Define whether to show automatically counted numbers or not. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n no_animation: {\n doc: 'If set to `true`, the height animation on step change and list expansion will be omitted. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n expandedInitially: {\n doc: 'Set to `true` to have the list be expanded initially. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n outset: {\n doc: 'Same as `outset` in [Card](/uilib/components/card/properties). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Text for status shown below the step indicator when it is not expanded. Defaults to `undefined`.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'The type of status shown when the `status` prop is set. Defaults to `warn`.',\n type: `['warn', 'info', 'error']`,\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 '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n sidebar_id: {\n doc: 'A unique string-based ID in order to bind together the main component and the sidebar (`<StepIndicator.Sidebar />`). Both have to get the same ID.',\n type: 'string',\n status: 'deprecated',\n },\n step_title_extended: {\n doc: 'Descriptive label for `<StepIndicatorModal />`. Must contain `%step` and `%count` to interpolate `current_step` and `stepCount` into the text. Defaults to `You are on step %step of %count`.',\n type: 'string',\n status: 'deprecated',\n },\n on_item_render: {\n doc: 'Deprecated, just use step item `title`. Callback function whose return is rendered inside each step instead of the default render. Has to return a React Node. Receives parameter `{ StepItem, element, attributes, props, context }`, where `props` also includes all props from the step object (like `title` or `status`) and the `<StepItem>` is a component that can be used to wrap your returned content.',\n type: 'function',\n status: 'deprecated',\n },\n}\n\nexport const StepIndicatorEvents: PropertiesTableProps = {\n on_click: {\n doc: 'Will be called when the user clicks on any clickable step in the list. Is called right before `on_change`. Receives parameter `{ event, item, current_step, currentStep }`.',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called when the user changes step by clicking in the steps list (changing the `current_step` prop does not trigger the event). Receives parameter `{ event, item, current_step, currentStep }`.',\n type: 'function',\n status: 'optional',\n },\n}\n\nexport const StepIndicatorStepProperties: PropertiesTableProps = {\n title: {\n doc: 'The title of the step.',\n type: ['string', 'React.ReactNode'],\n status: 'required',\n },\n is_current: {\n doc: 'If set to `true`, this item step will be set as the current selected step. This can be used instead of `current_step` on the main component.',\n type: 'boolean',\n status: 'optional',\n },\n inactive: {\n doc: 'If set to `true`, this item step will be handled as an inactive step and will not be clickable. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disabled: {\n doc: 'If set to `true`, this step will be handled the same as `inactive` as well as getting a disabled mouseover and `aria-disabled=\"true`. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n status: {\n doc: 'Is used to set the status text.',\n type: ['string', 'React.ReactNode'],\n status: 'optional',\n },\n status_state: {\n doc: 'In case the status state should be `info` or `error`. Defaults to `warn`.',\n type: [`'warn'`, `'info'`, `'error'`],\n status: 'optional',\n },\n on_render: {\n doc: 'Deprecated, just use `title`. Callback function whose return is rendered inside the step instead of the default render (or `on_item_render`). Has to return a React Node. <br/> Receives parameter `{ StepItem, element, attributes, props, context }`, where `props` also includes all props in the step object (like `title` or `status`) and the `<StepItem>` is a component that can be used to wrap your returned content.',\n type: 'function',\n status: 'deprecated',\n },\n}\n\nexport const StepIndicatorStepEvents: PropertiesTableProps = {\n on_click: {\n doc: \"Called when user clicks the step. Is called right before the main component's `on_click`. Receives parameter `{ event, item, current_step, currentStep }`\",\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,uBAA6C,GAAAC,OAAA,CAAAD,uBAAA,GAAG;EAC3DE,IAAI,EAAE;IACJC,GAAG,EAAE,+OAA+O;IACpPC,IAAI,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;IACzCC,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJH,GAAG,EAAE,8IAA8I;IACnJC,IAAI,EAAE,CAAC,sCAAsC,EAAE,UAAU,CAAC;IAC1DC,MAAM,EAAE;EACV,CAAC;EACDE,YAAY,EAAE;IACZJ,GAAG,EAAE,8MAA8M;IACnNC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,cAAc,EAAE;IACdL,GAAG,EAAE,6JAA6J;IAClKC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,UAAU,EAAE;IACVN,GAAG,EAAE,mOAAmO;IACxOC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,YAAY,EAAE;IACZP,GAAG,EAAE,mFAAmF;IACxFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,YAAY,EAAE;IACZR,GAAG,EAAE,gHAAgH;IACrHC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,iBAAiB,EAAE;IACjBT,GAAG,EAAE,4EAA4E;IACjFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDQ,MAAM,EAAE;IACNV,GAAG,EAAE,qFAAqF;IAC1FC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDA,MAAM,EAAE;IACNF,GAAG,EAAE,kGAAkG;IACvGC,IAAI,EAAE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;EACV,CAAC;EACDoB,QAAQ,EAAE;IACRtB,GAAG,EAAE,sHAAsH;IAC3HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDqB,QAAQ,EAAE;IACRvB,GAAG,EAAE,4JAA4J;IACjKC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDA,MAAM,EAAE;IACNF,GAAG,EAAE,iCAAiC;IACtCC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDS,YAAY,EAAE;IACZX,GAAG,EAAE,2EAA2E;IAChFC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC;IACrCC,MAAM,EAAE;EACV,CAAC;EACDsB,SAAS,EAAE;IACTxB,GAAG,EAAE,iaAAia;IACtaC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,MAAMuB,uBAA6C,GAAA3B,OAAA,CAAA2B,uBAAA,GAAG;EAC3DR,QAAQ,EAAE;IACRjB,GAAG,EAAE,2JAA2J;IAChKC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -15,7 +15,8 @@ var _calendar = _interopRequireDefault(require("../../icons/calendar"));
15
15
  var _pin = _interopRequireDefault(require("../../icons/pin"));
16
16
  var _Context = _interopRequireDefault(require("../../shared/Context"));
17
17
  var _componentHelper = require("../../shared/component-helper");
18
- var _span;
18
+ var _AlignmentHelper2 = _interopRequireDefault(require("../../shared/AlignmentHelper"));
19
+ var _AlignmentHelper;
19
20
  const _excluded = ["icon", "iconAlt", "title", "subtitle", "infoMessage", "state", "skeleton"],
20
21
  _excluded2 = ["title"];
21
22
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -101,10 +102,9 @@ const TimelineItemIcon = _ref2 => {
101
102
  const currentAltLabel = iconAlt || labels[state];
102
103
  return _react.default.createElement("span", {
103
104
  className: "dnb-timeline__item__label__icon"
104
- }, _span || (_span = _react.default.createElement("span", {
105
- key: "icon-alignment",
106
- "aria-hidden": true
107
- }, "\u200C")), !skeleton && currentIcon && _react.default.createElement(_IconPrimary.default, {
105
+ }, _AlignmentHelper || (_AlignmentHelper = _react.default.createElement(_AlignmentHelper2.default, {
106
+ pseudoElementOnly: true
107
+ })), !skeleton && currentIcon && _react.default.createElement(_IconPrimary.default, {
108
108
  icon: currentIcon,
109
109
  alt: currentAltLabel,
110
110
  size: state === 'current' ? undefined : 'small'
@@ -1 +1 @@
1
- {"version":3,"file":"TimelineItem.js","names":["_react","_interopRequireDefault","require","_classnames","_FormStatus","_IconPrimary","_SkeletonHelper","_check","_calendar","_pin","_Context","_componentHelper","_span","_excluded","_excluded2","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","defaultProps","icon","iconAlt","title","subtitle","infoMessage","state","skeleton","TimelineItem","localProps","context","React","useContext","Context","allProps","extendPropsWithContext","props","skeletonClasses","createSkeletonClass","classes","classnames","createElement","className","undefined","TimelineItemLabel","translations","translation","TimelineItemContent","_ref","iconProps","TimelineItemIcon","TimelineItemTitle","_ref2","alt_label_completed","alt_label_current","alt_label_upcoming","icons","completed","checkIcon","current","pinIcon","upcoming","calendarIcon","labels","currentIcon","currentAltLabel","key","alt","size","_ref3","_ref4","_TimelineItemSubtitle","renderSubtitles","Array","isArray","map","TimelineItemSubtitle","text","stretch","_ref5","_default","exports"],"sources":["../../../../src/components/timeline/TimelineItem.tsx"],"sourcesContent":["import React from 'react'\nimport classnames from 'classnames'\n\n// Components\nimport FormStatus from '../form-status/FormStatus'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport type { IconIcon } from '../icon/Icon'\nimport { createSkeletonClass } from '../skeleton/SkeletonHelper'\n\n// Icons\nimport checkIcon from '../../icons/check'\nimport calendarIcon from '../../icons/calendar'\nimport pinIcon from '../../icons/pin'\n\n// Shared\nimport Context from '../../shared/Context'\nimport type { SkeletonShow } from '../skeleton/Skeleton'\nimport { extendPropsWithContext } from '../../shared/component-helper'\n\nexport type TimeLineItemStates = 'completed' | 'current' | 'upcoming'\n\nexport type TimelineItemProps = {\n /**\n * Icon displaying on the left side.\n * Default: `check` for state `completed`, `pin` for state `current`, and `calendar` for state `upcoming` .\n */\n icon?: IconIcon\n\n /**\n * Text displaying the title of the item's corresponding page.\n * Default: translations based on the icon.\n */\n iconAlt?: string\n\n /**\n * Text displaying the title of the timeline item.\n */\n title: React.ReactNode\n\n /**\n * Text displaying the subtitle of the timeline item.\n */\n subtitle?: React.ReactNode | React.ReactNode[]\n\n /**\n * Text displaying info message of the timeline item.\n */\n infoMessage?: React.ReactNode\n\n /**\n * The component state. State 'completed', 'current' or 'upcoming'.\n * Default: null\n */\n state: TimeLineItemStates\n\n /**\n * Skeleton should be applied when loading content\n * Default: null\n */\n skeleton?: SkeletonShow\n}\n\nexport type TimelineItemAllProps = TimelineItemProps &\n Omit<React.AllHTMLAttributes<HTMLLIElement>, 'title' | 'name'>\n\nconst defaultProps = {\n icon: null,\n iconAlt: null,\n title: null,\n subtitle: null,\n infoMessage: null,\n state: null,\n skeleton: false,\n}\n\nconst TimelineItem = (localProps: TimelineItemAllProps) => {\n // Every component should have a context\n const context = React.useContext(Context)\n\n // Extract additional props from global context\n const allProps = extendPropsWithContext(\n localProps,\n defaultProps,\n context?.TimelineItem,\n { skeleton: context?.skeleton }\n )\n\n const {\n icon,\n iconAlt,\n title,\n subtitle,\n infoMessage,\n state,\n skeleton,\n ...props\n } = allProps\n\n const skeletonClasses = createSkeletonClass('font', skeleton, context)\n const classes = classnames(\n 'dnb-timeline__item',\n skeletonClasses,\n `dnb-timeline__item--${state}`\n )\n\n return (\n <li\n className={classes}\n aria-current={state === 'current' ? 'step' : undefined}\n {...props}\n >\n <TimelineItemLabel\n state={state}\n title={title}\n icon={icon}\n iconAlt={iconAlt}\n skeleton={skeleton}\n translations={\n context.translation.TimelineItem as TimeLineIconAltTranslations\n }\n />\n <TimelineItemContent subtitle={subtitle} infoMessage={infoMessage} />\n </li>\n )\n}\n\n// Label\n\ntype TimelineItemLabelProps = TimeLineIconProps & TimelineItemTitleProps\n\nconst TimelineItemLabel = ({\n title,\n ...iconProps\n}: TimelineItemLabelProps) => {\n return (\n <span className=\"dnb-timeline__item__label\">\n <TimelineItemIcon {...iconProps} />\n <TimelineItemTitle title={title} />\n </span>\n )\n}\n\ntype TimeLineIconProps = Pick<\n TimelineItemProps,\n 'icon' | 'iconAlt' | 'state' | 'skeleton'\n> & { translations: TimeLineIconAltTranslations }\n\ntype TimeLineIconAltTranslations = {\n alt_label_completed: string\n alt_label_current: string\n alt_label_upcoming: string\n}\n\nconst TimelineItemIcon = ({\n icon,\n state,\n iconAlt,\n skeleton,\n translations,\n}: TimeLineIconProps) => {\n const { alt_label_completed, alt_label_current, alt_label_upcoming } =\n translations\n\n const icons: Record<TimeLineItemStates, IconIcon> = {\n completed: checkIcon,\n current: pinIcon,\n upcoming: calendarIcon,\n }\n\n const labels: Record<TimeLineItemStates, string> = {\n completed: alt_label_completed,\n current: alt_label_current,\n upcoming: alt_label_upcoming,\n }\n\n const currentIcon = icon || icons[state]\n const currentAltLabel = iconAlt || labels[state]\n\n return (\n <span className=\"dnb-timeline__item__label__icon\">\n <span key=\"icon-alignment\" aria-hidden>\n &zwnj;\n </span>\n {!skeleton && currentIcon && (\n <IconPrimary\n icon={currentIcon}\n alt={currentAltLabel}\n size={state === 'current' ? undefined : 'small'}\n />\n )}\n </span>\n )\n}\n\ntype TimelineItemTitleProps = Pick<TimelineItemProps, 'title'>\n\nconst TimelineItemTitle = ({ title }: TimelineItemTitleProps) => {\n return <span className=\"dnb-timeline__item__label__title\">{title}</span>\n}\n\n// Content\n\ntype TimeLineItemContentProps = Pick<\n TimelineItemProps,\n 'subtitle' | 'infoMessage'\n>\n\nconst TimelineItemContent = ({\n subtitle,\n infoMessage,\n}: TimeLineItemContentProps) => {\n const renderSubtitles = () => {\n if (!subtitle) {\n return null\n }\n\n if (Array.isArray(subtitle)) {\n return subtitle.map((subtitle, i) => (\n <TimelineItemSubtitle key={i} subtitle={subtitle} />\n ))\n }\n return <TimelineItemSubtitle subtitle={subtitle} />\n }\n\n return (\n <div className=\"dnb-timeline__item__content\">\n {renderSubtitles()}\n {infoMessage && (\n <FormStatus\n text={infoMessage}\n state=\"info\"\n className=\"dnb-timeline__item__content__info\"\n stretch\n />\n )}\n </div>\n )\n}\n\ntype TimelineItemSubtitleProps = {\n subtitle: React.ReactNode\n}\n\nconst TimelineItemSubtitle = ({ subtitle }: TimelineItemSubtitleProps) => (\n <div className=\"dnb-timeline__item__content__subtitle\">{subtitle}</div>\n)\n\nexport default TimelineItem\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAGA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,IAAA,GAAAR,sBAAA,CAAAC,OAAA;AAGA,IAAAQ,QAAA,GAAAT,sBAAA,CAAAC,OAAA;AAEA,IAAAS,gBAAA,GAAAT,OAAA;AAAsE,IAAAU,KAAA;AAAA,MAAAC,SAAA;EAAAC,UAAA;AAAA,SAAAb,uBAAAc,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CA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A,CAACtD,WAAA,CAAAa,OAAU;IACT6E,IAAI,EAAEpD,WAAY;IAClBC,KAAK,EAAC,MAAM;IACZgB,SAAS,EAAC,mCAAmC;IAC7CoC,OAAO;EAAA,CACR,CAEA,CAAC;AAEV,CAAC;AAMD,MAAMF,oBAAoB,GAAGG,KAAA;EAAA,IAAC;IAAEvD;EAAoC,CAAC,GAAAuD,KAAA;EAAA,OACnEhG,MAAA,CAAAiB,OAAA,CAAAyC,aAAA;IAAKC,SAAS,EAAC;EAAuC,GAAElB,QAAc,CAAC;AAAA,CACxE;AAAA,IAAAwD,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAEc4B,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"TimelineItem.js","names":["_react","_interopRequireDefault","require","_classnames","_FormStatus","_IconPrimary","_SkeletonHelper","_check","_calendar","_pin","_Context","_componentHelper","_AlignmentHelper2","_AlignmentHelper","_excluded","_excluded2","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","defaultProps","icon","iconAlt","title","subtitle","infoMessage","state","skeleton","TimelineItem","localProps","context","React","useContext","Context","allProps","extendPropsWithContext","props","skeletonClasses","createSkeletonClass","classes","classnames","createElement","className","undefined","TimelineItemLabel","translations","translation","TimelineItemContent","_ref","iconProps","TimelineItemIcon","TimelineItemTitle","_ref2","alt_label_completed","alt_label_current","alt_label_upcoming","icons","completed","checkIcon","current","pinIcon","upcoming","calendarIcon","labels","currentIcon","currentAltLabel","pseudoElementOnly","alt","size","_ref3","_ref4","_TimelineItemSubtitle","renderSubtitles","Array","isArray","map","TimelineItemSubtitle","key","text","stretch","_ref5","_default","exports"],"sources":["../../../../src/components/timeline/TimelineItem.tsx"],"sourcesContent":["import React from 'react'\nimport classnames from 'classnames'\n\n// Components\nimport FormStatus from '../form-status/FormStatus'\nimport IconPrimary from '../icon-primary/IconPrimary'\nimport type { IconIcon } from '../icon/Icon'\nimport { createSkeletonClass } from '../skeleton/SkeletonHelper'\n\n// Icons\nimport checkIcon from '../../icons/check'\nimport calendarIcon from '../../icons/calendar'\nimport pinIcon from '../../icons/pin'\n\n// Shared\nimport Context from '../../shared/Context'\nimport type { SkeletonShow } from '../skeleton/Skeleton'\nimport { extendPropsWithContext } from '../../shared/component-helper'\nimport AlignmentHelper from '../../shared/AlignmentHelper'\n\nexport type TimeLineItemStates = 'completed' | 'current' | 'upcoming'\n\nexport type TimelineItemProps = {\n /**\n * Icon displaying on the left side.\n * Default: `check` for state `completed`, `pin` for state `current`, and `calendar` for state `upcoming` .\n */\n icon?: IconIcon\n\n /**\n * Text displaying the title of the item's corresponding page.\n * Default: translations based on the icon.\n */\n iconAlt?: string\n\n /**\n * Text displaying the title of the timeline item.\n */\n title: React.ReactNode\n\n /**\n * Text displaying the subtitle of the timeline item.\n */\n subtitle?: React.ReactNode | React.ReactNode[]\n\n /**\n * Text displaying info message of the timeline item.\n */\n infoMessage?: React.ReactNode\n\n /**\n * The component state. State 'completed', 'current' or 'upcoming'.\n * Default: null\n */\n state: TimeLineItemStates\n\n /**\n * Skeleton should be applied when loading content\n * Default: null\n */\n skeleton?: SkeletonShow\n}\n\nexport type TimelineItemAllProps = TimelineItemProps &\n Omit<React.AllHTMLAttributes<HTMLLIElement>, 'title' | 'name'>\n\nconst defaultProps = {\n icon: null,\n iconAlt: null,\n title: null,\n subtitle: null,\n infoMessage: null,\n state: null,\n skeleton: false,\n}\n\nconst TimelineItem = (localProps: TimelineItemAllProps) => {\n // Every component should have a context\n const context = React.useContext(Context)\n\n // Extract additional props from global context\n const allProps = extendPropsWithContext(\n localProps,\n defaultProps,\n context?.TimelineItem,\n { skeleton: context?.skeleton }\n )\n\n const {\n icon,\n iconAlt,\n title,\n subtitle,\n infoMessage,\n state,\n skeleton,\n ...props\n } = allProps\n\n const skeletonClasses = createSkeletonClass('font', skeleton, context)\n const classes = classnames(\n 'dnb-timeline__item',\n skeletonClasses,\n `dnb-timeline__item--${state}`\n )\n\n return (\n <li\n className={classes}\n aria-current={state === 'current' ? 'step' : undefined}\n {...props}\n >\n <TimelineItemLabel\n state={state}\n title={title}\n icon={icon}\n iconAlt={iconAlt}\n skeleton={skeleton}\n translations={\n context.translation.TimelineItem as TimeLineIconAltTranslations\n }\n />\n <TimelineItemContent subtitle={subtitle} infoMessage={infoMessage} />\n </li>\n )\n}\n\n// Label\n\ntype TimelineItemLabelProps = TimeLineIconProps & TimelineItemTitleProps\n\nconst TimelineItemLabel = ({\n title,\n ...iconProps\n}: TimelineItemLabelProps) => {\n return (\n <span className=\"dnb-timeline__item__label\">\n <TimelineItemIcon {...iconProps} />\n <TimelineItemTitle title={title} />\n </span>\n )\n}\n\ntype TimeLineIconProps = Pick<\n TimelineItemProps,\n 'icon' | 'iconAlt' | 'state' | 'skeleton'\n> & { translations: TimeLineIconAltTranslations }\n\ntype TimeLineIconAltTranslations = {\n alt_label_completed: string\n alt_label_current: string\n alt_label_upcoming: string\n}\n\nconst TimelineItemIcon = ({\n icon,\n state,\n iconAlt,\n skeleton,\n translations,\n}: TimeLineIconProps) => {\n const { alt_label_completed, alt_label_current, alt_label_upcoming } =\n translations\n\n const icons: Record<TimeLineItemStates, IconIcon> = {\n completed: checkIcon,\n current: pinIcon,\n upcoming: calendarIcon,\n }\n\n const labels: Record<TimeLineItemStates, string> = {\n completed: alt_label_completed,\n current: alt_label_current,\n upcoming: alt_label_upcoming,\n }\n\n const currentIcon = icon || icons[state]\n const currentAltLabel = iconAlt || labels[state]\n\n return (\n <span className=\"dnb-timeline__item__label__icon\">\n <AlignmentHelper pseudoElementOnly />\n {!skeleton && currentIcon && (\n <IconPrimary\n icon={currentIcon}\n alt={currentAltLabel}\n size={state === 'current' ? undefined : 'small'}\n />\n )}\n </span>\n )\n}\n\ntype TimelineItemTitleProps = Pick<TimelineItemProps, 'title'>\n\nconst TimelineItemTitle = ({ title }: TimelineItemTitleProps) => {\n return <span className=\"dnb-timeline__item__label__title\">{title}</span>\n}\n\n// Content\n\ntype TimeLineItemContentProps = Pick<\n TimelineItemProps,\n 'subtitle' | 'infoMessage'\n>\n\nconst TimelineItemContent = ({\n subtitle,\n infoMessage,\n}: TimeLineItemContentProps) => {\n const renderSubtitles = () => {\n if (!subtitle) {\n return null\n }\n\n if (Array.isArray(subtitle)) {\n return subtitle.map((subtitle, i) => (\n <TimelineItemSubtitle key={i} subtitle={subtitle} />\n ))\n }\n return <TimelineItemSubtitle subtitle={subtitle} />\n }\n\n return (\n <div className=\"dnb-timeline__item__content\">\n {renderSubtitles()}\n {infoMessage && (\n <FormStatus\n text={infoMessage}\n state=\"info\"\n className=\"dnb-timeline__item__content__info\"\n stretch\n />\n )}\n </div>\n )\n}\n\ntype TimelineItemSubtitleProps = {\n subtitle: React.ReactNode\n}\n\nconst TimelineItemSubtitle = ({ subtitle }: TimelineItemSubtitleProps) => (\n <div className=\"dnb-timeline__item__content__subtitle\">{subtitle}</div>\n)\n\nexport default TimelineItem\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAGA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,eAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,IAAA,GAAAR,sBAAA,CAAAC,OAAA;AAGA,IAAAQ,QAAA,GAAAT,sBAAA,CAAAC,OAAA;AAEA,IAAAS,gBAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAX,sBAAA,CAAAC,OAAA;AAA0D,IAAAW,gBAAA;AAAA,MAAAC,SAAA;EAAAC,UAAA;AAAA,SAAAd,uBAAAe,CAAA,WAAAA,C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EACrD,CAAC;EAED,OACE1C,MAAA,CAAAkB,OAAA,CAAAyC,aAAA;IAAKC,SAAS,EAAC;EAA6B,GACzC8B,eAAe,CAAC,CAAC,EACjB/C,WAAW,IACV3C,MAAA,CAAAkB,OAAA,CAAAyC,aAAA,CAACvD,WAAA,CAAAc,OAAU;IACT8E,IAAI,EAAErD,WAAY;IAClBC,KAAK,EAAC,MAAM;IACZgB,SAAS,EAAC,mCAAmC;IAC7CqC,OAAO;EAAA,CACR,CAEA,CAAC;AAEV,CAAC;AAMD,MAAMH,oBAAoB,GAAGI,KAAA;EAAA,IAAC;IAAExD;EAAoC,CAAC,GAAAwD,KAAA;EAAA,OACnElG,MAAA,CAAAkB,OAAA,CAAAyC,aAAA;IAAKC,SAAS,EAAC;EAAuC,GAAElB,QAAc,CAAC;AAAA,CACxE;AAAA,IAAAyD,QAAA,GAAAC,OAAA,CAAAlF,OAAA,GAEc4B,YAAY","ignoreList":[]}
@@ -86,7 +86,7 @@ const ToggleButtonProperties = exports.ToggleButtonProperties = {
86
86
  };
87
87
  const ToggleButtonEvents = exports.ToggleButtonEvents = {
88
88
  on_change: {
89
- doc: 'will be called on state changes made by the user. Returns a boolean and string `{ checked, value, event }`',
89
+ doc: 'will be called on state changes made by the user. Returns a boolean and string `{ checked, value, event }`.',
90
90
  type: 'function',
91
91
  status: 'optional'
92
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleButtonDocs.js","names":["_ButtonDocs","require","ToggleButtonProperties","exports","value","doc","type","status","text","checked","title","label","icon","icon_position","icon_size","tooltip","ButtonProperties","size","status_state","status_props","globalStatus","suffix","skeleton","ToggleButtonEvents","on_change"],"sources":["../../../../src/components/toggle-button/ToggleButtonDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\nimport { ButtonProperties } from '../button/ButtonDocs'\n\nexport const ToggleButtonProperties: PropertiesTableProps = {\n value: {\n doc: 'Defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the **ToggleButtonGroup**.',\n type: 'string',\n status: 'required',\n },\n text: {\n doc: 'The text shown in the ToggleButton.',\n type: 'string',\n status: 'required',\n },\n checked: {\n doc: 'Determine whether the ToggleButton is checked or not. The default will be `false`.',\n type: 'boolean',\n status: 'optional',\n },\n title: {\n doc: 'The `title` of the input - describing it a bit further for accessibility reasons.',\n type: 'string',\n status: 'optional',\n },\n label: {\n doc: 'Use either the `label` property or provide a custom one.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to be included in the toggle button.',\n type: ['string', 'React.ReactNode'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Position of the icon inside the toggle button. Set to `left` or `right`. Defaults to `right` if not set.',\n type: ['left', 'right'],\n status: 'optional',\n },\n icon_size: {\n doc: 'Define icon width and height. Defaults to `16px`.',\n type: 'string',\n status: 'optional',\n },\n tooltip: ButtonProperties.tooltip,\n size: ButtonProperties.size,\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 suffix: {\n doc: 'Text describing the content of the ToggleButton more than the label. You can also send in a React component, so it gets wrapped inside the ToggleButton component.',\n type: ['string', 'React.ReactNode'],\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 '[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 ToggleButtonEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called on state changes made by the user. Returns a boolean and string `{ checked, value, event }`',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEO,MAAMC,sBAA4C,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EAC1DE,KAAK,EAAE;IACLC,GAAG,EAAE,uIAAuI;IAC5IC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJH,GAAG,EAAE,qCAAqC;IAC1CC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,oFAAoF;IACzFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,mFAAmF;IACxFC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,KAAK,EAAE;IACLN,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,IAAI,EAAE;IACJP,GAAG,EAAE,2CAA2C;IAChDC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDM,aAAa,EAAE;IACbR,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACvBC,MAAM,EAAE;EACV,CAAC;EACDO,SAAS,EAAE;IACTT,GAAG,EAAE,mDAAmD;IACxDC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDQ,OAAO,EAAEC,4BAAgB,CAACD,OAAO;EACjCE,IAAI,EAAED,4BAAgB,CAACC,IAAI;EAC3BV,MAAM,EAAE;IACNF,GAAG,EAAE,yIAAyI;IAC9IC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;IAClCC,MAAM,EAAE;EACV,CAAC;EACDW,YAAY,EAAE;IACZb,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACvBC,MAAM,EAAE;EACV,CAAC;EACDY,YAAY,EAAE;IACZd,GAAG,EAAE,2DAA2D;IAChEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDa,YAAY,EAAE;IACZf,GAAG,EAAE,4JAA4J;IACjKC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDc,MAAM,EAAE;IACNhB,GAAG,EAAE,oKAAoK;IACzKC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDe,QAAQ,EAAE;IACRjB,GAAG,EAAE,wEAAwE;IAC7EC,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;AACF,CAAC;AAEM,MAAMgB,kBAAwC,GAAApB,OAAA,CAAAoB,kBAAA,GAAG;EACtDC,SAAS,EAAE;IACTnB,GAAG,EAAE,4GAA4G;IACjHC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"ToggleButtonDocs.js","names":["_ButtonDocs","require","ToggleButtonProperties","exports","value","doc","type","status","text","checked","title","label","icon","icon_position","icon_size","tooltip","ButtonProperties","size","status_state","status_props","globalStatus","suffix","skeleton","ToggleButtonEvents","on_change"],"sources":["../../../../src/components/toggle-button/ToggleButtonDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\nimport { ButtonProperties } from '../button/ButtonDocs'\n\nexport const ToggleButtonProperties: PropertiesTableProps = {\n value: {\n doc: 'Defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the **ToggleButtonGroup**.',\n type: 'string',\n status: 'required',\n },\n text: {\n doc: 'The text shown in the ToggleButton.',\n type: 'string',\n status: 'required',\n },\n checked: {\n doc: 'Determine whether the ToggleButton is checked or not. The default will be `false`.',\n type: 'boolean',\n status: 'optional',\n },\n title: {\n doc: 'The `title` of the input - describing it a bit further for accessibility reasons.',\n type: 'string',\n status: 'optional',\n },\n label: {\n doc: 'Use either the `label` property or provide a custom one.',\n type: 'string',\n status: 'optional',\n },\n icon: {\n doc: 'Icon to be included in the toggle button.',\n type: ['string', 'React.ReactNode'],\n status: 'optional',\n },\n icon_position: {\n doc: 'Position of the icon inside the toggle button. Set to `left` or `right`. Defaults to `right` if not set.',\n type: ['left', 'right'],\n status: 'optional',\n },\n icon_size: {\n doc: 'Define icon width and height. Defaults to `16px`.',\n type: 'string',\n status: 'optional',\n },\n tooltip: ButtonProperties.tooltip,\n size: ButtonProperties.size,\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 suffix: {\n doc: 'Text describing the content of the ToggleButton more than the label. You can also send in a React component, so it gets wrapped inside the ToggleButton component.',\n type: ['string', 'React.ReactNode'],\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 '[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 ToggleButtonEvents: PropertiesTableProps = {\n on_change: {\n doc: 'will be called on state changes made by the user. Returns a boolean and string `{ checked, value, event }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEO,MAAMC,sBAA4C,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EAC1DE,KAAK,EAAE;IACLC,GAAG,EAAE,uIAAuI;IAC5IC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,IAAI,EAAE;IACJH,GAAG,EAAE,qCAAqC;IAC1CC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,OAAO,EAAE;IACPJ,GAAG,EAAE,oFAAoF;IACzFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,mFAAmF;IACxFC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,KAAK,EAAE;IACLN,GAAG,EAAE,0DAA0D;IAC/DC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDK,IAAI,EAAE;IACJP,GAAG,EAAE,2CAA2C;IAChDC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDM,aAAa,EAAE;IACbR,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACvBC,MAAM,EAAE;EACV,CAAC;EACDO,SAAS,EAAE;IACTT,GAAG,EAAE,mDAAmD;IACxDC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDQ,OAAO,EAAEC,4BAAgB,CAACD,OAAO;EACjCE,IAAI,EAAED,4BAAgB,CAACC,IAAI;EAC3BV,MAAM,EAAE;IACNF,GAAG,EAAE,yIAAyI;IAC9IC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC;IAClCC,MAAM,EAAE;EACV,CAAC;EACDW,YAAY,EAAE;IACZb,GAAG,EAAE,0GAA0G;IAC/GC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACvBC,MAAM,EAAE;EACV,CAAC;EACDY,YAAY,EAAE;IACZd,GAAG,EAAE,2DAA2D;IAChEC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDa,YAAY,EAAE;IACZf,GAAG,EAAE,4JAA4J;IACjKC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDc,MAAM,EAAE;IACNhB,GAAG,EAAE,oKAAoK;IACzKC,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACnCC,MAAM,EAAE;EACV,CAAC;EACDe,QAAQ,EAAE;IACRjB,GAAG,EAAE,wEAAwE;IAC7EC,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;AACF,CAAC;AAEM,MAAMgB,kBAAwC,GAAApB,OAAA,CAAAoB,kBAAA,GAAG;EACtDC,SAAS,EAAE;IACTnB,GAAG,EAAE,6GAA6G;IAClHC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
@@ -124,7 +124,6 @@
124
124
  }
125
125
  .dnb-upload__accepted-file-types-table.dnb-table {
126
126
  width: -webkit-fit-content;
127
- width: -moz-fit-content;
128
127
  width: fit-content;
129
128
  }
130
129
  .dnb-upload__accepted-file-types-table.dnb-table thead th {
@@ -1 +1 @@
1
- .dnb-upload{--upload-background:#fff;--upload-background--active:#d3d3d3;--upload-border:gray;--upload-border--active:#000;--upload-border-width:2px;--upload-list-border:#000;--upload-icon--default:#000;--upload-icon--warning:red;--upload-highlight:#ffffe0;--upload-text--primary:#000;--upload-text--secondary:#000;background-color:var(--upload-background);border-radius:.5rem;display:flex;flex-direction:column;flex-grow:1;padding:var(--spacing-medium);position:relative}@media screen and (max-width:40em){.dnb-upload{padding:var(--spacing-medium) var(--spacing-small)}}.dnb-upload__outline{stroke:var(--upload-border);stroke-width:.1875rem;border-radius:.5rem;bottom:0;content:"";height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dnb-upload--active .dnb-upload__outline{stroke:var(--upload-border--active);bottom:-1px;height:calc(100% + var(--upload-border-width));left:-1px;right:-1px;top:-1px;width:calc(100% + var(--upload-border-width))}.dnb-upload--active .dnb-upload__outline rect{stroke-width:.25rem;stroke-dasharray:0}.dnb-upload--active{background-color:var(--upload-background--active)}.dnb-upload__file-input{position:absolute;visibility:hidden}.dnb-upload__file-list{list-style:none;margin-bottom:0;margin-top:var(--spacing-medium);padding:0;position:relative}.dnb-upload__file-cell:after,.dnb-upload__file-list:before{background-color:var(--upload-list-border);bottom:0;content:"";height:1px;left:0;position:absolute;right:0;top:0}.dnb-upload__file-cell{padding:var(--spacing-small) 0;position:relative;transition:background-color;transition-duration:1.5s;transition-timing-function:var(--easing-default)}.dnb-upload__file-cell:after{top:auto}.dnb-upload__file-cell__content{justify-content:space-between}.dnb-upload__file-cell__content,.dnb-upload__file-cell__content__left{align-items:center;column-gap:var(--spacing-small);display:flex}.dnb-upload__file-cell__content__left .dnb-icon{color:var(--upload-icon--default)}.dnb-upload__file-cell--warning .dnb-upload__file-cell__content__left .dnb-icon{color:var(--upload-icon--warning)}.dnb-upload__file-cell--highlight{background-color:var(--upload-highlight)}.dnb-upload__file-cell__text-container{display:flex;flex-direction:column}.dnb-upload__file-cell__text-container--loading{font-size:var(--font-size-basis)}.dnb-upload__text.dnb-p{color:var(--upload-text--secondary)}.dnb-upload__accepted-file-types-table.dnb-table{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.dnb-upload__accepted-file-types-table.dnb-table thead th{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium);padding-top:0}.dnb-upload__accepted-file-types-table.dnb-table tbody td:first-child,.dnb-upload__accepted-file-types-table.dnb-table thead th:first-child{padding-left:0}.dnb-upload__subtitle.dnb-p{color:var(--upload-text--secondary)}
1
+ .dnb-upload{--upload-background:#fff;--upload-background--active:#d3d3d3;--upload-border:gray;--upload-border--active:#000;--upload-border-width:2px;--upload-list-border:#000;--upload-icon--default:#000;--upload-icon--warning:red;--upload-highlight:#ffffe0;--upload-text--primary:#000;--upload-text--secondary:#000;background-color:var(--upload-background);border-radius:.5rem;display:flex;flex-direction:column;flex-grow:1;padding:var(--spacing-medium);position:relative}@media screen and (max-width:40em){.dnb-upload{padding:var(--spacing-medium) var(--spacing-small)}}.dnb-upload__outline{stroke:var(--upload-border);stroke-width:.1875rem;border-radius:.5rem;bottom:0;content:"";height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.dnb-upload--active .dnb-upload__outline{stroke:var(--upload-border--active);bottom:-1px;height:calc(100% + var(--upload-border-width));left:-1px;right:-1px;top:-1px;width:calc(100% + var(--upload-border-width))}.dnb-upload--active .dnb-upload__outline rect{stroke-width:.25rem;stroke-dasharray:0}.dnb-upload--active{background-color:var(--upload-background--active)}.dnb-upload__file-input{position:absolute;visibility:hidden}.dnb-upload__file-list{list-style:none;margin-bottom:0;margin-top:var(--spacing-medium);padding:0;position:relative}.dnb-upload__file-cell:after,.dnb-upload__file-list:before{background-color:var(--upload-list-border);bottom:0;content:"";height:1px;left:0;position:absolute;right:0;top:0}.dnb-upload__file-cell{padding:var(--spacing-small) 0;position:relative;transition:background-color;transition-duration:1.5s;transition-timing-function:var(--easing-default)}.dnb-upload__file-cell:after{top:auto}.dnb-upload__file-cell__content{justify-content:space-between}.dnb-upload__file-cell__content,.dnb-upload__file-cell__content__left{align-items:center;column-gap:var(--spacing-small);display:flex}.dnb-upload__file-cell__content__left .dnb-icon{color:var(--upload-icon--default)}.dnb-upload__file-cell--warning .dnb-upload__file-cell__content__left .dnb-icon{color:var(--upload-icon--warning)}.dnb-upload__file-cell--highlight{background-color:var(--upload-highlight)}.dnb-upload__file-cell__text-container{display:flex;flex-direction:column}.dnb-upload__file-cell__text-container--loading{font-size:var(--font-size-basis)}.dnb-upload__text.dnb-p{color:var(--upload-text--secondary)}.dnb-upload__accepted-file-types-table.dnb-table{width:-webkit-fit-content;width:fit-content}.dnb-upload__accepted-file-types-table.dnb-table thead th{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium);padding-top:0}.dnb-upload__accepted-file-types-table.dnb-table tbody td:first-child,.dnb-upload__accepted-file-types-table.dnb-table thead th:first-child{padding-left:0}.dnb-upload__subtitle.dnb-p{color:var(--upload-text--secondary)}
@@ -51,3 +51,9 @@ html {
51
51
  gatsby-qod {
52
52
  opacity: 0;
53
53
  }
54
+
55
+ [data-visual-test].hide-page-content
56
+ div.eufemia-theme:not(.dnb-modal__content) {
57
+ /* NB: visibility: hidden; does not work here, because puppeteer does not find the selectors anymore */
58
+ opacity: 0;
59
+ }
@@ -63,11 +63,17 @@ function DateComponent(props) {
63
63
  required,
64
64
  error
65
65
  } = _ref;
66
- if (required && (!value || !(0, _dateFns.isValid)((0, _dateFns.parseISO)(value)))) {
67
- return error;
66
+ if (!required) {
67
+ return undefined;
68
+ }
69
+ if (props.range) {
70
+ const [startDate, endDate] = parseRangeValue(value);
71
+ if (!startDate && !endDate) {
72
+ return new _utils2.FormError('Date.errorRequiredRange');
73
+ }
68
74
  }
69
- return undefined;
70
- }, []);
75
+ return !value || !(0, _dateFns.isValid)((0, _dateFns.parseISO)(value)) ? error : undefined;
76
+ }, [props.range]);
71
77
  const dateValidator = (0, _react.useCallback)(value => {
72
78
  const invalidDateErrors = validateDate(invalidDatesRef.current);
73
79
  if (!props.minDate && !props.maxDate) {