@nldd/design-system 0.8.39 → 0.8.41

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 (252) hide show
  1. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  2. package/dist/components/actions/button/button.styles.js +32 -20
  3. package/dist/components/actions/button/button.styles.js.map +1 -1
  4. package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
  5. package/dist/components/actions/button-bar/button-bar.styles.js +22 -0
  6. package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
  7. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  8. package/dist/components/actions/button-group/button-group.styles.js +0 -1
  9. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  10. package/dist/components/actions/icon-button/icon-button.d.ts +6 -0
  11. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  12. package/dist/components/actions/icon-button/icon-button.js +9 -0
  13. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  14. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.styles.js +33 -21
  16. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.template.js +1 -1
  18. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  19. package/dist/components/actions/link/link.styles.d.ts.map +1 -1
  20. package/dist/components/actions/link/link.styles.js +4 -2
  21. package/dist/components/actions/link/link.styles.js.map +1 -1
  22. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  23. package/dist/components/actions/split-button/split-button.styles.js +14 -1
  24. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  25. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  26. package/dist/components/actions/split-button/split-button.template.js +1 -0
  27. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  28. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  29. package/dist/components/actions/toolbar/toolbar.styles.js +3 -2
  30. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  31. package/dist/components/components.js +83 -24189
  32. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  33. package/dist/components/content/blockquote/blockquote.styles.js +1 -0
  34. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  35. package/dist/components/content/code/code.d.ts +58 -0
  36. package/dist/components/content/code/code.d.ts.map +1 -0
  37. package/dist/components/content/code/code.js +155 -0
  38. package/dist/components/content/code/code.js.map +1 -0
  39. package/dist/components/content/code/code.styles.d.ts +2 -0
  40. package/dist/components/content/code/code.styles.d.ts.map +1 -0
  41. package/dist/components/content/code/code.styles.js +105 -0
  42. package/dist/components/content/code/code.styles.js.map +1 -0
  43. package/dist/components/content/code/code.template.d.ts +4 -0
  44. package/dist/components/content/code/code.template.d.ts.map +1 -0
  45. package/dist/components/content/code/code.template.js +18 -0
  46. package/dist/components/content/code/code.template.js.map +1 -0
  47. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  48. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +1 -0
  49. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  50. package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
  51. package/dist/components/content/tag/tag.styles.js +1 -0
  52. package/dist/components/content/tag/tag.styles.js.map +1 -1
  53. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  54. package/dist/components/content/tooltip/tooltip.styles.js +2 -1
  55. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  56. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  57. package/dist/components/forms/form-field/form-field.styles.js +8 -4
  58. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  59. package/dist/components/index-DMYkp2tq.js +26919 -0
  60. package/dist/components/index.d.ts +3 -0
  61. package/dist/components/index.d.ts.map +1 -1
  62. package/dist/components/index.js +3 -0
  63. package/dist/components/index.js.map +1 -1
  64. package/dist/components/inputs/checkbox/checkbox.d.ts +9 -1
  65. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  66. package/dist/components/inputs/checkbox/checkbox.js +22 -1
  67. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  68. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  69. package/dist/components/inputs/checkbox/checkbox.styles.js +11 -9
  70. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  71. package/dist/components/inputs/code-editor/code-editor.d.ts +77 -0
  72. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -0
  73. package/dist/components/inputs/code-editor/code-editor.js +163 -0
  74. package/dist/components/inputs/code-editor/code-editor.js.map +1 -0
  75. package/dist/components/inputs/code-editor/code-editor.styles.d.ts +2 -0
  76. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -0
  77. package/dist/components/inputs/code-editor/code-editor.styles.js +110 -0
  78. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -0
  79. package/dist/components/inputs/code-editor/code-editor.template.d.ts +4 -0
  80. package/dist/components/inputs/code-editor/code-editor.template.d.ts.map +1 -0
  81. package/dist/components/inputs/code-editor/code-editor.template.js +24 -0
  82. package/dist/components/inputs/code-editor/code-editor.template.js.map +1 -0
  83. package/dist/components/inputs/combo-box/combo-box.d.ts +7 -0
  84. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  85. package/dist/components/inputs/combo-box/combo-box.js +34 -1
  86. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  87. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  88. package/dist/components/inputs/combo-box/combo-box.styles.js +2 -1
  89. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  90. package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
  91. package/dist/components/inputs/combo-box/combo-box.template.js +2 -0
  92. package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
  93. package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
  94. package/dist/components/inputs/dropdown/dropdown.styles.js +2 -1
  95. package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
  96. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +74 -0
  97. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -0
  98. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +175 -0
  99. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -0
  100. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts +2 -0
  101. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -0
  102. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +175 -0
  103. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -0
  104. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts +5 -0
  105. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -0
  106. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +48 -0
  107. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -0
  108. package/dist/components/inputs/number-field/number-field.d.ts +6 -0
  109. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  110. package/dist/components/inputs/number-field/number-field.js +21 -1
  111. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  112. package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
  113. package/dist/components/inputs/number-field/number-field.styles.js +2 -1
  114. package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
  115. package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
  116. package/dist/components/inputs/number-field/number-field.template.js +2 -0
  117. package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
  118. package/dist/components/inputs/password-field/password-field.d.ts +7 -4
  119. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  120. package/dist/components/inputs/password-field/password-field.js +20 -5
  121. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  122. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  123. package/dist/components/inputs/password-field/password-field.styles.js +2 -1
  124. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  125. package/dist/components/inputs/radio-button/radio-button.d.ts +9 -1
  126. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  127. package/dist/components/inputs/radio-button/radio-button.js +21 -1
  128. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  129. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  130. package/dist/components/inputs/radio-button/radio-button.styles.js +13 -11
  131. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  132. package/dist/components/inputs/search-field/search-field.d.ts +7 -0
  133. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  134. package/dist/components/inputs/search-field/search-field.js +20 -1
  135. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  136. package/dist/components/inputs/segmented-control/segmented-control.d.ts +8 -0
  137. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  138. package/dist/components/inputs/segmented-control/segmented-control.js +48 -1
  139. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  140. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  141. package/dist/components/inputs/segmented-control/segmented-control.styles.js +8 -5
  142. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  143. package/dist/components/inputs/stepper/stepper.d.ts +10 -1
  144. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  145. package/dist/components/inputs/stepper/stepper.js +28 -0
  146. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  147. package/dist/components/inputs/stepper/stepper.template.d.ts.map +1 -1
  148. package/dist/components/inputs/stepper/stepper.template.js +2 -0
  149. package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
  150. package/dist/components/inputs/switch/switch.d.ts +9 -1
  151. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  152. package/dist/components/inputs/switch/switch.js +22 -0
  153. package/dist/components/inputs/switch/switch.js.map +1 -1
  154. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  155. package/dist/components/inputs/switch/switch.styles.js +4 -3
  156. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  157. package/dist/components/inputs/text-field/text-field.d.ts +7 -3
  158. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  159. package/dist/components/inputs/text-field/text-field.js +20 -4
  160. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  161. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  162. package/dist/components/inputs/text-field/text-field.styles.js +2 -1
  163. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  164. package/dist/components/inputs/toggle-button/toggle-button.d.ts +9 -2
  165. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  166. package/dist/components/inputs/toggle-button/toggle-button.js +22 -2
  167. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  168. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  169. package/dist/components/inputs/toggle-button/toggle-button.styles.js +12 -8
  170. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  171. package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
  172. package/dist/components/inputs/token/token.styles.js +10 -6
  173. package/dist/components/inputs/token/token.styles.js.map +1 -1
  174. package/dist/components/inputs/token/token.template.d.ts.map +1 -1
  175. package/dist/components/inputs/token/token.template.js +1 -0
  176. package/dist/components/inputs/token/token.template.js.map +1 -1
  177. package/dist/components/layout/app-view/app-view.d.ts +7 -0
  178. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  179. package/dist/components/layout/app-view/app-view.js +13 -1
  180. package/dist/components/layout/app-view/app-view.js.map +1 -1
  181. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  182. package/dist/components/layout/page/page.styles.js +2 -0
  183. package/dist/components/layout/page/page.styles.js.map +1 -1
  184. package/dist/components/layout/sheet/sheet.d.ts +4 -0
  185. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  186. package/dist/components/layout/sheet/sheet.js +7 -0
  187. package/dist/components/layout/sheet/sheet.js.map +1 -1
  188. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  189. package/dist/components/layout/sheet/sheet.styles.js +20 -1
  190. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  191. package/dist/components/lists-and-menus/cells/cell/cell.styles.d.ts.map +1 -1
  192. package/dist/components/lists-and-menus/cells/cell/cell.styles.js +10 -5
  193. package/dist/components/lists-and-menus/cells/cell/cell.styles.js.map +1 -1
  194. package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.d.ts.map +1 -1
  195. package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.js +9 -4
  196. package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.js.map +1 -1
  197. package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  198. package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.js +9 -4
  199. package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.js.map +1 -1
  200. package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  201. package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.js +9 -4
  202. package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.js.map +1 -1
  203. package/dist/components/lists-and-menus/list/list.styles.d.ts.map +1 -1
  204. package/dist/components/lists-and-menus/list/list.styles.js +4 -3
  205. package/dist/components/lists-and-menus/list/list.styles.js.map +1 -1
  206. package/dist/components/lists-and-menus/list-item/list-item.styles.d.ts.map +1 -1
  207. package/dist/components/lists-and-menus/list-item/list-item.styles.js +23 -18
  208. package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +1 -1
  209. package/dist/components/lists-and-menus/menu/menu.styles.d.ts.map +1 -1
  210. package/dist/components/lists-and-menus/menu/menu.styles.js +9 -7
  211. package/dist/components/lists-and-menus/menu/menu.styles.js.map +1 -1
  212. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  213. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +20 -11
  214. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  215. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  216. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +9 -4
  217. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  218. package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  219. package/dist/components/navigation/pagination/pagination.styles.js +10 -3
  220. package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
  221. package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
  222. package/dist/components/navigation/skip-link/skip-link.styles.js +1 -0
  223. package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
  224. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  225. package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -3
  226. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  227. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -0
  228. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  229. package/dist/components/navigation/top-title-bar/top-title-bar.js +19 -7
  230. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  231. package/dist/components/prism-bash-vbqaw3JR.js +226 -0
  232. package/dist/components/prism-css-B93tXdOU.js +59 -0
  233. package/dist/components/prism-javascript-DeC_17Pw.js +140 -0
  234. package/dist/components/prism-json-DIMpow89.js +25 -0
  235. package/dist/components/prism-markdown-D-uFBkiz.js +339 -0
  236. package/dist/components/prism-markup-DfJYPYHA.js +177 -0
  237. package/dist/components/prism-typescript-9LDqHHRS.js +87 -0
  238. package/dist/components/prism-yaml-DO0f9pf6.js +71 -0
  239. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  240. package/dist/components/status-and-feedback/badge/badge.styles.js +1 -0
  241. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  242. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
  243. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +6 -5
  244. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
  245. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  246. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +8 -1
  247. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  248. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  249. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -1
  250. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  251. package/dist/css/settings.css +70 -1
  252. package/package.json +16 -2
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,yBA2E5B,CAAC"}
1
+ {"version":3,"file":"blockquote.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,yBA4E5B,CAAC"}
@@ -10,6 +10,7 @@ export const blockquoteStyles = css `
10
10
  --_spacing: var(--semantics-blockquotes-md-spacing);
11
11
  --_quote-font: var(--semantics-blockquotes-md-quote-font);
12
12
  --_attribution-font: var(--semantics-blockquotes-md-attribution-font);
13
+
13
14
  display: block;
14
15
  max-width: var(--semantics-blockquotes-max-width);
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote.styles.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;sBAab,KAAK;;;;;;;;sCAQW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD1C,CAAC"}
1
+ {"version":3,"file":"blockquote.styles.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;sBAcb,KAAK;;;;;;;;sCAQW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsD1C,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Nederlandse Digitale Dienst Code Component (Lit + TypeScript)
3
+ *
4
+ * A block of monospaced text for code, traces, output dumps, etc.
5
+ * Renders a styled `<pre>` with the design-system's monospace family,
6
+ * tinted background and standard content color.
7
+ *
8
+ * Whitespace is preserved (`white-space: pre`); long lines scroll
9
+ * horizontally by default. Set `wrap` to break long lines onto the
10
+ * next visual line — useful for prose-like content (YAML strings,
11
+ * formatted output) where horizontal scrolling is more disruptive
12
+ * than wrapping.
13
+ *
14
+ * ## Syntax highlighting
15
+ * Set `language` to one of the supported grammars (yaml, json, javascript,
16
+ * typescript, css, html, bash, markdown) to highlight the slot content
17
+ * with Prism. Without `language` the slot content is rendered raw, no
18
+ * highlighting applied. Grammars are loaded lazily on first use, so a
19
+ * page that never sets `language` ships zero grammar code.
20
+ *
21
+ * ### Theming
22
+ * Token colors are exposed as `--components-code-token-*` custom
23
+ * properties on the host. Override them per-instance to swap the theme:
24
+ *
25
+ * ```css
26
+ * nldd-code {
27
+ * --components-code-token-keyword-color: var(--my-purple);
28
+ * --components-code-token-string-color: var(--my-green);
29
+ * }
30
+ * ```
31
+ *
32
+ * @element nldd-code
33
+ *
34
+ * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, bash, markdown). Empty disables highlighting.
35
+ * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
36
+ *
37
+ * @slot - Default slot for the code/text content
38
+ */
39
+ import { LitElement } from 'lit';
40
+ export declare class NLDDCode extends LitElement {
41
+ static styles: import("lit").CSSResult;
42
+ language: string;
43
+ wrap: boolean;
44
+ _highlightedHtml: string;
45
+ private _highlightPending;
46
+ render(): import("lit-html").TemplateResult;
47
+ _onSlotChange(e: Event): void;
48
+ updated(changed: Map<string, unknown>): void;
49
+ getUpdateComplete(): Promise<boolean>;
50
+ private _refreshHighlight;
51
+ private _runHighlight;
52
+ }
53
+ declare global {
54
+ interface HTMLElementTagNameMap {
55
+ 'nldd-code': NLDDCode;
56
+ }
57
+ }
58
+ //# sourceMappingURL=code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code/code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAuCjC,qBACa,QAAS,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAc;IAGpC,QAAQ,SAAM;IAGd,IAAI,UAAS;IAGb,gBAAgB,SAAM;IAEtB,OAAO,CAAC,iBAAiB,CAAoC;IAEpD,MAAM;IAIf,aAAa,CAAC,CAAC,EAAE,KAAK;IAIb,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAO/B,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpD,OAAO,CAAC,iBAAiB;YAIX,aAAa;CA4B3B;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
@@ -0,0 +1,155 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /**
8
+ * Nederlandse Digitale Dienst Code Component (Lit + TypeScript)
9
+ *
10
+ * A block of monospaced text for code, traces, output dumps, etc.
11
+ * Renders a styled `<pre>` with the design-system's monospace family,
12
+ * tinted background and standard content color.
13
+ *
14
+ * Whitespace is preserved (`white-space: pre`); long lines scroll
15
+ * horizontally by default. Set `wrap` to break long lines onto the
16
+ * next visual line — useful for prose-like content (YAML strings,
17
+ * formatted output) where horizontal scrolling is more disruptive
18
+ * than wrapping.
19
+ *
20
+ * ## Syntax highlighting
21
+ * Set `language` to one of the supported grammars (yaml, json, javascript,
22
+ * typescript, css, html, bash, markdown) to highlight the slot content
23
+ * with Prism. Without `language` the slot content is rendered raw, no
24
+ * highlighting applied. Grammars are loaded lazily on first use, so a
25
+ * page that never sets `language` ships zero grammar code.
26
+ *
27
+ * ### Theming
28
+ * Token colors are exposed as `--components-code-token-*` custom
29
+ * properties on the host. Override them per-instance to swap the theme:
30
+ *
31
+ * ```css
32
+ * nldd-code {
33
+ * --components-code-token-keyword-color: var(--my-purple);
34
+ * --components-code-token-string-color: var(--my-green);
35
+ * }
36
+ * ```
37
+ *
38
+ * @element nldd-code
39
+ *
40
+ * @attr {string} language - Grammar to highlight with (yaml, json, javascript, typescript, css, html, bash, markdown). Empty disables highlighting.
41
+ * @attr {boolean} wrap - Wrap long lines instead of horizontal scroll
42
+ *
43
+ * @slot - Default slot for the code/text content
44
+ */
45
+ import { LitElement } from 'lit';
46
+ import { customElement, property, state } from 'lit/decorators.js';
47
+ import Prism from 'prismjs';
48
+ import { codeStyles } from './code.styles.js';
49
+ import { codeTemplate } from './code.template.js';
50
+ /* Map our public language names to Prism grammar loaders. `html` shares
51
+ * the markup grammar (covers html/xml/svg). Static `import()` calls let
52
+ * the bundler emit one chunk per file, so consumers only download
53
+ * grammars they actually render. */
54
+ const GRAMMAR_LOADERS = {
55
+ yaml: () => import('prismjs/components/prism-yaml.js'),
56
+ json: () => import('prismjs/components/prism-json.js'),
57
+ javascript: () => import('prismjs/components/prism-javascript.js'),
58
+ typescript: () => import('prismjs/components/prism-typescript.js'),
59
+ css: () => import('prismjs/components/prism-css.js'),
60
+ html: () => import('prismjs/components/prism-markup.js'),
61
+ bash: () => import('prismjs/components/prism-bash.js'),
62
+ markdown: () => import('prismjs/components/prism-markdown.js'),
63
+ };
64
+ const grammarLoads = new Map();
65
+ function loadGrammar(language) {
66
+ const loader = GRAMMAR_LOADERS[language];
67
+ if (!loader)
68
+ return undefined;
69
+ let pending = grammarLoads.get(language);
70
+ if (!pending) {
71
+ // Drop the cache entry on failure so a subsequent attempt can retry
72
+ // the import (e.g. transient chunk-load failure on a flaky network).
73
+ pending = loader().catch((err) => {
74
+ grammarLoads.delete(language);
75
+ throw err;
76
+ });
77
+ grammarLoads.set(language, pending);
78
+ }
79
+ return pending;
80
+ }
81
+ let NLDDCode = class NLDDCode extends LitElement {
82
+ constructor() {
83
+ super(...arguments);
84
+ this.language = '';
85
+ this.wrap = false;
86
+ this._highlightedHtml = '';
87
+ this._highlightPending = Promise.resolve();
88
+ }
89
+ render() {
90
+ return codeTemplate(this);
91
+ }
92
+ _onSlotChange(e) {
93
+ this._refreshHighlight(e.target);
94
+ }
95
+ updated(changed) {
96
+ if (changed.has('language'))
97
+ this._refreshHighlight();
98
+ }
99
+ /* Lazy grammar loading is async; surface the in-flight highlight
100
+ * through updateComplete so consumers (and tests) can `await
101
+ * el.updateComplete` and see the final highlighted output. */
102
+ async getUpdateComplete() {
103
+ const result = await super.getUpdateComplete();
104
+ await this._highlightPending;
105
+ return result;
106
+ }
107
+ _refreshHighlight(slot) {
108
+ this._highlightPending = this._runHighlight(slot);
109
+ }
110
+ async _runHighlight(slot) {
111
+ if (!this.language) {
112
+ this._highlightedHtml = '';
113
+ return;
114
+ }
115
+ const language = this.language;
116
+ if (!Prism.languages[language]) {
117
+ const pending = loadGrammar(language);
118
+ if (!pending) {
119
+ this._highlightedHtml = '';
120
+ return;
121
+ }
122
+ await pending;
123
+ if (this.language !== language)
124
+ return;
125
+ }
126
+ const grammar = Prism.languages[language];
127
+ if (!grammar) {
128
+ this._highlightedHtml = '';
129
+ return;
130
+ }
131
+ const target = slot ?? this.shadowRoot?.querySelector('slot');
132
+ if (!target)
133
+ return;
134
+ const text = target
135
+ .assignedNodes({ flatten: true })
136
+ .map((n) => n.textContent ?? '')
137
+ .join('');
138
+ this._highlightedHtml = Prism.highlight(text, grammar, language);
139
+ }
140
+ };
141
+ NLDDCode.styles = codeStyles;
142
+ __decorate([
143
+ property({ type: String, reflect: true })
144
+ ], NLDDCode.prototype, "language", void 0);
145
+ __decorate([
146
+ property({ type: Boolean, reflect: true })
147
+ ], NLDDCode.prototype, "wrap", void 0);
148
+ __decorate([
149
+ state()
150
+ ], NLDDCode.prototype, "_highlightedHtml", void 0);
151
+ NLDDCode = __decorate([
152
+ customElement('nldd-code')
153
+ ], NLDDCode);
154
+ export { NLDDCode };
155
+ //# sourceMappingURL=code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.js","sourceRoot":"","sources":["../../../../src/components/content/code/code.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export declare const codeStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=code.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code/code.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAsGtB,CAAC"}
@@ -0,0 +1,105 @@
1
+ import { css } from 'lit';
2
+ export const codeStyles = css `
3
+
4
+
5
+ /* # Host */
6
+
7
+ :host {
8
+ --_background-color: var(--semantics-surfaces-tinted-background-color);
9
+ --_content-color: var(--semantics-content-color);
10
+ --_inline-padding: var(--primitives-space-16);
11
+ --_block-padding: var(--primitives-space-16);
12
+ --_corner-radius: var(--primitives-corner-radius-lg);
13
+ --_font: var(--primitives-font-monospace-sm-regular-snug);
14
+
15
+ display: block;
16
+ }
17
+
18
+ :host([hidden]) {
19
+ display: none;
20
+ }
21
+
22
+
23
+ /* # Block */
24
+
25
+ .code {
26
+ margin: 0;
27
+ padding: var(--_block-padding) var(--_inline-padding);
28
+ background-color: var(--_background-color);
29
+ color: var(--_content-color);
30
+ border-radius: var(--_corner-radius);
31
+ font: var(--_font);
32
+ overflow-x: auto;
33
+ white-space: pre;
34
+ }
35
+
36
+ :host([wrap]) .code {
37
+ overflow-x: visible;
38
+ white-space: pre-wrap;
39
+ word-break: break-word;
40
+ }
41
+
42
+ /* When highlighting is active, hide the raw slot output and show the
43
+ tokenised <code> instead. The slot stays in the tree as the source
44
+ of truth — slotchange listens there and feeds the highlighter.
45
+ Lit reflects empty-string properties as language="" attributes,
46
+ so we explicitly exclude that case. */
47
+ :host([language]:not([language=""])) slot {
48
+ display: none;
49
+ }
50
+
51
+ .code__highlighted {
52
+ font: inherit;
53
+ color: inherit;
54
+ }
55
+
56
+
57
+ /* # Tokens (Prism)
58
+ *
59
+ * Token theme — Solarized-inspired, mapped to descriptive DS palettes.
60
+ * Defaults defined in settings.css under --components-code-token-*;
61
+ * consumers can override per-instance to swap colors. Documented in
62
+ * the JSDoc of nldd-code (see code.ts). */
63
+
64
+ .token.comment,
65
+ .token.prolog,
66
+ .token.doctype,
67
+ .token.cdata { color: var(--components-code-token-comment-color); font-style: italic; }
68
+
69
+ .token.punctuation { color: var(--components-code-token-punctuation-color); }
70
+
71
+ .token.namespace { opacity: 0.7; }
72
+
73
+ .token.keyword { color: var(--components-code-token-keyword-color); }
74
+ .token.string,
75
+ .token.char { color: var(--components-code-token-string-color); }
76
+ .token.number { color: var(--components-code-token-number-color); }
77
+ .token.boolean { color: var(--components-code-token-boolean-color); }
78
+ .token.null { color: var(--components-code-token-null-color); }
79
+ .token.function { color: var(--components-code-token-function-color); }
80
+ .token.class-name { color: var(--components-code-token-class-color); }
81
+ .token.builtin { color: var(--components-code-token-builtin-color); }
82
+ .token.tag { color: var(--components-code-token-tag-color); }
83
+ .token.attr-name { color: var(--components-code-token-attr-name-color); }
84
+ .token.attr-value { color: var(--components-code-token-attr-value-color); }
85
+ .token.property { color: var(--components-code-token-property-color); }
86
+ .token.selector { color: var(--components-code-token-selector-color); }
87
+ .token.atrule { color: var(--components-code-token-atrule-color); }
88
+ .token.regex { color: var(--components-code-token-regex-color); }
89
+ .token.url { color: var(--components-code-token-url-color); }
90
+ .token.operator { color: var(--components-code-token-operator-color); }
91
+ .token.constant { color: var(--components-code-token-constant-color); }
92
+ .token.deleted { color: var(--components-code-token-deleted-color); }
93
+ .token.inserted { color: var(--components-code-token-inserted-color); }
94
+ .token.important { color: var(--components-code-token-important-color); font-weight: bold; }
95
+ .token.symbol { color: var(--components-code-token-symbol-color); }
96
+ .token.entity { color: var(--components-code-token-entity-color); }
97
+ .token.variable { color: var(--components-code-token-variable-color); }
98
+
99
+ /* YAML key uses the property/keyword slot so YAML reads naturally */
100
+ .token.key { color: var(--components-code-token-property-color); }
101
+
102
+ .token.bold { font-weight: bold; }
103
+ .token.italic { font-style: italic; }
104
+ `;
105
+ //# sourceMappingURL=code.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.styles.js","sourceRoot":"","sources":["../../../../src/components/content/code/code.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsG5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TemplateResult } from 'lit';
2
+ import type { NLDDCode } from './code.js';
3
+ export declare function codeTemplate(component: NLDDCode): TemplateResult;
4
+ //# sourceMappingURL=code.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code/code.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,cAAc,CAgBhE"}
@@ -0,0 +1,18 @@
1
+ import { html } from 'lit';
2
+ import { unsafeHTML } from 'lit/directives/unsafe-html.js';
3
+ export function codeTemplate(component) {
4
+ // `language` is interpolated into a class name. Lit's tagged template
5
+ // literal escapes attribute values, so a malicious string can't break
6
+ // out of the attribute — but it can still produce a wonky class name.
7
+ // We accept that since `language` is a developer-set identifier, not
8
+ // user-supplied content.
9
+ //
10
+ // `unsafeHTML(_highlightedHtml)` injects the Prism output verbatim.
11
+ // Prism escapes HTML entities in its input (`<` → `&lt;`) before
12
+ // wrapping tokens in spans, so the only HTML in the output is the
13
+ // span scaffolding Prism itself emits. Safe by construction.
14
+ return html `<pre class="code"><slot @slotchange=${component._onSlotChange}></slot>${component.language && component._highlightedHtml
15
+ ? html `<code class="code__highlighted language-${component.language}">${unsafeHTML(component._highlightedHtml)}</code>`
16
+ : ''}</pre>`;
17
+ }
18
+ //# sourceMappingURL=code.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code.template.js","sourceRoot":"","sources":["../../../../src/components/content/code/code.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG3D,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,sEAAsE;IACtE,sEAAsE;IACtE,sEAAsE;IACtE,qEAAqE;IACrE,yBAAyB;IACzB,EAAE;IACF,oEAAoE;IACpE,iEAAiE;IACjE,kEAAkE;IAClE,6DAA6D;IAC7D,OAAO,IAAI,CAAA,uCAAuC,SAAS,CAAC,aAAa,WACxE,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,gBAAgB;QAC/C,CAAC,CAAC,IAAI,CAAA,2CAA2C,SAAS,CAAC,QAAQ,KAAK,UAAU,CAAC,SAAS,CAAC,gBAAgB,CAAC,SAAS;QACvH,CAAC,CAAC,EACJ,QAAQ,CAAC;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard-shortcut.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBA2ElC,CAAC"}
1
+ {"version":3,"file":"keyboard-shortcut.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBA4ElC,CAAC"}
@@ -8,6 +8,7 @@ export const keyboardShortcutStyles = css `
8
8
  --_size: var(--components-keyboard-shortcut-md-size);
