@octoguide/mui-ui-toolkit 0.5.0 → 0.7.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.
- package/dist/index.d.mts +58 -2
- package/dist/index.d.ts +58 -2
- package/dist/index.js +461 -197
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +424 -166
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __export(index_exports, {
|
|
|
65
65
|
H4: () => H4,
|
|
66
66
|
H5: () => H5,
|
|
67
67
|
H6: () => H6,
|
|
68
|
+
IconText: () => IconText,
|
|
68
69
|
InternalLinkItem: () => InternalLinkItem,
|
|
69
70
|
Link: () => Link,
|
|
70
71
|
LogoLink: () => LogoLink,
|
|
@@ -75,6 +76,10 @@ __export(index_exports, {
|
|
|
75
76
|
PageSpinner: () => PageSpinner,
|
|
76
77
|
Pagination: () => Pagination,
|
|
77
78
|
Paragraph: () => Paragraph,
|
|
79
|
+
Password: () => Password,
|
|
80
|
+
PasswordCriteria: () => PasswordCriteria,
|
|
81
|
+
PasswordRule: () => PasswordRule,
|
|
82
|
+
PasswordRules: () => PasswordRules,
|
|
78
83
|
Spinner: () => Spinner,
|
|
79
84
|
StandaloneAccordion: () => StandaloneAccordion,
|
|
80
85
|
StaticDatePicker: () => StaticDatePicker,
|
|
@@ -102,6 +107,7 @@ __export(index_exports, {
|
|
|
102
107
|
Variant: () => Variant,
|
|
103
108
|
createMuiTheme: () => createMuiTheme,
|
|
104
109
|
getThemeTokens: () => getThemeTokens,
|
|
110
|
+
passwordValidator: () => passwordValidator,
|
|
105
111
|
resolveThemeName: () => resolveThemeName,
|
|
106
112
|
themeRegistry: () => themeRegistry
|
|
107
113
|
});
|
|
@@ -1725,13 +1731,81 @@ function Grid({ container, spacing, ...props }) {
|
|
|
1725
1731
|
}
|
|
1726
1732
|
Grid.displayName = "ToolkitGrid";
|
|
1727
1733
|
|
|
1734
|
+
// src/components/IconText/IconText.tsx
|
|
1735
|
+
var import_react4 = __toESM(require("react"));
|
|
1736
|
+
|
|
1737
|
+
// src/components/IconText/IconText.styles.tsx
|
|
1738
|
+
var import_styles8 = require("@mui/material/styles");
|
|
1739
|
+
var import_material10 = require("@mui/material");
|
|
1740
|
+
var StyledIconTextRoot = (0, import_styles8.styled)("div")(
|
|
1741
|
+
({ $inheritFontFamily }) => ({
|
|
1742
|
+
display: "flex",
|
|
1743
|
+
alignItems: "center",
|
|
1744
|
+
backgroundColor: "inherit",
|
|
1745
|
+
color: "inherit",
|
|
1746
|
+
fontSize: "inherit",
|
|
1747
|
+
fontWeight: "inherit",
|
|
1748
|
+
textAlign: "inherit",
|
|
1749
|
+
textTransform: "inherit",
|
|
1750
|
+
...$inheritFontFamily && {
|
|
1751
|
+
fontFamily: "inherit",
|
|
1752
|
+
lineHeight: "inherit"
|
|
1753
|
+
}
|
|
1754
|
+
})
|
|
1755
|
+
);
|
|
1756
|
+
var StyledIconTextSymbol = (0, import_styles8.styled)(import_material10.SvgIcon, {
|
|
1757
|
+
shouldForwardProp: (prop) => prop !== "$position"
|
|
1758
|
+
})(({ theme, $position }) => ({
|
|
1759
|
+
flexShrink: 0,
|
|
1760
|
+
marginRight: $position === "front" ? theme.spacing(1) : 0,
|
|
1761
|
+
marginLeft: $position === "end" ? theme.spacing(1) : 0
|
|
1762
|
+
}));
|
|
1763
|
+
|
|
1764
|
+
// src/components/IconText/IconText.tsx
|
|
1765
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1766
|
+
var IconText = import_react4.default.forwardRef(
|
|
1767
|
+
function IconText2({
|
|
1768
|
+
symbol,
|
|
1769
|
+
symbolPosition = "front",
|
|
1770
|
+
symbolProps,
|
|
1771
|
+
inheritFontFamily = false,
|
|
1772
|
+
children,
|
|
1773
|
+
...rest
|
|
1774
|
+
}, ref) {
|
|
1775
|
+
const icon = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1776
|
+
StyledIconTextSymbol,
|
|
1777
|
+
{
|
|
1778
|
+
$position: symbolPosition,
|
|
1779
|
+
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1780
|
+
"aria-hidden": "true",
|
|
1781
|
+
...symbolProps,
|
|
1782
|
+
children: symbol.content && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1783
|
+
}
|
|
1784
|
+
);
|
|
1785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1786
|
+
StyledIconTextRoot,
|
|
1787
|
+
{
|
|
1788
|
+
ref,
|
|
1789
|
+
$inheritFontFamily: inheritFontFamily,
|
|
1790
|
+
...getCleanProps(rest),
|
|
1791
|
+
children: [
|
|
1792
|
+
symbolPosition === "front" && icon,
|
|
1793
|
+
children,
|
|
1794
|
+
symbolPosition === "end" && icon
|
|
1795
|
+
]
|
|
1796
|
+
}
|
|
1797
|
+
);
|
|
1798
|
+
}
|
|
1799
|
+
);
|
|
1800
|
+
IconText.displayName = "ToolkitIconText";
|
|
1801
|
+
|
|
1728
1802
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1729
1803
|
var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"));
|
|
1730
1804
|
|
|
1731
1805
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1732
1806
|
var import_Box2 = __toESM(require("@mui/material/Box"));
|
|
1733
|
-
var
|
|
1734
|
-
var StyledWrapper = (0,
|
|
1807
|
+
var import_styles9 = require("@mui/material/styles");
|
|
1808
|
+
var StyledWrapper = (0, import_styles9.styled)("div")(({ theme }) => ({
|
|
1735
1809
|
"& > a, & > div": {
|
|
1736
1810
|
textDecoration: "none",
|
|
1737
1811
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1740,7 +1814,7 @@ var StyledWrapper = (0, import_styles8.styled)("div")(({ theme }) => ({
|
|
|
1740
1814
|
}
|
|
1741
1815
|
}
|
|
1742
1816
|
}));
|
|
1743
|
-
var StyledListItemContainer = (0,
|
|
1817
|
+
var StyledListItemContainer = (0, import_styles9.styled)(import_Box2.default)(({ theme }) => ({
|
|
1744
1818
|
width: "100%",
|
|
1745
1819
|
minHeight: "66px",
|
|
1746
1820
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1783,19 +1857,19 @@ var StyledListItemContainer = (0, import_styles8.styled)(import_Box2.default)(({
|
|
|
1783
1857
|
outlineStyle: "solid"
|
|
1784
1858
|
}
|
|
1785
1859
|
}));
|
|
1786
|
-
var StyledLeftIconWrapper = (0,
|
|
1860
|
+
var StyledLeftIconWrapper = (0, import_styles9.styled)("span")({
|
|
1787
1861
|
display: "flex",
|
|
1788
1862
|
paddingLeft: "4px"
|
|
1789
1863
|
});
|
|
1790
|
-
var StyledRightIconWrapper = (0,
|
|
1864
|
+
var StyledRightIconWrapper = (0, import_styles9.styled)("span")({
|
|
1791
1865
|
display: "flex",
|
|
1792
1866
|
paddingRight: "4px"
|
|
1793
1867
|
});
|
|
1794
|
-
var StyledLabelContainer = (0,
|
|
1868
|
+
var StyledLabelContainer = (0, import_styles9.styled)("div")({
|
|
1795
1869
|
flex: 1,
|
|
1796
1870
|
padding: "12px 8px"
|
|
1797
1871
|
});
|
|
1798
|
-
var StyledLabel = (0,
|
|
1872
|
+
var StyledLabel = (0, import_styles9.styled)("p")(({ theme }) => ({
|
|
1799
1873
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1800
1874
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1801
1875
|
lineHeight: "20px",
|
|
@@ -1803,7 +1877,7 @@ var StyledLabel = (0, import_styles8.styled)("p")(({ theme }) => ({
|
|
|
1803
1877
|
margin: 0,
|
|
1804
1878
|
textDecoration: "none"
|
|
1805
1879
|
}));
|
|
1806
|
-
var StyledCaption = (0,
|
|
1880
|
+
var StyledCaption = (0, import_styles9.styled)("p")(({ theme }) => ({
|
|
1807
1881
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1808
1882
|
color: theme.tokens.colors.textSecondary,
|
|
1809
1883
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -1814,7 +1888,7 @@ var StyledCaption = (0, import_styles8.styled)("p")(({ theme }) => ({
|
|
|
1814
1888
|
}));
|
|
1815
1889
|
|
|
1816
1890
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1817
|
-
var
|
|
1891
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1818
1892
|
function InternalLinkItem({
|
|
1819
1893
|
link,
|
|
1820
1894
|
icon,
|
|
@@ -1823,19 +1897,19 @@ function InternalLinkItem({
|
|
|
1823
1897
|
component,
|
|
1824
1898
|
...restProps
|
|
1825
1899
|
}) {
|
|
1826
|
-
return /* @__PURE__ */ (0,
|
|
1900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1827
1901
|
StyledListItemContainer,
|
|
1828
1902
|
{
|
|
1829
1903
|
component: component ?? "a",
|
|
1830
1904
|
href: link,
|
|
1831
1905
|
...getCleanProps(restProps),
|
|
1832
1906
|
children: [
|
|
1833
|
-
icon && /* @__PURE__ */ (0,
|
|
1834
|
-
/* @__PURE__ */ (0,
|
|
1835
|
-
/* @__PURE__ */ (0,
|
|
1836
|
-
caption && /* @__PURE__ */ (0,
|
|
1907
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
1908
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(StyledLabelContainer, { children: [
|
|
1909
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledLabel, { className: "itemLabel", children: label }),
|
|
1910
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledCaption, { children: caption })
|
|
1837
1911
|
] }),
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
1912
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ChevronRight.default, { fontSize: "small" }) })
|
|
1839
1913
|
]
|
|
1840
1914
|
}
|
|
1841
1915
|
) });
|
|
@@ -1843,14 +1917,14 @@ function InternalLinkItem({
|
|
|
1843
1917
|
InternalLinkItem.displayName = "ToolkitInternalLinkItem";
|
|
1844
1918
|
|
|
1845
1919
|
// src/components/Link/Link.tsx
|
|
1846
|
-
var
|
|
1920
|
+
var import_react5 = __toESM(require("react"));
|
|
1847
1921
|
var import_OpenInNew = __toESM(require("@mui/icons-material/OpenInNew"));
|
|
1848
1922
|
var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"));
|
|
1849
1923
|
|
|
1850
1924
|
// src/components/Link/Link.styles.tsx
|
|
1851
1925
|
var import_Box3 = __toESM(require("@mui/material/Box"));
|
|
1852
|
-
var
|
|
1853
|
-
var StyledScreenReaderOnly = (0,
|
|
1926
|
+
var import_styles10 = require("@mui/material/styles");
|
|
1927
|
+
var StyledScreenReaderOnly = (0, import_styles10.styled)("span")({
|
|
1854
1928
|
position: "absolute",
|
|
1855
1929
|
width: "1px",
|
|
1856
1930
|
height: "1px",
|
|
@@ -1861,17 +1935,17 @@ var StyledScreenReaderOnly = (0, import_styles9.styled)("span")({
|
|
|
1861
1935
|
whiteSpace: "nowrap",
|
|
1862
1936
|
border: 0
|
|
1863
1937
|
});
|
|
1864
|
-
var StyledIconSpan = (0,
|
|
1865
|
-
shouldForwardProp: (prop) => prop !== "
|
|
1866
|
-
})(({
|
|
1938
|
+
var StyledIconSpan = (0, import_styles10.styled)("span", {
|
|
1939
|
+
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
1940
|
+
})(({ iconRight }) => ({
|
|
1867
1941
|
display: "inline-flex",
|
|
1868
1942
|
alignItems: "center",
|
|
1869
|
-
paddingLeft:
|
|
1870
|
-
paddingRight:
|
|
1943
|
+
paddingLeft: iconRight ? "4px" : void 0,
|
|
1944
|
+
paddingRight: iconRight ? void 0 : "4px"
|
|
1871
1945
|
}));
|
|
1872
|
-
var StyledAnchor = (0,
|
|
1873
|
-
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "
|
|
1874
|
-
})(({ theme, tint = "primary", isOnDarkBg, standalonelink,
|
|
1946
|
+
var StyledAnchor = (0, import_styles10.styled)(import_Box3.default, {
|
|
1947
|
+
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
1948
|
+
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
1875
1949
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
1876
1950
|
const baseColors = {
|
|
1877
1951
|
primary: theme.tokens.colors.primary,
|
|
@@ -1890,7 +1964,7 @@ var StyledAnchor = (0, import_styles9.styled)(import_Box3.default, {
|
|
|
1890
1964
|
return {
|
|
1891
1965
|
display: "inline-flex",
|
|
1892
1966
|
alignItems: "center",
|
|
1893
|
-
flexDirection:
|
|
1967
|
+
flexDirection: iconRight ? "row-reverse" : void 0,
|
|
1894
1968
|
verticalAlign: "bottom",
|
|
1895
1969
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1896
1970
|
textDecoration: "underline",
|
|
@@ -1911,12 +1985,12 @@ var StyledAnchor = (0, import_styles9.styled)(import_Box3.default, {
|
|
|
1911
1985
|
textDecoration: "underline",
|
|
1912
1986
|
color: baseColor,
|
|
1913
1987
|
outline: "none",
|
|
1914
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
1988
|
+
boxShadow: `0 0 0 3px ${(0, import_styles10.alpha)(baseColor, 0.35)}`,
|
|
1915
1989
|
"& svg": { color: baseColor }
|
|
1916
1990
|
},
|
|
1917
1991
|
"&:active": {
|
|
1918
1992
|
color: hoverColor,
|
|
1919
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
1993
|
+
boxShadow: `0 0 0 3px ${(0, import_styles10.alpha)(isOnDarkBg ? baseColor : hoverColor, 0.65)}`,
|
|
1920
1994
|
textDecoration: "none",
|
|
1921
1995
|
"& svg": { color: hoverColor }
|
|
1922
1996
|
},
|
|
@@ -1928,14 +2002,14 @@ var StyledAnchor = (0, import_styles9.styled)(import_Box3.default, {
|
|
|
1928
2002
|
});
|
|
1929
2003
|
|
|
1930
2004
|
// src/components/Link/Link.tsx
|
|
1931
|
-
var
|
|
2005
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1932
2006
|
var Variant = {
|
|
1933
2007
|
standard: "standard",
|
|
1934
2008
|
external: "external",
|
|
1935
2009
|
file: "file"
|
|
1936
2010
|
};
|
|
1937
2011
|
function DocumentIcon() {
|
|
1938
|
-
return /* @__PURE__ */ (0,
|
|
2012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_SvgIcon.default, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1939
2013
|
"path",
|
|
1940
2014
|
{
|
|
1941
2015
|
fillRule: "evenodd",
|
|
@@ -1953,7 +2027,7 @@ function getIcon(variant, icon) {
|
|
|
1953
2027
|
return icon;
|
|
1954
2028
|
}
|
|
1955
2029
|
}
|
|
1956
|
-
var Link =
|
|
2030
|
+
var Link = import_react5.default.forwardRef(function Link2({
|
|
1957
2031
|
children,
|
|
1958
2032
|
variant = "standard",
|
|
1959
2033
|
icon,
|
|
@@ -1968,9 +2042,9 @@ var Link = import_react4.default.forwardRef(function Link2({
|
|
|
1968
2042
|
}, ref) {
|
|
1969
2043
|
const Icon = getIcon(variant, icon);
|
|
1970
2044
|
const target = variant !== Variant.standard ? "_blank" : targetProp;
|
|
1971
|
-
const
|
|
2045
|
+
const iconRight = variant === Variant.external ? true : !!iconToRight;
|
|
1972
2046
|
const urlProp = component ? { to: href } : { href };
|
|
1973
|
-
return /* @__PURE__ */ (0,
|
|
2047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1974
2048
|
StyledAnchor,
|
|
1975
2049
|
{
|
|
1976
2050
|
component: component ?? "a",
|
|
@@ -1980,13 +2054,13 @@ var Link = import_react4.default.forwardRef(function Link2({
|
|
|
1980
2054
|
tint: color,
|
|
1981
2055
|
isOnDarkBg,
|
|
1982
2056
|
target,
|
|
1983
|
-
|
|
2057
|
+
iconRight,
|
|
1984
2058
|
standalonelink: !!standalone,
|
|
1985
2059
|
ref,
|
|
1986
2060
|
children: [
|
|
1987
|
-
Icon && /* @__PURE__ */ (0,
|
|
2061
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledIconSpan, { iconRight, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { fontSize: "inherit" }) }),
|
|
1988
2062
|
children,
|
|
1989
|
-
variant === Variant.external && /* @__PURE__ */ (0,
|
|
2063
|
+
variant === Variant.external && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
1990
2064
|
]
|
|
1991
2065
|
}
|
|
1992
2066
|
);
|
|
@@ -1994,12 +2068,12 @@ var Link = import_react4.default.forwardRef(function Link2({
|
|
|
1994
2068
|
Link.displayName = "ToolkitLink";
|
|
1995
2069
|
|
|
1996
2070
|
// src/components/LogoLink/LogoLink.tsx
|
|
1997
|
-
var
|
|
2071
|
+
var import_react6 = __toESM(require("react"));
|
|
1998
2072
|
|
|
1999
2073
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2000
2074
|
var import_Box4 = __toESM(require("@mui/material/Box"));
|
|
2001
|
-
var
|
|
2002
|
-
var StyledLogoLink = (0,
|
|
2075
|
+
var import_styles11 = require("@mui/material/styles");
|
|
2076
|
+
var StyledLogoLink = (0, import_styles11.styled)(import_Box4.default, {
|
|
2003
2077
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2004
2078
|
})(({ theme, isSmall }) => ({
|
|
2005
2079
|
display: "inline-flex",
|
|
@@ -2016,7 +2090,7 @@ var StyledLogoLink = (0, import_styles10.styled)(import_Box4.default, {
|
|
|
2016
2090
|
color: theme.tokens.colors.primaryDark
|
|
2017
2091
|
}
|
|
2018
2092
|
}));
|
|
2019
|
-
var StyledLogoSpan = (0,
|
|
2093
|
+
var StyledLogoSpan = (0, import_styles11.styled)("span")(({ theme }) => ({
|
|
2020
2094
|
padding: "0 10px 0 15px",
|
|
2021
2095
|
backgroundColor: theme.tokens.colors.primary,
|
|
2022
2096
|
height: "100%",
|
|
@@ -2034,9 +2108,9 @@ var StyledLogoSpan = (0, import_styles10.styled)("span")(({ theme }) => ({
|
|
|
2034
2108
|
}));
|
|
2035
2109
|
|
|
2036
2110
|
// src/components/LogoLink/LogoLink.tsx
|
|
2037
|
-
var
|
|
2038
|
-
var LogoLink =
|
|
2039
|
-
return /* @__PURE__ */ (0,
|
|
2111
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2112
|
+
var LogoLink = import_react6.default.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2040
2114
|
StyledLogoLink,
|
|
2041
2115
|
{
|
|
2042
2116
|
component: component ?? "a",
|
|
@@ -2046,14 +2120,14 @@ var LogoLink = import_react5.default.forwardRef(function LogoLink2({ children, h
|
|
|
2046
2120
|
"data-component-id": "LogoLink",
|
|
2047
2121
|
...getCleanProps(restProps),
|
|
2048
2122
|
ref,
|
|
2049
|
-
children: /* @__PURE__ */ (0,
|
|
2123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledLogoSpan, { children })
|
|
2050
2124
|
}
|
|
2051
2125
|
);
|
|
2052
2126
|
});
|
|
2053
2127
|
LogoLink.displayName = "ToolkitLogoLink";
|
|
2054
2128
|
|
|
2055
2129
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
2056
|
-
var
|
|
2130
|
+
var import_react7 = __toESM(require("react"));
|
|
2057
2131
|
var import_Portal = __toESM(require("@mui/material/Portal"));
|
|
2058
2132
|
var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"));
|
|
2059
2133
|
var import_utils = require("@mui/material/utils");
|
|
@@ -2214,21 +2288,21 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
2214
2288
|
}
|
|
2215
2289
|
|
|
2216
2290
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
2217
|
-
var import_styles11 = require("@mui/material/styles");
|
|
2218
2291
|
var import_styles12 = require("@mui/material/styles");
|
|
2292
|
+
var import_styles13 = require("@mui/material/styles");
|
|
2219
2293
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
2220
|
-
var StyledPageSpinnerRoot = (0,
|
|
2294
|
+
var StyledPageSpinnerRoot = (0, import_styles12.styled)("div")(() => ({
|
|
2221
2295
|
position: "relative"
|
|
2222
2296
|
}));
|
|
2223
|
-
var StyledOverlay = (0,
|
|
2297
|
+
var StyledOverlay = (0, import_styles12.styled)("div", {
|
|
2224
2298
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2225
2299
|
})(({ theme, $darkBg = false }) => ({
|
|
2226
2300
|
position: "fixed",
|
|
2227
2301
|
inset: 0,
|
|
2228
2302
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
2229
|
-
backgroundColor: $darkBg ? (0,
|
|
2303
|
+
backgroundColor: $darkBg ? (0, import_styles13.alpha)(theme.tokens.colors.textPrimary, 0.9) : (0, import_styles13.alpha)(theme.palette.common.white, 0.9)
|
|
2230
2304
|
}));
|
|
2231
|
-
var StyledSpinnerCentre = (0,
|
|
2305
|
+
var StyledSpinnerCentre = (0, import_styles12.styled)("div")(() => ({
|
|
2232
2306
|
position: "fixed",
|
|
2233
2307
|
top: "50%",
|
|
2234
2308
|
left: "50%",
|
|
@@ -2239,7 +2313,7 @@ var StyledSpinnerCentre = (0, import_styles11.styled)("div")(() => ({
|
|
|
2239
2313
|
alignItems: "center",
|
|
2240
2314
|
gap: "16px"
|
|
2241
2315
|
}));
|
|
2242
|
-
var StyledSpinnerMessage = (0,
|
|
2316
|
+
var StyledSpinnerMessage = (0, import_styles12.styled)("p", {
|
|
2243
2317
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2244
2318
|
})(({ theme, $darkBg = false }) => ({
|
|
2245
2319
|
margin: 0,
|
|
@@ -2250,7 +2324,7 @@ var StyledSpinnerMessage = (0, import_styles11.styled)("p", {
|
|
|
2250
2324
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
2251
2325
|
textAlign: "center"
|
|
2252
2326
|
}));
|
|
2253
|
-
var StyledScreenReaderOnly2 = (0,
|
|
2327
|
+
var StyledScreenReaderOnly2 = (0, import_styles12.styled)("span")(() => ({
|
|
2254
2328
|
position: "absolute",
|
|
2255
2329
|
width: "1px",
|
|
2256
2330
|
height: "1px",
|
|
@@ -2263,9 +2337,9 @@ var StyledScreenReaderOnly2 = (0, import_styles11.styled)("span")(() => ({
|
|
|
2263
2337
|
}));
|
|
2264
2338
|
|
|
2265
2339
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
2266
|
-
var
|
|
2340
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2267
2341
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
2268
|
-
var PageSpinner =
|
|
2342
|
+
var PageSpinner = import_react7.default.forwardRef(
|
|
2269
2343
|
function PageSpinner2({
|
|
2270
2344
|
message = "Processing, please wait",
|
|
2271
2345
|
customMessageLayout,
|
|
@@ -2275,14 +2349,14 @@ var PageSpinner = import_react6.default.forwardRef(
|
|
|
2275
2349
|
messageTone = "assertive",
|
|
2276
2350
|
...restProps
|
|
2277
2351
|
}, ref) {
|
|
2278
|
-
const internalRef = (0,
|
|
2352
|
+
const internalRef = (0, import_react7.useRef)(null);
|
|
2279
2353
|
const mergedRef = (0, import_utils.useForkRef)(ref, internalRef);
|
|
2280
|
-
(0,
|
|
2354
|
+
(0, import_react7.useEffect)(() => {
|
|
2281
2355
|
const blockKeyDown = (e) => e.preventDefault();
|
|
2282
2356
|
document.addEventListener("keydown", blockKeyDown);
|
|
2283
2357
|
return () => document.removeEventListener("keydown", blockKeyDown);
|
|
2284
2358
|
}, [rootNode]);
|
|
2285
|
-
(0,
|
|
2359
|
+
(0, import_react7.useEffect)(() => {
|
|
2286
2360
|
const ariaRole = messageTone === "polite" ? "status" : "alert";
|
|
2287
2361
|
setA11yMessage(message, messageTone, ariaRole);
|
|
2288
2362
|
const interval = setInterval(() => {
|
|
@@ -2297,7 +2371,7 @@ var PageSpinner = import_react6.default.forwardRef(
|
|
|
2297
2371
|
backgroundScrollTether(false);
|
|
2298
2372
|
};
|
|
2299
2373
|
}, [message, rootNode, messageTone]);
|
|
2300
|
-
return /* @__PURE__ */ (0,
|
|
2374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Portal.default, { container: rootNode, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2301
2375
|
StyledPageSpinnerRoot,
|
|
2302
2376
|
{
|
|
2303
2377
|
"data-component-id": "PageSpinner",
|
|
@@ -2305,9 +2379,9 @@ var PageSpinner = import_react6.default.forwardRef(
|
|
|
2305
2379
|
ref: mergedRef,
|
|
2306
2380
|
...getCleanProps(restProps),
|
|
2307
2381
|
children: [
|
|
2308
|
-
/* @__PURE__ */ (0,
|
|
2309
|
-
/* @__PURE__ */ (0,
|
|
2310
|
-
/* @__PURE__ */ (0,
|
|
2382
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
2383
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(StyledSpinnerCentre, { children: [
|
|
2384
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2311
2385
|
import_CircularProgress2.default,
|
|
2312
2386
|
{
|
|
2313
2387
|
size: 60,
|
|
@@ -2315,8 +2389,8 @@ var PageSpinner = import_react6.default.forwardRef(
|
|
|
2315
2389
|
"aria-hidden": "true"
|
|
2316
2390
|
}
|
|
2317
2391
|
),
|
|
2318
|
-
customMessageLayout ?? /* @__PURE__ */ (0,
|
|
2319
|
-
srText && /* @__PURE__ */ (0,
|
|
2392
|
+
customMessageLayout ?? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
2393
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledScreenReaderOnly2, { children: srText })
|
|
2320
2394
|
] })
|
|
2321
2395
|
]
|
|
2322
2396
|
}
|
|
@@ -2326,11 +2400,11 @@ var PageSpinner = import_react6.default.forwardRef(
|
|
|
2326
2400
|
PageSpinner.displayName = "ToolkitPageSpinner";
|
|
2327
2401
|
|
|
2328
2402
|
// src/components/Pagination/Pagination.tsx
|
|
2329
|
-
var
|
|
2403
|
+
var import_react8 = __toESM(require("react"));
|
|
2330
2404
|
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
2331
2405
|
|
|
2332
2406
|
// src/components/Pagination/Pagination.styles.tsx
|
|
2333
|
-
var
|
|
2407
|
+
var import_styles14 = require("@mui/material/styles");
|
|
2334
2408
|
var import_PaginationItem = __toESM(require("@mui/material/PaginationItem"));
|
|
2335
2409
|
function getColorValue(theme, color) {
|
|
2336
2410
|
switch (color) {
|
|
@@ -2350,58 +2424,58 @@ function getColorValue(theme, color) {
|
|
|
2350
2424
|
return theme.tokens.colors.textPrimary;
|
|
2351
2425
|
}
|
|
2352
2426
|
}
|
|
2353
|
-
var StyledPaginationItem = (0,
|
|
2427
|
+
var StyledPaginationItem = (0, import_styles14.styled)(import_PaginationItem.default, {
|
|
2354
2428
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
2355
2429
|
})(({ theme, $variant, $color }) => {
|
|
2356
2430
|
const colorValue = getColorValue(theme, $color);
|
|
2357
2431
|
if ($variant === "text") {
|
|
2358
2432
|
return {
|
|
2359
2433
|
"&.Mui-selected": {
|
|
2360
|
-
backgroundColor: (0,
|
|
2434
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.08),
|
|
2361
2435
|
color: colorValue,
|
|
2362
2436
|
"&:hover": {
|
|
2363
|
-
backgroundColor: (0,
|
|
2437
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.16)
|
|
2364
2438
|
}
|
|
2365
2439
|
}
|
|
2366
2440
|
};
|
|
2367
2441
|
}
|
|
2368
2442
|
if ($variant === "outlined") {
|
|
2369
2443
|
return {
|
|
2370
|
-
border: `1px solid ${(0,
|
|
2444
|
+
border: `1px solid ${(0, import_styles14.alpha)(colorValue, 0.24)}`,
|
|
2371
2445
|
"&.Mui-selected": {
|
|
2372
|
-
border: `1px solid ${(0,
|
|
2446
|
+
border: `1px solid ${(0, import_styles14.alpha)(colorValue, 0.8)}`,
|
|
2373
2447
|
color: colorValue,
|
|
2374
|
-
backgroundColor: (0,
|
|
2448
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.08),
|
|
2375
2449
|
"&:hover": {
|
|
2376
|
-
backgroundColor: (0,
|
|
2450
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.16)
|
|
2377
2451
|
}
|
|
2378
2452
|
}
|
|
2379
2453
|
};
|
|
2380
2454
|
}
|
|
2381
2455
|
return {
|
|
2382
2456
|
"&.Mui-selected": {
|
|
2383
|
-
backgroundColor: (0,
|
|
2457
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.16),
|
|
2384
2458
|
color: colorValue,
|
|
2385
2459
|
"&:hover": {
|
|
2386
|
-
backgroundColor: (0,
|
|
2460
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.32)
|
|
2387
2461
|
}
|
|
2388
2462
|
},
|
|
2389
2463
|
"&:hover": {
|
|
2390
|
-
backgroundColor: (0,
|
|
2464
|
+
backgroundColor: (0, import_styles14.alpha)(colorValue, 0.08)
|
|
2391
2465
|
}
|
|
2392
2466
|
};
|
|
2393
2467
|
});
|
|
2394
2468
|
|
|
2395
2469
|
// src/components/Pagination/Pagination.tsx
|
|
2396
|
-
var
|
|
2397
|
-
var Pagination =
|
|
2470
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2471
|
+
var Pagination = import_react8.default.forwardRef(
|
|
2398
2472
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
2399
|
-
return /* @__PURE__ */ (0,
|
|
2473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2400
2474
|
import_Pagination.default,
|
|
2401
2475
|
{
|
|
2402
2476
|
ref,
|
|
2403
2477
|
"data-component-id": "Pagination",
|
|
2404
|
-
renderItem: (item) => /* @__PURE__ */ (0,
|
|
2478
|
+
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2405
2479
|
StyledPaginationItem,
|
|
2406
2480
|
{
|
|
2407
2481
|
$variant: variant,
|
|
@@ -2418,11 +2492,11 @@ var Pagination = import_react7.default.forwardRef(
|
|
|
2418
2492
|
Pagination.displayName = "ToolkitPagination";
|
|
2419
2493
|
|
|
2420
2494
|
// src/components/Paragraph/Paragraph.tsx
|
|
2421
|
-
var
|
|
2495
|
+
var import_react9 = __toESM(require("react"));
|
|
2422
2496
|
|
|
2423
2497
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
2424
|
-
var
|
|
2425
|
-
var StyledParagraph = (0,
|
|
2498
|
+
var import_styles15 = require("@mui/material/styles");
|
|
2499
|
+
var StyledParagraph = (0, import_styles15.styled)("p", {
|
|
2426
2500
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
2427
2501
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
2428
2502
|
margin: 0,
|
|
@@ -2455,10 +2529,10 @@ var StyledParagraph = (0, import_styles14.styled)("p", {
|
|
|
2455
2529
|
}));
|
|
2456
2530
|
|
|
2457
2531
|
// src/components/Paragraph/Paragraph.tsx
|
|
2458
|
-
var
|
|
2459
|
-
var Paragraph =
|
|
2532
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2533
|
+
var Paragraph = import_react9.default.forwardRef(
|
|
2460
2534
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
2461
|
-
return /* @__PURE__ */ (0,
|
|
2535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2462
2536
|
StyledParagraph,
|
|
2463
2537
|
{
|
|
2464
2538
|
$variant: variant,
|
|
@@ -2473,11 +2547,195 @@ var Paragraph = import_react8.default.forwardRef(
|
|
|
2473
2547
|
);
|
|
2474
2548
|
Paragraph.displayName = "ToolkitParagraph";
|
|
2475
2549
|
|
|
2550
|
+
// src/components/Password/Password.tsx
|
|
2551
|
+
var import_react10 = __toESM(require("react"));
|
|
2552
|
+
|
|
2553
|
+
// src/components/Password/PasswordRule.tsx
|
|
2554
|
+
var import_CheckCircle = __toESM(require("@mui/icons-material/CheckCircle"));
|
|
2555
|
+
var import_Cancel = __toESM(require("@mui/icons-material/Cancel"));
|
|
2556
|
+
|
|
2557
|
+
// src/components/Password/PasswordRule.styles.tsx
|
|
2558
|
+
var import_styles16 = require("@mui/material/styles");
|
|
2559
|
+
var StyledPasswordRule = (0, import_styles16.styled)("div")(({ theme }) => ({
|
|
2560
|
+
display: "flex",
|
|
2561
|
+
alignItems: "center",
|
|
2562
|
+
gap: theme.tokens.spacing.xs,
|
|
2563
|
+
padding: `${theme.tokens.spacing.xs} 0`,
|
|
2564
|
+
"&.PasswordRule--valid": {
|
|
2565
|
+
color: theme.tokens.colors.success
|
|
2566
|
+
},
|
|
2567
|
+
"&.PasswordRule--invalid": {
|
|
2568
|
+
color: theme.tokens.colors.error
|
|
2569
|
+
}
|
|
2570
|
+
}));
|
|
2571
|
+
var StyledPasswordRuleIcon = (0, import_styles16.styled)("span")({
|
|
2572
|
+
display: "inline-flex",
|
|
2573
|
+
alignItems: "center",
|
|
2574
|
+
flexShrink: 0
|
|
2575
|
+
});
|
|
2576
|
+
var StyledPasswordRuleText = (0, import_styles16.styled)("span")(({ theme }) => ({
|
|
2577
|
+
fontSize: theme.tokens.typography.fontSizeSm
|
|
2578
|
+
}));
|
|
2579
|
+
var StyledScreenReaderOnly3 = (0, import_styles16.styled)("span")({
|
|
2580
|
+
position: "absolute",
|
|
2581
|
+
width: 1,
|
|
2582
|
+
height: 1,
|
|
2583
|
+
padding: 0,
|
|
2584
|
+
margin: -1,
|
|
2585
|
+
overflow: "hidden",
|
|
2586
|
+
clip: "rect(0, 0, 0, 0)",
|
|
2587
|
+
whiteSpace: "nowrap",
|
|
2588
|
+
border: 0
|
|
2589
|
+
});
|
|
2590
|
+
|
|
2591
|
+
// src/components/Password/PasswordRule.tsx
|
|
2592
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2593
|
+
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2594
|
+
StyledPasswordRule,
|
|
2595
|
+
{
|
|
2596
|
+
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
2597
|
+
"data-testid": `password-rule-${idx}`,
|
|
2598
|
+
children: [
|
|
2599
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_CheckCircle.default, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Cancel.default, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
2600
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledPasswordRuleText, { children: rule }),
|
|
2601
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
2602
|
+
]
|
|
2603
|
+
}
|
|
2604
|
+
);
|
|
2605
|
+
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
2606
|
+
|
|
2607
|
+
// src/components/Password/PasswordCriteria.styles.tsx
|
|
2608
|
+
var import_styles17 = require("@mui/material/styles");
|
|
2609
|
+
var StyledPasswordCriteriaContainer = (0, import_styles17.styled)("div")(
|
|
2610
|
+
({ theme, $show }) => ({
|
|
2611
|
+
display: $show ? "block" : "none",
|
|
2612
|
+
position: "absolute",
|
|
2613
|
+
top: "100%",
|
|
2614
|
+
left: 0,
|
|
2615
|
+
right: 0,
|
|
2616
|
+
zIndex: theme.tokens.zIndex.dropdown,
|
|
2617
|
+
marginTop: theme.tokens.spacing.xs
|
|
2618
|
+
})
|
|
2619
|
+
);
|
|
2620
|
+
var StyledPasswordRuleTitle = (0, import_styles17.styled)("div")(({ theme }) => ({
|
|
2621
|
+
color: theme.tokens.colors.textPrimary,
|
|
2622
|
+
fontSize: theme.tokens.typography.fontSizeSm,
|
|
2623
|
+
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
2624
|
+
padding: `${theme.tokens.spacing.xs} 0`,
|
|
2625
|
+
borderBottom: `1px solid ${theme.tokens.colors.border}`,
|
|
2626
|
+
marginBottom: theme.tokens.spacing.xs
|
|
2627
|
+
}));
|
|
2628
|
+
|
|
2629
|
+
// src/components/Password/PasswordCriteria.tsx
|
|
2630
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2631
|
+
var PasswordRules = [
|
|
2632
|
+
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
2633
|
+
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
2634
|
+
{ key: "uppercase", rule: "At least one uppercase letter" },
|
|
2635
|
+
{ key: "digit", rule: "At least one number" },
|
|
2636
|
+
{ key: "special", rule: "At least one special character" }
|
|
2637
|
+
];
|
|
2638
|
+
var passwordValidator = (value) => ({
|
|
2639
|
+
minLength: value.length >= 8,
|
|
2640
|
+
lowercase: /[a-z]/.test(value),
|
|
2641
|
+
uppercase: /[A-Z]/.test(value),
|
|
2642
|
+
digit: /[0-9]/.test(value),
|
|
2643
|
+
special: /[^A-Za-z0-9]/.test(value)
|
|
2644
|
+
});
|
|
2645
|
+
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
2646
|
+
const validity = passwordValidator(value);
|
|
2647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2648
|
+
StyledPasswordCriteriaContainer,
|
|
2649
|
+
{
|
|
2650
|
+
$show: show,
|
|
2651
|
+
"aria-hidden": !show,
|
|
2652
|
+
id,
|
|
2653
|
+
"data-testid": "password-criteria",
|
|
2654
|
+
role: "status",
|
|
2655
|
+
"aria-live": "polite",
|
|
2656
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Card, { compact: true, children: [
|
|
2657
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
2658
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
2659
|
+
] })
|
|
2660
|
+
}
|
|
2661
|
+
);
|
|
2662
|
+
};
|
|
2663
|
+
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
2664
|
+
|
|
2665
|
+
// src/components/Password/Password.styles.tsx
|
|
2666
|
+
var import_styles18 = require("@mui/material/styles");
|
|
2667
|
+
var StyledPasswordRoot = (0, import_styles18.styled)("div")({
|
|
2668
|
+
position: "relative"
|
|
2669
|
+
});
|
|
2670
|
+
var StyledPasswordInputWrapper = (0, import_styles18.styled)("div")({
|
|
2671
|
+
display: "flex",
|
|
2672
|
+
position: "relative"
|
|
2673
|
+
});
|
|
2674
|
+
|
|
2675
|
+
// src/components/Password/Password.tsx
|
|
2676
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2677
|
+
var Password = import_react10.default.forwardRef(
|
|
2678
|
+
function Password2({
|
|
2679
|
+
isInvalid,
|
|
2680
|
+
value: initialValue,
|
|
2681
|
+
label = "Password",
|
|
2682
|
+
onBlur,
|
|
2683
|
+
onChange,
|
|
2684
|
+
ariaDescribedby,
|
|
2685
|
+
ariaLabelledby,
|
|
2686
|
+
className,
|
|
2687
|
+
id,
|
|
2688
|
+
...rest
|
|
2689
|
+
}, ref) {
|
|
2690
|
+
const [value, setValue] = (0, import_react10.useState)(initialValue ?? "");
|
|
2691
|
+
const [showCriteria, setShowCriteria] = (0, import_react10.useState)(false);
|
|
2692
|
+
const handleFocus = () => {
|
|
2693
|
+
setShowCriteria(true);
|
|
2694
|
+
};
|
|
2695
|
+
const handleBlur = (event) => {
|
|
2696
|
+
setShowCriteria(false);
|
|
2697
|
+
onBlur?.(event);
|
|
2698
|
+
};
|
|
2699
|
+
const handleChange = (event) => {
|
|
2700
|
+
const newValue = event.target.value;
|
|
2701
|
+
setValue(newValue);
|
|
2702
|
+
const validity = passwordValidator(newValue);
|
|
2703
|
+
const isCriteriaMet = Object.values(validity).every(Boolean);
|
|
2704
|
+
onChange?.(event, isCriteriaMet);
|
|
2705
|
+
};
|
|
2706
|
+
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
2707
|
+
const cleanRest = getCleanProps(rest);
|
|
2708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
2709
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledPasswordInputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2710
|
+
TextField,
|
|
2711
|
+
{
|
|
2712
|
+
ref,
|
|
2713
|
+
id,
|
|
2714
|
+
label: ariaLabelledby ? void 0 : label,
|
|
2715
|
+
type: "password",
|
|
2716
|
+
showPasswordToggle: true,
|
|
2717
|
+
value,
|
|
2718
|
+
error: isInvalid,
|
|
2719
|
+
inputProps: {
|
|
2720
|
+
"aria-describedby": ariaDescribedby ?? criteriaId,
|
|
2721
|
+
"aria-labelledby": ariaLabelledby
|
|
2722
|
+
},
|
|
2723
|
+
onFocus: handleFocus,
|
|
2724
|
+
onBlur: handleBlur,
|
|
2725
|
+
onChange: handleChange
|
|
2726
|
+
}
|
|
2727
|
+
) }),
|
|
2728
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
2729
|
+
] });
|
|
2730
|
+
}
|
|
2731
|
+
);
|
|
2732
|
+
Password.displayName = "ToolkitPassword";
|
|
2733
|
+
|
|
2476
2734
|
// src/components/Spinner/Spinner.tsx
|
|
2477
|
-
var
|
|
2735
|
+
var import_react11 = __toESM(require("react"));
|
|
2478
2736
|
|
|
2479
2737
|
// src/components/Spinner/Spinner.styles.tsx
|
|
2480
|
-
var
|
|
2738
|
+
var import_styles19 = require("@mui/material/styles");
|
|
2481
2739
|
var spinnerSizing = {
|
|
2482
2740
|
xs: 20,
|
|
2483
2741
|
sm: 24,
|
|
@@ -2485,7 +2743,7 @@ var spinnerSizing = {
|
|
|
2485
2743
|
lg: 56,
|
|
2486
2744
|
xl: 72
|
|
2487
2745
|
};
|
|
2488
|
-
var StyledSpinnerContainer = (0,
|
|
2746
|
+
var StyledSpinnerContainer = (0, import_styles19.styled)("div", {
|
|
2489
2747
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
2490
2748
|
})({}, ({ $inline }) => ({
|
|
2491
2749
|
flex: "0 1 100%",
|
|
@@ -2493,7 +2751,7 @@ var StyledSpinnerContainer = (0, import_styles15.styled)("div", {
|
|
|
2493
2751
|
flexDirection: $inline ? "row" : "column",
|
|
2494
2752
|
alignItems: "center"
|
|
2495
2753
|
}));
|
|
2496
|
-
var StyledSpinnerIconContainer = (0,
|
|
2754
|
+
var StyledSpinnerIconContainer = (0, import_styles19.styled)("div", {
|
|
2497
2755
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
2498
2756
|
})(({ $size }) => {
|
|
2499
2757
|
const size = spinnerSizing[$size];
|
|
@@ -2503,12 +2761,12 @@ var StyledSpinnerIconContainer = (0, import_styles15.styled)("div", {
|
|
|
2503
2761
|
height: size
|
|
2504
2762
|
};
|
|
2505
2763
|
});
|
|
2506
|
-
var StyledSpinnerBackground = (0,
|
|
2764
|
+
var StyledSpinnerBackground = (0, import_styles19.styled)("div", {
|
|
2507
2765
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
2508
2766
|
})(({ theme, $size, $darkBg }) => {
|
|
2509
2767
|
const size = spinnerSizing[$size];
|
|
2510
2768
|
const lineWidth = Math.round(size / 12);
|
|
2511
|
-
const borderColor = $darkBg ? (0,
|
|
2769
|
+
const borderColor = $darkBg ? (0, import_styles19.alpha)(theme.palette.common.white, 0.2) : (0, import_styles19.alpha)(theme.tokens.colors.textPrimary, 0.1);
|
|
2512
2770
|
return {
|
|
2513
2771
|
position: "absolute",
|
|
2514
2772
|
width: size,
|
|
@@ -2517,7 +2775,7 @@ var StyledSpinnerBackground = (0, import_styles15.styled)("div", {
|
|
|
2517
2775
|
border: `${lineWidth}px solid ${borderColor}`
|
|
2518
2776
|
};
|
|
2519
2777
|
});
|
|
2520
|
-
var StyledSpinner = (0,
|
|
2778
|
+
var StyledSpinner = (0, import_styles19.styled)("div", {
|
|
2521
2779
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
2522
2780
|
})(({ theme, $size, $darkBg }) => {
|
|
2523
2781
|
const size = spinnerSizing[$size];
|
|
@@ -2540,7 +2798,7 @@ var StyledSpinner = (0, import_styles15.styled)("div", {
|
|
|
2540
2798
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
2541
2799
|
};
|
|
2542
2800
|
});
|
|
2543
|
-
var StyledSpinnerMessage2 = (0,
|
|
2801
|
+
var StyledSpinnerMessage2 = (0, import_styles19.styled)("span", {
|
|
2544
2802
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
2545
2803
|
})(({ theme, $darkBg, $inline }) => ({
|
|
2546
2804
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -2549,7 +2807,7 @@ var StyledSpinnerMessage2 = (0, import_styles15.styled)("span", {
|
|
|
2549
2807
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
2550
2808
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
2551
2809
|
}));
|
|
2552
|
-
var
|
|
2810
|
+
var StyledScreenReaderOnly4 = (0, import_styles19.styled)("span")({
|
|
2553
2811
|
position: "absolute",
|
|
2554
2812
|
width: 1,
|
|
2555
2813
|
height: 1,
|
|
@@ -2562,10 +2820,10 @@ var StyledScreenReaderOnly3 = (0, import_styles15.styled)("span")({
|
|
|
2562
2820
|
});
|
|
2563
2821
|
|
|
2564
2822
|
// src/components/Spinner/Spinner.tsx
|
|
2565
|
-
var
|
|
2566
|
-
var Spinner =
|
|
2823
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2824
|
+
var Spinner = import_react11.default.forwardRef(
|
|
2567
2825
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
2568
|
-
return /* @__PURE__ */ (0,
|
|
2826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2569
2827
|
StyledSpinnerContainer,
|
|
2570
2828
|
{
|
|
2571
2829
|
ref,
|
|
@@ -2573,12 +2831,12 @@ var Spinner = import_react9.default.forwardRef(
|
|
|
2573
2831
|
"data-component-id": "Spinner",
|
|
2574
2832
|
...getCleanProps(restProps),
|
|
2575
2833
|
children: [
|
|
2576
|
-
/* @__PURE__ */ (0,
|
|
2577
|
-
/* @__PURE__ */ (0,
|
|
2578
|
-
/* @__PURE__ */ (0,
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
2835
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
2836
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
2579
2837
|
] }),
|
|
2580
|
-
message && /* @__PURE__ */ (0,
|
|
2581
|
-
srText && /* @__PURE__ */ (0,
|
|
2838
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
2839
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledScreenReaderOnly4, { children: srText })
|
|
2582
2840
|
]
|
|
2583
2841
|
}
|
|
2584
2842
|
);
|
|
@@ -2590,14 +2848,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
2590
2848
|
var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"));
|
|
2591
2849
|
|
|
2592
2850
|
// src/components/Toggle/Toggle.styles.tsx
|
|
2593
|
-
var
|
|
2594
|
-
var StyledFieldset = (0,
|
|
2851
|
+
var import_styles20 = require("@mui/material/styles");
|
|
2852
|
+
var StyledFieldset = (0, import_styles20.styled)("fieldset")(({ theme }) => ({
|
|
2595
2853
|
border: "none",
|
|
2596
2854
|
margin: 0,
|
|
2597
2855
|
padding: 0,
|
|
2598
2856
|
minWidth: 0
|
|
2599
2857
|
}));
|
|
2600
|
-
var StyledLegend = (0,
|
|
2858
|
+
var StyledLegend = (0, import_styles20.styled)("legend")(({ theme }) => ({
|
|
2601
2859
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
2602
2860
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2603
2861
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -2605,7 +2863,7 @@ var StyledLegend = (0, import_styles16.styled)("legend")(({ theme }) => ({
|
|
|
2605
2863
|
marginBottom: theme.spacing(1),
|
|
2606
2864
|
padding: 0
|
|
2607
2865
|
}));
|
|
2608
|
-
var StyledToggleWrapper = (0,
|
|
2866
|
+
var StyledToggleWrapper = (0, import_styles20.styled)("div")(({ theme }) => ({
|
|
2609
2867
|
display: "flex",
|
|
2610
2868
|
flexDirection: "row",
|
|
2611
2869
|
width: theme.spacing(15),
|
|
@@ -2614,7 +2872,7 @@ var StyledToggleWrapper = (0, import_styles16.styled)("div")(({ theme }) => ({
|
|
|
2614
2872
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
2615
2873
|
borderRadius: theme.tokens.borderRadius.md
|
|
2616
2874
|
}));
|
|
2617
|
-
var StyledSwitch = (0,
|
|
2875
|
+
var StyledSwitch = (0, import_styles20.styled)("label", {
|
|
2618
2876
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
2619
2877
|
})(({ theme, selected, controlType }) => ({
|
|
2620
2878
|
position: "relative",
|
|
@@ -2704,7 +2962,7 @@ var StyledSwitch = (0, import_styles16.styled)("label", {
|
|
|
2704
2962
|
}));
|
|
2705
2963
|
|
|
2706
2964
|
// src/components/Toggle/Toggle.tsx
|
|
2707
|
-
var
|
|
2965
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2708
2966
|
function Toggle({
|
|
2709
2967
|
name,
|
|
2710
2968
|
checked = false,
|
|
@@ -2715,18 +2973,18 @@ function Toggle({
|
|
|
2715
2973
|
onBlur,
|
|
2716
2974
|
...restProps
|
|
2717
2975
|
}) {
|
|
2718
|
-
return /* @__PURE__ */ (0,
|
|
2719
|
-
label && /* @__PURE__ */ (0,
|
|
2720
|
-
description && /* @__PURE__ */ (0,
|
|
2721
|
-
/* @__PURE__ */ (0,
|
|
2722
|
-
/* @__PURE__ */ (0,
|
|
2976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
2977
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyledLegend, { children: label }),
|
|
2978
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_FormHelperText.default, { children: description }),
|
|
2979
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(StyledToggleWrapper, { children: [
|
|
2980
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2723
2981
|
StyledSwitch,
|
|
2724
2982
|
{
|
|
2725
2983
|
htmlFor: `${name}off`,
|
|
2726
2984
|
selected: !checked,
|
|
2727
2985
|
controlType: "off",
|
|
2728
2986
|
children: [
|
|
2729
|
-
/* @__PURE__ */ (0,
|
|
2987
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2730
2988
|
"input",
|
|
2731
2989
|
{
|
|
2732
2990
|
checked: !checked,
|
|
@@ -2742,14 +3000,14 @@ function Toggle({
|
|
|
2742
3000
|
]
|
|
2743
3001
|
}
|
|
2744
3002
|
),
|
|
2745
|
-
/* @__PURE__ */ (0,
|
|
3003
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2746
3004
|
StyledSwitch,
|
|
2747
3005
|
{
|
|
2748
3006
|
htmlFor: `${name}on`,
|
|
2749
3007
|
selected: checked,
|
|
2750
3008
|
controlType: "on",
|
|
2751
3009
|
children: [
|
|
2752
|
-
/* @__PURE__ */ (0,
|
|
3010
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2753
3011
|
"input",
|
|
2754
3012
|
{
|
|
2755
3013
|
checked,
|
|
@@ -2766,47 +3024,47 @@ function Toggle({
|
|
|
2766
3024
|
}
|
|
2767
3025
|
)
|
|
2768
3026
|
] }),
|
|
2769
|
-
error && /* @__PURE__ */ (0,
|
|
3027
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_FormHelperText.default, { error: true, children: error })
|
|
2770
3028
|
] });
|
|
2771
3029
|
}
|
|
2772
3030
|
Toggle.displayName = "ToolkitToggle";
|
|
2773
3031
|
|
|
2774
3032
|
// src/components/Table/Table.tsx
|
|
2775
|
-
var
|
|
2776
|
-
var
|
|
2777
|
-
var
|
|
2778
|
-
var StyledTableContainer = (0,
|
|
3033
|
+
var import_material11 = require("@mui/material");
|
|
3034
|
+
var import_styles21 = require("@mui/material/styles");
|
|
3035
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3036
|
+
var StyledTableContainer = (0, import_styles21.styled)(import_material11.TableContainer)(() => ({
|
|
2779
3037
|
overflowX: "auto"
|
|
2780
3038
|
}));
|
|
2781
|
-
var StyledHeadCell = (0,
|
|
3039
|
+
var StyledHeadCell = (0, import_styles21.styled)(import_material11.TableCell)(({ theme }) => ({
|
|
2782
3040
|
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
2783
3041
|
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
2784
3042
|
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
2785
3043
|
borderBottomColor: theme.tokens.components.table.borderColor
|
|
2786
3044
|
}));
|
|
2787
3045
|
function Table(props) {
|
|
2788
|
-
return /* @__PURE__ */ (0,
|
|
3046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material11.Table, { ...props });
|
|
2789
3047
|
}
|
|
2790
3048
|
function TableHead(props) {
|
|
2791
|
-
return /* @__PURE__ */ (0,
|
|
3049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material11.TableHead, { ...props });
|
|
2792
3050
|
}
|
|
2793
3051
|
function TableBody(props) {
|
|
2794
|
-
return /* @__PURE__ */ (0,
|
|
3052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material11.TableBody, { ...props });
|
|
2795
3053
|
}
|
|
2796
3054
|
function TableRow(props) {
|
|
2797
|
-
return /* @__PURE__ */ (0,
|
|
3055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material11.TableRow, { ...props });
|
|
2798
3056
|
}
|
|
2799
3057
|
function TableCell(props) {
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material11.TableCell, { ...props });
|
|
2801
3059
|
}
|
|
2802
3060
|
function TableHeadCell(props) {
|
|
2803
|
-
return /* @__PURE__ */ (0,
|
|
3061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
2804
3062
|
}
|
|
2805
3063
|
function TableContainer(props) {
|
|
2806
|
-
return /* @__PURE__ */ (0,
|
|
3064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledTableContainer, { ...props });
|
|
2807
3065
|
}
|
|
2808
|
-
var TablePagination =
|
|
2809
|
-
var TableSortLabel =
|
|
3066
|
+
var TablePagination = import_material11.TablePagination;
|
|
3067
|
+
var TableSortLabel = import_material11.TableSortLabel;
|
|
2810
3068
|
Table.displayName = "ToolkitTable";
|
|
2811
3069
|
TableHead.displayName = "ToolkitTableHead";
|
|
2812
3070
|
TableBody.displayName = "ToolkitTableBody";
|
|
@@ -2816,144 +3074,144 @@ TableHeadCell.displayName = "ToolkitTableHeadCell";
|
|
|
2816
3074
|
TableContainer.displayName = "ToolkitTableContainer";
|
|
2817
3075
|
|
|
2818
3076
|
// src/foundation/H1/H1.tsx
|
|
2819
|
-
var
|
|
2820
|
-
var
|
|
2821
|
-
var
|
|
2822
|
-
var H1 =
|
|
3077
|
+
var import_react12 = __toESM(require("react"));
|
|
3078
|
+
var import_material12 = require("@mui/material");
|
|
3079
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3080
|
+
var H1 = import_react12.default.forwardRef(
|
|
2823
3081
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
2824
|
-
return /* @__PURE__ */ (0,
|
|
3082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material12.Typography, { ref, variant: "h1", color, ...props, children });
|
|
2825
3083
|
}
|
|
2826
3084
|
);
|
|
2827
3085
|
H1.displayName = "ToolkitH1";
|
|
2828
3086
|
|
|
2829
3087
|
// src/foundation/H2/H2.tsx
|
|
2830
|
-
var
|
|
2831
|
-
var
|
|
2832
|
-
var
|
|
2833
|
-
var H2 =
|
|
3088
|
+
var import_react13 = __toESM(require("react"));
|
|
3089
|
+
var import_material13 = require("@mui/material");
|
|
3090
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3091
|
+
var H2 = import_react13.default.forwardRef(
|
|
2834
3092
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
2835
|
-
return /* @__PURE__ */ (0,
|
|
3093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material13.Typography, { ref, variant: "h2", color, ...props, children });
|
|
2836
3094
|
}
|
|
2837
3095
|
);
|
|
2838
3096
|
H2.displayName = "ToolkitH2";
|
|
2839
3097
|
|
|
2840
3098
|
// src/foundation/H3/H3.tsx
|
|
2841
|
-
var
|
|
2842
|
-
var
|
|
2843
|
-
var
|
|
2844
|
-
var H3 =
|
|
3099
|
+
var import_react14 = __toESM(require("react"));
|
|
3100
|
+
var import_material14 = require("@mui/material");
|
|
3101
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3102
|
+
var H3 = import_react14.default.forwardRef(
|
|
2845
3103
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
2846
|
-
return /* @__PURE__ */ (0,
|
|
3104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material14.Typography, { ref, variant: "h3", color, ...props, children });
|
|
2847
3105
|
}
|
|
2848
3106
|
);
|
|
2849
3107
|
H3.displayName = "ToolkitH3";
|
|
2850
3108
|
|
|
2851
3109
|
// src/foundation/H4/H4.tsx
|
|
2852
|
-
var
|
|
2853
|
-
var
|
|
2854
|
-
var
|
|
2855
|
-
var H4 =
|
|
3110
|
+
var import_react15 = __toESM(require("react"));
|
|
3111
|
+
var import_material15 = require("@mui/material");
|
|
3112
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3113
|
+
var H4 = import_react15.default.forwardRef(
|
|
2856
3114
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
2857
|
-
return /* @__PURE__ */ (0,
|
|
3115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_material15.Typography, { ref, variant: "h4", color, ...props, children });
|
|
2858
3116
|
}
|
|
2859
3117
|
);
|
|
2860
3118
|
H4.displayName = "ToolkitH4";
|
|
2861
3119
|
|
|
2862
3120
|
// src/foundation/H5/H5.tsx
|
|
2863
|
-
var
|
|
2864
|
-
var
|
|
2865
|
-
var
|
|
2866
|
-
var H5 =
|
|
3121
|
+
var import_react16 = __toESM(require("react"));
|
|
3122
|
+
var import_material16 = require("@mui/material");
|
|
3123
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3124
|
+
var H5 = import_react16.default.forwardRef(
|
|
2867
3125
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
2868
|
-
return /* @__PURE__ */ (0,
|
|
3126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { ref, variant: "h5", color, ...props, children });
|
|
2869
3127
|
}
|
|
2870
3128
|
);
|
|
2871
3129
|
H5.displayName = "ToolkitH5";
|
|
2872
3130
|
|
|
2873
3131
|
// src/foundation/H6/H6.tsx
|
|
2874
|
-
var
|
|
2875
|
-
var
|
|
2876
|
-
var
|
|
2877
|
-
var H6 =
|
|
3132
|
+
var import_react17 = __toESM(require("react"));
|
|
3133
|
+
var import_material17 = require("@mui/material");
|
|
3134
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3135
|
+
var H6 = import_react17.default.forwardRef(
|
|
2878
3136
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
2879
|
-
return /* @__PURE__ */ (0,
|
|
3137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { ref, variant: "h6", color, ...props, children });
|
|
2880
3138
|
}
|
|
2881
3139
|
);
|
|
2882
3140
|
H6.displayName = "ToolkitH6";
|
|
2883
3141
|
|
|
2884
3142
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
2885
|
-
var
|
|
2886
|
-
var
|
|
2887
|
-
var
|
|
2888
|
-
var Subtitle1 =
|
|
3143
|
+
var import_react18 = __toESM(require("react"));
|
|
3144
|
+
var import_material18 = require("@mui/material");
|
|
3145
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3146
|
+
var Subtitle1 = import_react18.default.forwardRef(
|
|
2889
3147
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
2890
|
-
return /* @__PURE__ */ (0,
|
|
3148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material18.Typography, { ref, variant: "subtitle1", color, ...props, children });
|
|
2891
3149
|
}
|
|
2892
3150
|
);
|
|
2893
3151
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
2894
3152
|
|
|
2895
3153
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
2896
|
-
var
|
|
2897
|
-
var
|
|
2898
|
-
var
|
|
2899
|
-
var Subtitle2 =
|
|
3154
|
+
var import_react19 = __toESM(require("react"));
|
|
3155
|
+
var import_material19 = require("@mui/material");
|
|
3156
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3157
|
+
var Subtitle2 = import_react19.default.forwardRef(
|
|
2900
3158
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
2901
|
-
return /* @__PURE__ */ (0,
|
|
3159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material19.Typography, { ref, variant: "subtitle2", color, ...props, children });
|
|
2902
3160
|
}
|
|
2903
3161
|
);
|
|
2904
3162
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
2905
3163
|
|
|
2906
3164
|
// src/foundation/Body1/Body1.tsx
|
|
2907
|
-
var
|
|
2908
|
-
var
|
|
2909
|
-
var
|
|
2910
|
-
var Body1 =
|
|
3165
|
+
var import_react20 = __toESM(require("react"));
|
|
3166
|
+
var import_material20 = require("@mui/material");
|
|
3167
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3168
|
+
var Body1 = import_react20.default.forwardRef(
|
|
2911
3169
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
2912
|
-
return /* @__PURE__ */ (0,
|
|
3170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material20.Typography, { ref, variant: "body1", color, ...props, children });
|
|
2913
3171
|
}
|
|
2914
3172
|
);
|
|
2915
3173
|
Body1.displayName = "ToolkitBody1";
|
|
2916
3174
|
|
|
2917
3175
|
// src/foundation/Body2/Body2.tsx
|
|
2918
|
-
var
|
|
2919
|
-
var
|
|
2920
|
-
var
|
|
2921
|
-
var Body2 =
|
|
3176
|
+
var import_react21 = __toESM(require("react"));
|
|
3177
|
+
var import_material21 = require("@mui/material");
|
|
3178
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3179
|
+
var Body2 = import_react21.default.forwardRef(
|
|
2922
3180
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
2923
|
-
return /* @__PURE__ */ (0,
|
|
3181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Typography, { ref, variant: "body2", color, ...props, children });
|
|
2924
3182
|
}
|
|
2925
3183
|
);
|
|
2926
3184
|
Body2.displayName = "ToolkitBody2";
|
|
2927
3185
|
|
|
2928
3186
|
// src/foundation/Caption/Caption.tsx
|
|
2929
|
-
var
|
|
2930
|
-
var
|
|
2931
|
-
var
|
|
2932
|
-
var Caption =
|
|
3187
|
+
var import_react22 = __toESM(require("react"));
|
|
3188
|
+
var import_material22 = require("@mui/material");
|
|
3189
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3190
|
+
var Caption = import_react22.default.forwardRef(
|
|
2933
3191
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
2934
|
-
return /* @__PURE__ */ (0,
|
|
3192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_material22.Typography, { ref, variant: "caption", color, ...props, children });
|
|
2935
3193
|
}
|
|
2936
3194
|
);
|
|
2937
3195
|
Caption.displayName = "ToolkitCaption";
|
|
2938
3196
|
|
|
2939
3197
|
// src/foundation/Overline/Overline.tsx
|
|
2940
|
-
var
|
|
2941
|
-
var
|
|
2942
|
-
var
|
|
2943
|
-
var Overline =
|
|
3198
|
+
var import_react23 = __toESM(require("react"));
|
|
3199
|
+
var import_material23 = require("@mui/material");
|
|
3200
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3201
|
+
var Overline = import_react23.default.forwardRef(
|
|
2944
3202
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
2945
|
-
return /* @__PURE__ */ (0,
|
|
3203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material23.Typography, { ref, variant: "overline", color, ...props, children });
|
|
2946
3204
|
}
|
|
2947
3205
|
);
|
|
2948
3206
|
Overline.displayName = "ToolkitOverline";
|
|
2949
3207
|
|
|
2950
3208
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
2951
|
-
var
|
|
2952
|
-
var
|
|
2953
|
-
var
|
|
2954
|
-
var TypographyButton =
|
|
3209
|
+
var import_react24 = __toESM(require("react"));
|
|
3210
|
+
var import_material24 = require("@mui/material");
|
|
3211
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3212
|
+
var TypographyButton = import_react24.default.forwardRef(
|
|
2955
3213
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
2956
|
-
return /* @__PURE__ */ (0,
|
|
3214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.Typography, { ref, variant: "button", color, ...props, children });
|
|
2957
3215
|
}
|
|
2958
3216
|
);
|
|
2959
3217
|
TypographyButton.displayName = "ToolkitTypographyButton";
|
|
@@ -2994,6 +3252,7 @@ TypographyButton.displayName = "ToolkitTypographyButton";
|
|
|
2994
3252
|
H4,
|
|
2995
3253
|
H5,
|
|
2996
3254
|
H6,
|
|
3255
|
+
IconText,
|
|
2997
3256
|
InternalLinkItem,
|
|
2998
3257
|
Link,
|
|
2999
3258
|
LogoLink,
|
|
@@ -3004,6 +3263,10 @@ TypographyButton.displayName = "ToolkitTypographyButton";
|
|
|
3004
3263
|
PageSpinner,
|
|
3005
3264
|
Pagination,
|
|
3006
3265
|
Paragraph,
|
|
3266
|
+
Password,
|
|
3267
|
+
PasswordCriteria,
|
|
3268
|
+
PasswordRule,
|
|
3269
|
+
PasswordRules,
|
|
3007
3270
|
Spinner,
|
|
3008
3271
|
StandaloneAccordion,
|
|
3009
3272
|
StaticDatePicker,
|
|
@@ -3031,6 +3294,7 @@ TypographyButton.displayName = "ToolkitTypographyButton";
|
|
|
3031
3294
|
Variant,
|
|
3032
3295
|
createMuiTheme,
|
|
3033
3296
|
getThemeTokens,
|
|
3297
|
+
passwordValidator,
|
|
3034
3298
|
resolveThemeName,
|
|
3035
3299
|
themeRegistry
|
|
3036
3300
|
});
|