@dnb/eufemia 10.56.0 → 10.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (949) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/assets/flags/1x1/ad.svg +148 -0
  3. package/assets/flags/1x1/ae.svg +6 -0
  4. package/assets/flags/1x1/af.svg +81 -0
  5. package/assets/flags/1x1/ag.svg +14 -0
  6. package/assets/flags/1x1/ai.svg +29 -0
  7. package/assets/flags/1x1/al.svg +5 -0
  8. package/assets/flags/1x1/am.svg +5 -0
  9. package/assets/flags/1x1/ao.svg +13 -0
  10. package/assets/flags/1x1/aq.svg +5 -0
  11. package/assets/flags/1x1/ar.svg +32 -0
  12. package/assets/flags/1x1/arab.svg +109 -0
  13. package/assets/flags/1x1/as.svg +73 -0
  14. package/assets/flags/1x1/at.svg +4 -0
  15. package/assets/flags/1x1/au.svg +8 -0
  16. package/assets/flags/1x1/aw.svg +186 -0
  17. package/assets/flags/1x1/ax.svg +18 -0
  18. package/assets/flags/1x1/az.svg +8 -0
  19. package/assets/flags/1x1/ba.svg +12 -0
  20. package/assets/flags/1x1/bb.svg +6 -0
  21. package/assets/flags/1x1/bd.svg +4 -0
  22. package/assets/flags/1x1/be.svg +7 -0
  23. package/assets/flags/1x1/bf.svg +7 -0
  24. package/assets/flags/1x1/bg.svg +5 -0
  25. package/assets/flags/1x1/bh.svg +4 -0
  26. package/assets/flags/1x1/bi.svg +15 -0
  27. package/assets/flags/1x1/bj.svg +14 -0
  28. package/assets/flags/1x1/bl.svg +7 -0
  29. package/assets/flags/1x1/bm.svg +97 -0
  30. package/assets/flags/1x1/bn.svg +36 -0
  31. package/assets/flags/1x1/bo.svg +674 -0
  32. package/assets/flags/1x1/bq.svg +5 -0
  33. package/assets/flags/1x1/br.svg +45 -0
  34. package/assets/flags/1x1/bs.svg +13 -0
  35. package/assets/flags/1x1/bt.svg +89 -0
  36. package/assets/flags/1x1/bv.svg +13 -0
  37. package/assets/flags/1x1/bw.svg +7 -0
  38. package/assets/flags/1x1/by.svg +18 -0
  39. package/assets/flags/1x1/bz.svg +145 -0
  40. package/assets/flags/1x1/ca.svg +4 -0
  41. package/assets/flags/1x1/cc.svg +19 -0
  42. package/assets/flags/1x1/cd.svg +12 -0
  43. package/assets/flags/1x1/cefta.svg +13 -0
  44. package/assets/flags/1x1/cf.svg +15 -0
  45. package/assets/flags/1x1/cg.svg +12 -0
  46. package/assets/flags/1x1/ch.svg +9 -0
  47. package/assets/flags/1x1/ci.svg +7 -0
  48. package/assets/flags/1x1/ck.svg +9 -0
  49. package/assets/flags/1x1/cl.svg +13 -0
  50. package/assets/flags/1x1/cm.svg +15 -0
  51. package/assets/flags/1x1/cn.svg +11 -0
  52. package/assets/flags/1x1/co.svg +7 -0
  53. package/assets/flags/1x1/cp.svg +7 -0
  54. package/assets/flags/1x1/cr.svg +7 -0
  55. package/assets/flags/1x1/cu.svg +13 -0
  56. package/assets/flags/1x1/cv.svg +13 -0
  57. package/assets/flags/1x1/cw.svg +14 -0
  58. package/assets/flags/1x1/cx.svg +15 -0
  59. package/assets/flags/1x1/cy.svg +6 -0
  60. package/assets/flags/1x1/cz.svg +5 -0
  61. package/assets/flags/1x1/de.svg +5 -0
  62. package/assets/flags/1x1/dg.svg +130 -0
  63. package/assets/flags/1x1/dj.svg +13 -0
  64. package/assets/flags/1x1/dk.svg +5 -0
  65. package/assets/flags/1x1/dm.svg +152 -0
  66. package/assets/flags/1x1/do.svg +123 -0
  67. package/assets/flags/1x1/dz.svg +5 -0
  68. package/assets/flags/1x1/eac.svg +48 -0
  69. package/assets/flags/1x1/ec.svg +138 -0
  70. package/assets/flags/1x1/ee.svg +5 -0
  71. package/assets/flags/1x1/eg.svg +38 -0
  72. package/assets/flags/1x1/eh.svg +11 -0
  73. package/assets/flags/1x1/er.svg +13 -0
  74. package/assets/flags/1x1/es-ct.svg +4 -0
  75. package/assets/flags/1x1/es-ga.svg +187 -0
  76. package/assets/flags/1x1/es-pv.svg +5 -0
  77. package/assets/flags/1x1/es.svg +547 -0
  78. package/assets/flags/1x1/et.svg +14 -0
  79. package/assets/flags/1x1/eu.svg +28 -0
  80. package/assets/flags/1x1/fi.svg +5 -0
  81. package/assets/flags/1x1/fj.svg +123 -0
  82. package/assets/flags/1x1/fk.svg +89 -0
  83. package/assets/flags/1x1/fm.svg +11 -0
  84. package/assets/flags/1x1/fo.svg +12 -0
  85. package/assets/flags/1x1/fr.svg +5 -0
  86. package/assets/flags/1x1/ga.svg +7 -0
  87. package/assets/flags/1x1/gb-eng.svg +5 -0
  88. package/assets/flags/1x1/gb-nir.svg +131 -0
  89. package/assets/flags/1x1/gb-sct.svg +4 -0
  90. package/assets/flags/1x1/gb-wls.svg +9 -0
  91. package/assets/flags/1x1/gb.svg +7 -0
  92. package/assets/flags/1x1/gd.svg +27 -0
  93. package/assets/flags/1x1/ge.svg +6 -0
  94. package/assets/flags/1x1/gf.svg +5 -0
  95. package/assets/flags/1x1/gg.svg +9 -0
  96. package/assets/flags/1x1/gh.svg +6 -0
  97. package/assets/flags/1x1/gi.svg +32 -0
  98. package/assets/flags/1x1/gl.svg +4 -0
  99. package/assets/flags/1x1/gm.svg +9 -0
  100. package/assets/flags/1x1/gn.svg +7 -0
  101. package/assets/flags/1x1/gp.svg +5 -0
  102. package/assets/flags/1x1/gq.svg +23 -0
  103. package/assets/flags/1x1/gr.svg +16 -0
  104. package/assets/flags/1x1/gs.svg +132 -0
  105. package/assets/flags/1x1/gt.svg +204 -0
  106. package/assets/flags/1x1/gu.svg +23 -0
  107. package/assets/flags/1x1/gw.svg +15 -0
  108. package/assets/flags/1x1/gy.svg +9 -0
  109. package/assets/flags/1x1/hk.svg +8 -0
  110. package/assets/flags/1x1/hm.svg +8 -0
  111. package/assets/flags/1x1/hn.svg +18 -0
  112. package/assets/flags/1x1/hr.svg +56 -0
  113. package/assets/flags/1x1/ht.svg +116 -0
  114. package/assets/flags/1x1/hu.svg +7 -0
  115. package/assets/flags/1x1/ic.svg +7 -0
  116. package/assets/flags/1x1/id.svg +4 -0
  117. package/assets/flags/1x1/ie.svg +7 -0
  118. package/assets/flags/1x1/il.svg +14 -0
  119. package/assets/flags/1x1/im.svg +36 -0
  120. package/assets/flags/1x1/in.svg +25 -0
  121. package/assets/flags/1x1/io.svg +130 -0
  122. package/assets/flags/1x1/iq.svg +10 -0
  123. package/assets/flags/1x1/ir.svg +219 -0
  124. package/assets/flags/1x1/is.svg +12 -0
  125. package/assets/flags/1x1/it.svg +7 -0
  126. package/assets/flags/1x1/je.svg +62 -0
  127. package/assets/flags/1x1/jm.svg +8 -0
  128. package/assets/flags/1x1/jo.svg +16 -0
  129. package/assets/flags/1x1/jp.svg +11 -0
  130. package/assets/flags/1x1/ke.svg +23 -0
  131. package/assets/flags/1x1/kg.svg +15 -0
  132. package/assets/flags/1x1/kh.svg +61 -0
  133. package/assets/flags/1x1/ki.svg +36 -0
  134. package/assets/flags/1x1/km.svg +16 -0
  135. package/assets/flags/1x1/kn.svg +14 -0
  136. package/assets/flags/1x1/kp.svg +15 -0
  137. package/assets/flags/1x1/kr.svg +17 -0
  138. package/assets/flags/1x1/kw.svg +13 -0
  139. package/assets/flags/1x1/ky.svg +103 -0
  140. package/assets/flags/1x1/kz.svg +36 -0
  141. package/assets/flags/1x1/la.svg +12 -0
  142. package/assets/flags/1x1/lb.svg +15 -0
  143. package/assets/flags/1x1/lc.svg +8 -0
  144. package/assets/flags/1x1/li.svg +43 -0
  145. package/assets/flags/1x1/lk.svg +22 -0
  146. package/assets/flags/1x1/lr.svg +14 -0
  147. package/assets/flags/1x1/ls.svg +8 -0
  148. package/assets/flags/1x1/lt.svg +7 -0
  149. package/assets/flags/1x1/lu.svg +5 -0
  150. package/assets/flags/1x1/lv.svg +6 -0
  151. package/assets/flags/1x1/ly.svg +13 -0
  152. package/assets/flags/1x1/ma.svg +4 -0
  153. package/assets/flags/1x1/mc.svg +6 -0
  154. package/assets/flags/1x1/md.svg +71 -0
  155. package/assets/flags/1x1/me.svg +118 -0
  156. package/assets/flags/1x1/mf.svg +5 -0
  157. package/assets/flags/1x1/mg.svg +7 -0
  158. package/assets/flags/1x1/mh.svg +8 -0
  159. package/assets/flags/1x1/mk.svg +5 -0
  160. package/assets/flags/1x1/ml.svg +7 -0
  161. package/assets/flags/1x1/mm.svg +10 -0
  162. package/assets/flags/1x1/mn.svg +14 -0
  163. package/assets/flags/1x1/mo.svg +9 -0
  164. package/assets/flags/1x1/mp.svg +86 -0
  165. package/assets/flags/1x1/mq.svg +5 -0
  166. package/assets/flags/1x1/mr.svg +6 -0
  167. package/assets/flags/1x1/ms.svg +25 -0
  168. package/assets/flags/1x1/mt.svg +56 -0
  169. package/assets/flags/1x1/mu.svg +8 -0
  170. package/assets/flags/1x1/mv.svg +6 -0
  171. package/assets/flags/1x1/mw.svg +15 -0
  172. package/assets/flags/1x1/mx.svg +377 -0
  173. package/assets/flags/1x1/my.svg +18 -0
  174. package/assets/flags/1x1/mz.svg +21 -0
  175. package/assets/flags/1x1/na.svg +16 -0
  176. package/assets/flags/1x1/nc.svg +12 -0
  177. package/assets/flags/1x1/ne.svg +6 -0
  178. package/assets/flags/1x1/nf.svg +11 -0
  179. package/assets/flags/1x1/ng.svg +6 -0
  180. package/assets/flags/1x1/ni.svg +129 -0
  181. package/assets/flags/1x1/nl.svg +5 -0
  182. package/assets/flags/1x1/no.svg +7 -0
  183. package/assets/flags/1x1/np.svg +18 -0
  184. package/assets/flags/1x1/nr.svg +12 -0
  185. package/assets/flags/1x1/nu.svg +10 -0
  186. package/assets/flags/1x1/nz.svg +36 -0
  187. package/assets/flags/1x1/om.svg +115 -0
  188. package/assets/flags/1x1/pa.svg +13 -0
  189. package/assets/flags/1x1/pc.svg +33 -0
  190. package/assets/flags/1x1/pe.svg +4 -0
  191. package/assets/flags/1x1/pf.svg +18 -0
  192. package/assets/flags/1x1/pg.svg +16 -0
  193. package/assets/flags/1x1/ph.svg +6 -0
  194. package/assets/flags/1x1/pk.svg +15 -0
  195. package/assets/flags/1x1/pl.svg +6 -0
  196. package/assets/flags/1x1/pm.svg +5 -0
  197. package/assets/flags/1x1/pn.svg +53 -0
  198. package/assets/flags/1x1/pr.svg +13 -0
  199. package/assets/flags/1x1/ps.svg +15 -0
  200. package/assets/flags/1x1/pt.svg +57 -0
  201. package/assets/flags/1x1/pw.svg +11 -0
  202. package/assets/flags/1x1/py.svg +156 -0
  203. package/assets/flags/1x1/qa.svg +4 -0
  204. package/assets/flags/1x1/re.svg +7 -0
  205. package/assets/flags/1x1/ro.svg +7 -0
  206. package/assets/flags/1x1/rs.svg +296 -0
  207. package/assets/flags/1x1/ru.svg +5 -0
  208. package/assets/flags/1x1/rw.svg +13 -0
  209. package/assets/flags/1x1/sa.svg +25 -0
  210. package/assets/flags/1x1/sb.svg +13 -0
  211. package/assets/flags/1x1/sc.svg +7 -0
  212. package/assets/flags/1x1/sd.svg +13 -0
  213. package/assets/flags/1x1/se.svg +4 -0
  214. package/assets/flags/1x1/sg.svg +13 -0
  215. package/assets/flags/1x1/sh-ac.svg +690 -0
  216. package/assets/flags/1x1/sh-hl.svg +164 -0
  217. package/assets/flags/1x1/sh-ta.svg +76 -0
  218. package/assets/flags/1x1/sh.svg +7 -0
  219. package/assets/flags/1x1/si.svg +18 -0
  220. package/assets/flags/1x1/sj.svg +7 -0
  221. package/assets/flags/1x1/sk.svg +9 -0
  222. package/assets/flags/1x1/sl.svg +12 -0
  223. package/assets/flags/1x1/sm.svg +73 -0
  224. package/assets/flags/1x1/sn.svg +8 -0
  225. package/assets/flags/1x1/so.svg +11 -0
  226. package/assets/flags/1x1/sr.svg +6 -0
  227. package/assets/flags/1x1/ss.svg +8 -0
  228. package/assets/flags/1x1/st.svg +16 -0
  229. package/assets/flags/1x1/sv.svg +594 -0
  230. package/assets/flags/1x1/sx.svg +56 -0
  231. package/assets/flags/1x1/sy.svg +6 -0
  232. package/assets/flags/1x1/sz.svg +34 -0
  233. package/assets/flags/1x1/tc.svg +50 -0
  234. package/assets/flags/1x1/td.svg +7 -0
  235. package/assets/flags/1x1/tf.svg +15 -0
  236. package/assets/flags/1x1/tg.svg +14 -0
  237. package/assets/flags/1x1/th.svg +7 -0
  238. package/assets/flags/1x1/tj.svg +26 -0
  239. package/assets/flags/1x1/tk.svg +5 -0
  240. package/assets/flags/1x1/tl.svg +13 -0
  241. package/assets/flags/1x1/tm.svg +205 -0
  242. package/assets/flags/1x1/tn.svg +4 -0
  243. package/assets/flags/1x1/to.svg +10 -0
  244. package/assets/flags/1x1/tr.svg +8 -0
  245. package/assets/flags/1x1/tt.svg +7 -0
  246. package/assets/flags/1x1/tv.svg +9 -0
  247. package/assets/flags/1x1/tw.svg +32 -0
  248. package/assets/flags/1x1/tz.svg +15 -0
  249. package/assets/flags/1x1/ua.svg +6 -0
  250. package/assets/flags/1x1/ug.svg +30 -0
  251. package/assets/flags/1x1/um.svg +9 -0
  252. package/assets/flags/1x1/un.svg +16 -0
  253. package/assets/flags/1x1/us.svg +9 -0
  254. package/assets/flags/1x1/uy.svg +28 -0
  255. package/assets/flags/1x1/uz.svg +30 -0
  256. package/assets/flags/1x1/va.svg +190 -0
  257. package/assets/flags/1x1/vc.svg +8 -0
  258. package/assets/flags/1x1/ve.svg +26 -0
  259. package/assets/flags/1x1/vg.svg +59 -0
  260. package/assets/flags/1x1/vi.svg +28 -0
  261. package/assets/flags/1x1/vn.svg +11 -0
  262. package/assets/flags/1x1/vu.svg +21 -0
  263. package/assets/flags/1x1/wf.svg +5 -0
  264. package/assets/flags/1x1/ws.svg +7 -0
  265. package/assets/flags/1x1/xk.svg +5 -0
  266. package/assets/flags/1x1/xx.svg +4 -0
  267. package/assets/flags/1x1/ye.svg +7 -0
  268. package/assets/flags/1x1/yt.svg +5 -0
  269. package/assets/flags/1x1/za.svg +17 -0
  270. package/assets/flags/1x1/zm.svg +27 -0
  271. package/assets/flags/1x1/zw.svg +21 -0
  272. package/assets/flags/LICENSE +23 -0
  273. package/cjs/components/autocomplete/Autocomplete.js.map +1 -1
  274. package/cjs/components/autocomplete/AutocompleteDocs.js +1 -1
  275. package/cjs/components/autocomplete/AutocompleteDocs.js.map +1 -1
  276. package/cjs/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.css +2 -2
  277. package/cjs/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.min.css +1 -1
  278. package/cjs/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.scss +2 -2
  279. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +2 -2
  280. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  281. package/cjs/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +2 -2
  282. package/cjs/components/card/Card.d.ts +2 -1
  283. package/cjs/components/card/Card.js +3 -1
  284. package/cjs/components/card/Card.js.map +1 -1
  285. package/cjs/components/card/CardDocs.js +5 -0
  286. package/cjs/components/card/CardDocs.js.map +1 -1
  287. package/cjs/components/card/style/dnb-card.css +17 -10
  288. package/cjs/components/card/style/dnb-card.min.css +1 -1
  289. package/cjs/components/card/style/dnb-card.scss +26 -7
  290. package/cjs/components/country-flag/style/dnb-country-flag-icons.css +280 -272
  291. package/cjs/components/country-flag/style/dnb-country-flag-icons.min.css +1 -1
  292. package/cjs/components/country-flag/style/dnb-country-flag-icons.scss +280 -272
  293. package/cjs/components/dropdown/Dropdown.js.map +1 -1
  294. package/cjs/components/help-button/HelpButtonInline.d.ts +3 -0
  295. package/cjs/components/help-button/HelpButtonInline.js +8 -4
  296. package/cjs/components/help-button/HelpButtonInline.js.map +1 -1
  297. package/cjs/components/help-button/style/dnb-help-button-inline.css +6 -5
  298. package/cjs/components/help-button/style/dnb-help-button-inline.min.css +1 -1
  299. package/cjs/components/help-button/style/dnb-help-button-inline.scss +6 -11
  300. package/cjs/components/help-button/style/dnb-help-button.css +6 -5
  301. package/cjs/components/help-button/style/dnb-help-button.min.css +1 -1
  302. package/cjs/components/icon/Icon.js +5 -0
  303. package/cjs/components/icon/Icon.js.map +1 -1
  304. package/cjs/components/modal/parts/ModalHeader.d.ts +2 -1
  305. package/cjs/components/modal/parts/ModalHeader.js.map +1 -1
  306. package/cjs/components/section/Section.d.ts +5 -0
  307. package/cjs/components/section/Section.js +4 -3
  308. package/cjs/components/section/Section.js.map +1 -1
  309. package/cjs/components/section/SectionDocs.d.ts +2 -0
  310. package/cjs/components/section/SectionDocs.js +65 -0
  311. package/cjs/components/section/SectionDocs.js.map +1 -0
  312. package/cjs/components/section/style/dnb-section.css +12 -0
  313. package/cjs/components/section/style/dnb-section.min.css +3 -3
  314. package/cjs/components/section/style/dnb-section.scss +22 -0
  315. package/cjs/core/jest/jestSetupScreenshots.css +11 -1
  316. package/cjs/elements/lib.d.ts +10 -1
  317. package/cjs/elements/span/Span.d.ts +13 -4
  318. package/cjs/elements/span/Span.js +3 -3
  319. package/cjs/elements/span/Span.js.map +1 -1
  320. package/cjs/elements/span/SpanDocs.d.ts +2 -0
  321. package/cjs/elements/span/SpanDocs.js +15 -0
  322. package/cjs/elements/span/SpanDocs.js.map +1 -0
  323. package/cjs/elements/typography/Ingress.js +1 -1
  324. package/cjs/elements/typography/Ingress.js.map +1 -1
  325. package/cjs/elements/typography/P.d.ts +10 -16
  326. package/cjs/elements/typography/P.js +54 -24
  327. package/cjs/elements/typography/P.js.map +1 -1
  328. package/cjs/elements/typography/PDocs.js +14 -23
  329. package/cjs/elements/typography/PDocs.js.map +1 -1
  330. package/cjs/elements/typography/Typography.d.ts +55 -0
  331. package/cjs/elements/typography/Typography.js +37 -0
  332. package/cjs/elements/typography/Typography.js.map +1 -0
  333. package/cjs/elements/typography/TypographyDocs.d.ts +2 -0
  334. package/cjs/elements/typography/TypographyDocs.js +55 -0
  335. package/cjs/elements/typography/TypographyDocs.js.map +1 -0
  336. package/cjs/elements/typography/style/_dnb-t.scss +93 -0
  337. package/cjs/elements/typography/style/dnb-typography.scss +2 -1
  338. package/cjs/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +0 -1
  339. package/cjs/elements/typography/style/typography-mixins.scss +25 -15
  340. package/cjs/extensions/forms/DataContext/Provider/Provider.js +1 -1
  341. package/cjs/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  342. package/cjs/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +2 -1
  343. package/cjs/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  344. package/cjs/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +3 -2
  345. package/cjs/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  346. package/cjs/extensions/forms/Field/Option/Option.js +1 -1
  347. package/cjs/extensions/forms/Field/Option/Option.js.map +1 -1
  348. package/cjs/extensions/forms/Field/Option/OptionDocs.js +9 -4
  349. package/cjs/extensions/forms/Field/Option/OptionDocs.js.map +1 -1
  350. package/cjs/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +2 -1
  351. package/cjs/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  352. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js +2 -1
  353. package/cjs/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  354. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +8 -10
  355. package/cjs/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  356. package/cjs/extensions/forms/Field/Provider/useFieldProvider.d.ts +1 -0
  357. package/cjs/extensions/forms/Field/Selection/Selection.d.ts +12 -2
  358. package/cjs/extensions/forms/Field/Selection/Selection.js +9 -5
  359. package/cjs/extensions/forms/Field/Selection/Selection.js.map +1 -1
  360. package/cjs/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  361. package/cjs/extensions/forms/Field/Upload/Upload.js +17 -8
  362. package/cjs/extensions/forms/Field/Upload/Upload.js.map +1 -1
  363. package/cjs/extensions/forms/Field/Upload/UploadDocs.js +7 -1
  364. package/cjs/extensions/forms/Field/Upload/UploadDocs.js.map +1 -1
  365. package/cjs/extensions/forms/FieldBlock/FieldBlock.js +15 -6
  366. package/cjs/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  367. package/cjs/extensions/forms/FieldBlock/FieldBlockContext.d.ts +3 -2
  368. package/cjs/extensions/forms/FieldBlock/FieldBlockContext.js.map +1 -1
  369. package/cjs/extensions/forms/FieldBlock/style/dnb-field-block.css +16 -6
  370. package/cjs/extensions/forms/FieldBlock/style/dnb-field-block.min.css +1 -1
  371. package/cjs/extensions/forms/FieldBlock/style/dnb-field-block.scss +32 -20
  372. package/cjs/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.css +4 -6
  373. package/cjs/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.min.css +1 -1
  374. package/cjs/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.scss +17 -9
  375. package/cjs/extensions/forms/Form/Card/Card.d.ts +6 -0
  376. package/cjs/extensions/forms/Form/Card/Card.js +20 -0
  377. package/cjs/extensions/forms/Form/Card/Card.js.map +1 -0
  378. package/cjs/extensions/forms/Form/Card/CardDocs.d.ts +2 -0
  379. package/cjs/extensions/forms/Form/Card/CardDocs.js +27 -0
  380. package/cjs/extensions/forms/Form/Card/CardDocs.js.map +1 -0
  381. package/cjs/extensions/forms/Form/Card/index.d.ts +2 -0
  382. package/cjs/extensions/forms/Form/Card/index.js +27 -0
  383. package/cjs/extensions/forms/Form/Card/index.js.map +1 -0
  384. package/cjs/extensions/forms/Form/index.d.ts +1 -0
  385. package/cjs/extensions/forms/Form/index.js +7 -0
  386. package/cjs/extensions/forms/Form/index.js.map +1 -1
  387. package/cjs/extensions/forms/Iterate/Array/ArrayDocs.js +1 -1
  388. package/cjs/extensions/forms/Iterate/Array/ArrayDocs.js.map +1 -1
  389. package/cjs/extensions/forms/Iterate/Array/types.d.ts +1 -1
  390. package/cjs/extensions/forms/Iterate/Array/types.js.map +1 -1
  391. package/cjs/extensions/forms/Value/Provider/useValueProvider.d.ts +1 -0
  392. package/cjs/extensions/forms/Value/SummaryList/SummaryList.d.ts +1 -1
  393. package/cjs/extensions/forms/Value/SummaryList/SummaryList.js.map +1 -1
  394. package/cjs/extensions/forms/Value/ValueDocs.js +5 -0
  395. package/cjs/extensions/forms/Value/ValueDocs.js.map +1 -1
  396. package/cjs/extensions/forms/ValueBlock/ValueBlock.js +4 -2
  397. package/cjs/extensions/forms/ValueBlock/ValueBlock.js.map +1 -1
  398. package/cjs/extensions/forms/Wizard/style/dnb-wizard-layout.css +2 -2
  399. package/cjs/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -1
  400. package/cjs/extensions/forms/Wizard/style/dnb-wizard-layout.scss +1 -1
  401. package/cjs/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js +2 -7
  402. package/cjs/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js.map +1 -1
  403. package/cjs/extensions/forms/hooks/DataValueWritePropsDocs.js +1 -1
  404. package/cjs/extensions/forms/hooks/DataValueWritePropsDocs.js.map +1 -1
  405. package/cjs/extensions/forms/hooks/useFieldProps.js +50 -36
  406. package/cjs/extensions/forms/hooks/useFieldProps.js.map +1 -1
  407. package/cjs/extensions/forms/style/dnb-forms.css +22 -14
  408. package/cjs/extensions/forms/style/dnb-forms.min.css +1 -1
  409. package/cjs/extensions/forms/types.d.ts +4 -0
  410. package/cjs/extensions/forms/types.js.map +1 -1
  411. package/cjs/extensions/payment-card/style/dnb-payment-card.css +1 -1
  412. package/cjs/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  413. package/cjs/fragments/drawer-list/DrawerList.d.ts +22 -21
  414. package/cjs/fragments/drawer-list/DrawerList.js +14 -5
  415. package/cjs/fragments/drawer-list/DrawerList.js.map +1 -1
  416. package/cjs/fragments/drawer-list/DrawerListDocs.d.ts +1 -0
  417. package/cjs/fragments/drawer-list/DrawerListDocs.js +39 -6
  418. package/cjs/fragments/drawer-list/DrawerListDocs.js.map +1 -1
  419. package/cjs/fragments/drawer-list/DrawerListHelpers.js +13 -6
  420. package/cjs/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
  421. package/cjs/fragments/drawer-list/DrawerListProvider.js +3 -0
  422. package/cjs/fragments/drawer-list/DrawerListProvider.js.map +1 -1
  423. package/cjs/fragments/drawer-list/style/dnb-drawer-list.scss +11 -0
  424. package/cjs/fragments/drawer-list/style/themes/dnb-drawer-list-theme-sbanken.scss +26 -19
  425. package/cjs/shared/Eufemia.d.ts +1 -1
  426. package/cjs/shared/Eufemia.js +2 -2
  427. package/cjs/shared/Eufemia.js.map +1 -1
  428. package/cjs/shared/VisibilityByTheme.d.ts +5 -2
  429. package/cjs/shared/VisibilityByTheme.js +12 -0
  430. package/cjs/shared/VisibilityByTheme.js.map +1 -1
  431. package/cjs/style/core/scopes.scss +1 -1
  432. package/cjs/style/dnb-ui-basis.css +1 -1
  433. package/cjs/style/dnb-ui-basis.min.css +1 -1
  434. package/cjs/style/dnb-ui-body.css +1 -1
  435. package/cjs/style/dnb-ui-body.min.css +1 -1
  436. package/cjs/style/dnb-ui-components.css +352 -306
  437. package/cjs/style/dnb-ui-components.min.css +6 -4
  438. package/cjs/style/dnb-ui-core.css +1 -1
  439. package/cjs/style/dnb-ui-core.min.css +1 -1
  440. package/cjs/style/dnb-ui-elements.css +91 -6
  441. package/cjs/style/dnb-ui-elements.min.css +1 -1
  442. package/cjs/style/dnb-ui-extensions.css +23 -15
  443. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  444. package/cjs/style/dnb-ui-forms.css +22 -14
  445. package/cjs/style/dnb-ui-forms.min.css +1 -1
  446. package/cjs/style/dnb-ui-fragments.css +9 -0
  447. package/cjs/style/dnb-ui-fragments.min.css +3 -1
  448. package/cjs/style/themes/theme-eiendom/eiendom-theme-basis.css +92 -6
  449. package/cjs/style/themes/theme-eiendom/eiendom-theme-basis.min.css +1 -1
  450. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +376 -322
  451. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +8 -6
  452. package/cjs/style/themes/theme-eiendom/eiendom-theme-elements.css +91 -6
  453. package/cjs/style/themes/theme-eiendom/eiendom-theme-elements.min.css +1 -1
  454. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.css +23 -15
  455. package/cjs/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  456. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.css +22 -14
  457. package/cjs/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  458. package/cjs/style/themes/theme-eiendom/properties.d.ts +2 -1
  459. package/cjs/style/themes/theme-eiendom/properties.js +2 -1
  460. package/cjs/style/themes/theme-eiendom/properties.js.map +1 -1
  461. package/cjs/style/themes/theme-sbanken/fonts.scss +7 -3
  462. package/cjs/style/themes/theme-sbanken/properties.d.ts +2 -1
  463. package/cjs/style/themes/theme-sbanken/properties.js +2 -1
  464. package/cjs/style/themes/theme-sbanken/properties.js.map +1 -1
  465. package/cjs/style/themes/theme-sbanken/properties.scss +1 -1
  466. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +101 -10
  467. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +2 -2
  468. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +396 -339
  469. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +9 -7
  470. package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.css +91 -7
  471. package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  472. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.css +23 -15
  473. package/cjs/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  474. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.css +22 -14
  475. package/cjs/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  476. package/cjs/style/themes/theme-sbanken/theme-mapping.scss +1 -0
  477. package/cjs/style/themes/theme-ui/properties.d.ts +2 -1
  478. package/cjs/style/themes/theme-ui/properties.js +2 -1
  479. package/cjs/style/themes/theme-ui/properties.js.map +1 -1
  480. package/cjs/style/themes/theme-ui/properties.scss +1 -0
  481. package/cjs/style/themes/theme-ui/ui-theme-basis.css +92 -6
  482. package/cjs/style/themes/theme-ui/ui-theme-basis.min.css +1 -1
  483. package/cjs/style/themes/theme-ui/ui-theme-components.css +376 -322
  484. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +8 -6
  485. package/cjs/style/themes/theme-ui/ui-theme-elements.css +91 -6
  486. package/cjs/style/themes/theme-ui/ui-theme-elements.min.css +1 -1
  487. package/cjs/style/themes/theme-ui/ui-theme-extensions.css +23 -15
  488. package/cjs/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  489. package/cjs/style/themes/theme-ui/ui-theme-forms.css +22 -14
  490. package/cjs/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  491. package/cjs/style/themes/theme-ui/ui-theme-properties.css +1 -0
  492. package/cjs/style/themes/theme-ui/ui-theme-properties.min.css +1 -1
  493. package/cjs/style/themes/theme-ui/ui-theme-tags.css +9 -5
  494. package/cjs/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  495. package/components/autocomplete/Autocomplete.js.map +1 -1
  496. package/components/autocomplete/AutocompleteDocs.js +1 -1
  497. package/components/autocomplete/AutocompleteDocs.js.map +1 -1
  498. package/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.css +2 -2
  499. package/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.min.css +1 -1
  500. package/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.scss +2 -2
  501. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +2 -2
  502. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  503. package/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +2 -2
  504. package/components/card/Card.d.ts +2 -1
  505. package/components/card/Card.js +3 -1
  506. package/components/card/Card.js.map +1 -1
  507. package/components/card/CardDocs.js +5 -0
  508. package/components/card/CardDocs.js.map +1 -1
  509. package/components/card/style/dnb-card.css +17 -10
  510. package/components/card/style/dnb-card.min.css +1 -1
  511. package/components/card/style/dnb-card.scss +26 -7
  512. package/components/country-flag/style/dnb-country-flag-icons.css +280 -272
  513. package/components/country-flag/style/dnb-country-flag-icons.min.css +1 -1
  514. package/components/country-flag/style/dnb-country-flag-icons.scss +280 -272
  515. package/components/dropdown/Dropdown.js.map +1 -1
  516. package/components/help-button/HelpButtonInline.d.ts +3 -0
  517. package/components/help-button/HelpButtonInline.js +8 -4
  518. package/components/help-button/HelpButtonInline.js.map +1 -1
  519. package/components/help-button/style/dnb-help-button-inline.css +6 -5
  520. package/components/help-button/style/dnb-help-button-inline.min.css +1 -1
  521. package/components/help-button/style/dnb-help-button-inline.scss +6 -11
  522. package/components/help-button/style/dnb-help-button.css +6 -5
  523. package/components/help-button/style/dnb-help-button.min.css +1 -1
  524. package/components/icon/Icon.js +5 -0
  525. package/components/icon/Icon.js.map +1 -1
  526. package/components/modal/parts/ModalHeader.d.ts +2 -1
  527. package/components/modal/parts/ModalHeader.js.map +1 -1
  528. package/components/section/Section.d.ts +5 -0
  529. package/components/section/Section.js +4 -3
  530. package/components/section/Section.js.map +1 -1
  531. package/components/section/SectionDocs.d.ts +2 -0
  532. package/components/section/SectionDocs.js +58 -0
  533. package/components/section/SectionDocs.js.map +1 -0
  534. package/components/section/style/dnb-section.css +12 -0
  535. package/components/section/style/dnb-section.min.css +3 -3
  536. package/components/section/style/dnb-section.scss +22 -0
  537. package/core/jest/jestSetupScreenshots.css +11 -1
  538. package/elements/lib.d.ts +10 -1
  539. package/elements/span/Span.d.ts +13 -4
  540. package/elements/span/Span.js +3 -3
  541. package/elements/span/Span.js.map +1 -1
  542. package/elements/span/SpanDocs.d.ts +2 -0
  543. package/elements/span/SpanDocs.js +6 -0
  544. package/elements/span/SpanDocs.js.map +1 -0
  545. package/elements/typography/Ingress.js +1 -1
  546. package/elements/typography/Ingress.js.map +1 -1
  547. package/elements/typography/P.d.ts +10 -16
  548. package/elements/typography/P.js +52 -24
  549. package/elements/typography/P.js.map +1 -1
  550. package/elements/typography/PDocs.js +12 -23
  551. package/elements/typography/PDocs.js.map +1 -1
  552. package/elements/typography/Typography.d.ts +55 -0
  553. package/elements/typography/Typography.js +28 -0
  554. package/elements/typography/Typography.js.map +1 -0
  555. package/elements/typography/TypographyDocs.d.ts +2 -0
  556. package/elements/typography/TypographyDocs.js +48 -0
  557. package/elements/typography/TypographyDocs.js.map +1 -0
  558. package/elements/typography/style/_dnb-t.scss +93 -0
  559. package/elements/typography/style/dnb-typography.scss +2 -1
  560. package/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +0 -1
  561. package/elements/typography/style/typography-mixins.scss +25 -15
  562. package/es/components/autocomplete/Autocomplete.js.map +1 -1
  563. package/es/components/autocomplete/AutocompleteDocs.js +1 -1
  564. package/es/components/autocomplete/AutocompleteDocs.js.map +1 -1
  565. package/es/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.css +2 -2
  566. package/es/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.min.css +1 -1
  567. package/es/components/autocomplete/style/themes/dnb-autocomplete-theme-ui.scss +2 -2
  568. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.css +2 -2
  569. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.min.css +1 -1
  570. package/es/components/avatar/style/themes/dnb-avatar-theme-sbanken.scss +2 -2
  571. package/es/components/card/Card.d.ts +2 -1
  572. package/es/components/card/Card.js +3 -1
  573. package/es/components/card/Card.js.map +1 -1
  574. package/es/components/card/CardDocs.js +5 -0
  575. package/es/components/card/CardDocs.js.map +1 -1
  576. package/es/components/card/style/dnb-card.css +17 -10
  577. package/es/components/card/style/dnb-card.min.css +1 -1
  578. package/es/components/card/style/dnb-card.scss +26 -7
  579. package/es/components/country-flag/style/dnb-country-flag-icons.css +280 -272
  580. package/es/components/country-flag/style/dnb-country-flag-icons.min.css +1 -1
  581. package/es/components/country-flag/style/dnb-country-flag-icons.scss +280 -272
  582. package/es/components/dropdown/Dropdown.js.map +1 -1
  583. package/es/components/help-button/HelpButtonInline.d.ts +3 -0
  584. package/es/components/help-button/HelpButtonInline.js +8 -4
  585. package/es/components/help-button/HelpButtonInline.js.map +1 -1
  586. package/es/components/help-button/style/dnb-help-button-inline.css +6 -5
  587. package/es/components/help-button/style/dnb-help-button-inline.min.css +1 -1
  588. package/es/components/help-button/style/dnb-help-button-inline.scss +6 -11
  589. package/es/components/help-button/style/dnb-help-button.css +6 -5
  590. package/es/components/help-button/style/dnb-help-button.min.css +1 -1
  591. package/es/components/icon/Icon.js +5 -0
  592. package/es/components/icon/Icon.js.map +1 -1
  593. package/es/components/modal/parts/ModalHeader.d.ts +2 -1
  594. package/es/components/modal/parts/ModalHeader.js.map +1 -1
  595. package/es/components/section/Section.d.ts +5 -0
  596. package/es/components/section/Section.js +4 -3
  597. package/es/components/section/Section.js.map +1 -1
  598. package/es/components/section/SectionDocs.d.ts +2 -0
  599. package/es/components/section/SectionDocs.js +58 -0
  600. package/es/components/section/SectionDocs.js.map +1 -0
  601. package/es/components/section/style/dnb-section.css +12 -0
  602. package/es/components/section/style/dnb-section.min.css +3 -3
  603. package/es/components/section/style/dnb-section.scss +22 -0
  604. package/es/core/jest/jestSetupScreenshots.css +11 -1
  605. package/es/elements/lib.d.ts +10 -1
  606. package/es/elements/span/Span.d.ts +13 -4
  607. package/es/elements/span/Span.js +3 -3
  608. package/es/elements/span/Span.js.map +1 -1
  609. package/es/elements/span/SpanDocs.d.ts +2 -0
  610. package/es/elements/span/SpanDocs.js +6 -0
  611. package/es/elements/span/SpanDocs.js.map +1 -0
  612. package/es/elements/typography/Ingress.js +1 -1
  613. package/es/elements/typography/Ingress.js.map +1 -1
  614. package/es/elements/typography/P.d.ts +10 -16
  615. package/es/elements/typography/P.js +52 -24
  616. package/es/elements/typography/P.js.map +1 -1
  617. package/es/elements/typography/PDocs.js +12 -23
  618. package/es/elements/typography/PDocs.js.map +1 -1
  619. package/es/elements/typography/Typography.d.ts +55 -0
  620. package/es/elements/typography/Typography.js +28 -0
  621. package/es/elements/typography/Typography.js.map +1 -0
  622. package/es/elements/typography/TypographyDocs.d.ts +2 -0
  623. package/es/elements/typography/TypographyDocs.js +48 -0
  624. package/es/elements/typography/TypographyDocs.js.map +1 -0
  625. package/es/elements/typography/style/_dnb-t.scss +93 -0
  626. package/es/elements/typography/style/dnb-typography.scss +2 -1
  627. package/es/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +0 -1
  628. package/es/elements/typography/style/typography-mixins.scss +25 -15
  629. package/es/extensions/forms/DataContext/Provider/Provider.js +1 -1
  630. package/es/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  631. package/es/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +2 -1
  632. package/es/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  633. package/es/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +3 -2
  634. package/es/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  635. package/es/extensions/forms/Field/Option/Option.js +1 -1
  636. package/es/extensions/forms/Field/Option/Option.js.map +1 -1
  637. package/es/extensions/forms/Field/Option/OptionDocs.js +9 -4
  638. package/es/extensions/forms/Field/Option/OptionDocs.js.map +1 -1
  639. package/es/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +2 -1
  640. package/es/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  641. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js +2 -1
  642. package/es/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  643. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +9 -11
  644. package/es/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  645. package/es/extensions/forms/Field/Provider/useFieldProvider.d.ts +1 -0
  646. package/es/extensions/forms/Field/Selection/Selection.d.ts +12 -2
  647. package/es/extensions/forms/Field/Selection/Selection.js +9 -5
  648. package/es/extensions/forms/Field/Selection/Selection.js.map +1 -1
  649. package/es/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  650. package/es/extensions/forms/Field/Upload/Upload.js +16 -8
  651. package/es/extensions/forms/Field/Upload/Upload.js.map +1 -1
  652. package/es/extensions/forms/Field/Upload/UploadDocs.js +7 -1
  653. package/es/extensions/forms/Field/Upload/UploadDocs.js.map +1 -1
  654. package/es/extensions/forms/FieldBlock/FieldBlock.js +15 -6
  655. package/es/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  656. package/es/extensions/forms/FieldBlock/FieldBlockContext.d.ts +3 -2
  657. package/es/extensions/forms/FieldBlock/FieldBlockContext.js.map +1 -1
  658. package/es/extensions/forms/FieldBlock/style/dnb-field-block.css +16 -6
  659. package/es/extensions/forms/FieldBlock/style/dnb-field-block.min.css +1 -1
  660. package/es/extensions/forms/FieldBlock/style/dnb-field-block.scss +32 -20
  661. package/es/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.css +4 -6
  662. package/es/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.min.css +1 -1
  663. package/es/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.scss +17 -9
  664. package/es/extensions/forms/Form/Card/Card.d.ts +6 -0
  665. package/es/extensions/forms/Form/Card/Card.js +12 -0
  666. package/es/extensions/forms/Form/Card/Card.js.map +1 -0
  667. package/es/extensions/forms/Form/Card/CardDocs.d.ts +2 -0
  668. package/es/extensions/forms/Form/Card/CardDocs.js +18 -0
  669. package/es/extensions/forms/Form/Card/CardDocs.js.map +1 -0
  670. package/es/extensions/forms/Form/Card/index.d.ts +2 -0
  671. package/es/extensions/forms/Form/Card/index.js +3 -0
  672. package/es/extensions/forms/Form/Card/index.js.map +1 -0
  673. package/es/extensions/forms/Form/index.d.ts +1 -0
  674. package/es/extensions/forms/Form/index.js +1 -0
  675. package/es/extensions/forms/Form/index.js.map +1 -1
  676. package/es/extensions/forms/Iterate/Array/ArrayDocs.js +1 -1
  677. package/es/extensions/forms/Iterate/Array/ArrayDocs.js.map +1 -1
  678. package/es/extensions/forms/Iterate/Array/types.d.ts +1 -1
  679. package/es/extensions/forms/Iterate/Array/types.js.map +1 -1
  680. package/es/extensions/forms/Value/Provider/useValueProvider.d.ts +1 -0
  681. package/es/extensions/forms/Value/SummaryList/SummaryList.d.ts +1 -1
  682. package/es/extensions/forms/Value/SummaryList/SummaryList.js.map +1 -1
  683. package/es/extensions/forms/Value/ValueDocs.js +5 -0
  684. package/es/extensions/forms/Value/ValueDocs.js.map +1 -1
  685. package/es/extensions/forms/ValueBlock/ValueBlock.js +4 -2
  686. package/es/extensions/forms/ValueBlock/ValueBlock.js.map +1 -1
  687. package/es/extensions/forms/Wizard/style/dnb-wizard-layout.css +2 -2
  688. package/es/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -1
  689. package/es/extensions/forms/Wizard/style/dnb-wizard-layout.scss +1 -1
  690. package/es/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js +2 -7
  691. package/es/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js.map +1 -1
  692. package/es/extensions/forms/hooks/DataValueWritePropsDocs.js +1 -1
  693. package/es/extensions/forms/hooks/DataValueWritePropsDocs.js.map +1 -1
  694. package/es/extensions/forms/hooks/useFieldProps.js +50 -36
  695. package/es/extensions/forms/hooks/useFieldProps.js.map +1 -1
  696. package/es/extensions/forms/style/dnb-forms.css +22 -14
  697. package/es/extensions/forms/style/dnb-forms.min.css +1 -1
  698. package/es/extensions/forms/types.d.ts +4 -0
  699. package/es/extensions/forms/types.js.map +1 -1
  700. package/es/extensions/payment-card/style/dnb-payment-card.css +1 -1
  701. package/es/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  702. package/es/fragments/drawer-list/DrawerList.d.ts +22 -21
  703. package/es/fragments/drawer-list/DrawerList.js +14 -5
  704. package/es/fragments/drawer-list/DrawerList.js.map +1 -1
  705. package/es/fragments/drawer-list/DrawerListDocs.d.ts +1 -0
  706. package/es/fragments/drawer-list/DrawerListDocs.js +37 -5
  707. package/es/fragments/drawer-list/DrawerListDocs.js.map +1 -1
  708. package/es/fragments/drawer-list/DrawerListHelpers.js +13 -6
  709. package/es/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
  710. package/es/fragments/drawer-list/DrawerListProvider.js +3 -0
  711. package/es/fragments/drawer-list/DrawerListProvider.js.map +1 -1
  712. package/es/fragments/drawer-list/style/dnb-drawer-list.scss +11 -0
  713. package/es/fragments/drawer-list/style/themes/dnb-drawer-list-theme-sbanken.scss +26 -19
  714. package/es/shared/Eufemia.d.ts +1 -1
  715. package/es/shared/Eufemia.js +2 -2
  716. package/es/shared/Eufemia.js.map +1 -1
  717. package/es/shared/VisibilityByTheme.d.ts +5 -2
  718. package/es/shared/VisibilityByTheme.js +12 -0
  719. package/es/shared/VisibilityByTheme.js.map +1 -1
  720. package/es/style/core/scopes.scss +1 -1
  721. package/es/style/dnb-ui-basis.css +1 -1
  722. package/es/style/dnb-ui-basis.min.css +1 -1
  723. package/es/style/dnb-ui-body.css +1 -1
  724. package/es/style/dnb-ui-body.min.css +1 -1
  725. package/es/style/dnb-ui-components.css +352 -306
  726. package/es/style/dnb-ui-components.min.css +6 -4
  727. package/es/style/dnb-ui-core.css +1 -1
  728. package/es/style/dnb-ui-core.min.css +1 -1
  729. package/es/style/dnb-ui-elements.css +91 -6
  730. package/es/style/dnb-ui-elements.min.css +1 -1
  731. package/es/style/dnb-ui-extensions.css +23 -15
  732. package/es/style/dnb-ui-extensions.min.css +1 -1
  733. package/es/style/dnb-ui-forms.css +22 -14
  734. package/es/style/dnb-ui-forms.min.css +1 -1
  735. package/es/style/dnb-ui-fragments.css +9 -0
  736. package/es/style/dnb-ui-fragments.min.css +3 -1
  737. package/es/style/themes/theme-eiendom/eiendom-theme-basis.css +92 -6
  738. package/es/style/themes/theme-eiendom/eiendom-theme-basis.min.css +1 -1
  739. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +376 -322
  740. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +8 -6
  741. package/es/style/themes/theme-eiendom/eiendom-theme-elements.css +91 -6
  742. package/es/style/themes/theme-eiendom/eiendom-theme-elements.min.css +1 -1
  743. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.css +23 -15
  744. package/es/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  745. package/es/style/themes/theme-eiendom/eiendom-theme-forms.css +22 -14
  746. package/es/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  747. package/es/style/themes/theme-eiendom/properties.d.ts +2 -1
  748. package/es/style/themes/theme-eiendom/properties.js +2 -1
  749. package/es/style/themes/theme-eiendom/properties.js.map +1 -1
  750. package/es/style/themes/theme-sbanken/fonts.scss +7 -3
  751. package/es/style/themes/theme-sbanken/properties.d.ts +2 -1
  752. package/es/style/themes/theme-sbanken/properties.js +2 -1
  753. package/es/style/themes/theme-sbanken/properties.js.map +1 -1
  754. package/es/style/themes/theme-sbanken/properties.scss +1 -1
  755. package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +101 -10
  756. package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +2 -2
  757. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +396 -339
  758. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +9 -7
  759. package/es/style/themes/theme-sbanken/sbanken-theme-elements.css +91 -7
  760. package/es/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  761. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.css +23 -15
  762. package/es/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  763. package/es/style/themes/theme-sbanken/sbanken-theme-forms.css +22 -14
  764. package/es/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  765. package/es/style/themes/theme-sbanken/theme-mapping.scss +1 -0
  766. package/es/style/themes/theme-ui/properties.d.ts +2 -1
  767. package/es/style/themes/theme-ui/properties.js +2 -1
  768. package/es/style/themes/theme-ui/properties.js.map +1 -1
  769. package/es/style/themes/theme-ui/properties.scss +1 -0
  770. package/es/style/themes/theme-ui/ui-theme-basis.css +92 -6
  771. package/es/style/themes/theme-ui/ui-theme-basis.min.css +1 -1
  772. package/es/style/themes/theme-ui/ui-theme-components.css +376 -322
  773. package/es/style/themes/theme-ui/ui-theme-components.min.css +8 -6
  774. package/es/style/themes/theme-ui/ui-theme-elements.css +91 -6
  775. package/es/style/themes/theme-ui/ui-theme-elements.min.css +1 -1
  776. package/es/style/themes/theme-ui/ui-theme-extensions.css +23 -15
  777. package/es/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  778. package/es/style/themes/theme-ui/ui-theme-forms.css +22 -14
  779. package/es/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  780. package/es/style/themes/theme-ui/ui-theme-properties.css +1 -0
  781. package/es/style/themes/theme-ui/ui-theme-properties.min.css +1 -1
  782. package/es/style/themes/theme-ui/ui-theme-tags.css +9 -5
  783. package/es/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  784. package/esm/dnb-ui-basis.min.mjs +1 -1
  785. package/esm/dnb-ui-components.min.mjs +1 -1
  786. package/esm/dnb-ui-elements.min.mjs +1 -1
  787. package/esm/dnb-ui-extensions.min.mjs +3 -3
  788. package/esm/dnb-ui-lib.min.mjs +1 -1
  789. package/extensions/forms/DataContext/Provider/Provider.js +1 -1
  790. package/extensions/forms/DataContext/Provider/Provider.js.map +1 -1
  791. package/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js +2 -1
  792. package/extensions/forms/Field/BankAccountNumber/BankAccountNumber.js.map +1 -1
  793. package/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js +3 -2
  794. package/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumber.js.map +1 -1
  795. package/extensions/forms/Field/Option/Option.js +1 -1
  796. package/extensions/forms/Field/Option/Option.js.map +1 -1
  797. package/extensions/forms/Field/Option/OptionDocs.js +9 -4
  798. package/extensions/forms/Field/Option/OptionDocs.js.map +1 -1
  799. package/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js +2 -1
  800. package/extensions/forms/Field/OrganizationNumber/OrganizationNumber.js.map +1 -1
  801. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js +2 -1
  802. package/extensions/forms/Field/PhoneNumber/PhoneNumber.js.map +1 -1
  803. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js +9 -11
  804. package/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCity.js.map +1 -1
  805. package/extensions/forms/Field/Provider/useFieldProvider.d.ts +1 -0
  806. package/extensions/forms/Field/Selection/Selection.d.ts +12 -2
  807. package/extensions/forms/Field/Selection/Selection.js +9 -5
  808. package/extensions/forms/Field/Selection/Selection.js.map +1 -1
  809. package/extensions/forms/Field/Upload/Upload.d.ts +1 -1
  810. package/extensions/forms/Field/Upload/Upload.js +17 -8
  811. package/extensions/forms/Field/Upload/Upload.js.map +1 -1
  812. package/extensions/forms/Field/Upload/UploadDocs.js +7 -1
  813. package/extensions/forms/Field/Upload/UploadDocs.js.map +1 -1
  814. package/extensions/forms/FieldBlock/FieldBlock.js +15 -6
  815. package/extensions/forms/FieldBlock/FieldBlock.js.map +1 -1
  816. package/extensions/forms/FieldBlock/FieldBlockContext.d.ts +3 -2
  817. package/extensions/forms/FieldBlock/FieldBlockContext.js.map +1 -1
  818. package/extensions/forms/FieldBlock/style/dnb-field-block.css +16 -6
  819. package/extensions/forms/FieldBlock/style/dnb-field-block.min.css +1 -1
  820. package/extensions/forms/FieldBlock/style/dnb-field-block.scss +32 -20
  821. package/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.css +4 -6
  822. package/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.min.css +1 -1
  823. package/extensions/forms/Form/ButtonRow/style/dnb-form-button-row.scss +17 -9
  824. package/extensions/forms/Form/Card/Card.d.ts +6 -0
  825. package/extensions/forms/Form/Card/Card.js +12 -0
  826. package/extensions/forms/Form/Card/Card.js.map +1 -0
  827. package/extensions/forms/Form/Card/CardDocs.d.ts +2 -0
  828. package/extensions/forms/Form/Card/CardDocs.js +18 -0
  829. package/extensions/forms/Form/Card/CardDocs.js.map +1 -0
  830. package/extensions/forms/Form/Card/index.d.ts +2 -0
  831. package/extensions/forms/Form/Card/index.js +3 -0
  832. package/extensions/forms/Form/Card/index.js.map +1 -0
  833. package/extensions/forms/Form/index.d.ts +1 -0
  834. package/extensions/forms/Form/index.js +1 -0
  835. package/extensions/forms/Form/index.js.map +1 -1
  836. package/extensions/forms/Iterate/Array/ArrayDocs.js +1 -1
  837. package/extensions/forms/Iterate/Array/ArrayDocs.js.map +1 -1
  838. package/extensions/forms/Iterate/Array/types.d.ts +1 -1
  839. package/extensions/forms/Iterate/Array/types.js.map +1 -1
  840. package/extensions/forms/Value/Provider/useValueProvider.d.ts +1 -0
  841. package/extensions/forms/Value/SummaryList/SummaryList.d.ts +1 -1
  842. package/extensions/forms/Value/SummaryList/SummaryList.js.map +1 -1
  843. package/extensions/forms/Value/ValueDocs.js +5 -0
  844. package/extensions/forms/Value/ValueDocs.js.map +1 -1
  845. package/extensions/forms/ValueBlock/ValueBlock.js +4 -2
  846. package/extensions/forms/ValueBlock/ValueBlock.js.map +1 -1
  847. package/extensions/forms/Wizard/style/dnb-wizard-layout.css +2 -2
  848. package/extensions/forms/Wizard/style/dnb-wizard-layout.min.css +1 -1
  849. package/extensions/forms/Wizard/style/dnb-wizard-layout.scss +1 -1
  850. package/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js +2 -7
  851. package/extensions/forms/blocks/ChildrenWithAge/ChildrenWithAge.js.map +1 -1
  852. package/extensions/forms/hooks/DataValueWritePropsDocs.js +1 -1
  853. package/extensions/forms/hooks/DataValueWritePropsDocs.js.map +1 -1
  854. package/extensions/forms/hooks/useFieldProps.js +50 -36
  855. package/extensions/forms/hooks/useFieldProps.js.map +1 -1
  856. package/extensions/forms/style/dnb-forms.css +22 -14
  857. package/extensions/forms/style/dnb-forms.min.css +1 -1
  858. package/extensions/forms/types.d.ts +4 -0
  859. package/extensions/forms/types.js.map +1 -1
  860. package/extensions/payment-card/style/dnb-payment-card.css +1 -1
  861. package/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  862. package/fragments/drawer-list/DrawerList.d.ts +22 -21
  863. package/fragments/drawer-list/DrawerList.js +14 -5
  864. package/fragments/drawer-list/DrawerList.js.map +1 -1
  865. package/fragments/drawer-list/DrawerListDocs.d.ts +1 -0
  866. package/fragments/drawer-list/DrawerListDocs.js +37 -5
  867. package/fragments/drawer-list/DrawerListDocs.js.map +1 -1
  868. package/fragments/drawer-list/DrawerListHelpers.js +13 -6
  869. package/fragments/drawer-list/DrawerListHelpers.js.map +1 -1
  870. package/fragments/drawer-list/DrawerListProvider.js +3 -0
  871. package/fragments/drawer-list/DrawerListProvider.js.map +1 -1
  872. package/fragments/drawer-list/style/dnb-drawer-list.scss +11 -0
  873. package/fragments/drawer-list/style/themes/dnb-drawer-list-theme-sbanken.scss +26 -19
  874. package/package.json +1 -2
  875. package/shared/Eufemia.d.ts +1 -1
  876. package/shared/Eufemia.js +2 -2
  877. package/shared/Eufemia.js.map +1 -1
  878. package/shared/VisibilityByTheme.d.ts +5 -2
  879. package/shared/VisibilityByTheme.js +12 -0
  880. package/shared/VisibilityByTheme.js.map +1 -1
  881. package/style/core/scopes.scss +1 -1
  882. package/style/dnb-ui-basis.css +1 -1
  883. package/style/dnb-ui-basis.min.css +1 -1
  884. package/style/dnb-ui-body.css +1 -1
  885. package/style/dnb-ui-body.min.css +1 -1
  886. package/style/dnb-ui-components.css +352 -306
  887. package/style/dnb-ui-components.min.css +6 -4
  888. package/style/dnb-ui-core.css +1 -1
  889. package/style/dnb-ui-core.min.css +1 -1
  890. package/style/dnb-ui-elements.css +91 -6
  891. package/style/dnb-ui-elements.min.css +1 -1
  892. package/style/dnb-ui-extensions.css +23 -15
  893. package/style/dnb-ui-extensions.min.css +1 -1
  894. package/style/dnb-ui-forms.css +22 -14
  895. package/style/dnb-ui-forms.min.css +1 -1
  896. package/style/dnb-ui-fragments.css +9 -0
  897. package/style/dnb-ui-fragments.min.css +3 -1
  898. package/style/themes/theme-eiendom/eiendom-theme-basis.css +92 -6
  899. package/style/themes/theme-eiendom/eiendom-theme-basis.min.css +1 -1
  900. package/style/themes/theme-eiendom/eiendom-theme-components.css +376 -322
  901. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +8 -6
  902. package/style/themes/theme-eiendom/eiendom-theme-elements.css +91 -6
  903. package/style/themes/theme-eiendom/eiendom-theme-elements.min.css +1 -1
  904. package/style/themes/theme-eiendom/eiendom-theme-extensions.css +23 -15
  905. package/style/themes/theme-eiendom/eiendom-theme-extensions.min.css +1 -1
  906. package/style/themes/theme-eiendom/eiendom-theme-forms.css +22 -14
  907. package/style/themes/theme-eiendom/eiendom-theme-forms.min.css +1 -1
  908. package/style/themes/theme-eiendom/properties.d.ts +2 -1
  909. package/style/themes/theme-eiendom/properties.js +2 -1
  910. package/style/themes/theme-eiendom/properties.js.map +1 -1
  911. package/style/themes/theme-sbanken/fonts.scss +7 -3
  912. package/style/themes/theme-sbanken/properties.d.ts +2 -1
  913. package/style/themes/theme-sbanken/properties.js +2 -1
  914. package/style/themes/theme-sbanken/properties.js.map +1 -1
  915. package/style/themes/theme-sbanken/properties.scss +1 -1
  916. package/style/themes/theme-sbanken/sbanken-theme-basis.css +101 -10
  917. package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +2 -2
  918. package/style/themes/theme-sbanken/sbanken-theme-components.css +396 -339
  919. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +9 -7
  920. package/style/themes/theme-sbanken/sbanken-theme-elements.css +91 -7
  921. package/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  922. package/style/themes/theme-sbanken/sbanken-theme-extensions.css +23 -15
  923. package/style/themes/theme-sbanken/sbanken-theme-extensions.min.css +1 -1
  924. package/style/themes/theme-sbanken/sbanken-theme-forms.css +22 -14
  925. package/style/themes/theme-sbanken/sbanken-theme-forms.min.css +1 -1
  926. package/style/themes/theme-sbanken/theme-mapping.scss +1 -0
  927. package/style/themes/theme-ui/properties.d.ts +2 -1
  928. package/style/themes/theme-ui/properties.js +2 -1
  929. package/style/themes/theme-ui/properties.js.map +1 -1
  930. package/style/themes/theme-ui/properties.scss +1 -0
  931. package/style/themes/theme-ui/ui-theme-basis.css +92 -6
  932. package/style/themes/theme-ui/ui-theme-basis.min.css +1 -1
  933. package/style/themes/theme-ui/ui-theme-components.css +376 -322
  934. package/style/themes/theme-ui/ui-theme-components.min.css +8 -6
  935. package/style/themes/theme-ui/ui-theme-elements.css +91 -6
  936. package/style/themes/theme-ui/ui-theme-elements.min.css +1 -1
  937. package/style/themes/theme-ui/ui-theme-extensions.css +23 -15
  938. package/style/themes/theme-ui/ui-theme-extensions.min.css +1 -1
  939. package/style/themes/theme-ui/ui-theme-forms.css +22 -14
  940. package/style/themes/theme-ui/ui-theme-forms.min.css +1 -1
  941. package/style/themes/theme-ui/ui-theme-properties.css +1 -0
  942. package/style/themes/theme-ui/ui-theme-properties.min.css +1 -1
  943. package/style/themes/theme-ui/ui-theme-tags.css +9 -5
  944. package/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  945. package/umd/dnb-ui-basis.min.js +1 -1
  946. package/umd/dnb-ui-components.min.js +1 -1
  947. package/umd/dnb-ui-elements.min.js +1 -1
  948. package/umd/dnb-ui-extensions.min.js +1 -1
  949. package/umd/dnb-ui-lib.min.js +1 -1
