@nasa-hds/core 0.0.0 → 0.9.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 (240) hide show
  1. package/README.md +14 -14
  2. package/dist/assets/img/hds-icons/archive.svg +4 -4
  3. package/dist/assets/img/hds-icons/arrow-chevron-down.svg +3 -3
  4. package/dist/assets/img/hds-icons/arrow-chevron-left.svg +3 -3
  5. package/dist/assets/img/hds-icons/arrow-chevron-right.svg +3 -3
  6. package/dist/assets/img/hds-icons/arrow-chevron-up.svg +3 -3
  7. package/dist/assets/img/hds-icons/arrow-circle-double-left.svg +5 -5
  8. package/dist/assets/img/hds-icons/arrow-circle-double-right.svg +5 -5
  9. package/dist/assets/img/hds-icons/arrow-circle-down.svg +4 -4
  10. package/dist/assets/img/hds-icons/arrow-circle-left.svg +4 -4
  11. package/dist/assets/img/hds-icons/arrow-circle-right.svg +4 -4
  12. package/dist/assets/img/hds-icons/arrow-circle-up.svg +4 -4
  13. package/dist/assets/img/hds-icons/arrow-filled-down.svg +3 -3
  14. package/dist/assets/img/hds-icons/arrow-filled-left.svg +3 -3
  15. package/dist/assets/img/hds-icons/arrow-filled-right.svg +3 -3
  16. package/dist/assets/img/hds-icons/arrow-filled-up.svg +3 -3
  17. package/dist/assets/img/hds-icons/arrow-line-diagonal.svg +3 -3
  18. package/dist/assets/img/hds-icons/arrow-line-down.svg +3 -3
  19. package/dist/assets/img/hds-icons/arrow-line-left.svg +3 -3
  20. package/dist/assets/img/hds-icons/arrow-line-right.svg +3 -3
  21. package/dist/assets/img/hds-icons/arrow-line-up.svg +3 -3
  22. package/dist/assets/img/hds-icons/asteroid.svg +4 -4
  23. package/dist/assets/img/hds-icons/calendar.svg +3 -3
  24. package/dist/assets/img/hds-icons/check-circled.svg +3 -3
  25. package/dist/assets/img/hds-icons/check.svg +3 -3
  26. package/dist/assets/img/hds-icons/close.svg +3 -3
  27. package/dist/assets/img/hds-icons/collapse.svg +6 -6
  28. package/dist/assets/img/hds-icons/comment.svg +3 -3
  29. package/dist/assets/img/hds-icons/download.svg +4 -4
  30. package/dist/assets/img/hds-icons/error.svg +3 -3
  31. package/dist/assets/img/hds-icons/expand.svg +3 -3
  32. package/dist/assets/img/hds-icons/facility.svg +3 -3
  33. package/dist/assets/img/hds-icons/file-archive.svg +11 -11
  34. package/dist/assets/img/hds-icons/file-audio.svg +11 -11
  35. package/dist/assets/img/hds-icons/file-code.svg +11 -11
  36. package/dist/assets/img/hds-icons/file-document.svg +11 -11
  37. package/dist/assets/img/hds-icons/file-generic.svg +10 -10
  38. package/dist/assets/img/hds-icons/file-image.svg +11 -11
  39. package/dist/assets/img/hds-icons/file-spreadsheet.svg +11 -11
  40. package/dist/assets/img/hds-icons/file-video.svg +11 -11
  41. package/dist/assets/img/hds-icons/filter.svg +8 -8
  42. package/dist/assets/img/hds-icons/gas-giant.svg +3 -3
  43. package/dist/assets/img/hds-icons/info.svg +3 -3
  44. package/dist/assets/img/hds-icons/list.svg +8 -8
  45. package/dist/assets/img/hds-icons/location.svg +3 -3
  46. package/dist/assets/img/hds-icons/map.svg +3 -3
  47. package/dist/assets/img/hds-icons/menu.svg +5 -5
  48. package/dist/assets/img/hds-icons/minus.svg +3 -3
  49. package/dist/assets/img/hds-icons/moon.svg +3 -3
  50. package/dist/assets/img/hds-icons/notification.svg +3 -3
  51. package/dist/assets/img/hds-icons/orbiter.svg +12 -12
  52. package/dist/assets/img/hds-icons/pause.svg +4 -4
  53. package/dist/assets/img/hds-icons/play.svg +3 -3
  54. package/dist/assets/img/hds-icons/plus.svg +4 -4
  55. package/dist/assets/img/hds-icons/print.svg +10 -10
  56. package/dist/assets/img/hds-icons/quote.svg +4 -4
  57. package/dist/assets/img/hds-icons/rotate.svg +5 -5
  58. package/dist/assets/img/hds-icons/rover.svg +3 -3
  59. package/dist/assets/img/hds-icons/rss.svg +3 -3
  60. package/dist/assets/img/hds-icons/search.svg +3 -3
  61. package/dist/assets/img/hds-icons/selection.svg +3 -3
  62. package/dist/assets/img/hds-icons/settings.svg +3 -3
  63. package/dist/assets/img/hds-icons/share.svg +3 -3
  64. package/dist/assets/img/hds-icons/slideshow.svg +5 -5
  65. package/dist/assets/img/hds-icons/sound-off.svg +3 -3
  66. package/dist/assets/img/hds-icons/sound-on.svg +3 -3
  67. package/dist/assets/img/hds-icons/tag-all.svg +8 -8
  68. package/dist/assets/img/hds-icons/tag-announcement.svg +6 -6
  69. package/dist/assets/img/hds-icons/tag-audio.svg +6 -6
  70. package/dist/assets/img/hds-icons/tag-bookmark.svg +4 -4
  71. package/dist/assets/img/hds-icons/tag-comment.svg +4 -4
  72. package/dist/assets/img/hds-icons/tag-data.svg +8 -8
  73. package/dist/assets/img/hds-icons/tag-document.svg +4 -4
  74. package/dist/assets/img/hds-icons/tag-edit.svg +6 -6
  75. package/dist/assets/img/hds-icons/tag-event.svg +7 -7
  76. package/dist/assets/img/hds-icons/tag-folder.svg +4 -4
  77. package/dist/assets/img/hds-icons/tag-gallery.svg +6 -6
  78. package/dist/assets/img/hds-icons/tag-graph.svg +6 -6
  79. package/dist/assets/img/hds-icons/tag-image.svg +5 -5
  80. package/dist/assets/img/hds-icons/tag-interactive.svg +4 -4
  81. package/dist/assets/img/hds-icons/tag-landing.svg +6 -6
  82. package/dist/assets/img/hds-icons/tag-launch.svg +8 -8
  83. package/dist/assets/img/hds-icons/tag-mail.svg +7 -7
  84. package/dist/assets/img/hds-icons/tag-movie.svg +4 -4
  85. package/dist/assets/img/hds-icons/tag-notification.svg +7 -7
  86. package/dist/assets/img/hds-icons/tag-person.svg +5 -5
  87. package/dist/assets/img/hds-icons/tag-play.svg +4 -4
  88. package/dist/assets/img/hds-icons/tag-podcast.svg +6 -6
  89. package/dist/assets/img/hds-icons/tag-reference.svg +4 -4
  90. package/dist/assets/img/hds-icons/tag-repeat.svg +4 -4
  91. package/dist/assets/img/hds-icons/tag-slideshow.svg +6 -6
  92. package/dist/assets/img/hds-icons/tag-star.svg +4 -4
  93. package/dist/assets/img/hds-icons/tag-status-update.svg +4 -4
  94. package/dist/assets/img/hds-icons/tag-topic.svg +7 -7
  95. package/dist/assets/img/hds-icons/terrestrial.svg +3 -3
  96. package/dist/assets/img/hds-icons/view-grid.svg +11 -11
  97. package/dist/assets/img/hds-icons/view-list.svg +15 -15
  98. package/dist/assets/img/hds-icons/view-mosaic.svg +6 -6
  99. package/dist/assets/img/hds-icons/view-single.svg +4 -4
  100. package/dist/assets/img/hds-icons/x-circled.svg +3 -3
  101. package/dist/assets/img/nasa-branding/nasa-logo.svg +52 -52
  102. package/dist/css/hds.min.css +1 -1
  103. package/dist/css/hds.min.css.map +1 -1
  104. package/package.json +15 -10
  105. package/src/assets/img/hds-icons/archive.svg +4 -4
  106. package/src/assets/img/hds-icons/arrow-chevron-down.svg +3 -3
  107. package/src/assets/img/hds-icons/arrow-chevron-left.svg +3 -3
  108. package/src/assets/img/hds-icons/arrow-chevron-right.svg +3 -3
  109. package/src/assets/img/hds-icons/arrow-chevron-up.svg +3 -3
  110. package/src/assets/img/hds-icons/arrow-circle-double-left.svg +5 -5
  111. package/src/assets/img/hds-icons/arrow-circle-double-right.svg +5 -5
  112. package/src/assets/img/hds-icons/arrow-circle-down.svg +4 -4
  113. package/src/assets/img/hds-icons/arrow-circle-left.svg +4 -4
  114. package/src/assets/img/hds-icons/arrow-circle-right.svg +4 -4
  115. package/src/assets/img/hds-icons/arrow-circle-up.svg +4 -4
  116. package/src/assets/img/hds-icons/arrow-filled-down.svg +3 -3
  117. package/src/assets/img/hds-icons/arrow-filled-left.svg +3 -3
  118. package/src/assets/img/hds-icons/arrow-filled-right.svg +3 -3
  119. package/src/assets/img/hds-icons/arrow-filled-up.svg +3 -3
  120. package/src/assets/img/hds-icons/arrow-line-diagonal.svg +3 -3
  121. package/src/assets/img/hds-icons/arrow-line-down.svg +3 -3
  122. package/src/assets/img/hds-icons/arrow-line-left.svg +3 -3
  123. package/src/assets/img/hds-icons/arrow-line-right.svg +3 -3
  124. package/src/assets/img/hds-icons/arrow-line-up.svg +3 -3
  125. package/src/assets/img/hds-icons/asteroid.svg +4 -4
  126. package/src/assets/img/hds-icons/calendar.svg +3 -3
  127. package/src/assets/img/hds-icons/check-circled.svg +3 -3
  128. package/src/assets/img/hds-icons/check.svg +3 -3
  129. package/src/assets/img/hds-icons/close.svg +3 -3
  130. package/src/assets/img/hds-icons/collapse.svg +6 -6
  131. package/src/assets/img/hds-icons/comment.svg +3 -3
  132. package/src/assets/img/hds-icons/download.svg +4 -4
  133. package/src/assets/img/hds-icons/error.svg +3 -3
  134. package/src/assets/img/hds-icons/expand.svg +3 -3
  135. package/src/assets/img/hds-icons/facility.svg +3 -3
  136. package/src/assets/img/hds-icons/file-archive.svg +11 -11
  137. package/src/assets/img/hds-icons/file-audio.svg +11 -11
  138. package/src/assets/img/hds-icons/file-code.svg +11 -11
  139. package/src/assets/img/hds-icons/file-document.svg +11 -11
  140. package/src/assets/img/hds-icons/file-generic.svg +10 -10
  141. package/src/assets/img/hds-icons/file-image.svg +11 -11
  142. package/src/assets/img/hds-icons/file-spreadsheet.svg +11 -11
  143. package/src/assets/img/hds-icons/file-video.svg +11 -11
  144. package/src/assets/img/hds-icons/filter.svg +8 -8
  145. package/src/assets/img/hds-icons/gas-giant.svg +3 -3
  146. package/src/assets/img/hds-icons/info.svg +3 -3
  147. package/src/assets/img/hds-icons/list.svg +8 -8
  148. package/src/assets/img/hds-icons/location.svg +3 -3
  149. package/src/assets/img/hds-icons/map.svg +3 -3
  150. package/src/assets/img/hds-icons/menu.svg +5 -5
  151. package/src/assets/img/hds-icons/minus.svg +3 -3
  152. package/src/assets/img/hds-icons/moon.svg +3 -3
  153. package/src/assets/img/hds-icons/notification.svg +3 -3
  154. package/src/assets/img/hds-icons/orbiter.svg +12 -12
  155. package/src/assets/img/hds-icons/pause.svg +4 -4
  156. package/src/assets/img/hds-icons/play.svg +3 -3
  157. package/src/assets/img/hds-icons/plus.svg +4 -4
  158. package/src/assets/img/hds-icons/print.svg +10 -10
  159. package/src/assets/img/hds-icons/quote.svg +4 -4
  160. package/src/assets/img/hds-icons/rotate.svg +5 -5
  161. package/src/assets/img/hds-icons/rover.svg +3 -3
  162. package/src/assets/img/hds-icons/rss.svg +3 -3
  163. package/src/assets/img/hds-icons/search.svg +3 -3
  164. package/src/assets/img/hds-icons/selection.svg +3 -3
  165. package/src/assets/img/hds-icons/settings.svg +3 -3
  166. package/src/assets/img/hds-icons/share.svg +3 -3
  167. package/src/assets/img/hds-icons/slideshow.svg +5 -5
  168. package/src/assets/img/hds-icons/sound-off.svg +3 -3
  169. package/src/assets/img/hds-icons/sound-on.svg +3 -3
  170. package/src/assets/img/hds-icons/tag-all.svg +8 -8
  171. package/src/assets/img/hds-icons/tag-announcement.svg +6 -6
  172. package/src/assets/img/hds-icons/tag-audio.svg +6 -6
  173. package/src/assets/img/hds-icons/tag-bookmark.svg +4 -4
  174. package/src/assets/img/hds-icons/tag-comment.svg +4 -4
  175. package/src/assets/img/hds-icons/tag-data.svg +8 -8
  176. package/src/assets/img/hds-icons/tag-document.svg +4 -4
  177. package/src/assets/img/hds-icons/tag-edit.svg +6 -6
  178. package/src/assets/img/hds-icons/tag-event.svg +7 -7
  179. package/src/assets/img/hds-icons/tag-folder.svg +4 -4
  180. package/src/assets/img/hds-icons/tag-gallery.svg +6 -6
  181. package/src/assets/img/hds-icons/tag-graph.svg +6 -6
  182. package/src/assets/img/hds-icons/tag-image.svg +5 -5
  183. package/src/assets/img/hds-icons/tag-interactive.svg +4 -4
  184. package/src/assets/img/hds-icons/tag-landing.svg +6 -6
  185. package/src/assets/img/hds-icons/tag-launch.svg +8 -8
  186. package/src/assets/img/hds-icons/tag-mail.svg +7 -7
  187. package/src/assets/img/hds-icons/tag-movie.svg +4 -4
  188. package/src/assets/img/hds-icons/tag-notification.svg +7 -7
  189. package/src/assets/img/hds-icons/tag-person.svg +5 -5
  190. package/src/assets/img/hds-icons/tag-play.svg +4 -4
  191. package/src/assets/img/hds-icons/tag-podcast.svg +6 -6
  192. package/src/assets/img/hds-icons/tag-reference.svg +4 -4
  193. package/src/assets/img/hds-icons/tag-repeat.svg +4 -4
  194. package/src/assets/img/hds-icons/tag-slideshow.svg +6 -6
  195. package/src/assets/img/hds-icons/tag-star.svg +4 -4
  196. package/src/assets/img/hds-icons/tag-status-update.svg +4 -4
  197. package/src/assets/img/hds-icons/tag-topic.svg +7 -7
  198. package/src/assets/img/hds-icons/terrestrial.svg +3 -3
  199. package/src/assets/img/hds-icons/view-grid.svg +11 -11
  200. package/src/assets/img/hds-icons/view-list.svg +15 -15
  201. package/src/assets/img/hds-icons/view-mosaic.svg +6 -6
  202. package/src/assets/img/hds-icons/view-single.svg +4 -4
  203. package/src/assets/img/hds-icons/x-circled.svg +3 -3
  204. package/src/assets/img/nasa-branding/nasa-logo.svg +52 -52
  205. package/src/scss/_hds-config.scss +1 -1
  206. package/src/scss/_hds-mixins.scss +1 -1
  207. package/src/scss/_hds-typography.scss +1 -1
  208. package/src/scss/_hds-uswds-theme-utils.scss +1 -1
  209. package/src/scss/_hds-uswds-theme.scss +1 -1
  210. package/src/scss/base/_component-properties.scss +1 -1
  211. package/src/scss/base/_content-rules.scss +1 -1
  212. package/src/scss/base/_elements.scss +1 -1
  213. package/src/scss/base/_focus.scss +1 -1
  214. package/src/scss/base/_index.scss +1 -1
  215. package/src/scss/base/_palettes.scss +47 -1
  216. package/src/scss/base/_print.scss +1 -1
  217. package/src/scss/components/_accordion.scss +15 -6
  218. package/src/scss/components/_alert.scss +1 -1
  219. package/src/scss/components/_blockquote.scss +1 -1
  220. package/src/scss/components/_breadcrumb.scss +1 -1
  221. package/src/scss/components/_button.scss +1 -1
  222. package/src/scss/components/_form.scss +4 -4
  223. package/src/scss/components/_grid-utilities.scss +1 -1
  224. package/src/scss/components/_icon-button.scss +1 -1
  225. package/src/scss/components/_in-page-nav.scss +1 -1
  226. package/src/scss/components/_index.scss +1 -6
  227. package/src/scss/components/_intro-text.scss +1 -1
  228. package/src/scss/components/_link.scss +1 -1
  229. package/src/scss/components/_list.scss +1 -1
  230. package/src/scss/components/_pagination.scss +1 -1
  231. package/src/scss/components/_primary-arrow-button.scss +1 -1
  232. package/src/scss/components/_prose.scss +1 -1
  233. package/src/scss/components/_sidenav.scss +1 -1
  234. package/src/scss/components/_site-alert.scss +2 -2
  235. package/src/scss/components/_table.scss +1 -1
  236. package/src/scss/hds-dataviz.scss +1 -1
  237. package/src/scss/hds-uswds.scss +1 -1
  238. package/src/scss/hds.scss +1 -1
  239. package/src/scss/components/_banner.scss +0 -29
  240. package/src/scss/components/_navigation.scss +0 -126
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Color Palettes
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Apply via class or data attribute:
6
6
  // <section class="hds-palette-dark">
