@octoguide/mui-ui-toolkit 0.6.0 → 0.7.1

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.
package/dist/index.mjs CHANGED
@@ -503,9 +503,10 @@ function resolveThemeName() {
503
503
 
504
504
  // src/themes/createMuiTheme.ts
505
505
  import { createTheme, alpha, darken } from "@mui/material/styles";
506
- function createMuiTheme(tokens) {
506
+ function createMuiTheme(tokens, darkMode = false) {
507
507
  return createTheme({
508
508
  palette: {
509
+ mode: darkMode ? "dark" : "light",
509
510
  primary: {
510
511
  main: tokens.colors.primary,
511
512
  dark: tokens.colors.primaryDark,
@@ -523,9 +524,9 @@ function createMuiTheme(tokens) {
523
524
  error: { main: tokens.colors.error },
524
525
  info: { main: tokens.colors.info },
525
526
  background: {
526
- default: tokens.colors.background,
527
- paper: tokens.colors.backgroundPaper,
528
- subtle: tokens.colors.backgroundSubtle
527
+ default: darkMode ? "#0d0d0d" : tokens.colors.background,
528
+ paper: darkMode ? "#1a1a1a" : tokens.colors.backgroundPaper,
529
+ subtle: darkMode ? "#2a2a2a" : tokens.colors.backgroundSubtle
529
530
  },
530
531
  border: tokens.colors.border,
531
532
  text: {
@@ -684,14 +685,14 @@ function createMuiTheme(tokens) {
684
685
  },
685
686
  MuiTextField: {
686
687
  styleOverrides: {
687
- root: {
688
+ root: ({ theme }) => ({
688
689
  "& .MuiOutlinedInput-root": {
689
690
  borderRadius: tokens.components.input.borderRadius,
690
- backgroundColor: tokens.components.input.background,
691
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.paper : tokens.components.input.background,
691
692
  minHeight: tokens.components.input.minHeight,
692
693
  "& fieldset": {
693
694
  borderWidth: tokens.components.input.borderWidth,
694
- borderColor: tokens.colors.border
695
+ borderColor: theme.palette.mode === "dark" ? theme.palette.divider : tokens.colors.border
695
696
  },
696
697
  "&:hover fieldset": {
697
698
  borderColor: tokens.colors.primary
@@ -701,7 +702,7 @@ function createMuiTheme(tokens) {
701
702
  borderColor: tokens.colors.borderFocus
702
703
  },
703
704
  "&.Mui-disabled": {
704
- backgroundColor: tokens.components.input.backgroundDisabled
705
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.action.disabledBackground : tokens.components.input.backgroundDisabled
705
706
  }
706
707
  },
707
708
  "& .MuiInputLabel-root": {
@@ -710,17 +711,17 @@ function createMuiTheme(tokens) {
710
711
  "& .MuiFormHelperText-root": {
711
712
  fontSize: tokens.components.input.helperFontSize
712
713
  }
713
- }
714
+ })
714
715
  }
715
716
  },
716
717
  MuiCard: {
717
718
  styleOverrides: {
718
- root: {
719
+ root: ({ theme }) => ({
719
720
  borderRadius: tokens.components.card.borderRadius,
720
- backgroundColor: tokens.components.card.background,
721
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.paper : tokens.components.card.background,
721
722
  boxShadow: tokens.shadows.sm,
722
- border: `${tokens.components.card.borderWidth} solid ${tokens.colors.divider}`
723
- }
723
+ border: `${tokens.components.card.borderWidth} solid ${theme.palette.divider}`
724
+ })
724
725
  }
725
726
  },
726
727
  MuiCardContent: {
@@ -804,11 +805,11 @@ function createMuiTheme(tokens) {
804
805
  },
805
806
  MuiDialog: {
806
807
  styleOverrides: {
807
- paper: {
808
+ paper: ({ theme }) => ({
808
809
  borderRadius: tokens.components.dialog.borderRadius,
809
- backgroundColor: tokens.components.dialog.background,
810
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.paper : tokens.components.dialog.background,
810
811
  maxWidth: tokens.components.dialog.maxWidth
811
- }
812
+ })
812
813
  }
813
814
  },
814
815
  MuiDialogContent: {
@@ -820,26 +821,27 @@ function createMuiTheme(tokens) {
820
821
  },
821
822
  MuiTableCell: {
822
823
  styleOverrides: {
823
- root: {
824
+ root: ({ theme }) => ({
824
825
  paddingLeft: tokens.components.table.cellPaddingX,
825
826
  paddingRight: tokens.components.table.cellPaddingX,
826
827
  paddingTop: tokens.components.table.cellPaddingY,
827
828
  paddingBottom: tokens.components.table.cellPaddingY,
828
- borderBottom: `${tokens.components.table.borderWidth} solid ${tokens.components.table.borderColor}`
829
- },
830
- head: {
829
+ borderBottom: `${tokens.components.table.borderWidth} solid ${theme.palette.mode === "dark" ? theme.palette.divider : tokens.components.table.borderColor}`
830
+ }),
831
+ head: ({ theme }) => ({
831
832
  fontWeight: tokens.components.table.headerFontWeight,
832
- backgroundColor: tokens.components.table.headerBackground
833
- }
833
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : tokens.components.table.headerBackground,
834
+ color: theme.palette.text.secondary
835
+ })
834
836
  }
835
837
  },
836
838
  MuiTableRow: {
837
839
  styleOverrides: {
838
- root: {
840
+ root: ({ theme }) => ({
839
841
  "&:hover": {
840
- backgroundColor: tokens.components.table.rowHoverBackground
842
+ backgroundColor: theme.palette.mode === "dark" ? theme.palette.action.hover : tokens.components.table.rowHoverBackground
841
843
  }
842
- }
844
+ })
843
845
  }
844
846
  },
845
847
  MuiAvatar: {
@@ -1088,11 +1090,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
1088
1090
  function ToolkitThemeProvider({
1089
1091
  theme,
1090
1092
  children,
1091
- injectCssBaseline = true
1093
+ injectCssBaseline = true,
1094
+ darkMode = false
1092
1095
  }) {
1093
1096
  const themeName = theme ?? resolveThemeName();
1094
1097
  const tokens = getThemeTokens(themeName);
1095
- const muiTheme = createMuiTheme(tokens);
1098
+ const muiTheme = createMuiTheme(tokens, darkMode);
1096
1099
  return /* @__PURE__ */ jsxs(MuiThemeProvider, { theme: muiTheme, children: [
1097
1100
  injectCssBaseline && /* @__PURE__ */ jsx(CssBaseline, {}),
1098
1101
  children
@@ -1671,13 +1674,81 @@ function Grid({ container, spacing, ...props }) {
1671
1674
  }
1672
1675
  Grid.displayName = "ToolkitGrid";
1673
1676
 
1677
+ // src/components/IconText/IconText.tsx
1678
+ import React4 from "react";
1679
+
1680
+ // src/components/IconText/IconText.styles.tsx
1681
+ import { styled as styled7 } from "@mui/material/styles";
1682
+ import { SvgIcon as SvgIcon4 } from "@mui/material";
1683
+ var StyledIconTextRoot = styled7("div")(
1684
+ ({ $inheritFontFamily }) => ({
1685
+ display: "flex",
1686
+ alignItems: "center",
1687
+ backgroundColor: "inherit",
1688
+ color: "inherit",
1689
+ fontSize: "inherit",
1690
+ fontWeight: "inherit",
1691
+ textAlign: "inherit",
1692
+ textTransform: "inherit",
1693
+ ...$inheritFontFamily && {
1694
+ fontFamily: "inherit",
1695
+ lineHeight: "inherit"
1696
+ }
1697
+ })
1698
+ );
1699
+ var StyledIconTextSymbol = styled7(SvgIcon4, {
1700
+ shouldForwardProp: (prop) => prop !== "$position"
1701
+ })(({ theme, $position }) => ({
1702
+ flexShrink: 0,
1703
+ marginRight: $position === "front" ? theme.spacing(1) : 0,
1704
+ marginLeft: $position === "end" ? theme.spacing(1) : 0
1705
+ }));
1706
+
1707
+ // src/components/IconText/IconText.tsx
1708
+ import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
1709
+ var IconText = React4.forwardRef(
1710
+ function IconText2({
1711
+ symbol,
1712
+ symbolPosition = "front",
1713
+ symbolProps,
1714
+ inheritFontFamily = false,
1715
+ children,
1716
+ ...rest
1717
+ }, ref) {
1718
+ const icon = /* @__PURE__ */ jsx13(
1719
+ StyledIconTextSymbol,
1720
+ {
1721
+ $position: symbolPosition,
1722
+ viewBox: symbol.viewBox ?? "0 0 24 24",
1723
+ "aria-hidden": "true",
1724
+ ...symbolProps,
1725
+ children: symbol.content && /* @__PURE__ */ jsx13("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
1726
+ }
1727
+ );
1728
+ return /* @__PURE__ */ jsxs3(
1729
+ StyledIconTextRoot,
1730
+ {
1731
+ ref,
1732
+ $inheritFontFamily: inheritFontFamily,
1733
+ ...getCleanProps(rest),
1734
+ children: [
1735
+ symbolPosition === "front" && icon,
1736
+ children,
1737
+ symbolPosition === "end" && icon
1738
+ ]
1739
+ }
1740
+ );
1741
+ }
1742
+ );
1743
+ IconText.displayName = "ToolkitIconText";
1744
+
1674
1745
  // src/components/InternalLinkItem/InternalLinkItem.tsx
1675
1746
  import ChevronRightIcon from "@mui/icons-material/ChevronRight";
1676
1747
 
1677
1748
  // src/components/InternalLinkItem/InternalLinkItem.styles.tsx
1678
1749
  import Box2 from "@mui/material/Box";
1679
- import { styled as styled7 } from "@mui/material/styles";
1680
- var StyledWrapper = styled7("div")(({ theme }) => ({
1750
+ import { styled as styled8 } from "@mui/material/styles";
1751
+ var StyledWrapper = styled8("div")(({ theme }) => ({
1681
1752
  "& > a, & > div": {
1682
1753
  textDecoration: "none",
1683
1754
  color: theme.tokens.colors.textPrimary,
@@ -1686,7 +1757,7 @@ var StyledWrapper = styled7("div")(({ theme }) => ({
1686
1757
  }
1687
1758
  }
1688
1759
  }));
1689
- var StyledListItemContainer = styled7(Box2)(({ theme }) => ({
1760
+ var StyledListItemContainer = styled8(Box2)(({ theme }) => ({
1690
1761
  width: "100%",
1691
1762
  minHeight: "66px",
1692
1763
  borderTop: `1px solid ${theme.tokens.colors.divider}`,
@@ -1729,19 +1800,19 @@ var StyledListItemContainer = styled7(Box2)(({ theme }) => ({
1729
1800
  outlineStyle: "solid"
1730
1801
  }
1731
1802
  }));
1732
- var StyledLeftIconWrapper = styled7("span")({
1803
+ var StyledLeftIconWrapper = styled8("span")({
1733
1804
  display: "flex",
1734
1805
  paddingLeft: "4px"
1735
1806
  });
1736
- var StyledRightIconWrapper = styled7("span")({
1807
+ var StyledRightIconWrapper = styled8("span")({
1737
1808
  display: "flex",
1738
1809
  paddingRight: "4px"
1739
1810
  });
1740
- var StyledLabelContainer = styled7("div")({
1811
+ var StyledLabelContainer = styled8("div")({
1741
1812
  flex: 1,
1742
1813
  padding: "12px 8px"
1743
1814
  });
1744
- var StyledLabel = styled7("p")(({ theme }) => ({
1815
+ var StyledLabel = styled8("p")(({ theme }) => ({
1745
1816
  fontFamily: theme.tokens.typography.fontFamilyBase,
1746
1817
  fontSize: theme.tokens.typography.fontSizeLg,
1747
1818
  lineHeight: "20px",
@@ -1749,7 +1820,7 @@ var StyledLabel = styled7("p")(({ theme }) => ({
1749
1820
  margin: 0,
1750
1821
  textDecoration: "none"
1751
1822
  }));
1752
- var StyledCaption = styled7("p")(({ theme }) => ({
1823
+ var StyledCaption = styled8("p")(({ theme }) => ({
1753
1824
  fontFamily: theme.tokens.typography.fontFamilyBase,
1754
1825
  color: theme.tokens.colors.textSecondary,
1755
1826
  fontSize: theme.tokens.typography.fontSizeLg,
@@ -1760,7 +1831,7 @@ var StyledCaption = styled7("p")(({ theme }) => ({
1760
1831
  }));
1761
1832
 
1762
1833
  // src/components/InternalLinkItem/InternalLinkItem.tsx
1763
- import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
1834
+ import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
1764
1835
  function InternalLinkItem({
1765
1836
  link,
1766
1837
  icon,
@@ -1769,19 +1840,19 @@ function InternalLinkItem({
1769
1840
  component,
1770
1841
  ...restProps
1771
1842
  }) {
1772
- return /* @__PURE__ */ jsx13(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs3(
1843
+ return /* @__PURE__ */ jsx14(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs4(
1773
1844
  StyledListItemContainer,
1774
1845
  {
1775
1846
  component: component ?? "a",
1776
1847
  href: link,
1777
1848
  ...getCleanProps(restProps),
1778
1849
  children: [
1779
- icon && /* @__PURE__ */ jsx13(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
1780
- /* @__PURE__ */ jsxs3(StyledLabelContainer, { children: [
1781
- /* @__PURE__ */ jsx13(StyledLabel, { className: "itemLabel", children: label }),
1782
- caption && /* @__PURE__ */ jsx13(StyledCaption, { children: caption })
1850
+ icon && /* @__PURE__ */ jsx14(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
1851
+ /* @__PURE__ */ jsxs4(StyledLabelContainer, { children: [
1852
+ /* @__PURE__ */ jsx14(StyledLabel, { className: "itemLabel", children: label }),
1853
+ caption && /* @__PURE__ */ jsx14(StyledCaption, { children: caption })
1783
1854
  ] }),
1784
- /* @__PURE__ */ jsx13(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx13(ChevronRightIcon, { fontSize: "small" }) })
1855
+ /* @__PURE__ */ jsx14(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx14(ChevronRightIcon, { fontSize: "small" }) })
1785
1856
  ]
1786
1857
  }
1787
1858
  ) });
@@ -1789,14 +1860,14 @@ function InternalLinkItem({
1789
1860
  InternalLinkItem.displayName = "ToolkitInternalLinkItem";
1790
1861
 
1791
1862
  // src/components/Link/Link.tsx
1792
- import React4 from "react";
1863
+ import React5 from "react";
1793
1864
  import OpenInNewIcon from "@mui/icons-material/OpenInNew";
1794
- import SvgIcon4 from "@mui/material/SvgIcon";
1865
+ import SvgIcon5 from "@mui/material/SvgIcon";
1795
1866
 
1796
1867
  // src/components/Link/Link.styles.tsx
1797
1868
  import Box3 from "@mui/material/Box";
1798
- import { styled as styled8, alpha as alpha2 } from "@mui/material/styles";
1799
- var StyledScreenReaderOnly = styled8("span")({
1869
+ import { styled as styled9, alpha as alpha2 } from "@mui/material/styles";
1870
+ var StyledScreenReaderOnly = styled9("span")({
1800
1871
  position: "absolute",
1801
1872
  width: "1px",
1802
1873
  height: "1px",
@@ -1807,17 +1878,17 @@ var StyledScreenReaderOnly = styled8("span")({
1807
1878
  whiteSpace: "nowrap",
1808
1879
  border: 0
1809
1880
  });
1810
- var StyledIconSpan = styled8("span", {
1811
- shouldForwardProp: (prop) => prop !== "iconright"
1812
- })(({ iconright }) => ({
1881
+ var StyledIconSpan = styled9("span", {
1882
+ shouldForwardProp: (prop) => prop !== "iconRight"
1883
+ })(({ iconRight }) => ({
1813
1884
  display: "inline-flex",
1814
1885
  alignItems: "center",
1815
- paddingLeft: iconright ? "4px" : void 0,
1816
- paddingRight: iconright ? void 0 : "4px"
1886
+ paddingLeft: iconRight ? "4px" : void 0,
1887
+ paddingRight: iconRight ? void 0 : "4px"
1817
1888
  }));
1818
- var StyledAnchor = styled8(Box3, {
1819
- shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconright"].includes(prop)
1820
- })(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconright }) => {
1889
+ var StyledAnchor = styled9(Box3, {
1890
+ shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
1891
+ })(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
1821
1892
  const resolvedTint = isOnDarkBg ? "white" : tint;
1822
1893
  const baseColors = {
1823
1894
  primary: theme.tokens.colors.primary,
@@ -1836,7 +1907,7 @@ var StyledAnchor = styled8(Box3, {
1836
1907
  return {
1837
1908
  display: "inline-flex",
1838
1909
  alignItems: "center",
1839
- flexDirection: iconright ? "row-reverse" : void 0,
1910
+ flexDirection: iconRight ? "row-reverse" : void 0,
1840
1911
  verticalAlign: "bottom",
1841
1912
  fontFamily: theme.tokens.typography.fontFamilyBase,
1842
1913
  textDecoration: "underline",
@@ -1874,14 +1945,14 @@ var StyledAnchor = styled8(Box3, {
1874
1945
  });
1875
1946
 
1876
1947
  // src/components/Link/Link.tsx
1877
- import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
1948
+ import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
1878
1949
  var Variant = {
1879
1950
  standard: "standard",
1880
1951
  external: "external",
1881
1952
  file: "file"
1882
1953
  };
1883
1954
  function DocumentIcon() {
1884
- return /* @__PURE__ */ jsx14(SvgIcon4, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx14(
1955
+ return /* @__PURE__ */ jsx15(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx15(
1885
1956
  "path",
1886
1957
  {
1887
1958
  fillRule: "evenodd",
@@ -1899,7 +1970,7 @@ function getIcon(variant, icon) {
1899
1970
  return icon;
1900
1971
  }
1901
1972
  }
1902
- var Link = React4.forwardRef(function Link2({
1973
+ var Link = React5.forwardRef(function Link2({
1903
1974
  children,
1904
1975
  variant = "standard",
1905
1976
  icon,
@@ -1914,9 +1985,9 @@ var Link = React4.forwardRef(function Link2({
1914
1985
  }, ref) {
1915
1986
  const Icon = getIcon(variant, icon);
1916
1987
  const target = variant !== Variant.standard ? "_blank" : targetProp;
1917
- const iconright = variant === Variant.external ? true : !!iconToRight;
1988
+ const iconRight = variant === Variant.external ? true : !!iconToRight;
1918
1989
  const urlProp = component ? { to: href } : { href };
1919
- return /* @__PURE__ */ jsxs4(
1990
+ return /* @__PURE__ */ jsxs5(
1920
1991
  StyledAnchor,
1921
1992
  {
1922
1993
  component: component ?? "a",
@@ -1926,13 +1997,13 @@ var Link = React4.forwardRef(function Link2({
1926
1997
  tint: color,
1927
1998
  isOnDarkBg,
1928
1999
  target,
1929
- iconright,
2000
+ iconRight,
1930
2001
  standalonelink: !!standalone,
1931
2002
  ref,
1932
2003
  children: [
1933
- Icon && /* @__PURE__ */ jsx14(StyledIconSpan, { iconright, children: /* @__PURE__ */ jsx14(Icon, { fontSize: "inherit" }) }),
2004
+ Icon && /* @__PURE__ */ jsx15(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx15(Icon, { fontSize: "inherit" }) }),
1934
2005
  children,
1935
- variant === Variant.external && /* @__PURE__ */ jsx14(StyledScreenReaderOnly, { children: ", opens in a new tab" })
2006
+ variant === Variant.external && /* @__PURE__ */ jsx15(StyledScreenReaderOnly, { children: ", opens in a new tab" })
1936
2007
  ]
1937
2008
  }
1938
2009
  );
@@ -1940,12 +2011,12 @@ var Link = React4.forwardRef(function Link2({
1940
2011
  Link.displayName = "ToolkitLink";
1941
2012
 
1942
2013
  // src/components/LogoLink/LogoLink.tsx
1943
- import React5 from "react";
2014
+ import React6 from "react";
1944
2015
 
1945
2016
  // src/components/LogoLink/LogoLink.styles.tsx
1946
2017
  import Box4 from "@mui/material/Box";
1947
- import { styled as styled9 } from "@mui/material/styles";
1948
- var StyledLogoLink = styled9(Box4, {
2018
+ import { styled as styled10 } from "@mui/material/styles";
2019
+ var StyledLogoLink = styled10(Box4, {
1949
2020
  shouldForwardProp: (prop) => prop !== "isSmall"
1950
2021
  })(({ theme, isSmall }) => ({
1951
2022
  display: "inline-flex",
@@ -1962,7 +2033,7 @@ var StyledLogoLink = styled9(Box4, {
1962
2033
  color: theme.tokens.colors.primaryDark
1963
2034
  }
1964
2035
  }));
1965
- var StyledLogoSpan = styled9("span")(({ theme }) => ({
2036
+ var StyledLogoSpan = styled10("span")(({ theme }) => ({
1966
2037
  padding: "0 10px 0 15px",
1967
2038
  backgroundColor: theme.tokens.colors.primary,
1968
2039
  height: "100%",
@@ -1980,9 +2051,9 @@ var StyledLogoSpan = styled9("span")(({ theme }) => ({
1980
2051
  }));
1981
2052
 
1982
2053
  // src/components/LogoLink/LogoLink.tsx
1983
- import { jsx as jsx15 } from "react/jsx-runtime";
1984
- var LogoLink = React5.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
1985
- return /* @__PURE__ */ jsx15(
2054
+ import { jsx as jsx16 } from "react/jsx-runtime";
2055
+ var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
2056
+ return /* @__PURE__ */ jsx16(
1986
2057
  StyledLogoLink,
1987
2058
  {
1988
2059
  component: component ?? "a",
@@ -1992,14 +2063,14 @@ var LogoLink = React5.forwardRef(function LogoLink2({ children, href = "/", isSm
1992
2063
  "data-component-id": "LogoLink",
1993
2064
  ...getCleanProps(restProps),
1994
2065
  ref,
1995
- children: /* @__PURE__ */ jsx15(StyledLogoSpan, { children })
2066
+ children: /* @__PURE__ */ jsx16(StyledLogoSpan, { children })
1996
2067
  }
1997
2068
  );
1998
2069
  });
1999
2070
  LogoLink.displayName = "ToolkitLogoLink";
2000
2071
 
2001
2072
  // src/components/PageSpinner/PageSpinner.tsx
2002
- import React6, { useEffect, useRef } from "react";
2073
+ import React7, { useEffect, useRef } from "react";
2003
2074
  import Portal from "@mui/material/Portal";
2004
2075
  import CircularProgress3 from "@mui/material/CircularProgress";
2005
2076
  import { useForkRef } from "@mui/material/utils";
@@ -2160,13 +2231,13 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
2160
2231
  }
2161
2232
 
2162
2233
  // src/components/PageSpinner/PageSpinner.styles.tsx
2163
- import { styled as styled10 } from "@mui/material/styles";
2234
+ import { styled as styled11 } from "@mui/material/styles";
2164
2235
  import { alpha as alpha3 } from "@mui/material/styles";
2165
2236
  var PAGE_SPINNER_Z_INDEX = 1400;
2166
- var StyledPageSpinnerRoot = styled10("div")(() => ({
2237
+ var StyledPageSpinnerRoot = styled11("div")(() => ({
2167
2238
  position: "relative"
2168
2239
  }));
2169
- var StyledOverlay = styled10("div", {
2240
+ var StyledOverlay = styled11("div", {
2170
2241
  shouldForwardProp: (prop) => prop !== "$darkBg"
2171
2242
  })(({ theme, $darkBg = false }) => ({
2172
2243
  position: "fixed",
@@ -2174,7 +2245,7 @@ var StyledOverlay = styled10("div", {
2174
2245
  zIndex: PAGE_SPINNER_Z_INDEX,
2175
2246
  backgroundColor: $darkBg ? alpha3(theme.tokens.colors.textPrimary, 0.9) : alpha3(theme.palette.common.white, 0.9)
2176
2247
  }));
2177
- var StyledSpinnerCentre = styled10("div")(() => ({
2248
+ var StyledSpinnerCentre = styled11("div")(() => ({
2178
2249
  position: "fixed",
2179
2250
  top: "50%",
2180
2251
  left: "50%",
@@ -2185,7 +2256,7 @@ var StyledSpinnerCentre = styled10("div")(() => ({
2185
2256
  alignItems: "center",
2186
2257
  gap: "16px"
2187
2258
  }));
2188
- var StyledSpinnerMessage = styled10("p", {
2259
+ var StyledSpinnerMessage = styled11("p", {
2189
2260
  shouldForwardProp: (prop) => prop !== "$darkBg"
2190
2261
  })(({ theme, $darkBg = false }) => ({
2191
2262
  margin: 0,
@@ -2196,7 +2267,7 @@ var StyledSpinnerMessage = styled10("p", {
2196
2267
  color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
2197
2268
  textAlign: "center"
2198
2269
  }));
2199
- var StyledScreenReaderOnly2 = styled10("span")(() => ({
2270
+ var StyledScreenReaderOnly2 = styled11("span")(() => ({
2200
2271
  position: "absolute",
2201
2272
  width: "1px",
2202
2273
  height: "1px",
@@ -2209,9 +2280,9 @@ var StyledScreenReaderOnly2 = styled10("span")(() => ({
2209
2280
  }));
2210
2281
 
2211
2282
  // src/components/PageSpinner/PageSpinner.tsx
2212
- import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
2283
+ import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
2213
2284
  var ARIA_REANNOUNCE_INTERVAL = 3e4;
2214
- var PageSpinner = React6.forwardRef(
2285
+ var PageSpinner = React7.forwardRef(
2215
2286
  function PageSpinner2({
2216
2287
  message = "Processing, please wait",
2217
2288
  customMessageLayout,
@@ -2243,7 +2314,7 @@ var PageSpinner = React6.forwardRef(
2243
2314
  backgroundScrollTether(false);
2244
2315
  };
2245
2316
  }, [message, rootNode, messageTone]);
2246
- return /* @__PURE__ */ jsx16(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs5(
2317
+ return /* @__PURE__ */ jsx17(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs6(
2247
2318
  StyledPageSpinnerRoot,
2248
2319
  {
2249
2320
  "data-component-id": "PageSpinner",
@@ -2251,9 +2322,9 @@ var PageSpinner = React6.forwardRef(
2251
2322
  ref: mergedRef,
2252
2323
  ...getCleanProps(restProps),
2253
2324
  children: [
2254
- /* @__PURE__ */ jsx16(StyledOverlay, { $darkBg: isOnDarkBg }),
2255
- /* @__PURE__ */ jsxs5(StyledSpinnerCentre, { children: [
2256
- /* @__PURE__ */ jsx16(
2325
+ /* @__PURE__ */ jsx17(StyledOverlay, { $darkBg: isOnDarkBg }),
2326
+ /* @__PURE__ */ jsxs6(StyledSpinnerCentre, { children: [
2327
+ /* @__PURE__ */ jsx17(
2257
2328
  CircularProgress3,
2258
2329
  {
2259
2330
  size: 60,
@@ -2261,8 +2332,8 @@ var PageSpinner = React6.forwardRef(
2261
2332
  "aria-hidden": "true"
2262
2333
  }
2263
2334
  ),
2264
- customMessageLayout ?? /* @__PURE__ */ jsx16(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
2265
- srText && /* @__PURE__ */ jsx16(StyledScreenReaderOnly2, { children: srText })
2335
+ customMessageLayout ?? /* @__PURE__ */ jsx17(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
2336
+ srText && /* @__PURE__ */ jsx17(StyledScreenReaderOnly2, { children: srText })
2266
2337
  ] })
2267
2338
  ]
2268
2339
  }
@@ -2272,11 +2343,11 @@ var PageSpinner = React6.forwardRef(
2272
2343
  PageSpinner.displayName = "ToolkitPageSpinner";
2273
2344
 
2274
2345
  // src/components/Pagination/Pagination.tsx
2275
- import React7 from "react";
2346
+ import React8 from "react";
2276
2347
  import MuiPagination from "@mui/material/Pagination";
2277
2348
 
2278
2349
  // src/components/Pagination/Pagination.styles.tsx
2279
- import { styled as styled11, alpha as alpha4 } from "@mui/material/styles";
2350
+ import { styled as styled12, alpha as alpha4 } from "@mui/material/styles";
2280
2351
  import MuiPaginationItem from "@mui/material/PaginationItem";
2281
2352
  function getColorValue(theme, color) {
2282
2353
  switch (color) {
@@ -2296,7 +2367,7 @@ function getColorValue(theme, color) {
2296
2367
  return theme.tokens.colors.textPrimary;
2297
2368
  }
2298
2369
  }
2299
- var StyledPaginationItem = styled11(MuiPaginationItem, {
2370
+ var StyledPaginationItem = styled12(MuiPaginationItem, {
2300
2371
  shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
2301
2372
  })(({ theme, $variant, $color }) => {
2302
2373
  const colorValue = getColorValue(theme, $color);
@@ -2339,15 +2410,15 @@ var StyledPaginationItem = styled11(MuiPaginationItem, {
2339
2410
  });
2340
2411
 
2341
2412
  // src/components/Pagination/Pagination.tsx
2342
- import { jsx as jsx17 } from "react/jsx-runtime";
2343
- var Pagination = React7.forwardRef(
2413
+ import { jsx as jsx18 } from "react/jsx-runtime";
2414
+ var Pagination = React8.forwardRef(
2344
2415
  function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
2345
- return /* @__PURE__ */ jsx17(
2416
+ return /* @__PURE__ */ jsx18(
2346
2417
  MuiPagination,
2347
2418
  {
2348
2419
  ref,
2349
2420
  "data-component-id": "Pagination",
2350
- renderItem: (item) => /* @__PURE__ */ jsx17(
2421
+ renderItem: (item) => /* @__PURE__ */ jsx18(
2351
2422
  StyledPaginationItem,
2352
2423
  {
2353
2424
  $variant: variant,
@@ -2364,11 +2435,11 @@ var Pagination = React7.forwardRef(
2364
2435
  Pagination.displayName = "ToolkitPagination";
2365
2436
 
2366
2437
  // src/components/Paragraph/Paragraph.tsx
2367
- import React8 from "react";
2438
+ import React9 from "react";
2368
2439
 
2369
2440
  // src/components/Paragraph/Paragraph.styles.tsx
2370
- import { styled as styled12 } from "@mui/material/styles";
2371
- var StyledParagraph = styled12("p", {
2441
+ import { styled as styled13 } from "@mui/material/styles";
2442
+ var StyledParagraph = styled13("p", {
2372
2443
  shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
2373
2444
  })(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
2374
2445
  margin: 0,
@@ -2401,10 +2472,10 @@ var StyledParagraph = styled12("p", {
2401
2472
  }));
2402
2473
 
2403
2474
  // src/components/Paragraph/Paragraph.tsx
2404
- import { jsx as jsx18 } from "react/jsx-runtime";
2405
- var Paragraph = React8.forwardRef(
2475
+ import { jsx as jsx19 } from "react/jsx-runtime";
2476
+ var Paragraph = React9.forwardRef(
2406
2477
  function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
2407
- return /* @__PURE__ */ jsx18(
2478
+ return /* @__PURE__ */ jsx19(
2408
2479
  StyledParagraph,
2409
2480
  {
2410
2481
  $variant: variant,
@@ -2420,15 +2491,15 @@ var Paragraph = React8.forwardRef(
2420
2491
  Paragraph.displayName = "ToolkitParagraph";
2421
2492
 
2422
2493
  // src/components/Password/Password.tsx
2423
- import React9, { useState as useState3 } from "react";
2494
+ import React10, { useState as useState3 } from "react";
2424
2495
 
2425
2496
  // src/components/Password/PasswordRule.tsx
2426
2497
  import CheckCircleIcon from "@mui/icons-material/CheckCircle";
2427
2498
  import CancelIcon from "@mui/icons-material/Cancel";
2428
2499
 
2429
2500
  // src/components/Password/PasswordRule.styles.tsx
2430
- import { styled as styled13 } from "@mui/material/styles";
2431
- var StyledPasswordRule = styled13("div")(({ theme }) => ({
2501
+ import { styled as styled14 } from "@mui/material/styles";
2502
+ var StyledPasswordRule = styled14("div")(({ theme }) => ({
2432
2503
  display: "flex",
2433
2504
  alignItems: "center",
2434
2505
  gap: theme.tokens.spacing.xs,
@@ -2440,15 +2511,15 @@ var StyledPasswordRule = styled13("div")(({ theme }) => ({
2440
2511
  color: theme.tokens.colors.error
2441
2512
  }
2442
2513
  }));
2443
- var StyledPasswordRuleIcon = styled13("span")({
2514
+ var StyledPasswordRuleIcon = styled14("span")({
2444
2515
  display: "inline-flex",
2445
2516
  alignItems: "center",
2446
2517
  flexShrink: 0
2447
2518
  });
2448
- var StyledPasswordRuleText = styled13("span")(({ theme }) => ({
2519
+ var StyledPasswordRuleText = styled14("span")(({ theme }) => ({
2449
2520
  fontSize: theme.tokens.typography.fontSizeSm
2450
2521
  }));
2451
- var StyledScreenReaderOnly3 = styled13("span")({
2522
+ var StyledScreenReaderOnly3 = styled14("span")({
2452
2523
  position: "absolute",
2453
2524
  width: 1,
2454
2525
  height: 1,
@@ -2461,24 +2532,24 @@ var StyledScreenReaderOnly3 = styled13("span")({
2461
2532
  });
2462
2533
 
2463
2534
  // src/components/Password/PasswordRule.tsx
2464
- import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
2465
- var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs6(
2535
+ import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
2536
+ var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs7(
2466
2537
  StyledPasswordRule,
2467
2538
  {
2468
2539
  className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
2469
2540
  "data-testid": `password-rule-${idx}`,
2470
2541
  children: [
2471
- /* @__PURE__ */ jsx19(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx19(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx19(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
2472
- /* @__PURE__ */ jsx19(StyledPasswordRuleText, { children: rule }),
2473
- /* @__PURE__ */ jsx19(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
2542
+ /* @__PURE__ */ jsx20(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx20(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx20(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
2543
+ /* @__PURE__ */ jsx20(StyledPasswordRuleText, { children: rule }),
2544
+ /* @__PURE__ */ jsx20(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
2474
2545
  ]
2475
2546
  }
2476
2547
  );
2477
2548
  PasswordRule.displayName = "ToolkitPasswordRule";
2478
2549
 
2479
2550
  // src/components/Password/PasswordCriteria.styles.tsx
2480
- import { styled as styled14 } from "@mui/material/styles";
2481
- var StyledPasswordCriteriaContainer = styled14("div")(
2551
+ import { styled as styled15 } from "@mui/material/styles";
2552
+ var StyledPasswordCriteriaContainer = styled15("div")(
2482
2553
  ({ theme, $show }) => ({
2483
2554
  display: $show ? "block" : "none",
2484
2555
  position: "absolute",
@@ -2489,7 +2560,7 @@ var StyledPasswordCriteriaContainer = styled14("div")(
2489
2560
  marginTop: theme.tokens.spacing.xs
2490
2561
  })
2491
2562
  );
2492
- var StyledPasswordRuleTitle = styled14("div")(({ theme }) => ({
2563
+ var StyledPasswordRuleTitle = styled15("div")(({ theme }) => ({
2493
2564
  color: theme.tokens.colors.textPrimary,
2494
2565
  fontSize: theme.tokens.typography.fontSizeSm,
2495
2566
  fontWeight: theme.tokens.typography.fontWeightMedium,
@@ -2499,7 +2570,7 @@ var StyledPasswordRuleTitle = styled14("div")(({ theme }) => ({
2499
2570
  }));
2500
2571
 
2501
2572
  // src/components/Password/PasswordCriteria.tsx
2502
- import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
2573
+ import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
2503
2574
  var PasswordRules = [
2504
2575
  { key: "minLength", rule: "Minimum 8 characters" },
2505
2576
  { key: "lowercase", rule: "At least one lowercase letter" },
@@ -2514,20 +2585,20 @@ var passwordValidator = (value) => ({
2514
2585
  digit: /[0-9]/.test(value),
2515
2586
  special: /[^A-Za-z0-9]/.test(value)
2516
2587
  });
2517
- var PasswordCriteria = ({ show = false, value = "" }) => {
2588
+ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
2518
2589
  const validity = passwordValidator(value);
2519
- return /* @__PURE__ */ jsx20(
2590
+ return /* @__PURE__ */ jsx21(
2520
2591
  StyledPasswordCriteriaContainer,
2521
2592
  {
2522
2593
  $show: show,
2523
2594
  "aria-hidden": !show,
2524
- id: "passwordCriteria",
2595
+ id,
2525
2596
  "data-testid": "password-criteria",
2526
2597
  role: "status",
2527
2598
  "aria-live": "polite",
2528
- children: /* @__PURE__ */ jsxs7(Card, { compact: true, children: [
2529
- /* @__PURE__ */ jsx20(StyledPasswordRuleTitle, { children: "Password must contain:" }),
2530
- PasswordRules.map((item, idx) => /* @__PURE__ */ jsx20(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
2599
+ children: /* @__PURE__ */ jsxs8(Card, { compact: true, children: [
2600
+ /* @__PURE__ */ jsx21(StyledPasswordRuleTitle, { children: "Password must contain:" }),
2601
+ PasswordRules.map((item, idx) => /* @__PURE__ */ jsx21(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
2531
2602
  ] })
2532
2603
  }
2533
2604
  );
@@ -2535,18 +2606,18 @@ var PasswordCriteria = ({ show = false, value = "" }) => {
2535
2606
  PasswordCriteria.displayName = "ToolkitPasswordCriteria";
2536
2607
 
2537
2608
  // src/components/Password/Password.styles.tsx
2538
- import { styled as styled15 } from "@mui/material/styles";
2539
- var StyledPasswordRoot = styled15("div")({
2609
+ import { styled as styled16 } from "@mui/material/styles";
2610
+ var StyledPasswordRoot = styled16("div")({
2540
2611
  position: "relative"
2541
2612
  });
2542
- var StyledPasswordInputWrapper = styled15("div")({
2613
+ var StyledPasswordInputWrapper = styled16("div")({
2543
2614
  display: "flex",
2544
2615
  position: "relative"
2545
2616
  });
2546
2617
 
2547
2618
  // src/components/Password/Password.tsx
2548
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
2549
- var Password = React9.forwardRef(
2619
+ import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2620
+ var Password = React10.forwardRef(
2550
2621
  function Password2({
2551
2622
  isInvalid,
2552
2623
  value: initialValue,
@@ -2575,9 +2646,10 @@ var Password = React9.forwardRef(
2575
2646
  const isCriteriaMet = Object.values(validity).every(Boolean);
2576
2647
  onChange?.(event, isCriteriaMet);
2577
2648
  };
2649
+ const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
2578
2650
  const cleanRest = getCleanProps(rest);
2579
- return /* @__PURE__ */ jsxs8(StyledPasswordRoot, { className, ...cleanRest, children: [
2580
- /* @__PURE__ */ jsx21(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx21(
2651
+ return /* @__PURE__ */ jsxs9(StyledPasswordRoot, { className, ...cleanRest, children: [
2652
+ /* @__PURE__ */ jsx22(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx22(
2581
2653
  TextField,
2582
2654
  {
2583
2655
  ref,
@@ -2587,24 +2659,26 @@ var Password = React9.forwardRef(
2587
2659
  showPasswordToggle: true,
2588
2660
  value,
2589
2661
  error: isInvalid,
2590
- "aria-describedby": ariaDescribedby ?? "passwordCriteria",
2591
- "aria-labelledby": ariaLabelledby,
2662
+ inputProps: {
2663
+ "aria-describedby": ariaDescribedby ?? criteriaId,
2664
+ "aria-labelledby": ariaLabelledby
2665
+ },
2592
2666
  onFocus: handleFocus,
2593
2667
  onBlur: handleBlur,
2594
2668
  onChange: handleChange
2595
2669
  }
2596
2670
  ) }),
2597
- /* @__PURE__ */ jsx21(PasswordCriteria, { show: showCriteria, value })
2671
+ /* @__PURE__ */ jsx22(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
2598
2672
  ] });
2599
2673
  }
2600
2674
  );
2601
2675
  Password.displayName = "ToolkitPassword";
2602
2676
 
2603
2677
  // src/components/Spinner/Spinner.tsx
2604
- import React10 from "react";
2678
+ import React11 from "react";
2605
2679
 
2606
2680
  // src/components/Spinner/Spinner.styles.tsx
2607
- import { styled as styled16, alpha as alpha5 } from "@mui/material/styles";
2681
+ import { styled as styled17, alpha as alpha5 } from "@mui/material/styles";
2608
2682
  var spinnerSizing = {
2609
2683
  xs: 20,
2610
2684
  sm: 24,
@@ -2612,7 +2686,7 @@ var spinnerSizing = {
2612
2686
  lg: 56,
2613
2687
  xl: 72
2614
2688
  };
2615
- var StyledSpinnerContainer = styled16("div", {
2689
+ var StyledSpinnerContainer = styled17("div", {
2616
2690
  shouldForwardProp: (prop) => prop !== "$inline"
2617
2691
  })({}, ({ $inline }) => ({
2618
2692
  flex: "0 1 100%",
@@ -2620,7 +2694,7 @@ var StyledSpinnerContainer = styled16("div", {
2620
2694
  flexDirection: $inline ? "row" : "column",
2621
2695
  alignItems: "center"
2622
2696
  }));
2623
- var StyledSpinnerIconContainer = styled16("div", {
2697
+ var StyledSpinnerIconContainer = styled17("div", {
2624
2698
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2625
2699
  })(({ $size }) => {
2626
2700
  const size = spinnerSizing[$size];
@@ -2630,7 +2704,7 @@ var StyledSpinnerIconContainer = styled16("div", {
2630
2704
  height: size
2631
2705
  };
2632
2706
  });
2633
- var StyledSpinnerBackground = styled16("div", {
2707
+ var StyledSpinnerBackground = styled17("div", {
2634
2708
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2635
2709
  })(({ theme, $size, $darkBg }) => {
2636
2710
  const size = spinnerSizing[$size];
@@ -2644,7 +2718,7 @@ var StyledSpinnerBackground = styled16("div", {
2644
2718
  border: `${lineWidth}px solid ${borderColor}`
2645
2719
  };
2646
2720
  });
2647
- var StyledSpinner = styled16("div", {
2721
+ var StyledSpinner = styled17("div", {
2648
2722
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2649
2723
  })(({ theme, $size, $darkBg }) => {
2650
2724
  const size = spinnerSizing[$size];
@@ -2667,7 +2741,7 @@ var StyledSpinner = styled16("div", {
2667
2741
  animation: `toolkit-spin ${animationSpeed} infinite linear`
2668
2742
  };
2669
2743
  });
2670
- var StyledSpinnerMessage2 = styled16("span", {
2744
+ var StyledSpinnerMessage2 = styled17("span", {
2671
2745
  shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
2672
2746
  })(({ theme, $darkBg, $inline }) => ({
2673
2747
  fontFamily: theme.tokens.typography.fontFamilyBase,
@@ -2676,7 +2750,7 @@ var StyledSpinnerMessage2 = styled16("span", {
2676
2750
  marginTop: $inline ? 0 : theme.spacing(1),
2677
2751
  marginLeft: $inline ? theme.spacing(1) : 0
2678
2752
  }));
2679
- var StyledScreenReaderOnly4 = styled16("span")({
2753
+ var StyledScreenReaderOnly4 = styled17("span")({
2680
2754
  position: "absolute",
2681
2755
  width: 1,
2682
2756
  height: 1,
@@ -2689,10 +2763,10 @@ var StyledScreenReaderOnly4 = styled16("span")({
2689
2763
  });
2690
2764
 
2691
2765
  // src/components/Spinner/Spinner.tsx
2692
- import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2693
- var Spinner = React10.forwardRef(
2766
+ import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2767
+ var Spinner = React11.forwardRef(
2694
2768
  function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
2695
- return /* @__PURE__ */ jsxs9(
2769
+ return /* @__PURE__ */ jsxs10(
2696
2770
  StyledSpinnerContainer,
2697
2771
  {
2698
2772
  ref,
@@ -2700,12 +2774,12 @@ var Spinner = React10.forwardRef(
2700
2774
  "data-component-id": "Spinner",
2701
2775
  ...getCleanProps(restProps),
2702
2776
  children: [
2703
- /* @__PURE__ */ jsxs9(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
2704
- /* @__PURE__ */ jsx22(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
2705
- /* @__PURE__ */ jsx22(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
2777
+ /* @__PURE__ */ jsxs10(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
2778
+ /* @__PURE__ */ jsx23(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
2779
+ /* @__PURE__ */ jsx23(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
2706
2780
  ] }),
2707
- message && /* @__PURE__ */ jsx22(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
2708
- srText && /* @__PURE__ */ jsx22(StyledScreenReaderOnly4, { children: srText })
2781
+ message && /* @__PURE__ */ jsx23(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
2782
+ srText && /* @__PURE__ */ jsx23(StyledScreenReaderOnly4, { children: srText })
2709
2783
  ]
2710
2784
  }
2711
2785
  );
@@ -2717,14 +2791,14 @@ Spinner.displayName = "ToolkitSpinner";
2717
2791
  import FormHelperText from "@mui/material/FormHelperText";
2718
2792
 
2719
2793
  // src/components/Toggle/Toggle.styles.tsx
2720
- import { styled as styled17 } from "@mui/material/styles";
2721
- var StyledFieldset = styled17("fieldset")(({ theme }) => ({
2794
+ import { styled as styled18 } from "@mui/material/styles";
2795
+ var StyledFieldset = styled18("fieldset")(({ theme }) => ({
2722
2796
  border: "none",
2723
2797
  margin: 0,
2724
2798
  padding: 0,
2725
2799
  minWidth: 0
2726
2800
  }));
2727
- var StyledLegend = styled17("legend")(({ theme }) => ({
2801
+ var StyledLegend = styled18("legend")(({ theme }) => ({
2728
2802
  fontFamily: theme.tokens.typography.fontFamilyBase,
2729
2803
  fontSize: theme.tokens.typography.fontSizeLg,
2730
2804
  fontWeight: theme.tokens.typography.fontWeightRegular,
@@ -2732,7 +2806,7 @@ var StyledLegend = styled17("legend")(({ theme }) => ({
2732
2806
  marginBottom: theme.spacing(1),
2733
2807
  padding: 0
2734
2808
  }));
2735
- var StyledToggleWrapper = styled17("div")(({ theme }) => ({
2809
+ var StyledToggleWrapper = styled18("div")(({ theme }) => ({
2736
2810
  display: "flex",
2737
2811
  flexDirection: "row",
2738
2812
  width: theme.spacing(15),
@@ -2741,7 +2815,7 @@ var StyledToggleWrapper = styled17("div")(({ theme }) => ({
2741
2815
  border: `1px solid ${theme.tokens.colors.border}`,
2742
2816
  borderRadius: theme.tokens.borderRadius.md
2743
2817
  }));
2744
- var StyledSwitch = styled17("label", {
2818
+ var StyledSwitch = styled18("label", {
2745
2819
  shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
2746
2820
  })(({ theme, selected, controlType }) => ({
2747
2821
  position: "relative",
@@ -2831,7 +2905,7 @@ var StyledSwitch = styled17("label", {
2831
2905
  }));
2832
2906
 
2833
2907
  // src/components/Toggle/Toggle.tsx
2834
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2908
+ import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
2835
2909
  function Toggle({
2836
2910
  name,
2837
2911
  checked = false,
@@ -2842,18 +2916,18 @@ function Toggle({
2842
2916
  onBlur,
2843
2917
  ...restProps
2844
2918
  }) {
2845
- return /* @__PURE__ */ jsxs10(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
2846
- label && /* @__PURE__ */ jsx23(StyledLegend, { children: label }),
2847
- description && /* @__PURE__ */ jsx23(FormHelperText, { children: description }),
2848
- /* @__PURE__ */ jsxs10(StyledToggleWrapper, { children: [
2849
- /* @__PURE__ */ jsxs10(
2919
+ return /* @__PURE__ */ jsxs11(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
2920
+ label && /* @__PURE__ */ jsx24(StyledLegend, { children: label }),
2921
+ description && /* @__PURE__ */ jsx24(FormHelperText, { children: description }),
2922
+ /* @__PURE__ */ jsxs11(StyledToggleWrapper, { children: [
2923
+ /* @__PURE__ */ jsxs11(
2850
2924
  StyledSwitch,
2851
2925
  {
2852
2926
  htmlFor: `${name}off`,
2853
2927
  selected: !checked,
2854
2928
  controlType: "off",
2855
2929
  children: [
2856
- /* @__PURE__ */ jsx23(
2930
+ /* @__PURE__ */ jsx24(
2857
2931
  "input",
2858
2932
  {
2859
2933
  checked: !checked,
@@ -2869,14 +2943,14 @@ function Toggle({
2869
2943
  ]
2870
2944
  }
2871
2945
  ),
2872
- /* @__PURE__ */ jsxs10(
2946
+ /* @__PURE__ */ jsxs11(
2873
2947
  StyledSwitch,
2874
2948
  {
2875
2949
  htmlFor: `${name}on`,
2876
2950
  selected: checked,
2877
2951
  controlType: "on",
2878
2952
  children: [
2879
- /* @__PURE__ */ jsx23(
2953
+ /* @__PURE__ */ jsx24(
2880
2954
  "input",
2881
2955
  {
2882
2956
  checked,
@@ -2893,7 +2967,7 @@ function Toggle({
2893
2967
  }
2894
2968
  )
2895
2969
  ] }),
2896
- error && /* @__PURE__ */ jsx23(FormHelperText, { error: true, children: error })
2970
+ error && /* @__PURE__ */ jsx24(FormHelperText, { error: true, children: error })
2897
2971
  ] });
2898
2972
  }
2899
2973
  Toggle.displayName = "ToolkitToggle";
@@ -2909,37 +2983,37 @@ import {
2909
2983
  TablePagination as MuiTablePagination,
2910
2984
  TableSortLabel as MuiTableSortLabel
2911
2985
  } from "@mui/material";
2912
- import { styled as styled18 } from "@mui/material/styles";
2913
- import { jsx as jsx24 } from "react/jsx-runtime";
2914
- var StyledTableContainer = styled18(MuiTableContainer)(() => ({
2986
+ import { styled as styled19 } from "@mui/material/styles";
2987
+ import { jsx as jsx25 } from "react/jsx-runtime";
2988
+ var StyledTableContainer = styled19(MuiTableContainer)(() => ({
2915
2989
  overflowX: "auto"
2916
2990
  }));
2917
- var StyledHeadCell = styled18(MuiTableCell)(({ theme }) => ({
2991
+ var StyledHeadCell = styled19(MuiTableCell)(({ theme }) => ({
2918
2992
  fontWeight: theme.tokens.components.table.headerFontWeight,
2919
2993
  backgroundColor: theme.tokens.components.table.headerBackground,
2920
2994
  borderBottomWidth: theme.tokens.components.table.borderWidth,
2921
2995
  borderBottomColor: theme.tokens.components.table.borderColor
2922
2996
  }));
2923
2997
  function Table(props) {
2924
- return /* @__PURE__ */ jsx24(MuiTable, { ...props });
2998
+ return /* @__PURE__ */ jsx25(MuiTable, { ...props });
2925
2999
  }
2926
3000
  function TableHead(props) {
2927
- return /* @__PURE__ */ jsx24(MuiTableHead, { ...props });
3001
+ return /* @__PURE__ */ jsx25(MuiTableHead, { ...props });
2928
3002
  }
2929
3003
  function TableBody(props) {
2930
- return /* @__PURE__ */ jsx24(MuiTableBody, { ...props });
3004
+ return /* @__PURE__ */ jsx25(MuiTableBody, { ...props });
2931
3005
  }
2932
3006
  function TableRow(props) {
2933
- return /* @__PURE__ */ jsx24(MuiTableRow, { ...props });
3007
+ return /* @__PURE__ */ jsx25(MuiTableRow, { ...props });
2934
3008
  }
2935
3009
  function TableCell(props) {
2936
- return /* @__PURE__ */ jsx24(MuiTableCell, { ...props });
3010
+ return /* @__PURE__ */ jsx25(MuiTableCell, { ...props });
2937
3011
  }
2938
3012
  function TableHeadCell(props) {
2939
- return /* @__PURE__ */ jsx24(StyledHeadCell, { component: "th", scope: "col", ...props });
3013
+ return /* @__PURE__ */ jsx25(StyledHeadCell, { component: "th", scope: "col", ...props });
2940
3014
  }
2941
3015
  function TableContainer(props) {
2942
- return /* @__PURE__ */ jsx24(StyledTableContainer, { ...props });
3016
+ return /* @__PURE__ */ jsx25(StyledTableContainer, { ...props });
2943
3017
  }
2944
3018
  var TablePagination = MuiTablePagination;
2945
3019
  var TableSortLabel = MuiTableSortLabel;
@@ -2952,144 +3026,144 @@ TableHeadCell.displayName = "ToolkitTableHeadCell";
2952
3026
  TableContainer.displayName = "ToolkitTableContainer";
2953
3027
 
2954
3028
  // src/foundation/H1/H1.tsx
2955
- import React11 from "react";
3029
+ import React12 from "react";
2956
3030
  import { Typography } from "@mui/material";
2957
- import { jsx as jsx25 } from "react/jsx-runtime";
2958
- var H1 = React11.forwardRef(
3031
+ import { jsx as jsx26 } from "react/jsx-runtime";
3032
+ var H1 = React12.forwardRef(
2959
3033
  function H12({ color = "text.primary", children, ...props }, ref) {
2960
- return /* @__PURE__ */ jsx25(Typography, { ref, variant: "h1", color, ...props, children });
3034
+ return /* @__PURE__ */ jsx26(Typography, { ref, variant: "h1", color, ...props, children });
2961
3035
  }
2962
3036
  );
2963
3037
  H1.displayName = "ToolkitH1";
2964
3038
 
2965
3039
  // src/foundation/H2/H2.tsx
2966
- import React12 from "react";
3040
+ import React13 from "react";
2967
3041
  import { Typography as Typography2 } from "@mui/material";
2968
- import { jsx as jsx26 } from "react/jsx-runtime";
2969
- var H2 = React12.forwardRef(
3042
+ import { jsx as jsx27 } from "react/jsx-runtime";
3043
+ var H2 = React13.forwardRef(
2970
3044
  function H22({ color = "text.primary", children, ...props }, ref) {
2971
- return /* @__PURE__ */ jsx26(Typography2, { ref, variant: "h2", color, ...props, children });
3045
+ return /* @__PURE__ */ jsx27(Typography2, { ref, variant: "h2", color, ...props, children });
2972
3046
  }
2973
3047
  );
2974
3048
  H2.displayName = "ToolkitH2";
2975
3049
 
2976
3050
  // src/foundation/H3/H3.tsx
2977
- import React13 from "react";
3051
+ import React14 from "react";
2978
3052
  import { Typography as Typography3 } from "@mui/material";
2979
- import { jsx as jsx27 } from "react/jsx-runtime";
2980
- var H3 = React13.forwardRef(
3053
+ import { jsx as jsx28 } from "react/jsx-runtime";
3054
+ var H3 = React14.forwardRef(
2981
3055
  function H32({ color = "text.primary", children, ...props }, ref) {
2982
- return /* @__PURE__ */ jsx27(Typography3, { ref, variant: "h3", color, ...props, children });
3056
+ return /* @__PURE__ */ jsx28(Typography3, { ref, variant: "h3", color, ...props, children });
2983
3057
  }
2984
3058
  );
2985
3059
  H3.displayName = "ToolkitH3";
2986
3060
 
2987
3061
  // src/foundation/H4/H4.tsx
2988
- import React14 from "react";
3062
+ import React15 from "react";
2989
3063
  import { Typography as Typography4 } from "@mui/material";
2990
- import { jsx as jsx28 } from "react/jsx-runtime";
2991
- var H4 = React14.forwardRef(
3064
+ import { jsx as jsx29 } from "react/jsx-runtime";
3065
+ var H4 = React15.forwardRef(
2992
3066
  function H42({ color = "text.primary", children, ...props }, ref) {
2993
- return /* @__PURE__ */ jsx28(Typography4, { ref, variant: "h4", color, ...props, children });
3067
+ return /* @__PURE__ */ jsx29(Typography4, { ref, variant: "h4", color, ...props, children });
2994
3068
  }
2995
3069
  );
2996
3070
  H4.displayName = "ToolkitH4";
2997
3071
 
2998
3072
  // src/foundation/H5/H5.tsx
2999
- import React15 from "react";
3073
+ import React16 from "react";
3000
3074
  import { Typography as Typography5 } from "@mui/material";
3001
- import { jsx as jsx29 } from "react/jsx-runtime";
3002
- var H5 = React15.forwardRef(
3075
+ import { jsx as jsx30 } from "react/jsx-runtime";
3076
+ var H5 = React16.forwardRef(
3003
3077
  function H52({ color = "text.primary", children, ...props }, ref) {
3004
- return /* @__PURE__ */ jsx29(Typography5, { ref, variant: "h5", color, ...props, children });
3078
+ return /* @__PURE__ */ jsx30(Typography5, { ref, variant: "h5", color, ...props, children });
3005
3079
  }
3006
3080
  );
3007
3081
  H5.displayName = "ToolkitH5";
3008
3082
 
3009
3083
  // src/foundation/H6/H6.tsx
3010
- import React16 from "react";
3084
+ import React17 from "react";
3011
3085
  import { Typography as Typography6 } from "@mui/material";
3012
- import { jsx as jsx30 } from "react/jsx-runtime";
3013
- var H6 = React16.forwardRef(
3086
+ import { jsx as jsx31 } from "react/jsx-runtime";
3087
+ var H6 = React17.forwardRef(
3014
3088
  function H62({ color = "text.primary", children, ...props }, ref) {
3015
- return /* @__PURE__ */ jsx30(Typography6, { ref, variant: "h6", color, ...props, children });
3089
+ return /* @__PURE__ */ jsx31(Typography6, { ref, variant: "h6", color, ...props, children });
3016
3090
  }
3017
3091
  );
3018
3092
  H6.displayName = "ToolkitH6";
3019
3093
 
3020
3094
  // src/foundation/Subtitle1/Subtitle1.tsx
3021
- import React17 from "react";
3095
+ import React18 from "react";
3022
3096
  import { Typography as Typography7 } from "@mui/material";
3023
- import { jsx as jsx31 } from "react/jsx-runtime";
3024
- var Subtitle1 = React17.forwardRef(
3097
+ import { jsx as jsx32 } from "react/jsx-runtime";
3098
+ var Subtitle1 = React18.forwardRef(
3025
3099
  function Subtitle12({ color = "text.primary", children, ...props }, ref) {
3026
- return /* @__PURE__ */ jsx31(Typography7, { ref, variant: "subtitle1", color, ...props, children });
3100
+ return /* @__PURE__ */ jsx32(Typography7, { ref, variant: "subtitle1", color, ...props, children });
3027
3101
  }
3028
3102
  );
3029
3103
  Subtitle1.displayName = "ToolkitSubtitle1";
3030
3104
 
3031
3105
  // src/foundation/Subtitle2/Subtitle2.tsx
3032
- import React18 from "react";
3106
+ import React19 from "react";
3033
3107
  import { Typography as Typography8 } from "@mui/material";
3034
- import { jsx as jsx32 } from "react/jsx-runtime";
3035
- var Subtitle2 = React18.forwardRef(
3108
+ import { jsx as jsx33 } from "react/jsx-runtime";
3109
+ var Subtitle2 = React19.forwardRef(
3036
3110
  function Subtitle22({ color = "text.primary", children, ...props }, ref) {
3037
- return /* @__PURE__ */ jsx32(Typography8, { ref, variant: "subtitle2", color, ...props, children });
3111
+ return /* @__PURE__ */ jsx33(Typography8, { ref, variant: "subtitle2", color, ...props, children });
3038
3112
  }
3039
3113
  );
3040
3114
  Subtitle2.displayName = "ToolkitSubtitle2";
3041
3115
 
3042
3116
  // src/foundation/Body1/Body1.tsx
3043
- import React19 from "react";
3117
+ import React20 from "react";
3044
3118
  import { Typography as Typography9 } from "@mui/material";
3045
- import { jsx as jsx33 } from "react/jsx-runtime";
3046
- var Body1 = React19.forwardRef(
3119
+ import { jsx as jsx34 } from "react/jsx-runtime";
3120
+ var Body1 = React20.forwardRef(
3047
3121
  function Body12({ color = "text.primary", children, ...props }, ref) {
3048
- return /* @__PURE__ */ jsx33(Typography9, { ref, variant: "body1", color, ...props, children });
3122
+ return /* @__PURE__ */ jsx34(Typography9, { ref, variant: "body1", color, ...props, children });
3049
3123
  }
3050
3124
  );
3051
3125
  Body1.displayName = "ToolkitBody1";
3052
3126
 
3053
3127
  // src/foundation/Body2/Body2.tsx
3054
- import React20 from "react";
3128
+ import React21 from "react";
3055
3129
  import { Typography as Typography10 } from "@mui/material";
3056
- import { jsx as jsx34 } from "react/jsx-runtime";
3057
- var Body2 = React20.forwardRef(
3130
+ import { jsx as jsx35 } from "react/jsx-runtime";
3131
+ var Body2 = React21.forwardRef(
3058
3132
  function Body22({ color = "text.primary", children, ...props }, ref) {
3059
- return /* @__PURE__ */ jsx34(Typography10, { ref, variant: "body2", color, ...props, children });
3133
+ return /* @__PURE__ */ jsx35(Typography10, { ref, variant: "body2", color, ...props, children });
3060
3134
  }
3061
3135
  );
3062
3136
  Body2.displayName = "ToolkitBody2";
3063
3137
 
3064
3138
  // src/foundation/Caption/Caption.tsx
3065
- import React21 from "react";
3139
+ import React22 from "react";
3066
3140
  import { Typography as Typography11 } from "@mui/material";
3067
- import { jsx as jsx35 } from "react/jsx-runtime";
3068
- var Caption = React21.forwardRef(
3141
+ import { jsx as jsx36 } from "react/jsx-runtime";
3142
+ var Caption = React22.forwardRef(
3069
3143
  function Caption2({ color = "text.primary", children, ...props }, ref) {
3070
- return /* @__PURE__ */ jsx35(Typography11, { ref, variant: "caption", color, ...props, children });
3144
+ return /* @__PURE__ */ jsx36(Typography11, { ref, variant: "caption", color, ...props, children });
3071
3145
  }
3072
3146
  );
3073
3147
  Caption.displayName = "ToolkitCaption";
3074
3148
 
3075
3149
  // src/foundation/Overline/Overline.tsx
3076
- import React22 from "react";
3150
+ import React23 from "react";
3077
3151
  import { Typography as Typography12 } from "@mui/material";
3078
- import { jsx as jsx36 } from "react/jsx-runtime";
3079
- var Overline = React22.forwardRef(
3152
+ import { jsx as jsx37 } from "react/jsx-runtime";
3153
+ var Overline = React23.forwardRef(
3080
3154
  function Overline2({ color = "text.primary", children, ...props }, ref) {
3081
- return /* @__PURE__ */ jsx36(Typography12, { ref, variant: "overline", color, ...props, children });
3155
+ return /* @__PURE__ */ jsx37(Typography12, { ref, variant: "overline", color, ...props, children });
3082
3156
  }
3083
3157
  );
3084
3158
  Overline.displayName = "ToolkitOverline";
3085
3159
 
3086
3160
  // src/foundation/TypographyButton/TypographyButton.tsx
3087
- import React23 from "react";
3161
+ import React24 from "react";
3088
3162
  import { Typography as Typography13 } from "@mui/material";
3089
- import { jsx as jsx37 } from "react/jsx-runtime";
3090
- var TypographyButton = React23.forwardRef(
3163
+ import { jsx as jsx38 } from "react/jsx-runtime";
3164
+ var TypographyButton = React24.forwardRef(
3091
3165
  function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
3092
- return /* @__PURE__ */ jsx37(Typography13, { ref, variant: "button", color, ...props, children });
3166
+ return /* @__PURE__ */ jsx38(Typography13, { ref, variant: "button", color, ...props, children });
3093
3167
  }
3094
3168
  );
3095
3169
  TypographyButton.displayName = "ToolkitTypographyButton";
@@ -3129,6 +3203,7 @@ export {
3129
3203
  H4,
3130
3204
  H5,
3131
3205
  H6,
3206
+ IconText,
3132
3207
  InternalLinkItem,
3133
3208
  Link,
3134
3209
  LogoLink,