@dnb/eufemia 10.24.0 → 10.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/cjs/components/accordion/style/dnb-accordion.css +6 -2
  3. package/cjs/components/accordion/style/dnb-accordion.min.css +2 -2
  4. package/cjs/components/accordion/style/dnb-accordion.scss +8 -2
  5. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  6. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  7. package/cjs/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  8. package/cjs/components/autocomplete/Autocomplete.d.ts +0 -15
  9. package/cjs/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  10. package/cjs/components/autocomplete/AutocompleteDocs.js +293 -0
  11. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -0
  12. package/cjs/components/dropdown/Dropdown.d.ts +0 -3
  13. package/cjs/components/input/InputDocs.js +2 -2
  14. package/cjs/components/input/InputDocs.js.map +1 -1
  15. package/cjs/extensions/forms/DataContext/At/At.js +6 -6
  16. package/cjs/extensions/forms/DataContext/At/At.js.map +1 -1
  17. package/cjs/extensions/forms/DataContext/Context.d.ts +5 -2
  18. package/cjs/extensions/forms/DataContext/Context.js +1 -0
  19. package/cjs/extensions/forms/DataContext/Context.js.map +1 -1
  20. package/cjs/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  21. package/cjs/extensions/forms/DataContext/Provider/Provider.js +52 -26
  22. package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  23. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  24. package/cjs/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  25. package/cjs/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  26. package/cjs/extensions/forms/Form/Handler/Handler.js +3 -3
  27. package/cjs/extensions/forms/Form/Handler/Handler.js.map +1 -1
  28. package/cjs/extensions/forms/StepsLayout/StepsLayout.js +27 -24
  29. package/cjs/extensions/forms/StepsLayout/StepsLayout.js.map +1 -1
  30. package/cjs/extensions/forms/StepsLayout/StepsLayoutDocs.js +1 -1
  31. package/cjs/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +1 -1
  32. package/cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.css +1 -1
  33. package/cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +1 -1
  34. package/cjs/extensions/forms/StepsLayout/style/dnb-steps-layout.scss +1 -1
  35. package/cjs/extensions/forms/hooks/useFieldProps.js +82 -58
  36. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  37. package/cjs/extensions/forms/style/dnb-forms.css +1 -1
  38. package/cjs/extensions/forms/style/dnb-forms.min.css +1 -1
  39. package/cjs/fragments/drawer-list/DrawerList.d.ts +95 -1
  40. package/cjs/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  41. package/cjs/fragments/drawer-list/DrawerListDocs.js +188 -0
  42. package/cjs/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  43. package/cjs/shared/Eufemia.d.ts +1 -1
  44. package/cjs/shared/Eufemia.js +2 -2
  45. package/cjs/shared/Eufemia.js.map +1 -1
  46. package/cjs/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  47. package/cjs/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  48. package/cjs/style/core/scopes.scss +1 -1
  49. package/cjs/style/dnb-ui-basis.css +1 -1
  50. package/cjs/style/dnb-ui-basis.min.css +1 -1
  51. package/cjs/style/dnb-ui-body.css +1 -1
  52. package/cjs/style/dnb-ui-body.min.css +1 -1
  53. package/cjs/style/dnb-ui-components.css +7 -3
  54. package/cjs/style/dnb-ui-components.min.css +2 -2
  55. package/cjs/style/dnb-ui-core.css +1 -1
  56. package/cjs/style/dnb-ui-core.min.css +1 -1
  57. package/cjs/style/dnb-ui-extensions.css +1 -1
  58. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  59. package/cjs/style/dnb-ui-forms.css +1 -1
  60. package/cjs/style/dnb-ui-forms.min.css +1 -1
  61. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +8 -4
  62. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  63. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  64. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  65. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  66. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  67. package/cjs/style/themes/theme-eiendom/properties.js +10 -10
  68. package/cjs/style/themes/theme-eiendom/properties.js.map +1 -1
  69. package/cjs/style/themes/theme-sbanken/properties.js +10 -10
  70. package/cjs/style/themes/theme-sbanken/properties.js.map +1 -1
  71. package/cjs/style/themes/theme-sbanken/properties.scss +10 -10
  72. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  73. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  74. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +13 -8
  75. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  76. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  77. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  78. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  79. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  80. package/cjs/style/themes/theme-ui/properties.js +10 -10
  81. package/cjs/style/themes/theme-ui/properties.js.map +1 -1
  82. package/cjs/style/themes/theme-ui/ui-theme-components.css +8 -4
  83. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  84. package/cjs/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  85. package/cjs/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  86. package/cjs/style/themes/theme-ui/ui-theme-forms.css +1 -1
  87. package/cjs/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  88. package/components/accordion/style/dnb-accordion.css +6 -2
  89. package/components/accordion/style/dnb-accordion.min.css +2 -2
  90. package/components/accordion/style/dnb-accordion.scss +8 -2
  91. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  92. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  93. package/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  94. package/components/autocomplete/Autocomplete.d.ts +0 -15
  95. package/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  96. package/components/autocomplete/AutocompleteDocs.js +285 -0
  97. package/components/autocomplete/AutocompleteDocs.js.map +1 -0
  98. package/components/dropdown/Dropdown.d.ts +0 -3
  99. package/components/input/InputDocs.js +2 -2
  100. package/components/input/InputDocs.js.map +1 -1
  101. package/es/components/accordion/style/dnb-accordion.css +6 -2
  102. package/es/components/accordion/style/dnb-accordion.min.css +2 -2
  103. package/es/components/accordion/style/dnb-accordion.scss +8 -2
  104. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.css +5 -4
  105. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.min.css +1 -1
  106. package/es/components/accordion/style/themes/dnb-accordion-theme-sbanken.scss +5 -5
  107. package/es/components/autocomplete/Autocomplete.d.ts +0 -15
  108. package/es/components/autocomplete/AutocompleteDocs.d.ts +3 -0
  109. package/es/components/autocomplete/AutocompleteDocs.js +285 -0
  110. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -0
  111. package/es/components/dropdown/Dropdown.d.ts +0 -3
  112. package/es/components/input/InputDocs.js +2 -2
  113. package/es/components/input/InputDocs.js.map +1 -1
  114. package/es/extensions/forms/DataContext/At/At.js +7 -7
  115. package/es/extensions/forms/DataContext/At/At.js.map +1 -1
  116. package/es/extensions/forms/DataContext/Context.d.ts +5 -2
  117. package/es/extensions/forms/DataContext/Context.js +1 -0
  118. package/es/extensions/forms/DataContext/Context.js.map +1 -1
  119. package/es/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  120. package/es/extensions/forms/DataContext/Provider/Provider.js +51 -26
  121. package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  122. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  123. package/es/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  124. package/es/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  125. package/es/extensions/forms/Form/Handler/Handler.js +3 -3
  126. package/es/extensions/forms/Form/Handler/Handler.js.map +1 -1
  127. package/es/extensions/forms/StepsLayout/StepsLayout.js +27 -24
  128. package/es/extensions/forms/StepsLayout/StepsLayout.js.map +1 -1
  129. package/es/extensions/forms/StepsLayout/StepsLayoutDocs.js +1 -1
  130. package/es/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +1 -1
  131. package/es/extensions/forms/StepsLayout/style/dnb-steps-layout.css +1 -1
  132. package/es/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +1 -1
  133. package/es/extensions/forms/StepsLayout/style/dnb-steps-layout.scss +1 -1
  134. package/es/extensions/forms/hooks/useFieldProps.js +82 -58
  135. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  136. package/es/extensions/forms/style/dnb-forms.css +1 -1
  137. package/es/extensions/forms/style/dnb-forms.min.css +1 -1
  138. package/es/fragments/drawer-list/DrawerList.d.ts +95 -1
  139. package/es/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  140. package/es/fragments/drawer-list/DrawerListDocs.js +180 -0
  141. package/es/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  142. package/es/shared/Eufemia.d.ts +1 -1
  143. package/es/shared/Eufemia.js +2 -2
  144. package/es/shared/Eufemia.js.map +1 -1
  145. package/es/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  146. package/es/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  147. package/es/style/core/scopes.scss +1 -1
  148. package/es/style/dnb-ui-basis.css +1 -1
  149. package/es/style/dnb-ui-basis.min.css +1 -1
  150. package/es/style/dnb-ui-body.css +1 -1
  151. package/es/style/dnb-ui-body.min.css +1 -1
  152. package/es/style/dnb-ui-components.css +7 -3
  153. package/es/style/dnb-ui-components.min.css +2 -2
  154. package/es/style/dnb-ui-core.css +1 -1
  155. package/es/style/dnb-ui-core.min.css +1 -1
  156. package/es/style/dnb-ui-extensions.css +1 -1
  157. package/es/style/dnb-ui-extensions.min.css +1 -1
  158. package/es/style/dnb-ui-forms.css +1 -1
  159. package/es/style/dnb-ui-forms.min.css +1 -1
  160. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +8 -4
  161. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  162. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  163. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  164. package/es/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  165. package/es/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  166. package/es/style/themes/theme-eiendom/properties.js +10 -10
  167. package/es/style/themes/theme-eiendom/properties.js.map +1 -1
  168. package/es/style/themes/theme-sbanken/properties.js +10 -10
  169. package/es/style/themes/theme-sbanken/properties.js.map +1 -1
  170. package/es/style/themes/theme-sbanken/properties.scss +10 -10
  171. package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  172. package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  173. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +13 -8
  174. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  175. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  176. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  177. package/es/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  178. package/es/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  179. package/es/style/themes/theme-ui/properties.js +10 -10
  180. package/es/style/themes/theme-ui/properties.js.map +1 -1
  181. package/es/style/themes/theme-ui/ui-theme-components.css +8 -4
  182. package/es/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  183. package/es/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  184. package/es/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  185. package/es/style/themes/theme-ui/ui-theme-forms.css +1 -1
  186. package/es/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  187. package/esm/dnb-ui-basis.min.mjs +1 -1
  188. package/esm/dnb-ui-components.min.mjs +1 -1
  189. package/esm/dnb-ui-elements.min.mjs +1 -1
  190. package/esm/dnb-ui-extensions.min.mjs +2 -2
  191. package/esm/dnb-ui-lib.min.mjs +1 -1
  192. package/extensions/forms/DataContext/At/At.js +7 -7
  193. package/extensions/forms/DataContext/At/At.js.map +1 -1
  194. package/extensions/forms/DataContext/Context.d.ts +5 -2
  195. package/extensions/forms/DataContext/Context.js +1 -0
  196. package/extensions/forms/DataContext/Context.js.map +1 -1
  197. package/extensions/forms/DataContext/Provider/Provider.d.ts +1 -5
  198. package/extensions/forms/DataContext/Provider/Provider.js +52 -26
  199. package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  200. package/extensions/forms/DataContext/Provider/ProviderDocs.js +4 -4
  201. package/extensions/forms/DataContext/Provider/ProviderDocs.js.map +1 -1
  202. package/extensions/forms/Form/Handler/Handler.d.ts +1 -1
  203. package/extensions/forms/Form/Handler/Handler.js +3 -3
  204. package/extensions/forms/Form/Handler/Handler.js.map +1 -1
  205. package/extensions/forms/StepsLayout/StepsLayout.js +27 -24
  206. package/extensions/forms/StepsLayout/StepsLayout.js.map +1 -1
  207. package/extensions/forms/StepsLayout/StepsLayoutDocs.js +1 -1
  208. package/extensions/forms/StepsLayout/StepsLayoutDocs.js.map +1 -1
  209. package/extensions/forms/StepsLayout/style/dnb-steps-layout.css +1 -1
  210. package/extensions/forms/StepsLayout/style/dnb-steps-layout.min.css +1 -1
  211. package/extensions/forms/StepsLayout/style/dnb-steps-layout.scss +1 -1
  212. package/extensions/forms/hooks/useFieldProps.js +82 -58
  213. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  214. package/extensions/forms/style/dnb-forms.css +1 -1
  215. package/extensions/forms/style/dnb-forms.min.css +1 -1
  216. package/fragments/drawer-list/DrawerList.d.ts +95 -1
  217. package/fragments/drawer-list/DrawerListDocs.d.ts +3 -0
  218. package/fragments/drawer-list/DrawerListDocs.js +180 -0
  219. package/fragments/drawer-list/DrawerListDocs.js.map +1 -0
  220. package/package.json +1 -1
  221. package/shared/Eufemia.d.ts +1 -1
  222. package/shared/Eufemia.js +2 -2
  223. package/shared/Eufemia.js.map +1 -1
  224. package/shared/helpers/runCssVersionMismatchWarning.js +2 -2
  225. package/shared/helpers/runCssVersionMismatchWarning.js.map +1 -1
  226. package/style/core/scopes.scss +1 -1
  227. package/style/dnb-ui-basis.css +1 -1
  228. package/style/dnb-ui-basis.min.css +1 -1
  229. package/style/dnb-ui-body.css +1 -1
  230. package/style/dnb-ui-body.min.css +1 -1
  231. package/style/dnb-ui-components.css +7 -3
  232. package/style/dnb-ui-components.min.css +2 -2
  233. package/style/dnb-ui-core.css +1 -1
  234. package/style/dnb-ui-core.min.css +1 -1
  235. package/style/dnb-ui-extensions.css +1 -1
  236. package/style/dnb-ui-extensions.min.css +1 -1
  237. package/style/dnb-ui-forms.css +1 -1
  238. package/style/dnb-ui-forms.min.css +1 -1
  239. package/style/themes/theme-eiendom/eiendom-theme-components.css +8 -4
  240. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +3 -3
  241. package/style/themes/theme-eiendom/eiendom-theme-extensions.css +1 -1
  242. package/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  243. package/style/themes/theme-eiendom/eiendom-theme-forms.css +1 -1
  244. package/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  245. package/style/themes/theme-eiendom/properties.js +10 -10
  246. package/style/themes/theme-eiendom/properties.js.map +1 -1
  247. package/style/themes/theme-sbanken/properties.js +10 -10
  248. package/style/themes/theme-sbanken/properties.js.map +1 -1
  249. package/style/themes/theme-sbanken/properties.scss +10 -10
  250. package/style/themes/theme-sbanken/sbanken-theme-basis.css +10 -10
  251. package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  252. package/style/themes/theme-sbanken/sbanken-theme-components.css +13 -8
  253. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +4 -4
  254. package/style/themes/theme-sbanken/sbanken-theme-extensions.css +1 -1
  255. package/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  256. package/style/themes/theme-sbanken/sbanken-theme-forms.css +1 -1
  257. package/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  258. package/style/themes/theme-ui/properties.js +10 -10
  259. package/style/themes/theme-ui/properties.js.map +1 -1
  260. package/style/themes/theme-ui/ui-theme-components.css +8 -4
  261. package/style/themes/theme-ui/ui-theme-components.min.css +3 -3
  262. package/style/themes/theme-ui/ui-theme-extensions.css +1 -1
  263. package/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  264. package/style/themes/theme-ui/ui-theme-forms.css +1 -1
  265. package/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  266. package/umd/dnb-ui-basis.min.js +1 -1
  267. package/umd/dnb-ui-components.min.js +1 -1
  268. package/umd/dnb-ui-elements.min.js +1 -1
  269. package/umd/dnb-ui-extensions.min.js +2 -2
  270. package/umd/dnb-ui-lib.min.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to @dnb/eufemia will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.25.0](https://github.com/dnbexperience/eufemia/compare/v10.24.0...v10.25.0) (2024-03-25)
7
+
8
+
9
+ ### :bug: Bug Fixes
10
+
11
+ * **forms:** ensure content in Card will wrap ([#3411](https://github.com/dnbexperience/eufemia/issues/3411)) ([47eb967](https://github.com/dnbexperience/eufemia/commit/47eb967f6c9e5c50da161f7e3e3ad99cc7a145ba))
12
+ * **forms:** ensure context support ([#3409](https://github.com/dnbexperience/eufemia/issues/3409)) ([34b4adb](https://github.com/dnbexperience/eufemia/commit/34b4adb106f79d8b60d684d964feef7ed5789968))
13
+ * show error in console when Eufemia CSS and JS versions do not match ([#3410](https://github.com/dnbexperience/eufemia/issues/3410)) ([3d7bcbf](https://github.com/dnbexperience/eufemia/commit/3d7bcbf4f86e249db41e0249df16e04bac04777a))
14
+
15
+
16
+ ### :sparkles: Features
17
+
18
+ * **Accordion:** add additional Sbanken styling variables ([#3406](https://github.com/dnbexperience/eufemia/issues/3406)) ([dfa8479](https://github.com/dnbexperience/eufemia/commit/dfa8479a94f3e64aa9fbcee9e7192aad38ecc36d))
19
+ * **Form.Handler:** enhance async behaviour ([#3405](https://github.com/dnbexperience/eufemia/issues/3405)) ([78b4895](https://github.com/dnbexperience/eufemia/commit/78b4895922fe5b68da7c9c20a700b6be857303aa))
20
+ * **forms:** add internal field state to `filterData` as a fourth parameter ([#3414](https://github.com/dnbexperience/eufemia/issues/3414)) ([4a6a1ae](https://github.com/dnbexperience/eufemia/commit/4a6a1ae7721439dd7a22ca29289148c7703ff811))
21
+ * **Theme:** update sbanken theme color variables ([#3400](https://github.com/dnbexperience/eufemia/issues/3400)) ([05607cf](https://github.com/dnbexperience/eufemia/commit/05607cffa8a1a1651000bcbf7c05a78fca62495b))
22
+
6
23
  ## [10.24.0](https://github.com/dnbexperience/eufemia/compare/v10.23.0...v10.24.0) (2024-03-22)
7
24
 
8
25
 
@@ -15,8 +15,11 @@
15
15
  --accordion-header-wrapper-margin--icon-right: 1rem;
16
16
  --accordion-header-icon-gutter: 1rem;
17
17
  --accordion-header-icon-margin: 1rem;
18
+ --accordion-header-icon-alignment: flex-start;
18
19
  --accordion-title-font-weight: var(--font-weight-basis);
19
20
  --accordion-title-font-weight--expanded: var(--font-weight-medium);
21
+ --accordion-content-margin: 1rem 0 0 0;
22
+ --accordion-content-padding: 0;
20
23
  position: relative;
21
24
  display: flex;
22
25
  flex-direction: column;
@@ -57,7 +60,7 @@
57
60
  margin: 0 1rem;
58
61
  }
59
62
  .dnb-accordion__header__icon {
60
- align-self: flex-start;
63
+ align-self: var(--accordion-header-icon-alignment);
61
64
  margin: var(--accordion-header-margin-vertical) var(--accordion-header-icon-gutter) var(--accordion-header-margin-vertical) var(--accordion-header-icon-margin);
62
65
  font-size: var(--font-size-small);
63
66
  line-height: var(--line-height-small);
@@ -120,7 +123,8 @@
120
123
  }
121
124
  .dnb-accordion__content__inner {
122
125
  width: 100%;
123
- margin-top: 1rem;
126
+ margin: var(--accordion-content-margin);
127
+ padding: var(--accordion-content-padding);
124
128
  }
125
129
  .dnb-accordion-group--single-container {
126
130
  transition: min-height 1s var(--accordion-easing);
@@ -1,3 +1,3 @@
1
- .dnb-accordion{--accordion-border-width:0.0625rem;--accordion-border-radius:0.5rem;--accordion-easing:var(--easing-default);--accordion-header-margin-vertical:1.25rem;--accordion-header-margin-vertical--description:0.75rem;--accordion-header-wrapper-margin:1rem;--accordion-header-wrapper-margin--icon-right:1rem;--accordion-header-icon-gutter:1rem;--accordion-header-icon-margin:1rem;--accordion-title-font-weight:var(--font-weight-basis);--accordion-title-font-weight--expanded:var(--font-weight-medium);display:flex;flex-direction:column;font-size:var(--font-size-small);line-height:var(--line-height-basis);position:relative}.dnb-accordion__header{align-items:center;border:var(--accordion-border-width) solid transparent;border-radius:var(--accordion-border-radius);cursor:pointer;display:flex;outline:none}.dnb-accordion__header:focus{-webkit-user-select:none;user-select:none}.dnb-accordion__header *{pointer-events:none}.dnb-accordion__header--prevent-click{pointer-events:none;-webkit-user-select:none;user-select:none}.dnb-accordion__header__wrapper{display:flex;flex-direction:column;margin:var(--accordion-header-margin-vertical) var(--accordion-header-wrapper-margin) var(--accordion-header-margin-vertical) 0;width:100%}.dnb-accordion__header--description .dnb-accordion__header__wrapper{margin-bottom:var(--accordion-header-margin-vertical--description);margin-top:var(--accordion-header-margin-vertical--description)}.dnb-accordion__header__container{margin:0 1rem}.dnb-accordion__header__icon{align-self:flex-start;font-size:var(--font-size-small);line-height:var(--line-height-small);margin:var(--accordion-header-margin-vertical) var(--accordion-header-icon-gutter) var(--accordion-header-margin-vertical) var(--accordion-header-icon-margin);transition:transform .4s var(--accordion-easing)}.dnb-accordion__header--description .dnb-accordion__header__icon{margin-top:var(--accordion-header-margin-vertical--description)}.dnb-accordion__header--icon-right{justify-content:space-between}.dnb-accordion__header--icon-right .dnb-accordion__header__icon{margin-left:var(--accordion-header-icon-gutter);margin-right:var(--accordion-header-icon-margin);order:3}.dnb-accordion__header--icon-right .dnb-accordion__header__container{order:1}.dnb-accordion__header--icon-right .dnb-accordion__header__wrapper{margin-left:var(--accordion-header-wrapper-margin--icon-right);margin-right:0;order:2}.dnb-accordion__header--icon-right .dnb-accordion__header__wrapper+.dnb-accordion__header__container{margin-right:0}.dnb-accordion__header--icon-right .dnb-accordion__header__container+.dnb-accordion__header__wrapper{margin-left:0}.dnb-accordion__header--expanded{--accordion-title-font-weight:var(
1
+ .dnb-accordion{--accordion-border-width:0.0625rem;--accordion-border-radius:0.5rem;--accordion-easing:var(--easing-default);--accordion-header-margin-vertical:1.25rem;--accordion-header-margin-vertical--description:0.75rem;--accordion-header-wrapper-margin:1rem;--accordion-header-wrapper-margin--icon-right:1rem;--accordion-header-icon-gutter:1rem;--accordion-header-icon-margin:1rem;--accordion-header-icon-alignment:flex-start;--accordion-title-font-weight:var(--font-weight-basis);--accordion-title-font-weight--expanded:var(--font-weight-medium);--accordion-content-margin:1rem 0 0 0;--accordion-content-padding:0;display:flex;flex-direction:column;font-size:var(--font-size-small);line-height:var(--line-height-basis);position:relative}.dnb-accordion__header{align-items:center;border:var(--accordion-border-width) solid transparent;border-radius:var(--accordion-border-radius);cursor:pointer;display:flex;outline:none}.dnb-accordion__header:focus{-webkit-user-select:none;user-select:none}.dnb-accordion__header *{pointer-events:none}.dnb-accordion__header--prevent-click{pointer-events:none;-webkit-user-select:none;user-select:none}.dnb-accordion__header__wrapper{display:flex;flex-direction:column;margin:var(--accordion-header-margin-vertical) var(--accordion-header-wrapper-margin) var(--accordion-header-margin-vertical) 0;width:100%}.dnb-accordion__header--description .dnb-accordion__header__wrapper{margin-bottom:var(--accordion-header-margin-vertical--description);margin-top:var(--accordion-header-margin-vertical--description)}.dnb-accordion__header__container{margin:0 1rem}.dnb-accordion__header__icon{align-self:var(--accordion-header-icon-alignment);font-size:var(--font-size-small);line-height:var(--line-height-small);margin:var(--accordion-header-margin-vertical) var(--accordion-header-icon-gutter) var(--accordion-header-margin-vertical) var(--accordion-header-icon-margin);transition:transform .4s var(--accordion-easing)}.dnb-accordion__header--description .dnb-accordion__header__icon{margin-top:var(--accordion-header-margin-vertical--description)}.dnb-accordion__header--icon-right{justify-content:space-between}.dnb-accordion__header--icon-right .dnb-accordion__header__icon{margin-left:var(--accordion-header-icon-gutter);margin-right:var(--accordion-header-icon-margin);order:3}.dnb-accordion__header--icon-right .dnb-accordion__header__container{order:1}.dnb-accordion__header--icon-right .dnb-accordion__header__wrapper{margin-left:var(--accordion-header-wrapper-margin--icon-right);margin-right:0;order:2}.dnb-accordion__header--icon-right .dnb-accordion__header__wrapper+.dnb-accordion__header__container{margin-right:0}.dnb-accordion__header--icon-right .dnb-accordion__header__container+.dnb-accordion__header__wrapper{margin-left:0}.dnb-accordion__header--expanded{--accordion-title-font-weight:var(
2
2
  --accordion-title-font-weight--expanded
3
- )}.dnb-accordion__header__title{font-size:var(--font-size-basis);font-weight:var(--accordion-title-font-weight);line-height:var(--line-height-basis)}.dnb-accordion__header__description{font-size:var(--font-size-small);font-weight:var(--font-weight-basis);line-height:var(--line-height-small)}.dnb-accordion__header__description+.dnb-accordion__header__title,.dnb-accordion__header__title+.dnb-accordion__header__description{margin-top:.25rem}.dnb-accordion--expanded>.dnb-accordion__header .dnb-accordion__header__icon{transform:rotate(-180deg)}.dnb-accordion__content{display:flex;transition:height .4s var(--accordion-easing),opacity .6s var(--accordion-easing);width:100%;will-change:height}.dnb-accordion__content__inner{margin-top:1rem;width:100%}.dnb-accordion-group--single-container{transition:min-height 1s var(--accordion-easing)}.dnb-accordion-group--single-container .dnb-accordion{max-width:60rem;position:static}@media screen and (min-width:40em){.dnb-accordion-group--single-container .dnb-accordion__header{width:40%}.dnb-accordion-group--single-container .dnb-accordion__content{margin-left:1rem;transition:opacity 1s var(--accordion-easing)}.dnb-accordion-group--single-container .dnb-accordion__content__inner{margin-top:0}.dnb-accordion-group--single-container .dnb-accordion>.dnb-accordion__header .dnb-accordion__header__icon{transform:rotate(-90deg)}}.dnb-accordion-group--single-container .dnb-accordion-group__children{max-width:60rem}@media screen and (min-width:40em){.dnb-accordion-group--single-container .dnb-accordion-group__children{display:flex;flex-direction:column;position:relative}.dnb-accordion-group--single-container .dnb-accordion-group__children .dnb-accordion__content{position:absolute;right:0;top:0;width:60%;z-index:10}}.dnb-accordion>.dnb-accordion__header--no-animation .dnb-accordion__header__icon,html[data-visual-test] .dnb-accordion .dnb-accordion__header .dnb-accordion__header__icon{transition:none}
3
+ )}.dnb-accordion__header__title{font-size:var(--font-size-basis);font-weight:var(--accordion-title-font-weight);line-height:var(--line-height-basis)}.dnb-accordion__header__description{font-size:var(--font-size-small);font-weight:var(--font-weight-basis);line-height:var(--line-height-small)}.dnb-accordion__header__description+.dnb-accordion__header__title,.dnb-accordion__header__title+.dnb-accordion__header__description{margin-top:.25rem}.dnb-accordion--expanded>.dnb-accordion__header .dnb-accordion__header__icon{transform:rotate(-180deg)}.dnb-accordion__content{display:flex;transition:height .4s var(--accordion-easing),opacity .6s var(--accordion-easing);width:100%;will-change:height}.dnb-accordion__content__inner{margin:var(--accordion-content-margin);padding:var(--accordion-content-padding);width:100%}.dnb-accordion-group--single-container{transition:min-height 1s var(--accordion-easing)}.dnb-accordion-group--single-container .dnb-accordion{max-width:60rem;position:static}@media screen and (min-width:40em){.dnb-accordion-group--single-container .dnb-accordion__header{width:40%}.dnb-accordion-group--single-container .dnb-accordion__content{margin-left:1rem;transition:opacity 1s var(--accordion-easing)}.dnb-accordion-group--single-container .dnb-accordion__content__inner{margin-top:0}.dnb-accordion-group--single-container .dnb-accordion>.dnb-accordion__header .dnb-accordion__header__icon{transform:rotate(-90deg)}}.dnb-accordion-group--single-container .dnb-accordion-group__children{max-width:60rem}@media screen and (min-width:40em){.dnb-accordion-group--single-container .dnb-accordion-group__children{display:flex;flex-direction:column;position:relative}.dnb-accordion-group--single-container .dnb-accordion-group__children .dnb-accordion__content{position:absolute;right:0;top:0;width:60%;z-index:10}}.dnb-accordion>.dnb-accordion__header--no-animation .dnb-accordion__header__icon,html[data-visual-test] .dnb-accordion .dnb-accordion__header .dnb-accordion__header__icon{transition:none}
@@ -21,11 +21,16 @@
21
21
  // icon
22
22
  --accordion-header-icon-gutter: 1rem;
23
23
  --accordion-header-icon-margin: 1rem;
24
+ --accordion-header-icon-alignment: flex-start;
24
25
 
25
26
  // Title
26
27
  --accordion-title-font-weight: var(--font-weight-basis);
27
28
  --accordion-title-font-weight--expanded: var(--font-weight-medium);
28
29
 
30
+ // Content
31
+ --accordion-content-margin: 1rem 0 0 0;
32
+ --accordion-content-padding: 0;
33
+
29
34
  position: relative;
30
35
 
31
36
  display: flex;
@@ -76,7 +81,7 @@
76
81
  margin: 0 1rem;
77
82
  }
78
83
  &__icon {
79
- align-self: flex-start;
84
+ align-self: var(--accordion-header-icon-alignment);
80
85
 
81
86
  margin: var(--accordion-header-margin-vertical)
82
87
  var(--accordion-header-icon-gutter)
@@ -155,7 +160,8 @@
155
160
 
156
161
  &__inner {
157
162
  width: 100%;
158
- margin-top: 1rem;
163
+ margin: var(--accordion-content-margin);
164
+ padding: var(--accordion-content-padding);
159
165
  }
160
166
  }
161
167
 
@@ -28,6 +28,9 @@
28
28
  3.5rem - var(--sb-accordion-frame-width)
29
29
  );
30
30
  --sb-accordion-content-border-radius: 0 0 0.125rem 0.125rem;
31
+ --accordion-content-margin: 0;
32
+ --accordion-content-padding: 0 1rem 1rem
33
+ var(--sb-accordion-content-padding-left);
31
34
  color: var(--sb-color-text);
32
35
  }
33
36
  .dnb-accordion__header, .dnb-accordion__content {
@@ -80,14 +83,12 @@ html:not([data-whatintent=touch]) .dnb-accordion__header:hover:not([disabled]) {
80
83
  --sb-accordion-content-padding-left: calc(
81
84
  1.5rem - var(--sb-accordion-frame-width)
82
85
  );
86
+ --accordion-content-padding: 0 1rem 1rem
87
+ var(--sb-accordion-content-padding-left);
83
88
  }
84
89
  .dnb-accordion__header[disabled] * {
85
90
  color: var(--sb-color-gray-dark-2);
86
91
  }
87
- .dnb-accordion__content__inner {
88
- margin-top: 0;
89
- padding: 0 1rem 1rem var(--sb-accordion-content-padding-left);
90
- }
91
92
  .dnb-accordion--expanded {
92
93
  --sb-accordion-background: var(--sb-color-violet-light-4);
93
94
  --sb-accordion-frame-color: var(--sb-color-violet);
@@ -1 +1 @@
1
- .dnb-accordion{--accordion-border-width:0;--accordion-border-radius:0;--accordion-header-margin-vertical:1rem;--accordion-header-margin-vertical--description:0.5rem;--accordion-header-wrapper-margin--icon-right:calc(1.5rem - var(--sb-accordion-frame-width));--sb-accordion-header-border-radius--expanded:0.125rem 0.125rem 0 0;--sb-accordion-header-border-radius--hover:0.125rem;--sb-accordion-header-border-radius--hover-expanded:0.125rem 0.125rem 0 0;--accordion-header-icon-gutter:0.5rem;--accordion-header-icon-margin:calc(1.5rem - var(--sb-accordion-frame-width));--sb-accordion-frame-color:transparent;--sb-accordion-frame-width:0.1875rem;--sb-accordion-frame-width--active:0rem;--sb-accordion-content-padding-left:calc(3.5rem - var(--sb-accordion-frame-width));--sb-accordion-content-border-radius:0 0 0.125rem 0.125rem;color:var(--sb-color-text)}.dnb-accordion__content,.dnb-accordion__header{background-color:var(--sb-accordion-background,transparent);border-left:var(--sb-accordion-frame-width) solid var(--sb-accordion-frame-color)}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--sb-color-blue-light-3);border-color:transparent;border-radius:.125rem;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--border-color);outline:none;z-index:1}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible:not([disabled]) .dnb-accordion__header__icon{color:var(--border-color)}html:not([data-whatintent=touch]) .dnb-accordion__header:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion__header:hover:not([disabled]){background-color:var(--sb-color-violet-light-2);border-radius:var(--sb-accordion-header-border-radius--hover)}.dnb-accordion__header:active[disabled],html:not([data-whatintent=touch]) .dnb-accordion__header:active[disabled]{cursor:not-allowed}.dnb-accordion__header:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-accordion__header:active:not([disabled]){--border-color: ;--border-width:0.0625rem;--border-color:var(--sb-color-violet);background-color:var(--sb-color-white);border-left-width:var(--sb-accordion-frame-width--active);box-shadow:inset 0 0 0 var(--border-width) var(--border-color);padding-left:calc(var(--sb-accordion-frame-width) - var(--sb-accordion-frame-width--active))}.dnb-accordion__header__container,.dnb-accordion__header__icon{color:var(--sb-color-violet)}.dnb-accordion__header--icon-right{--accordion-header-icon-margin:1.5rem}.dnb-accordion__header--icon-right+.dnb-accordion__content{--sb-accordion-content-padding-left:calc(1.5rem - var(--sb-accordion-frame-width))}.dnb-accordion__header[disabled] *{color:var(--sb-color-gray-dark-2)}.dnb-accordion__content__inner{margin-top:0;padding:0 1rem 1rem var(--sb-accordion-content-padding-left)}.dnb-accordion--expanded{--sb-accordion-background:var(--sb-color-violet-light-4);--sb-accordion-frame-color:var(--sb-color-violet);--sb-accordion-frame-width--active:0.125rem}html:not([data-whatintent=touch]) .dnb-accordion--expanded>.dnb-accordion__header:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion--expanded>.dnb-accordion__header:hover:not([disabled]){border-radius:var(--sb-accordion-header-border-radius--hover-expanded)}.dnb-accordion--expanded>.dnb-accordion__header--expanded{border-radius:var(--sb-accordion-header-border-radius--expanded)}.dnb-accordion--expanded>.dnb-accordion__content{border-radius:var(--sb-accordion-content-border-radius)}.dnb-accordion--expanded>.dnb-accordion__header[disabled],.dnb-accordion--expanded>.dnb-accordion__header[disabled]+.dnb-accordion__content{--sb-accordion-background:var(--sb-color-gray-light-2);--sb-accordion-frame-color:var(--sb-color-gray-dark-2)}
1
+ .dnb-accordion{--accordion-border-width:0;--accordion-border-radius:0;--accordion-header-margin-vertical:1rem;--accordion-header-margin-vertical--description:0.5rem;--accordion-header-wrapper-margin--icon-right:calc(1.5rem - var(--sb-accordion-frame-width));--sb-accordion-header-border-radius--expanded:0.125rem 0.125rem 0 0;--sb-accordion-header-border-radius--hover:0.125rem;--sb-accordion-header-border-radius--hover-expanded:0.125rem 0.125rem 0 0;--accordion-header-icon-gutter:0.5rem;--accordion-header-icon-margin:calc(1.5rem - var(--sb-accordion-frame-width));--sb-accordion-frame-color:transparent;--sb-accordion-frame-width:0.1875rem;--sb-accordion-frame-width--active:0rem;--sb-accordion-content-padding-left:calc(3.5rem - var(--sb-accordion-frame-width));--sb-accordion-content-border-radius:0 0 0.125rem 0.125rem;--accordion-content-margin:0;--accordion-content-padding:0 1rem 1rem var(--sb-accordion-content-padding-left);color:var(--sb-color-text)}.dnb-accordion__content,.dnb-accordion__header{background-color:var(--sb-accordion-background,transparent);border-left:var(--sb-accordion-frame-width) solid var(--sb-accordion-frame-color)}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--sb-color-blue-light-3);border-color:transparent;border-radius:.125rem;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--border-color);outline:none;z-index:1}html:not([data-whatintent=touch]) .dnb-accordion__header:focus-visible:not([disabled]) .dnb-accordion__header__icon{color:var(--border-color)}html:not([data-whatintent=touch]) .dnb-accordion__header:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion__header:hover:not([disabled]){background-color:var(--sb-color-violet-light-2);border-radius:var(--sb-accordion-header-border-radius--hover)}.dnb-accordion__header:active[disabled],html:not([data-whatintent=touch]) .dnb-accordion__header:active[disabled]{cursor:not-allowed}.dnb-accordion__header:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-accordion__header:active:not([disabled]){--border-color: ;--border-width:0.0625rem;--border-color:var(--sb-color-violet);background-color:var(--sb-color-white);border-left-width:var(--sb-accordion-frame-width--active);box-shadow:inset 0 0 0 var(--border-width) var(--border-color);padding-left:calc(var(--sb-accordion-frame-width) - var(--sb-accordion-frame-width--active))}.dnb-accordion__header__container,.dnb-accordion__header__icon{color:var(--sb-color-violet)}.dnb-accordion__header--icon-right{--accordion-header-icon-margin:1.5rem}.dnb-accordion__header--icon-right+.dnb-accordion__content{--sb-accordion-content-padding-left:calc(1.5rem - var(--sb-accordion-frame-width));--accordion-content-padding:0 1rem 1rem var(--sb-accordion-content-padding-left)}.dnb-accordion__header[disabled] *{color:var(--sb-color-gray-dark-2)}.dnb-accordion--expanded{--sb-accordion-background:var(--sb-color-violet-light-4);--sb-accordion-frame-color:var(--sb-color-violet);--sb-accordion-frame-width--active:0.125rem}html:not([data-whatintent=touch]) .dnb-accordion--expanded>.dnb-accordion__header:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-accordion--expanded>.dnb-accordion__header:hover:not([disabled]){border-radius:var(--sb-accordion-header-border-radius--hover-expanded)}.dnb-accordion--expanded>.dnb-accordion__header--expanded{border-radius:var(--sb-accordion-header-border-radius--expanded)}.dnb-accordion--expanded>.dnb-accordion__content{border-radius:var(--sb-accordion-content-border-radius)}.dnb-accordion--expanded>.dnb-accordion__header[disabled],.dnb-accordion--expanded>.dnb-accordion__header[disabled]+.dnb-accordion__content{--sb-accordion-background:var(--sb-color-gray-light-2);--sb-accordion-frame-color:var(--sb-color-gray-dark-2)}
@@ -38,6 +38,9 @@
38
38
  3.5rem - var(--sb-accordion-frame-width)
39
39
  );
40
40
  --sb-accordion-content-border-radius: 0 0 0.125rem 0.125rem;
41
+ --accordion-content-margin: 0;
42
+ --accordion-content-padding: 0 1rem 1rem
43
+ var(--sb-accordion-content-padding-left);
41
44
 
42
45
  color: var(--sb-color-text);
43
46
 
@@ -89,6 +92,8 @@
89
92
  --sb-accordion-content-padding-left: calc(
90
93
  1.5rem - var(--sb-accordion-frame-width)
91
94
  );
95
+ --accordion-content-padding: 0 1rem 1rem
96
+ var(--sb-accordion-content-padding-left);
92
97
  }
93
98
  }
94
99
 
@@ -100,11 +105,6 @@
100
105
  }
101
106
  }
102
107
 
103
- &__content__inner {
104
- margin-top: 0;
105
- padding: 0 1rem 1rem var(--sb-accordion-content-padding-left);
106
- }
107
-
108
108
  &--expanded {
109
109
  --sb-accordion-background: var(--sb-color-violet-light-4);
110
110
  --sb-accordion-frame-color: var(--sb-color-violet);
@@ -210,21 +210,9 @@ export interface AutocompleteProps
210
210
  * Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.
211
211
  */
212
212
  drawer_class?: string;
213
- /**
214
- * Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.
215
- */
216
213
  on_type?: (...args: any[]) => any;
217
- /**
218
- * Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.
219
- */
220
214
  on_focus?: (...args: any[]) => any;
221
- /**
222
- * Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.
223
- */
224
215
  on_blur?: (...args: any[]) => any;
225
- /**
226
- * Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>. The "active_item" property is the currently selected item by keyboard navigation
227
- */
228
216
  on_select?: (...args: any[]) => any;
229
217
  on_state_update?: (...args: any[]) => any;
230
218
  }
@@ -236,9 +224,6 @@ export default class Autocomplete extends React.Component<
236
224
  static HorizontalItem: ({
237
225
  children
238
226
  }: {
239
- /**
240
- * <em>(required)</em> the data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
241
- */
242
227
  children: React.ReactNode;
243
228
  }) => JSX.Element;
244
229
  render(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { PropertiesTableProps } from '../../shared/types';
2
+ export declare const autocompleteProperties: PropertiesTableProps;
3
+ export declare const AutocompleteEvents: PropertiesTableProps;
@@ -0,0 +1,293 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.autocompleteProperties = exports.AutocompleteEvents = void 0;
7
+ const autocompleteProperties = {
8
+ mode: {
9
+ doc: 'If set to `async`, it prevents showing the "no options" message during typing / filtering. Defaults to `sync`.',
10
+ type: 'string',
11
+ status: 'optional'
12
+ },
13
+ input_value: {
14
+ doc: 'Lets you define a custom input value.',
15
+ type: 'string',
16
+ status: 'optional'
17
+ },
18
+ placeholder: {
19
+ doc: 'Use this to define the pre-filled placeholder text in the input. Defaults to `title="Skriv og velg"`.',
20
+ type: 'string',
21
+ status: 'optional'
22
+ },
23
+ title: {
24
+ doc: 'Give a title to let the user know what they have to do. Defaults to `Skriv og få alternativer`.',
25
+ type: 'React.Node',
26
+ status: 'optional'
27
+ },
28
+ disable_filter: {
29
+ doc: 'If set to `true`, word highlighting will still be active, but no options will be filtered out. Defaults to `false`.',
30
+ type: 'boolean',
31
+ status: 'optional'
32
+ },
33
+ disable_highlighting: {
34
+ doc: 'If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.',
35
+ type: 'boolean',
36
+ status: 'optional'
37
+ },
38
+ disable_reorder: {
39
+ doc: 'If set to `true`, reordering of search results will be disabled. Defaults to `false`.',
40
+ type: 'boolean',
41
+ status: 'optional'
42
+ },
43
+ search_numbers: {
44
+ doc: 'If set to `true` and `search_in_word_index` is not set, the user will be able to more easily search and filter e.g. bank account numbers. Defaults to `false`.',
45
+ type: 'boolean',
46
+ status: 'optional'
47
+ },
48
+ search_in_word_index: {
49
+ doc: 'This gives you the possibility to change the threshold number, which defines from what word on we search "inside words". Defaults to `3`.',
50
+ type: 'boolean',
51
+ status: 'optional'
52
+ },
53
+ keep_value: {
54
+ doc: 'Use `true` to not remove the typed value on input blur, if it is invalid. By default, the typed value will disappear / replaced by a selected value from the data list during the input field blur. Defaults to `false`.',
55
+ type: 'boolean',
56
+ status: 'optional'
57
+ },
58
+ keep_selection: {
59
+ doc: 'Use `true` to not remove selected item on input blur, when the input value is empty. Defaults to `false`.',
60
+ type: 'boolean',
61
+ status: 'optional'
62
+ },
63
+ keep_value_and_selection: {
64
+ doc: 'Like `keep_value` – but would not reset to the selected value during input field blur. Also, the selected value would still be kept. Defaults to `false`.',
65
+ type: 'boolean',
66
+ status: 'optional'
67
+ },
68
+ prevent_selection: {
69
+ doc: 'If set to `true`, no permanent selection will be made. Also, the typed value will not disappear on input blur (like `keep_value`). Defaults to `false`.',
70
+ type: 'boolean',
71
+ status: 'optional'
72
+ },
73
+ show_clear_button: {
74
+ doc: 'If set to `true`, a clear button is shown inside the input field. Defaults to `false`.',
75
+ type: 'boolean',
76
+ status: 'optional'
77
+ },
78
+ icon: {
79
+ doc: 'To be included in the autocomplete input.',
80
+ type: ['string', 'React.Node'],
81
+ status: 'optional'
82
+ },
83
+ icon_size: {
84
+ doc: 'Change the size of the icon pragmatically.',
85
+ type: 'string',
86
+ status: 'optional'
87
+ },
88
+ icon_position: {
89
+ doc: 'Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.',
90
+ type: 'string',
91
+ status: 'optional'
92
+ },
93
+ input_icon: {
94
+ doc: 'Same as `icon`.',
95
+ type: ['string', 'React.Node'],
96
+ status: 'optional'
97
+ },
98
+ triangle_position: {
99
+ doc: 'Position of icon arrow / triangle the drawer. Set to `left` or `right`. Defaults to `left`.',
100
+ type: 'string',
101
+ status: 'optional'
102
+ },
103
+ size: {
104
+ doc: 'Define the height of the Autocomplete. Can be set to `small`, `default`, `medium` and `large`. Defaults to `default`.',
105
+ type: 'string',
106
+ status: 'optional'
107
+ },
108
+ drawer_class: {
109
+ doc: 'Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.',
110
+ type: 'string',
111
+ status: 'optional'
112
+ },
113
+ show_submit_button: {
114
+ doc: 'Use `true` to show a Autocomplete button to toggle the <a href="/uilib/components/fragments/drawer-list">DrawerList</a>. Defaults to `false`.',
115
+ type: 'boolean',
116
+ status: 'optional'
117
+ },
118
+ align_autocomplete: {
119
+ doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',
120
+ type: 'string',
121
+ status: 'optional'
122
+ },
123
+ no_options: {
124
+ doc: 'Text show in the "no options" item. Defaults to `Ingen alternativer`.',
125
+ type: 'boolean',
126
+ status: 'optional'
127
+ },
128
+ aria_live_options: {
129
+ doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',
130
+ type: 'React.Node',
131
+ status: 'optional'
132
+ },
133
+ show_all: {
134
+ doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',
135
+ type: 'boolean',
136
+ status: 'optional'
137
+ },
138
+ indicator_label: {
139
+ doc: 'Text show on indicator "options" item. Defaults to `Henter data ...`.',
140
+ type: 'React.Node',
141
+ status: 'optional'
142
+ },
143
+ show_options_sr: {
144
+ doc: 'Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.',
145
+ type: 'string',
146
+ status: 'optional'
147
+ },
148
+ selected_sr: {
149
+ doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',
150
+ type: 'string',
151
+ status: 'optional'
152
+ },
153
+ submit_button_title: {
154
+ doc: 'Title on submit button. Defaults to `Vis alternativer`.',
155
+ type: 'React.Node',
156
+ status: 'optional'
157
+ },
158
+ submit_button_icon: {
159
+ doc: 'The icon used in the submit button. Defaults to `chevron_down`.',
160
+ type: ['string', 'React.Element'],
161
+ status: 'optional'
162
+ },
163
+ submit_element: {
164
+ doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from &#39;@dnb/eufemia/components/input/Input&#39;`.',
165
+ type: 'React.Node',
166
+ status: 'optional'
167
+ },
168
+ opened: {
169
+ doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',
170
+ type: 'boolean',
171
+ status: 'optional'
172
+ },
173
+ open_on_focus: {
174
+ doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',
175
+ type: 'boolean',
176
+ status: 'optional'
177
+ },
178
+ stretch: {
179
+ doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',
180
+ type: 'boolean',
181
+ status: 'optional'
182
+ },
183
+ skip_portal: {
184
+ doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',
185
+ type: 'string',
186
+ status: 'optional'
187
+ },
188
+ status: {
189
+ doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',
190
+ type: 'string',
191
+ status: 'optional'
192
+ },
193
+ status_state: {
194
+ doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',
195
+ type: 'string',
196
+ status: 'optional'
197
+ },
198
+ status_props: {
199
+ doc: 'Use an object to define additional FormStatus properties.',
200
+ type: 'object',
201
+ status: 'optional'
202
+ },
203
+ globalStatus: {
204
+ doc: 'The <a href="/uilib/components/global-status/properties/#configuration-object">configuration</a> used for the target <a href="/uilib/components/global-status">GlobalStatus</a>.',
205
+ type: 'object',
206
+ status: 'optional'
207
+ },
208
+ label: {
209
+ doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',
210
+ type: 'React.Node',
211
+ status: 'optional'
212
+ },
213
+ label_direction: {
214
+ doc: 'Use `label_direction="vertical"` to change the label layout direction. Defaults to `horizontal`.',
215
+ type: 'React.Node',
216
+ status: 'optional'
217
+ },
218
+ label_sr_only: {
219
+ doc: 'Use `true` to make the label only readable by screen readers.',
220
+ type: 'boolean',
221
+ status: 'optional'
222
+ },
223
+ suffix: {
224
+ doc: 'Text describing the content of the Autocomplete more than the label. You can also send in a React component, so it gets wrapped inside the Autocomplete component.',
225
+ type: 'React.Node',
226
+ status: 'optional'
227
+ },
228
+ skeleton: {
229
+ doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',
230
+ type: 'boolean',
231
+ status: 'optional'
232
+ },
233
+ input_ref: {
234
+ doc: 'Use a React.Ref to get access to the `input` DOM element.',
235
+ type: 'React.Ref',
236
+ status: 'optional'
237
+ },
238
+ input_element: {
239
+ doc: 'Lets you provide a custom React element as the input HTML element.',
240
+ type: ['string', 'React.Element'],
241
+ status: 'optional'
242
+ },
243
+ '[DrawerList](/uilib/components/fragments/drawer-list/properties)': {
244
+ doc: 'all DrawerList properties.',
245
+ type: 'Various',
246
+ status: 'optional'
247
+ },
248
+ '[Space](/uilib/layout/space/properties)': {
249
+ doc: 'Spacing properties like `top` or `bottom` are supported.',
250
+ type: ['string', 'object'],
251
+ status: 'optional'
252
+ }
253
+ };
254
+ exports.autocompleteProperties = autocompleteProperties;
255
+ const AutocompleteEvents = {
256
+ on_type: {
257
+ doc: 'Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
258
+ type: 'function',
259
+ status: 'optional'
260
+ },
261
+ on_focus: {
262
+ doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
263
+ type: 'function',
264
+ status: 'optional'
265
+ },
266
+ on_blur: {
267
+ doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
268
+ type: 'function',
269
+ status: 'optional'
270
+ },
271
+ on_change: {
272
+ doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>.',
273
+ type: 'function',
274
+ status: 'optional'
275
+ },
276
+ on_select: {
277
+ doc: 'Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including <a href="/uilib/components/autocomplete/events#dynamically-change-data">these methods</a>. The "active_item" property is the currently selected item by keyboard navigation',
278
+ type: 'function',
279
+ status: 'optional'
280
+ },
281
+ on_show: {
282
+ doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',
283
+ type: 'function',
284
+ status: 'optional'
285
+ },
286
+ on_hide: {
287
+ doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',
288
+ type: 'function',
289
+ status: 'optional'
290
+ }
291
+ };
292
+ exports.AutocompleteEvents = AutocompleteEvents;
293
+ //# sourceMappingURL=AutocompleteDocs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutocompleteDocs.js","names":["autocompleteProperties","mode","doc","type","status","input_value","placeholder","title","disable_filter","disable_highlighting","disable_reorder","search_numbers","search_in_word_index","keep_value","keep_selection","keep_value_and_selection","prevent_selection","show_clear_button","icon","icon_size","icon_position","input_icon","triangle_position","size","drawer_class","show_submit_button","align_autocomplete","no_options","aria_live_options","show_all","indicator_label","show_options_sr","selected_sr","submit_button_title","submit_button_icon","submit_element","opened","open_on_focus","stretch","skip_portal","status_state","status_props","globalStatus","label","label_direction","label_sr_only","suffix","skeleton","input_ref","input_element","exports","AutocompleteEvents","on_type","on_focus","on_blur","on_change","on_select","on_show","on_hide"],"sources":["../../../../src/components/autocomplete/AutocompleteDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const autocompleteProperties: PropertiesTableProps = {\n mode: {\n doc: 'If set to `async`, it prevents showing the \"no options\" message during typing / filtering. Defaults to `sync`.',\n type: 'string',\n status: 'optional',\n },\n input_value: {\n doc: 'Lets you define a custom input value.',\n type: 'string',\n status: 'optional',\n },\n placeholder: {\n doc: 'Use this to define the pre-filled placeholder text in the input. Defaults to `title=\"Skriv og velg\"`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'Give a title to let the user know what they have to do. Defaults to `Skriv og få alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n disable_filter: {\n doc: 'If set to `true`, word highlighting will still be active, but no options will be filtered out. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_highlighting: {\n doc: 'If set to `true`, word highlighting will be disabled, but the options will still get filtered. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n disable_reorder: {\n doc: 'If set to `true`, reordering of search results will be disabled. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_numbers: {\n doc: 'If set to `true` and `search_in_word_index` is not set, the user will be able to more easily search and filter e.g. bank account numbers. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n search_in_word_index: {\n doc: 'This gives you the possibility to change the threshold number, which defines from what word on we search \"inside words\". Defaults to `3`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value: {\n doc: 'Use `true` to not remove the typed value on input blur, if it is invalid. By default, the typed value will disappear / replaced by a selected value from the data list during the input field blur. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_selection: {\n doc: 'Use `true` to not remove selected item on input blur, when the input value is empty. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n keep_value_and_selection: {\n doc: 'Like `keep_value` – but would not reset to the selected value during input field blur. Also, the selected value would still be kept. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n prevent_selection: {\n doc: 'If set to `true`, no permanent selection will be made. Also, the typed value will not disappear on input blur (like `keep_value`). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n show_clear_button: {\n doc: 'If set to `true`, a clear button is shown inside the input field. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n icon: {\n doc: 'To be included in the autocomplete input.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n icon_size: {\n doc: 'Change the size of the icon pragmatically.',\n type: 'string',\n status: 'optional',\n },\n icon_position: {\n doc: 'Position of the icon inside the autocomplete. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n input_icon: {\n doc: 'Same as `icon`.',\n type: ['string', 'React.Node'],\n status: 'optional',\n },\n triangle_position: {\n doc: 'Position of icon arrow / triangle the drawer. Set to `left` or `right`. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n size: {\n doc: 'Define the height of the Autocomplete. Can be set to `small`, `default`, `medium` and `large`. Defaults to `default`.',\n type: 'string',\n status: 'optional',\n },\n drawer_class: {\n doc: 'Define a custom class for the internal drawer-list. This makes it possible more easily customize the drawer-list style with styled-components and the `css` style method. Defaults to `null`.',\n type: 'string',\n status: 'optional',\n },\n show_submit_button: {\n doc: 'Use `true` to show a Autocomplete button to toggle the <a href=\"/uilib/components/fragments/drawer-list\">DrawerList</a>. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n align_autocomplete: {\n doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n no_options: {\n doc: 'Text show in the \"no options\" item. Defaults to `Ingen alternativer`.',\n type: 'boolean',\n status: 'optional',\n },\n aria_live_options: {\n doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_all: {\n doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',\n type: 'boolean',\n status: 'optional',\n },\n indicator_label: {\n doc: 'Text show on indicator \"options\" item. Defaults to `Henter data ...`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_options_sr: {\n doc: 'Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.',\n type: 'string',\n status: 'optional',\n },\n selected_sr: {\n doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title on submit button. Defaults to `Vis alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n submit_button_icon: {\n doc: 'The icon used in the submit button. Defaults to `chevron_down`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n submit_element: {\n doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from &#39;@dnb/eufemia/components/input/Input&#39;`.',\n type: 'React.Node',\n status: 'optional',\n },\n opened: {\n doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',\n type: 'boolean',\n status: 'optional',\n },\n open_on_focus: {\n doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The <a href=\"/uilib/components/global-status/properties/#configuration-object\">configuration</a> used for the target <a href=\"/uilib/components/global-status\">GlobalStatus</a>.',\n type: 'object',\n status: 'optional',\n },\n label: {\n doc: 'Prepends the Form Label component. If no ID is provided, a random ID is created.',\n type: 'React.Node',\n status: 'optional',\n },\n label_direction: {\n doc: 'Use `label_direction=\"vertical\"` to change the label layout direction. Defaults to `horizontal`.',\n type: 'React.Node',\n status: 'optional',\n },\n label_sr_only: {\n doc: 'Use `true` to make the label only readable by screen readers.',\n type: 'boolean',\n status: 'optional',\n },\n suffix: {\n doc: 'Text describing the content of the Autocomplete more than the label. You can also send in a React component, so it gets wrapped inside the Autocomplete component.',\n type: 'React.Node',\n status: 'optional',\n },\n skeleton: {\n doc: 'If set to `true`, an overlaying skeleton with animation will be shown.',\n type: 'boolean',\n status: 'optional',\n },\n input_ref: {\n doc: 'Use a React.Ref to get access to the `input` DOM element.',\n type: 'React.Ref',\n status: 'optional',\n },\n input_element: {\n doc: 'Lets you provide a custom React element as the input HTML element.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n '[DrawerList](/uilib/components/fragments/drawer-list/properties)': {\n doc: 'all DrawerList properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Space](/uilib/layout/space/properties)': {\n doc: 'Spacing properties like `top` or `bottom` are supported.',\n type: ['string', 'object'],\n status: 'optional',\n },\n}\n\nexport const AutocompleteEvents: PropertiesTableProps = {\n on_type: {\n doc: 'Will be called for every key change the users makes. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>.',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including <a href=\"/uilib/components/autocomplete/events#dynamically-change-data\">these methods</a>. The \"active_item\" property is the currently selected item by keyboard navigation',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":";;;;;;AAEO,MAAMA,sBAA4C,GAAG;EAC1DC,IAAI,EAAE;IACJC,GAAG,EAAE,gHAAgH;IACrHC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDC,WAAW,EAAE;IACXH,GAAG,EAAE,uCAAuC;IAC5CC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,WAAW,EAAE;IACXJ,GAAG,EAAE,uGAAuG;IAC5GC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,iGAAiG;IACtGC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDI,cAAc,EAAE;IACdN,GAAG,EAAE,qHAAqH;IAC1HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDK,oBAAoB,EAAE;IACpBP,GAAG,EAAE,qHA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mOAAmO;IACxOC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDmD,SAAS,EAAE;IACTrD,GAAG,EAAE,iPAAiP;IACtPC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoD,SAAS,EAAE;IACTtD,GAAG,EAAE,8WAA8W;IACnXC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqD,OAAO,EAAE;IACPvD,GAAG,EAAE,sGAAsG;IAC3GC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDsD,OAAO,EAAE;IACPxD,GAAG,EAAE,sIAAsI;IAC3IC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC;AAAA8C,OAAA,CAAAC,kBAAA,GAAAA,kBAAA"}
@@ -112,9 +112,6 @@ export default class Dropdown extends React.Component<DropdownProps, any> {
112
112
  static HorizontalItem: ({
113
113
  children
114
114
  }: {
115
- /**
116
- * <em>(required)</em> the data we want to fill the list with. Provide the data as a `JSON string`, `array` or `object` in these <a href="/uilib/components/fragments/drawer-list/info#data-structure">data structure</a>. <br /> If you don&#39;t have to define a `value`, you can also send in a `function` which will be called once the user opens the DrawerList.
117
- */
118
115
  children: React.ReactNode;
119
116
  }) => JSX.Element;
120
117
  render(): JSX.Element;
@@ -57,7 +57,7 @@ const inputProperties = {
57
57
  },
58
58
  icon: {
59
59
  doc: 'Icon to show before or after the input / placeholder. Can be either a string defining a primary icon or a Component using an SVG icon of either 16px or 24px.',
60
- type: ['string', 'React.Component'],
60
+ type: ['string', 'React.Node'],
61
61
  status: 'optional'
62
62
  },
63
63
  icon_position: {
@@ -97,7 +97,7 @@ const inputProperties = {
97
97
  },
98
98
  suffix: {
99
99
  doc: 'Text describing the content of the input more than the label. you can also send in a React component, so it gets wrapped inside the Input component.',
100
- type: ['string', 'React.Component'],
100
+ type: ['string', 'React.Node'],
101
101
  status: 'optional'
102
102
  },
103
103
  size: {