@nldd/design-system 0.8.100 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (400) hide show
  1. package/custom-elements.json +464 -35
  2. package/dist/assets/styles/breakpoints.d.ts +32 -0
  3. package/dist/assets/styles/breakpoints.d.ts.map +1 -1
  4. package/dist/assets/styles/breakpoints.js +36 -0
  5. package/dist/assets/styles/breakpoints.js.map +1 -1
  6. package/dist/components/actions/button/button.d.ts +5 -3
  7. package/dist/components/actions/button/button.d.ts.map +1 -1
  8. package/dist/components/actions/button/button.i18n.d.ts +3 -1
  9. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  10. package/dist/components/actions/button/button.i18n.js +3 -1
  11. package/dist/components/actions/button/button.i18n.js.map +1 -1
  12. package/dist/components/actions/button/button.js +1 -1
  13. package/dist/components/actions/button/button.styles.js +2 -2
  14. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  15. package/dist/components/actions/button/button.template.js +9 -10
  16. package/dist/components/actions/button/button.template.js.map +1 -1
  17. package/dist/components/actions/button-group/button-group.styles.js +2 -2
  18. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.d.ts +5 -3
  20. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
  22. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  23. package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
  24. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  25. package/dist/components/actions/icon-button/icon-button.js +1 -1
  26. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  27. package/dist/components/actions/icon-button/icon-button.template.js +7 -7
  28. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  29. package/dist/components/actions/menu/menu.js +2 -2
  30. package/dist/components/actions/menu/menu.js.map +1 -1
  31. package/dist/components/actions/menu/menu.styles.js +2 -2
  32. package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
  33. package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
  34. package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
  35. package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
  36. package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.js +1 -1
  38. package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
  39. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  40. package/dist/components/actions/toolbar/toolbar.template.js +4 -2
  41. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  42. package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
  43. package/dist/components/components.js +797 -579
  44. package/dist/components/content/avatar/avatar.d.ts +5 -3
  45. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  46. package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
  47. package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
  48. package/dist/components/content/avatar/avatar.i18n.js +3 -1
  49. package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
  50. package/dist/components/content/avatar/avatar.js +1 -1
  51. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  52. package/dist/components/content/avatar/avatar.template.js +6 -6
  53. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  54. package/dist/components/content/blockquote/blockquote.styles.js +2 -2
  55. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  56. package/dist/components/content/code-viewer/code-viewer.styles.js +3 -3
  57. package/dist/components/content/identity/identity.styles.js +2 -2
  58. package/dist/components/content/identity/identity.styles.js.map +1 -1
  59. package/dist/components/content/image/image.styles.js +1 -1
  60. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  61. package/dist/components/content/title/title.styles.js +5 -5
  62. package/dist/components/content/title/title.styles.js.map +1 -1
  63. package/dist/components/forms/form-actions/form-actions.styles.js +2 -2
  64. package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
  65. package/dist/components/forms/form-field/form-field.styles.js +2 -2
  66. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  67. package/dist/components/{icon-button-BtU8DX64.js → icon-button-BVhiOwX9.js} +10 -5
  68. package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
  69. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  70. package/dist/components/inputs/checkbox/checkbox.js +11 -0
  71. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  72. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  73. package/dist/components/inputs/checkbox/checkbox.styles.js +36 -9
  74. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  75. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -0
  76. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  77. package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -0
  78. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  79. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  80. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +7 -0
  81. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  82. package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
  83. package/dist/components/inputs/checkbox-field/checkbox-field.template.js +1 -0
  84. package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
  85. package/dist/components/inputs/date-field/date-field.styles.js +2 -2
  86. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  87. package/dist/components/inputs/date-picker/date-picker.js +2 -2
  88. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  89. package/dist/components/inputs/date-picker/date-picker.styles.js +3 -3
  90. package/dist/components/inputs/file-field/file-field.styles.js +2 -2
  91. package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
  92. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  93. package/dist/components/inputs/radio-button/radio-button.js +11 -0
  94. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  95. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  96. package/dist/components/inputs/radio-button/radio-button.styles.js +28 -9
  97. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  98. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -0
  99. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  100. package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -0
  101. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  102. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  103. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +7 -0
  104. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  105. package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
  106. package/dist/components/inputs/radio-button-field/radio-button-field.template.js +2 -1
  107. package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
  108. package/dist/components/inputs/switch/switch.d.ts +8 -0
  109. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  110. package/dist/components/inputs/switch/switch.js +11 -0
  111. package/dist/components/inputs/switch/switch.js.map +1 -1
  112. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  113. package/dist/components/inputs/switch/switch.styles.js +14 -2
  114. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  115. package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
  116. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  117. package/dist/components/inputs/switch-field/switch-field.js +7 -0
  118. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  119. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  120. package/dist/components/inputs/switch-field/switch-field.styles.js +7 -0
  121. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  122. package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
  123. package/dist/components/inputs/switch-field/switch-field.template.js +1 -0
  124. package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
  125. package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
  126. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  127. package/dist/components/inputs/text-editor/text-editor.styles.js +7 -7
  128. package/dist/components/inputs/time-field/time-field.styles.js +2 -2
  129. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  130. package/dist/components/inputs/time-picker/time-picker.styles.js +2 -2
  131. package/dist/components/layout/box/box.d.ts +4 -2
  132. package/dist/components/layout/box/box.d.ts.map +1 -1
  133. package/dist/components/layout/box/box.js +3 -1
  134. package/dist/components/layout/box/box.js.map +1 -1
  135. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  136. package/dist/components/layout/box/box.styles.js +10 -5
  137. package/dist/components/layout/box/box.styles.js.map +1 -1
  138. package/dist/components/layout/card/card.d.ts +8 -6
  139. package/dist/components/layout/card/card.d.ts.map +1 -1
  140. package/dist/components/layout/card/card.i18n.d.ts +3 -1
  141. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  142. package/dist/components/layout/card/card.i18n.js +3 -1
  143. package/dist/components/layout/card/card.i18n.js.map +1 -1
  144. package/dist/components/layout/card/card.js +3 -3
  145. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  146. package/dist/components/layout/card/card.styles.js +12 -3
  147. package/dist/components/layout/card/card.styles.js.map +1 -1
  148. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  149. package/dist/components/layout/card/card.template.js +6 -6
  150. package/dist/components/layout/card/card.template.js.map +1 -1
  151. package/dist/components/layout/collection/collection.d.ts +6 -0
  152. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  153. package/dist/components/layout/collection/collection.js +6 -0
  154. package/dist/components/layout/collection/collection.js.map +1 -1
  155. package/dist/components/layout/collection/collection.styles.js +5 -5
  156. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  157. package/dist/components/layout/container/container.styles.js +5 -5
  158. package/dist/components/layout/container/container.styles.js.map +1 -1
  159. package/dist/components/layout/page-footer/page-footer.styles.js +5 -5
  160. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  161. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  162. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
  163. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -5
  164. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  165. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +9 -0
  166. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -1
  167. package/dist/components/layout/page-sections/hero/hero-corner.js +29 -1
  168. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -1
  169. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
  170. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +25 -18
  171. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  172. package/dist/components/layout/page-sections/hero/hero.d.ts +22 -16
  173. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  174. package/dist/components/layout/page-sections/hero/hero.js +51 -16
  175. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  176. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  177. package/dist/components/layout/page-sections/hero/hero.styles.js +8 -98
  178. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  179. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  180. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  181. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -5
  182. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  183. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  184. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  185. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +8 -8
  186. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  187. package/dist/components/layout/page-sections/page-section-controls.js +2 -2
  188. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  189. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -1
  190. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  191. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +63 -4
  192. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  193. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +6 -6
  194. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  195. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  196. package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
  197. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +5 -5
  198. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  199. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  200. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  201. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +8 -8
  202. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  203. package/dist/components/layout/popover/popover.js +2 -2
  204. package/dist/components/layout/popover/popover.js.map +1 -1
  205. package/dist/components/layout/popover/popover.styles.js +3 -3
  206. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  207. package/dist/components/layout/sheet/sheet.styles.js +4 -4
  208. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  209. package/dist/components/layout/spacer/spacer.styles.js +5 -5
  210. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  211. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  212. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -5
  213. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  214. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +5 -5
  215. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  216. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
  217. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
  218. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
  219. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  220. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
  221. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  222. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  223. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
  224. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  225. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
  226. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
  227. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
  228. package/dist/components/lists-and-tables/list/list.d.ts +5 -2
  229. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  230. package/dist/components/lists-and-tables/list/list.js +9 -4
  231. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  232. package/dist/components/lists-and-tables/list/list.styles.js +2 -2
  233. package/dist/components/lists-and-tables/list-item/list-item.d.ts +13 -6
  234. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  235. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +3 -1
  236. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  237. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
  238. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  239. package/dist/components/lists-and-tables/list-item/list-item.js +16 -8
  240. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  241. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  242. package/dist/components/lists-and-tables/list-item/list-item.styles.js +7 -1
  243. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  244. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  245. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  246. package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -2
  247. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  248. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -2
  249. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  250. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +7 -0
  251. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
  252. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
  253. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
  254. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
  255. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  256. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  257. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
  258. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  259. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  260. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  261. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +6 -3
  262. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  263. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  264. package/dist/components/lists-and-tables/table/table.js +4 -7
  265. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  266. package/dist/components/lists-and-tables/table/table.styles.js +2 -2
  267. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +2 -2
  268. package/dist/components/navigation/link/link.d.ts +6 -4
  269. package/dist/components/navigation/link/link.d.ts.map +1 -1
  270. package/dist/components/navigation/link/link.i18n.d.ts +3 -1
  271. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  272. package/dist/components/navigation/link/link.i18n.js +3 -1
  273. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  274. package/dist/components/navigation/link/link.js +2 -2
  275. package/dist/components/navigation/link/link.styles.js +2 -2
  276. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  277. package/dist/components/navigation/link/link.template.js +7 -8
  278. package/dist/components/navigation/link/link.template.js.map +1 -1
  279. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -1
  280. package/dist/components/navigation/pagination/pagination.styles.js +2 -2
  281. package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
  282. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  283. package/dist/components/navigation/skip-link/skip-link.js +7 -55
  284. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  285. package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
  286. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
  287. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  288. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  289. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +14 -9
  290. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  291. package/dist/components/status-and-feedback/badge/badge.d.ts +3 -2
  292. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  293. package/dist/components/status-and-feedback/badge/badge.js +13 -1
  294. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  295. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  296. package/dist/components/status-and-feedback/badge/badge.styles.js +18 -125
  297. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  298. package/dist/components/status-and-feedback/banner/banner.styles.js +15 -15
  299. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -2
  300. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  301. package/dist/components/status-and-feedback/notification/notification.styles.js +2 -2
  302. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  303. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
  304. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  305. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +2 -2
  306. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
  307. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
  308. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +14 -14
  309. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +2 -2
  310. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  311. package/dist/components/{visibility-mixin-Crbt8PFP.js → visibility-mixin-djNSG5ZN.js} +5 -5
  312. package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
  313. package/dist/css/rich-text.css +11 -11
  314. package/dist/css/themes/bruin.css +182 -0
  315. package/dist/css/themes/donkerblauw.css +182 -0
  316. package/dist/css/themes/donkerbruin.css +182 -0
  317. package/dist/css/themes/donkergeel.css +208 -0
  318. package/dist/css/themes/donkergroen.css +182 -0
  319. package/dist/css/themes/geel.css +208 -0
  320. package/dist/css/themes/groen.css +182 -0
  321. package/dist/css/themes/hemelblauw.css +182 -0
  322. package/dist/css/themes/lichtblauw.css +182 -0
  323. package/dist/css/themes/mintgroen.css +182 -0
  324. package/dist/css/themes/mosgroen.css +182 -0
  325. package/dist/css/themes/oranje.css +196 -0
  326. package/dist/css/themes/paars.css +182 -0
  327. package/dist/css/themes/robijnrood.css +196 -0
  328. package/dist/css/themes/rood.css +196 -0
  329. package/dist/css/themes/roze.css +182 -0
  330. package/dist/css/themes/violet.css +182 -0
  331. package/dist/css/themes.css +3092 -0
  332. package/dist/css/variables.css +97 -132
  333. package/dist/favicon/bruin/favicon.svg +5 -0
  334. package/dist/favicon/bruin/touch-icon.png +0 -0
  335. package/dist/favicon/donkerblauw/favicon.svg +5 -0
  336. package/dist/favicon/donkerblauw/touch-icon.png +0 -0
  337. package/dist/favicon/donkerbruin/favicon.svg +5 -0
  338. package/dist/favicon/donkerbruin/touch-icon.png +0 -0
  339. package/dist/favicon/donkergeel/favicon.svg +5 -0
  340. package/dist/favicon/donkergeel/touch-icon.png +0 -0
  341. package/dist/favicon/donkergroen/favicon.svg +5 -0
  342. package/dist/favicon/donkergroen/touch-icon.png +0 -0
  343. package/dist/favicon/geel/favicon.svg +5 -0
  344. package/dist/favicon/geel/touch-icon.png +0 -0
  345. package/dist/favicon/groen/favicon.svg +5 -0
  346. package/dist/favicon/groen/touch-icon.png +0 -0
  347. package/dist/favicon/hemelblauw/favicon.svg +5 -0
  348. package/dist/favicon/hemelblauw/touch-icon.png +0 -0
  349. package/dist/favicon/lichtblauw/favicon.svg +5 -0
  350. package/dist/favicon/lichtblauw/touch-icon.png +0 -0
  351. package/dist/favicon/mintgroen/favicon.svg +5 -0
  352. package/dist/favicon/mintgroen/touch-icon.png +0 -0
  353. package/dist/favicon/mosgroen/favicon.svg +5 -0
  354. package/dist/favicon/mosgroen/touch-icon.png +0 -0
  355. package/dist/favicon/oranje/favicon.svg +5 -0
  356. package/dist/favicon/oranje/touch-icon.png +0 -0
  357. package/dist/favicon/paars/favicon.svg +5 -0
  358. package/dist/favicon/paars/touch-icon.png +0 -0
  359. package/dist/favicon/robijnrood/favicon.svg +5 -0
  360. package/dist/favicon/robijnrood/touch-icon.png +0 -0
  361. package/dist/favicon/rood/favicon.svg +5 -0
  362. package/dist/favicon/rood/touch-icon.png +0 -0
  363. package/dist/favicon/roze/favicon.svg +5 -0
  364. package/dist/favicon/roze/touch-icon.png +0 -0
  365. package/dist/favicon/violet/favicon.svg +5 -0
  366. package/dist/favicon/violet/touch-icon.png +0 -0
  367. package/dist/nldd.min.js +989 -1033
  368. package/dist/translations/en-US.d.ts.map +1 -1
  369. package/dist/translations/en-US.js +24 -7
  370. package/dist/translations/en-US.js.map +1 -1
  371. package/dist/translations/fy.d.ts.map +1 -1
  372. package/dist/translations/fy.js +24 -7
  373. package/dist/translations/fy.js.map +1 -1
  374. package/dist/translations/nl.generated.d.ts +24 -7
  375. package/dist/translations/nl.generated.d.ts.map +1 -1
  376. package/dist/translations/nl.generated.js +2 -0
  377. package/dist/translations/nl.generated.js.map +1 -1
  378. package/dist/translations/pap-AW.d.ts.map +1 -1
  379. package/dist/translations/pap-AW.js +24 -7
  380. package/dist/translations/pap-AW.js.map +1 -1
  381. package/dist/translations/pap-CW.d.ts.map +1 -1
  382. package/dist/translations/pap-CW.js +24 -7
  383. package/dist/translations/pap-CW.js.map +1 -1
  384. package/dist/types/vue.d.ts +59 -33
  385. package/dist/utilities/focus-target.d.ts +23 -0
  386. package/dist/utilities/focus-target.d.ts.map +1 -0
  387. package/dist/utilities/focus-target.js +70 -0
  388. package/dist/utilities/focus-target.js.map +1 -0
  389. package/dist/utilities/link-hint.d.ts +18 -0
  390. package/dist/utilities/link-hint.d.ts.map +1 -0
  391. package/dist/utilities/link-hint.js +29 -0
  392. package/dist/utilities/link-hint.js.map +1 -0
  393. package/dist/utilities/page-section-mixin.d.ts +4 -3
  394. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  395. package/dist/utilities/page-section-mixin.js +6 -4
  396. package/dist/utilities/page-section-mixin.js.map +1 -1
  397. package/dist/utilities/visibility-mixin.styles.js +5 -5
  398. package/dist/utilities/visibility-mixin.styles.js.map +1 -1
  399. package/package.json +12 -7
  400. package/dist/components/breakpoints-CkxsiRgH.js +0 -10