@@ -15,6 +15,7 @@
15
15
  // SECTIONS:
16
16
  // Shared Color Schemes
17
17
  // Palettes
18
+ // USWDS Surface Bridges
18
19
  // Auto Dark Mode
19
20
  // ============================================================
20
21
 
@@ -292,6 +293,51 @@
292
293
  --hds-palette-bg: #{$hds-color-carbon-black};
293
294
  }
294
295
 
296
+ // ============================================================
297
+ // USWDS SURFACE BRIDGES
298
+ // ============================================================
299
+ // The government banner, header, footer, and identifier have no
300
+ // HDS theme yet (Issue #86), so they are not palette containers.
301
+ // Their surfaces are decided by USWDS — white for the banner,
302
+ // header, and footer sections, black for the identifier — while
303
+ // the text and links inside them pick up HDS colors from whatever
304
+ // palette happens to wrap the page. When the two disagree the
305
+ // result is unreadable: Carbon 90 identifier links on black in
306
+ // every light palette, and white header/footer links on white
307
+ // inside a dark one.
308
+ //
309
+ // Each bridge pins the palette that matches the surface USWDS
310
+ // paints, which leaves the default appearance untouched and only
311
+ // corrects the mismatch. The background is set explicitly because
312
+ // USWDS gives .usa-header and .usa-footer no background of their
313
+ // own — they assume the body behind them is white, which stops
314
+ // being true inside a palette wrapper.
315
+ //
316
+ // :where() holds specificity at zero, so an adopter who wants a
317
+ // different surface adds a .hds-palette-* class to the same
318
+ // element and wins without !important.
319
+ //
320
+ // Remove these once the components get real HDS theming.
321
+ // ============================================================
322
+
323
+ :where(.usa-banner, .usa-header, .usa-footer) {
324
+ @include _scheme-universal;
325
+ @include _scheme-light;
326
+
327
+ --hds-palette-bg: #{$hds-color-spacesuit-white};
328
+
329
+ background-color: var(--hds-palette-bg);
330
+ }
331
+
332
+ :where(.usa-identifier) {
333
+ @include _scheme-universal;
334
+ @include _scheme-dark;
335
+
336
+ --hds-palette-bg: #{$hds-color-carbon-black};
337
+
338
+ background-color: var(--hds-palette-bg);
339
+ }
340
+
295
341
  // ============================================================
