@nldd/design-system 0.8.55 → 0.8.57

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 (203) hide show
  1. package/README.md +15 -0
  2. package/dist/components/actions/button/button.d.ts +13 -4
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +23 -3
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  7. package/dist/components/actions/button/button.styles.js +269 -87
  8. package/dist/components/actions/button/button.styles.js.map +1 -1
  9. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  10. package/dist/components/actions/button/button.template.js +33 -17
  11. package/dist/components/actions/button/button.template.js.map +1 -1
  12. package/dist/components/actions/button-bar/button-bar.d.ts +2 -2
  13. package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
  14. package/dist/components/actions/button-bar/button-bar.js +3 -1
  15. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  16. package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
  17. package/dist/components/actions/button-bar/button-bar.styles.js +28 -4
  18. package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.d.ts +14 -4
  20. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.js +23 -3
  22. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  23. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  24. package/dist/components/actions/icon-button/icon-button.styles.js +127 -63
  25. package/dist/components/actions/icon-button/icon-button.styles.js.map +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 +4 -2
  28. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  29. package/dist/components/actions/menu/menu.d.ts +9 -0
  30. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  31. package/dist/components/actions/menu/menu.js +27 -2
  32. package/dist/components/actions/menu/menu.js.map +1 -1
  33. package/dist/components/actions/split-button/split-button.d.ts +30 -20
  34. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  35. package/dist/components/actions/split-button/split-button.js +73 -49
  36. package/dist/components/actions/split-button/split-button.js.map +1 -1
  37. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  38. package/dist/components/actions/split-button/split-button.styles.js +39 -3
  39. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  40. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  41. package/dist/components/actions/split-button/split-button.template.js +6 -1
  42. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  43. package/dist/components/actions/toolbar/toolbar.d.ts +91 -14
  44. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  45. package/dist/components/actions/toolbar/toolbar.js +299 -103
  46. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  47. package/dist/components/actions/toolbar/toolbar.styles.d.ts +2 -0
  48. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  49. package/dist/components/actions/toolbar/toolbar.styles.js +109 -41
  50. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  51. package/dist/components/actions/toolbar/toolbar.template.d.ts +7 -4
  52. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  53. package/dist/components/actions/toolbar/toolbar.template.js +22 -69
  54. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  55. package/dist/components/components.js +1 -1
  56. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  57. package/dist/components/content/code-viewer/code-viewer.styles.js +4 -0
  58. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  59. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  60. package/dist/components/content/icon/icon-aliases.js +48 -2
  61. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  62. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  63. package/dist/components/content/icon/icon-registry.js +37 -2
  64. package/dist/components/content/icon/icon-registry.js.map +1 -1
  65. package/dist/components/content/image/image.d.ts +1 -1
  66. package/dist/components/content/image/image.d.ts.map +1 -1
  67. package/dist/components/content/image/image.i18n.d.ts +1 -1
  68. package/dist/components/content/image/image.i18n.js +1 -1
  69. package/dist/components/content/image/image.i18n.js.map +1 -1
  70. package/dist/components/content/image/image.js +7 -2
  71. package/dist/components/content/image/image.js.map +1 -1
  72. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  73. package/dist/components/content/image/image.styles.js +21 -30
  74. package/dist/components/content/image/image.styles.js.map +1 -1
  75. package/dist/components/content/image/image.template.d.ts.map +1 -1
  76. package/dist/components/content/image/image.template.js +4 -11
  77. package/dist/components/content/image/image.template.js.map +1 -1
  78. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  79. package/dist/components/{index-C3JellW2.js → index-DHU98C6V.js} +1561 -783
  80. package/dist/components/inputs/combo-box/combo-box.styles.js +1 -1
  81. package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
  82. package/dist/components/inputs/dropdown/dropdown.styles.js +31 -18
  83. package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
  84. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -1
  85. package/dist/components/inputs/password-field/password-field.styles.js +1 -1
  86. package/dist/components/inputs/search-field/search-field.styles.js +1 -1
  87. package/dist/components/inputs/segmented-control/segmented-control.d.ts +5 -4
  88. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  89. package/dist/components/inputs/segmented-control/segmented-control.js +4 -3
  90. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  91. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  92. package/dist/components/inputs/segmented-control/segmented-control.styles.js +59 -9
  93. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  94. package/dist/components/inputs/segmented-control/segmented-control.template.js +3 -3
  95. package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
  96. package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
  97. package/dist/components/inputs/stepper/stepper.styles.js +16 -5
  98. package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
  99. package/dist/components/inputs/stepper/stepper.template.d.ts.map +1 -1
  100. package/dist/components/inputs/stepper/stepper.template.js +2 -0
  101. package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
  102. package/dist/components/inputs/text-field/text-field.styles.js +1 -1
  103. package/dist/components/inputs/toggle-button/toggle-button.d.ts +4 -3
  104. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  105. package/dist/components/inputs/toggle-button/toggle-button.js +3 -2
  106. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  107. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  108. package/dist/components/inputs/toggle-button/toggle-button.styles.js +53 -17
  109. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  110. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  111. package/dist/components/inputs/toggle-button/toggle-button.template.js +3 -4
  112. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  113. package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
  114. package/dist/components/inputs/token/token.styles.js +24 -7
  115. package/dist/components/inputs/token/token.styles.js.map +1 -1
  116. package/dist/components/inputs/token/token.template.d.ts.map +1 -1
  117. package/dist/components/inputs/token/token.template.js +1 -0
  118. package/dist/components/inputs/token/token.template.js.map +1 -1
  119. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  120. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  121. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +0 -5
  122. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  123. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -0
  124. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  125. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
  126. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -0
  127. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  128. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts +1 -1
  129. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
  130. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +7 -3
  131. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
  132. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -0
  133. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  134. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
  135. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +5 -0
  136. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  137. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts +1 -1
  138. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
  139. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +7 -3
  140. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
  141. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  142. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  143. package/dist/components/layout/page-sections/simple-section/simple-section.js +0 -5
  144. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  145. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -0
  146. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  147. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
  148. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +5 -0
  149. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  150. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts +1 -1
  151. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
  152. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +7 -3
  153. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
  154. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  155. package/dist/components/lists-and-tables/table/table.styles.js +7 -0
  156. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  157. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +2 -22
  158. package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  159. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +0 -1
  160. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -1
  161. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +0 -1
  162. package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
  163. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +2 -52
  164. package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
  165. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  166. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +1 -47
  167. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  168. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
  169. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -17
  170. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
  171. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  172. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +39 -19
  173. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  174. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  175. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +4 -0
  176. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  177. package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  178. package/dist/components/navigation/pagination/pagination.styles.js +35 -15
  179. package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
  180. package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
  181. package/dist/components/navigation/pagination/pagination.template.js +2 -0
  182. package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
  183. package/dist/components/navigation/tab-bar/tab-bar.d.ts +11 -4
  184. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  185. package/dist/components/navigation/tab-bar/tab-bar.js +17 -2
  186. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  187. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  188. package/dist/components/navigation/tab-bar/tab-bar.styles.js +74 -18
  189. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  190. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  191. package/dist/components/navigation/tab-bar/tab-bar.template.js +4 -1
  192. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  193. package/dist/components/{prism-python-QiimuE8j.js → prism-python-9EoInm_N.js} +1 -1
  194. package/dist/components/{prism-rust-D4vfxUpk.js → prism-rust-Chzr6sBk.js} +1 -1
  195. package/dist/components/{prism-typescript-Dy2F4cF2.js → prism-typescript-DPJmu--x.js} +1 -1
  196. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +2 -2
  197. package/dist/css/rich-text.css +6 -1
  198. package/dist/css/settings.css +139 -35
  199. package/dist/utilities/page-section-mixin.d.ts +1 -0
  200. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  201. package/dist/utilities/page-section-mixin.js +9 -0
  202. package/dist/utilities/page-section-mixin.js.map +1 -1
  203. package/package.json +1 -1