@@ -5,4 +5,36 @@ export declare const breakpoints: {
5
5
  readonly mdMax: "1007px";
6
6
  readonly lgMin: "1008px";
7
7
  };
8
+ /**
9
+ * The same breakpoints in rem, for `@container` and `@media` conditions. With
10
+ * page zoom, Safari compares the width of a container that takes its size from
11
+ * the layout in zoomed pixels, so a px condition sees a narrow container as
12
+ * wide; a rem condition scales with the zoom. At the default font size of
13
+ * 16px they equal the px values.
14
+ */
15
+ export declare const queryBreakpoints: {
16
+ readonly smMin: "20rem";
17
+ readonly smMax: "40rem";
18
+ readonly mdMin: "40.0625rem";
19
+ readonly mdMax: "62.9375rem";
20
+ readonly lgMin: "63rem";
21
+ };
22
+ /**
23
+ * The root font size in CSS pixels: what 1rem is in an `@container` condition.
24
+ * An `@media` condition and `matchMedia` take the browser's initial font size
25
+ * instead, which differs only when a site sets `font-size` on `<html>`; pass
26
+ * them a `queryBreakpoints` string. It reads the computed style of the page,
27
+ * so call it in the browser (in connectedCallback, a resize observer or an
28
+ * event handler), not during SSR.
29
+ */
30
+ export declare function rootFontSize(): number;
31
+ /**
32
+ * A breakpoint in CSS pixels at the root font size, for the width of a
33
+ * container that script compares itself. It matches what an `@container`
34
+ * condition in the styles sees, also when someone has set a larger default
35
+ * font size. Comparing against more than
36
+ * one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
37
+ * `rootFontSize()`.
38
+ */
39
+ export declare function breakpointPx(name: keyof typeof queryBreakpoints, fontSize?: number): number;
8
40
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,OAAO,gBAAgB,EAAE,QAAQ,SAAiB,GAAG,MAAM,CAEnG"}
@@ -5,4 +5,40 @@ export const breakpoints = {
5
5
  mdMax: '1007px',
6
6
  lgMin: '1008px',
7
7
  };