9
9
  --_inline-padding: var(--primitives-space-6);
10
10
  --_font: var(--primitives-font-body-xs-regular-flat);
11
+
11
12
  display: inline-flex;
12
13
  vertical-align: middle;
13
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard-shortcut.styles.js","sourceRoot":"","sources":["../../../../src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ExC,CAAC"}
1
+ {"version":3,"file":"keyboard-shortcut.styles.js","sourceRoot":"","sources":["../../../../src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ExC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBAqGrB,CAAC"}
1
+ {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBAsGrB,CAAC"}
@@ -14,6 +14,7 @@ export const tagStyles = css `
14
14
  --_icon-size: var(--primitives-space-16);
15
15
  --_icon-offset-correction: var(--primitives-space-1);
16
16
  --_corner-radius: var(--components-tag-md-corner-radius);
17
+
17
18
  display: inline-flex;
18
19
  vertical-align: middle;
19
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tag.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqG3B,CAAC"}
1
+ {"version":3,"file":"tag.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAmFzB,CAAC"}
1
+ {"version":3,"file":"tooltip.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBAoFzB,CAAC"}
@@ -5,7 +5,6 @@ export const tooltipStyles = css `
5
5
  /* # Host */
6
6
 
7
7
  :host {
8
- display: contents;
9
8
  --_z-index: 10000;
10
9
  --_show-delay: 700ms;
11
10
  --_show-duration: var(--primitives-transition-duration-fast);
@@ -14,6 +13,8 @@ export const tooltipStyles = css `
14
13
  --_offset: 4; /* px, unitless — read by JS */
15
14
  --_shift-padding: 8; /* px, unitless — read by JS */
16
15
  --_max-width: var(--primitives-area-280);
16
+
17
+ display: contents;
17
18
  }
18
19
 
19
20
  :host([hidden]) {
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmF/B,CAAC"}
1
+ {"version":3,"file":"tooltip.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tooltip/tooltip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoF/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,yBAoK3B,CAAC;AAMF,eAAO,MAAM,uBAAuB,yBA6CnC,CAAC;AAMF,eAAO,MAAM,wBAAwB,yBAiDpC,CAAC"}
1
+ {"version":3,"file":"form-field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,yBAoK3B,CAAC;AAMF,eAAO,MAAM,uBAAuB,yBA+CnC,CAAC;AAMF,eAAO,MAAM,wBAAwB,yBAmDpC,CAAC"}
@@ -198,8 +198,10 @@ export const formFieldHelpTextStyles = css `
198
198
  border-radius: var(--primitives-corner-radius-xxs);
199
199
  }
200
200
 
201
- ::slotted(a:hover) {
202
- color: var(--semantics-links-is-hovered-color);
201
+ @media (hover: hover) {
202
+ ::slotted(a:hover) {
203
+ color: var(--semantics-links-is-hovered-color);
204
+ }
203
205
  }
204
206
 
205
207
  ::slotted(a:active) {
@@ -251,8 +253,10 @@ export const formFieldErrorTextStyles = css `
251
253
  border-radius: var(--primitives-corner-radius-xxs);
252
254
  }
253
255
 
254
- ::slotted(a:hover) {
255
- color: var(--semantics-links-is-hovered-color);
256
+ @media (hover: hover) {
257
+ ::slotted(a:hover) {
258
+ color: var(--semantics-links-is-hovered-color);
259
+ }
256
260
  }
257
261
 
258
262
  ::slotted(a:active) {
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.styles.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;kEAEkE;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKjC,CAAC;AAEF;;kEAEkE;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzC,CAAC;AAEF;;kEAEkE;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD1C,CAAC"}
1
+ {"version":3,"file":"form-field.styles.js","sourceRoot":"","sources":["../../../../src/components/forms/form-field/form-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;kEAEkE;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoKjC,CAAC;AAEF;;kEAEkE;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CzC,CAAC;AAEF;;kEAEkE;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD1C,CAAC"}