@@ -267,7 +267,7 @@ export const AutocompleteEvents = {
267
267
  status: 'optional'
268
268
  },
269
269
  on_select: {
270
- 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 [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The "active_item" property is the currently selected item by keyboard navigation',
270
+ doc: 'Will be called once the users focuses or selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The "active_item" property is the currently selected item by keyboard navigation',
271
271
  type: 'function',
272
272
  status: 'optional'
273
273
  },
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteDocs.js","names":["autocompleteProperties","mode","doc","type","status","input_value","placeholder","title","disable_filter","disable_highlighting","disable_reorder","search_numbers","search_in_word_index","keep_value","keep_selection","keep_value_and_selection","prevent_selection","show_clear_button","icon","icon_size","icon_position","input_icon","triangle_position","size","drawer_class","show_submit_button","align_autocomplete","no_options","aria_live_options","show_all","indicator_label","show_options_sr","selected_sr","submit_button_title","submit_button_icon","submit_element","opened","open_on_focus","stretch","skip_portal","status_state","status_props","globalStatus","label","label_direction","label_sr_only","suffix","skeleton","input_ref","input_element","AutocompleteEvents","on_type","on_focus","on_blur","on_change","on_select","on_show","on_hide"],"sources":["../../../../src/components/autocomplete/AutocompleteDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const autocompleteProperties: 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 [DrawerList](/uilib/components/fragments/drawer-list). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n align_autocomplete: {\n doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n no_options: {\n doc: 'Text show in the \"no options\" item. Defaults to `Ingen alternativer`.',\n type: 'boolean',\n status: 'optional',\n },\n aria_live_options: {\n doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_all: {\n doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',\n type: 'boolean',\n status: 'optional',\n },\n indicator_label: {\n doc: 'Text show on indicator \"options\" item. Defaults to `Henter data ...`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_options_sr: {\n doc: 'Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.',\n type: 'string',\n status: 'optional',\n },\n selected_sr: {\n doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title on submit button. Defaults to `Vis alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n submit_button_icon: {\n doc: 'The icon used in the submit button. Defaults to `chevron_down`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n submit_element: {\n doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from '@dnb/eufemia/components/input/Input'`.',\n type: 'React.Node',\n status: 'optional',\n },\n opened: {\n doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',\n type: 'boolean',\n status: 'optional',\n },\n open_on_focus: {\n doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n 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 [these methods](/uilib/components/autocomplete/events#dynamically-change-data)',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The \"active_item\" property is the currently selected item by keyboard navigation',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,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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D,GAAG,EAAE,8NAA8N;IACnOC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDgD,QAAQ,EAAE;IACRlD,GAAG,EAAE,yNAAyN;IAC9NC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDiD,OAAO,EAAE;IACPnD,GAAG,EAAE,wNAAwN;IAC7NC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDkD,SAAS,EAAE;IACTpD,GAAG,EAAE,sOAAsO;IAC3OC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDmD,SAAS,EAAE;IACTrD,GAAG,EAAE,mWAAmW;IACxWC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDoD,OAAO,EAAE;IACPtD,GAAG,EAAE,sGAAsG;IAC3GC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV,CAAC;EACDqD,OAAO,EAAE;IACPvD,GAAG,EAAE,sIAAsI;IAC3IC,IAAI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC"}
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","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 [DrawerList](/uilib/components/fragments/drawer-list). Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n align_autocomplete: {\n doc: 'Use `right` to change the options alignment direction. Defaults to `left`.',\n type: 'string',\n status: 'optional',\n },\n no_options: {\n doc: 'Text show in the \"no options\" item. Defaults to `Ingen alternativer`.',\n type: 'boolean',\n status: 'optional',\n },\n aria_live_options: {\n doc: 'Text read out by screen readers. This way users with screen readers know how many options they got during typing. Defaults to `%s alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_all: {\n doc: 'Text that lets a user unravel all the available options. Defaults to `Vis alt`.',\n type: 'boolean',\n status: 'optional',\n },\n indicator_label: {\n doc: 'Text show on indicator \"options\" item. Defaults to `Henter data ...`.',\n type: 'React.Node',\n status: 'optional',\n },\n show_options_sr: {\n doc: 'Only for screen readers. Title of the button to show the suggestions / options. It is always present and when activating, it opens the DrawerList and sets the focus on it. Defaults to `Bla gjennom alternativer`.',\n type: 'string',\n status: 'optional',\n },\n selected_sr: {\n doc: 'Only for screen readers (VoiceOver). The label used to announce the selected item. Defaults to `Valgt:`.',\n type: 'string',\n status: 'optional',\n },\n submit_button_title: {\n doc: 'Title on submit button. Defaults to `Vis alternativer`.',\n type: 'React.Node',\n status: 'optional',\n },\n submit_button_icon: {\n doc: 'The icon used in the submit button. Defaults to `chevron_down`.',\n type: ['string', 'React.Element'],\n status: 'optional',\n },\n submit_element: {\n doc: 'Replace the dropdown / submit button with a custom React element. Defaults to the input SubmitButton `import { SubmitButton } from '@dnb/eufemia/components/input/Input'`.',\n type: 'React.Node',\n status: 'optional',\n },\n opened: {\n doc: 'If set to `true`, the Autocomplete will be rendered initially with a visible and accessible data list / options.',\n type: 'boolean',\n status: 'optional',\n },\n open_on_focus: {\n doc: 'Use `true` to auto open the list once the user is entering the input field with the keyboard.',\n type: 'boolean',\n status: 'optional',\n },\n stretch: {\n doc: 'If set to `true`, then the autocomplete will be 100% in available `width`.',\n type: 'boolean',\n status: 'optional',\n },\n skip_portal: {\n doc: 'Set to `true` to disable the React Portal behavior. Defaults to `false`.',\n type: 'string',\n status: 'optional',\n },\n status: {\n doc: 'Text with a status message. The style defaults to an error message. You can use `true` to only get the status color, without a message.',\n type: 'string',\n status: 'optional',\n },\n status_state: {\n doc: 'Defines the state of the status. Currently, there are two statuses `[error, info]`. Defaults to `error`.',\n type: 'string',\n status: 'optional',\n },\n status_props: {\n doc: 'Use an object to define additional FormStatus properties.',\n type: 'object',\n status: 'optional',\n },\n globalStatus: {\n doc: 'The [configuration](/uilib/components/global-status/properties/#configuration-object) used for the target [GlobalStatus](/uilib/components/global-status).',\n type: 'object',\n status: 'optional',\n },\n 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 [these methods](/uilib/components/autocomplete/events#dynamically-change-data)',\n type: 'function',\n status: 'optional',\n },\n on_focus: {\n doc: 'Will be called on user generated focus action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_blur: {\n doc: 'Will be called on user generated blur action. Returns an object with the input `value` inside `{ value, event, attributes }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_change: {\n doc: 'Will be called on state changes made by the user. Returns an object with the new selected `data` item `{ data, event, attributes, value }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data).',\n type: 'function',\n status: 'optional',\n },\n on_select: {\n doc: 'Will be called once the users focuses or selects an item by a click or keyboard navigation. Returns an object with the new selected `data` item `{ data, event, attributes, value, active_item }` including [these methods](/uilib/components/autocomplete/events#dynamically-change-data). The \"active_item\" property is the currently selected item by keyboard navigation',\n type: 'function',\n status: 'optional',\n },\n on_show: {\n doc: 'Will be called once the user presses the autocomplete. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n on_hide: {\n doc: 'Will be called once the user presses the autocomplete again, or clicks somewhere else. Returns the data item `{ data, attributes }`.',\n type: 'function',\n status: 'optional',\n },\n}\n"],"mappings":"AAEA,OAAO,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,qHAAqH;IAC1HC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,eAAe,EAAE;IACfR,GAAG,EAAE,uFAAuF;IAC5FC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,cAAc,EAAE;IACdT,GAAG,EAAE,gKAAgK;IACrKC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDQ,oBAAoB,EAAE;IACpBV,GAAG,EAAE,2IAA2I;IAChJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDS,UAAU,EAAE;IACVX,GAAG,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AI,EAAE,UAAU;IAChBC,MAAM,EAAE;EACV;AACF,CAAC"}
@@ -36,14 +36,14 @@
36
36
  .dnb-autocomplete__root .dnb-drawer-list__option__item:nth-of-type(1) {
37
37
  font-weight: var(--font-weight-basis);
38
38
  }
39
- .dnb-autocomplete__root .dnb-drawer-list__option__item:nth-of-type(n + 2) {
39
+ .dnb-autocomplete__root .dnb-drawer-list__option:not([disabled]) .dnb-drawer-list__option__item:nth-of-type(n + 2) {
40
40
  color: var(--color-black-55);
41
41
  }
42
42
  .dnb-autocomplete__root .dnb-drawer-list__option__item--highlight {
43
43
  font-weight: var(--font-weight-bold);
44
44
  }
45
45
 
46
- .dnb-autocomplete__root .dnb-drawer-list__option--selected .dnb-drawer-list__option__item:nth-of-type(n + 2) {
46
+ .dnb-autocomplete__root .dnb-drawer-list__option--selected:not([disabled]) .dnb-drawer-list__option__item:nth-of-type(n + 2) {
47
47
  color: var(--color-white);
48
48
  }
49
49
 
@@ -1 +1 @@
1
- .dnb-autocomplete__show-all .dnb-drawer-list__option__inner{color:var(--color-sea-green)}.dnb-autocomplete--opened .dnb-input .dnb-input__shell .dnb-input__shell,.dnb-autocomplete:not(.dnb-autocomplete__status--error) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__shell{--border-color:var(--color-sea-green);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-autocomplete--opened .dnb-input .dnb-input__shell .dnb-input__submit-button__button,.dnb-autocomplete:not(.dnb-autocomplete__status--error) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__submit-button__button{background-color:var(--color-sea-green);border-radius:0;box-shadow:none;color:var(--color-white)}.dnb-autocomplete--show-indicator .dnb-autocomplete__input .dnb-input__icon{color:transparent}.dnb-autocomplete__input,.dnb-autocomplete__shell{border-radius:var(--autocomplete-border-radius)}.dnb-autocomplete__status--error:not(.dnb-autocomplete--opened) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__shell{--border-color:var(--color-fire-red);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-autocomplete__root .dnb-drawer-list__option__item:first-of-type{font-weight:var(--font-weight-basis)}.dnb-autocomplete__root .dnb-drawer-list__option__item:nth-of-type(n+2){color:var(--color-black-55)}.dnb-autocomplete__root .dnb-drawer-list__option__item--highlight{font-weight:var(--font-weight-bold)}.dnb-autocomplete__root .dnb-drawer-list__option--selected .dnb-anchor,.dnb-autocomplete__root .dnb-drawer-list__option--selected .dnb-drawer-list__option__item:nth-of-type(n+2){color:var(--color-white)}
1
+ .dnb-autocomplete__show-all .dnb-drawer-list__option__inner{color:var(--color-sea-green)}.dnb-autocomplete--opened .dnb-input .dnb-input__shell .dnb-input__shell,.dnb-autocomplete:not(.dnb-autocomplete__status--error) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__shell{--border-color:var(--color-sea-green);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-autocomplete--opened .dnb-input .dnb-input__shell .dnb-input__submit-button__button,.dnb-autocomplete:not(.dnb-autocomplete__status--error) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__submit-button__button{background-color:var(--color-sea-green);border-radius:0;box-shadow:none;color:var(--color-white)}.dnb-autocomplete--show-indicator .dnb-autocomplete__input .dnb-input__icon{color:transparent}.dnb-autocomplete__input,.dnb-autocomplete__shell{border-radius:var(--autocomplete-border-radius)}.dnb-autocomplete__status--error:not(.dnb-autocomplete--opened) .dnb-form-label:hover~.dnb-autocomplete__inner .dnb-input:not([data-input-state=disabled]) .dnb-input__shell{--border-color:var(--color-fire-red);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-autocomplete__root .dnb-drawer-list__option__item:first-of-type{font-weight:var(--font-weight-basis)}.dnb-autocomplete__root .dnb-drawer-list__option:not([disabled]) .dnb-drawer-list__option__item:nth-of-type(n+2){color:var(--color-black-55)}.dnb-autocomplete__root .dnb-drawer-list__option__item--highlight{font-weight:var(--font-weight-bold)}.dnb-autocomplete__root .dnb-drawer-list__option--selected .dnb-anchor,.dnb-autocomplete__root .dnb-drawer-list__option--selected:not([disabled]) .dnb-drawer-list__option__item:nth-of-type(n+2){color:var(--color-white)}
@@ -53,7 +53,7 @@
53
53
  font-weight: var(--font-weight-basis);
54
54
  }
55
55
 
56
- &__item:nth-of-type(n + 2) {
56
+ &:not([disabled]) .dnb-drawer-list__option__item:nth-of-type(n + 2) {
57
57
  color: var(--color-black-55);
58
58
  }
59
59
 
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .dnb-autocomplete__root
66
- .dnb-drawer-list__option--selected
66
+ .dnb-drawer-list__option--selected:not([disabled])
67
67
  .dnb-drawer-list__option__item:nth-of-type(n + 2) {
68
68
  color: var(--color-white);
69
69
  }
@@ -22,11 +22,11 @@
22
22
  }
23
23
  .dnb-avatar--size-large {
24
24
  font-weight: var(--sb-font-weight-basis);
25
- font-family: var(--sb-font-family-headings);
25
+ font-family: var(--font-family-heading);
26
26
  }
27
27
  .dnb-avatar--size-x-large {
28
28
  font-weight: var(--sb-font-weight-basis);
29
- font-family: var(--sb-font-family-headings);
29
+ font-family: var(--font-family-heading);
30
30
  }
31
31
  .dnb-avatar__group {
32
32
  --avatar-font-size-left--medium: var(--font-size-basis);
@@ -1 +1 @@
1
- .dnb-avatar{--avatar-font-size--large:var(--font-size-x-large);--avatar-font-size--x-large:var(--font-size-x-large);color:var(--sb-color-white)}.dnb-avatar--primary{background-color:var(--sb-color-purple-alternative)}.dnb-avatar--secondary{background-color:var(--sb-color-violet-light)}.dnb-avatar--tertiary{background-color:var(--sb-color-violet-light-2);color:var(--sb-color-purple-alternative)}.dnb-avatar--size-large,.dnb-avatar--size-x-large{font-family:var(--sb-font-family-headings);font-weight:var(--sb-font-weight-basis)}.dnb-avatar__group{--avatar-font-size-left--medium:var(--font-size-basis);--avatar-font-size-left--large:var(--sb-font-size-medium--plus);--avatar-font-size-left--x-large:var(--sb-font-size-medium--plus)}
1
+ .dnb-avatar{--avatar-font-size--large:var(--font-size-x-large);--avatar-font-size--x-large:var(--font-size-x-large);color:var(--sb-color-white)}.dnb-avatar--primary{background-color:var(--sb-color-purple-alternative)}.dnb-avatar--secondary{background-color:var(--sb-color-violet-light)}.dnb-avatar--tertiary{background-color:var(--sb-color-violet-light-2);color:var(--sb-color-purple-alternative)}.dnb-avatar--size-large,.dnb-avatar--size-x-large{font-family:var(--font-family-heading);font-weight:var(--sb-font-weight-basis)}.dnb-avatar__group{--avatar-font-size-left--medium:var(--font-size-basis);--avatar-font-size-left--large:var(--sb-font-size-medium--plus);--avatar-font-size-left--x-large:var(--sb-font-size-medium--plus)}
@@ -26,12 +26,12 @@
26
26
 
27
27
  &--size-large {
28
28
  font-weight: var(--sb-font-weight-basis);
29
- font-family: var(--sb-font-family-headings);
29
+ font-family: var(--font-family-heading);
30
30
  }
31
31
 
32
32
  &--size-x-large {
33
33
  font-weight: var(--sb-font-weight-basis);
34
- font-family: var(--sb-font-family-headings);
34
+ font-family: var(--font-family-heading);
35
35
  }
36
36
 
37
37
  &__group {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { SectionProps } from '../section/Section';
2
3
  import type { BasicProps as FlexContainerProps } from '../flex/Container';
3
4
  import type { BasicProps as FlexItemProps } from '../flex/Item';
4
5
  import type { SpaceProps } from '../Space';
@@ -15,7 +16,7 @@ export type Props = {
15
16
  * Define if the Card should get the same background color as the outline border
16
17
  */
17
18
  filled?: boolean;
18
- } & FlexContainerProps & FlexItemProps & {
19
+ } & FlexContainerProps & Pick<SectionProps, 'outset'> & FlexItemProps & {
19
20
  stack?: boolean;
20
21
  } & SpaceProps & Omit<React.HTMLProps<HTMLElement>, 'ref' | 'wrap' | 'size' | 'title'>;
21
22
  declare function Card(props: Props): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
5
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
- const _excluded = ["className", "stack", "direction", "gap", "spacing", "innerSpace", "alignSelf", "align", "divider", "rowGap", "responsive", "filled", "title", "children"];
6
+ const _excluded = ["className", "stack", "direction", "gap", "spacing", "innerSpace", "alignSelf", "align", "divider", "rowGap", "responsive", "filled", "outset", "title", "children"];
7
7
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
8
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
9
  import React, { useContext } from 'react';
@@ -29,6 +29,7 @@ function Card(props) {
29
29
  rowGap,
30
30
  responsive = !(nestedContext !== null && nestedContext !== void 0 && nestedContext.isNested),
31
31
  filled,
32
+ outset,
32
33
  title,
33
34
  children
34
35
  } = props,
@@ -57,6 +58,7 @@ function Card(props) {
57
58
  const params = SectionParams(_objectSpread(_objectSpread({
58
59
  className: classnames('dnb-card', className, responsive && 'dnb-card--responsive', filled && 'dnb-card--filled'),
59
60
  breakout: responsive ? trueWhenSmall : false,
61
+ outset: nestedContext !== null && nestedContext !== void 0 && nestedContext.isNested ? false : outset === true ? falseWhenSmall : outset,
60
62
  roundedCorner: responsive ? falseWhenSmall : true,
61
63
  outline: '--outline-card-color',
62
64
  innerSpace: innerSpace !== null && innerSpace !== void 0 ? innerSpace : {
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","names":["React","useContext","classnames","Flex","SectionParams","combineLabelledBy","CardContext","Space","useId","Card","props","nestedContext","className","stack","direction","gap","spacing","innerSpace","alignSelf","align","divider","rowGap","responsive","isNested","filled","title","children","rest","_objectWithoutProperties","_excluded","titleId","falseWhenSmall","small","medium","large","trueWhenSmall","basisSpace","top","right","bottom","left","smallSpace","_objectSpread","params","breakout","roundedCorner","outline","createElement","Item","_extends","element","Provider","value","Container","wrap","id","_supportsSpacingProps"],"sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import React, { useContext } from 'react'\nimport classnames from 'classnames'\nimport Flex from '../flex/Flex'\nimport { SectionParams, SectionProps } from '../section/Section'\nimport { combineLabelledBy } from '../../shared/component-helper'\nimport CardContext from './CardContext'\nimport Space from '../Space'\nimport useId from '../../shared/helpers/useId'\n\nimport type { BasicProps as FlexContainerProps } from '../flex/Container'\nimport type { BasicProps as FlexItemProps } from '../flex/Item'\nimport type { SpaceTypeMedia } from '../../shared/types'\nimport type { SpaceProps } from '../Space'\n\nexport type Props = {\n /**\n * Define a title that appears on top of the Card\n */\n title?: React.ReactNode\n\n /**\n * Define if the Card should behave responsive. Defaults to `true`\n */\n responsive?: boolean\n\n /**\n * Define if the Card should get the same background color as the outline border\n */\n filled?: boolean\n} & FlexContainerProps &\n FlexItemProps & {\n stack?: boolean\n } & SpaceProps &\n Omit<React.HTMLProps<HTMLElement>, 'ref' | 'wrap' | 'size' | 'title'>\n\nfunction Card(props: Props) {\n const nestedContext = useContext(CardContext)\n\n const {\n className,\n stack,\n direction,\n gap,\n spacing,\n innerSpace,\n alignSelf = 'stretch',\n align,\n divider = 'space',\n rowGap,\n responsive = !nestedContext?.isNested,\n filled,\n title,\n children,\n ...rest\n } = props\n\n const titleId = useId()\n const falseWhenSmall = { small: false, medium: true, large: true }\n const trueWhenSmall = { small: true, medium: false, large: false }\n const basisSpace = {\n top: 'medium',\n right: 'medium',\n bottom: 'large',\n left: 'medium',\n }\n const smallSpace = responsive\n ? {\n ...basisSpace,\n right: 0,\n left: 0,\n }\n : basisSpace\n\n const params = SectionParams({\n className: classnames(\n 'dnb-card',\n className,\n responsive && 'dnb-card--responsive',\n filled && 'dnb-card--filled'\n ),\n breakout: responsive ? trueWhenSmall : false,\n roundedCorner: responsive ? falseWhenSmall : true,\n outline: '--outline-card-color',\n innerSpace:\n innerSpace ??\n ({\n small: smallSpace,\n medium: basisSpace,\n large: basisSpace,\n } as SpaceTypeMedia),\n ...(rest as SectionProps),\n 'aria-labelledby': combineLabelledBy(rest, title && titleId),\n })\n\n return (\n <Flex.Item alignSelf={alignSelf} element=\"section\" {...params}>\n <CardContext.Provider value={{ isNested: true }}>\n <Flex.Container\n direction={direction ?? 'vertical'}\n divider={divider}\n alignSelf={alignSelf}\n align={stack ? 'stretch' : align}\n wrap={!stack}\n gap={stack ? 'medium' : (gap ?? spacing) || false}\n rowGap={rowGap || false}\n >\n {title && (\n <Space id={titleId} className=\"dnb-card__title\">\n {title}\n </Space>\n )}\n {children}\n </Flex.Container>\n </CardContext.Provider>\n </Flex.Item>\n )\n}\n\nCard._supportsSpacingProps = true\n\nexport default Card\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,cAAc;AAC/B,SAASC,aAAa,QAAsB,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,KAAK,MAAM,UAAU;AAC5B,OAAOC,KAAK,MAAM,4BAA4B;AA4B9C,SAASC,IAAIA,CAACC,KAAY,EAAE;EAC1B,MAAMC,aAAa,GAAGV,UAAU,CAACK,WAAW,CAAC;EAE7C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ACCe,KAAK,EAAES,UAAU;MACjBR,MAAM,EAAEG,UAAU;MAClBF,KAAK,EAAEE;IACT;EAAoB,GAClBT,IAAI;IACR,iBAAiB,EAAEtB,iBAAiB,CAACsB,IAAI,EAAEF,KAAK,IAAIK,OAAO;EAAC,EAC7D,CAAC;EAEF,OACE9B,KAAA,CAAA+C,aAAA,CAAC5C,IAAI,CAAC6C,IAAI,EAAAC,QAAA;IAAC/B,SAAS,EAAEA,SAAU;IAACgC,OAAO,EAAC;EAAS,GAAKP,MAAM,GAC3D3C,KAAA,CAAA+C,aAAA,CAACzC,WAAW,CAAC6C,QAAQ;IAACC,KAAK,EAAE;MAAE7B,QAAQ,EAAE;IAAK;EAAE,GAC9CvB,KAAA,CAAA+C,aAAA,CAAC5C,IAAI,CAACkD,SAAS;IACbvC,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,UAAW;IACnCM,OAAO,EAAEA,OAAQ;IACjBF,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEN,KAAK,GAAG,SAAS,GAAGM,KAAM;IACjCmC,IAAI,EAAE,CAACzC,KAAM;IACbE,GAAG,EAAEF,KAAK,GAAG,QAAQ,GAAG,CAACE,GAAG,aAAHA,GAAG,cAAHA,GAAG,GAAIC,OAAO,KAAK,KAAM;IAClDK,MAAM,EAAEA,MAAM,IAAI;EAAM,GAEvBI,KAAK,IACJzB,KAAA,CAAA+C,aAAA,CAACxC,KAAK;IAACgD,EAAE,EAAEzB,OAAQ;IAAClB,SAAS,EAAC;EAAiB,GAC5Ca,KACI,CACR,EACAC,QACa,CACI,CACb,CAAC;AAEhB;AAEAjB,IAAI,CAAC+C,qBAAqB,GAAG,IAAI;AAEjC,eAAe/C,IAAI"}
1
+ {"version":3,"file":"Card.js","names":["React","useContext","classnames","Flex","SectionParams","combineLabelledBy","CardContext","Space","useId","Card","props","nestedContext","className","stack","direction","gap","spacing","innerSpace","alignSelf","align","divider","rowGap","responsive","isNested","filled","outset","title","children","rest","_objectWithoutProperties","_excluded","titleId","falseWhenSmall","small","medium","large","trueWhenSmall","basisSpace","top","right","bottom","left","smallSpace","_objectSpread","params","breakout","roundedCorner","outline","createElement","Item","_extends","element","Provider","value","Container","wrap","id","_supportsSpacingProps"],"sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["import React, { useContext } from 'react'\nimport classnames from 'classnames'\nimport Flex from '../flex/Flex'\nimport { SectionParams, SectionProps } from '../section/Section'\nimport { combineLabelledBy } from '../../shared/component-helper'\nimport CardContext from './CardContext'\nimport Space from '../Space'\nimport useId from '../../shared/helpers/useId'\n\nimport type { BasicProps as FlexContainerProps } from '../flex/Container'\nimport type { BasicProps as FlexItemProps } from '../flex/Item'\nimport type { SpaceTypeMedia } from '../../shared/types'\nimport type { SpaceProps } from '../Space'\n\nexport type Props = {\n /**\n * Define a title that appears on top of the Card\n */\n title?: React.ReactNode\n\n /**\n * Define if the Card should behave responsive. Defaults to `true`\n */\n responsive?: boolean\n\n /**\n * Define if the Card should get the same background color as the outline border\n */\n filled?: boolean\n} & FlexContainerProps &\n Pick<SectionProps, 'outset'> &\n FlexItemProps & {\n stack?: boolean\n } & SpaceProps &\n Omit<React.HTMLProps<HTMLElement>, 'ref' | 'wrap' | 'size' | 'title'>\n\nfunction Card(props: Props) {\n const nestedContext = useContext(CardContext)\n\n const {\n className,\n stack,\n direction,\n gap,\n spacing,\n innerSpace,\n alignSelf = 'stretch',\n align,\n divider = 'space',\n rowGap,\n responsive = !nestedContext?.isNested,\n filled,\n outset,\n title,\n children,\n ...rest\n } = props\n\n const titleId = useId()\n const falseWhenSmall = { small: false, medium: true, large: true }\n const trueWhenSmall = { small: true, medium: false, large: false }\n const basisSpace = {\n top: 'medium',\n right: 'medium',\n bottom: 'large',\n left: 'medium',\n }\n const smallSpace = responsive\n ? {\n ...basisSpace,\n right: 0,\n left: 0,\n }\n : basisSpace\n\n const params = SectionParams({\n className: classnames(\n 'dnb-card',\n className,\n responsive && 'dnb-card--responsive',\n filled && 'dnb-card--filled'\n ),\n breakout: responsive ? trueWhenSmall : false,\n outset: nestedContext?.isNested\n ? false\n : outset === true\n ? falseWhenSmall\n : outset,\n roundedCorner: responsive ? falseWhenSmall : true,\n outline: '--outline-card-color',\n innerSpace:\n innerSpace ??\n ({\n small: smallSpace,\n medium: basisSpace,\n large: basisSpace,\n } as SpaceTypeMedia),\n ...(rest as SectionProps),\n 'aria-labelledby': combineLabelledBy(rest, title && titleId),\n })\n\n return (\n <Flex.Item alignSelf={alignSelf} element=\"section\" {...params}>\n <CardContext.Provider value={{ isNested: true }}>\n <Flex.Container\n direction={direction ?? 'vertical'}\n divider={divider}\n alignSelf={alignSelf}\n align={stack ? 'stretch' : align}\n wrap={!stack}\n gap={stack ? 'medium' : (gap ?? spacing) || false}\n rowGap={rowGap || false}\n >\n {title && (\n <Space id={titleId} className=\"dnb-card__title\">\n {title}\n </Space>\n )}\n {children}\n </Flex.Container>\n </CardContext.Provider>\n </Flex.Item>\n )\n}\n\nCard._supportsSpacingProps = true\n\nexport default Card\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,cAAc;AAC/B,SAASC,aAAa,QAAsB,oBAAoB;AAChE,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,KAAK,MAAM,UAAU;AAC5B,OAAOC,KAAK,MAAM,4BAA4B;AA6B9C,SAASC,IAAIA,CAACC,KAAY,EAAE;EAC1B,MAAMC,aAAa,GAAGV,UAAU,CAACK,WAAW,CAAC;EAE7C,MAAM;MACJM,SAAS;MACTC,KAAK;MACLC,SAAS;MACTC,GAAG;MACHC,OAAO;MACPC,UAAU;MACVC,SAAS,GAAG,SAAS;MACrBC,KAAK;MACLC,OAAO,GAAG,OAAO;MACjBC,MAAM;MACNC,UAAU,GAAG,EAACX,aAAa,aAAbA,aAAa,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KAAK,EAAEE;IACT;EAAoB,GAClBT,IAAI;IACR,iBAAiB,EAAEvB,iBAAiB,CAACuB,IAAI,EAAEF,KAAK,IAAIK,OAAO;EAAC,EAC7D,CAAC;EAEF,OACE/B,KAAA,CAAAgD,aAAA,CAAC7C,IAAI,CAAC8C,IAAI,EAAAC,QAAA;IAAChC,SAAS,EAAEA,SAAU;IAACiC,OAAO,EAAC;EAAS,GAAKP,MAAM,GAC3D5C,KAAA,CAAAgD,aAAA,CAAC1C,WAAW,CAAC8C,QAAQ;IAACC,KAAK,EAAE;MAAE9B,QAAQ,EAAE;IAAK;EAAE,GAC9CvB,KAAA,CAAAgD,aAAA,CAAC7C,IAAI,CAACmD,SAAS;IACbxC,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,UAAW;IACnCM,OAAO,EAAEA,OAAQ;IACjBF,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEN,KAAK,GAAG,SAAS,GAAGM,KAAM;IACjCoC,IAAI,EAAE,CAAC1C,KAAM;IACbE,GAAG,EAAEF,KAAK,GAAG,QAAQ,GAAG,CAACE,GAAG,aAAHA,GAAG,cAAHA,GAAG,GAAIC,OAAO,KAAK,KAAM;IAClDK,MAAM,EAAEA,MAAM,IAAI;EAAM,GAEvBK,KAAK,IACJ1B,KAAA,CAAAgD,aAAA,CAACzC,KAAK;IAACiD,EAAE,EAAEzB,OAAQ;IAACnB,SAAS,EAAC;EAAiB,GAC5Cc,KACI,CACR,EACAC,QACa,CACI,CACb,CAAC;AAEhB;AAEAlB,IAAI,CAACgD,qBAAqB,GAAG,IAAI;AAEjC,eAAehD,IAAI"}
@@ -1,4 +1,9 @@
1
1
  export const CardProperties = {
2
+ outset: {
3
+ doc: 'True to break out negatively on larger screens. Defaults to `false`.',
4
+ type: 'boolean',
5
+ status: 'optional'
6
+ },
2
7
  stack: {
3
8
  doc: 'True to stack the sub components with lines between. The `spacing` will default to `medium`.',
4
9
  type: 'boolean',
@@ -1 +1 @@
1
- {"version":3,"file":"CardDocs.js","names":["CardProperties","stack","doc","type","status","direction","alignSelf","title","responsive","filled","element","children"],"sources":["../../../../src/components/card/CardDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const CardProperties: PropertiesTableProps = {\n stack: {\n doc: 'True to stack the sub components with lines between. The `spacing` will default to `medium`.',\n type: 'boolean',\n status: 'optional',\n },\n direction: {\n doc: 'Defaults to `vertical`.',\n type: 'string',\n status: 'optional',\n },\n alignSelf: {\n doc: 'Defaults to `stretch`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'Define a title that appears on top of the Card.',\n type: 'React.Node',\n status: 'optional',\n },\n responsive: {\n doc: 'Define if the card should behave responsive. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n filled: {\n doc: 'Define if the Card should get the same background color as the outline border.',\n type: 'boolean',\n status: 'optional',\n },\n element: {\n doc: 'Define the type of element. Defaults to `section`.',\n type: 'React.Element',\n status: 'optional',\n },\n children: {\n doc: 'Contents.',\n type: 'React.Node',\n status: 'required',\n },\n '[Flex.Container](/uilib/layout/flex/container/properties)': {\n doc: 'Flex.Container properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Flex.Item](/uilib/layout/flex/item/properties)': {\n doc: 'Flex.Item 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"],"mappings":"AAEA,OAAO,MAAMA,cAAoC,GAAG;EAClDC,KAAK,EAAE;IACLC,GAAG,EAAE,8FAA8F;IACnGC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACTH,GAAG,EAAE,yBAAyB;IAC9BC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDE,SAAS,EAAE;IACTJ,GAAG,EAAE,wBAAwB;IAC7BC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,KAAK,EAAE;IACLL,GAAG,EAAE,iDAAiD;IACtDC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDI,UAAU,EAAE;IACVN,GAAG,EAAE,kEAAkE;IACvEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDK,MAAM,EAAE;IACNP,GAAG,EAAE,gFAAgF;IACrFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,OAAO,EAAE;IACPR,GAAG,EAAE,oDAAoD;IACzDC,IAAI,EAAE,eAAe;IACrBC,MAAM,EAAE;EACV,CAAC;EACDO,QAAQ,EAAE;IACRT,GAAG,EAAE,WAAW;IAChBC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACD,2DAA2D,EAAE;IAC3DF,GAAG,EAAE,4BAA4B;IACjCC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,iDAAiD,EAAE;IACjDF,GAAG,EAAE,uBAAuB;IAC5BC,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"}
1
+ {"version":3,"file":"CardDocs.js","names":["CardProperties","outset","doc","type","status","stack","direction","alignSelf","title","responsive","filled","element","children"],"sources":["../../../../src/components/card/CardDocs.ts"],"sourcesContent":["import { PropertiesTableProps } from '../../shared/types'\n\nexport const CardProperties: PropertiesTableProps = {\n outset: {\n doc: 'True to break out negatively on larger screens. Defaults to `false`.',\n type: 'boolean',\n status: 'optional',\n },\n stack: {\n doc: 'True to stack the sub components with lines between. The `spacing` will default to `medium`.',\n type: 'boolean',\n status: 'optional',\n },\n direction: {\n doc: 'Defaults to `vertical`.',\n type: 'string',\n status: 'optional',\n },\n alignSelf: {\n doc: 'Defaults to `stretch`.',\n type: 'string',\n status: 'optional',\n },\n title: {\n doc: 'Define a title that appears on top of the Card.',\n type: 'React.Node',\n status: 'optional',\n },\n responsive: {\n doc: 'Define if the card should behave responsive. Defaults to `true`.',\n type: 'boolean',\n status: 'optional',\n },\n filled: {\n doc: 'Define if the Card should get the same background color as the outline border.',\n type: 'boolean',\n status: 'optional',\n },\n element: {\n doc: 'Define the type of element. Defaults to `section`.',\n type: 'React.Element',\n status: 'optional',\n },\n children: {\n doc: 'Contents.',\n type: 'React.Node',\n status: 'required',\n },\n '[Flex.Container](/uilib/layout/flex/container/properties)': {\n doc: 'Flex.Container properties.',\n type: 'Various',\n status: 'optional',\n },\n '[Flex.Item](/uilib/layout/flex/item/properties)': {\n doc: 'Flex.Item 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"],"mappings":"AAEA,OAAO,MAAMA,cAAoC,GAAG;EAClDC,MAAM,EAAE;IACNC,GAAG,EAAE,sEAAsE;IAC3EC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLH,GAAG,EAAE,8FAA8F;IACnGC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDE,SAAS,EAAE;IACTJ,GAAG,EAAE,yBAAyB;IAC9BC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDG,SAAS,EAAE;IACTL,GAAG,EAAE,wBAAwB;IAC7BC,IAAI,EAAE,QAAQ;IACdC,MAAM,EAAE;EACV,CAAC;EACDI,KAAK,EAAE;IACLN,GAAG,EAAE,iDAAiD;IACtDC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACDK,UAAU,EAAE;IACVP,GAAG,EAAE,kEAAkE;IACvEC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDM,MAAM,EAAE;IACNR,GAAG,EAAE,gFAAgF;IACrFC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACDO,OAAO,EAAE;IACPT,GAAG,EAAE,oDAAoD;IACzDC,IAAI,EAAE,eAAe;IACrBC,MAAM,EAAE;EACV,CAAC;EACDQ,QAAQ,EAAE;IACRV,GAAG,EAAE,WAAW;IAChBC,IAAI,EAAE,YAAY;IAClBC,MAAM,EAAE;EACV,CAAC;EACD,2DAA2D,EAAE;IAC3DF,GAAG,EAAE,4BAA4B;IACjCC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE;EACV,CAAC;EACD,iDAAiD,EAAE;IACjDF,GAAG,EAAE,uBAAuB;IAC5BC,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"}
@@ -68,6 +68,7 @@
68
68
  .dnb-flex-container.dnb-flex-container--divider-space .dnb-card + .dnb-card--responsive::before {
69
69
  top: var(--outline-width);
70
70
  z-index: 0;
71
+ background-color: transparent;
71
72
  }
72
73
  }
73
74
  .dnb-card .dnb-flex-container:has(> .dnb-card__title + .dnb-scroll-view) {
@@ -83,21 +84,27 @@
83
84
  .dnb-card > .dnb-flex-container--align-stretch > .dnb-button {
84
85
  align-self: flex-start;
85
86
  }
86
- .dnb-card .dnb-card {
87
- --outline-width: 0.125rem;
87
+ .dnb-card[style*="--outset"].dnb-space[style]:not(.dnb-card) {
88
+ padding-left: calc(var(--padding-left) * (1 - var(--outset)));
89
+ padding-right: calc(var(--padding-right) * (1 - var(--outset)));
88
90
  }
89
-
90
- @media screen and (min-width: 40.00625em) {
91
- .dnb-card--auto-indent:has(+ .dnb-card,
92
- + * + .dnb-card,
93
- + * + * + .dnb-card,
94
- + .dnb-help-button__content + .dnb-section + .dnb-card):not([class*=space__left]) {
95
- margin-left: var(--spacing-medium);
96
- }
91
+ .dnb-card[style*="--outset"].dnb-card > .dnb-flex-container {
92
+ margin-left: calc(var(--padding-left, var(--spacing-medium)) * -1 * var(--outset));
93
+ margin-right: calc(var(--padding-right, var(--spacing-medium)) * -1 * var(--outset));
97
94
  }
95
+
98
96
  .dnb-card--auto-indent:has(+ .dnb-card,
99
97
  + * + .dnb-card,
100
98
  + * + * + .dnb-card,
101
99
  + .dnb-help-button__content + .dnb-section + .dnb-card):not([class*=space__bottom]) {
102
100
  margin-bottom: var(--spacing-small);
101
+ }
102
+
103
+ @media screen and (min-width: 40.00625em) {
104
+ .dnb-card--auto-indent:has(+ .dnb-card:not([style*="--outset"]),
105
+ + * + .dnb-card:not([style*="--outset"]),
106
+ + * + * + .dnb-card:not([style*="--outset"]),
107
+ + .dnb-help-button__content + .dnb-section + .dnb-card:not([style*="--outset"])):not([class*=space__left]) {
108
+ margin-left: var(--spacing-medium);
109
+ }
103
110
  }
@@ -1 +1 @@
1
- .dnb-card__heading{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium)}.dnb-card+.dnb-card__heading{margin-top:var(--spacing-small)}.dnb-card__title{font-size:var(--font-size-small);font-weight:var(--font-weight-medium);padding-bottom:1rem}.dnb-card:not([style*="--space-"]) .dnb-card__title{padding:1rem}.dnb-card.dnb-section{--outline-color:var(--card-outline-color);--outline-width:var(--card-outline-width);--background-color:var(--card-background-color);background-color:var(--background-color)}.dnb-card .dnb-section{z-index:1}@media screen and (min-width:40.00625em){.dnb-card{--nested-space-l:calc(var(--padding-left, 0px)*-1);--nested-space-r:calc(var(--padding-right, 0px)*-1)}.dnb-card .dnb-section:after{--left:var(--nested-space-l);--width:calc(100% - var(--nested-space-r)*2)}}.dnb-card--filled.dnb-card.dnb-section{--background-color:var(--outline-color)}@media screen and (max-width:40em){.dnb-card--responsive.dnb-section:before{--outline:99vw 0 0 0 var(--background-color),198vw 0 0 0 var(--background-color),297vw 0 0 0 var(--background-color),396vw 0 0 0 var(--background-color),0 var(--outline-width) 0 0 var(--outline-color),99vw var(--outline-width) 0 0 var(--outline-color),0 calc(var(--outline-width)*-1) 0 0 var(--outline-color),99vw calc(var(--outline-width)*-1) 0 0 var(--outline-color),198vw var(--outline-width) 0 0 var(--outline-color),198vw calc(var(--outline-width)*-1) 0 0 var(--outline-color);left:var(--left)}.dnb-card+.dnb-card--responsive:not([class*=space__top]){background:linear-gradient(to left,var(--background-color),var(--background-color)) no-repeat 0 var(--outline-width)}.dnb-card+.dnb-card--responsive:not([class*=space__top]):before{top:var(--outline-width)}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive{margin-top:0}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive:before{top:var(--outline-width);z-index:0}}.dnb-card .dnb-flex-container:has(>.dnb-card__title+.dnb-scroll-view){align-items:stretch;flex-wrap:nowrap}.dnb-card--filled .dnb-scroll-view{clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner))}.dnb-card>.dnb-flex-container>.dnb-space:has(>.dnb-scroll-view){width:100%}.dnb-card>.dnb-flex-container--align-stretch>.dnb-button{align-self:flex-start}.dnb-card .dnb-card{--outline-width:0.125rem}@media screen and (min-width:40.00625em){.dnb-card--auto-indent:has(+.dnb-card,+*+.dnb-card,+*+*+.dnb-card,+.dnb-help-button__content+.dnb-section+.dnb-card):not([class*=space__left]){margin-left:var(--spacing-medium)}}.dnb-card--auto-indent:has(+.dnb-card,+*+.dnb-card,+*+*+.dnb-card,+.dnb-help-button__content+.dnb-section+.dnb-card):not([class*=space__bottom]){margin-bottom:var(--spacing-small)}
1
+ .dnb-card__heading{font-size:var(--font-size-basis);font-weight:var(--font-weight-medium)}.dnb-card+.dnb-card__heading{margin-top:var(--spacing-small)}.dnb-card__title{font-size:var(--font-size-small);font-weight:var(--font-weight-medium);padding-bottom:1rem}.dnb-card:not([style*="--space-"]) .dnb-card__title{padding:1rem}.dnb-card.dnb-section{--outline-color:var(--card-outline-color);--outline-width:var(--card-outline-width);--background-color:var(--card-background-color);background-color:var(--background-color)}.dnb-card .dnb-section{z-index:1}@media screen and (min-width:40.00625em){.dnb-card{--nested-space-l:calc(var(--padding-left, 0px)*-1);--nested-space-r:calc(var(--padding-right, 0px)*-1)}.dnb-card .dnb-section:after{--left:var(--nested-space-l);--width:calc(100% - var(--nested-space-r)*2)}}.dnb-card--filled.dnb-card.dnb-section{--background-color:var(--outline-color)}@media screen and (max-width:40em){.dnb-card--responsive.dnb-section:before{--outline:99vw 0 0 0 var(--background-color),198vw 0 0 0 var(--background-color),297vw 0 0 0 var(--background-color),396vw 0 0 0 var(--background-color),0 var(--outline-width) 0 0 var(--outline-color),99vw var(--outline-width) 0 0 var(--outline-color),0 calc(var(--outline-width)*-1) 0 0 var(--outline-color),99vw calc(var(--outline-width)*-1) 0 0 var(--outline-color),198vw var(--outline-width) 0 0 var(--outline-color),198vw calc(var(--outline-width)*-1) 0 0 var(--outline-color);left:var(--left)}.dnb-card+.dnb-card--responsive:not([class*=space__top]){background:linear-gradient(to left,var(--background-color),var(--background-color)) no-repeat 0 var(--outline-width)}.dnb-card+.dnb-card--responsive:not([class*=space__top]):before{top:var(--outline-width)}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive{margin-top:0}.dnb-flex-container.dnb-flex-container--divider-space .dnb-card+.dnb-card--responsive:before{background-color:transparent;top:var(--outline-width);z-index:0}}.dnb-card .dnb-flex-container:has(>.dnb-card__title+.dnb-scroll-view){align-items:stretch;flex-wrap:nowrap}.dnb-card--filled .dnb-scroll-view{clip-path:inset(0 0 0 0 round var(--rounded-corner) var(--rounded-corner) var(--rounded-corner) var(--rounded-corner))}.dnb-card>.dnb-flex-container>.dnb-space:has(>.dnb-scroll-view){width:100%}.dnb-card>.dnb-flex-container--align-stretch>.dnb-button{align-self:flex-start}.dnb-card[style*="--outset"].dnb-space[style]:not(.dnb-card){padding-left:calc(var(--padding-left)*(1 - var(--outset)));padding-right:calc(var(--padding-right)*(1 - var(--outset)))}.dnb-card[style*="--outset"].dnb-card>.dnb-flex-container{margin-left:calc(var(--padding-left, var(--spacing-medium))*-1*var(--outset));margin-right:calc(var(--padding-right, var(--spacing-medium))*-1*var(--outset))}.dnb-card--auto-indent:has(+.dnb-card,+*+.dnb-card,+*+*+.dnb-card,+.dnb-help-button__content+.dnb-section+.dnb-card):not([class*=space__bottom]){margin-bottom:var(--spacing-small)}@media screen and (min-width:40.00625em){.dnb-card--auto-indent:has(+.dnb-card:not([style*="--outset"]),+*+.dnb-card:not([style*="--outset"]),+*+*+.dnb-card:not([style*="--outset"]),+.dnb-help-button__content+.dnb-section+.dnb-card:not([style*="--outset"])):not([class*=space__left]){margin-left:var(--spacing-medium)}}
@@ -88,6 +88,7 @@
88
88
  &::before {
89
89
  top: var(--outline-width); // align background and outline
90
90
  z-index: 0;
91
+ background-color: transparent; // because we inherit the background-color when "outset" is set – but we don't want that in this case
91
92
  }
92
93
  }
93
94
  }
@@ -114,9 +115,19 @@
114
115
  align-self: flex-start;
115
116
  }
116
117
 
117
- // Nested Cards
118
- & .dnb-card {
119
- --outline-width: 0.125rem;
118
+ &[style*='--outset'] {
119
+ &.dnb-space[style]:not(.dnb-card) {
120
+ padding-left: calc(var(--padding-left) * calc(1 - var(--outset)));
121
+ padding-right: calc(var(--padding-right) * calc(1 - var(--outset)));
122
+ }
123
+ &.dnb-card > .dnb-flex-container {
124
+ margin-left: calc(
125
+ var(--padding-left, var(--spacing-medium)) * -1 * var(--outset)
126
+ );
127
+ margin-right: calc(
128
+ var(--padding-right, var(--spacing-medium)) * -1 * var(--outset)
129
+ );
130
+ }
120
131
  }
121
132
  }
122
133
 
@@ -125,14 +136,22 @@
125
136
  + * + .dnb-card,/* e.g. one paragraph */
126
137
  + * + * + .dnb-card,/* e.g. two paragraphs */
127
138
  + .dnb-help-button__content + .dnb-section + .dnb-card
139
+ ) {
140
+ &:not([class*='space__bottom']) {
141
+ margin-bottom: var(--spacing-small);
142
+ }
143
+ }
144
+
145
+ // Deprecated – can be removed in v11 (its handled by the outset prop)
146
+ .dnb-card--auto-indent:has(
147
+ + .dnb-card:not([style*='--outset']),
148
+ + * + .dnb-card:not([style*='--outset']),/* e.g. one paragraph */
149
+ + * + * + .dnb-card:not([style*='--outset']),/* e.g. two paragraphs */
150
+ + .dnb-help-button__content + .dnb-section + .dnb-card:not([style*='--outset'])
128
151
  ) {
129
152
  &:not([class*='space__left']) {
130
153
  @include allAbove(small) {
131
154
  margin-left: var(--spacing-medium);
132
155
  }
133
156
  }
134
-
135
- &:not([class*='space__bottom']) {
136
- margin-bottom: var(--spacing-small);
137
- }
138
157
  }