8
+ /**
9
+ * The same breakpoints in rem, for `@container` and `@media` conditions. With
10
+ * page zoom, Safari compares the width of a container that takes its size from
11
+ * the layout in zoomed pixels, so a px condition sees a narrow container as
12
+ * wide; a rem condition scales with the zoom. At the default font size of
13
+ * 16px they equal the px values.
14
+ */
15
+ export const queryBreakpoints = {
16
+ smMin: '20rem',
17
+ smMax: '40rem',
18
+ mdMin: '40.0625rem',
19
+ mdMax: '62.9375rem',
20
+ lgMin: '63rem',
21
+ };
22
+ /**
23
+ * The root font size in CSS pixels: what 1rem is in an `@container` condition.
24
+ * An `@media` condition and `matchMedia` take the browser's initial font size
25
+ * instead, which differs only when a site sets `font-size` on `<html>`; pass
26
+ * them a `queryBreakpoints` string. It reads the computed style of the page,
27
+ * so call it in the browser (in connectedCallback, a resize observer or an
28
+ * event handler), not during SSR.
29
+ */
30
+ export function rootFontSize() {
31
+ return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
32
+ }
33
+ /**
34
+ * A breakpoint in CSS pixels at the root font size, for the width of a
35
+ * container that script compares itself. It matches what an `@container`
36
+ * condition in the styles sees, also when someone has set a larger default
37
+ * font size. Comparing against more than
38
+ * one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
39
+ * `rootFontSize()`.
40
+ */
41
+ export function breakpointPx(name, fontSize = rootFontSize()) {
42
+ return parseFloat(queryBreakpoints[name]) * fontSize;
43
+ }
8
44
  //# sourceMappingURL=breakpoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC"}