296
342
  // AUTO DARK MODE
297
343
  // ============================================================
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Base — Print Styles
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Forces readable output when printed regardless of palette.
6
6
  // ============================================================
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Accordion
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Tier 1 override of .usa-accordion. Palette-aware, borderless,
6
6
  // transparent backgrounds, circled chevron replaces USWDS chevron.
@@ -29,17 +29,26 @@
29
29
  @use 'hds-tokens' as *;
30
30
  @use 'hds-mixins' as *;
31
31
 
32
+ // ── Scope guard ───────────────────────────────────────────────
33
+ // USWDS reuses the .usa-accordion / .usa-accordion__button /
34
+ // .usa-accordion__content classes inside its Banner ("Here's how
35
+ // you know" toggle) and Nav (.usa-nav__primary.usa-accordion,
36
+ // including the mobile drawer submenus). Our HDS Accordion style
37
+ // (borderless, flush headings, circled chevron) must not reach
38
+ // them; it misplaced the banner/nav toggle icon. See Issue #86.
39
+ $_accordion-guard: ':not(.usa-banner *):not(.usa-nav *)';
40
+
32
41
  // ── Container ─────────────────────────────────────────────────
33
42
  // Remove USWDS left border
34
43
 
35
- .usa-accordion {
44
+ .usa-accordion#{$_accordion-guard} {
36
45
  border-left: 0;
37
46
  }
