@solexllc/usx-react 0.4.0 → 0.6.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 (105) hide show
  1. package/README.md +99 -0
  2. package/dist/index.cjs +576 -442
  3. package/dist/index.js +576 -442
  4. package/package.json +5 -5
  5. package/src/components/attribution/config.json +5 -5
  6. package/src/components/banner/config.json +2 -2
  7. package/src/components/breadcrumb/Breadcrumb.tsx +5 -6
  8. package/src/components/breadcrumb/config.json +11 -1
  9. package/src/components/button/button.html +2 -2
  10. package/src/components/button-group/button-group.django.html +1 -1
  11. package/src/components/calendar-date/calendar-date.django.html +3 -3
  12. package/src/components/callout/Callout.tsx +53 -0
  13. package/src/components/callout/callout.django.html +5 -0
  14. package/src/components/callout/callout.html +76 -0
  15. package/src/components/callout/config.json +74 -0
  16. package/src/components/card/Card.tsx +18 -34
  17. package/src/components/card/card.django.html +12 -10
  18. package/src/components/card/config.json +15 -40
  19. package/src/components/card-group/card-group.django.html +1 -1
  20. package/src/components/carousel/Carousel.tsx +3 -2
  21. package/src/components/carousel/carousel.django.html +13 -2
  22. package/src/components/carousel/config.json +2 -2
  23. package/src/components/character-count/config.json +2 -2
  24. package/src/components/checkbox-group/CheckboxGroup.tsx +10 -20
  25. package/src/components/checkbox-group/checkbox-group.django.html +10 -4
  26. package/src/components/checkbox-group/config.json +10 -5
  27. package/src/components/clickable/clickable.html +21 -39
  28. package/src/components/clickable/config.json +2 -2
  29. package/src/components/collection/Collection.tsx +5 -5
  30. package/src/components/collection/collection.django.html +2 -4
  31. package/src/components/collection/config.json +7 -6
  32. package/src/components/combobox/config.json +4 -4
  33. package/src/components/container/Container.tsx +108 -0
  34. package/src/components/container/_layout-classes.django.html +12 -0
  35. package/src/components/container/config.json +288 -0
  36. package/src/components/container/container.django.html +13 -0
  37. package/src/components/container/container.html +125 -0
  38. package/src/components/date-picker/config.json +4 -4
  39. package/src/components/date-range-picker/config.json +7 -7
  40. package/src/components/error-message/config.json +2 -2
  41. package/src/components/eyebrow/Eyebrow.tsx +2 -1
  42. package/src/components/eyebrow/config.json +2 -2
  43. package/src/components/fieldset/config.json +5 -5
  44. package/src/components/file-input/FileInput.tsx +3 -2
  45. package/src/components/file-input/config.json +5 -5
  46. package/src/components/file-list/FileList.tsx +2 -1
  47. package/src/components/file-list/config.json +2 -2
  48. package/src/components/footer/Footer.tsx +5 -5
  49. package/src/components/form-group/config.json +2 -2
  50. package/src/components/hero/Hero.tsx +8 -14
  51. package/src/components/hero/config.json +36 -27
  52. package/src/components/hero/hero.django.html +2 -2
  53. package/src/components/hint/config.json +2 -2
  54. package/src/components/in-page-nav/config.json +11 -1
  55. package/src/components/indicator/config.json +2 -2
  56. package/src/components/input/config.json +2 -2
  57. package/src/components/label/config.json +2 -2
  58. package/src/components/language-selector/config.json +2 -2
  59. package/src/components/layout/Layout.tsx +1 -1
  60. package/src/components/legend/config.json +3 -3
  61. package/src/components/link/config.json +2 -2
  62. package/src/components/memorable-date/config.json +9 -9
  63. package/src/components/misc-banner/MiscBanner.tsx +2 -1
  64. package/src/components/misc-banner/config.json +2 -2
  65. package/src/components/modal/config.json +2 -2
  66. package/src/components/page/Page.tsx +2 -1
  67. package/src/components/page/config.json +7 -7
  68. package/src/components/page/page.django.html +1 -1
  69. package/src/components/pagination/Pagination.tsx +2 -1
  70. package/src/components/pagination/container/PaginationContainer.tsx +2 -1
  71. package/src/components/prose/config.json +5 -1
  72. package/src/components/quote/Quote.tsx +58 -0
  73. package/src/components/quote/config.json +51 -0
  74. package/src/components/quote/quote.django.html +15 -0
  75. package/src/components/quote/quote.html +66 -0
  76. package/src/components/radio-buttons/config.json +3 -3
  77. package/src/components/range-slider/RangeSlider.tsx +2 -1
  78. package/src/components/range-slider/config.json +4 -4
  79. package/src/components/required/config.json +2 -2
  80. package/src/components/section/Section.tsx +6 -2
  81. package/src/components/section/config.json +19 -6
  82. package/src/components/section/section.django.html +9 -2
  83. package/src/components/select/config.json +2 -2
  84. package/src/components/site-alert/SiteAlert.tsx +5 -6
  85. package/src/components/skipnav/config.json +2 -2
  86. package/src/components/summary-box/config.json +3 -3
  87. package/src/components/swap/Swap.tsx +4 -3
  88. package/src/components/swap/config.json +4 -4
  89. package/src/components/switch/config.json +2 -2
  90. package/src/components/table/config.json +13 -3
  91. package/src/components/tag/config.json +2 -2
  92. package/src/components/tag-group/config.json +2 -2
  93. package/src/components/text-area/config.json +2 -2
  94. package/src/components/time-picker/config.json +4 -4
  95. package/src/components/toggle/Toggle.tsx +69 -40
  96. package/src/components/toggle/config.json +42 -10
  97. package/src/components/toggle/toggle.django.html +25 -17
  98. package/src/components/toggle/toggle.html +319 -85
  99. package/src/components/tooltip/config.json +2 -2
  100. package/src/components/villain/Villain.tsx +2 -1
  101. package/src/index.js +3 -1
  102. package/src/components/block/Block.tsx +0 -78
  103. package/src/components/block/block.django.html +0 -26
  104. package/src/components/block/block.html +0 -162
  105. package/src/components/block/config.json +0 -88
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ function requireClassnames() {
16
16
  (function(module) {
17
17
  (function() {
18
18
  var hasOwn = {}.hasOwnProperty;
19
- function classNames2() {
19
+ function classNames() {
20
20
  var classes = "";
21
21
  for (var i = 0; i < arguments.length; i++) {
22
22
  var arg = arguments[i];
@@ -34,7 +34,7 @@ function requireClassnames() {
34
34
  return "";
35
35
  }
36
36
  if (Array.isArray(arg)) {
37
- return classNames2.apply(null, arg);
37
+ return classNames.apply(null, arg);
38
38
  }
39
39
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
40
40
  return arg.toString();
@@ -57,17 +57,17 @@ function requireClassnames() {
57
57
  return value + newClass;
58
58
  }
59
59
  if (module.exports) {
60
- classNames2.default = classNames2;
61
- module.exports = classNames2;
60
+ classNames.default = classNames;
61
+ module.exports = classNames;
62
62
  } else {
63
- window.classNames = classNames2;
63
+ window.classNames = classNames;
64
64
  }
65
65
  })();
66
66
  })(classnames);
67
67
  return classnames.exports;
68
68
  }
69
69
  var classnamesExports = requireClassnames();
70
- const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
70
+ const ClassNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
71
71
  function AccordionItem({
72
72
  title,
73
73
  id,
@@ -78,8 +78,8 @@ function AccordionItem({
78
78
  headingLevel = "h3",
79
79
  handleToggle
80
80
  }) {
81
- const headingClasses = classNames("usa-accordion__heading", headingClassName);
82
- const contentClasses = classNames(
81
+ const headingClasses = ClassNames("usa-accordion__heading", headingClassName);
82
+ const contentClasses = ClassNames(
83
83
  "usa-accordion__content",
84
84
  "usa-prose",
85
85
  contentClassName
@@ -121,9 +121,9 @@ function Accordion({
121
121
  className = "",
122
122
  headingClassName = "",
123
123
  contentClassName = "",
124
- ...props
124
+ ...props2
125
125
  }) {
126
- const accordionClasses = classNames(
126
+ const accordionClasses = ClassNames(
127
127
  "usa-accordion",
128
128
  "usx-accordion",
129
129
  bordered && "usa-accordion--bordered",
@@ -136,7 +136,7 @@ function Accordion({
136
136
  id,
137
137
  className: accordionClasses,
138
138
  "data-allow-multiple": multiselectable ? true : void 0,
139
- ...props,
139
+ ...props2,
140
140
  children: items.map((item) => /* @__PURE__ */ jsx(
141
141
  AccordionItem,
142
142
  {
@@ -167,7 +167,7 @@ function Icon({
167
167
  staticBaseUrl,
168
168
  staticUrlPrefix,
169
169
  className = "",
170
- ...props
170
+ ...props2
171
171
  }) {
172
172
  const spritePrefix = staticUrlPrefix ?? getAssetUrl(`img/${source === "usx" ? "usx-sprite.svg" : "sprite.svg"}#`, staticBaseUrl);
173
173
  return /* @__PURE__ */ jsx(
@@ -178,7 +178,7 @@ function Icon({
178
178
  "aria-label": alt,
179
179
  focusable: "false",
180
180
  role: "img",
181
- ...props,
181
+ ...props2,
182
182
  children: /* @__PURE__ */ jsx("use", { href: spritePrefix + name })
183
183
  }
184
184
  );
@@ -196,10 +196,10 @@ function Alert({
196
196
  onDismiss = void 0,
197
197
  staticBaseUrl,
198
198
  children = null,
199
- ...props
199
+ ...props2
200
200
  }) {
201
201
  const normalizedVariant = variant && ["info", "warning", "success", "error", "emergency"].includes(variant) ? variant : null;
202
- const classes = classNames(
202
+ const classes = ClassNames(
203
203
  "usa-alert",
204
204
  "usx-alert",
205
205
  normalizedVariant ? `usa-alert--${normalizedVariant}` : "",
@@ -218,7 +218,7 @@ function Alert({
218
218
  } else if (resolvedRole === "region") {
219
219
  accessibilityProps["aria-label"] = heading || `${normalizedVariant} alert`;
220
220
  }
221
- return /* @__PURE__ */ jsx("div", { className: classes, ...accessibilityProps, ...props, children: /* @__PURE__ */ jsxs("div", { className: "usa-alert__body", children: [
221
+ return /* @__PURE__ */ jsx("div", { className: classes, ...accessibilityProps, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usa-alert__body", children: [
222
222
  !slim && heading ? /* @__PURE__ */ jsx("h4", { className: "usa-alert__heading", children: heading }) : null,
223
223
  children ? /* @__PURE__ */ jsx("div", { className: "usa-alert__text", children }) : /* @__PURE__ */ jsx("p", { className: "usa-alert__text", children: text }),
224
224
  onDismiss && /* @__PURE__ */ jsx("button", { className: "usx-alert__dismiss", "aria-label": "Dismiss alert", onClick: onDismiss, children: /* @__PURE__ */ jsx(Icon, { name: "close", size: 3, staticBaseUrl }) })
@@ -242,25 +242,25 @@ function Avatar({
242
242
  className = "",
243
243
  imageClassName = "",
244
244
  contentClassName = "",
245
- ...props
245
+ ...props2
246
246
  }) {
247
247
  const isInitialsVariant = variant === "initials";
248
248
  const isIconVariant = variant === "icon";
249
- const wrapperClasses = classNames(
249
+ const wrapperClasses = ClassNames(
250
250
  "usx-avatar",
251
251
  className
252
252
  );
253
- const imgClasses = classNames(
253
+ const imgClasses = ClassNames(
254
254
  "usx-avatar__img",
255
255
  shape ? shapeClassMap[shape] : null,
256
256
  imageClassName
257
257
  );
258
- const contentClasses = classNames(
258
+ const contentClasses = ClassNames(
259
259
  "usx-avatar__content",
260
260
  shape ? shapeClassMap[shape] : "usx-circle",
261
261
  contentClassName
262
262
  );
263
- const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsx(Icon, { name: value, alt: alt || `${value} icon` }) }) : /* @__PURE__ */ jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props });
263
+ const avatarContent = isInitialsVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: value }) : isIconVariant ? /* @__PURE__ */ jsx("span", { className: contentClasses, children: /* @__PURE__ */ jsx(Icon, { name: value, alt: alt || `${value} icon` }) }) : /* @__PURE__ */ jsx("img", { className: imgClasses, src: src || void 0, alt: alt || void 0, role: "img", ...props2 });
264
264
  const avatar = /* @__PURE__ */ jsx("a", { href, className: wrapperClasses, "aria-label": isInitialsVariant || isIconVariant ? alt || void 0 : void 0, children: avatarContent });
265
265
  if (tooltip) {
266
266
  return /* @__PURE__ */ jsxs("span", { className: "usx-tooltip", children: [
@@ -277,9 +277,9 @@ function Attribution({
277
277
  secondary,
278
278
  children = null,
279
279
  className = "",
280
- ...props
280
+ ...props2
281
281
  }) {
282
- const classes = classNames("usx-attribution", className);
282
+ const classes = ClassNames("usx-attribution", className);
283
283
  const mediaContent = avatarProps ? /* @__PURE__ */ jsx(Avatar, { ...avatarProps }) : media;
284
284
  const content = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
285
285
  mediaContent && /* @__PURE__ */ jsx("span", { className: "usx-attribution__media", children: mediaContent }),
@@ -288,16 +288,16 @@ function Attribution({
288
288
  /* @__PURE__ */ jsx("span", { className: "usx-attribution__secondary", children: secondary })
289
289
  ] })
290
290
  ] });
291
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: content });
291
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: content });
292
292
  }
293
- function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, className = "", ...props }) {
294
- const classes = classNames(
293
+ function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, className = "", ...props2 }) {
294
+ const classes = ClassNames(
295
295
  "usx-avatar-group",
296
296
  overlap && "usa-avatar-group--overlap",
297
297
  stacked && "usa-avatar-group--stacked",
298
298
  className
299
299
  );
300
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: avatarProps.map((avatar, index) => /* @__PURE__ */ jsx(
300
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: avatarProps.map((avatar, index) => /* @__PURE__ */ jsx(
301
301
  Avatar,
302
302
  {
303
303
  href: avatar.href,
@@ -321,25 +321,25 @@ function BackToTop({
321
321
  iconSize = 2,
322
322
  className = "",
323
323
  onClick = void 0,
324
- ...props
324
+ ...props2
325
325
  }) {
326
- const icon = /* @__PURE__ */ jsx(Icon, { name: "arrow_upward", size: iconSize, className: classNames(
326
+ const icon = /* @__PURE__ */ jsx(Icon, { name: "arrow_upward", size: iconSize, className: ClassNames(
327
327
  iconPosition === "left" ? "margin-right-05" : "margin-left-05"
328
328
  ) });
329
329
  if (href) {
330
- const linkClasses = classNames(
330
+ const linkClasses = ClassNames(
331
331
  "usx-link",
332
332
  "usx-no-visited",
333
333
  "flex-align-center",
334
334
  className
335
335
  );
336
- return /* @__PURE__ */ jsxs("a", { className: linkClasses, href, ...props, children: [
336
+ return /* @__PURE__ */ jsxs("a", { className: linkClasses, href, ...props2, children: [
337
337
  iconPosition === "left" && icon,
338
338
  label,
339
339
  iconPosition === "right" && icon
340
340
  ] });
341
341
  }
342
- const buttonClasses = classNames(
342
+ const buttonClasses = ClassNames(
343
343
  "usa-button",
344
344
  "usx-button",
345
345
  variant === "primary" && "usa-button--primary",
@@ -352,7 +352,7 @@ function BackToTop({
352
352
  type: "button",
353
353
  className: buttonClasses,
354
354
  onClick: onClick || (() => window.scrollTo({ top: 0, behavior: "smooth" })),
355
- ...props,
355
+ ...props2,
356
356
  children: [
357
357
  iconPosition === "left" && icon,
358
358
  label,
@@ -384,14 +384,14 @@ function Banner({
384
384
  " website. Share sensitive information only on official, secure websites."
385
385
  ] }),
386
386
  className = "",
387
- ...props
387
+ ...props2
388
388
  }) {
389
- const classes = classNames(
389
+ const classes = ClassNames(
390
390
  "usa-banner",
391
391
  "usx-banner",
392
392
  className
393
393
  );
394
- return /* @__PURE__ */ jsx("section", { id, className: classes, "aria-label": ariaLabel, ...props, children: /* @__PURE__ */ jsxs("div", { id: `${id}-accordion`, className: "usa-accordion", children: [
394
+ return /* @__PURE__ */ jsx("section", { id, className: classes, "aria-label": ariaLabel, ...props2, children: /* @__PURE__ */ jsxs("div", { id: `${id}-accordion`, className: "usa-accordion", children: [
395
395
  /* @__PURE__ */ jsx("header", { className: "usa-banner__header", children: /* @__PURE__ */ jsxs("div", { className: "usa-banner__inner", children: [
396
396
  /* @__PURE__ */ jsx("div", { className: "grid-col-auto", children: /* @__PURE__ */ jsx(
397
397
  "img",
@@ -470,50 +470,6 @@ function Banner({
470
470
  )
471
471
  ] }) });
472
472
  }
473
- function Block({
474
- variant = null,
475
- indent = null,
476
- dedent = false,
477
- big = false,
478
- quote = false,
479
- color,
480
- contentClassName = "",
481
- attribution = null,
482
- children = null,
483
- className = "",
484
- ...props
485
- }) {
486
- const isCallout = variant === "callout";
487
- const classes = classNames(
488
- "usx-block",
489
- variant && `usx-block--${variant}`,
490
- dedent && "usx-block--dedent",
491
- indent && `usx-block--indent-${indent}`,
492
- big && "usx-block--big",
493
- quote && !isCallout && "display-flex flex-row",
494
- isCallout && color && `usx-border-${color}`,
495
- className
496
- );
497
- const contentClasses = classNames(
498
- "usx-block__content",
499
- !isCallout && color && `usx-border-${color}`,
500
- contentClassName
501
- );
502
- const attributionNode = attribution ? /* @__PURE__ */ jsx("div", { className: "usx-block__attribution", children: /* @__PURE__ */ jsx(Attribution, { ...attribution }) }) : null;
503
- if (quote && !isCallout) {
504
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
505
- /* @__PURE__ */ jsx(Icon, { name: "format_quote", size: 4, className: "usx-block__open-quote-icon" }),
506
- /* @__PURE__ */ jsxs("div", { className: contentClasses, children: [
507
- children,
508
- attributionNode
509
- ] })
510
- ] });
511
- }
512
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
513
- /* @__PURE__ */ jsx("div", { className: contentClasses, children }),
514
- attributionNode
515
- ] });
516
- }
517
473
  function Breadcrumb({
518
474
  items = null,
519
475
  wrap = false,
@@ -522,27 +478,27 @@ function Breadcrumb({
522
478
  ariaLabel = "Breadcrumbs",
523
479
  className = "",
524
480
  children = null,
525
- ...props
481
+ ...props2
526
482
  }) {
527
483
  if (!items || items.length === 0) {
528
- const classes = ["usx-breadcrumb", className].filter(Boolean).join(" ");
529
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: children || "Breadcrumb" });
484
+ const classes = ClassNames("usx-breadcrumb", className);
485
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: children || "Breadcrumb" });
530
486
  }
531
- const navClasses = [
487
+ const navClasses = ClassNames(
532
488
  "usa-breadcrumb",
533
489
  "usx-breadcrumb",
534
490
  wrap ? "usa-breadcrumb--wrap" : null,
535
491
  truncate ? "usa-breadcrumb--truncate" : null,
536
492
  className
537
- ].filter(Boolean).join(" ");
538
- return /* @__PURE__ */ jsx("nav", { className: navClasses, "aria-label": ariaLabel, ...props, children: /* @__PURE__ */ jsx(
493
+ );
494
+ return /* @__PURE__ */ jsx("nav", { className: navClasses, "aria-label": ariaLabel, ...props2, children: /* @__PURE__ */ jsx(
539
495
  "ol",
540
496
  {
541
497
  className: "usa-breadcrumb__list",
542
498
  ...rdfa ? { vocab: "http://schema.org/", typeof: "BreadcrumbList" } : {},
543
499
  children: items.map((item, idx) => {
544
500
  const isCurrent = !!item.current;
545
- const liClass = ["usa-breadcrumb__list-item", isCurrent ? "usa-current" : null].filter(Boolean).join(" ");
501
+ const liClass = ClassNames("usa-breadcrumb__list-item", isCurrent ? "usa-current" : null);
546
502
  return /* @__PURE__ */ jsxs(
547
503
  "li",
548
504
  {
@@ -572,11 +528,11 @@ const Required = ({
572
528
  title = "Required",
573
529
  children = null,
574
530
  className = "",
575
- ...props
531
+ ...props2
576
532
  }) => {
577
- const classes = classNames("usx-required", className);
533
+ const classes = ClassNames("usx-required", className);
578
534
  return /* @__PURE__ */ jsxs(Fragment, { children: [
579
- /* @__PURE__ */ jsx("abbr", { title, className: classes, ...props, children: "*" }),
535
+ /* @__PURE__ */ jsx("abbr", { title, className: classes, ...props2, children: "*" }),
580
536
  " ",
581
537
  children ? children : ""
582
538
  ] });
@@ -589,9 +545,9 @@ function Label({
589
545
  screenReaderOnly = false,
590
546
  className = "",
591
547
  classOverride = false,
592
- ...props
548
+ ...props2
593
549
  }) {
594
- const classes = classNames(
550
+ const classes = ClassNames(
595
551
  "usa-label",
596
552
  "usx-label",
597
553
  { "usa-sr-only": screenReaderOnly, "usa-label--error": !!error },
@@ -602,7 +558,7 @@ function Label({
602
558
  {
603
559
  className: classOverride ? className : classes,
604
560
  ...htmlFor ? { htmlFor } : {},
605
- ...props,
561
+ ...props2,
606
562
  children: [
607
563
  required && /* @__PURE__ */ jsx(Required, {}),
608
564
  children
@@ -618,9 +574,9 @@ const Spinner = ({
618
574
  staticUrlPrefix,
619
575
  staticBaseUrl,
620
576
  className = "",
621
- ...props
577
+ ...props2
622
578
  }) => {
623
- return /* @__PURE__ */ jsxs("span", { role: "status", "aria-live": "polite", className: `usx-spinner ${className}`, ...props, children: [
579
+ return /* @__PURE__ */ jsxs("span", { role: "status", "aria-live": "polite", className: `usx-spinner ${className}`, ...props2, children: [
624
580
  /* @__PURE__ */ jsx(
625
581
  Icon,
626
582
  {
@@ -651,7 +607,7 @@ function Button({
651
607
  className = "",
652
608
  children = "",
653
609
  extraAttributes = {},
654
- ...props
610
+ ...props2
655
611
  }) {
656
612
  const leftIcons = iconProps.filter((icon) => (icon.position ?? "left") === "left");
657
613
  const rightIcons = iconProps.filter((icon) => icon.position === "right");
@@ -669,7 +625,7 @@ function Button({
669
625
  outline: "usa-button--outline",
670
626
  unstyled: "usa-button--unstyled"
671
627
  };
672
- const classes = classNames(
628
+ const classes = ClassNames(
673
629
  "usa-button",
674
630
  "usx-button",
675
631
  variant && variantClasses[variant],
@@ -682,7 +638,7 @@ function Button({
682
638
  const {
683
639
  // Remove unused variables
684
640
  ...anchorProps
685
- } = props;
641
+ } = props2;
686
642
  return /* @__PURE__ */ jsxs(
687
643
  "a",
688
644
  {
@@ -703,7 +659,7 @@ function Button({
703
659
  const {
704
660
  // Remove unused variables
705
661
  ...buttonProps
706
- } = props;
662
+ } = props2;
707
663
  return /* @__PURE__ */ jsxs(
708
664
  "button",
709
665
  {
@@ -726,14 +682,14 @@ function ButtonGroup({
726
682
  buttonProps = [],
727
683
  segmented = false,
728
684
  className = "",
729
- ...props
685
+ ...props2
730
686
  }) {
731
- const classes = classNames(
687
+ const classes = ClassNames(
732
688
  "usa-button-group usx-button-group",
733
689
  segmented && "usa-button-group--segmented",
734
690
  className
735
691
  );
736
- return /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: buttonProps.map(({ itemClassName, ...item }, index) => /* @__PURE__ */ jsx("li", { className: classNames("usa-button-group__item", itemClassName), children: /* @__PURE__ */ jsx(Button, { ...item, children: item.children }) }, index)) });
692
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: buttonProps.map(({ itemClassName, ...item }, index) => /* @__PURE__ */ jsx("li", { className: ClassNames("usa-button-group__item", itemClassName), children: /* @__PURE__ */ jsx(Button, { ...item, children: item.children }) }, index)) });
737
693
  }
738
694
  function CalendarDate({
739
695
  datetime,
@@ -742,15 +698,15 @@ function CalendarDate({
742
698
  const date = new Date(datetime);
743
699
  const month = date.toLocaleString("en-US", { month: "short", timeZone: "UTC" }).toUpperCase();
744
700
  const day = date.toLocaleString("en-US", { day: "numeric", timeZone: "UTC" });
745
- const dateClasses = classNames(
701
+ const dateClasses = ClassNames(
746
702
  { "usa-collection__calendar-date": underCollection },
747
703
  "usx-calendar-date"
748
704
  );
749
- const monthClasses = classNames(
705
+ const monthClasses = ClassNames(
750
706
  { "usa-collection__calendar-date-month": underCollection },
751
707
  "usx-calendar-date-month"
752
708
  );
753
- const dayClasses = classNames(
709
+ const dayClasses = ClassNames(
754
710
  { "usa-collection__calendar-date-day": underCollection },
755
711
  "usx-calendar-date-day"
756
712
  );
@@ -759,6 +715,40 @@ function CalendarDate({
759
715
  /* @__PURE__ */ jsx("span", { className: dayClasses, children: day })
760
716
  ] }) });
761
717
  }
718
+ function Callout({
719
+ className,
720
+ strokeColor,
721
+ indent,
722
+ dedent,
723
+ big,
724
+ orientation = "horizontal",
725
+ children,
726
+ content,
727
+ backgroundColor,
728
+ textColor,
729
+ element = "div",
730
+ ...props2
731
+ }) {
732
+ const Element = element;
733
+ return /* @__PURE__ */ jsx(
734
+ Element,
735
+ {
736
+ className: ClassNames(
737
+ "usx-callout",
738
+ orientation === "vertical" && "usx-callout--vertical",
739
+ strokeColor && `border-${strokeColor}`,
740
+ indent && `usx-callout--indent-${indent}`,
741
+ dedent && "usx-callout--dedent",
742
+ (big ?? orientation === "horizontal") && "usx-callout--big",
743
+ backgroundColor && `bg-${backgroundColor}`,
744
+ textColor && `text-${textColor}`,
745
+ className
746
+ ),
747
+ ...props2,
748
+ children: children ?? content
749
+ }
750
+ );
751
+ }
762
752
  const Tag = ({
763
753
  id,
764
754
  big = false,
@@ -772,10 +762,10 @@ const Tag = ({
772
762
  },
773
763
  className = "",
774
764
  children,
775
- ...props
765
+ ...props2
776
766
  }) => {
777
767
  const [isVisible, setIsVisible] = useState(!isDismissed);
778
- const classes = classNames(
768
+ const classes = ClassNames(
779
769
  "usa-tag",
780
770
  "usx-tag",
781
771
  { "usa-tag--big": big },
@@ -794,7 +784,7 @@ const Tag = ({
794
784
  if (!isVisible) {
795
785
  return null;
796
786
  }
797
- return /* @__PURE__ */ jsxs("span", { id, className: classes, ...props, children: [
787
+ return /* @__PURE__ */ jsxs("span", { id, className: classes, ...props2, children: [
798
788
  icon && /* @__PURE__ */ jsx(Icon, { name: icon, size: big ? 3 : 2 }),
799
789
  " ",
800
790
  children || value,
@@ -824,9 +814,9 @@ function Image({
824
814
  staticBaseUrl,
825
815
  srcSet,
826
816
  className = "",
827
- ...props
817
+ ...props2
828
818
  }) {
829
- const classes = classNames(
819
+ const classes = ClassNames(
830
820
  "usx-image",
831
821
  {
832
822
  "usx-image--rounded": rounded,
@@ -840,7 +830,7 @@ function Image({
840
830
  if (maxHeight) style.maxHeight = maxHeight;
841
831
  if (maxHeight && !maxWidth) style.width = "auto";
842
832
  if (maxWidth && !maxHeight) style.height = "auto";
843
- const captionClasses = classNames(
833
+ const captionClasses = ClassNames(
844
834
  "usx-image--caption",
845
835
  { "usa-sr-only": hideCaption }
846
836
  );
@@ -856,8 +846,8 @@ function Image({
856
846
  },
857
847
  i
858
848
  )),
859
- /* @__PURE__ */ jsx("img", { src: getAssetUrl(src.fallback, staticBaseUrl), srcSet: srcSet ? getAssetSrcSet(srcSet, staticBaseUrl) : void 0, alt, style, ...props })
860
- ] }) : /* @__PURE__ */ jsx("img", { src: getAssetUrl(src, staticBaseUrl), srcSet: srcSet ? getAssetSrcSet(srcSet, staticBaseUrl) : void 0, alt, style, ...props });
849
+ /* @__PURE__ */ jsx("img", { src: getAssetUrl(src.fallback, staticBaseUrl), srcSet: srcSet ? getAssetSrcSet(srcSet, staticBaseUrl) : void 0, alt, style, ...props2 })
850
+ ] }) : /* @__PURE__ */ jsx("img", { src: getAssetUrl(src, staticBaseUrl), srcSet: srcSet ? getAssetSrcSet(srcSet, staticBaseUrl) : void 0, alt, style, ...props2 });
861
851
  if (caption) {
862
852
  return /* @__PURE__ */ jsxs("figure", { className: classes, style, children: [
863
853
  imgElement,
@@ -885,7 +875,7 @@ function Slide({
885
875
  children = null,
886
876
  ...rest
887
877
  }) {
888
- const cls = ["usx-carousel__slide", className].filter(Boolean).join(" ");
878
+ const cls = ClassNames("usx-carousel__slide", className);
889
879
  return /* @__PURE__ */ jsx(
890
880
  "section",
891
881
  {
@@ -908,11 +898,12 @@ function Carousel({
908
898
  showDots = true,
909
899
  children = null,
910
900
  slideIds = [],
911
- ...props
901
+ ...props2
912
902
  }) {
913
- const classes = classNames("usx-carousel", className);
903
+ var _a;
904
+ const classes = ClassNames("usx-carousel", className);
914
905
  const childArray = React.Children.toArray(children).filter(Boolean);
915
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, role: "region", "aria-roledescription": "carousel", "aria-label": ariaLabel, children: [
906
+ return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, role: "region", "aria-roledescription": "carousel", "aria-label": ariaLabel, children: [
916
907
  /* @__PURE__ */ jsx("div", { className: "usx-carousel__viewport", tabIndex: -1, children: /* @__PURE__ */ jsx("div", { className: "usx-carousel__track", children: childArray.length > 0 ? childArray : slides.length > 0 ? slides.map((slide, i) => /* @__PURE__ */ jsx(
917
908
  Slide,
918
909
  {
@@ -925,7 +916,7 @@ function Carousel({
925
916
  i
926
917
  )) : /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("em", { children: "No slides available." }) }) }) }),
927
918
  showDots && /* @__PURE__ */ jsxs("div", { className: "usx-carousel__dots", "aria-label": "Slide navigation", children: [
928
- slides == null ? void 0 : slides.map((_, i) => /* @__PURE__ */ jsx("a", { href: `#${id}-slide-${i + 1}`, "aria-label": `Go to slide ${i + 1}`, tabIndex: -1 }, i)),
919
+ (_a = childArray.length > 0 ? childArray : slides) == null ? void 0 : _a.map((_, i) => /* @__PURE__ */ jsx("a", { href: `#${id}-slide-${i + 1}`, "aria-label": `Go to slide ${i + 1}`, tabIndex: -1 }, i)),
929
920
  childArray.length > 0 && slideIds.length === childArray.length && slideIds.map((slideId, i) => /* @__PURE__ */ jsx("a", { href: slideId, "aria-label": `Go to slide ${i + 1}`, tabIndex: -1 }, i))
930
921
  ] })
931
922
  ] });
@@ -933,9 +924,9 @@ function Carousel({
933
924
  function Card({
934
925
  title,
935
926
  description,
936
- tags,
937
- actions,
938
- images,
927
+ tagProps,
928
+ buttonProps,
929
+ imageProps,
939
930
  headerFirst = false,
940
931
  flag = false,
941
932
  mediaRight = false,
@@ -945,9 +936,9 @@ function Card({
945
936
  children,
946
937
  className = "",
947
938
  tag: RootTag = "div",
948
- ...props
939
+ ...props2
949
940
  }) {
950
- const cardClasses = classNames(
941
+ const cardClasses = ClassNames(
951
942
  "usa-card",
952
943
  "usx-card",
953
944
  {
@@ -957,66 +948,66 @@ function Card({
957
948
  },
958
949
  className
959
950
  );
960
- const mediaClasses = classNames(
951
+ const mediaClasses = ClassNames(
961
952
  "usa-card__media",
962
953
  {
963
954
  "usa-card__media--inset": mediaInset,
964
955
  "usa-card__media--exdent": mediaExdent
965
956
  }
966
957
  );
967
- const hasStructuredContent = title || description || tags || actions || images;
958
+ const hasStructuredContent = title || description || tagProps || buttonProps || imageProps;
968
959
  const shouldRenderStructured = hasStructuredContent && !children;
969
- const hasImages = images && images.length > 0;
970
- const useCarousel = images && images.length > 1;
960
+ const hasImages = imageProps && imageProps.length > 0;
961
+ const useCarousel = imageProps && imageProps.length > 1;
971
962
  const media = useCarousel ? /* @__PURE__ */ jsx(
972
963
  Carousel,
973
964
  {
974
- id: `${props.id || "card"}-carousel`,
965
+ id: `${props2.id || "card"}-carousel`,
975
966
  showDots: showCarouselDots,
976
967
  className: "usx-card__carousel",
977
- slides: images == null ? void 0 : images.map((img, index) => ({
978
- content: /* @__PURE__ */ jsx(Image, { ...img, hideCaption: true }, index)
968
+ slides: imageProps == null ? void 0 : imageProps.map((img, index) => ({
969
+ content: /* @__PURE__ */ jsx(Image, { hideCaption: true, ...img }, index)
979
970
  }))
980
971
  }
981
- ) : hasImages ? /* @__PURE__ */ jsx(Image, { ...images[0], hideCaption: true, className: "usa-card__img" }) : null;
982
- return /* @__PURE__ */ jsx(RootTag, { className: cardClasses, ...props, children: /* @__PURE__ */ jsx("div", { className: "usa-card__container", children: shouldRenderStructured ? /* @__PURE__ */ jsxs(Fragment, { children: [
972
+ ) : hasImages ? /* @__PURE__ */ jsx(Image, { hideCaption: true, ...imageProps[0], className: ClassNames("usa-card__img", imageProps[0].className) }) : null;
973
+ return /* @__PURE__ */ jsx(RootTag, { className: cardClasses, ...props2, children: /* @__PURE__ */ jsx("div", { className: "usa-card__container", children: shouldRenderStructured ? /* @__PURE__ */ jsxs(Fragment, { children: [
983
974
  title && /* @__PURE__ */ jsx("div", { className: "usa-card__header", children: /* @__PURE__ */ jsx("h4", { className: "usa-card__heading", children: title }) }),
984
975
  media && /* @__PURE__ */ jsx("div", { className: mediaClasses, children: media }),
985
976
  /* @__PURE__ */ jsxs("div", { className: "usa-card__body", children: [
986
- tags && tags.length > 0 && /* @__PURE__ */ jsx("div", { className: "usx-tag-group", children: tags.map((tag, index) => /* @__PURE__ */ jsx(Tag, { ...tag }, index)) }),
977
+ tagProps && tagProps.length > 0 && /* @__PURE__ */ jsx("div", { className: "usx-tag-group", children: tagProps.map((tag, index) => /* @__PURE__ */ jsx(Tag, { ...tag }, index)) }),
987
978
  description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { children: description }) : description)
988
979
  ] }),
989
- actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: "usa-card__footer", children: /* @__PURE__ */ jsx(ButtonGroup, { buttonProps: actions, className: "flex-wrap" }) })
980
+ buttonProps && buttonProps.length > 0 && /* @__PURE__ */ jsx("div", { className: "usa-card__footer", children: /* @__PURE__ */ jsx(ButtonGroup, { buttonProps, className: "flex-wrap" }) })
990
981
  ] }) : children || "Card" }) });
991
982
  }
992
- function CardGroup({ cardProps = [], className = "", ...props }) {
993
- const classes = classNames(
983
+ function CardGroup({ cardProps = [], className = "", ...props2 }) {
984
+ const classes = ClassNames(
994
985
  "usa-card-group",
995
986
  "usx-card-group",
996
987
  className
997
988
  );
998
- return /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: cardProps.map((card, index) => /* @__PURE__ */ jsx(Card, { ...card, tag: "li" }, index)) });
989
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: cardProps.map((card, index) => /* @__PURE__ */ jsx(Card, { ...card, tag: "li" }, index)) });
999
990
  }
1000
991
  function Hint({
1001
992
  id,
1002
993
  children = null,
1003
994
  className = "",
1004
- ...props
995
+ ...props2
1005
996
  }) {
1006
- const classes = classNames("usa-hint", "usx-hint", className);
1007
- return /* @__PURE__ */ jsx("span", { className: classes, ...id ? { id } : {}, ...props, children });
997
+ const classes = ClassNames("usa-hint", "usx-hint", className);
998
+ return /* @__PURE__ */ jsx("span", { className: classes, ...id ? { id } : {}, ...props2, children });
1008
999
  }
1009
1000
  function ErrorMessage({
1010
1001
  id,
1011
1002
  children = null,
1012
1003
  className = "",
1013
- ...props
1004
+ ...props2
1014
1005
  }) {
1015
- const classes = classNames("usa-error-message", "usx-error-message", className);
1016
- return /* @__PURE__ */ jsx("span", { className: classes, role: "alert", ...id ? { id } : {}, ...props, children });
1006
+ const classes = ClassNames("usa-error-message", "usx-error-message", className);
1007
+ return /* @__PURE__ */ jsx("span", { className: classes, role: "alert", ...id ? { id } : {}, ...props2, children });
1017
1008
  }
1018
- function FormGroup({ children = null, className = "", error = false, ...props }) {
1019
- const classes = classNames(
1009
+ function FormGroup({ children = null, className = "", error = false, ...props2 }) {
1010
+ const classes = ClassNames(
1020
1011
  "usa-form-group",
1021
1012
  "usx-form-group",
1022
1013
  {
@@ -1024,7 +1015,7 @@ function FormGroup({ children = null, className = "", error = false, ...props })
1024
1015
  },
1025
1016
  className
1026
1017
  );
1027
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children });
1018
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children });
1028
1019
  }
1029
1020
  function Input({
1030
1021
  label,
@@ -1038,7 +1029,7 @@ function Input({
1038
1029
  screenReaderOnlyLabel = false,
1039
1030
  formGroup = true,
1040
1031
  className = "",
1041
- ...props
1032
+ ...props2
1042
1033
  }) {
1043
1034
  const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
1044
1035
  const hintId = hint ? `${inputId}-hint` : void 0;
@@ -1047,7 +1038,7 @@ function Input({
1047
1038
  const inputClasses = "usa-input usx-input";
1048
1039
  const inputErrorClasses = "usa-input--error";
1049
1040
  const inputSuccessClasses = "usa-input--success";
1050
- const combinedInputClasses = classNames(
1041
+ const combinedInputClasses = ClassNames(
1051
1042
  inputClasses,
1052
1043
  hasError ? inputErrorClasses : hasSuccess ? inputSuccessClasses : null,
1053
1044
  className
@@ -1063,7 +1054,7 @@ function Input({
1063
1054
  required,
1064
1055
  "aria-describedby": describedByParts.length ? describedByParts.join(" ") : void 0,
1065
1056
  "aria-invalid": hasError ? true : void 0,
1066
- ...props
1057
+ ...props2
1067
1058
  };
1068
1059
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
1069
1060
  /* @__PURE__ */ jsx(Label, { htmlFor: inputId, screenReaderOnly: screenReaderOnlyLabel, required, error: hasError, children: label }),
@@ -1086,12 +1077,12 @@ const TextArea = ({
1086
1077
  success = null,
1087
1078
  formGroup = true,
1088
1079
  className = "",
1089
- ...props
1080
+ ...props2
1090
1081
  }) => {
1091
1082
  const textAreaId = id || `textarea-${Math.random().toString(36).substr(2, 9)}`;
1092
1083
  const hasError = !!error;
1093
1084
  const hasSuccess = !!success;
1094
- const classes = classNames(
1085
+ const classes = ClassNames(
1095
1086
  "usa-textarea",
1096
1087
  "usx-textarea",
1097
1088
  hasError ? "usa-input--error" : hasSuccess ? "usa-input--success" : null,
@@ -1116,7 +1107,7 @@ const TextArea = ({
1116
1107
  ...required ? { required: true } : {},
1117
1108
  "aria-describedby": describedByParts.length ? describedByParts.join(" ") : void 0,
1118
1109
  "aria-invalid": hasError ? "true" : void 0,
1119
- ...props
1110
+ ...props2
1120
1111
  }
1121
1112
  )
1122
1113
  ] });
@@ -1135,14 +1126,14 @@ function CharacterCount({
1135
1126
  placeholder = "",
1136
1127
  textArea = false,
1137
1128
  className = "",
1138
- ...props
1129
+ ...props2
1139
1130
  }) {
1140
1131
  const fieldId = id || `character-count-${Math.random().toString(36).substr(2, 9)}`;
1141
1132
  const infoId = `${fieldId}-info`;
1142
1133
  const hintId = hint ? `${fieldId}-hint` : void 0;
1143
1134
  const errorId = error ? `${fieldId}-error` : void 0;
1144
1135
  const successId = !error && success ? `${fieldId}-success` : void 0;
1145
- const outerClasses = classNames("usa-character-count", "usx-character-count", className);
1136
+ const outerClasses = ClassNames("usa-character-count", "usx-character-count", className);
1146
1137
  const fieldProps = {
1147
1138
  id: fieldId,
1148
1139
  label,
@@ -1157,7 +1148,7 @@ function CharacterCount({
1157
1148
  formGroup: true,
1158
1149
  className: "usa-character-count__field",
1159
1150
  "aria-describedby": [infoId, hintId, errorId, successId].filter(Boolean).join(" "),
1160
- ...props
1151
+ ...props2
1161
1152
  };
1162
1153
  return /* @__PURE__ */ jsxs("div", { className: outerClasses, children: [
1163
1154
  textArea ? /* @__PURE__ */ jsx(TextArea, { ...fieldProps }) : /* @__PURE__ */ jsx(Input, { ...fieldProps }),
@@ -1184,22 +1175,22 @@ function Checkbox({
1184
1175
  className = "",
1185
1176
  onChange,
1186
1177
  required = false,
1187
- ...props
1178
+ ...props2
1188
1179
  }) {
1189
1180
  const hasError = !!error;
1190
1181
  const hasSuccess = !!success;
1191
- const divClasses = classNames(
1182
+ const divClasses = ClassNames(
1192
1183
  "usa-checkbox",
1193
1184
  "usx-checkbox",
1194
1185
  { "usx-checkbox--small": small },
1195
1186
  className
1196
1187
  );
1197
- const inputClasses = classNames(
1188
+ const inputClasses = ClassNames(
1198
1189
  "usa-checkbox__input",
1199
1190
  { "usa-checkbox__input--tile": tile }
1200
1191
  );
1201
1192
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1202
- /* @__PURE__ */ jsxs("div", { className: divClasses, ...props, children: [
1193
+ /* @__PURE__ */ jsxs("div", { className: divClasses, ...props2, children: [
1203
1194
  /* @__PURE__ */ jsx(
1204
1195
  "input",
1205
1196
  {
@@ -1229,15 +1220,15 @@ function Legend({
1229
1220
  large = false,
1230
1221
  children = null,
1231
1222
  className = "",
1232
- ...props
1223
+ ...props2
1233
1224
  }) {
1234
- const classes = classNames(
1225
+ const classes = ClassNames(
1235
1226
  "usa-legend",
1236
1227
  "usx-legend",
1237
1228
  { "usa-legend--large": large },
1238
1229
  className
1239
1230
  );
1240
- return /* @__PURE__ */ jsxs("legend", { className: classes, ...props, children: [
1231
+ return /* @__PURE__ */ jsxs("legend", { className: classes, ...props2, children: [
1241
1232
  required && /* @__PURE__ */ jsx(Required, {}),
1242
1233
  children || text
1243
1234
  ] });
@@ -1253,14 +1244,14 @@ function Fieldset({
1253
1244
  errorId,
1254
1245
  children = null,
1255
1246
  className = "",
1256
- ...props
1247
+ ...props2
1257
1248
  }) {
1258
- const classes = classNames(
1249
+ const classes = ClassNames(
1259
1250
  "usa-fieldset",
1260
1251
  "usx-fieldset",
1261
1252
  className
1262
1253
  );
1263
- return /* @__PURE__ */ jsxs("fieldset", { className: classes, ...disabled ? { disabled: true } : {}, ...props, children: [
1254
+ return /* @__PURE__ */ jsxs("fieldset", { className: classes, ...disabled ? { disabled: true } : {}, ...props2, children: [
1264
1255
  legend && /* @__PURE__ */ jsx(
1265
1256
  Legend,
1266
1257
  {
@@ -1283,25 +1274,22 @@ const CheckboxGroup = ({
1283
1274
  hint = null,
1284
1275
  error = null,
1285
1276
  name = "checkbox-group",
1286
- options = [],
1277
+ id: groupId,
1278
+ checkboxProps = [],
1287
1279
  className = "",
1288
- ...props
1280
+ ...props2
1289
1281
  }) => {
1290
- const classes = classNames("usa-checkbox-group", "usx-checkbox-group", className);
1291
- return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(Fieldset, { legend, required, hint, error, className: classes, ...props, children: options.map((opt, idx) => {
1292
- const id = opt.id || `${name}-${idx}`;
1282
+ const classes = ClassNames("usa-checkbox-group", "usx-checkbox-group", className);
1283
+ return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(Fieldset, { id: groupId, legend, required, hint, error, className: classes, ...props2, children: checkboxProps.map((opt, idx) => {
1284
+ const id = opt.id || `${groupId || name}-${idx}`;
1293
1285
  return /* @__PURE__ */ jsx(
1294
1286
  Checkbox,
1295
1287
  {
1296
- id,
1297
1288
  name,
1298
- value: opt.value,
1299
- label: opt.label,
1300
- description: opt.description,
1301
- checked: !!opt.checked,
1302
- disabled: !!opt.disabled,
1303
1289
  tile,
1304
- small
1290
+ small,
1291
+ ...opt,
1292
+ id
1305
1293
  },
1306
1294
  id
1307
1295
  );
@@ -1315,7 +1303,7 @@ function ClickableLink({
1315
1303
  bgColorChange = false,
1316
1304
  ...rest
1317
1305
  }) {
1318
- const classes = classNames(
1306
+ const classes = ClassNames(
1319
1307
  "usx-clickable__link",
1320
1308
  colorChange && "usx-clickable__color-on-hover",
1321
1309
  bgColorChange && "usx-clickable__bg-color-on-hover",
@@ -1324,13 +1312,13 @@ function ClickableLink({
1324
1312
  return /* @__PURE__ */ jsx(Tag2, { className: classes, ...rest, children });
1325
1313
  }
1326
1314
  function ClickableColorChange({ children, className, as: Tag2 = "span", ...rest }) {
1327
- return /* @__PURE__ */ jsx(Tag2, { className: classNames("usx-clickable__color-on-hover", className), ...rest, children });
1315
+ return /* @__PURE__ */ jsx(Tag2, { className: ClassNames("usx-clickable__color-on-hover", className), ...rest, children });
1328
1316
  }
1329
1317
  function ClickableBgColorChange({ children, className, as: Tag2 = "span", ...rest }) {
1330
- return /* @__PURE__ */ jsx(Tag2, { className: classNames("usx-clickable__bg-color-on-hover", className), ...rest, children });
1318
+ return /* @__PURE__ */ jsx(Tag2, { className: ClassNames("usx-clickable__bg-color-on-hover", className), ...rest, children });
1331
1319
  }
1332
1320
  function Clickable({ className, children, ...rest }) {
1333
- const classes = classNames("usx-clickable", className);
1321
+ const classes = ClassNames("usx-clickable", className);
1334
1322
  if ("href" in rest && rest.href !== void 0) {
1335
1323
  return /* @__PURE__ */ jsx("a", { className: classes, ...rest, children });
1336
1324
  }
@@ -1345,16 +1333,16 @@ const Tooltip = ({
1345
1333
  children,
1346
1334
  className = "",
1347
1335
  bodyClassName = "",
1348
- ...props
1336
+ ...props2
1349
1337
  }) => {
1350
1338
  const validPositions = ["top", "bottom", "left", "right"];
1351
1339
  const normalizedPosition = validPositions.includes(position) ? position : "top";
1352
- return /* @__PURE__ */ jsxs("span", { className: classNames("usx-tooltip", className), ...props, children: [
1340
+ return /* @__PURE__ */ jsxs("span", { className: ClassNames("usx-tooltip", className), ...props2, children: [
1353
1341
  children,
1354
1342
  /* @__PURE__ */ jsx(
1355
1343
  "span",
1356
1344
  {
1357
- className: classNames("usa-tooltip__body", `usa-tooltip__body--${normalizedPosition}`, bodyClassName),
1345
+ className: ClassNames("usa-tooltip__body", `usa-tooltip__body--${normalizedPosition}`, bodyClassName),
1358
1346
  role: "tooltip",
1359
1347
  children: label
1360
1348
  }
@@ -1377,7 +1365,7 @@ function CopyToClipboard({
1377
1365
  Button,
1378
1366
  {
1379
1367
  ghost: true,
1380
- className: classNames("usx-copy", className),
1368
+ className: ClassNames("usx-copy", className),
1381
1369
  onClick: () => copyTextToClipboard(copyText),
1382
1370
  type: "button",
1383
1371
  children: [
@@ -1402,7 +1390,7 @@ function CopyToClipboard({
1402
1390
  );
1403
1391
  }
1404
1392
  function Code({ lines = [], allowHtml = false, copyText = null, staticBaseUrl, className = "" }) {
1405
- return /* @__PURE__ */ jsxs("div", { className: classNames("usx-mockup-code", className), children: [
1393
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-mockup-code", className), children: [
1406
1394
  /* @__PURE__ */ jsx("div", { className: "usx-mockup-code__content", children: lines.map((line, i) => /* @__PURE__ */ jsx(
1407
1395
  "pre",
1408
1396
  {
@@ -1415,10 +1403,10 @@ function Code({ lines = [], allowHtml = false, copyText = null, staticBaseUrl, c
1415
1403
  copyText && /* @__PURE__ */ jsx(CopyToClipboard, { copyText, staticBaseUrl, tooltipProps: { label: "Copy", copiedTooltip: "Copied", position: "left" } })
1416
1404
  ] });
1417
1405
  }
1418
- function CollectionItem({ href, heading, description, imgSrc, imgAlt = "", calendarDate, meta, tags }) {
1406
+ function CollectionItem({ href, heading, description, imgSrc, imgAlt = "", calendarDateProps, meta, tags }) {
1419
1407
  return /* @__PURE__ */ jsxs("li", { className: "usa-collection__item", children: [
1420
1408
  imgSrc && /* @__PURE__ */ jsx("img", { className: "usa-collection__img", src: imgSrc, alt: imgAlt }),
1421
- calendarDate && /* @__PURE__ */ jsx(CalendarDate, { datetime: typeof calendarDate === "string" ? calendarDate : calendarDate.datetime, underCollection: true }),
1409
+ calendarDateProps && /* @__PURE__ */ jsx(CalendarDate, { underCollection: true, ...calendarDateProps }),
1422
1410
  /* @__PURE__ */ jsxs("div", { className: "usa-collection__body", children: [
1423
1411
  /* @__PURE__ */ jsx("h4", { className: "usa-collection__heading", children: /* @__PURE__ */ jsx("a", { className: "usa-link usx-link", href, children: heading }) }),
1424
1412
  description && /* @__PURE__ */ jsx("p", { className: "usa-collection__description", children: description }),
@@ -1428,7 +1416,7 @@ function CollectionItem({ href, heading, description, imgSrc, imgAlt = "", calen
1428
1416
  tags && tags.length > 0 && /* @__PURE__ */ jsx("ul", { className: "usa-collection__meta", "aria-label": "Topics", children: tags.map((tag, i) => /* @__PURE__ */ jsx(
1429
1417
  "li",
1430
1418
  {
1431
- className: classNames(
1419
+ className: ClassNames(
1432
1420
  "usa-collection__meta-item",
1433
1421
  "usa-tag usx-tag",
1434
1422
  typeof tag === "object" && tag.isNew && "usa-tag--new"
@@ -1440,14 +1428,14 @@ function CollectionItem({ href, heading, description, imgSrc, imgAlt = "", calen
1440
1428
  ] })
1441
1429
  ] });
1442
1430
  }
1443
- function Collection({ items = [], condensed = false, className = "", ...props }) {
1444
- const classes = classNames(
1431
+ function Collection({ items = [], condensed = false, className = "", ...props2 }) {
1432
+ const classes = ClassNames(
1445
1433
  "usa-collection",
1446
1434
  "usx-collection",
1447
1435
  condensed && "usa-collection--condensed",
1448
1436
  className
1449
1437
  );
1450
- return /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: items.map((item, i) => /* @__PURE__ */ jsx(CollectionItem, { ...item }, i)) });
1438
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: items.map((item, i) => /* @__PURE__ */ jsx(CollectionItem, { ...item }, i)) });
1451
1439
  }
1452
1440
  function Combobox({
1453
1441
  id,
@@ -1464,7 +1452,7 @@ function Combobox({
1464
1452
  onSelect,
1465
1453
  formGroup = true,
1466
1454
  className = "",
1467
- ...props
1455
+ ...props2
1468
1456
  }) {
1469
1457
  const labelId = `${id}-label`;
1470
1458
  const hintId = hint ? `${id}-hint` : void 0;
@@ -1485,7 +1473,7 @@ function Combobox({
1485
1473
  /* @__PURE__ */ jsx(
1486
1474
  "div",
1487
1475
  {
1488
- className: classNames(
1476
+ className: ClassNames(
1489
1477
  "usa-combo-box",
1490
1478
  "usx-combo-box",
1491
1479
  { "usx-combo-box--error": !!error },
@@ -1497,13 +1485,13 @@ function Combobox({
1497
1485
  children: /* @__PURE__ */ jsx(
1498
1486
  "select",
1499
1487
  {
1500
- className: classNames("usa-select", "usx-select"),
1488
+ className: ClassNames("usa-select", "usx-select"),
1501
1489
  id,
1502
1490
  name,
1503
1491
  disabled,
1504
1492
  required,
1505
1493
  onChange: handleChange,
1506
- ...props,
1494
+ ...props2,
1507
1495
  children: options.map((opt) => /* @__PURE__ */ jsx("option", { value: opt.value, children: opt.label }, opt.value))
1508
1496
  }
1509
1497
  )
@@ -1512,6 +1500,84 @@ function Combobox({
1512
1500
  ] });
1513
1501
  return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: content }) : content;
1514
1502
  }
1503
+ const props = { "element": { "type": "select", "description": "Root HTML element. Use a heading or accessible label for named sections and navigation; list roots require list-item children.", "options": ["div", "section", "article", "aside", "nav", "ul", "ol", "li"], "default": "div" }, "gridContainer": { "type": "select", "description": "Opt-in centered USWDS page-width container with side padding. Default uses the USX themed grid-container; named sizes use USWDS widths. Usually wrap a gridRow inside this container rather than combining them.", "options": ["default", "card", "card-lg", "mobile", "mobile-lg", "tablet", "tablet-lg", "desktop", "desktop-lg", "widescreen"] }, "gridRow": { "type": "boolean", "description": "Use a wrapping USWDS grid row. Nest Containers with column settings as direct children. Omitted leaves the container unstyled.", "default": false }, "display": { "type": "select", "description": "Display mode. Choose flex or inline-flex to enable direction, wrap, alignment, and gap. Flow-root contains floated children; none hides the container and its descendants.", "options": ["block", "flex", "inline", "inline-block", "inline-flex", "none", "flow-root"] }, "direction": { "type": "select", "description": "Direction of flex children. Requires display flex or inline-flex (or gridRow). Reverse directions change visual order only, not reading or keyboard order.", "options": ["row", "column", "row-reverse", "column-reverse"] }, "wrap": { "type": "select", "description": "Whether flex children wrap onto new lines. Set wrap for a flexible toolbar; omitted uses normal CSS behavior.", "options": ["wrap", "nowrap", "wrap-reverse"] }, "justify": { "type": "select", "description": "Distribute children along the main flex axis.", "options": ["start", "end", "center", "space-between", "space-around", "space-evenly"] }, "align": { "type": "select", "description": "Align children across the flex axis.", "options": ["start", "end", "center", "stretch", "baseline"] }, "alignSelf": { "type": "select", "description": "Override this container’s alignment as a child of a flex parent. Auto restores parent alignment.", "options": ["auto", "start", "end", "center", "stretch", "baseline"] }, "flex": { "type": "select", "description": "Size this container as a flex child: auto uses its content size, fill shares available space, none keeps its size. Use column instead when this is a USWDS grid column.", "options": ["auto", "fill", "none"] }, "gap": { "type": "select", "description": "Space between flex children using USWDS spacing tokens (1 = 8px, 05 = 4px). Use gutters instead on gridRow: CSS gap adds to percentage column widths.", "options": ["0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "column": { "type": "select", "description": "Width of this container inside a gridRow: 1–12 columns, auto for content width, or fill for equal shares. Set 12 at the base to stack on small screens, then override at larger breakpoints.", "options": ["auto", "fill", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "offset": { "type": "select", "description": "Offset this grid column by 1–12 columns. Use none to reset an earlier offset.", "options": ["none", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"] }, "gutters": { "type": "select", "description": "Horizontal USWDS grid gutters; requires gridRow. Use 2 with a desktop override of 4 for standard responsive spacing; 0 removes gutters. Rows use negative margins, so nest them in a gridContainer or another padded parent.", "options": ["sm", "md", "lg", "0", "2px", "05", "1", "2", "3", "4", "5", "6"] }, "float": { "type": "select", "description": "Float this container so surrounding content wraps around it. Float has no effect on flex children; use a flow-root parent to contain floats.", "options": ["none", "left", "right"] }, "responsive": { "type": "object", "description": "Mobile-first overrides keyed by mobileLg, tablet, and desktop. Omitted fields keep the smaller-screen setting; use explicit values (none, 0, row, etc.) to reset. Breakpoints match precompiled USWDS and do not follow USX page-layout theme breakpoints.", "properties": { "mobileLg": { "type": "object", "description": "Layout overrides at 30em / 480px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "tablet": { "type": "object", "description": "Layout overrides at 40em / 640px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] }, "desktop": { "type": "object", "description": "Layout overrides at 64em / 1024px and wider (pixel equivalent assumes 16px browser default).", "component": "container", "omit": ["element", "gridContainer", "gridRow", "responsive", "children", "content", "className", "id", "role", "ariaLabel", "ariaLabelledby"] } } }, "children": { "type": "slot", "description": "Grouped content rendered directly, with no child wrappers or reordering. Takes precedence over content unless null or undefined." }, "content": { "type": "slot", "description": "Fallback grouped content when children is null or undefined." }, "className": { "type": "string", "description": "Additional CSS classes for spacing, decoration, or layouts beyond these controls." }, "id": { "type": "string", "description": "HTML identifier for links and accessible references." }, "role": { "type": "string", "description": "Optional ARIA role; prefer an appropriate semantic element." }, "ariaLabel": { "type": "string", "description": "Accessible name when a visible label is not available." }, "ariaLabelledby": { "type": "string", "description": "ID of the visible heading or label that names this container." } };
1504
+ const config = {
1505
+ props
1506
+ };
1507
+ const breakpoints = [["mobileLg", "mobile-lg"], ["tablet", "tablet"], ["desktop", "desktop"]];
1508
+ const layoutKeys = [
1509
+ "display",
1510
+ "direction",
1511
+ "wrap",
1512
+ "justify",
1513
+ "align",
1514
+ "alignSelf",
1515
+ "flex",
1516
+ "gap",
1517
+ "column",
1518
+ "offset",
1519
+ "gutters",
1520
+ "float"
1521
+ ];
1522
+ function layoutClasses(layout, prefix = "") {
1523
+ if (!layout || typeof layout !== "object" || Array.isArray(layout)) return [];
1524
+ return layoutKeys.flatMap((key) => {
1525
+ const value = layout[key];
1526
+ if (typeof value !== "string" || !config.props[key].options.includes(value)) return [];
1527
+ let className;
1528
+ if (key === "column") className = `grid-col-${value}`;
1529
+ else if (key === "offset") className = `grid-offset-${value}`;
1530
+ else if (key === "gutters") className = `grid-gap-${value}`;
1531
+ else className = `usx-container--${key === "alignSelf" ? "align-self" : key}-${value}`;
1532
+ return [`${prefix}${className}`];
1533
+ });
1534
+ }
1535
+ function Container({
1536
+ element = "div",
1537
+ gridContainer,
1538
+ gridRow = false,
1539
+ display,
1540
+ direction,
1541
+ wrap,
1542
+ justify,
1543
+ align,
1544
+ alignSelf,
1545
+ flex,
1546
+ gap,
1547
+ column,
1548
+ offset,
1549
+ gutters,
1550
+ float,
1551
+ responsive,
1552
+ children,
1553
+ content,
1554
+ className = "",
1555
+ id,
1556
+ role,
1557
+ ariaLabel,
1558
+ ariaLabelledby
1559
+ }) {
1560
+ const Element = config.props.element.options.includes(element) ? element : "div";
1561
+ const classes = ClassNames(
1562
+ "usx-container",
1563
+ gridContainer && config.props.gridContainer.options.includes(gridContainer) ? gridContainer === "default" ? "grid-container" : `grid-container-${gridContainer}` : null,
1564
+ { "grid-row": gridRow === true },
1565
+ layoutClasses({ display, direction, wrap, justify, align, alignSelf, flex, gap, column, offset, gutters, float }),
1566
+ breakpoints.map(([key, prefix]) => layoutClasses((responsive == null ? void 0 : responsive[key]) ?? {}, `${prefix}:`)),
1567
+ typeof className === "string" ? className : void 0
1568
+ );
1569
+ return /* @__PURE__ */ jsx(
1570
+ Element,
1571
+ {
1572
+ className: classes,
1573
+ id: typeof id === "string" ? id : void 0,
1574
+ role: typeof role === "string" ? role : void 0,
1575
+ "aria-label": typeof ariaLabel === "string" ? ariaLabel : void 0,
1576
+ "aria-labelledby": typeof ariaLabelledby === "string" ? ariaLabelledby : void 0,
1577
+ children: children ?? content
1578
+ }
1579
+ );
1580
+ }
1515
1581
  function DatePicker({
1516
1582
  id = "date-picker",
1517
1583
  name,
@@ -1526,7 +1592,7 @@ function DatePicker({
1526
1592
  rangeDate = null,
1527
1593
  formGroup = true,
1528
1594
  className = "",
1529
- ...props
1595
+ ...props2
1530
1596
  }) {
1531
1597
  const labelId = `${id}-label`;
1532
1598
  const hintId = hint ? `${id}-hint` : void 0;
@@ -1539,7 +1605,7 @@ function DatePicker({
1539
1605
  /* @__PURE__ */ jsx(
1540
1606
  "div",
1541
1607
  {
1542
- className: classNames("usa-date-picker", "usx-date-picker", className),
1608
+ className: ClassNames("usa-date-picker", "usx-date-picker", className),
1543
1609
  ...defaultValue ? { "data-default-value": defaultValue } : {},
1544
1610
  ...minDate ? { "data-min-date": minDate } : {},
1545
1611
  ...maxDate ? { "data-max-date": maxDate } : {},
@@ -1547,7 +1613,7 @@ function DatePicker({
1547
1613
  children: /* @__PURE__ */ jsx(
1548
1614
  "input",
1549
1615
  {
1550
- className: classNames(
1616
+ className: ClassNames(
1551
1617
  "usa-input",
1552
1618
  "usx-input",
1553
1619
  { "usa-input--error": !!error }
@@ -1558,7 +1624,7 @@ function DatePicker({
1558
1624
  "aria-describedby": describedBy,
1559
1625
  disabled,
1560
1626
  required,
1561
- ...props
1627
+ ...props2
1562
1628
  }
1563
1629
  )
1564
1630
  }
@@ -1596,7 +1662,7 @@ function DateRangePicker({
1596
1662
  return /* @__PURE__ */ jsxs(
1597
1663
  "div",
1598
1664
  {
1599
- className: classNames("usa-date-range-picker", "usx-date-range-picker", className),
1665
+ className: ClassNames("usa-date-range-picker", "usx-date-range-picker", className),
1600
1666
  ...minDate ? { "data-min-date": minDate } : {},
1601
1667
  ...maxDate ? { "data-max-date": maxDate } : {},
1602
1668
  children: [
@@ -1652,9 +1718,9 @@ function DateRangePicker({
1652
1718
  }
1653
1719
  );
1654
1720
  }
1655
- function Eyebrow({ children = null, className = "", ...props }) {
1656
- const classes = ["usx-eyebrow", className].filter(Boolean).join(" ");
1657
- return /* @__PURE__ */ jsx("span", { className: classes, ...props, children });
1721
+ function Eyebrow({ children = null, className = "", ...props2 }) {
1722
+ const classes = ClassNames("usx-eyebrow", className);
1723
+ return /* @__PURE__ */ jsx("span", { className: classes, ...props2, children });
1658
1724
  }
1659
1725
  function Link({
1660
1726
  href = "javascript:void(0);",
@@ -1664,9 +1730,9 @@ function Link({
1664
1730
  alt = false,
1665
1731
  newTab = false,
1666
1732
  className = "",
1667
- ...props
1733
+ ...props2
1668
1734
  }) {
1669
- const classes = classNames(
1735
+ const classes = ClassNames(
1670
1736
  "usa-link",
1671
1737
  "usx-link",
1672
1738
  visited && "usx-link--visited",
@@ -1681,7 +1747,7 @@ function Link({
1681
1747
  className: classes,
1682
1748
  target: newTab || external ? "_blank" : void 0,
1683
1749
  rel: newTab || external ? "noreferrer noopener" : void 0,
1684
- ...props,
1750
+ ...props2,
1685
1751
  children
1686
1752
  }
1687
1753
  );
@@ -1703,7 +1769,7 @@ function getEntryDisplay(entry) {
1703
1769
  function FileList({ files, hint = "Selected files", onRemove = null, disabled = false, className = "" }) {
1704
1770
  if (!files || files.length === 0) return null;
1705
1771
  const lastEntry = getEntryDisplay(files[files.length - 1]);
1706
- return /* @__PURE__ */ jsxs("div", { className: ["usx-file-input__list", "margin-top-1", className].filter(Boolean).join(" "), children: [
1772
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-file-input__list", "margin-top-1", className), children: [
1707
1773
  /* @__PURE__ */ jsx("span", { className: "usa-sr-only", "aria-live": "polite", children: `You have selected the file: ${lastEntry.name}.` }),
1708
1774
  hint && /* @__PURE__ */ jsx("span", { className: "usa-hint usx-hint usx-file-input__list-heading", children: hint }),
1709
1775
  /* @__PURE__ */ jsx("ul", { className: "usx-file-input__file-list", children: files.map((entry) => {
@@ -1756,7 +1822,7 @@ function FileInput({
1756
1822
  onFilesChange = null,
1757
1823
  defaultFiles = [],
1758
1824
  formGroup = true,
1759
- ...props
1825
+ ...props2
1760
1826
  }) {
1761
1827
  const hintId = hint ? `${id}-hint` : void 0;
1762
1828
  const errorId = error ? `${id}-error` : void 0;
@@ -1796,7 +1862,7 @@ function FileInput({
1796
1862
  /* @__PURE__ */ jsx(
1797
1863
  "input",
1798
1864
  {
1799
- className: ["usa-file-input", "usx-file-input", className].filter(Boolean).join(" "),
1865
+ className: ClassNames("usa-file-input", "usx-file-input", className),
1800
1866
  id,
1801
1867
  type: "file",
1802
1868
  name: name || id,
@@ -1806,7 +1872,7 @@ function FileInput({
1806
1872
  disabled,
1807
1873
  required,
1808
1874
  ...invalidFileTypeMessage ? { "data-errormessage": invalidFileTypeMessage } : {},
1809
- ...props
1875
+ ...props2
1810
1876
  }
1811
1877
  )
1812
1878
  ] });
@@ -1819,7 +1885,7 @@ function FileInput({
1819
1885
  /* @__PURE__ */ jsx("div", { className: "usx-file-input__add-only", children: /* @__PURE__ */ jsx(
1820
1886
  "input",
1821
1887
  {
1822
- className: ["usa-file-input", "usx-file-input", className].filter(Boolean).join(" "),
1888
+ className: ClassNames("usa-file-input", "usx-file-input", className),
1823
1889
  id,
1824
1890
  type: "file",
1825
1891
  name: name || id,
@@ -1829,7 +1895,7 @@ function FileInput({
1829
1895
  disabled,
1830
1896
  required: required && managedFiles.length === 0,
1831
1897
  ...invalidFileTypeMessage ? { "data-errormessage": invalidFileTypeMessage } : {},
1832
- ...props,
1898
+ ...props2,
1833
1899
  onChange: addFiles
1834
1900
  }
1835
1901
  ) }),
@@ -1837,8 +1903,8 @@ function FileInput({
1837
1903
  ] });
1838
1904
  return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: content }) : content;
1839
1905
  }
1840
- function BrandingContent({ config, projectUrl, staticBaseUrl }) {
1841
- const { title, symbol, symbolInverse, logo, logoInverse, alt } = config;
1906
+ function BrandingContent({ config: config2, projectUrl, staticBaseUrl }) {
1907
+ const { title, symbol, symbolInverse, logo, logoInverse, alt } = config2;
1842
1908
  const label = alt ?? title ?? "";
1843
1909
  if (logo) {
1844
1910
  const Wrapper = projectUrl ? "a" : "div";
@@ -1876,17 +1942,17 @@ function BrandingContent({ config, projectUrl, staticBaseUrl }) {
1876
1942
  title && (projectUrl ? /* @__PURE__ */ jsx("a", { href: projectUrl, className: "usx-logo__title", children: title }) : /* @__PURE__ */ jsx("span", { className: "usx-logo__title", children: title }))
1877
1943
  ] });
1878
1944
  }
1879
- function Branding({ branding, projectUrl = "/", staticBaseUrl, className = "", ...props }) {
1945
+ function Branding({ branding, projectUrl = "/", staticBaseUrl, className = "", ...props2 }) {
1880
1946
  if (!branding) return null;
1881
- const classes = classNames(
1947
+ const classes = ClassNames(
1882
1948
  "usa-logo",
1883
1949
  "usx-logo",
1884
1950
  className
1885
1951
  );
1886
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: /* @__PURE__ */ jsx(BrandingContent, { config: branding, projectUrl, staticBaseUrl }) });
1952
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: /* @__PURE__ */ jsx(BrandingContent, { config: branding, projectUrl, staticBaseUrl }) });
1887
1953
  }
1888
1954
  function FooterReturnToTop({ label = "Return to top", href = "#", className = "" }) {
1889
- const classes = classNames(
1955
+ const classes = ClassNames(
1890
1956
  "grid-container",
1891
1957
  "usa-footer__return-to-top",
1892
1958
  "usx-footer__return-to-top",
@@ -1898,7 +1964,7 @@ function FooterReturnToTop({ label = "Return to top", href = "#", className = ""
1898
1964
  ] }) });
1899
1965
  }
1900
1966
  function FooterNavColumn({ heading, links = [], className = "" }) {
1901
- return /* @__PURE__ */ jsxs("section", { className: ["usa-footer__primary-content usa-footer__primary-content--collapsible usx-footer__nav-column", className].filter(Boolean).join(" "), children: [
1967
+ return /* @__PURE__ */ jsxs("section", { className: ClassNames("usa-footer__primary-content usa-footer__primary-content--collapsible usx-footer__nav-column", className), children: [
1902
1968
  heading && /* @__PURE__ */ jsx("h4", { className: "usa-footer__primary-link", children: heading }),
1903
1969
  links.length > 0 && /* @__PURE__ */ jsx("ul", { className: "usa-list usa-list--unstyled", children: links.map((link, i) => /* @__PURE__ */ jsx("li", { className: "usa-footer__secondary-link", children: /* @__PURE__ */ jsx("a", { href: link.href, "aria-label": link.ariaLabel || void 0, children: link.text }) }, i)) })
1904
1970
  ] });
@@ -1912,7 +1978,7 @@ function FooterSignUp({
1912
1978
  onSubmit = null,
1913
1979
  className = ""
1914
1980
  }) {
1915
- return /* @__PURE__ */ jsxs("div", { className: ["usa-sign-up usx-footer__sign-up", className].filter(Boolean).join(" "), children: [
1981
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usa-sign-up usx-footer__sign-up", className), children: [
1916
1982
  /* @__PURE__ */ jsx("h3", { className: "usa-sign-up__heading", children: heading }),
1917
1983
  /* @__PURE__ */ jsxs("form", { className: "usa-form", action: action || void 0, onSubmit: onSubmit || void 0, children: [
1918
1984
  /* @__PURE__ */ jsx(
@@ -1931,7 +1997,7 @@ function FooterSignUp({
1931
1997
  }
1932
1998
  function FooterSocialLinks({ links = [], staticBaseUrl, className = "" }) {
1933
1999
  if (!links.length) return null;
1934
- return /* @__PURE__ */ jsx("div", { className: ["usa-footer__social-links grid-row grid-gap-1 usx-footer__social-links", className].filter(Boolean).join(" "), children: links.map((link, i) => /* @__PURE__ */ jsx("div", { className: "grid-col-auto", children: /* @__PURE__ */ jsx("a", { className: "usa-social-link", href: link.href, "aria-label": link.alt, children: /* @__PURE__ */ jsx("img", { className: "usa-social-link__icon", src: getAssetUrl(link.icon, staticBaseUrl), alt: link.alt }) }) }, i)) });
2000
+ return /* @__PURE__ */ jsx("div", { className: ClassNames("usa-footer__social-links grid-row grid-gap-1 usx-footer__social-links", className), children: links.map((link, i) => /* @__PURE__ */ jsx("div", { className: "grid-col-auto", children: /* @__PURE__ */ jsx("a", { className: "usa-social-link", href: link.href, "aria-label": link.alt, children: /* @__PURE__ */ jsx("img", { className: "usa-social-link__icon", src: getAssetUrl(link.icon, staticBaseUrl), alt: link.alt }) }) }, i)) });
1935
2001
  }
1936
2002
  function normalizeContactLink(value, scheme) {
1937
2003
  var _a;
@@ -1953,7 +2019,7 @@ function FooterContact({
1953
2019
  ...links
1954
2020
  ].filter(Boolean);
1955
2021
  if (!heading && allLinks.length === 0) return null;
1956
- return /* @__PURE__ */ jsxs("address", { className: ["usa-footer__address usx-footer__contact", className].filter(Boolean).join(" "), children: [
2022
+ return /* @__PURE__ */ jsxs("address", { className: ClassNames("usa-footer__address usx-footer__contact", className), children: [
1957
2023
  heading && /* @__PURE__ */ jsx("p", { className: "usa-footer__contact-heading", children: heading }),
1958
2024
  allLinks.length > 0 && /* @__PURE__ */ jsx("div", { className: "usa-footer__contact-info grid-row grid-gap", children: allLinks.map((link, i) => /* @__PURE__ */ jsx("div", { className: "grid-col-auto", children: /* @__PURE__ */ jsx("a", { href: link.href, children: link.text }) }, i)) })
1959
2025
  ] });
@@ -1978,10 +2044,10 @@ function Footer({
1978
2044
  primaryChildren = null,
1979
2045
  secondaryChildren = null,
1980
2046
  className = "",
1981
- ...props
2047
+ ...props2
1982
2048
  }) {
1983
2049
  const variantClass = variant === "big" ? "usa-footer--big" : variant === "slim" ? "usa-footer--slim" : "";
1984
- const classes = ["usa-footer", variantClass, "usx-footer", className].filter(Boolean).join(" ");
2050
+ const classes = ClassNames("usa-footer", variantClass, "usx-footer", className);
1985
2051
  const returnToTopEl = returnToTop ? /* @__PURE__ */ jsx(
1986
2052
  FooterReturnToTop,
1987
2053
  {
@@ -2007,7 +2073,7 @@ function Footer({
2007
2073
  contactEl
2008
2074
  ] }) : null;
2009
2075
  if (variant === "big") {
2010
- return /* @__PURE__ */ jsxs("footer", { className: classes, ...props, children: [
2076
+ return /* @__PURE__ */ jsxs("footer", { className: classes, ...props2, children: [
2011
2077
  returnToTopEl,
2012
2078
  /* @__PURE__ */ jsx("div", { className: "usa-footer__primary-section", children: primaryChildren ?? /* @__PURE__ */ jsx("div", { className: "grid-container", children: /* @__PURE__ */ jsxs("div", { className: "grid-row grid-gap", children: [
2013
2079
  navColumns.length > 0 && /* @__PURE__ */ jsx("div", { className: "tablet:grid-col-8", children: /* @__PURE__ */ jsx("nav", { className: "usa-footer__nav", "aria-label": navAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "grid-row grid-gap-4", children: navColumns.map((col, i) => /* @__PURE__ */ jsx("div", { className: "mobile-lg:grid-col-6 desktop:grid-col-3", children: /* @__PURE__ */ jsx(FooterNavColumn, { heading: col.heading, links: col.links }) }, i)) }) }) }),
@@ -2025,7 +2091,7 @@ function Footer({
2025
2091
  normalizeContactLink(contactEmail, "mailto:"),
2026
2092
  ...contactLinks
2027
2093
  ].filter(Boolean);
2028
- return /* @__PURE__ */ jsxs("footer", { className: classes, ...props, children: [
2094
+ return /* @__PURE__ */ jsxs("footer", { className: classes, ...props2, children: [
2029
2095
  returnToTopEl,
2030
2096
  /* @__PURE__ */ jsx("div", { className: "usa-footer__primary-section", children: primaryChildren ?? /* @__PURE__ */ jsxs("div", { className: "usa-footer__primary-container grid-row", children: [
2031
2097
  navLinks.length > 0 && /* @__PURE__ */ jsx("div", { className: "mobile-lg:grid-col-8", children: /* @__PURE__ */ jsx("nav", { className: "usa-footer__nav", "aria-label": navAriaLabel, children: /* @__PURE__ */ jsx("ul", { className: "grid-row grid-gap", children: navLinks.map((link, i) => /* @__PURE__ */ jsx("li", { className: "mobile-lg:grid-col-6 desktop:grid-col-auto usa-footer__primary-content", children: /* @__PURE__ */ jsx("a", { className: "usa-footer__primary-link", href: link.href, "aria-label": link.ariaLabel || void 0, children: link.text }) }, i)) }) }) }),
@@ -2034,7 +2100,7 @@ function Footer({
2034
2100
  (brandingEl || secondaryChildren) && /* @__PURE__ */ jsx("div", { className: "usa-footer__secondary-section", children: secondaryChildren ?? /* @__PURE__ */ jsx("div", { className: "grid-container", children: brandingEl }) })
2035
2101
  ] });
2036
2102
  }
2037
- return /* @__PURE__ */ jsxs("footer", { className: classes, ...props, children: [
2103
+ return /* @__PURE__ */ jsxs("footer", { className: classes, ...props2, children: [
2038
2104
  returnToTopEl,
2039
2105
  /* @__PURE__ */ jsx("div", { className: "usa-footer__primary-section", children: primaryChildren ?? (navLinks.length > 0 && /* @__PURE__ */ jsx("nav", { className: "usa-footer__nav", "aria-label": navAriaLabel, children: /* @__PURE__ */ jsx("ul", { className: "grid-row grid-gap", children: navLinks.map((link, i) => /* @__PURE__ */ jsx("li", { className: "mobile-lg:grid-col-4 desktop:grid-col-auto usa-footer__primary-content", children: /* @__PURE__ */ jsx("a", { className: "usa-footer__primary-link", href: link.href, "aria-label": link.ariaLabel || void 0, children: link.text }) }, i)) }) })) }),
2040
2106
  /* @__PURE__ */ jsx("div", { className: "usa-footer__secondary-section", children: secondaryChildren ?? /* @__PURE__ */ jsx("div", { className: "grid-container", children: /* @__PURE__ */ jsxs("div", { className: "grid-row grid-gap", children: [
@@ -2066,13 +2132,13 @@ function Search({
2066
2132
  onSubmit(query);
2067
2133
  }
2068
2134
  };
2069
- const iconClasses = classNames(
2135
+ const iconClasses = ClassNames(
2070
2136
  "usa-search__submit-icon",
2071
2137
  {
2072
2138
  "display-inline-block": iconOnly
2073
2139
  }
2074
2140
  );
2075
- const formClasses = classNames(
2141
+ const formClasses = ClassNames(
2076
2142
  "usa-search",
2077
2143
  {
2078
2144
  "usa-search--small": iconOnly && !big,
@@ -2125,7 +2191,7 @@ function PrimaryNav({
2125
2191
  headerId = "header",
2126
2192
  renderSearchDirectly = false
2127
2193
  }) {
2128
- const navClasses = classNames("usa-nav__primary", "usa-accordion");
2194
+ const navClasses = ClassNames("usa-nav__primary", "usa-accordion");
2129
2195
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2130
2196
  /* @__PURE__ */ jsx("button", { type: "button", className: "usa-nav__close", children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }),
2131
2197
  /* @__PURE__ */ jsx("ul", { className: navClasses, children: navSections.map((section, index) => /* @__PURE__ */ jsx("li", { className: "usa-nav__primary-item", children: section.href ? /* @__PURE__ */ jsxs(
@@ -2214,9 +2280,9 @@ function Header({
2214
2280
  className = "",
2215
2281
  utilityContent = null,
2216
2282
  navEndContent = null,
2217
- ...props
2283
+ ...props2
2218
2284
  }) {
2219
- const headerClasses = classNames(
2285
+ const headerClasses = ClassNames(
2220
2286
  "usa-header",
2221
2287
  "usx-header",
2222
2288
  { "usa-header--basic": !extended },
@@ -2224,7 +2290,7 @@ function Header({
2224
2290
  { "usa-header--extended": extended },
2225
2291
  className
2226
2292
  );
2227
- const navClasses = classNames(
2293
+ const navClasses = ClassNames(
2228
2294
  "usa-nav",
2229
2295
  "usx-nav",
2230
2296
  { "usx-nav--sticky": stickyNav }
@@ -2235,7 +2301,7 @@ function Header({
2235
2301
  ] });
2236
2302
  if (extended) {
2237
2303
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2238
- /* @__PURE__ */ jsx("header", { className: headerClasses, ...props, children: navbar }),
2304
+ /* @__PURE__ */ jsx("header", { className: headerClasses, ...props2, children: navbar }),
2239
2305
  /* @__PURE__ */ jsx("nav", { "aria-label": "Primary navigation", className: navClasses, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav__inner", children: [
2240
2306
  /* @__PURE__ */ jsx(
2241
2307
  PrimaryNav,
@@ -2267,7 +2333,7 @@ function Header({
2267
2333
  ] }) })
2268
2334
  ] });
2269
2335
  }
2270
- return /* @__PURE__ */ jsx("header", { className: headerClasses, ...props, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav-container", children: [
2336
+ return /* @__PURE__ */ jsx("header", { className: headerClasses, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usa-nav-container", children: [
2271
2337
  navbar,
2272
2338
  /* @__PURE__ */ jsx("nav", { "aria-label": "Primary navigation", className: navClasses, children: /* @__PURE__ */ jsx(
2273
2339
  PrimaryNav,
@@ -2288,7 +2354,7 @@ function Hero({
2288
2354
  title = "",
2289
2355
  callout = "",
2290
2356
  paragraph = "",
2291
- button = null,
2357
+ buttonProps = null,
2292
2358
  searchProps = null,
2293
2359
  backgroundImage = "",
2294
2360
  backgroundPosition,
@@ -2302,12 +2368,12 @@ function Hero({
2302
2368
  ariaLabel = "Introduction",
2303
2369
  className = "",
2304
2370
  style,
2305
- ...props
2371
+ ...props2
2306
2372
  }) {
2307
2373
  const Heading = headingLevel;
2308
2374
  const secondaryHeadings = { h1: "h2", h2: "h3", h3: "h4", h4: "h5", h5: "h6" };
2309
2375
  const SecondaryHeading = secondaryHeadings[headingLevel];
2310
- const classes = [
2376
+ const classes = ClassNames(
2311
2377
  "usx-hero",
2312
2378
  overlay && "usx-hero--has-overlay",
2313
2379
  overlayOpacity !== void 0 && "usx-hero--custom-overlay",
@@ -2315,14 +2381,14 @@ function Hero({
2315
2381
  !boxed && "usx-hero--unboxed",
2316
2382
  secondaryContent && "usx-hero--split",
2317
2383
  className
2318
- ].filter(Boolean).join(" ");
2384
+ );
2319
2385
  const heroStyle = {
2320
2386
  ...backgroundImage ? { backgroundImage: `url('${backgroundImage}')` } : {},
2321
2387
  ...backgroundPosition ? { backgroundPosition } : {},
2322
2388
  ...overlayOpacity !== void 0 ? { "--hero-overlay-opacity": Math.min(1, Math.max(0, overlayOpacity)) } : {},
2323
2389
  ...style
2324
2390
  };
2325
- return /* @__PURE__ */ jsx("section", { className: classes, "aria-label": ariaLabel, style: heroStyle, ...props, children: /* @__PURE__ */ jsxs("div", { className: "usx-hero__inner", children: [
2391
+ return /* @__PURE__ */ jsx("section", { className: classes, "aria-label": ariaLabel, style: heroStyle, ...props2, children: /* @__PURE__ */ jsxs("div", { className: "usx-hero__inner", children: [
2326
2392
  /* @__PURE__ */ jsxs("div", { className: "usx-hero__callout", style: calloutMaxWidth ? { maxWidth: calloutMaxWidth } : void 0, children: [
2327
2393
  /* @__PURE__ */ jsxs(Heading, { className: "usx-hero__heading", children: [
2328
2394
  callout && /* @__PURE__ */ jsx("span", { className: "usx-hero__heading--alt", children: callout }),
@@ -2330,7 +2396,7 @@ function Hero({
2330
2396
  ] }),
2331
2397
  paragraph && /* @__PURE__ */ jsx("p", { className: "usx-hero__paragraph", children: paragraph }),
2332
2398
  searchProps && /* @__PURE__ */ jsx(Search, { ...searchProps }),
2333
- !searchProps && button && /* @__PURE__ */ jsx(Button, { variant: "primary", href: button.href, onClick: button.onClick, children: button.text })
2399
+ !searchProps && buttonProps && /* @__PURE__ */ jsx(Button, { ...buttonProps })
2334
2400
  ] }),
2335
2401
  secondaryContent && /* @__PURE__ */ jsxs("div", { className: "usx-hero__secondary", children: [
2336
2402
  secondaryContent.title && /* @__PURE__ */ jsx(SecondaryHeading, { className: "usx-hero__secondary-heading", children: secondaryContent.title }),
@@ -2345,16 +2411,16 @@ function renderContent$1(content) {
2345
2411
  }
2346
2412
  return content;
2347
2413
  }
2348
- function IconList({ items = [], primary = false, size = null, className = "", ...props }) {
2349
- const classes = classNames(
2414
+ function IconList({ items = [], primary = false, size = null, className = "", ...props2 }) {
2415
+ const classes = ClassNames(
2350
2416
  "usa-icon-list",
2351
2417
  "usx-icon-list",
2352
2418
  primary && "usa-icon-list--primary",
2353
2419
  size === "lg" && "usa-icon-list--size-lg",
2354
2420
  className
2355
2421
  );
2356
- return /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: classNames("usa-icon-list__item", item.itemClassName), children: [
2357
- /* @__PURE__ */ jsx("div", { className: classNames("usa-icon-list__icon", item.iconColor && `text-${item.iconColor}`, item.iconClassName), children: /* @__PURE__ */ jsx(
2422
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: ClassNames("usa-icon-list__item", item.itemClassName), children: [
2423
+ /* @__PURE__ */ jsx("div", { className: ClassNames("usa-icon-list__icon", item.iconColor && `text-${item.iconColor}`, item.iconClassName), children: /* @__PURE__ */ jsx(
2358
2424
  Icon,
2359
2425
  {
2360
2426
  name: item.iconName,
@@ -2363,7 +2429,7 @@ function IconList({ items = [], primary = false, size = null, className = "", ..
2363
2429
  className: item.iconClassName
2364
2430
  }
2365
2431
  ) }),
2366
- /* @__PURE__ */ jsxs("div", { className: classNames("usa-icon-list__content", item.contentClassName), children: [
2432
+ /* @__PURE__ */ jsxs("div", { className: ClassNames("usa-icon-list__content", item.contentClassName), children: [
2367
2433
  item.title ? /* @__PURE__ */ jsx("h4", { className: "usa-icon-list__title", children: item.title }) : null,
2368
2434
  renderContent$1(item.content)
2369
2435
  ] })
@@ -2444,7 +2510,7 @@ function Identifier({
2444
2510
  overlapAvatars = false,
2445
2511
  className = ""
2446
2512
  }) {
2447
- const classes = classNames("usa-identifier", "usx-identifier", className);
2513
+ const classes = ClassNames("usa-identifier", "usx-identifier", className);
2448
2514
  const labels = {
2449
2515
  masthead: language === "es" ? "Identificador de la agencia," : "Agency identifier,",
2450
2516
  description: language === "es" ? "Descripcion de la agencia," : "Agency description,",
@@ -2458,7 +2524,7 @@ function Identifier({
2458
2524
  avatarProps.length > 0 ? /* @__PURE__ */ jsx(
2459
2525
  "div",
2460
2526
  {
2461
- className: classNames(
2527
+ className: ClassNames(
2462
2528
  "usa-identifier__logos",
2463
2529
  "usx-avatar-group",
2464
2530
  overlapAvatars && "usa-avatar-group--overlap"
@@ -2469,8 +2535,8 @@ function Identifier({
2469
2535
  ...avatar,
2470
2536
  key: `${avatar.alt}-${index}`,
2471
2537
  shape: avatar.shape || logoShape,
2472
- className: classNames("usa-identifier__logo", avatar.className),
2473
- imageClassName: classNames("usa-identifier__logo-img", avatar.imageClassName)
2538
+ className: ClassNames("usa-identifier__logo", avatar.className),
2539
+ imageClassName: ClassNames("usa-identifier__logo-img", avatar.imageClassName)
2474
2540
  }
2475
2541
  ))
2476
2542
  }
@@ -2502,7 +2568,7 @@ function InPageNav({
2502
2568
  children = null,
2503
2569
  className = "",
2504
2570
  contentClassName = "",
2505
- ...props
2571
+ ...props2
2506
2572
  }) {
2507
2573
  const contentId = `${id}-content`;
2508
2574
  const resolvedSelector = mainContentSelector || `#${contentId}`;
@@ -2511,7 +2577,7 @@ function InPageNav({
2511
2577
  "aside",
2512
2578
  {
2513
2579
  id,
2514
- className: classNames("usa-in-page-nav", "usx-in-page-nav", className),
2580
+ className: ClassNames("usa-in-page-nav", "usx-in-page-nav", className),
2515
2581
  "data-heading-elements": headingElements,
2516
2582
  "data-main-content-selector": resolvedSelector,
2517
2583
  "data-title-heading-level": titleHeadingLevel,
@@ -2520,27 +2586,27 @@ function InPageNav({
2520
2586
  "data-root-margin": rootMargin,
2521
2587
  "data-threshold": threshold,
2522
2588
  "data-minimum-heading-count": minimumHeadingCount,
2523
- ...props
2589
+ ...props2
2524
2590
  }
2525
2591
  ),
2526
2592
  /* @__PURE__ */ jsx(
2527
2593
  "div",
2528
2594
  {
2529
2595
  id: contentId,
2530
- className: classNames("usx-in-page-nav__content", "usa-prose", contentClassName),
2596
+ className: ClassNames("usx-in-page-nav__content", "usa-prose", contentClassName),
2531
2597
  ...children ? {} : { dangerouslySetInnerHTML: { __html: content } },
2532
2598
  children: children || null
2533
2599
  }
2534
2600
  )
2535
2601
  ] });
2536
2602
  }
2537
- function Indicator({ items = [], children = null, className = "", ...props }) {
2538
- const classes = classNames("usx-indicator", className);
2539
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
2603
+ function Indicator({ items = [], children = null, className = "", ...props2 }) {
2604
+ const classes = ClassNames("usx-indicator", className);
2605
+ return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, children: [
2540
2606
  items.map((item, index) => /* @__PURE__ */ jsx(
2541
2607
  "span",
2542
2608
  {
2543
- className: classNames("usx-indicator-item", item.className),
2609
+ className: ClassNames("usx-indicator-item", item.className),
2544
2610
  style: item.style,
2545
2611
  children: item.label
2546
2612
  },
@@ -2577,11 +2643,11 @@ function MenuLanguageSelector({
2577
2643
  className,
2578
2644
  navAriaLabel
2579
2645
  }) {
2580
- const containerClasses = classNames(
2646
+ const containerClasses = ClassNames(
2581
2647
  "usa-language-container",
2582
2648
  small && "usa-language--small"
2583
2649
  );
2584
- const buttonClasses = classNames(
2650
+ const buttonClasses = ClassNames(
2585
2651
  "usa-button",
2586
2652
  "usx-button",
2587
2653
  unstyled ? "usa-button--unstyled" : "usa-button--primary",
@@ -2622,10 +2688,10 @@ function LanguageSelector({
2622
2688
  navAriaLabel = "Language selection",
2623
2689
  className = "",
2624
2690
  onSelect = null,
2625
- ...props
2691
+ ...props2
2626
2692
  }) {
2627
2693
  const resolvedVariant = variant || (languages.length > 2 ? "menu" : "two");
2628
- const classes = classNames("usx-language-selector", className);
2694
+ const classes = ClassNames("usx-language-selector", className);
2629
2695
  if (!languages || languages.length === 0) {
2630
2696
  return /* @__PURE__ */ jsx("div", { className: classes, children: "LanguageSelector" });
2631
2697
  }
@@ -2638,7 +2704,7 @@ function LanguageSelector({
2638
2704
  onSelect,
2639
2705
  className: classes,
2640
2706
  navAriaLabel,
2641
- ...props
2707
+ ...props2
2642
2708
  }
2643
2709
  );
2644
2710
  }
@@ -2653,13 +2719,13 @@ function LanguageSelector({
2653
2719
  onSelect,
2654
2720
  className: classes,
2655
2721
  navAriaLabel,
2656
- ...props
2722
+ ...props2
2657
2723
  }
2658
2724
  );
2659
2725
  }
2660
- function SingleColumnLayout({ children, expandButton = null, className = "", ...props }) {
2661
- const classes = ["usx-layout__single-column", className].filter(Boolean).join(" ");
2662
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
2726
+ function SingleColumnLayout({ children, expandButton = null, className = "", ...props2 }) {
2727
+ const classes = ClassNames("usx-layout__single-column", className);
2728
+ return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, children: [
2663
2729
  expandButton,
2664
2730
  children
2665
2731
  ] });
@@ -2672,33 +2738,33 @@ function GridLayout({
2672
2738
  expandButton = null,
2673
2739
  children,
2674
2740
  className = "",
2675
- ...props
2741
+ ...props2
2676
2742
  }) {
2677
2743
  const contentModifier = rightSidebar && !leftSidebar ? "left" : leftSidebar && !rightSidebar ? "right" : null;
2678
- const contentClasses = classNames(
2744
+ const contentClasses = ClassNames(
2679
2745
  "usx-layout__content",
2680
2746
  {
2681
2747
  "usx-layout__content--left": contentModifier === "left",
2682
2748
  "usx-layout__content--right": contentModifier === "right"
2683
2749
  }
2684
2750
  );
2685
- const containerClasses = classNames(
2751
+ const containerClasses = ClassNames(
2686
2752
  "usx-layout__grid-container",
2687
2753
  className
2688
2754
  );
2689
- const leftSidebarClasses = classNames(
2755
+ const leftSidebarClasses = ClassNames(
2690
2756
  "usx-layout__sidebar--left",
2691
2757
  {
2692
2758
  "usx-layout__sidebar--expanded": expandLeftSidebar
2693
2759
  }
2694
2760
  );
2695
- const rightSidebarClasses = classNames(
2761
+ const rightSidebarClasses = ClassNames(
2696
2762
  "usx-layout__sidebar--right",
2697
2763
  {
2698
2764
  "usx-layout__sidebar--expanded": expandRightSidebar
2699
2765
  }
2700
2766
  );
2701
- return /* @__PURE__ */ jsxs("div", { className: containerClasses, ...props, children: [
2767
+ return /* @__PURE__ */ jsxs("div", { className: containerClasses, ...props2, children: [
2702
2768
  leftSidebar && /* @__PURE__ */ jsx("aside", { className: leftSidebarClasses, children: leftSidebar }),
2703
2769
  /* @__PURE__ */ jsxs("main", { className: contentClasses, children: [
2704
2770
  expandButton,
@@ -2717,10 +2783,10 @@ function Layout({
2717
2783
  expandRightSidebar,
2718
2784
  expandable = false,
2719
2785
  className = "",
2720
- ...props
2786
+ ...props2
2721
2787
  }) {
2722
2788
  const [expanded, setExpanded] = useState(false);
2723
- const classes = classNames(
2789
+ const classes = ClassNames(
2724
2790
  "usx-layout",
2725
2791
  { "usx-expanded": expandable && expanded },
2726
2792
  className
@@ -2741,7 +2807,7 @@ function Layout({
2741
2807
  ]
2742
2808
  }
2743
2809
  ) : null;
2744
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: variant === "single-column" ? /* @__PURE__ */ jsx(SingleColumnLayout, { expandButton, children: children || content }) : variant === "grid" ? /* @__PURE__ */ jsx(
2810
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: variant === "single-column" ? /* @__PURE__ */ jsx(SingleColumnLayout, { expandButton, children: children || content }) : variant === "grid" ? /* @__PURE__ */ jsx(
2745
2811
  GridLayout,
2746
2812
  {
2747
2813
  leftSidebar,
@@ -2768,7 +2834,7 @@ function renderItems(items = [], parentOptions = {}) {
2768
2834
  const childUnstyled = objectItem && typeof item.unstyled === "boolean" ? item.unstyled : parentOptions.unstyled;
2769
2835
  const childClassName = objectItem && typeof item.className === "string" ? item.className : "";
2770
2836
  const ChildTag = childOrdered ? "ol" : "ul";
2771
- const childClasses = classNames(
2837
+ const childClasses = ClassNames(
2772
2838
  "usa-list",
2773
2839
  "usx-list",
2774
2840
  childUnstyled && "usa-list--unstyled",
@@ -2780,15 +2846,15 @@ function renderItems(items = [], parentOptions = {}) {
2780
2846
  ] }, index);
2781
2847
  });
2782
2848
  }
2783
- function List({ items = [], ordered = false, unstyled = false, className = "", ...props }) {
2784
- const classes = classNames(
2849
+ function List({ items = [], ordered = false, unstyled = false, className = "", ...props2 }) {
2850
+ const classes = ClassNames(
2785
2851
  "usa-list",
2786
2852
  "usx-list",
2787
2853
  unstyled && "usa-list--unstyled",
2788
2854
  className
2789
2855
  );
2790
2856
  const Tag2 = ordered ? "ol" : "ul";
2791
- return /* @__PURE__ */ jsx(Tag2, { className: classes, ...props, children: renderItems(items, { ordered, unstyled }) });
2857
+ return /* @__PURE__ */ jsx(Tag2, { className: classes, ...props2, children: renderItems(items, { ordered, unstyled }) });
2792
2858
  }
2793
2859
  function Select({
2794
2860
  label,
@@ -2804,7 +2870,7 @@ function Select({
2804
2870
  required = false,
2805
2871
  formGroup = true,
2806
2872
  className = "",
2807
- ...props
2873
+ ...props2
2808
2874
  }) {
2809
2875
  const selectId = id || `select-${Math.random().toString(36).substr(2, 9)}`;
2810
2876
  const hintId = hint ? `${selectId}-hint` : void 0;
@@ -2814,7 +2880,7 @@ function Select({
2814
2880
  const selectClasses = "usa-select usx-select";
2815
2881
  const selectErrorClasses = "usa-input--error";
2816
2882
  const selectSuccessClasses = "usa-input--success";
2817
- const combinedSelectClasses = classNames(
2883
+ const combinedSelectClasses = ClassNames(
2818
2884
  selectClasses,
2819
2885
  hasError && selectErrorClasses,
2820
2886
  hasSuccess && selectSuccessClasses,
@@ -2831,7 +2897,7 @@ function Select({
2831
2897
  defaultValue,
2832
2898
  "aria-describedby": describedByParts.length ? describedByParts.join(" ") : void 0,
2833
2899
  "aria-invalid": hasError ? true : void 0,
2834
- ...props
2900
+ ...props2
2835
2901
  };
2836
2902
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
2837
2903
  /* @__PURE__ */ jsx(Label, { htmlFor: selectId, required, error: hasError, children: label }),
@@ -2974,11 +3040,11 @@ function MiscBanner({
2974
3040
  importantLinkHref,
2975
3041
  importantLinkIcon = "undo",
2976
3042
  showReturnLink = true,
2977
- ...props
3043
+ ...props2
2978
3044
  }) {
2979
3045
  const menuId = useId();
2980
3046
  const toggleId = useId();
2981
- const classes = ["usx-misc-banner", `bg-${tone}`, className].filter(Boolean).join(" ");
3047
+ const classes = ClassNames("usx-misc-banner", `bg-${tone}`, className);
2982
3048
  const mobileLinks = [];
2983
3049
  const hasLearnMoreLink = showLearnMore && Boolean(casualLinkText);
2984
3050
  const hasReturnLink = showReturnLink && Boolean(importantLinkText);
@@ -3030,7 +3096,7 @@ function MiscBanner({
3030
3096
  /* @__PURE__ */ jsx("div", { id: menuId, className: "usx-misc-banner__dropdown-content", children: /* @__PURE__ */ jsx("ul", { className: "usa-list", children: mobileLinks.map((link) => /* @__PURE__ */ jsx("li", { className: "usa-list__item", children: /* @__PURE__ */ jsx("a", { className: "usa-link usx-misc-banner__link", href: link.href, children: link.text }) }, `${link.href}-${link.text}`)) }) })
3031
3097
  ] }) : null
3032
3098
  ] });
3033
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: /* @__PURE__ */ jsx("div", { className: "usx-misc-banner__content grid-container", children: content }) });
3099
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: /* @__PURE__ */ jsx("div", { className: "usx-misc-banner__content grid-container", children: content }) });
3034
3100
  }
3035
3101
  const validElements = ["div", "article", "section", "main"];
3036
3102
  const Prose = ({
@@ -3038,14 +3104,14 @@ const Prose = ({
3038
3104
  content,
3039
3105
  children,
3040
3106
  className = "",
3041
- ...props
3107
+ ...props2
3042
3108
  }) => {
3043
3109
  const Element = validElements.includes(containerElement) ? containerElement : "div";
3044
3110
  return /* @__PURE__ */ jsx(
3045
3111
  Element,
3046
3112
  {
3047
3113
  className: `usa-prose usx-prose ${className}`,
3048
- ...props,
3114
+ ...props2,
3049
3115
  ...content ? { dangerouslySetInnerHTML: { __html: content } } : {},
3050
3116
  children: children ? children : null
3051
3117
  }
@@ -3063,9 +3129,9 @@ function Modal({
3063
3129
  forceAction = false,
3064
3130
  className = "",
3065
3131
  children,
3066
- ...props
3132
+ ...props2
3067
3133
  }) {
3068
- const classes = classNames("usa-modal", "usx-modal", {
3134
+ const classes = ClassNames("usa-modal", "usx-modal", {
3069
3135
  "usa-modal--lg": size === "lg",
3070
3136
  "usx-modal--lg-collapsed": size === "lg-collapsed"
3071
3137
  }, className);
@@ -3077,7 +3143,7 @@ function Modal({
3077
3143
  "aria-labelledby": `${id}-heading`,
3078
3144
  "aria-describedby": `${id}-description`,
3079
3145
  ...forceAction ? { "data-force-action": true } : {},
3080
- ...props,
3146
+ ...props2,
3081
3147
  children: /* @__PURE__ */ jsxs("div", { className: "usa-modal__content", children: [
3082
3148
  /* @__PURE__ */ jsxs("div", { className: "usa-modal__main", children: [
3083
3149
  /* @__PURE__ */ jsx("h2", { className: "usa-modal__heading", id: `${id}-heading`, children: heading }),
@@ -3106,12 +3172,12 @@ function Page({
3106
3172
  children = null,
3107
3173
  content = null,
3108
3174
  className = "",
3109
- ...props
3175
+ ...props2
3110
3176
  }) {
3111
- const classes = ["usx-page", className].filter(Boolean).join(" ");
3177
+ const classes = ClassNames("usx-page", className);
3112
3178
  const pageContent = children || content;
3113
3179
  const Element = element;
3114
- return /* @__PURE__ */ jsxs(Element, { id, className: classes, ...props, children: [
3180
+ return /* @__PURE__ */ jsxs(Element, { id, className: classes, ...props2, children: [
3115
3181
  /* @__PURE__ */ jsxs("h1", { className: "usx-page__title", children: [
3116
3182
  eyebrow ? /* @__PURE__ */ jsx("span", { className: "usx-eyebrow", children: eyebrow }) : null,
3117
3183
  title
@@ -3197,7 +3263,7 @@ function PaginationNavigation({
3197
3263
  lastClickTime.current = e.timeStamp;
3198
3264
  if (!isLastPage) onPageChange((prev) => unbounded ? prev + 1 : Math.min(prev + 1, totalPages));
3199
3265
  };
3200
- const navClasses = classNames(
3266
+ const navClasses = ClassNames(
3201
3267
  "usa-pagination",
3202
3268
  "usx-pagination__nav",
3203
3269
  { "usx-pagination__arrows-only": arrowsOnly },
@@ -3207,7 +3273,7 @@ function PaginationNavigation({
3207
3273
  /* @__PURE__ */ jsx(
3208
3274
  "li",
3209
3275
  {
3210
- className: classNames(
3276
+ className: ClassNames(
3211
3277
  "usa-pagination__item",
3212
3278
  "usa-pagination__arrow"
3213
3279
  ),
@@ -3215,7 +3281,7 @@ function PaginationNavigation({
3215
3281
  "a",
3216
3282
  {
3217
3283
  href: "#",
3218
- className: classNames(
3284
+ className: ClassNames(
3219
3285
  "usa-pagination__link",
3220
3286
  "usa-pagination__previous-page",
3221
3287
  isFirstPage && "display-none",
@@ -3230,7 +3296,7 @@ function PaginationNavigation({
3230
3296
  /* @__PURE__ */ jsx(
3231
3297
  "span",
3232
3298
  {
3233
- className: classNames(
3299
+ className: ClassNames(
3234
3300
  "usa-pagination__link-text",
3235
3301
  hideLinkText && "usa-sr-only"
3236
3302
  ),
@@ -3259,7 +3325,7 @@ function PaginationNavigation({
3259
3325
  "a",
3260
3326
  {
3261
3327
  href: "#",
3262
- className: classNames(
3328
+ className: ClassNames(
3263
3329
  "usa-pagination__button",
3264
3330
  isCurrent && "usa-current"
3265
3331
  ),
@@ -3273,7 +3339,7 @@ function PaginationNavigation({
3273
3339
  /* @__PURE__ */ jsx(
3274
3340
  "li",
3275
3341
  {
3276
- className: classNames(
3342
+ className: ClassNames(
3277
3343
  "usa-pagination__item",
3278
3344
  "usa-pagination__arrow"
3279
3345
  ),
@@ -3281,7 +3347,7 @@ function PaginationNavigation({
3281
3347
  "a",
3282
3348
  {
3283
3349
  href: "#",
3284
- className: classNames(
3350
+ className: ClassNames(
3285
3351
  "usa-pagination__link",
3286
3352
  "usa-pagination__next-page",
3287
3353
  isLastPage && "display-none",
@@ -3295,7 +3361,7 @@ function PaginationNavigation({
3295
3361
  /* @__PURE__ */ jsx(
3296
3362
  "span",
3297
3363
  {
3298
- className: classNames(
3364
+ className: ClassNames(
3299
3365
  "usa-pagination__link-text",
3300
3366
  hideLinkText && "usa-sr-only"
3301
3367
  ),
@@ -3318,7 +3384,7 @@ function PaginationStepOptions({
3318
3384
  id = "pagination-step-options",
3319
3385
  className = ""
3320
3386
  }) {
3321
- const classes = classNames(
3387
+ const classes = ClassNames(
3322
3388
  "usx-pagination__step-options",
3323
3389
  className
3324
3390
  );
@@ -3346,7 +3412,7 @@ function PaginationSummary({
3346
3412
  }) {
3347
3413
  const firstItem = (currentPage - 1) * pageSize + 1;
3348
3414
  const lastItem = Math.min(currentPage * pageSize, totalItems);
3349
- const classes = classNames(
3415
+ const classes = ClassNames(
3350
3416
  "usa-label",
3351
3417
  "usx-label",
3352
3418
  "usx-pagination__summary",
@@ -3370,10 +3436,10 @@ function PaginationContainer({
3370
3436
  navigation,
3371
3437
  stepOptions,
3372
3438
  className = "",
3373
- ...props
3439
+ ...props2
3374
3440
  }) {
3375
- const classes = ["usx-pagination__container", className].filter(Boolean).join(" ");
3376
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
3441
+ const classes = ClassNames("usx-pagination__container", className);
3442
+ return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, children: [
3377
3443
  summary && /* @__PURE__ */ jsx("div", { className: "usx-pagination__container-summary", children: summary }),
3378
3444
  (stepOptions || navigation) && /* @__PURE__ */ jsxs("div", { className: "usx-pagination__container-end", children: [
3379
3445
  stepOptions && stepOptions,
@@ -3418,7 +3484,7 @@ function Pagination({
3418
3484
  onPageSizeChange == null ? void 0 : onPageSizeChange(size, newPage);
3419
3485
  onPageChange == null ? void 0 : onPageChange(newPage, size);
3420
3486
  };
3421
- const classes = ["usx-pagination", className].filter(Boolean).join(" ");
3487
+ const classes = ClassNames("usx-pagination", className);
3422
3488
  return /* @__PURE__ */ jsx("div", { className: classes, children: /* @__PURE__ */ jsx(
3423
3489
  PaginationContainer,
3424
3490
  {
@@ -3461,16 +3527,50 @@ function renderContent(content) {
3461
3527
  }
3462
3528
  return content;
3463
3529
  }
3464
- const ProcessList = ({ items = [], className = "", ...props }) => {
3465
- const classes = classNames("usa-process-list", "usx-process-list", className);
3466
- return /* @__PURE__ */ jsx("ol", { className: classes, ...props, children: items.map((item, index) => {
3530
+ const ProcessList = ({ items = [], className = "", ...props2 }) => {
3531
+ const classes = ClassNames("usa-process-list", "usx-process-list", className);
3532
+ return /* @__PURE__ */ jsx("ol", { className: classes, ...props2, children: items.map((item, index) => {
3467
3533
  const HeadingTag = item.headingTag || "h4";
3468
- return /* @__PURE__ */ jsxs("li", { className: classNames("usa-process-list__item", item.className), children: [
3469
- /* @__PURE__ */ jsx(HeadingTag, { className: classNames("usa-process-list__heading", item.headingClassName), children: item.heading }),
3470
- item.body && (typeof item.body === "string" || item.bodyClassName ? /* @__PURE__ */ jsx("p", { className: classNames(item.bodyClassName), children: renderContent(item.body) }) : renderContent(item.body))
3534
+ return /* @__PURE__ */ jsxs("li", { className: ClassNames("usa-process-list__item", item.className), children: [
3535
+ /* @__PURE__ */ jsx(HeadingTag, { className: ClassNames("usa-process-list__heading", item.headingClassName), children: item.heading }),
3536
+ item.body && (typeof item.body === "string" || item.bodyClassName ? /* @__PURE__ */ jsx("p", { className: ClassNames(item.bodyClassName), children: renderContent(item.body) }) : renderContent(item.body))
3471
3537
  ] }, index);
3472
3538
  }) });
3473
3539
  };
3540
+ function Quote({
3541
+ calloutProps,
3542
+ attributionProps,
3543
+ children,
3544
+ content,
3545
+ sourceLinkProps,
3546
+ sourceTitle,
3547
+ className,
3548
+ blockquoteClassName,
3549
+ ...props2
3550
+ }) {
3551
+ const isVertical = (calloutProps == null ? void 0 : calloutProps.orientation) === "vertical";
3552
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-quote", isVertical && "usx-quote--vertical", className), ...props2, children: [
3553
+ !isVertical && /* @__PURE__ */ jsx(Icon, { name: "format_quote", size: 4, className: "usx-quote__icon" }),
3554
+ /* @__PURE__ */ jsx(Callout, { ...calloutProps, element: "div", children: /* @__PURE__ */ jsxs("figure", { className: "usx-quote__body", children: [
3555
+ /* @__PURE__ */ jsxs(
3556
+ "blockquote",
3557
+ {
3558
+ className: ClassNames("usx-quote__content", blockquoteClassName),
3559
+ cite: sourceLinkProps == null ? void 0 : sourceLinkProps.href,
3560
+ children: [
3561
+ isVertical && "❝",
3562
+ children ?? content,
3563
+ isVertical && "❞"
3564
+ ]
3565
+ }
3566
+ ),
3567
+ (attributionProps || sourceTitle) && /* @__PURE__ */ jsxs("figcaption", { className: "usx-quote__attribution", children: [
3568
+ attributionProps && /* @__PURE__ */ jsx(Attribution, { ...attributionProps }),
3569
+ sourceTitle && /* @__PURE__ */ jsx("cite", { children: sourceLinkProps ? /* @__PURE__ */ jsx(Link, { ...sourceLinkProps, children: sourceTitle }) : sourceTitle })
3570
+ ] })
3571
+ ] }) })
3572
+ ] });
3573
+ }
3474
3574
  const RadioButtons = ({
3475
3575
  tile = false,
3476
3576
  small = false,
@@ -3482,19 +3582,19 @@ const RadioButtons = ({
3482
3582
  options = [],
3483
3583
  defaultValue = void 0,
3484
3584
  className = "",
3485
- ...props
3585
+ ...props2
3486
3586
  }) => {
3487
- const classes = classNames(
3587
+ const classes = ClassNames(
3488
3588
  "usa-radio",
3489
3589
  "usx-radio",
3490
3590
  { "usx-radio--small": small },
3491
3591
  className
3492
3592
  );
3493
- const inputClasses = classNames(
3593
+ const inputClasses = ClassNames(
3494
3594
  "usa-radio__input",
3495
3595
  { "usa-radio__input--tile": tile }
3496
3596
  );
3497
- return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(Fieldset, { legend, required, hint, error, ...props, children: options.map((opt, idx) => {
3597
+ return /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: /* @__PURE__ */ jsx(Fieldset, { legend, required, hint, error, ...props2, children: options.map((opt, idx) => {
3498
3598
  const id = opt.id || `${name}-${idx}`;
3499
3599
  return /* @__PURE__ */ jsxs("div", { className: classes, children: [
3500
3600
  /* @__PURE__ */ jsx(
@@ -3533,7 +3633,7 @@ function RangeSlider({
3533
3633
  textPreposition = null,
3534
3634
  formGroup = true,
3535
3635
  className = "",
3536
- ...props
3636
+ ...props2
3537
3637
  }) {
3538
3638
  const hintId = hint ? `${id}-hint` : void 0;
3539
3639
  const errorId = error ? `${id}-error` : void 0;
@@ -3545,7 +3645,7 @@ function RangeSlider({
3545
3645
  /* @__PURE__ */ jsx(
3546
3646
  "input",
3547
3647
  {
3548
- className: ["usa-range", "usx-range-slider", className].filter(Boolean).join(" "),
3648
+ className: ClassNames("usa-range", "usx-range-slider", className),
3549
3649
  id,
3550
3650
  type: "range",
3551
3651
  name: name || id,
@@ -3559,7 +3659,7 @@ function RangeSlider({
3559
3659
  "aria-describedby": describedBy,
3560
3660
  ...textUnit ? { "data-text-unit": textUnit } : {},
3561
3661
  ...textPreposition ? { "data-text-preposition": textPreposition } : {},
3562
- ...props
3662
+ ...props2
3563
3663
  }
3564
3664
  )
3565
3665
  ] });
@@ -3567,15 +3667,17 @@ function RangeSlider({
3567
3667
  }
3568
3668
  const Section = ({
3569
3669
  title = "",
3670
+ headingLevel = "h2",
3570
3671
  children = null,
3571
3672
  content = null,
3572
3673
  className = "",
3573
- ...props
3674
+ ...props2
3574
3675
  }) => {
3575
- const classes = ["usx-section", className].filter(Boolean).join(" ");
3676
+ const classes = ClassNames("usx-section", className);
3576
3677
  const sectionContent = children || content;
3577
- return /* @__PURE__ */ jsxs("section", { className: classes, ...props, children: [
3578
- title ? /* @__PURE__ */ jsx("h2", { className: "usx-section__title", children: title }) : null,
3678
+ const Heading = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(headingLevel) ? headingLevel : "h2";
3679
+ return /* @__PURE__ */ jsxs("section", { className: classes, ...props2, children: [
3680
+ title ? /* @__PURE__ */ jsx(Heading, { className: "usx-section__title", children: title }) : null,
3579
3681
  /* @__PURE__ */ jsx("div", { className: "usx-section__content", children: sectionContent })
3580
3682
  ] });
3581
3683
  };
@@ -3600,9 +3702,9 @@ const SideNav = ({
3600
3702
  sticky = false,
3601
3703
  ariaLabel = "Side navigation",
3602
3704
  className = "",
3603
- ...props
3705
+ ...props2
3604
3706
  }) => {
3605
- const classes = classNames(
3707
+ const classes = ClassNames(
3606
3708
  "usa-sidenav",
3607
3709
  "usx-sidenav",
3608
3710
  {
@@ -3610,7 +3712,7 @@ const SideNav = ({
3610
3712
  },
3611
3713
  className
3612
3714
  );
3613
- return /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: items.map((item, i) => /* @__PURE__ */ jsx(SideNavItem, { item }, i)) }) });
3715
+ return /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("ul", { className: classes, ...props2, children: items.map((item, i) => /* @__PURE__ */ jsx(SideNavItem, { item }, i)) }) });
3614
3716
  };
3615
3717
  const SiteAlert = ({
3616
3718
  className = "",
@@ -3624,11 +3726,11 @@ const SiteAlert = ({
3624
3726
  role,
3625
3727
  ariaLabel = "Site alert",
3626
3728
  ariaLabelledby,
3627
- ...props
3729
+ ...props2
3628
3730
  }) => {
3629
3731
  const normalizedVariant = ["info", "emergency", "maintenance", "maintenance-warning"].includes(variant) ? variant : "info";
3630
3732
  const alertVariant = normalizedVariant === "maintenance" ? "error" : normalizedVariant === "maintenance-warning" ? "warning" : normalizedVariant;
3631
- const classes = [
3733
+ const classes = ClassNames(
3632
3734
  "usa-site-alert",
3633
3735
  "usx-site-alert",
3634
3736
  (normalizedVariant === "info" || normalizedVariant === "emergency") && `usa-site-alert--${normalizedVariant}`,
@@ -3637,8 +3739,8 @@ const SiteAlert = ({
3637
3739
  noIcon && "usa-site-alert--no-icon",
3638
3740
  onDismiss && "usa-site-alert--dismissible",
3639
3741
  className
3640
- ].filter(Boolean).join(" ");
3641
- const alertClasses = [
3742
+ );
3743
+ const alertClasses = ClassNames(
3642
3744
  "usa-alert",
3643
3745
  `usa-alert--${alertVariant}`,
3644
3746
  "usx-alert",
@@ -3647,7 +3749,7 @@ const SiteAlert = ({
3647
3749
  slim && "usx-alert--slim",
3648
3750
  noIcon && "usa-alert--no-icon",
3649
3751
  noIcon && "usx-alert--no-icon"
3650
- ].filter(Boolean).join(" ");
3752
+ );
3651
3753
  return /* @__PURE__ */ jsx(
3652
3754
  "section",
3653
3755
  {
@@ -3655,7 +3757,7 @@ const SiteAlert = ({
3655
3757
  role,
3656
3758
  "aria-label": ariaLabelledby ? void 0 : ariaLabel,
3657
3759
  "aria-labelledby": ariaLabelledby,
3658
- ...props,
3760
+ ...props2,
3659
3761
  children: alertContent ? /* @__PURE__ */ jsx("div", { className: alertClasses, children: /* @__PURE__ */ jsxs("div", { className: "usa-alert__body usx-alert__body", children: [
3660
3762
  alertHeading && /* @__PURE__ */ jsx("h4", { className: "usa-alert__heading usx-alert__heading", children: alertHeading }),
3661
3763
  alertContent,
@@ -3699,27 +3801,27 @@ const Skipnav = ({
3699
3801
  content,
3700
3802
  children = null,
3701
3803
  className = "",
3702
- ...props
3804
+ ...props2
3703
3805
  }) => {
3704
- const classes = classNames("usa-skipnav", className);
3806
+ const classes = ClassNames("usa-skipnav", className);
3705
3807
  const finalHref = normalizeHref({ href, target });
3706
- return /* @__PURE__ */ jsx("a", { className: classes, href: finalHref, ...props, children: children || content || "Skip to main content" });
3808
+ return /* @__PURE__ */ jsx("a", { className: classes, href: finalHref, ...props2, children: children || content || "Skip to main content" });
3707
3809
  };
3708
3810
  const Status = ({
3709
3811
  color = void 0,
3710
3812
  size = void 0,
3711
3813
  animation = void 0,
3712
3814
  className = "",
3713
- ...props
3815
+ ...props2
3714
3816
  }) => {
3715
- const classes = classNames(
3817
+ const classes = ClassNames(
3716
3818
  "usx-status",
3717
3819
  color && `text-${color}`,
3718
3820
  size && `usx-status--${size}`,
3719
3821
  animation && `usx-${animation}`,
3720
3822
  className
3721
3823
  );
3722
- return /* @__PURE__ */ jsx("span", { className: classes, ...props });
3824
+ return /* @__PURE__ */ jsx("span", { className: classes, ...props2 });
3723
3825
  };
3724
3826
  const StepIndicator = ({
3725
3827
  steps = [],
@@ -3727,11 +3829,11 @@ const StepIndicator = ({
3727
3829
  variant = "",
3728
3830
  headingTag: HeadingTag = "h4",
3729
3831
  className = "",
3730
- ...props
3832
+ ...props2
3731
3833
  }) => {
3732
3834
  var _a;
3733
3835
  const step = Number(currentStep);
3734
- const classes = classNames(
3836
+ const classes = ClassNames(
3735
3837
  "usa-step-indicator",
3736
3838
  "usx-step-indicator",
3737
3839
  variant && `usa-step-indicator--${variant}`,
@@ -3744,13 +3846,13 @@ const StepIndicator = ({
3744
3846
  return "";
3745
3847
  };
3746
3848
  const currentLabel = ((_a = steps[step - 1]) == null ? void 0 : _a.label) || "";
3747
- return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
3849
+ return /* @__PURE__ */ jsxs("div", { className: classes, ...props2, children: [
3748
3850
  /* @__PURE__ */ jsx("ol", { className: "usa-step-indicator__segments", children: steps.map((s, index) => {
3749
3851
  const status = getStatus(index);
3750
3852
  return /* @__PURE__ */ jsx(
3751
3853
  "li",
3752
3854
  {
3753
- className: classNames(
3855
+ className: ClassNames(
3754
3856
  "usa-step-indicator__segment",
3755
3857
  status === "complete" && "usa-step-indicator__segment--complete",
3756
3858
  status === "current" && "usa-step-indicator__segment--current"
@@ -3786,9 +3888,9 @@ const SummaryBox = ({
3786
3888
  content = "",
3787
3889
  children = null,
3788
3890
  className = "",
3789
- ...props
3891
+ ...props2
3790
3892
  }) => {
3791
- const classes = classNames("usa-summary-box", "usx-summary-box", className);
3893
+ const classes = ClassNames("usa-summary-box", "usx-summary-box", className);
3792
3894
  const headingId = id;
3793
3895
  const bodyContent = children ?? content;
3794
3896
  return /* @__PURE__ */ jsx(
@@ -3797,7 +3899,7 @@ const SummaryBox = ({
3797
3899
  className: classes,
3798
3900
  role: "region",
3799
3901
  "aria-labelledby": headingId,
3800
- ...props,
3902
+ ...props2,
3801
3903
  children: /* @__PURE__ */ jsxs("div", { className: "usa-summary-box__body", children: [
3802
3904
  /* @__PURE__ */ jsx("h4", { className: "usa-summary-box__heading", id: headingId, children: heading }),
3803
3905
  /* @__PURE__ */ jsx("div", { className: "usa-summary-box__text", children: bodyContent })
@@ -3815,18 +3917,18 @@ const Swap = ({
3815
3917
  inputProps = {},
3816
3918
  onClassName = "",
3817
3919
  offClassName = "",
3818
- ...props
3920
+ ...props2
3819
3921
  }) => {
3820
3922
  const variantClass = variant !== "default" ? `usx-swap--${variant}` : "";
3821
- const classes = ["usx-swap", variantClass, className].filter(Boolean).join(" ");
3822
- const onClasses = ["usx-swap-on", onClassName].filter(Boolean).join(" ");
3823
- const offClasses = ["usx-swap-off", offClassName].filter(Boolean).join(" ");
3923
+ const classes = ClassNames("usx-swap", variantClass, className);
3924
+ const onClasses = ClassNames("usx-swap-on", onClassName);
3925
+ const offClasses = ClassNames("usx-swap-off", offClassName);
3824
3926
  const content = children || /* @__PURE__ */ jsxs(Fragment, { children: [
3825
3927
  includeInput ? /* @__PURE__ */ jsx("input", { type: "checkbox", autoComplete: "off", ...inputProps }) : null,
3826
3928
  /* @__PURE__ */ jsx("span", { className: onClasses, children: onContent }),
3827
3929
  /* @__PURE__ */ jsx("span", { className: offClasses, children: offContent })
3828
3930
  ] });
3829
- return /* @__PURE__ */ jsx("label", { className: classes, ...props, children: content });
3931
+ return /* @__PURE__ */ jsx("label", { className: classes, ...props2, children: content });
3830
3932
  };
3831
3933
  const Switch = ({
3832
3934
  id,
@@ -3840,9 +3942,9 @@ const Switch = ({
3840
3942
  className = "",
3841
3943
  label,
3842
3944
  indeterminate = false,
3843
- ...props
3945
+ ...props2
3844
3946
  }) => {
3845
- const classes = classNames(
3947
+ const classes = ClassNames(
3846
3948
  "usx-switch",
3847
3949
  size && `usx-toggle-${size}`,
3848
3950
  variant && `text-${variant}`,
@@ -3864,7 +3966,7 @@ const Switch = ({
3864
3966
  disabled,
3865
3967
  "aria-checked": indeterminate ? "mixed" : typeof checked === "boolean" ? checked : void 0,
3866
3968
  onChange,
3867
- ...props
3969
+ ...props2
3868
3970
  };
3869
3971
  const input = /* @__PURE__ */ jsx("input", { ref, ...inputProps });
3870
3972
  if (label) {
@@ -3947,10 +4049,10 @@ function SortIcon({ direction }) {
3947
4049
  const name = direction === "asc" ? "arrow_upward" : direction === "desc" ? "arrow_downward" : "sort_arrow";
3948
4050
  return /* @__PURE__ */ jsx(Icon, { name, "aria-hidden": "true" });
3949
4051
  }
3950
- function TableHead({ className = "", children, ...props }) {
4052
+ function TableHead({ className = "", children, ...props2 }) {
3951
4053
  const { id, columns, sortState, handleSort, selectionMode, selectionPosition, handleSelectAll, allowSelectAll, rowDetails } = useTableContext();
3952
4054
  if (children) {
3953
- return /* @__PURE__ */ jsx("thead", { className: classNames("usx-table__head", className), ...props, children });
4055
+ return /* @__PURE__ */ jsx("thead", { className: ClassNames("usx-table__head", className), ...props2, children });
3954
4056
  }
3955
4057
  const visibleCols = columns.filter((c) => !c.hidden);
3956
4058
  const totalDepth = getDepth(visibleCols);
@@ -3958,7 +4060,7 @@ function TableHead({ className = "", children, ...props }) {
3958
4060
  const hasRowDetails = !!rowDetails;
3959
4061
  const hasSelection = !!selectionMode;
3960
4062
  const selectAllCell = /* @__PURE__ */ jsx("th", { scope: "col", rowSpan: totalDepth, className: "usx-table__cell usx-table__cell--selection", children: selectionMode === "checkbox" && allowSelectAll && /* @__PURE__ */ jsx(Checkbox, { id: `${id}-select-all`, onChange: handleSelectAll, ariaLabel: "Select all rows", className: "usx-table__checkbox" }) });
3961
- return /* @__PURE__ */ jsxs("thead", { className: classNames("usx-table__head", className), ...props, children: [
4063
+ return /* @__PURE__ */ jsxs("thead", { className: ClassNames("usx-table__head", className), ...props2, children: [
3962
4064
  /* @__PURE__ */ jsx("tr", { hidden: true, "aria-hidden": "true", children: /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx("span", { className: "usa-sr-only usa-table__announcement-region", "aria-live": "polite", id: `${id}-sort-announcement` }) }) }),
3963
4065
  headerRows.map((row, rowIndex) => /* @__PURE__ */ jsxs("tr", { className: "usx-table__head-row", children: [
3964
4066
  hasRowDetails && rowIndex === 0 && /* @__PURE__ */ jsx("th", { scope: "col", rowSpan: totalDepth, className: "usx-table__cell usx-table__cell--detail-toggle", "aria-label": "Row details" }),
@@ -3966,7 +4068,7 @@ function TableHead({ className = "", children, ...props }) {
3966
4068
  row.map(({ col, rowSpan, colSpan }) => {
3967
4069
  const isSortable = col.sortable === true;
3968
4070
  const sortDir = sortState.key === col.key ? sortState.direction : null;
3969
- const cellClasses = classNames(
4071
+ const cellClasses = ClassNames(
3970
4072
  "usx-table__cell",
3971
4073
  col.headerAlign && `usx-table__cell--align-${col.headerAlign}`,
3972
4074
  !col.headerAlign && col.align && `usx-table__cell--align-${col.align}`,
@@ -3987,7 +4089,7 @@ function TableHead({ className = "", children, ...props }) {
3987
4089
  "button",
3988
4090
  {
3989
4091
  type: "button",
3990
- className: classNames("usx-table__sort-button", sortDir && "usx-table__sort-button--active"),
4092
+ className: ClassNames("usx-table__sort-button", sortDir && "usx-table__sort-button--active"),
3991
4093
  onClick: () => handleSort(col.key),
3992
4094
  children: [
3993
4095
  col.header,
@@ -4010,11 +4112,11 @@ function TableRow({
4010
4112
  className = "",
4011
4113
  onClick,
4012
4114
  children,
4013
- ...props
4115
+ ...props2
4014
4116
  }) {
4015
4117
  const { onClickRow } = useTableContext();
4016
4118
  const isClickable = !!(onClick || onClickRow);
4017
- const classes = classNames(
4119
+ const classes = ClassNames(
4018
4120
  "usx-table__row",
4019
4121
  selected && "usx-table__row--selected",
4020
4122
  disabled && "usx-table__row--disabled",
@@ -4034,7 +4136,7 @@ function TableRow({
4034
4136
  }
4035
4137
  }
4036
4138
  const interactiveProps = isClickable && !disabled ? { tabIndex: 0, onClick: handleClick, onKeyDown: handleKeyDown } : {};
4037
- return /* @__PURE__ */ jsx("tr", { className: classes, ...interactiveProps, ...props, children });
4139
+ return /* @__PURE__ */ jsx("tr", { className: classes, ...interactiveProps, ...props2, children });
4038
4140
  }
4039
4141
  function TableGroup({
4040
4142
  label,
@@ -4044,7 +4146,7 @@ function TableGroup({
4044
4146
  colSpan,
4045
4147
  className = "",
4046
4148
  children,
4047
- ...props
4149
+ ...props2
4048
4150
  }) {
4049
4151
  const { toggleGroup, isGroupExpanded, totalCols } = useTableContext();
4050
4152
  const isExpanded = expandedProp !== void 0 ? expandedProp : isGroupExpanded(groupKey);
@@ -4060,7 +4162,7 @@ function TableGroup({
4060
4162
  }
4061
4163
  };
4062
4164
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4063
- /* @__PURE__ */ jsx("tr", { className: classNames("usx-table__group-row", className), ...props, children: /* @__PURE__ */ jsx("td", { colSpan: colSpan || totalCols || 1, className: "usx-table__group-cell", children: /* @__PURE__ */ jsx("div", { className: "usx-accordion usa-accordion", children: /* @__PURE__ */ jsx("h4", { className: "usa-accordion__heading", children: /* @__PURE__ */ jsx(
4165
+ /* @__PURE__ */ jsx("tr", { className: ClassNames("usx-table__group-row", className), ...props2, children: /* @__PURE__ */ jsx("td", { colSpan: colSpan || totalCols || 1, className: "usx-table__group-cell", children: /* @__PURE__ */ jsx("div", { className: "usx-accordion usa-accordion", children: /* @__PURE__ */ jsx("h4", { className: "usa-accordion__heading", children: /* @__PURE__ */ jsx(
4064
4166
  "button",
4065
4167
  {
4066
4168
  type: "button",
@@ -4163,7 +4265,7 @@ function DataRow({ row, rowIndex }) {
4163
4265
  "button",
4164
4266
  {
4165
4267
  type: "button",
4166
- className: classNames(
4268
+ className: ClassNames(
4167
4269
  "usa-button usa-button--unstyled",
4168
4270
  "usx-table__detail-toggle",
4169
4271
  "width-full",
@@ -4176,7 +4278,7 @@ function DataRow({ row, rowIndex }) {
4176
4278
  ) }, "__detail-toggle__") : null;
4177
4279
  const dataCells = visibleCols.map((col) => {
4178
4280
  const Tag2 = col.primary ? "th" : "td";
4179
- const cellClasses = classNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`, col.className);
4281
+ const cellClasses = ClassNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`, col.className);
4180
4282
  const dataLabel = responsive === "stack" || responsive === "stack-header" ? getDataLabel(col) : void 0;
4181
4283
  const content = col.render ? col.render(row, rowIndex) : row[col.key];
4182
4284
  return /* @__PURE__ */ jsx(
@@ -4201,25 +4303,25 @@ function DataRow({ row, rowIndex }) {
4201
4303
  hasRowDetails && isExpanded && renderDetail && /* @__PURE__ */ jsx("tr", { className: "usx-table__detail-row", children: /* @__PURE__ */ jsx("td", { className: "usx-table__detail-cell", colSpan: totalCols, children: renderDetail(row) }) })
4202
4304
  ] });
4203
4305
  }
4204
- function TableBody({ className = "", children, ...props }) {
4306
+ function TableBody({ className = "", children, ...props2 }) {
4205
4307
  const { data, primaryKey, groupBy, groups, placeholder, totalCols, onMore, loading } = useTableContext();
4206
- const bodyClass = classNames("usx-table__body", className);
4308
+ const bodyClass = ClassNames("usx-table__body", className);
4207
4309
  if (children) {
4208
- return /* @__PURE__ */ jsx("tbody", { className: bodyClass, ...props, children });
4310
+ return /* @__PURE__ */ jsx("tbody", { className: bodyClass, ...props2, children });
4209
4311
  }
4210
4312
  const placeholderRow = data.length === 0 && placeholder ? /* @__PURE__ */ jsx("tr", { className: "usx-table__placeholder-row", children: /* @__PURE__ */ jsx("td", { className: "usx-table__placeholder-cell", colSpan: totalCols, children: placeholder }) }) : null;
4211
4313
  const sentinel = onMore ? /* @__PURE__ */ jsx(OnMoreSentinel, { onMore }) : null;
4212
4314
  const loadingRow = loading ? /* @__PURE__ */ jsx("tr", { className: "usx-table__loading-row", "aria-live": "polite", children: /* @__PURE__ */ jsx("td", { className: "usx-table__loading-cell", colSpan: totalCols, children: /* @__PURE__ */ jsx(Spinner, { size: 3, label: "Loading more rows…" }) }) }) : null;
4213
4315
  const renderRows = (rows) => rows.map((row, rowIndex) => /* @__PURE__ */ jsx(DataRow, { row, rowIndex }, row[primaryKey] ?? rowIndex));
4214
4316
  if (!groupBy) {
4215
- return /* @__PURE__ */ jsxs("tbody", { className: bodyClass, ...props, children: [
4317
+ return /* @__PURE__ */ jsxs("tbody", { className: bodyClass, ...props2, children: [
4216
4318
  placeholderRow,
4217
4319
  renderRows(data),
4218
4320
  loadingRow,
4219
4321
  sentinel
4220
4322
  ] });
4221
4323
  }
4222
- return /* @__PURE__ */ jsxs("tbody", { className: bodyClass, ...props, children: [
4324
+ return /* @__PURE__ */ jsxs("tbody", { className: bodyClass, ...props2, children: [
4223
4325
  placeholderRow,
4224
4326
  (groups || []).map(({ key, rows }) => /* @__PURE__ */ jsx(TableGroup, { groupKey: key, label: key, children: renderRows(rows) }, key)),
4225
4327
  loadingRow,
@@ -4244,15 +4346,15 @@ function aggregate(data, key, type) {
4244
4346
  return "--";
4245
4347
  }
4246
4348
  }
4247
- function TableFoot({ className = "", children, ...props }) {
4349
+ function TableFoot({ className = "", children, ...props2 }) {
4248
4350
  const { columns, data, selectionMode, rowDetails } = useTableContext();
4249
4351
  if (children) {
4250
- return /* @__PURE__ */ jsx("tfoot", { className: classNames("usx-table__foot", className), ...props, children });
4352
+ return /* @__PURE__ */ jsx("tfoot", { className: ClassNames("usx-table__foot", className), ...props2, children });
4251
4353
  }
4252
4354
  const visibleCols = columns.filter((c) => !c.hidden);
4253
4355
  const hasFooter = visibleCols.some((c) => c.footer !== void 0 || c.aggregate);
4254
4356
  if (!hasFooter) return null;
4255
- return /* @__PURE__ */ jsx("tfoot", { className: classNames("usx-table__foot", className), ...props, children: /* @__PURE__ */ jsxs("tr", { className: "usx-table__foot-row", children: [
4357
+ return /* @__PURE__ */ jsx("tfoot", { className: ClassNames("usx-table__foot", className), ...props2, children: /* @__PURE__ */ jsxs("tr", { className: "usx-table__foot-row", children: [
4256
4358
  !!rowDetails && /* @__PURE__ */ jsx("td", { className: "usx-table__cell" }),
4257
4359
  !!selectionMode && /* @__PURE__ */ jsx("td", { className: "usx-table__cell usx-table__cell--selection" }),
4258
4360
  visibleCols.map((col) => {
@@ -4262,7 +4364,7 @@ function TableFoot({ className = "", children, ...props }) {
4262
4364
  } else if (col.aggregate) {
4263
4365
  content = aggregate(data, col.key, col.aggregate);
4264
4366
  }
4265
- return /* @__PURE__ */ jsx("td", { className: classNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`), children: content }, col.key);
4367
+ return /* @__PURE__ */ jsx("td", { className: ClassNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`), children: content }, col.key);
4266
4368
  })
4267
4369
  ] }) });
4268
4370
  }
@@ -4276,11 +4378,11 @@ function TableCell({
4276
4378
  dataLabel,
4277
4379
  className = "",
4278
4380
  children,
4279
- ...props
4381
+ ...props2
4280
4382
  }) {
4281
4383
  const resolvedAlign = Tag2 === "th" ? headerAlign || align : align;
4282
- const classes = classNames("usx-table__cell", resolvedAlign && `usx-table__cell--align-${resolvedAlign}`, className);
4283
- return /* @__PURE__ */ jsx(Tag2, { className: classes, colSpan, rowSpan, scope, "data-label": dataLabel, ...props, children });
4384
+ const classes = ClassNames("usx-table__cell", resolvedAlign && `usx-table__cell--align-${resolvedAlign}`, className);
4385
+ return /* @__PURE__ */ jsx(Tag2, { className: classes, colSpan, rowSpan, scope, "data-label": dataLabel, ...props2, children });
4284
4386
  }
4285
4387
  function defaultCompareFn(a, b, key) {
4286
4388
  const va = a[key];
@@ -4374,11 +4476,11 @@ function useTableSelect({
4374
4476
  return { selectedKeys, handleSelect, handleSelectAll, isSelected, isAllSelected, isIndeterminate };
4375
4477
  }
4376
4478
  function useTableGroups({ groupBy, data = [] }) {
4377
- const config = typeof groupBy === "object" && groupBy !== null ? groupBy : null;
4378
- const groupByProp = typeof groupBy === "string" ? groupBy : config == null ? void 0 : config.property;
4379
- const expandProp = config == null ? void 0 : config.expand;
4380
- const onExpandProp = config == null ? void 0 : config.onExpand;
4381
- const defaultExpanded = config ? config.defaultExpanded : true;
4479
+ const config2 = typeof groupBy === "object" && groupBy !== null ? groupBy : null;
4480
+ const groupByProp = typeof groupBy === "string" ? groupBy : config2 == null ? void 0 : config2.property;
4481
+ const expandProp = config2 == null ? void 0 : config2.expand;
4482
+ const onExpandProp = config2 == null ? void 0 : config2.onExpand;
4483
+ const defaultExpanded = config2 ? config2.defaultExpanded : true;
4382
4484
  const isControlled = expandProp !== void 0 && expandProp !== null;
4383
4485
  const [internalExpanded, setInternalExpanded] = useState(() => {
4384
4486
  if (expandProp) return new Set(expandProp.map(String));
@@ -4420,9 +4522,9 @@ function useTableGroups({ groupBy, data = [] }) {
4420
4522
  return { groups, expandedGroups, toggleGroup, isGroupExpanded };
4421
4523
  }
4422
4524
  function useRowDetails({ rowDetails }) {
4423
- const config = rowDetails && typeof rowDetails === "object" ? rowDetails : null;
4424
- const expandProp = config == null ? void 0 : config.expand;
4425
- const onExpandProp = config == null ? void 0 : config.onExpand;
4525
+ const config2 = rowDetails && typeof rowDetails === "object" ? rowDetails : null;
4526
+ const expandProp = config2 == null ? void 0 : config2.expand;
4527
+ const onExpandProp = config2 == null ? void 0 : config2.onExpand;
4426
4528
  const isControlled = expandProp !== void 0 && expandProp !== null;
4427
4529
  const [internalExpanded, setInternalExpanded] = useState(() => new Set(expandProp || []));
4428
4530
  const expandedRows = useMemo(
@@ -4451,7 +4553,7 @@ function countLeafCols(columns) {
4451
4553
  }, 0);
4452
4554
  }
4453
4555
  function Caption({ className = "", children, ...rest }) {
4454
- return /* @__PURE__ */ jsx("caption", { className: classNames("usx-table__caption", className), ...rest, children });
4556
+ return /* @__PURE__ */ jsx("caption", { className: ClassNames("usx-table__caption", className), ...rest, children });
4455
4557
  }
4456
4558
  function Table({
4457
4559
  id: idProp,
@@ -4486,7 +4588,7 @@ function Table({
4486
4588
  placeholder,
4487
4589
  className = "",
4488
4590
  children,
4489
- ...props
4591
+ ...props2
4490
4592
  }) {
4491
4593
  const generatedId = useId();
4492
4594
  const id = idProp ?? `usx-table-${generatedId}`;
@@ -4591,7 +4693,7 @@ function Table({
4591
4693
  loading
4592
4694
  ]
4593
4695
  );
4594
- const tableClasses = classNames(
4696
+ const tableClasses = ClassNames(
4595
4697
  "usa-table",
4596
4698
  striped && "usa-table--striped",
4597
4699
  borderless && "usa-table--borderless",
@@ -4603,7 +4705,7 @@ function Table({
4603
4705
  stickyFirstColumn && "usx-table--sticky-first-col",
4604
4706
  className
4605
4707
  );
4606
- const tableEl = /* @__PURE__ */ jsxs("table", { id: idProp, className: tableClasses, ...props, children: [
4708
+ const tableEl = /* @__PURE__ */ jsxs("table", { id: idProp, className: tableClasses, ...props2, children: [
4607
4709
  caption && /* @__PURE__ */ jsx(Caption, { children: caption }),
4608
4710
  children || /* @__PURE__ */ jsxs(Fragment, { children: [
4609
4711
  /* @__PURE__ */ jsx(TableHead, {}),
@@ -4659,17 +4761,17 @@ const TagGroup = ({
4659
4761
  tagProps = null,
4660
4762
  children = null,
4661
4763
  className = "",
4662
- ...props
4764
+ ...props2
4663
4765
  }) => {
4664
- const classes = classNames(
4766
+ const classes = ClassNames(
4665
4767
  "usx-tag-group",
4666
4768
  className
4667
4769
  );
4668
4770
  const content = children ? children : Array.isArray(tagProps) ? tagProps.map((t, i) => /* @__PURE__ */ jsx(Tag, { ...t }, t.id || t.value || i)) : null;
4669
- return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: content });
4771
+ return /* @__PURE__ */ jsx("div", { className: classes, ...props2, children: content });
4670
4772
  };
4671
4773
  function TaskList({ tasks = [], className }) {
4672
- return /* @__PURE__ */ jsx("ul", { className: classNames("usx-task-list", className), children: tasks == null ? void 0 : tasks.map((task, i) => {
4774
+ return /* @__PURE__ */ jsx("ul", { className: ClassNames("usx-task-list", className), children: tasks == null ? void 0 : tasks.map((task, i) => {
4673
4775
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Clickable, { href: task.href, className: "usx-task-list__item", children: [
4674
4776
  task.hint ? /* @__PURE__ */ jsxs("div", { className: "display-flex flex-column", children: [
4675
4777
  /* @__PURE__ */ jsx(Clickable.Link, { className: "usx-task-list__link", children: task.name }),
@@ -4701,7 +4803,7 @@ function ThemePicker({
4701
4803
  onChange == null ? void 0 : onChange(next);
4702
4804
  };
4703
4805
  const selectId = id || `theme-picker-${Math.random().toString(36).substr(2, 9)}`;
4704
- const classes = classNames("usx-theme-picker", { "usx-theme-picker--open": open }, className);
4806
+ const classes = ClassNames("usx-theme-picker", { "usx-theme-picker--open": open }, className);
4705
4807
  const themeOptions = themes.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value));
4706
4808
  return /* @__PURE__ */ jsx("div", { className: classes, children: open ? /* @__PURE__ */ jsxs("div", { className: "usx-theme-picker__panel", children: [
4707
4809
  /* @__PURE__ */ jsx(Label, { htmlFor: selectId, screenReaderOnly: true, children: label }),
@@ -4760,7 +4862,7 @@ function TimePicker({
4760
4862
  step = null,
4761
4863
  formGroup = true,
4762
4864
  className = "",
4763
- ...props
4865
+ ...props2
4764
4866
  }) {
4765
4867
  const labelId = `${id}-label`;
4766
4868
  const hintId = hint ? `${id}-hint` : void 0;
@@ -4773,7 +4875,7 @@ function TimePicker({
4773
4875
  /* @__PURE__ */ jsx(
4774
4876
  "div",
4775
4877
  {
4776
- className: classNames(
4878
+ className: ClassNames(
4777
4879
  "usa-time-picker",
4778
4880
  "usx-time-picker",
4779
4881
  { "usx-combo-box--error": !!error },
@@ -4794,7 +4896,7 @@ function TimePicker({
4794
4896
  disabled,
4795
4897
  "aria-disabled": !disabled && ariaDisabled ? "true" : void 0,
4796
4898
  required,
4797
- ...props
4899
+ ...props2
4798
4900
  }
4799
4901
  )
4800
4902
  }
@@ -4802,53 +4904,83 @@ function TimePicker({
4802
4904
  ] });
4803
4905
  return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: content }) : content;
4804
4906
  }
4805
- const Toggle = ({
4907
+ function Toggle({
4806
4908
  options = [],
4807
4909
  value,
4808
4910
  defaultValue,
4809
4911
  onChange,
4810
4912
  name,
4811
4913
  id,
4914
+ ariaLabel,
4812
4915
  variant = "text",
4813
4916
  disabled = false,
4814
- className = "",
4815
- ...props
4816
- }) => {
4817
- const idRef = useRef(id || name || `toggle-${Math.random().toString(36).substr(2, 8)}`);
4818
- const generatedName = idRef.current;
4819
- const classes = [
4820
- "usa-button-group",
4821
- "usx-button-group",
4822
- "usa-button-group--segmented",
4823
- "usx-toggle",
4824
- variant === "icon" ? "usx-toggle--icon" : "",
4825
- className
4826
- ].filter(Boolean).join(" ");
4827
- return /* @__PURE__ */ jsx("ul", { className: classes, role: "radiogroup", "aria-disabled": disabled, ...props, children: options.map((opt, i) => {
4828
- const optValue = typeof opt === "object" ? opt.value ?? opt : opt;
4829
- const optLabel = typeof opt === "object" ? opt.label ?? opt : opt;
4830
- const optIcon = typeof opt === "object" ? opt.icon : void 0;
4831
- const optDisabled = typeof opt === "object" ? !!opt.disabled : false;
4832
- const inputId = `${generatedName}-${i}`;
4833
- return /* @__PURE__ */ jsxs("li", { className: `usa-button-group__item usx-toggle__item${optDisabled ? " usx-toggle__item--disabled" : ""}`, children: [
4834
- /* @__PURE__ */ jsx(
4835
- "input",
4836
- {
4837
- className: "usx-toggle__input",
4838
- type: "radio",
4839
- id: inputId,
4840
- name: name || generatedName,
4841
- value: optValue,
4842
- checked: value === optValue ? true : void 0,
4843
- defaultChecked: defaultValue === optValue ? true : void 0,
4844
- disabled: disabled ? true : optDisabled ? true : void 0,
4845
- onChange: onChange ? () => onChange(optValue) : void 0
4846
- }
4917
+ required = false,
4918
+ className,
4919
+ "aria-label": nativeAriaLabel,
4920
+ "aria-labelledby": labelledBy,
4921
+ ...props2
4922
+ }) {
4923
+ const instanceId = useId();
4924
+ const groupId = id || `toggle-${instanceId}`;
4925
+ const groupName = name || groupId;
4926
+ const controlled = value !== void 0;
4927
+ return /* @__PURE__ */ jsx(
4928
+ "ul",
4929
+ {
4930
+ ...props2,
4931
+ id: groupId,
4932
+ className: ClassNames(
4933
+ "usx-toggle",
4934
+ "usa-button-group",
4935
+ variant === "icon" && "usx-toggle--icon",
4936
+ className
4847
4937
  ),
4848
- /* @__PURE__ */ jsx("label", { htmlFor: inputId, className: "usa-button usx-button usa-button--outline", children: variant === "icon" && optIcon ? /* @__PURE__ */ jsx(Icon, { name: optIcon, className: "usx-toggle__label", ariaHidden: true }) : /* @__PURE__ */ jsx("span", { className: "usx-toggle__label", children: optLabel }) })
4849
- ] }, inputId);
4850
- }) });
4851
- };
4938
+ role: "radiogroup",
4939
+ "aria-labelledby": labelledBy,
4940
+ "aria-label": labelledBy ? void 0 : ariaLabel || nativeAriaLabel || name || "Choose an option",
4941
+ "aria-disabled": disabled || void 0,
4942
+ "aria-required": required || void 0,
4943
+ children: options.map((option, index) => {
4944
+ const opt = typeof option === "object" ? option : { value: option, label: option };
4945
+ const optionValue = opt.value ?? (typeof opt.label === "string" || typeof opt.label === "number" ? opt.label : index);
4946
+ const optionLabel = opt.label ?? String(optionValue);
4947
+ const inputId = `${groupId}-option-${index}`;
4948
+ const iconOnly = variant === "icon" && Boolean(opt.icon);
4949
+ return /* @__PURE__ */ jsxs("li", { className: "usa-button-group__item", role: "presentation", children: [
4950
+ /* @__PURE__ */ jsx(
4951
+ "input",
4952
+ {
4953
+ className: "usx-toggle__input",
4954
+ type: "radio",
4955
+ id: inputId,
4956
+ name: groupName,
4957
+ value: optionValue,
4958
+ ...controlled ? { checked: value === optionValue } : { defaultChecked: defaultValue === optionValue },
4959
+ disabled: disabled || opt.disabled,
4960
+ required,
4961
+ onChange: (event) => {
4962
+ if (event.target.checked) onChange == null ? void 0 : onChange(optionValue);
4963
+ }
4964
+ }
4965
+ ),
4966
+ /* @__PURE__ */ jsxs(
4967
+ "label",
4968
+ {
4969
+ htmlFor: inputId,
4970
+ className: "usa-button usx-button usa-button--primary usx-toggle__button",
4971
+ "aria-disabled": disabled || opt.disabled || void 0,
4972
+ title: iconOnly && (typeof optionLabel === "string" || typeof optionLabel === "number") ? String(optionLabel) : void 0,
4973
+ children: [
4974
+ opt.icon && /* @__PURE__ */ jsx(Icon, { name: opt.icon, className: "usx-toggle__icon", "aria-hidden": "true" }),
4975
+ /* @__PURE__ */ jsx("span", { className: iconOnly ? "usa-sr-only" : void 0, children: optionLabel })
4976
+ ]
4977
+ }
4978
+ )
4979
+ ] }, inputId);
4980
+ })
4981
+ }
4982
+ );
4983
+ }
4852
4984
  const Villain = ({
4853
4985
  title = "",
4854
4986
  callout = "",
@@ -4856,10 +4988,10 @@ const Villain = ({
4856
4988
  button = null,
4857
4989
  ariaLabel = "Introduction",
4858
4990
  className = "",
4859
- ...props
4991
+ ...props2
4860
4992
  }) => {
4861
- const classes = ["usa-hero", className].filter(Boolean).join(" ");
4862
- return /* @__PURE__ */ jsx("section", { className: classes, "aria-label": ariaLabel, ...props, children: /* @__PURE__ */ jsx("div", { className: "grid-container", children: /* @__PURE__ */ jsxs("div", { className: "usa-hero__callout", children: [
4993
+ const classes = ClassNames("usa-hero", className);
4994
+ return /* @__PURE__ */ jsx("section", { className: classes, "aria-label": ariaLabel, ...props2, children: /* @__PURE__ */ jsx("div", { className: "grid-container", children: /* @__PURE__ */ jsxs("div", { className: "usa-hero__callout", children: [
4863
4995
  /* @__PURE__ */ jsxs("h1", { className: "usa-hero__heading", children: [
4864
4996
  callout && /* @__PURE__ */ jsx("span", { className: "usa-hero__heading--alt", children: callout }),
4865
4997
  title
@@ -4876,11 +5008,11 @@ export {
4876
5008
  AvatarGroup,
4877
5009
  BackToTop,
4878
5010
  Banner,
4879
- Block,
4880
5011
  Breadcrumb,
4881
5012
  Button,
4882
5013
  ButtonGroup,
4883
5014
  CalendarDate,
5015
+ Callout,
4884
5016
  Card,
4885
5017
  CardGroup,
4886
5018
  Carousel,
@@ -4891,6 +5023,7 @@ export {
4891
5023
  Code,
4892
5024
  Collection,
4893
5025
  Combobox,
5026
+ Container,
4894
5027
  CopyToClipboard,
4895
5028
  DatePicker,
4896
5029
  DateRangePicker,
@@ -4924,6 +5057,7 @@ export {
4924
5057
  Pagination,
4925
5058
  ProcessList,
4926
5059
  Prose,
5060
+ Quote,
4927
5061
  RadioButtons,
4928
5062
  RangeSlider,
4929
5063
  Required,