1
+ {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,OAAO;CACL,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY;IAC3B,OAAO,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC9E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAmC,EAAE,QAAQ,GAAG,YAAY,EAAE;IAC1F,OAAO,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC;AACtD,CAAC"}
@@ -25,7 +25,7 @@
25
25
  * @attr {string} end-icon - Icon name for the end icon (after text)
26
26
  * @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
27
27
  * @attr {string} href - When set, renders an <a> element instead of <button>
28
- * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2).
28
+ * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
29
29
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
30
30
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
31
31
  *
@@ -46,9 +46,11 @@ type ButtonType = 'button' | 'submit' | 'reset';
46
46
  type PopupType = 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid';
47
47
  declare const NLDDButton_base: (abstract new (...args: any[]) => LitElement & {
48
48
  translations: Partial<{
49
- 'components.button.opens-in-new-tab-label': string;
49
+ 'components.button.link-hint-new-tab-lowercase-label': string;
50
+ 'components.button.link-hint-external-lowercase-label': string;
51
+ 'components.button.link-hint-external-new-tab-lowercase-label': string;
50
52
  }>;
51
- _t(key: "components.button.opens-in-new-tab-label", vars?: Record<string, string | number>): string;
53
+ _t(key: "components.button.link-hint-new-tab-lowercase-label" | "components.button.link-hint-external-lowercase-label" | "components.button.link-hint-external-new-tab-lowercase-label", vars?: Record<string, string | number>): string;
52
54
  }) & typeof LitElement & (abstract new (...args: any[]) => import("../../../utilities/described-by-mixin.js").DescribedElement);