@@ -16,10 +16,7 @@ export const imageStyles = css `
16
16
  --_error-text-color: var(--components-image-error-text-color);
17
17
  --_error-font: var(--components-image-error-font);
18
18
  --_error-padding: var(--primitives-space-8);
19
- --_error-card-padding-block: var(--primitives-space-12);
20
- --_error-card-padding-inline: var(--primitives-space-16);
21
- --_error-card-gap: var(--primitives-space-2);
22
- --_error-card-corner-radius: var(--primitives-corner-radius-md);
19
+ --_error-gap: var(--primitives-space-2);
23
20
  --_caption-row-gap: var(--primitives-space-8);
24
21
  --_object-fit: cover;
25
22
  --_object-position: center;
@@ -55,11 +52,12 @@ export const imageStyles = css `
55
52
 
56
53
 
57
54
  /* ## Shape variants
58
- Rounded is the default (already set via the --_corner-radius in :host
59
- pointing at the design-system token). Square overrides to 0, circle to
60
- 50% for avatar-style use (combine with aspect-ratio 1/1 for a true circle). */
55
+ The :host base --_corner-radius is the design-system rounded token, used by
56
+ shape="rounded". The default shape is "square" (set on the property), which
57
+ overrides to 0; circle overrides to 50% for avatar-style use (combine with
58
+ aspect-ratio 1/1 for a true circle). */
61
59
 
62
- :host([shape="square"]) { --_corner-radius: 0; }
60
+ :host([shape="square"]) { --_corner-radius: var(--primitives-corner-radius-none); }
63
61
  :host([shape="circle"]) { --_corner-radius: 50%; }
