@solexllc/usx-react 0.4.0 → 0.5.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 (99) hide show
  1. package/dist/index.cjs +329 -274
  2. package/dist/index.js +329 -274
  3. package/package.json +5 -5
  4. package/src/components/attribution/config.json +5 -5
  5. package/src/components/banner/config.json +2 -2
  6. package/src/components/breadcrumb/Breadcrumb.tsx +5 -6
  7. package/src/components/breadcrumb/config.json +11 -1
  8. package/src/components/button/button.html +2 -2
  9. package/src/components/button-group/button-group.django.html +1 -1
  10. package/src/components/calendar-date/calendar-date.django.html +3 -3
  11. package/src/components/callout/Callout.tsx +53 -0
  12. package/src/components/callout/callout.django.html +5 -0
  13. package/src/components/callout/callout.html +76 -0
  14. package/src/components/callout/config.json +74 -0
  15. package/src/components/card/Card.tsx +18 -34
  16. package/src/components/card/card.django.html +12 -10
  17. package/src/components/card/config.json +15 -40
  18. package/src/components/card-group/card-group.django.html +1 -1
  19. package/src/components/carousel/Carousel.tsx +3 -2
  20. package/src/components/carousel/carousel.django.html +13 -2
  21. package/src/components/carousel/config.json +2 -2
  22. package/src/components/character-count/config.json +2 -2
  23. package/src/components/checkbox-group/CheckboxGroup.tsx +10 -20
  24. package/src/components/checkbox-group/checkbox-group.django.html +10 -4
  25. package/src/components/checkbox-group/config.json +10 -5
  26. package/src/components/clickable/clickable.html +21 -39
  27. package/src/components/clickable/config.json +2 -2
  28. package/src/components/collection/Collection.tsx +5 -5
  29. package/src/components/collection/collection.django.html +2 -4
  30. package/src/components/collection/config.json +7 -6
  31. package/src/components/combobox/config.json +4 -4
  32. package/src/components/date-picker/config.json +4 -4
  33. package/src/components/date-range-picker/config.json +7 -7
  34. package/src/components/error-message/config.json +2 -2
  35. package/src/components/eyebrow/Eyebrow.tsx +2 -1
  36. package/src/components/eyebrow/config.json +2 -2
  37. package/src/components/fieldset/config.json +5 -5
  38. package/src/components/file-input/FileInput.tsx +3 -2
  39. package/src/components/file-input/config.json +5 -5
  40. package/src/components/file-list/FileList.tsx +2 -1
  41. package/src/components/file-list/config.json +2 -2
  42. package/src/components/footer/Footer.tsx +5 -5
  43. package/src/components/form-group/config.json +2 -2
  44. package/src/components/hero/Hero.tsx +8 -14
  45. package/src/components/hero/config.json +36 -27
  46. package/src/components/hero/hero.django.html +2 -2
  47. package/src/components/hint/config.json +2 -2
  48. package/src/components/in-page-nav/config.json +11 -1
  49. package/src/components/indicator/config.json +2 -2
  50. package/src/components/input/config.json +2 -2
  51. package/src/components/label/config.json +2 -2
  52. package/src/components/language-selector/config.json +2 -2
  53. package/src/components/layout/Layout.tsx +1 -1
  54. package/src/components/legend/config.json +3 -3
  55. package/src/components/link/config.json +2 -2
  56. package/src/components/memorable-date/config.json +9 -9
  57. package/src/components/misc-banner/MiscBanner.tsx +2 -1
  58. package/src/components/misc-banner/config.json +2 -2
  59. package/src/components/modal/config.json +2 -2
  60. package/src/components/page/Page.tsx +2 -1
  61. package/src/components/page/config.json +7 -7
  62. package/src/components/page/page.django.html +1 -1
  63. package/src/components/pagination/Pagination.tsx +2 -1
  64. package/src/components/pagination/container/PaginationContainer.tsx +2 -1
  65. package/src/components/prose/config.json +5 -1
  66. package/src/components/quote/Quote.tsx +58 -0
  67. package/src/components/quote/config.json +51 -0
  68. package/src/components/quote/quote.django.html +15 -0
  69. package/src/components/quote/quote.html +66 -0
  70. package/src/components/radio-buttons/config.json +3 -3
  71. package/src/components/range-slider/RangeSlider.tsx +2 -1
  72. package/src/components/range-slider/config.json +4 -4
  73. package/src/components/required/config.json +2 -2
  74. package/src/components/section/Section.tsx +6 -2
  75. package/src/components/section/config.json +19 -6
  76. package/src/components/section/section.django.html +9 -2
  77. package/src/components/select/config.json +2 -2
  78. package/src/components/site-alert/SiteAlert.tsx +5 -6
  79. package/src/components/skipnav/config.json +2 -2
  80. package/src/components/summary-box/config.json +3 -3
  81. package/src/components/swap/Swap.tsx +4 -3
  82. package/src/components/swap/config.json +4 -4
  83. package/src/components/switch/config.json +2 -2
  84. package/src/components/table/config.json +13 -3
  85. package/src/components/tag/config.json +2 -2
  86. package/src/components/tag-group/config.json +2 -2
  87. package/src/components/text-area/config.json +2 -2
  88. package/src/components/time-picker/config.json +4 -4
  89. package/src/components/toggle/Toggle.tsx +69 -40
  90. package/src/components/toggle/config.json +42 -10
  91. package/src/components/toggle/toggle.django.html +25 -17
  92. package/src/components/toggle/toggle.html +319 -85
  93. package/src/components/tooltip/config.json +2 -2
  94. package/src/components/villain/Villain.tsx +2 -1
  95. package/src/index.js +2 -1
  96. package/src/components/block/Block.tsx +0 -78
  97. package/src/components/block/block.django.html +0 -26
  98. package/src/components/block/block.html +0 -162
  99. 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