53
55
  export declare class NLDDButton extends NLDDButton_base {
54
56
  static styles: import("lit").CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"button.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;IAEH,mBAAmB,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAY;IAE3D;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAEjB,mBAAmB;IAEnB,IAAI,SAAM;IAEV,mMAAmM;IAEnM,cAAc,SAAM;IAGpB,UAAU,UAAS;IAEnB,mHAAmH;IAEnH,iBAAiB,UAAS;IAE1B,6FAA6F;IAE7F,SAAS,SAAM;IAEf,wFAAwF;IAExF,OAAO,SAAM;IAEb,0GAA0G;IAE1G,eAAe,SAAM;IAErB,4DAA4D;IAE5D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAuB;IAE5C;;6BAEyB;IACzB,MAAM,wBAAmC;IAEhC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAmC/D,OAAO,CAAC,YAAY;IAgCpB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAuBlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAI5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
@@ -1,5 +1,7 @@
1
1
  export declare const nlddButtonTranslations: {
2
- 'components.button.opens-in-new-tab-label': string;
2
+ 'components.button.link-hint-new-tab-lowercase-label': string;
3
+ 'components.button.link-hint-external-lowercase-label': string;
4
+ 'components.button.link-hint-external-new-tab-lowercase-label': string;
3
5
  };
4
6
  export type NLDDButtonTranslations = typeof nlddButtonTranslations;
5
7
  //# sourceMappingURL=button.i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;CAElC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
1
+ {"version":3,"file":"button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;CAIlC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export const nlddButtonTranslations = {
2
- 'components.button.opens-in-new-tab-label': 'Opent in nieuw tabblad',
2
+ 'components.button.link-hint-new-tab-lowercase-label': 'opent in nieuw tabblad',
3
+ 'components.button.link-hint-external-lowercase-label': 'andere website',
4
+ 'components.button.link-hint-external-new-tab-lowercase-label': 'andere website, opent in nieuw tabblad',
3
5
  };
4
6
  //# sourceMappingURL=button.i18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,0CAA0C,EAAE,wBAAwB;CACpE,CAAC"}
1
+ {"version":3,"file":"button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,qDAAqD,EAAE,wBAAwB;IAC/E,sDAAsD,EAAE,gBAAgB;IACxE,8DAA8D,EAAE,wCAAwC;CACxG,CAAC"}
@@ -25,7 +25,7 @@
25
25
  * @attr {string} end-icon - Icon name for the end icon (after text)
26
26
  * @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
27
27
  * @attr {string} href - When set, renders an <a> element instead of <button>
28
- * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2).
28
+ * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
29
29
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
30
30
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
31
31
  *