64
62
 
65
63
 
@@ -78,14 +76,14 @@ export const imageStyles = css `
78
76
 
79
77
  /* # Media wrapper
80
78
  The box that constrains the image. aspect-ratio is set as an inline style
81
- from the component when provided, so we don't need a CSS var. The
82
- background acts as a placeholder while the image loads. */
79
+ from the component when provided, so we don't need a CSS var. The media is
80
+ transparent by default; an LQIP paints it while loading, and the error
81
+ state paints it grey (see "Error state" below). */
83
82
 
84
83
  .image__media {
85
84
  display: block;
86
85
  position: relative;
87
86
  overflow: hidden;
88
- background-color: var(--_background-color);
89
87
  max-width: 100%;
90
88
  border-radius: var(--_corner-radius);
91
89
  }
@@ -304,7 +302,7 @@ export const imageStyles = css `
304
302
  transition: opacity 300ms ease-out;
305
303
  }
306
304
 
307
- .image__media--lqip .image__img--loaded {
305
+ :host([loaded]) .image__media--lqip .image__img {
308
306
  opacity: 1;
309
307
  }
310
308
 
@@ -321,7 +319,7 @@ export const imageStyles = css `
321
319
  Listeners stay attached — only DOM removal detaches them — so the next
322
320
  src change still triggers load/error. */
323
321
 
324
- .image__img--errored {
322
+ :host([errored]) .image__img {
325
323
  display: none;
326
324
  }
327
325
 
@@ -345,31 +343,23 @@ export const imageStyles = css `
345
343
 
346
344
 
347
345
  /* # Error state
348
- Centred card with icon + alt-text shown when the image fails to load.
349
- Sits over whatever background --_background-color provides (the LQIP
350
- gradient when present, otherwise the neutral fallback color). The
351
- card has its own neutral background so the icon + label stay legible
352
- against the LQIP behind it. */
346
+ Centred icon + alt-text shown when the image fails to load. The media is
347
+ painted grey (--_background-color) via :host([errored]) so the icon and
348
+ label stay legible no separate card needed. */
349
+
350
+ :host([errored]) .image__media {
351
+ background-color: var(--_background-color);
352
+ }
353
353
 
354
354
  .image__error {
355
355
  position: absolute;
356
356
  inset: 0;
357
357
  display: flex;
358
+ flex-direction: column;
358
359
  align-items: center;
359
360
  justify-content: center;
361
+ gap: var(--_error-gap);
360
362
  padding: var(--_error-padding);
361
- }
362
-
363
- .image__error-card {
364
- box-sizing: border-box;
365
- display: flex;
366
- flex-direction: column;
367
- align-items: center;
368
- max-width: 100%;
369
- padding: var(--_error-card-padding-block) var(--_error-card-padding-inline);
370
- gap: var(--_error-card-gap);
371
- background-color: var(--_background-color);
372
- border-radius: var(--_error-card-corner-radius);
373
363
  color: var(--_error-text-color);
374
364
  font: var(--_error-font);
375
365
  text-align: center;
@@ -389,6 +379,7 @@ export const imageStyles = css `
389
379
  gap: var(--_caption-row-gap);
390
380
  color: var(--_caption-color);
391
381
  font: var(--_caption-font);
382
+ text-wrap: pretty;
392
383
  }
393
384
 
394
385
  .image__credit {
@@ -1 +1 @@
1
- {"version":3,"file":"image.styles.js","sourceRoot":"","sources":["../../../../src/components/content/image/image.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;IAyB1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoFlB,YAAY;;;;;;;;;;;;;;IAcZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Rf,CAAC"}
1
+ {"version":3,"file":"image.styles.js","sourceRoot":"","sources":["../../../../src/components/content/image/image.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;IAsB1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqFlB,YAAY;;;;;;;;;;;;;;IAcZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwRf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/image/image.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,wCA8GjD"}
1
+ {"version":3,"file":"image.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/image/image.template.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,wCAsGjD"}
@@ -29,13 +29,8 @@ export function imageTemplate(component) {
29
29
  // calm surface instead of a distracting gradient.
30
30
  'image__media--lqip': hasLqip && !component._imageErrored,
31
31
  });
32
- const imgClasses = classMap({
33
- 'image__img': true,
34
- 'image__img--loaded': component._imageLoaded,
35
- 'image__img--errored': component._imageErrored,
36
- });
37
32
  const fallbackImg = html `
38
- <img class=${imgClasses}
33
+ <img class="image__img"
39
34
  src=${component.src || nothing}
40
35
  alt=${component.decorative ? '' : component.alt}
41
36
  aria-hidden=${component.decorative ? 'true' : nothing}
@@ -63,10 +58,8 @@ export function imageTemplate(component) {
63
58
  <div class="image__error"
64
59
  aria-hidden=${component.decorative ? 'true' : nothing}
65
60
  >
66
- <div class="image__error-card">
67
- <nldd-icon name="broken-image" size="32" color="secondary-content"></nldd-icon>
68
- ${component.decorative ? nothing : html `<span class="image__error-text">${component.alt}</span>`}
69
- </div>
61
+ <nldd-icon name="broken-image" size="32" color="secondary-content"></nldd-icon>
62
+ ${component.decorative ? nothing : html `<span class="image__error-text">${component.alt}</span>`}
70
63
  </div>
71
64
  ` : nothing;
72
65
  // Visually-hidden live region announces "image failed to load" once the
@@ -78,7 +71,7 @@ export function imageTemplate(component) {
78
71
  // Append the alt only — never the raw src. A CDN URL with a long path
79
72
  // and query string is noise to AT users; when alt is empty (valid in
80
73
  // production, DEV-warned) we announce the plain translated message.
81
- const errorBase = component._t('components.image.error-status-message');
74
+ const errorBase = component._t('components.image.error-text');
82
75
  const errorStatusMessage = component._imageErrored && !component.decorative
83
76
  ? (component.alt ? `${errorBase}: ${component.alt}` : errorBase)
84
77
  : '';
@@ -1 +1 @@
1
- {"version":3,"file":"image.template.js","sourceRoot":"","sources":["../../../../src/components/content/image/image.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,MAAM,UAAU,aAAa,CAAC,SAAoB;IACjD,mEAAmE;IACnE,uEAAuE;IACvE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MAAM,KAAK,GAAG,IAAI,CAAA;eACJ,YAAY;WAChB,QAAQ,CAAC,WAAW,CAAC;;WAErB,WAAW;KACjB,YAAY;KACZ,UAAU;;EAEb,CAAC;IAEF,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAA;;KAEP,KAAK;;uCAE6B,SAAS,CAAC,oBAAoB;OAC9D,SAAS,CAAC,OAAO;MAClB,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,+BAA+B,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;;;EAG7F,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"image.template.js","sourceRoot":"","sources":["../../../../src/components/content/image/image.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,MAAM,UAAU,aAAa,CAAC,SAAoB;IACjD,mEAAmE;IACnE,uEAAuE;IACvE,+CAA+C;IAC/C,wEAAwE;IACxE,wEAAwE;IACxE,wEAAwE;IACxE,wEAAwE;IACxE,8CAA8C;IAC9C,MAAM,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,OAAO,GAAG,UAAU,KAAK,IAAI,CAAC;IACpC,MAAM,WAAW,GAA2B,EAAE,CAAC;IAC/C,IAAI,SAAS,CAAC,eAAe;QAAE,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC,eAAe,CAAC;IACnF,IAAI,OAAO,EAAE,CAAC;QACb,WAAW,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC7D,UAAU,CAA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AAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,GAAG,SAAS;;EAEjG,CAAC,CAAC,CAAC,OAAO,CAAC;IAEZ,wEAAwE;IACxE,yEAAyE;IACzE,wEAAwE;IACxE,sEAAsE;IACtE,sEAAsE;IACtE,uDAAuD;IACvD,sEAAsE;IACtE,qEAAqE;IACrE,oEAAoE;IACpE,MAAM,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC,6BAA6B,CAAC,CAAC;IAC9D,MAAM,kBAAkB,GAAG,SAAS,CAAC,aAAa,IAAI,CAAC,SAAS,CAAC,UAAU;QAC1E,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QAChE,CAAC,CAAC,EAAE,CAAC;IACN,MAAM,UAAU,GAAG,IAAI,CAAA,kDAAkD,kBAAkB,SAAS,CAAC;IAErG,MAAM,KAAK,GAAG,IAAI,CAAA;eACJ,YAAY;WAChB,QAAQ,CAAC,WAAW,CAAC;;WAErB,WAAW;KACjB,YAAY;KACZ,UAAU;;EAEb,CAAC;IAEF,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAA;;KAEP,KAAK;;uCAE6B,SAAS,CAAC,oBAAoB;OAC9D,SAAS,CAAC,OAAO;MAClB,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,+BAA+B,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,OAAO;;;EAG7F,CAAC;AACH,CAAC"}
@@ -144,7 +144,7 @@ NLDDLqipEncoder.styles = css `
144
144
  padding: var(--primitives-space-8) var(--primitives-space-16);
145
145
  border-radius: var(--primitives-corner-radius-md);
146
146
  background-color: var(--semantics-buttons-accent-filled-background-color);
147
- color: var(--semantics-buttons-accent-filled-content-color);
147
+ color: var(--semantics-buttons-accent-filled-primary-content-color);
148
148
  cursor: pointer;
149
149
  font: var(--primitives-font-body-md-regular-snug);
150
150
  }