@@ -123,7 +123,7 @@ function Accordion({
123
123
  contentClassName = "",
124
124
  ...props
125
125
  }) {
126
- const accordionClasses = classNames(
126
+ const accordionClasses = ClassNames(
127
127
  "usa-accordion",
128
128
  "usx-accordion",
129
129
  bordered && "usa-accordion--bordered",
@@ -199,7 +199,7 @@ function Alert({
199
199
  ...props
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}` : "",
@@ -246,16 +246,16 @@ function Avatar({
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
@@ -279,7 +279,7 @@ function Attribution({
279
279
  className = "",
280
280
  ...props
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 }),
@@ -291,7 +291,7 @@ function Attribution({
291
291
  return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: content });
292
292
  }
293
293
  function AvatarGroup({ avatarProps = [], overlap = false, stacked = false, className = "", ...props }) {
294
- const classes = classNames(
294
+ const classes = ClassNames(
295
295
  "usx-avatar-group",
296
296
  overlap && "usa-avatar-group--overlap",
297
297
  stacked && "usa-avatar-group--stacked",
@@ -323,11 +323,11 @@ function BackToTop({
323
323
  onClick = void 0,
324
324
  ...props
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",
@@ -339,7 +339,7 @@ function BackToTop({
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",
@@ -386,7 +386,7 @@ function Banner({
386
386
  className = "",
387
387
  ...props
388
388
  }) {
389
- const classes = classNames(
389
+ const classes = ClassNames(
390
390
  "usa-banner",
391
391
  "usx-banner",
392
392
  className
@@ -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,
@@ -525,16 +481,16 @@ function Breadcrumb({
525
481
  ...props
526
482
  }) {
527
483
  if (!items || items.length === 0) {
528
- const classes = ["usx-breadcrumb", className].filter(Boolean).join(" ");
484
+ const classes = ClassNames("usx-breadcrumb", className);
529
485
  return /* @__PURE__ */ jsx("div", { className: classes, ...props, 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(" ");
493
+ );
538
494
  return /* @__PURE__ */ jsx("nav", { className: navClasses, "aria-label": ariaLabel, ...props, children: /* @__PURE__ */ jsx(
539
495
  "ol",
540
496
  {
@@ -542,7 +498,7 @@ function Breadcrumb({
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
  {
@@ -574,7 +530,7 @@ const Required = ({
574
530
  className = "",
575
531
  ...props
576
532
  }) => {
577
- const classes = classNames("usx-required", className);
533
+ const classes = ClassNames("usx-required", className);
578
534
  return /* @__PURE__ */ jsxs(Fragment, { children: [
579
535
  /* @__PURE__ */ jsx("abbr", { title, className: classes, ...props, children: "*" }),
580
536
  " ",
@@ -591,7 +547,7 @@ function Label({
591
547
  classOverride = false,
592
548
  ...props
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 },
@@ -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],
@@ -728,12 +684,12 @@ function ButtonGroup({
728
684
  className = "",
729
685
  ...props
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, ...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)) });
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
+ ...props
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 && `usx-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
+ ...props,
748
+ children: children ?? content
749
+ }
750
+ );
751
+ }
762
752
  const Tag = ({
763
753
  id,
764
754
  big = false,
@@ -775,7 +765,7 @@ const Tag = ({
775
765
  ...props
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 },
@@ -826,7 +816,7 @@ function Image({
826
816
  className = "",
827
817
  ...props
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
  );
@@ -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
  {
@@ -910,7 +900,8 @@ function Carousel({
910
900
  slideIds = [],
911
901
  ...props
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
906
  return /* @__PURE__ */ jsxs("div", { className: classes, ...props, 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(
@@ -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,
@@ -947,7 +938,7 @@ function Card({
947
938
  tag: RootTag = "div",
948
939
  ...props
949
940
  }) {
950
- const cardClasses = classNames(
941
+ const cardClasses = ClassNames(
951
942
  "usa-card",
952
943
  "usx-card",
953
944
  {
@@ -957,40 +948,40 @@ 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
965
  id: `${props.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;
972
+ ) : hasImages ? /* @__PURE__ */ jsx(Image, { hideCaption: true, ...imageProps[0], className: ClassNames("usa-card__img", imageProps[0].className) }) : null;
982
973
  return /* @__PURE__ */ jsx(RootTag, { className: cardClasses, ...props, 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
983
  function CardGroup({ cardProps = [], className = "", ...props }) {
993
- const classes = classNames(
984
+ const classes = ClassNames(
994
985
  "usa-card-group",
995
986
  "usx-card-group",
996
987
  className
@@ -1003,7 +994,7 @@ function Hint({
1003
994
  className = "",
1004
995
  ...props
1005
996
  }) {
1006
- const classes = classNames("usa-hint", "usx-hint", className);
997
+ const classes = ClassNames("usa-hint", "usx-hint", className);
1007
998
  return /* @__PURE__ */ jsx("span", { className: classes, ...id ? { id } : {}, ...props, children });
1008
999
  }
1009
1000
  function ErrorMessage({
@@ -1012,11 +1003,11 @@ function ErrorMessage({
1012
1003
  className = "",
1013
1004
  ...props
1014
1005
  }) {
1015
- const classes = classNames("usa-error-message", "usx-error-message", className);
1006
+ const classes = ClassNames("usa-error-message", "usx-error-message", className);
1016
1007
  return /* @__PURE__ */ jsx("span", { className: classes, role: "alert", ...id ? { id } : {}, ...props, children });
1017
1008
  }
1018
1009
  function FormGroup({ children = null, className = "", error = false, ...props }) {
1019
- const classes = classNames(
1010
+ const classes = ClassNames(
1020
1011
  "usa-form-group",
1021
1012
  "usx-form-group",
1022
1013
  {
@@ -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
@@ -1091,7 +1082,7 @@ const TextArea = ({
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,
@@ -1142,7 +1133,7 @@ function CharacterCount({
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,
@@ -1188,13 +1179,13 @@ function Checkbox({
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
  );
@@ -1231,7 +1222,7 @@ function Legend({
1231
1222
  className = "",
1232
1223
  ...props
1233
1224
  }) {
1234
- const classes = classNames(
1225
+ const classes = ClassNames(
1235
1226
  "usa-legend",
1236
1227
  "usx-legend",
1237
1228
  { "usa-legend--large": large },
@@ -1255,7 +1246,7 @@ function Fieldset({
1255
1246
  className = "",
1256
1247
  ...props
1257
1248
  }) {
1258
- const classes = classNames(
1249
+ const classes = ClassNames(
1259
1250
  "usa-fieldset",
1260
1251
  "usx-fieldset",
1261
1252
  className
@@ -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
1280
  ...props
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, ...props, 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
  }
@@ -1349,12 +1337,12 @@ const Tooltip = ({
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), ...props, 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"
@@ -1441,7 +1429,7 @@ function CollectionItem({ href, heading, description, imgSrc, imgAlt = "", calen
1441
1429
  ] });
1442
1430
  }
1443
1431
  function Collection({ items = [], condensed = false, className = "", ...props }) {
1444
- const classes = classNames(
1432
+ const classes = ClassNames(
1445
1433
  "usa-collection",
1446
1434
  "usx-collection",
1447
1435
  condensed && "usa-collection--condensed",
@@ -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,7 +1485,7 @@ 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,
@@ -1539,7 +1527,7 @@ function DatePicker({
1539
1527
  /* @__PURE__ */ jsx(
1540
1528
  "div",
1541
1529
  {
1542
- className: classNames("usa-date-picker", "usx-date-picker", className),
1530
+ className: ClassNames("usa-date-picker", "usx-date-picker", className),
1543
1531
  ...defaultValue ? { "data-default-value": defaultValue } : {},
1544
1532
  ...minDate ? { "data-min-date": minDate } : {},
1545
1533
  ...maxDate ? { "data-max-date": maxDate } : {},
@@ -1547,7 +1535,7 @@ function DatePicker({
1547
1535
  children: /* @__PURE__ */ jsx(
1548
1536
  "input",
1549
1537
  {
1550
- className: classNames(
1538
+ className: ClassNames(
1551
1539
  "usa-input",
1552
1540
  "usx-input",
1553
1541
  { "usa-input--error": !!error }
@@ -1596,7 +1584,7 @@ function DateRangePicker({
1596
1584
  return /* @__PURE__ */ jsxs(
1597
1585
  "div",
1598
1586
  {
1599
- className: classNames("usa-date-range-picker", "usx-date-range-picker", className),
1587
+ className: ClassNames("usa-date-range-picker", "usx-date-range-picker", className),
1600
1588
  ...minDate ? { "data-min-date": minDate } : {},
1601
1589
  ...maxDate ? { "data-max-date": maxDate } : {},
1602
1590
  children: [
@@ -1653,7 +1641,7 @@ function DateRangePicker({
1653
1641
  );
1654
1642
  }
1655
1643
  function Eyebrow({ children = null, className = "", ...props }) {
1656
- const classes = ["usx-eyebrow", className].filter(Boolean).join(" ");
1644
+ const classes = ClassNames("usx-eyebrow", className);
1657
1645
  return /* @__PURE__ */ jsx("span", { className: classes, ...props, children });
1658
1646
  }
1659
1647
  function Link({
@@ -1666,7 +1654,7 @@ function Link({
1666
1654
  className = "",
1667
1655
  ...props
1668
1656
  }) {
1669
- const classes = classNames(
1657
+ const classes = ClassNames(
1670
1658
  "usa-link",
1671
1659
  "usx-link",
1672
1660
  visited && "usx-link--visited",
@@ -1703,7 +1691,7 @@ function getEntryDisplay(entry) {
1703
1691
  function FileList({ files, hint = "Selected files", onRemove = null, disabled = false, className = "" }) {
1704
1692
  if (!files || files.length === 0) return null;
1705
1693
  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: [
1694
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-file-input__list", "margin-top-1", className), children: [
1707
1695
  /* @__PURE__ */ jsx("span", { className: "usa-sr-only", "aria-live": "polite", children: `You have selected the file: ${lastEntry.name}.` }),
1708
1696
  hint && /* @__PURE__ */ jsx("span", { className: "usa-hint usx-hint usx-file-input__list-heading", children: hint }),
1709
1697
  /* @__PURE__ */ jsx("ul", { className: "usx-file-input__file-list", children: files.map((entry) => {
@@ -1796,7 +1784,7 @@ function FileInput({
1796
1784
  /* @__PURE__ */ jsx(
1797
1785
  "input",
1798
1786
  {
1799
- className: ["usa-file-input", "usx-file-input", className].filter(Boolean).join(" "),
1787
+ className: ClassNames("usa-file-input", "usx-file-input", className),
1800
1788
  id,
1801
1789
  type: "file",
1802
1790
  name: name || id,
@@ -1819,7 +1807,7 @@ function FileInput({
1819
1807
  /* @__PURE__ */ jsx("div", { className: "usx-file-input__add-only", children: /* @__PURE__ */ jsx(
1820
1808
  "input",
1821
1809
  {
1822
- className: ["usa-file-input", "usx-file-input", className].filter(Boolean).join(" "),
1810
+ className: ClassNames("usa-file-input", "usx-file-input", className),
1823
1811
  id,
1824
1812
  type: "file",
1825
1813
  name: name || id,
@@ -1878,7 +1866,7 @@ function BrandingContent({ config, projectUrl, staticBaseUrl }) {
1878
1866
  }
1879
1867
  function Branding({ branding, projectUrl = "/", staticBaseUrl, className = "", ...props }) {
1880
1868
  if (!branding) return null;
1881
- const classes = classNames(
1869
+ const classes = ClassNames(
1882
1870
  "usa-logo",
1883
1871
  "usx-logo",
1884
1872
  className
@@ -1886,7 +1874,7 @@ function Branding({ branding, projectUrl = "/", staticBaseUrl, className = "", .
1886
1874
  return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: /* @__PURE__ */ jsx(BrandingContent, { config: branding, projectUrl, staticBaseUrl }) });
1887
1875
  }
1888
1876
  function FooterReturnToTop({ label = "Return to top", href = "#", className = "" }) {
1889
- const classes = classNames(
1877
+ const classes = ClassNames(
1890
1878
  "grid-container",
1891
1879
  "usa-footer__return-to-top",
1892
1880
  "usx-footer__return-to-top",
@@ -1898,7 +1886,7 @@ function FooterReturnToTop({ label = "Return to top", href = "#", className = ""
1898
1886
  ] }) });
1899
1887
  }
1900
1888
  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: [
1889
+ return /* @__PURE__ */ jsxs("section", { className: ClassNames("usa-footer__primary-content usa-footer__primary-content--collapsible usx-footer__nav-column", className), children: [
1902
1890
  heading && /* @__PURE__ */ jsx("h4", { className: "usa-footer__primary-link", children: heading }),
1903
1891
  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
1892
  ] });
@@ -1912,7 +1900,7 @@ function FooterSignUp({
1912
1900
  onSubmit = null,
1913
1901
  className = ""
1914
1902
  }) {
1915
- return /* @__PURE__ */ jsxs("div", { className: ["usa-sign-up usx-footer__sign-up", className].filter(Boolean).join(" "), children: [
1903
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usa-sign-up usx-footer__sign-up", className), children: [
1916
1904
  /* @__PURE__ */ jsx("h3", { className: "usa-sign-up__heading", children: heading }),
1917
1905
  /* @__PURE__ */ jsxs("form", { className: "usa-form", action: action || void 0, onSubmit: onSubmit || void 0, children: [
1918
1906
  /* @__PURE__ */ jsx(
@@ -1931,7 +1919,7 @@ function FooterSignUp({
1931
1919
  }
1932
1920
  function FooterSocialLinks({ links = [], staticBaseUrl, className = "" }) {
1933
1921
  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)) });
1922
+ 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
1923
  }
1936
1924
  function normalizeContactLink(value, scheme) {
1937
1925
  var _a;
@@ -1953,7 +1941,7 @@ function FooterContact({
1953
1941
  ...links
1954
1942
  ].filter(Boolean);
1955
1943
  if (!heading && allLinks.length === 0) return null;
1956
- return /* @__PURE__ */ jsxs("address", { className: ["usa-footer__address usx-footer__contact", className].filter(Boolean).join(" "), children: [
1944
+ return /* @__PURE__ */ jsxs("address", { className: ClassNames("usa-footer__address usx-footer__contact", className), children: [
1957
1945
  heading && /* @__PURE__ */ jsx("p", { className: "usa-footer__contact-heading", children: heading }),
1958
1946
  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
1947
  ] });
@@ -1981,7 +1969,7 @@ function Footer({
1981
1969
  ...props
1982
1970
  }) {
1983
1971
  const variantClass = variant === "big" ? "usa-footer--big" : variant === "slim" ? "usa-footer--slim" : "";
1984
- const classes = ["usa-footer", variantClass, "usx-footer", className].filter(Boolean).join(" ");
1972
+ const classes = ClassNames("usa-footer", variantClass, "usx-footer", className);
1985
1973
  const returnToTopEl = returnToTop ? /* @__PURE__ */ jsx(
1986
1974
  FooterReturnToTop,
1987
1975
  {
@@ -2066,13 +2054,13 @@ function Search({
2066
2054
  onSubmit(query);
2067
2055
  }
2068
2056
  };
2069
- const iconClasses = classNames(
2057
+ const iconClasses = ClassNames(
2070
2058
  "usa-search__submit-icon",
2071
2059
  {
2072
2060
  "display-inline-block": iconOnly
2073
2061
  }
2074
2062
  );
2075
- const formClasses = classNames(
2063
+ const formClasses = ClassNames(
2076
2064
  "usa-search",
2077
2065
  {
2078
2066
  "usa-search--small": iconOnly && !big,
@@ -2125,7 +2113,7 @@ function PrimaryNav({
2125
2113
  headerId = "header",
2126
2114
  renderSearchDirectly = false
2127
2115
  }) {
2128
- const navClasses = classNames("usa-nav__primary", "usa-accordion");
2116
+ const navClasses = ClassNames("usa-nav__primary", "usa-accordion");
2129
2117
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2130
2118
  /* @__PURE__ */ jsx("button", { type: "button", className: "usa-nav__close", children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }),
2131
2119
  /* @__PURE__ */ jsx("ul", { className: navClasses, children: navSections.map((section, index) => /* @__PURE__ */ jsx("li", { className: "usa-nav__primary-item", children: section.href ? /* @__PURE__ */ jsxs(
@@ -2216,7 +2204,7 @@ function Header({
2216
2204
  navEndContent = null,
2217
2205
  ...props
2218
2206
  }) {
2219
- const headerClasses = classNames(
2207
+ const headerClasses = ClassNames(
2220
2208
  "usa-header",
2221
2209
  "usx-header",
2222
2210
  { "usa-header--basic": !extended },
@@ -2224,7 +2212,7 @@ function Header({
2224
2212
  { "usa-header--extended": extended },
2225
2213
  className
2226
2214
  );
2227
- const navClasses = classNames(
2215
+ const navClasses = ClassNames(
2228
2216
  "usa-nav",
2229
2217
  "usx-nav",
2230
2218
  { "usx-nav--sticky": stickyNav }
@@ -2288,7 +2276,7 @@ function Hero({
2288
2276
  title = "",
2289
2277
  callout = "",
2290
2278
  paragraph = "",
2291
- button = null,
2279
+ buttonProps = null,
2292
2280
  searchProps = null,
2293
2281
  backgroundImage = "",
2294
2282
  backgroundPosition,
@@ -2307,7 +2295,7 @@ function Hero({
2307
2295
  const Heading = headingLevel;
2308
2296
  const secondaryHeadings = { h1: "h2", h2: "h3", h3: "h4", h4: "h5", h5: "h6" };
2309
2297
  const SecondaryHeading = secondaryHeadings[headingLevel];
2310
- const classes = [
2298
+ const classes = ClassNames(
2311
2299
  "usx-hero",
2312
2300
  overlay && "usx-hero--has-overlay",
2313
2301
  overlayOpacity !== void 0 && "usx-hero--custom-overlay",
@@ -2315,7 +2303,7 @@ function Hero({
2315
2303
  !boxed && "usx-hero--unboxed",
2316
2304
  secondaryContent && "usx-hero--split",
2317
2305
  className
2318
- ].filter(Boolean).join(" ");
2306
+ );
2319
2307
  const heroStyle = {
2320
2308
  ...backgroundImage ? { backgroundImage: `url('${backgroundImage}')` } : {},
2321
2309
  ...backgroundPosition ? { backgroundPosition } : {},
@@ -2330,7 +2318,7 @@ function Hero({
2330
2318
  ] }),
2331
2319
  paragraph && /* @__PURE__ */ jsx("p", { className: "usx-hero__paragraph", children: paragraph }),
2332
2320
  searchProps && /* @__PURE__ */ jsx(Search, { ...searchProps }),
2333
- !searchProps && button && /* @__PURE__ */ jsx(Button, { variant: "primary", href: button.href, onClick: button.onClick, children: button.text })
2321
+ !searchProps && buttonProps && /* @__PURE__ */ jsx(Button, { ...buttonProps })
2334
2322
  ] }),
2335
2323
  secondaryContent && /* @__PURE__ */ jsxs("div", { className: "usx-hero__secondary", children: [
2336
2324
  secondaryContent.title && /* @__PURE__ */ jsx(SecondaryHeading, { className: "usx-hero__secondary-heading", children: secondaryContent.title }),
@@ -2346,15 +2334,15 @@ function renderContent$1(content) {
2346
2334
  return content;
2347
2335
  }
2348
2336
  function IconList({ items = [], primary = false, size = null, className = "", ...props }) {
2349
- const classes = classNames(
2337
+ const classes = ClassNames(
2350
2338
  "usa-icon-list",
2351
2339
  "usx-icon-list",
2352
2340
  primary && "usa-icon-list--primary",
2353
2341
  size === "lg" && "usa-icon-list--size-lg",
2354
2342
  className
2355
2343
  );
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(
2344
+ return /* @__PURE__ */ jsx("ul", { className: classes, ...props, children: items.map((item, index) => /* @__PURE__ */ jsxs("li", { className: ClassNames("usa-icon-list__item", item.itemClassName), children: [
2345
+ /* @__PURE__ */ jsx("div", { className: ClassNames("usa-icon-list__icon", item.iconColor && `text-${item.iconColor}`, item.iconClassName), children: /* @__PURE__ */ jsx(
2358
2346
  Icon,
2359
2347
  {
2360
2348
  name: item.iconName,
@@ -2363,7 +2351,7 @@ function IconList({ items = [], primary = false, size = null, className = "", ..
2363
2351
  className: item.iconClassName
2364
2352
  }
2365
2353
  ) }),
2366
- /* @__PURE__ */ jsxs("div", { className: classNames("usa-icon-list__content", item.contentClassName), children: [
2354
+ /* @__PURE__ */ jsxs("div", { className: ClassNames("usa-icon-list__content", item.contentClassName), children: [
2367
2355
  item.title ? /* @__PURE__ */ jsx("h4", { className: "usa-icon-list__title", children: item.title }) : null,
2368
2356
  renderContent$1(item.content)
2369
2357
  ] })
@@ -2444,7 +2432,7 @@ function Identifier({
2444
2432
  overlapAvatars = false,
2445
2433
  className = ""
2446
2434
  }) {
2447
- const classes = classNames("usa-identifier", "usx-identifier", className);
2435
+ const classes = ClassNames("usa-identifier", "usx-identifier", className);
2448
2436
  const labels = {
2449
2437
  masthead: language === "es" ? "Identificador de la agencia," : "Agency identifier,",
2450
2438
  description: language === "es" ? "Descripcion de la agencia," : "Agency description,",
@@ -2458,7 +2446,7 @@ function Identifier({
2458
2446
  avatarProps.length > 0 ? /* @__PURE__ */ jsx(
2459
2447
  "div",
2460
2448
  {
2461
- className: classNames(
2449
+ className: ClassNames(
2462
2450
  "usa-identifier__logos",
2463
2451
  "usx-avatar-group",
2464
2452
  overlapAvatars && "usa-avatar-group--overlap"
@@ -2469,8 +2457,8 @@ function Identifier({
2469
2457
  ...avatar,
2470
2458
  key: `${avatar.alt}-${index}`,
2471
2459
  shape: avatar.shape || logoShape,
2472
- className: classNames("usa-identifier__logo", avatar.className),
2473
- imageClassName: classNames("usa-identifier__logo-img", avatar.imageClassName)
2460
+ className: ClassNames("usa-identifier__logo", avatar.className),
2461
+ imageClassName: ClassNames("usa-identifier__logo-img", avatar.imageClassName)
2474
2462
  }
2475
2463
  ))
2476
2464
  }
@@ -2511,7 +2499,7 @@ function InPageNav({
2511
2499
  "aside",
2512
2500
  {
2513
2501
  id,
2514
- className: classNames("usa-in-page-nav", "usx-in-page-nav", className),
2502
+ className: ClassNames("usa-in-page-nav", "usx-in-page-nav", className),
2515
2503
  "data-heading-elements": headingElements,
2516
2504
  "data-main-content-selector": resolvedSelector,
2517
2505
  "data-title-heading-level": titleHeadingLevel,
@@ -2527,7 +2515,7 @@ function InPageNav({
2527
2515
  "div",
2528
2516
  {
2529
2517
  id: contentId,
2530
- className: classNames("usx-in-page-nav__content", "usa-prose", contentClassName),
2518
+ className: ClassNames("usx-in-page-nav__content", "usa-prose", contentClassName),
2531
2519
  ...children ? {} : { dangerouslySetInnerHTML: { __html: content } },
2532
2520
  children: children || null
2533
2521
  }
@@ -2535,12 +2523,12 @@ function InPageNav({
2535
2523
  ] });
2536
2524
  }
2537
2525
  function Indicator({ items = [], children = null, className = "", ...props }) {
2538
- const classes = classNames("usx-indicator", className);
2526
+ const classes = ClassNames("usx-indicator", className);
2539
2527
  return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
2540
2528
  items.map((item, index) => /* @__PURE__ */ jsx(
2541
2529
  "span",
2542
2530
  {
2543
- className: classNames("usx-indicator-item", item.className),
2531
+ className: ClassNames("usx-indicator-item", item.className),
2544
2532
  style: item.style,
2545
2533
  children: item.label
2546
2534
  },
@@ -2577,11 +2565,11 @@ function MenuLanguageSelector({
2577
2565
  className,
2578
2566
  navAriaLabel
2579
2567
  }) {
2580
- const containerClasses = classNames(
2568
+ const containerClasses = ClassNames(
2581
2569
  "usa-language-container",
2582
2570
  small && "usa-language--small"
2583
2571
  );
2584
- const buttonClasses = classNames(
2572
+ const buttonClasses = ClassNames(
2585
2573
  "usa-button",
2586
2574
  "usx-button",
2587
2575
  unstyled ? "usa-button--unstyled" : "usa-button--primary",
@@ -2625,7 +2613,7 @@ function LanguageSelector({
2625
2613
  ...props
2626
2614
  }) {
2627
2615
  const resolvedVariant = variant || (languages.length > 2 ? "menu" : "two");
2628
- const classes = classNames("usx-language-selector", className);
2616
+ const classes = ClassNames("usx-language-selector", className);
2629
2617
  if (!languages || languages.length === 0) {
2630
2618
  return /* @__PURE__ */ jsx("div", { className: classes, children: "LanguageSelector" });
2631
2619
  }
@@ -2658,7 +2646,7 @@ function LanguageSelector({
2658
2646
  );
2659
2647
  }
2660
2648
  function SingleColumnLayout({ children, expandButton = null, className = "", ...props }) {
2661
- const classes = ["usx-layout__single-column", className].filter(Boolean).join(" ");
2649
+ const classes = ClassNames("usx-layout__single-column", className);
2662
2650
  return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
2663
2651
  expandButton,
2664
2652
  children
@@ -2675,24 +2663,24 @@ function GridLayout({
2675
2663
  ...props
2676
2664
  }) {
2677
2665
  const contentModifier = rightSidebar && !leftSidebar ? "left" : leftSidebar && !rightSidebar ? "right" : null;
2678
- const contentClasses = classNames(
2666
+ const contentClasses = ClassNames(
2679
2667
  "usx-layout__content",
2680
2668
  {
2681
2669
  "usx-layout__content--left": contentModifier === "left",
2682
2670
  "usx-layout__content--right": contentModifier === "right"
2683
2671
  }
2684
2672
  );
2685
- const containerClasses = classNames(
2673
+ const containerClasses = ClassNames(
2686
2674
  "usx-layout__grid-container",
2687
2675
  className
2688
2676
  );
2689
- const leftSidebarClasses = classNames(
2677
+ const leftSidebarClasses = ClassNames(
2690
2678
  "usx-layout__sidebar--left",
2691
2679
  {
2692
2680
  "usx-layout__sidebar--expanded": expandLeftSidebar
2693
2681
  }
2694
2682
  );
2695
- const rightSidebarClasses = classNames(
2683
+ const rightSidebarClasses = ClassNames(
2696
2684
  "usx-layout__sidebar--right",
2697
2685
  {
2698
2686
  "usx-layout__sidebar--expanded": expandRightSidebar
@@ -2720,7 +2708,7 @@ function Layout({
2720
2708
  ...props
2721
2709
  }) {
2722
2710
  const [expanded, setExpanded] = useState(false);
2723
- const classes = classNames(
2711
+ const classes = ClassNames(
2724
2712
  "usx-layout",
2725
2713
  { "usx-expanded": expandable && expanded },
2726
2714
  className
@@ -2768,7 +2756,7 @@ function renderItems(items = [], parentOptions = {}) {
2768
2756
  const childUnstyled = objectItem && typeof item.unstyled === "boolean" ? item.unstyled : parentOptions.unstyled;
2769
2757
  const childClassName = objectItem && typeof item.className === "string" ? item.className : "";
2770
2758
  const ChildTag = childOrdered ? "ol" : "ul";
2771
- const childClasses = classNames(
2759
+ const childClasses = ClassNames(
2772
2760
  "usa-list",
2773
2761
  "usx-list",
2774
2762
  childUnstyled && "usa-list--unstyled",
@@ -2781,7 +2769,7 @@ function renderItems(items = [], parentOptions = {}) {
2781
2769
  });
2782
2770
  }
2783
2771
  function List({ items = [], ordered = false, unstyled = false, className = "", ...props }) {
2784
- const classes = classNames(
2772
+ const classes = ClassNames(
2785
2773
  "usa-list",
2786
2774
  "usx-list",
2787
2775
  unstyled && "usa-list--unstyled",
@@ -2814,7 +2802,7 @@ function Select({
2814
2802
  const selectClasses = "usa-select usx-select";
2815
2803
  const selectErrorClasses = "usa-input--error";
2816
2804
  const selectSuccessClasses = "usa-input--success";
2817
- const combinedSelectClasses = classNames(
2805
+ const combinedSelectClasses = ClassNames(
2818
2806
  selectClasses,
2819
2807
  hasError && selectErrorClasses,
2820
2808
  hasSuccess && selectSuccessClasses,
@@ -2978,7 +2966,7 @@ function MiscBanner({
2978
2966
  }) {
2979
2967
  const menuId = useId();
2980
2968
  const toggleId = useId();
2981
- const classes = ["usx-misc-banner", `bg-${tone}`, className].filter(Boolean).join(" ");
2969
+ const classes = ClassNames("usx-misc-banner", `bg-${tone}`, className);
2982
2970
  const mobileLinks = [];
2983
2971
  const hasLearnMoreLink = showLearnMore && Boolean(casualLinkText);
2984
2972
  const hasReturnLink = showReturnLink && Boolean(importantLinkText);
@@ -3065,7 +3053,7 @@ function Modal({
3065
3053
  children,
3066
3054
  ...props
3067
3055
  }) {
3068
- const classes = classNames("usa-modal", "usx-modal", {
3056
+ const classes = ClassNames("usa-modal", "usx-modal", {
3069
3057
  "usa-modal--lg": size === "lg",
3070
3058
  "usx-modal--lg-collapsed": size === "lg-collapsed"
3071
3059
  }, className);
@@ -3108,7 +3096,7 @@ function Page({
3108
3096
  className = "",
3109
3097
  ...props
3110
3098
  }) {
3111
- const classes = ["usx-page", className].filter(Boolean).join(" ");
3099
+ const classes = ClassNames("usx-page", className);
3112
3100
  const pageContent = children || content;
3113
3101
  const Element = element;
3114
3102
  return /* @__PURE__ */ jsxs(Element, { id, className: classes, ...props, children: [
@@ -3197,7 +3185,7 @@ function PaginationNavigation({
3197
3185
  lastClickTime.current = e.timeStamp;
3198
3186
  if (!isLastPage) onPageChange((prev) => unbounded ? prev + 1 : Math.min(prev + 1, totalPages));
3199
3187
  };
3200
- const navClasses = classNames(
3188
+ const navClasses = ClassNames(
3201
3189
  "usa-pagination",
3202
3190
  "usx-pagination__nav",
3203
3191
  { "usx-pagination__arrows-only": arrowsOnly },
@@ -3207,7 +3195,7 @@ function PaginationNavigation({
3207
3195
  /* @__PURE__ */ jsx(
3208
3196
  "li",
3209
3197
  {
3210
- className: classNames(
3198
+ className: ClassNames(
3211
3199
  "usa-pagination__item",
3212
3200
  "usa-pagination__arrow"
3213
3201
  ),
@@ -3215,7 +3203,7 @@ function PaginationNavigation({
3215
3203
  "a",
3216
3204
  {
3217
3205
  href: "#",
3218
- className: classNames(
3206
+ className: ClassNames(
3219
3207
  "usa-pagination__link",
3220
3208
  "usa-pagination__previous-page",
3221
3209
  isFirstPage && "display-none",
@@ -3230,7 +3218,7 @@ function PaginationNavigation({
3230
3218
  /* @__PURE__ */ jsx(
3231
3219
  "span",
3232
3220
  {
3233
- className: classNames(
3221
+ className: ClassNames(
3234
3222
  "usa-pagination__link-text",
3235
3223
  hideLinkText && "usa-sr-only"
3236
3224
  ),
@@ -3259,7 +3247,7 @@ function PaginationNavigation({
3259
3247
  "a",
3260
3248
  {
3261
3249
  href: "#",
3262
- className: classNames(
3250
+ className: ClassNames(
3263
3251
  "usa-pagination__button",
3264
3252
  isCurrent && "usa-current"
3265
3253
  ),
@@ -3273,7 +3261,7 @@ function PaginationNavigation({
3273
3261
  /* @__PURE__ */ jsx(
3274
3262
  "li",
3275
3263
  {
3276
- className: classNames(
3264
+ className: ClassNames(
3277
3265
  "usa-pagination__item",
3278
3266
  "usa-pagination__arrow"
3279
3267
  ),
@@ -3281,7 +3269,7 @@ function PaginationNavigation({
3281
3269
  "a",
3282
3270
  {
3283
3271
  href: "#",
3284
- className: classNames(
3272
+ className: ClassNames(
3285
3273
  "usa-pagination__link",
3286
3274
  "usa-pagination__next-page",
3287
3275
  isLastPage && "display-none",
@@ -3295,7 +3283,7 @@ function PaginationNavigation({
3295
3283
  /* @__PURE__ */ jsx(
3296
3284
  "span",
3297
3285
  {
3298
- className: classNames(
3286
+ className: ClassNames(
3299
3287
  "usa-pagination__link-text",
3300
3288
  hideLinkText && "usa-sr-only"
3301
3289
  ),
@@ -3318,7 +3306,7 @@ function PaginationStepOptions({
3318
3306
  id = "pagination-step-options",
3319
3307
  className = ""
3320
3308
  }) {
3321
- const classes = classNames(
3309
+ const classes = ClassNames(
3322
3310
  "usx-pagination__step-options",
3323
3311
  className
3324
3312
  );
@@ -3346,7 +3334,7 @@ function PaginationSummary({
3346
3334
  }) {
3347
3335
  const firstItem = (currentPage - 1) * pageSize + 1;
3348
3336
  const lastItem = Math.min(currentPage * pageSize, totalItems);
3349
- const classes = classNames(
3337
+ const classes = ClassNames(
3350
3338
  "usa-label",
3351
3339
  "usx-label",
3352
3340
  "usx-pagination__summary",
@@ -3372,7 +3360,7 @@ function PaginationContainer({
3372
3360
  className = "",
3373
3361
  ...props
3374
3362
  }) {
3375
- const classes = ["usx-pagination__container", className].filter(Boolean).join(" ");
3363
+ const classes = ClassNames("usx-pagination__container", className);
3376
3364
  return /* @__PURE__ */ jsxs("div", { className: classes, ...props, children: [
3377
3365
  summary && /* @__PURE__ */ jsx("div", { className: "usx-pagination__container-summary", children: summary }),
3378
3366
  (stepOptions || navigation) && /* @__PURE__ */ jsxs("div", { className: "usx-pagination__container-end", children: [
@@ -3418,7 +3406,7 @@ function Pagination({
3418
3406
  onPageSizeChange == null ? void 0 : onPageSizeChange(size, newPage);
3419
3407
  onPageChange == null ? void 0 : onPageChange(newPage, size);
3420
3408
  };
3421
- const classes = ["usx-pagination", className].filter(Boolean).join(" ");
3409
+ const classes = ClassNames("usx-pagination", className);
3422
3410
  return /* @__PURE__ */ jsx("div", { className: classes, children: /* @__PURE__ */ jsx(
3423
3411
  PaginationContainer,
3424
3412
  {
@@ -3462,15 +3450,49 @@ function renderContent(content) {
3462
3450
  return content;
3463
3451
  }
3464
3452
  const ProcessList = ({ items = [], className = "", ...props }) => {
3465
- const classes = classNames("usa-process-list", "usx-process-list", className);
3453
+ const classes = ClassNames("usa-process-list", "usx-process-list", className);
3466
3454
  return /* @__PURE__ */ jsx("ol", { className: classes, ...props, children: items.map((item, index) => {
3467
3455
  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))
3456
+ return /* @__PURE__ */ jsxs("li", { className: ClassNames("usa-process-list__item", item.className), children: [
3457
+ /* @__PURE__ */ jsx(HeadingTag, { className: ClassNames("usa-process-list__heading", item.headingClassName), children: item.heading }),
3458
+ item.body && (typeof item.body === "string" || item.bodyClassName ? /* @__PURE__ */ jsx("p", { className: ClassNames(item.bodyClassName), children: renderContent(item.body) }) : renderContent(item.body))
3471
3459
  ] }, index);
3472
3460
  }) });
3473
3461
  };
3462
+ function Quote({
3463
+ calloutProps,
3464
+ attributionProps,
3465
+ children,
3466
+ content,
3467
+ sourceLinkProps,
3468
+ sourceTitle,
3469
+ className,
3470
+ blockquoteClassName,
3471
+ ...props
3472
+ }) {
3473
+ const isVertical = (calloutProps == null ? void 0 : calloutProps.orientation) === "vertical";
3474
+ return /* @__PURE__ */ jsxs("div", { className: ClassNames("usx-quote", isVertical && "usx-quote--vertical", className), ...props, children: [
3475
+ !isVertical && /* @__PURE__ */ jsx(Icon, { name: "format_quote", size: 4, className: "usx-quote__icon" }),
3476
+ /* @__PURE__ */ jsx(Callout, { ...calloutProps, element: "div", children: /* @__PURE__ */ jsxs("figure", { className: "usx-quote__body", children: [
3477
+ /* @__PURE__ */ jsxs(
3478
+ "blockquote",
3479
+ {
3480
+ className: ClassNames("usx-quote__content", blockquoteClassName),
3481
+ cite: sourceLinkProps == null ? void 0 : sourceLinkProps.href,
3482
+ children: [
3483
+ isVertical && "❝",
3484
+ children ?? content,
3485
+ isVertical && "❞"
3486
+ ]
3487
+ }
3488
+ ),
3489
+ (attributionProps || sourceTitle) && /* @__PURE__ */ jsxs("figcaption", { className: "usx-quote__attribution", children: [
3490
+ attributionProps && /* @__PURE__ */ jsx(Attribution, { ...attributionProps }),
3491
+ sourceTitle && /* @__PURE__ */ jsx("cite", { children: sourceLinkProps ? /* @__PURE__ */ jsx(Link, { ...sourceLinkProps, children: sourceTitle }) : sourceTitle })
3492
+ ] })
3493
+ ] }) })
3494
+ ] });
3495
+ }
3474
3496
  const RadioButtons = ({
3475
3497
  tile = false,
3476
3498
  small = false,
@@ -3484,13 +3506,13 @@ const RadioButtons = ({
3484
3506
  className = "",
3485
3507
  ...props
3486
3508
  }) => {
3487
- const classes = classNames(
3509
+ const classes = ClassNames(
3488
3510
  "usa-radio",
3489
3511
  "usx-radio",
3490
3512
  { "usx-radio--small": small },
3491
3513
  className
3492
3514
  );
3493
- const inputClasses = classNames(
3515
+ const inputClasses = ClassNames(
3494
3516
  "usa-radio__input",
3495
3517
  { "usa-radio__input--tile": tile }
3496
3518
  );
@@ -3545,7 +3567,7 @@ function RangeSlider({
3545
3567
  /* @__PURE__ */ jsx(
3546
3568
  "input",
3547
3569
  {
3548
- className: ["usa-range", "usx-range-slider", className].filter(Boolean).join(" "),
3570
+ className: ClassNames("usa-range", "usx-range-slider", className),
3549
3571
  id,
3550
3572
  type: "range",
3551
3573
  name: name || id,
@@ -3567,15 +3589,17 @@ function RangeSlider({
3567
3589
  }
3568
3590
  const Section = ({
3569
3591
  title = "",
3592
+ headingLevel = "h2",
3570
3593
  children = null,
3571
3594
  content = null,
3572
3595
  className = "",
3573
3596
  ...props
3574
3597
  }) => {
3575
- const classes = ["usx-section", className].filter(Boolean).join(" ");
3598
+ const classes = ClassNames("usx-section", className);
3576
3599
  const sectionContent = children || content;
3600
+ const Heading = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(headingLevel) ? headingLevel : "h2";
3577
3601
  return /* @__PURE__ */ jsxs("section", { className: classes, ...props, children: [
3578
- title ? /* @__PURE__ */ jsx("h2", { className: "usx-section__title", children: title }) : null,
3602
+ title ? /* @__PURE__ */ jsx(Heading, { className: "usx-section__title", children: title }) : null,
3579
3603
  /* @__PURE__ */ jsx("div", { className: "usx-section__content", children: sectionContent })
3580
3604
  ] });
3581
3605
  };
@@ -3602,7 +3626,7 @@ const SideNav = ({
3602
3626
  className = "",
3603
3627
  ...props
3604
3628
  }) => {
3605
- const classes = classNames(
3629
+ const classes = ClassNames(
3606
3630
  "usa-sidenav",
3607
3631
  "usx-sidenav",
3608
3632
  {
@@ -3628,7 +3652,7 @@ const SiteAlert = ({
3628
3652
  }) => {
3629
3653
  const normalizedVariant = ["info", "emergency", "maintenance", "maintenance-warning"].includes(variant) ? variant : "info";
3630
3654
  const alertVariant = normalizedVariant === "maintenance" ? "error" : normalizedVariant === "maintenance-warning" ? "warning" : normalizedVariant;
3631
- const classes = [
3655
+ const classes = ClassNames(
3632
3656
  "usa-site-alert",
3633
3657
  "usx-site-alert",
3634
3658
  (normalizedVariant === "info" || normalizedVariant === "emergency") && `usa-site-alert--${normalizedVariant}`,
@@ -3637,8 +3661,8 @@ const SiteAlert = ({
3637
3661
  noIcon && "usa-site-alert--no-icon",
3638
3662
  onDismiss && "usa-site-alert--dismissible",
3639
3663
  className
3640
- ].filter(Boolean).join(" ");
3641
- const alertClasses = [
3664
+ );
3665
+ const alertClasses = ClassNames(
3642
3666
  "usa-alert",
3643
3667
  `usa-alert--${alertVariant}`,
3644
3668
  "usx-alert",
@@ -3647,7 +3671,7 @@ const SiteAlert = ({
3647
3671
  slim && "usx-alert--slim",
3648
3672
  noIcon && "usa-alert--no-icon",
3649
3673
  noIcon && "usx-alert--no-icon"
3650
- ].filter(Boolean).join(" ");
3674
+ );
3651
3675
  return /* @__PURE__ */ jsx(
3652
3676
  "section",
3653
3677
  {
@@ -3701,7 +3725,7 @@ const Skipnav = ({
3701
3725
  className = "",
3702
3726
  ...props
3703
3727
  }) => {
3704
- const classes = classNames("usa-skipnav", className);
3728
+ const classes = ClassNames("usa-skipnav", className);
3705
3729
  const finalHref = normalizeHref({ href, target });
3706
3730
  return /* @__PURE__ */ jsx("a", { className: classes, href: finalHref, ...props, children: children || content || "Skip to main content" });
3707
3731
  };
@@ -3712,7 +3736,7 @@ const Status = ({
3712
3736
  className = "",
3713
3737
  ...props
3714
3738
  }) => {
3715
- const classes = classNames(
3739
+ const classes = ClassNames(
3716
3740
  "usx-status",
3717
3741
  color && `text-${color}`,
3718
3742
  size && `usx-status--${size}`,
@@ -3731,7 +3755,7 @@ const StepIndicator = ({
3731
3755
  }) => {
3732
3756
  var _a;
3733
3757
  const step = Number(currentStep);
3734
- const classes = classNames(
3758
+ const classes = ClassNames(
3735
3759
  "usa-step-indicator",
3736
3760
  "usx-step-indicator",
3737
3761
  variant && `usa-step-indicator--${variant}`,
@@ -3750,7 +3774,7 @@ const StepIndicator = ({
3750
3774
  return /* @__PURE__ */ jsx(
3751
3775
  "li",
3752
3776
  {
3753
- className: classNames(
3777
+ className: ClassNames(
3754
3778
  "usa-step-indicator__segment",
3755
3779
  status === "complete" && "usa-step-indicator__segment--complete",
3756
3780
  status === "current" && "usa-step-indicator__segment--current"
@@ -3788,7 +3812,7 @@ const SummaryBox = ({
3788
3812
  className = "",
3789
3813
  ...props
3790
3814
  }) => {
3791
- const classes = classNames("usa-summary-box", "usx-summary-box", className);
3815
+ const classes = ClassNames("usa-summary-box", "usx-summary-box", className);
3792
3816
  const headingId = id;
3793
3817
  const bodyContent = children ?? content;
3794
3818
  return /* @__PURE__ */ jsx(
@@ -3818,9 +3842,9 @@ const Swap = ({
3818
3842
  ...props
3819
3843
  }) => {
3820
3844
  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(" ");
3845
+ const classes = ClassNames("usx-swap", variantClass, className);
3846
+ const onClasses = ClassNames("usx-swap-on", onClassName);
3847
+ const offClasses = ClassNames("usx-swap-off", offClassName);
3824
3848
  const content = children || /* @__PURE__ */ jsxs(Fragment, { children: [
3825
3849
  includeInput ? /* @__PURE__ */ jsx("input", { type: "checkbox", autoComplete: "off", ...inputProps }) : null,
3826
3850
  /* @__PURE__ */ jsx("span", { className: onClasses, children: onContent }),
@@ -3842,7 +3866,7 @@ const Switch = ({
3842
3866
  indeterminate = false,
3843
3867
  ...props
3844
3868
  }) => {
3845
- const classes = classNames(
3869
+ const classes = ClassNames(
3846
3870
  "usx-switch",
3847
3871
  size && `usx-toggle-${size}`,
3848
3872
  variant && `text-${variant}`,
@@ -3950,7 +3974,7 @@ function SortIcon({ direction }) {
3950
3974
  function TableHead({ className = "", children, ...props }) {
3951
3975
  const { id, columns, sortState, handleSort, selectionMode, selectionPosition, handleSelectAll, allowSelectAll, rowDetails } = useTableContext();
3952
3976
  if (children) {
3953
- return /* @__PURE__ */ jsx("thead", { className: classNames("usx-table__head", className), ...props, children });
3977
+ return /* @__PURE__ */ jsx("thead", { className: ClassNames("usx-table__head", className), ...props, children });
3954
3978
  }
3955
3979
  const visibleCols = columns.filter((c) => !c.hidden);
3956
3980
  const totalDepth = getDepth(visibleCols);
@@ -3958,7 +3982,7 @@ function TableHead({ className = "", children, ...props }) {
3958
3982
  const hasRowDetails = !!rowDetails;
3959
3983
  const hasSelection = !!selectionMode;
3960
3984
  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: [
3985
+ return /* @__PURE__ */ jsxs("thead", { className: ClassNames("usx-table__head", className), ...props, children: [
3962
3986
  /* @__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
3987
  headerRows.map((row, rowIndex) => /* @__PURE__ */ jsxs("tr", { className: "usx-table__head-row", children: [
3964
3988
  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 +3990,7 @@ function TableHead({ className = "", children, ...props }) {
3966
3990
  row.map(({ col, rowSpan, colSpan }) => {
3967
3991
  const isSortable = col.sortable === true;
3968
3992
  const sortDir = sortState.key === col.key ? sortState.direction : null;
3969
- const cellClasses = classNames(
3993
+ const cellClasses = ClassNames(
3970
3994
  "usx-table__cell",
3971
3995
  col.headerAlign && `usx-table__cell--align-${col.headerAlign}`,
3972
3996
  !col.headerAlign && col.align && `usx-table__cell--align-${col.align}`,
@@ -3987,7 +4011,7 @@ function TableHead({ className = "", children, ...props }) {
3987
4011
  "button",
3988
4012
  {
3989
4013
  type: "button",
3990
- className: classNames("usx-table__sort-button", sortDir && "usx-table__sort-button--active"),
4014
+ className: ClassNames("usx-table__sort-button", sortDir && "usx-table__sort-button--active"),
3991
4015
  onClick: () => handleSort(col.key),
3992
4016
  children: [
3993
4017
  col.header,
@@ -4014,7 +4038,7 @@ function TableRow({
4014
4038
  }) {
4015
4039
  const { onClickRow } = useTableContext();
4016
4040
  const isClickable = !!(onClick || onClickRow);
4017
- const classes = classNames(
4041
+ const classes = ClassNames(
4018
4042
  "usx-table__row",
4019
4043
  selected && "usx-table__row--selected",
4020
4044
  disabled && "usx-table__row--disabled",
@@ -4060,7 +4084,7 @@ function TableGroup({
4060
4084
  }
4061
4085
  };
4062
4086
  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(
4087
+ /* @__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(
4064
4088
  "button",
4065
4089
  {
4066
4090
  type: "button",
@@ -4163,7 +4187,7 @@ function DataRow({ row, rowIndex }) {
4163
4187
  "button",
4164
4188
  {
4165
4189
  type: "button",
4166
- className: classNames(
4190
+ className: ClassNames(
4167
4191
  "usa-button usa-button--unstyled",
4168
4192
  "usx-table__detail-toggle",
4169
4193
  "width-full",
@@ -4176,7 +4200,7 @@ function DataRow({ row, rowIndex }) {
4176
4200
  ) }, "__detail-toggle__") : null;
4177
4201
  const dataCells = visibleCols.map((col) => {
4178
4202
  const Tag2 = col.primary ? "th" : "td";
4179
- const cellClasses = classNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`, col.className);
4203
+ const cellClasses = ClassNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`, col.className);
4180
4204
  const dataLabel = responsive === "stack" || responsive === "stack-header" ? getDataLabel(col) : void 0;
4181
4205
  const content = col.render ? col.render(row, rowIndex) : row[col.key];
4182
4206
  return /* @__PURE__ */ jsx(
@@ -4203,7 +4227,7 @@ function DataRow({ row, rowIndex }) {
4203
4227
  }
4204
4228
  function TableBody({ className = "", children, ...props }) {
4205
4229
  const { data, primaryKey, groupBy, groups, placeholder, totalCols, onMore, loading } = useTableContext();
4206
- const bodyClass = classNames("usx-table__body", className);
4230
+ const bodyClass = ClassNames("usx-table__body", className);
4207
4231
  if (children) {
4208
4232
  return /* @__PURE__ */ jsx("tbody", { className: bodyClass, ...props, children });
4209
4233
  }
@@ -4247,12 +4271,12 @@ function aggregate(data, key, type) {
4247
4271
  function TableFoot({ className = "", children, ...props }) {
4248
4272
  const { columns, data, selectionMode, rowDetails } = useTableContext();
4249
4273
  if (children) {
4250
- return /* @__PURE__ */ jsx("tfoot", { className: classNames("usx-table__foot", className), ...props, children });
4274
+ return /* @__PURE__ */ jsx("tfoot", { className: ClassNames("usx-table__foot", className), ...props, children });
4251
4275
  }
4252
4276
  const visibleCols = columns.filter((c) => !c.hidden);
4253
4277
  const hasFooter = visibleCols.some((c) => c.footer !== void 0 || c.aggregate);
4254
4278
  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: [
4279
+ return /* @__PURE__ */ jsx("tfoot", { className: ClassNames("usx-table__foot", className), ...props, children: /* @__PURE__ */ jsxs("tr", { className: "usx-table__foot-row", children: [
4256
4280
  !!rowDetails && /* @__PURE__ */ jsx("td", { className: "usx-table__cell" }),
4257
4281
  !!selectionMode && /* @__PURE__ */ jsx("td", { className: "usx-table__cell usx-table__cell--selection" }),
4258
4282
  visibleCols.map((col) => {
@@ -4262,7 +4286,7 @@ function TableFoot({ className = "", children, ...props }) {
4262
4286
  } else if (col.aggregate) {
4263
4287
  content = aggregate(data, col.key, col.aggregate);
4264
4288
  }
4265
- return /* @__PURE__ */ jsx("td", { className: classNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`), children: content }, col.key);
4289
+ return /* @__PURE__ */ jsx("td", { className: ClassNames("usx-table__cell", col.align && `usx-table__cell--align-${col.align}`), children: content }, col.key);
4266
4290
  })
4267
4291
  ] }) });
4268
4292
  }
@@ -4279,7 +4303,7 @@ function TableCell({
4279
4303
  ...props
4280
4304
  }) {
4281
4305
  const resolvedAlign = Tag2 === "th" ? headerAlign || align : align;
4282
- const classes = classNames("usx-table__cell", resolvedAlign && `usx-table__cell--align-${resolvedAlign}`, className);
4306
+ const classes = ClassNames("usx-table__cell", resolvedAlign && `usx-table__cell--align-${resolvedAlign}`, className);
4283
4307
  return /* @__PURE__ */ jsx(Tag2, { className: classes, colSpan, rowSpan, scope, "data-label": dataLabel, ...props, children });
4284
4308
  }
4285
4309
  function defaultCompareFn(a, b, key) {
@@ -4451,7 +4475,7 @@ function countLeafCols(columns) {
4451
4475
  }, 0);
4452
4476
  }
4453
4477
  function Caption({ className = "", children, ...rest }) {
4454
- return /* @__PURE__ */ jsx("caption", { className: classNames("usx-table__caption", className), ...rest, children });
4478
+ return /* @__PURE__ */ jsx("caption", { className: ClassNames("usx-table__caption", className), ...rest, children });
4455
4479
  }
4456
4480
  function Table({
4457
4481
  id: idProp,
@@ -4591,7 +4615,7 @@ function Table({
4591
4615
  loading
4592
4616
  ]
4593
4617
  );
4594
- const tableClasses = classNames(
4618
+ const tableClasses = ClassNames(
4595
4619
  "usa-table",
4596
4620
  striped && "usa-table--striped",
4597
4621
  borderless && "usa-table--borderless",
@@ -4661,7 +4685,7 @@ const TagGroup = ({
4661
4685
  className = "",
4662
4686
  ...props
4663
4687
  }) => {
4664
- const classes = classNames(
4688
+ const classes = ClassNames(
4665
4689
  "usx-tag-group",
4666
4690
  className
4667
4691
  );
@@ -4669,7 +4693,7 @@ const TagGroup = ({
4669
4693
  return /* @__PURE__ */ jsx("div", { className: classes, ...props, children: content });
4670
4694
  };
4671
4695
  function TaskList({ tasks = [], className }) {
4672
- return /* @__PURE__ */ jsx("ul", { className: classNames("usx-task-list", className), children: tasks == null ? void 0 : tasks.map((task, i) => {
4696
+ return /* @__PURE__ */ jsx("ul", { className: ClassNames("usx-task-list", className), children: tasks == null ? void 0 : tasks.map((task, i) => {
4673
4697
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Clickable, { href: task.href, className: "usx-task-list__item", children: [
4674
4698
  task.hint ? /* @__PURE__ */ jsxs("div", { className: "display-flex flex-column", children: [
4675
4699
  /* @__PURE__ */ jsx(Clickable.Link, { className: "usx-task-list__link", children: task.name }),
@@ -4701,7 +4725,7 @@ function ThemePicker({
4701
4725
  onChange == null ? void 0 : onChange(next);
4702
4726
  };
4703
4727
  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);
4728
+ const classes = ClassNames("usx-theme-picker", { "usx-theme-picker--open": open }, className);
4705
4729
  const themeOptions = themes.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value));
4706
4730
  return /* @__PURE__ */ jsx("div", { className: classes, children: open ? /* @__PURE__ */ jsxs("div", { className: "usx-theme-picker__panel", children: [
4707
4731
  /* @__PURE__ */ jsx(Label, { htmlFor: selectId, screenReaderOnly: true, children: label }),
@@ -4773,7 +4797,7 @@ function TimePicker({
4773
4797
  /* @__PURE__ */ jsx(
4774
4798
  "div",
4775
4799
  {
4776
- className: classNames(
4800
+ className: ClassNames(
4777
4801
  "usa-time-picker",
4778
4802
  "usx-time-picker",
4779
4803
  { "usx-combo-box--error": !!error },
@@ -4802,53 +4826,83 @@ function TimePicker({
4802
4826
  ] });
4803
4827
  return formGroup ? /* @__PURE__ */ jsx(FormGroup, { error: !!error, children: content }) : content;
4804
4828
  }
4805
- const Toggle = ({
4829
+ function Toggle({
4806
4830
  options = [],
4807
4831
  value,
4808
4832
  defaultValue,
4809
4833
  onChange,
4810
4834
  name,
4811
4835
  id,
4836
+ ariaLabel,
4812
4837
  variant = "text",
4813
4838
  disabled = false,
4814
- className = "",
4839
+ required = false,
4840
+ className,
4841
+ "aria-label": nativeAriaLabel,
4842
+ "aria-labelledby": labelledBy,
4815
4843
  ...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
- }
4844
+ }) {
4845
+ const instanceId = useId();
4846
+ const groupId = id || `toggle-${instanceId}`;
4847
+ const groupName = name || groupId;
4848
+ const controlled = value !== void 0;
4849
+ return /* @__PURE__ */ jsx(
4850
+ "ul",
4851
+ {
4852
+ ...props,
4853
+ id: groupId,
4854
+ className: ClassNames(
4855
+ "usx-toggle",
4856
+ "usa-button-group",
4857
+ variant === "icon" && "usx-toggle--icon",
4858
+ className
4847
4859
  ),
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
- };
4860
+ role: "radiogroup",
4861
+ "aria-labelledby": labelledBy,
4862
+ "aria-label": labelledBy ? void 0 : ariaLabel || nativeAriaLabel || name || "Choose an option",
4863
+ "aria-disabled": disabled || void 0,
4864
+ "aria-required": required || void 0,
4865
+ children: options.map((option, index) => {
4866
+ const opt = typeof option === "object" ? option : { value: option, label: option };
4867
+ const optionValue = opt.value ?? (typeof opt.label === "string" || typeof opt.label === "number" ? opt.label : index);
4868
+ const optionLabel = opt.label ?? String(optionValue);
4869
+ const inputId = `${groupId}-option-${index}`;
4870
+ const iconOnly = variant === "icon" && Boolean(opt.icon);
4871
+ return /* @__PURE__ */ jsxs("li", { className: "usa-button-group__item", role: "presentation", children: [
4872
+ /* @__PURE__ */ jsx(
4873
+ "input",
4874
+ {
4875
+ className: "usx-toggle__input",
4876
+ type: "radio",
4877
+ id: inputId,
4878
+ name: groupName,
4879
+ value: optionValue,
4880
+ ...controlled ? { checked: value === optionValue } : { defaultChecked: defaultValue === optionValue },
4881
+ disabled: disabled || opt.disabled,
4882
+ required,
4883
+ onChange: (event) => {
4884
+ if (event.target.checked) onChange == null ? void 0 : onChange(optionValue);
4885
+ }
4886
+ }
4887
+ ),
4888
+ /* @__PURE__ */ jsxs(
4889
+ "label",
4890
+ {
4891
+ htmlFor: inputId,
4892
+ className: "usa-button usx-button usa-button--primary usx-toggle__button",
4893
+ "aria-disabled": disabled || opt.disabled || void 0,
4894
+ title: iconOnly && (typeof optionLabel === "string" || typeof optionLabel === "number") ? String(optionLabel) : void 0,
4895
+ children: [
4896
+ opt.icon && /* @__PURE__ */ jsx(Icon, { name: opt.icon, className: "usx-toggle__icon", "aria-hidden": "true" }),
4897
+ /* @__PURE__ */ jsx("span", { className: iconOnly ? "usa-sr-only" : void 0, children: optionLabel })
4898
+ ]
4899
+ }
4900
+ )
4901
+ ] }, inputId);
4902
+ })
4903
+ }
4904
+ );
4905
+ }
4852
4906
  const Villain = ({
4853
4907
  title = "",
4854
4908
  callout = "",
@@ -4858,7 +4912,7 @@ const Villain = ({
4858
4912
  className = "",
4859
4913
  ...props
4860
4914
  }) => {
4861
- const classes = ["usa-hero", className].filter(Boolean).join(" ");
4915
+ const classes = ClassNames("usa-hero", className);
4862
4916
  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: [
4863
4917
  /* @__PURE__ */ jsxs("h1", { className: "usa-hero__heading", children: [
4864
4918
  callout && /* @__PURE__ */ jsx("span", { className: "usa-hero__heading--alt", children: callout }),
@@ -4876,11 +4930,11 @@ export {
4876
4930
  AvatarGroup,
4877
4931
  BackToTop,
4878
4932
  Banner,
4879
- Block,
4880
4933
  Breadcrumb,
4881
4934
  Button,
4882
4935
  ButtonGroup,
4883
4936
  CalendarDate,
4937
+ Callout,
4884
4938
  Card,
4885
4939
  CardGroup,
4886
4940
  Carousel,
@@ -4924,6 +4978,7 @@ export {
4924
4978
  Pagination,
4925
4979
  ProcessList,
4926
4980
  Prose,
4981
+ Quote,
4927
4982
  RadioButtons,
4928
4983
  RangeSlider,
4929
4984
  Required,