@@ -526,9 +526,9 @@ export const buttonStyles = css `
526
526
  color: var(--_button-is-active-secondary-content-color);
527
527
  }
528
528
 
529
- /* Visually-hidden "opens in new tab" announcement (href + target="_blank");
529
+ /* Visually-hidden link hint (another website, a new tab);
530
530
  part of the link's accessible name but never shown. Standard recipe. */
531
- .button__opens-in-new-tab-hint {
531
+ .button__link-hint {
532
532
  position: absolute;
533
533
  margin: -1px;
534
534
  border: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA+BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAkHlE"}
1
+ {"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA+BD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAgHlE"}
@@ -1,5 +1,6 @@
1
1
  import { html, nothing } from 'lit';
2
2
  import { linkRel } from '../../../utilities/link-rel.js';
3
+ import { linkHintKey } from '../../../utilities/link-hint.js';
3
4
  function renderContent(component) {
4
5
  // `button__text` falls back to the slot on falsy `text`. The property
5
6
  // defaults to '', so `text=""` and an absent attribute are indistinguishable
@@ -40,11 +41,10 @@ export function template(helpers) {
40
41
  // irrelevant ARIA attributes.
41
42
  const isDisclosure = this.expandable || !!this.popupType;
42
43
  const ariaExpanded = isDisclosure ? String(this.expanded) : (this.expanded ? 'true' : nothing);
43
- // A new-tab link is a change of context, so announce it (WCAG 2.1 SC 3.2.2).
44
- // Only the <a> path (href) can open a new tab.
45
- const opensInNewTabHint = this.href && this.target === '_blank'
46
- ? this._t('components.button.opens-in-new-tab-label')
47
- : '';
44
+ // A link to another website or a new tab says so (WCAG 2.1 SC 3.2.2).
45
+ // Only the <a> path (href) navigates.
46
+ const hintKey = linkHintKey(this.href, this.target);
47
+ const linkHint = hintKey ? this._t(`components.button.${hintKey}`) : '';
48
48
  // `supporting-text` renders in a sibling span next to the text; the
49
49
  // accessible-name flat-string algorithm concatenates them without a
50
50
  // separator ("OpslaanAlle wijzigingen"). With no explicit accessible-label,
@@ -54,14 +54,14 @@ export function template(helpers) {
54
54
  // those consumers should set accessible-label.)
55
55
  const baseAriaLabel = this.accessibleLabel
56
56
  || (this.supportingText ? [this.text, this.supportingText].filter(Boolean).join(', ') : '');
57
- // aria-label wins the accessible-name cascade, so when one is set the new-tab
57
+ // aria-label wins the accessible-name cascade, so when one is set the link
58
58
  // hint must live inside it; otherwise `nothing` leaves the name content-derived
59
59
  // and the visually-hidden span below appends the hint (it also reaches slotted
60
60
  // text, which can't be read into a string here).
61
61
  const ariaLabel = baseAriaLabel
62
- ? [baseAriaLabel, opensInNewTabHint].filter(Boolean).join(', ')
62
+ ? [baseAriaLabel, linkHint].filter(Boolean).join(', ')
63
63
  : nothing;
64
- const renderOpensInNewTabHint = !!opensInNewTabHint && !baseAriaLabel;
64
+ const renderLinkHint = !!linkHint && !baseAriaLabel;
65
65
  // Loading: an activity indicator overlays the (opacity-hidden) content. It
66
66
  // sits OUTSIDE the <button>/<a> (a sibling, overlaid via the host's
67
67
  // position:relative) so its role="status" live region can announce "Laden"
@@ -101,8 +101,7 @@ export function template(helpers) {
101
101
  @pointerdown=${this._popup.handlePointerdown}
102
102
  @click=${helpers.handleClick}
103
103
  >
104
- ${content}
105
- ${renderOpensInNewTabHint ? html `<span class="button__opens-in-new-tab-hint">${opensInNewTabHint}</span>` : nothing}
104
+ ${content}${renderLinkHint ? html `<span class="button__link-hint">, ${linkHint}</span>` : nothing}
106
105
  </a>
107
106
  ${loadingIndicator}
108
107
  ${popupSlot}
@@ -1 +1 @@
1
- {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAMzD,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAER,SAAS,CAAC,SAAS;;IAEtC,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;;iCAEX,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,2BAA2B;MAC5F,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,SAAS,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEpH,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;EACX,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAM9D,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAER,SAAS,CAAC,SAAS;;IAEtC,CAAC,CAAC,CAAC,IAAI,CAAA,iCAAiC;;iCAEX,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,2BAA2B;MAC5F,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,yCAAyC,SAAS,CAAC,cAAc,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEpH,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;;uBAEN,SAAS,CAAC,OAAO;;IAEpC,CAAC,CAAC,CAAC,IAAI,CAAA,+BAA+B;;IAEtC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;GAI5B,CAAC,CAAC,CAAC,OAAO;EACX,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ,CAAmB,OAAwB;IAClE,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAEpC,MAAM,WAAW,GAAG,CAAC,QAAQ;QAC5B,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE;KAChD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;I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AAiB;aACnC,OAAO,CAAC,WAAW;;MAE1B,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,qCAAqC,QAAQ,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEhG,gBAAgB;KAChB,SAAS;GACX,CAAC;IACH,CAAC;IAED,uEAAuE;IACvE,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,wEAAwE;IACxE,OAAO,IAAI,CAAA;kBACM,WAAW;UACnB,IAAI,CAAC,IAAI;eACJ,IAAI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,SAAS;mBACN,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;eAChB,QAAQ;cACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;mBACtB,IAAI,CAAC,aAAa,IAAI,OAAO;2BACrB,IAAI,CAAC,oBAAoB;0BAC1B,IAAI,CAAC,mBAAmB;kBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;YACnC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;IAChB,SAAS;EACX,CAAC;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { css, unsafeCSS } from 'lit';
2
- import { breakpoints } from "../../../assets/styles/breakpoints.js";
3
- const smMax = unsafeCSS(breakpoints.smMax);
2
+ import { queryBreakpoints } from "../../../assets/styles/breakpoints.js";
3
+ const smMax = unsafeCSS(queryBreakpoints.smMax);
4
4
  export const buttonGroupStyles = css `