38
47
 
39
48
  // ── Separator line ────────────────────────────────────────────
40
49
  // Between items only, not first or last
41
50
 
42
- .usa-accordion__heading {
51
+ .usa-accordion__heading#{$_accordion-guard} {
43
52
  border-top: 1px solid var(--hds-palette-border, #{$hds-color-carbon-20});
44
53
 
45
54
  // Override USWDS margin-top: units(1) on :not(:first-child) so adjacent
@@ -47,14 +56,14 @@
47
56
  margin: 0;
48
57
  }
49
58
 
50
- .usa-accordion > .usa-accordion__heading:first-child {
59
+ .usa-accordion#{$_accordion-guard} > .usa-accordion__heading:first-child {
51
60
  border-top: 0;
52
61
  }
53
62
 
54
63
  // ── Heading button ────────────────────────────────────────────
55
64
  // Transparent, palette-aware, circled chevron
56
65
 
57
- .usa-accordion__button {
66
+ .usa-accordion__button#{$_accordion-guard} {
58
67
  // Override USWDS set-text-and-bg mixin
59
68
  background-color: transparent;
60
69
  color: var(--hds-palette-heading, #{$hds-color-carbon-black});
@@ -137,7 +146,7 @@
137
146
  // ── Content area ──────────────────────────────────────────────
138
147
  // Transparent, palette-aware text, no top border
139
148
 
140
- .usa-accordion__content {
149
+ .usa-accordion__content#{$_accordion-guard} {
141
150
  background-color: transparent;
142
151
  color: var(--hds-palette-text, #{$hds-color-carbon-90});
143
152
  border-top: 0;
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Alert
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Minimal override. Pure USWDS, not in HDS Figma.
6
6
  // Colors and fonts apply automatically via theme settings.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Blockquote
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Rich blockquote with optional attribution (avatar, name,
6
6
  // description). No USWDS equivalent — pure HDS component.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Breadcrumb
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // HDS uses forward-slash separators, not the USWDS chevron.
6
6
  // Technique from nasa.gov production: kill the mask-image
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Button
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Theme tokens (in _hds-uswds-theme.scss) handle border-radius
6
6
  // (0), stroke-width (2px), and font-family (Inter via "heading"
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Form Elements
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Text inputs, textareas, selects, checkboxes, radio buttons,
6
6
  // labels, help text, error states, and file inputs.
@@ -154,9 +154,9 @@ $hds-checkbox-icon: url("data:image/svg+xml,%3Csvg viewBox='-2 -2 24 24' xmlns='
154
154
  // Light: C20 → C40 (= --hds-palette-control-border).
155
155
  // Dark: C80 → inferred C60 (= --hds-palette-border on dark).
156
156
 
157
- .usa-input:hover:not(:disabled, :focus-visible),
158
- .usa-textarea:hover:not(:disabled, :focus-visible),
159
- .usa-select:hover:not(:disabled, :focus-visible) {
157
+ .usa-input:hover:not(:disabled, :focus-visible, .usa-input--error),
158
+ .usa-textarea:hover:not(:disabled, :focus-visible, .usa-input--error),
159
+ .usa-select:hover:not(:disabled, :focus-visible, .usa-input--error) {
160
160
  border-color: var(--hds-palette-control-border);
161
161
  }
162
162
 
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Grid Utilities
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Responsive reverse, horizontal lists, and section spacing.
6
6
  // Refinements to the core USWDS grid.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Icon Button
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Interactive circle containers. Require aria-label when used
6
6
  // without visible text. SVG inside always gets aria-hidden="true".
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — In-Page Navigation
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Fixed sidebar with scroll spy for long-form articles.
6
6
  // Maps to HDS Figma "Tertiary / Local Navigation."
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Components — Index
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Load order:
6
6
  // 1. Foundational — link and button, used/extended by others
@@ -9,7 +9,6 @@
9
9
  // 4. Navigation — breadcrumb, pagination, in-page nav
10
10
  // 5. Notifications — site alert, alert
11
11
  // 6. Layout — grid utilities
12
- // 7. Phase 2 stubs — navigation, banner
13
12
  // ============================================================
14
13
 
15
14
  // ── Foundational ──
@@ -41,7 +40,3 @@
41
40
 
42
41
  // ── Layout ──
43
42
  @forward 'grid-utilities';
44
-
45
- // ── Phase 2 (stubs) ──
46
- @forward 'navigation';
47
- @forward 'banner';
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Intro Text
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // HDS override of .usa-intro.
6
6
  //
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Link
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // .usa-link and .usa-link--external override.
6
6
  // HDS links use a dashed underline as the defining element.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — List
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Tier 1 — uses standard USWDS .usa-list markup with added
6
6
  // role="list" and aria-label per HDS Figma accessibility spec.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Pagination
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // USWDS .usa-pagination override (numbered variant) plus
6
6
  // HDS simplified pagination (Previous/Next composed button).
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Primary Arrow Button
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Text + CSS ::after red circle with white arrow.
6
6
  // Arrow direction auto-swaps for external links via
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Prose
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // usa-prose reskin: HDS content rules are applied to .usa-prose
6
6
  // via the merged @scope block in base/_elements.scss (which
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Side Navigation
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Section navigation, typically used alongside docs layouts.
6
6
  // Maps to HDS Figma "Tertiary / Local Navigation."
@@ -1,13 +1,13 @@
1
1
  // ============================================================
2
2
  // HDS Component — Site Alert
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Tier 1 override — .usa-site-alert--emergency and
6
6
  // .usa-site-alert--info.
7
7
  //
8
8
  // HDS Figma calls this "Banner" — renamed to match USWDS
9
9
  // component name. Not the same as the government compliance
10
- // banner (components/_banner.scss).
10
+ // banner (.usa-banner), which HDS does not theme.
11
11
  //
12
12
  // Scoped --hds-palette-* vars on each variant so existing
13
13
  // link/heading/text wiring works automatically.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Component — Table
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Overrides USWDS .usa-table with exact HDS Carbon colors.
6
6
  // USWDS theme settings (in _hds-uswds-theme.scss) provide
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Core — Data Visualization Tokens
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Use this file to import ONLY the dataviz custom properties.
6
6
  // Useful for charting libraries that don't need the full HDS bundle.
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS USWDS Addon — Remaining USWDS Packages
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Generates hds-uswds.css. Includes all USWDS component packages
6
6
  // and utility classes NOT included in the primary HDS bundle.
package/src/scss/hds.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  // ============================================================
2
2
  // HDS Core — Main Entry Point
3
- // @nasa/hds-core
3
+ // @nasa-hds/core
4
4
  // ============================================================
5
5
  // Generates hds.css. Includes HDS components, base styles, and
6
6
  // the subset of USWDS foundation/component packages that HDS themes.
@@ -1,29 +0,0 @@
1
- // ============================================================
2
- // HDS Component — Banner (Government Compliance)
3
- // @nasa/hds-core
4
- // ============================================================
5
- // STATUS: Phase 2 — CSS exists but incomplete. Not the same as
6
- // HDS "Banners" (see components/_site-alert.scss). Uses USWDS
7
- // JS for expand/collapse. Needs creative director review before
8
- // HDS-specific styling.
9
- //
10
- // Restyles: https://designsystem.digital.gov/components/banner/
11
- // ============================================================
12
-
13
- @use 'uswds-core' as *;
14
- @use 'hds-tokens' as *;
15
-
16
- // Always light background, outside palette context.
17
-
18
- .usa-banner {
19
- background-color: $hds-color-carbon-05;
20
- font-size: size('body', '2xs');
21
- }
22
-
23
- .usa-banner__header {
24
- padding-block: units(1);
25
- }
26
-
27
- .usa-banner__button {
28
- text-decoration-line: underline;
29
- }
@@ -1,126 +0,0 @@
1
- // ============================================================
2
- // HDS Component — Navigation
3
- // @nasa/hds-core
4
- // ============================================================
5
- // See docs/DESIGN.md Navigation Component Mapping.
6
- //
7
- // STATUS: Phase 2 — inherited from prior work, not yet tested
8
- // or documented in Storybook. Review before v1.0 whether to
9
- // ship or remove until Phase 2 implementation.
10
- //
11
- // Restyles: https://designsystem.digital.gov/components/header/
12
- // ============================================================
13
-
14
- @use 'uswds-core' as *;
15
- @use 'hds-tokens' as *;
16
- @use 'hds-mixins' as *;
17
-
18
- // ------------------------------------------------------------
19
- // Header & Footer Link Resets
20
- // ------------------------------------------------------------
21
-
22
- .usa-header,
23
- .usa-footer,
24
- .usa-nav__submenu,
25
- .usa-megamenu {
26
- a {
27
- text-decoration-line: none;
28
- }
29
- }
30
-
31
- .usa-header--basic .usa-nav-container {
32
- align-items: center;
33
-
34
- .usa-navbar {
35
- width: auto;
36
- }
37
- }
38
-
39
- .usa-footer__primary-content,
40
- .usa-footer__nav {
41
- border: 0 !important;
42
- }
43
-
44
- .usa-footer__nav {
45
- @include at-media-max('tablet-lg') {
46
- nav > ul {
47
- border-bottom-color: $hds-color-carbon-60;
48
- padding-bottom: units(2) !important;
49
- padding-top: units(2) !important;
50
- }
51
- }
52
- }
53
-
54
- // ------------------------------------------------------------
55
- // Agency Navbar
56
- // ------------------------------------------------------------
57
-
58
- .usa-navbar.agency-navbar {
59
- border: 0;
60
- position: relative;
61
-
62
- .usa-nav__primary > .usa-nav__primary-item > a,
63
- .usa-nav__primary button {
64
- padding: units(3) units(2);
65
- }
66
-
67
- .usa-button--arrow {
68
- padding: units(2) 0 !important;
69
- }
70
-
71
- @include at-media-max('desktop') {
72
- .usa-nav {
73
- padding: units(3);
74
- }
75
- }
76
- }
77
-
78
- // ------------------------------------------------------------
79
- // Navigation Menu Trigger
80
- // ------------------------------------------------------------
81
-
82
- .usa-nav__global-nav-trigger {
83
- span::after {
84
- background-color: currentcolor;
85
- mask-size: 1em !important;
86
- mask-position: top center !important;
87
- mask-repeat: no-repeat;
88
- }
89
-
90
- &[aria-expanded='true'] span::after {
91
- mask-image:
92
- url('../assets/img/hds-icons/arrow-chevron-up.svg'), linear-gradient(transparent, transparent) !important;
93
- }
94
-
95
- &[aria-expanded='false'] span::after {
96
- mask-image:
97
- url('../assets/img/hds-icons/arrow-chevron-down.svg'), linear-gradient(transparent, transparent) !important;
98
- }
99
- }
100
-
101
- .usa-nav__mobile-menu-trigger {
102
- padding-right: units(2.5);
103
- width: 100%;
104
-
105
- &[aria-expanded='false'] {
106
- background-color: currentcolor;
107
- background-image: none;
108
- mask-image: url('../assets/img/hds-icons/arrow-chevron-down.svg');
109
- mask-position: right center;
110
- mask-repeat: no-repeat;
111
- mask-size: 1.2rem;
112
- }
113
-
114
- &[aria-expanded='true'] {
115
- background-color: currentcolor;
116
- background-image: none;
117
- mask-image: url('../assets/img/hds-icons/arrow-chevron-up.svg');
118
- mask-position: right center;
119
- mask-repeat: no-repeat;
120
- mask-size: 1.2rem;
121
- }
122
- }
123
-
124
- .usa-nav__mobile-menu {
125
- padding: 1em 0;
126
- }