5
5
  :host {
6
6
  box-sizing: border-box;
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.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,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
1
+ {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
@@ -20,7 +20,7 @@
20
20
  * @attr {string} accessible-label - Accessible label for screen readers. Overrides text as aria-label and title tooltip. Use when the visible text alone lacks context for screen readers (e.g. text "Toon", accessible-label "Toon wachtwoord"). The text is still shown visually in lg size regardless.
21
21
  * @attr {string} tooltip-timing - Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).
22
22
  * @attr {string} href - When set, renders an <a> element instead of <button>
23
- * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2).
23
+ * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
24
24
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
25
25
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
26
26
  * @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
@@ -48,9 +48,11 @@ export type ButtonType = 'button' | 'submit' | 'reset';
48
48
  export type PopupType = 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid';
49
49
  declare const NLDDIconButton_base: (abstract new (...args: any[]) => LitElement & {
50
50
  translations: Partial<{
51
- 'components.icon-button.opens-in-new-tab-label': string;
51
+ 'components.icon-button.link-hint-new-tab-lowercase-label': string;
52
+ 'components.icon-button.link-hint-external-lowercase-label': string;
53
+ 'components.icon-button.link-hint-external-new-tab-lowercase-label': string;
52
54
  }>;
53
- _t(key: "components.icon-button.opens-in-new-tab-label", vars?: Record<string, string | number>): string;
55
+ _t(key: "components.icon-button.link-hint-new-tab-lowercase-label" | "components.icon-button.link-hint-external-lowercase-label" | "components.icon-button.link-hint-external-new-tab-lowercase-label", vars?: Record<string, string | number>): string;
54
56
  }) & typeof LitElement;
55
57
  export declare class NLDDIconButton extends NLDDIconButton_base {
56
58
  static styles: import("lit").CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO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E3E,IAAI,SAAM;IAEV;2EACuE;IAEvE,IAAI,SAAM;IAEV;kEAC8D;IAE9D,eAAe,SAAM;IAErB;6EACyE;IAEzE,aAAa,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAW;IAEvD,4DAA4D;IAE5D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,wDAAwD;IACxD,OAAO,KAAK,QAAQ,GAInB;IAED,OAAO,CAAC,WAAW,CAAS;IAE5B;;6BAEyB;IACzB,MAAM,wBAAmC;IAEhC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA6B3C;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAM5C,iBAAiB,IAAI,IAAI;IAIhB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
1
+ {"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAE9E,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,UAAU,GACnB,SAAS,GACT,WAAW,GACX,aAA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AAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAErC,+DAA+D;IAE/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;;;OAGG;IAEH,GAAG,EAAE,MAAM,GAAG,SAAS,CAAa;IAEpC,wDAAwD;IACxD,OAAO,KAAK,QAAQ,GAInB;IAED,OAAO,CAAC,WAAW,CAAS;IAE5B;;6BAEyB;IACzB,MAAM,wBAAmC;IAEhC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/D,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI;IA6B3C;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAM5C,iBAAiB,IAAI,IAAI;IAIhB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
@@ -1,5 +1,7 @@
1
1
  export declare const nlddIconButtonTranslations: {
2
- 'components.icon-button.opens-in-new-tab-label': string;
2
+ 'components.icon-button.link-hint-new-tab-lowercase-label': string;
3
+ 'components.icon-button.link-hint-external-lowercase-label': string;
4
+ 'components.icon-button.link-hint-external-new-tab-lowercase-label': string;
3
5
  };
4
6
  export type NLDDIconButtonTranslations = typeof nlddIconButtonTranslations;
5
7
  //# sourceMappingURL=icon-button.i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;CAEtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC"}
1
+ {"version":3,"file":"icon-button.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;CAItC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export const nlddIconButtonTranslations = {
2
- 'components.icon-button.opens-in-new-tab-label': 'Opent in nieuw tabblad',
2
+ 'components.icon-button.link-hint-new-tab-lowercase-label': 'opent in nieuw tabblad',
3
+ 'components.icon-button.link-hint-external-lowercase-label': 'andere website',
4
+ 'components.icon-button.link-hint-external-new-tab-lowercase-label': 'andere website, opent in nieuw tabblad',
3
5
  };
4
6
  //# sourceMappingURL=icon-button.i18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,+CAA+C,EAAE,wBAAwB;CACzE,CAAC"}
1
+ {"version":3,"file":"icon-button.i18n.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,0DAA0D,EAAE,wBAAwB;IACpF,2DAA2D,EAAE,gBAAgB;IAC7E,mEAAmE,EAAE,wCAAwC;CAC7G,CAAC"}
@@ -26,7 +26,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
26
26
  * @attr {string} accessible-label - Accessible label for screen readers. Overrides text as aria-label and title tooltip. Use when the visible text alone lacks context for screen readers (e.g. text "Toon", accessible-label "Toon wachtwoord"). The text is still shown visually in lg size regardless.
27
27
  * @attr {string} tooltip-timing - Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).
28
28
  * @attr {string} href - When set, renders an <a> element instead of <button>
29
- * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2).
29
+ * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
30
30
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
31
31
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
32
32
  * @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,kCAAkC,CAAC;AAwB1C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,wCAqH5C"}
1
+ {"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,kCAAkC,CAAC;AAwB1C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,wCAoH5C"}
@@ -1,5 +1,6 @@
1
1
  import { html, nothing } from 'lit';
2
2
  import { linkRel } from '../../../utilities/link-rel.js';
3
+ import { linkHintKey } from '../../../utilities/link-hint.js';
3
4
  import '../../content/tooltip/tooltip.js';
4
5
  function renderContent(component) {
5
6
  return html `
@@ -23,18 +24,17 @@ function renderContent(component) {
23
24
  `;
24
25
  }
25
26
  export function template() {
26
- // A new-tab link is a change of context, so announce it (WCAG 2.1 SC 3.2.2).
27
+ // A link to another website or a new tab says so (WCAG 2.1 SC 3.2.2).
27
28
  // The control always carries an aria-label, which wins the accessible-name
28
29
  // cascade, so fold the hint into it rather than into a hidden span (which it
29
- // would override). Only the <a> path (href) can open a new tab.
30
- const opensInNewTabHint = this.href && this.target === '_blank'
31
- ? this._t('components.icon-button.opens-in-new-tab-label')
32
- : '';
30
+ // would override). Only the <a> path (href) navigates.
31
+ const hintKey = linkHintKey(this.href, this.target);
32
+ const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : '';
33
33
  const baseLabel = this.accessibleLabel || this.text || '';
34
- const label = [baseLabel, opensInNewTabHint].filter(Boolean).join(', ') || nothing;
34
+ const label = [baseLabel, linkHint].filter(Boolean).join(', ') || nothing;
35
35
  const content = renderContent(this);
36
36
  // Tooltip text: accessible-label always, or text when not visible (non-lg).
37
- // The new-tab hint is screen-reader only, so it stays out of the visual tooltip.
37
+ // The link hint is screen-reader only, so it stays out of the visual tooltip.
38
38
  const tooltipText = this.accessibleLabel
39
39
  || ((this.size !== 'lg' || this.hideLgText) ? this.text : '');
40
40
  // `expandable` (disclosure widget signal) or `popup-type` (popup container
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,kCAAkC,CAAC;AAE1C,SAAS,aAAa,CAAC,SAAyB;IAC/C,OAAO,IAAI,CAAA;;;MAGN,SAAS,CAAC,IAAI;QACf,CAAC,CAAC,IAAI,CAAA,mBAAmB,SAAS,CAAC,IAAI,eAAe;QACtD,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,iBAAiB;;cAEzD;;KAET,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;IAI5B,CAAC,CAAC,CAAC,OAAO;;IAEV,SAAS,CAAC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;QACnE,sEAAsE;QACtE,uEAAuE;QACvE,wEAAwE;QACxE,OAAO,IAAI,CAAA;;WAEF,IAAI,CAAC,IAAI;gBACJ,IAAI,CAAC,QAAQ;oBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;iBACnC,KAAK;oBACF,IAAI,CAAC,SAAS,IAAI,OAAO;oBACzB,YAAY;gBAChB,QAAQ;eACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;oBACtB,IAAI,CAAC,aAAa,IAAI,OAAO;4BACrB,IAAI,CAAC,oBAAoB;2BAC1B,IAAI,CAAC,mBAAmB;mBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;aACnC,IAAI,CAAC,YAAY;;MAExB,OAAO;;GAEV,CAAC;IACH,CAAC,CAAC;IAEF,0EAA0E;IAC1E,0EAA0E;IAC1E,+BAA+B;IAC/B,MAAM,OAAO,GAAG,WAAW,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO;QAC5D,CAAC,CAAC,IAAI,CAAA;;WAEG,WAAW;aACT,IAAI,CAAC,aAAa;;MAEzB,YAAY,EAAE;;GAEjB;QACD,CAAC,CAAC,YAAY,EAAE,CAAC;IAElB,4EAA4E;IAC5E,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,SAAS,GAAG,IAAI,CAAA,kCAAkC,IAAI,CAAC,MAAM,CAAC,gBAAgB,UAAU,CAAC;IAE/F,OAAO,IAAI,CAAA,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,EAAE,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,W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IAC5E,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,SAAS,GAAG,IAAI,CAAA,kCAAkC,IAAI,CAAC,MAAM,CAAC,gBAAgB,UAAU,CAAC;IAE/F,OAAO,IAAI,CAAA,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,EAAE,CAAC;AACxD,CAAC"}
@@ -18,7 +18,7 @@ import '../../content/icon/icon.js';
18
18
  import '../../content/keyboard-shortcut/keyboard-shortcut.js';
19
19
  import '../../status-and-feedback/inline-dialog/inline-dialog.js';
20
20
  import { isKeyboardMode, isTouchMode } from '../../../utilities/input-modality.js';
21
- import { breakpoints } from '../../../assets/styles/breakpoints.js';
21
+ import { queryBreakpoints } from '../../../assets/styles/breakpoints.js';
22
22
  import { translate } from '../../../utilities/translations.js';
23
23
  /** Makes `host` a list item while its menu is a navigation menu, and takes
24
24
  * that back when it is not. A `listitem` the consumer set by hand on an item
@@ -1783,7 +1783,7 @@ export class NLDDMenu extends LitElement {
1783
1783
  // Use the shared breakpoint constant so the JS-side threshold can't
1784
1784
  // drift from the CSS-side one (spacer.styles.ts and friends pull
1785
1785
  // from the same source).
1786
- NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${breakpoints.smMax})`);
1786
+ NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${queryBreakpoints.smMax})`);
1787
1787
  }
1788
1788
  return NLDDMenu._drillInModeQuery;
1789
1789
  }