@octoguide/mui-ui-toolkit 0.8.2 → 0.10.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 +49 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.js +479 -262
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +445 -230
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __export(index_exports, {
|
|
|
83
83
|
PasswordCriteria: () => PasswordCriteria,
|
|
84
84
|
PasswordRule: () => PasswordRule,
|
|
85
85
|
PasswordRules: () => PasswordRules,
|
|
86
|
+
RadioCardGroup: () => RadioCardGroup,
|
|
86
87
|
Spinner: () => Spinner,
|
|
87
88
|
StandaloneAccordion: () => StandaloneAccordion,
|
|
88
89
|
StaticDatePicker: () => StaticDatePicker,
|
|
@@ -102,6 +103,7 @@ __export(index_exports, {
|
|
|
102
103
|
TextField: () => TextField,
|
|
103
104
|
TimeField: () => TimeField,
|
|
104
105
|
TimePicker: () => TimePicker,
|
|
106
|
+
Toast: () => Toast,
|
|
105
107
|
Toggle: () => Toggle,
|
|
106
108
|
ToggleButton: () => ToggleButton,
|
|
107
109
|
ToggleButtonGroup: () => ToggleButtonGroup,
|
|
@@ -1626,6 +1628,96 @@ var ToggleButton = (0, import_styles8.styled)(import_material8.ToggleButton)(({
|
|
|
1626
1628
|
}));
|
|
1627
1629
|
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1628
1630
|
|
|
1631
|
+
// src/components/RadioCardGroup/RadioCardGroup.tsx
|
|
1632
|
+
var import_Box = __toESM(require("@mui/material/Box"));
|
|
1633
|
+
var import_styles9 = require("@mui/material/styles");
|
|
1634
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1635
|
+
var Card2 = (0, import_styles9.styled)(import_Box.default, {
|
|
1636
|
+
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
1637
|
+
})(({ theme, selected, disabled }) => ({
|
|
1638
|
+
display: "flex",
|
|
1639
|
+
alignItems: "flex-start",
|
|
1640
|
+
gap: theme.spacing(1.5),
|
|
1641
|
+
padding: theme.spacing(1.5),
|
|
1642
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1643
|
+
border: `1px solid ${selected ? theme.tokens.colors.primary : theme.tokens.colors.border}`,
|
|
1644
|
+
backgroundColor: selected ? theme.tokens.colors.backgroundSubtle : "transparent",
|
|
1645
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
1646
|
+
opacity: disabled ? 0.5 : 1,
|
|
1647
|
+
transition: `border-color ${theme.tokens.transitions.durationBase} ease, background-color ${theme.tokens.transitions.durationBase} ease`,
|
|
1648
|
+
"&:hover": !disabled && !selected ? {
|
|
1649
|
+
borderColor: theme.tokens.colors.primaryLight,
|
|
1650
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle
|
|
1651
|
+
} : {}
|
|
1652
|
+
}));
|
|
1653
|
+
var RadioDot = (0, import_styles9.styled)(import_Box.default, {
|
|
1654
|
+
shouldForwardProp: (prop) => prop !== "selected"
|
|
1655
|
+
})(({ theme, selected }) => ({
|
|
1656
|
+
marginTop: 2,
|
|
1657
|
+
flexShrink: 0,
|
|
1658
|
+
width: 16,
|
|
1659
|
+
height: 16,
|
|
1660
|
+
borderRadius: "50%",
|
|
1661
|
+
border: `2px solid ${selected ? theme.tokens.colors.primary : theme.tokens.colors.border}`,
|
|
1662
|
+
backgroundColor: selected ? theme.tokens.colors.primary : "transparent",
|
|
1663
|
+
transition: `border-color ${theme.tokens.transitions.durationBase} ease, background-color ${theme.tokens.transitions.durationBase} ease`
|
|
1664
|
+
}));
|
|
1665
|
+
var Label = (0, import_styles9.styled)("span")(({ theme }) => ({
|
|
1666
|
+
display: "block",
|
|
1667
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1668
|
+
fontSize: theme.tokens.typography.fontSizeMd,
|
|
1669
|
+
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
1670
|
+
color: theme.tokens.colors.textPrimary,
|
|
1671
|
+
lineHeight: 1.4
|
|
1672
|
+
}));
|
|
1673
|
+
var Description = (0, import_styles9.styled)("span")(({ theme }) => ({
|
|
1674
|
+
display: "block",
|
|
1675
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1676
|
+
fontSize: theme.tokens.typography.fontSizeSm,
|
|
1677
|
+
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
1678
|
+
color: theme.tokens.colors.textSecondary,
|
|
1679
|
+
lineHeight: 1.5,
|
|
1680
|
+
marginTop: 2
|
|
1681
|
+
}));
|
|
1682
|
+
function RadioCardGroup({ value, onChange, options, disabled = false }) {
|
|
1683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1684
|
+
import_Box.default,
|
|
1685
|
+
{
|
|
1686
|
+
role: "radiogroup",
|
|
1687
|
+
sx: { display: "flex", flexDirection: "column", gap: 1 },
|
|
1688
|
+
children: options.map((option) => {
|
|
1689
|
+
const selected = option.value === value;
|
|
1690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1691
|
+
Card2,
|
|
1692
|
+
{
|
|
1693
|
+
selected,
|
|
1694
|
+
disabled,
|
|
1695
|
+
role: "radio",
|
|
1696
|
+
"aria-checked": selected,
|
|
1697
|
+
tabIndex: disabled ? -1 : 0,
|
|
1698
|
+
onClick: () => !disabled && onChange(option.value),
|
|
1699
|
+
onKeyDown: (e) => {
|
|
1700
|
+
if (!disabled && (e.key === "Enter" || e.key === " ")) {
|
|
1701
|
+
e.preventDefault();
|
|
1702
|
+
onChange(option.value);
|
|
1703
|
+
}
|
|
1704
|
+
},
|
|
1705
|
+
children: [
|
|
1706
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(RadioDot, { selected }),
|
|
1707
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_Box.default, { children: [
|
|
1708
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Label, { children: option.label }),
|
|
1709
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Description, { children: option.description })
|
|
1710
|
+
] })
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1713
|
+
option.value
|
|
1714
|
+
);
|
|
1715
|
+
})
|
|
1716
|
+
}
|
|
1717
|
+
);
|
|
1718
|
+
}
|
|
1719
|
+
RadioCardGroup.displayName = "ToolkitRadioCardGroup";
|
|
1720
|
+
|
|
1629
1721
|
// src/components/DatePicker/DatePicker.tsx
|
|
1630
1722
|
var import_react3 = require("react");
|
|
1631
1723
|
var import_AdapterDayjs = require("@mui/x-date-pickers/AdapterDayjs");
|
|
@@ -1650,79 +1742,79 @@ var import_Dialog2 = __toESM(require("@mui/material/Dialog"));
|
|
|
1650
1742
|
var import_DialogContent2 = __toESM(require("@mui/material/DialogContent"));
|
|
1651
1743
|
var import_DialogActions2 = __toESM(require("@mui/material/DialogActions"));
|
|
1652
1744
|
var import_Button4 = __toESM(require("@mui/material/Button"));
|
|
1653
|
-
var
|
|
1745
|
+
var import_Box2 = __toESM(require("@mui/material/Box"));
|
|
1654
1746
|
var import_TextField3 = __toESM(require("@mui/material/TextField"));
|
|
1655
|
-
var
|
|
1656
|
-
var
|
|
1747
|
+
var import_styles10 = require("@mui/material/styles");
|
|
1748
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1657
1749
|
function DateLocalizationProvider({ children }) {
|
|
1658
|
-
return /* @__PURE__ */ (0,
|
|
1750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDayjs.AdapterDayjs, children });
|
|
1659
1751
|
}
|
|
1660
1752
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1661
1753
|
function DatePicker(props) {
|
|
1662
|
-
return /* @__PURE__ */ (0,
|
|
1754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DatePicker.DatePicker, { ...props });
|
|
1663
1755
|
}
|
|
1664
1756
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1665
1757
|
function DesktopDatePicker(props) {
|
|
1666
|
-
return /* @__PURE__ */ (0,
|
|
1758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DesktopDatePicker.DesktopDatePicker, { ...props });
|
|
1667
1759
|
}
|
|
1668
1760
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1669
1761
|
function MobileDatePicker(props) {
|
|
1670
|
-
return /* @__PURE__ */ (0,
|
|
1762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_MobileDatePicker.MobileDatePicker, { ...props });
|
|
1671
1763
|
}
|
|
1672
1764
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1673
1765
|
function DateField(props) {
|
|
1674
|
-
return /* @__PURE__ */ (0,
|
|
1766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DateField.DateField, { ...props });
|
|
1675
1767
|
}
|
|
1676
1768
|
DateField.displayName = "ToolkitDateField";
|
|
1677
1769
|
function StaticDatePicker(props) {
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_StaticDatePicker.StaticDatePicker, { ...props });
|
|
1679
1771
|
}
|
|
1680
1772
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1681
1773
|
function TimePicker(props) {
|
|
1682
|
-
return /* @__PURE__ */ (0,
|
|
1774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_TimePicker.TimePicker, { ...props });
|
|
1683
1775
|
}
|
|
1684
1776
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1685
1777
|
function DesktopTimePicker(props) {
|
|
1686
|
-
return /* @__PURE__ */ (0,
|
|
1778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DesktopTimePicker.DesktopTimePicker, { ...props });
|
|
1687
1779
|
}
|
|
1688
1780
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1689
1781
|
function MobileTimePicker(props) {
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_MobileTimePicker.MobileTimePicker, { ...props });
|
|
1691
1783
|
}
|
|
1692
1784
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1693
1785
|
function TimeField(props) {
|
|
1694
|
-
return /* @__PURE__ */ (0,
|
|
1786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_TimeField.TimeField, { ...props });
|
|
1695
1787
|
}
|
|
1696
1788
|
TimeField.displayName = "ToolkitTimeField";
|
|
1697
1789
|
function StaticTimePicker(props) {
|
|
1698
|
-
return /* @__PURE__ */ (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_StaticTimePicker.StaticTimePicker, { ...props });
|
|
1699
1791
|
}
|
|
1700
1792
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1701
1793
|
function DateTimePicker(props) {
|
|
1702
|
-
return /* @__PURE__ */ (0,
|
|
1794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DateTimePicker.DateTimePicker, { ...props });
|
|
1703
1795
|
}
|
|
1704
1796
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1705
1797
|
function DesktopDateTimePicker(props) {
|
|
1706
|
-
return /* @__PURE__ */ (0,
|
|
1798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DesktopDateTimePicker.DesktopDateTimePicker, { ...props });
|
|
1707
1799
|
}
|
|
1708
1800
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1709
1801
|
function MobileDateTimePicker(props) {
|
|
1710
|
-
return /* @__PURE__ */ (0,
|
|
1802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_MobileDateTimePicker.MobileDateTimePicker, { ...props });
|
|
1711
1803
|
}
|
|
1712
1804
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1713
1805
|
function DateTimeField(props) {
|
|
1714
|
-
return /* @__PURE__ */ (0,
|
|
1806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DateTimeField.DateTimeField, { ...props });
|
|
1715
1807
|
}
|
|
1716
1808
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1717
1809
|
function StaticDateTimePicker(props) {
|
|
1718
|
-
return /* @__PURE__ */ (0,
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_StaticDateTimePicker.StaticDateTimePicker, { ...props });
|
|
1719
1811
|
}
|
|
1720
1812
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1721
1813
|
function DateCalendar(props) {
|
|
1722
|
-
return /* @__PURE__ */ (0,
|
|
1814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DateCalendar.DateCalendar, { ...props });
|
|
1723
1815
|
}
|
|
1724
1816
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1725
|
-
var RangeRow = (0,
|
|
1817
|
+
var RangeRow = (0, import_styles10.styled)(import_Box2.default)(({ theme }) => ({
|
|
1726
1818
|
display: "flex",
|
|
1727
1819
|
gap: theme.spacing(2),
|
|
1728
1820
|
alignItems: "center"
|
|
@@ -1745,11 +1837,11 @@ function DateRangePickerInput({
|
|
|
1745
1837
|
onChange(draft);
|
|
1746
1838
|
setOpen(false);
|
|
1747
1839
|
};
|
|
1748
|
-
return /* @__PURE__ */ (0,
|
|
1749
|
-
/* @__PURE__ */ (0,
|
|
1750
|
-
/* @__PURE__ */ (0,
|
|
1751
|
-
/* @__PURE__ */ (0,
|
|
1752
|
-
/* @__PURE__ */ (0,
|
|
1840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1841
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1842
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_Dialog2.default, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1843
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DialogContent2.default, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(RangeRow, { children: [
|
|
1844
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1753
1845
|
import_DatePicker.DatePicker,
|
|
1754
1846
|
{
|
|
1755
1847
|
label: startLabel,
|
|
@@ -1758,7 +1850,7 @@ function DateRangePickerInput({
|
|
|
1758
1850
|
slotProps: { textField: { fullWidth: true } }
|
|
1759
1851
|
}
|
|
1760
1852
|
),
|
|
1761
|
-
/* @__PURE__ */ (0,
|
|
1853
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1762
1854
|
import_DatePicker.DatePicker,
|
|
1763
1855
|
{
|
|
1764
1856
|
label: endLabel,
|
|
@@ -1768,9 +1860,9 @@ function DateRangePickerInput({
|
|
|
1768
1860
|
}
|
|
1769
1861
|
)
|
|
1770
1862
|
] }) }),
|
|
1771
|
-
/* @__PURE__ */ (0,
|
|
1772
|
-
/* @__PURE__ */ (0,
|
|
1773
|
-
/* @__PURE__ */ (0,
|
|
1863
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_DialogActions2.default, { children: [
|
|
1864
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1865
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1774
1866
|
] })
|
|
1775
1867
|
] })
|
|
1776
1868
|
] });
|
|
@@ -1802,11 +1894,11 @@ function DateRangePickerCalendar({
|
|
|
1802
1894
|
setDraft((prev) => ({ ...prev, end: date }));
|
|
1803
1895
|
}
|
|
1804
1896
|
};
|
|
1805
|
-
return /* @__PURE__ */ (0,
|
|
1806
|
-
/* @__PURE__ */ (0,
|
|
1807
|
-
/* @__PURE__ */ (0,
|
|
1808
|
-
/* @__PURE__ */ (0,
|
|
1809
|
-
/* @__PURE__ */ (0,
|
|
1897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
1898
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1899
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_Dialog2.default, { open, onClose: handleCancel, children: [
|
|
1900
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_DialogContent2.default, { sx: { p: 1 }, children: [
|
|
1901
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Box2.default, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1810
1902
|
import_TextField3.default,
|
|
1811
1903
|
{
|
|
1812
1904
|
size: "small",
|
|
@@ -1816,7 +1908,7 @@ function DateRangePickerCalendar({
|
|
|
1816
1908
|
fullWidth: true
|
|
1817
1909
|
}
|
|
1818
1910
|
) }),
|
|
1819
|
-
/* @__PURE__ */ (0,
|
|
1911
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1820
1912
|
import_DateCalendar.DateCalendar,
|
|
1821
1913
|
{
|
|
1822
1914
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1824,9 +1916,9 @@ function DateRangePickerCalendar({
|
|
|
1824
1916
|
}
|
|
1825
1917
|
)
|
|
1826
1918
|
] }),
|
|
1827
|
-
/* @__PURE__ */ (0,
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1919
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_DialogActions2.default, { children: [
|
|
1920
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1921
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Button4.default, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1830
1922
|
] })
|
|
1831
1923
|
] })
|
|
1832
1924
|
] });
|
|
@@ -1835,9 +1927,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1835
1927
|
|
|
1836
1928
|
// src/foundation/Grid/Grid.tsx
|
|
1837
1929
|
var import_material9 = require("@mui/material");
|
|
1838
|
-
var
|
|
1930
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1839
1931
|
function Grid({ container, spacing, ...props }) {
|
|
1840
|
-
return /* @__PURE__ */ (0,
|
|
1932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1841
1933
|
import_material9.Grid2,
|
|
1842
1934
|
{
|
|
1843
1935
|
container,
|
|
@@ -1852,9 +1944,9 @@ Grid.displayName = "ToolkitGrid";
|
|
|
1852
1944
|
var import_react4 = __toESM(require("react"));
|
|
1853
1945
|
|
|
1854
1946
|
// src/components/IconText/IconText.styles.tsx
|
|
1855
|
-
var
|
|
1947
|
+
var import_styles11 = require("@mui/material/styles");
|
|
1856
1948
|
var import_material10 = require("@mui/material");
|
|
1857
|
-
var StyledIconTextRoot = (0,
|
|
1949
|
+
var StyledIconTextRoot = (0, import_styles11.styled)("div")(
|
|
1858
1950
|
({ $inheritFontFamily }) => ({
|
|
1859
1951
|
display: "flex",
|
|
1860
1952
|
alignItems: "center",
|
|
@@ -1870,7 +1962,7 @@ var StyledIconTextRoot = (0, import_styles10.styled)("div")(
|
|
|
1870
1962
|
}
|
|
1871
1963
|
})
|
|
1872
1964
|
);
|
|
1873
|
-
var StyledIconTextSymbol = (0,
|
|
1965
|
+
var StyledIconTextSymbol = (0, import_styles11.styled)(import_material10.SvgIcon, {
|
|
1874
1966
|
shouldForwardProp: (prop) => prop !== "$position"
|
|
1875
1967
|
})(({ theme, $position }) => ({
|
|
1876
1968
|
flexShrink: 0,
|
|
@@ -1879,7 +1971,7 @@ var StyledIconTextSymbol = (0, import_styles10.styled)(import_material10.SvgIcon
|
|
|
1879
1971
|
}));
|
|
1880
1972
|
|
|
1881
1973
|
// src/components/IconText/IconText.tsx
|
|
1882
|
-
var
|
|
1974
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1883
1975
|
var IconText = import_react4.default.forwardRef(
|
|
1884
1976
|
function IconText2({
|
|
1885
1977
|
symbol,
|
|
@@ -1889,17 +1981,17 @@ var IconText = import_react4.default.forwardRef(
|
|
|
1889
1981
|
children,
|
|
1890
1982
|
...rest
|
|
1891
1983
|
}, ref) {
|
|
1892
|
-
const icon = /* @__PURE__ */ (0,
|
|
1984
|
+
const icon = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1893
1985
|
StyledIconTextSymbol,
|
|
1894
1986
|
{
|
|
1895
1987
|
$position: symbolPosition,
|
|
1896
1988
|
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1897
1989
|
"aria-hidden": "true",
|
|
1898
1990
|
...symbolProps,
|
|
1899
|
-
children: symbol.content && /* @__PURE__ */ (0,
|
|
1991
|
+
children: symbol.content && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1900
1992
|
}
|
|
1901
1993
|
);
|
|
1902
|
-
return /* @__PURE__ */ (0,
|
|
1994
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1903
1995
|
StyledIconTextRoot,
|
|
1904
1996
|
{
|
|
1905
1997
|
ref,
|
|
@@ -1920,9 +2012,9 @@ IconText.displayName = "ToolkitIconText";
|
|
|
1920
2012
|
var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"));
|
|
1921
2013
|
|
|
1922
2014
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1923
|
-
var
|
|
1924
|
-
var
|
|
1925
|
-
var StyledWrapper = (0,
|
|
2015
|
+
var import_Box3 = __toESM(require("@mui/material/Box"));
|
|
2016
|
+
var import_styles12 = require("@mui/material/styles");
|
|
2017
|
+
var StyledWrapper = (0, import_styles12.styled)("div")(({ theme }) => ({
|
|
1926
2018
|
"& > a, & > div": {
|
|
1927
2019
|
textDecoration: "none",
|
|
1928
2020
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1931,7 +2023,7 @@ var StyledWrapper = (0, import_styles11.styled)("div")(({ theme }) => ({
|
|
|
1931
2023
|
}
|
|
1932
2024
|
}
|
|
1933
2025
|
}));
|
|
1934
|
-
var StyledListItemContainer = (0,
|
|
2026
|
+
var StyledListItemContainer = (0, import_styles12.styled)(import_Box3.default)(({ theme }) => ({
|
|
1935
2027
|
width: "100%",
|
|
1936
2028
|
minHeight: "66px",
|
|
1937
2029
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1974,19 +2066,19 @@ var StyledListItemContainer = (0, import_styles11.styled)(import_Box2.default)((
|
|
|
1974
2066
|
outlineStyle: "solid"
|
|
1975
2067
|
}
|
|
1976
2068
|
}));
|
|
1977
|
-
var StyledLeftIconWrapper = (0,
|
|
2069
|
+
var StyledLeftIconWrapper = (0, import_styles12.styled)("span")({
|
|
1978
2070
|
display: "flex",
|
|
1979
2071
|
paddingLeft: "4px"
|
|
1980
2072
|
});
|
|
1981
|
-
var StyledRightIconWrapper = (0,
|
|
2073
|
+
var StyledRightIconWrapper = (0, import_styles12.styled)("span")({
|
|
1982
2074
|
display: "flex",
|
|
1983
2075
|
paddingRight: "4px"
|
|
1984
2076
|
});
|
|
1985
|
-
var StyledLabelContainer = (0,
|
|
2077
|
+
var StyledLabelContainer = (0, import_styles12.styled)("div")({
|
|
1986
2078
|
flex: 1,
|
|
1987
2079
|
padding: "12px 8px"
|
|
1988
2080
|
});
|
|
1989
|
-
var StyledLabel = (0,
|
|
2081
|
+
var StyledLabel = (0, import_styles12.styled)("p")(({ theme }) => ({
|
|
1990
2082
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1991
2083
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1992
2084
|
lineHeight: "20px",
|
|
@@ -1994,7 +2086,7 @@ var StyledLabel = (0, import_styles11.styled)("p")(({ theme }) => ({
|
|
|
1994
2086
|
margin: 0,
|
|
1995
2087
|
textDecoration: "none"
|
|
1996
2088
|
}));
|
|
1997
|
-
var StyledCaption = (0,
|
|
2089
|
+
var StyledCaption = (0, import_styles12.styled)("p")(({ theme }) => ({
|
|
1998
2090
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1999
2091
|
color: theme.tokens.colors.textSecondary,
|
|
2000
2092
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -2005,7 +2097,7 @@ var StyledCaption = (0, import_styles11.styled)("p")(({ theme }) => ({
|
|
|
2005
2097
|
}));
|
|
2006
2098
|
|
|
2007
2099
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
2008
|
-
var
|
|
2100
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2009
2101
|
function InternalLinkItem({
|
|
2010
2102
|
link,
|
|
2011
2103
|
icon,
|
|
@@ -2014,19 +2106,19 @@ function InternalLinkItem({
|
|
|
2014
2106
|
component,
|
|
2015
2107
|
...restProps
|
|
2016
2108
|
}) {
|
|
2017
|
-
return /* @__PURE__ */ (0,
|
|
2109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2018
2110
|
StyledListItemContainer,
|
|
2019
2111
|
{
|
|
2020
2112
|
component: component ?? "a",
|
|
2021
2113
|
href: link,
|
|
2022
2114
|
...getCleanProps(restProps),
|
|
2023
2115
|
children: [
|
|
2024
|
-
icon && /* @__PURE__ */ (0,
|
|
2025
|
-
/* @__PURE__ */ (0,
|
|
2026
|
-
/* @__PURE__ */ (0,
|
|
2027
|
-
caption && /* @__PURE__ */ (0,
|
|
2116
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
2117
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(StyledLabelContainer, { children: [
|
|
2118
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledLabel, { className: "itemLabel", children: label }),
|
|
2119
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledCaption, { children: caption })
|
|
2028
2120
|
] }),
|
|
2029
|
-
/* @__PURE__ */ (0,
|
|
2121
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_ChevronRight.default, { fontSize: "small" }) })
|
|
2030
2122
|
]
|
|
2031
2123
|
}
|
|
2032
2124
|
) });
|
|
@@ -2039,9 +2131,9 @@ var import_OpenInNew = __toESM(require("@mui/icons-material/OpenInNew"));
|
|
|
2039
2131
|
var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"));
|
|
2040
2132
|
|
|
2041
2133
|
// src/components/Link/Link.styles.tsx
|
|
2042
|
-
var
|
|
2043
|
-
var
|
|
2044
|
-
var StyledScreenReaderOnly = (0,
|
|
2134
|
+
var import_Box4 = __toESM(require("@mui/material/Box"));
|
|
2135
|
+
var import_styles13 = require("@mui/material/styles");
|
|
2136
|
+
var StyledScreenReaderOnly = (0, import_styles13.styled)("span")({
|
|
2045
2137
|
position: "absolute",
|
|
2046
2138
|
width: "1px",
|
|
2047
2139
|
height: "1px",
|
|
@@ -2052,7 +2144,7 @@ var StyledScreenReaderOnly = (0, import_styles12.styled)("span")({
|
|
|
2052
2144
|
whiteSpace: "nowrap",
|
|
2053
2145
|
border: 0
|
|
2054
2146
|
});
|
|
2055
|
-
var StyledIconSpan = (0,
|
|
2147
|
+
var StyledIconSpan = (0, import_styles13.styled)("span", {
|
|
2056
2148
|
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
2057
2149
|
})(({ iconRight }) => ({
|
|
2058
2150
|
display: "inline-flex",
|
|
@@ -2060,7 +2152,7 @@ var StyledIconSpan = (0, import_styles12.styled)("span", {
|
|
|
2060
2152
|
paddingLeft: iconRight ? "4px" : void 0,
|
|
2061
2153
|
paddingRight: iconRight ? void 0 : "4px"
|
|
2062
2154
|
}));
|
|
2063
|
-
var StyledAnchor = (0,
|
|
2155
|
+
var StyledAnchor = (0, import_styles13.styled)(import_Box4.default, {
|
|
2064
2156
|
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
2065
2157
|
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
2066
2158
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
@@ -2102,12 +2194,12 @@ var StyledAnchor = (0, import_styles12.styled)(import_Box3.default, {
|
|
|
2102
2194
|
textDecoration: "underline",
|
|
2103
2195
|
color: baseColor,
|
|
2104
2196
|
outline: "none",
|
|
2105
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
2197
|
+
boxShadow: `0 0 0 3px ${(0, import_styles13.alpha)(baseColor, 0.35)}`,
|
|
2106
2198
|
"& svg": { color: baseColor }
|
|
2107
2199
|
},
|
|
2108
2200
|
"&:active": {
|
|
2109
2201
|
color: hoverColor,
|
|
2110
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
2202
|
+
boxShadow: `0 0 0 3px ${(0, import_styles13.alpha)(isOnDarkBg ? baseColor : hoverColor, 0.65)}`,
|
|
2111
2203
|
textDecoration: "none",
|
|
2112
2204
|
"& svg": { color: hoverColor }
|
|
2113
2205
|
},
|
|
@@ -2119,14 +2211,14 @@ var StyledAnchor = (0, import_styles12.styled)(import_Box3.default, {
|
|
|
2119
2211
|
});
|
|
2120
2212
|
|
|
2121
2213
|
// src/components/Link/Link.tsx
|
|
2122
|
-
var
|
|
2214
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2123
2215
|
var Variant = {
|
|
2124
2216
|
standard: "standard",
|
|
2125
2217
|
external: "external",
|
|
2126
2218
|
file: "file"
|
|
2127
2219
|
};
|
|
2128
2220
|
function DocumentIcon() {
|
|
2129
|
-
return /* @__PURE__ */ (0,
|
|
2221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_SvgIcon.default, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2130
2222
|
"path",
|
|
2131
2223
|
{
|
|
2132
2224
|
fillRule: "evenodd",
|
|
@@ -2161,7 +2253,7 @@ var Link = import_react5.default.forwardRef(function Link2({
|
|
|
2161
2253
|
const target = variant !== Variant.standard ? "_blank" : targetProp;
|
|
2162
2254
|
const iconRight = variant === Variant.external ? true : !!iconToRight;
|
|
2163
2255
|
const urlProp = component ? { to: href } : { href };
|
|
2164
|
-
return /* @__PURE__ */ (0,
|
|
2256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
2165
2257
|
StyledAnchor,
|
|
2166
2258
|
{
|
|
2167
2259
|
component: component ?? "a",
|
|
@@ -2175,9 +2267,9 @@ var Link = import_react5.default.forwardRef(function Link2({
|
|
|
2175
2267
|
standalonelink: !!standalone,
|
|
2176
2268
|
ref,
|
|
2177
2269
|
children: [
|
|
2178
|
-
Icon && /* @__PURE__ */ (0,
|
|
2270
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledIconSpan, { iconRight, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { fontSize: "inherit" }) }),
|
|
2179
2271
|
children,
|
|
2180
|
-
variant === Variant.external && /* @__PURE__ */ (0,
|
|
2272
|
+
variant === Variant.external && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
2181
2273
|
]
|
|
2182
2274
|
}
|
|
2183
2275
|
);
|
|
@@ -2188,9 +2280,9 @@ Link.displayName = "ToolkitLink";
|
|
|
2188
2280
|
var import_react6 = __toESM(require("react"));
|
|
2189
2281
|
|
|
2190
2282
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2191
|
-
var
|
|
2192
|
-
var
|
|
2193
|
-
var StyledLogoLink = (0,
|
|
2283
|
+
var import_Box5 = __toESM(require("@mui/material/Box"));
|
|
2284
|
+
var import_styles14 = require("@mui/material/styles");
|
|
2285
|
+
var StyledLogoLink = (0, import_styles14.styled)(import_Box5.default, {
|
|
2194
2286
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2195
2287
|
})(({ theme, isSmall }) => ({
|
|
2196
2288
|
display: "inline-flex",
|
|
@@ -2207,7 +2299,7 @@ var StyledLogoLink = (0, import_styles13.styled)(import_Box4.default, {
|
|
|
2207
2299
|
color: theme.tokens.colors.primaryDark
|
|
2208
2300
|
}
|
|
2209
2301
|
}));
|
|
2210
|
-
var StyledLogoSpan = (0,
|
|
2302
|
+
var StyledLogoSpan = (0, import_styles14.styled)("span")(({ theme }) => ({
|
|
2211
2303
|
padding: "0 10px 0 15px",
|
|
2212
2304
|
backgroundColor: theme.tokens.colors.primary,
|
|
2213
2305
|
height: "100%",
|
|
@@ -2225,9 +2317,9 @@ var StyledLogoSpan = (0, import_styles13.styled)("span")(({ theme }) => ({
|
|
|
2225
2317
|
}));
|
|
2226
2318
|
|
|
2227
2319
|
// src/components/LogoLink/LogoLink.tsx
|
|
2228
|
-
var
|
|
2320
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2229
2321
|
var LogoLink = import_react6.default.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2230
|
-
return /* @__PURE__ */ (0,
|
|
2322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2231
2323
|
StyledLogoLink,
|
|
2232
2324
|
{
|
|
2233
2325
|
component: component ?? "a",
|
|
@@ -2237,7 +2329,7 @@ var LogoLink = import_react6.default.forwardRef(function LogoLink2({ children, h
|
|
|
2237
2329
|
"data-component-id": "LogoLink",
|
|
2238
2330
|
...getCleanProps(restProps),
|
|
2239
2331
|
ref,
|
|
2240
|
-
children: /* @__PURE__ */ (0,
|
|
2332
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledLogoSpan, { children })
|
|
2241
2333
|
}
|
|
2242
2334
|
);
|
|
2243
2335
|
});
|
|
@@ -2375,8 +2467,8 @@ var SELECT_ALL_OPTION = {
|
|
|
2375
2467
|
};
|
|
2376
2468
|
|
|
2377
2469
|
// src/components/MultiSelect/MultiSelect.styles.tsx
|
|
2378
|
-
var
|
|
2379
|
-
var StyledMultiSelectContainer = (0,
|
|
2470
|
+
var import_styles15 = require("@mui/material/styles");
|
|
2471
|
+
var StyledMultiSelectContainer = (0, import_styles15.styled)("div")(({ theme }) => ({
|
|
2380
2472
|
display: "inline-block",
|
|
2381
2473
|
position: "relative",
|
|
2382
2474
|
width: "100%",
|
|
@@ -2385,7 +2477,7 @@ var StyledMultiSelectContainer = (0, import_styles14.styled)("div")(({ theme })
|
|
|
2385
2477
|
borderRadius: theme.tokens.borderRadius.md,
|
|
2386
2478
|
fontFamily: theme.tokens.typography.fontFamilyBase
|
|
2387
2479
|
}));
|
|
2388
|
-
var StyledSelectionContainerOutline = (0,
|
|
2480
|
+
var StyledSelectionContainerOutline = (0, import_styles15.styled)("div")(
|
|
2389
2481
|
({ theme, isError }) => ({
|
|
2390
2482
|
border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
|
|
2391
2483
|
borderRadius: theme.tokens.borderRadius.md,
|
|
@@ -2398,7 +2490,7 @@ var StyledSelectionContainerOutline = (0, import_styles14.styled)("div")(
|
|
|
2398
2490
|
zIndex: 0
|
|
2399
2491
|
})
|
|
2400
2492
|
);
|
|
2401
|
-
var StyledSelectionContainer = (0,
|
|
2493
|
+
var StyledSelectionContainer = (0, import_styles15.styled)("button")(
|
|
2402
2494
|
({ theme, isError }) => ({
|
|
2403
2495
|
display: "inline-flex",
|
|
2404
2496
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -2420,7 +2512,7 @@ var StyledSelectionContainer = (0, import_styles14.styled)("button")(
|
|
|
2420
2512
|
outline: "none"
|
|
2421
2513
|
},
|
|
2422
2514
|
'&:focus:not([data-lose-focus="true"])': {
|
|
2423
|
-
boxShadow: `${(0,
|
|
2515
|
+
boxShadow: `${(0, import_styles15.alpha)(theme.palette.text.primary, 0.65)} 0 0 0 3px`,
|
|
2424
2516
|
outlineColor: "transparent",
|
|
2425
2517
|
outlineStyle: "solid",
|
|
2426
2518
|
borderColor: theme.palette.text.primary,
|
|
@@ -2431,11 +2523,11 @@ var StyledSelectionContainer = (0, import_styles14.styled)("button")(
|
|
|
2431
2523
|
cursor: "default"
|
|
2432
2524
|
},
|
|
2433
2525
|
...isError && {
|
|
2434
|
-
boxShadow: `${(0,
|
|
2526
|
+
boxShadow: `${(0, import_styles15.alpha)(theme.tokens.colors.error, 0.65)} 0 0 0 3px`
|
|
2435
2527
|
}
|
|
2436
2528
|
})
|
|
2437
2529
|
);
|
|
2438
|
-
var StyledSelectPlaceholder = (0,
|
|
2530
|
+
var StyledSelectPlaceholder = (0, import_styles15.styled)("span")(({ theme }) => ({
|
|
2439
2531
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2440
2532
|
display: "inline-block",
|
|
2441
2533
|
flexGrow: 1,
|
|
@@ -2443,13 +2535,13 @@ var StyledSelectPlaceholder = (0, import_styles14.styled)("span")(({ theme }) =>
|
|
|
2443
2535
|
border: "none",
|
|
2444
2536
|
outline: "none"
|
|
2445
2537
|
}));
|
|
2446
|
-
var StyledPopperInner = (0,
|
|
2538
|
+
var StyledPopperInner = (0, import_styles15.styled)("div")(({ theme }) => ({
|
|
2447
2539
|
width: "100%",
|
|
2448
2540
|
overflow: "hidden",
|
|
2449
2541
|
boxSizing: "border-box",
|
|
2450
2542
|
zIndex: theme.zIndex.tooltip
|
|
2451
2543
|
}));
|
|
2452
|
-
var StyledTransitionContainer = (0,
|
|
2544
|
+
var StyledTransitionContainer = (0, import_styles15.styled)("ul")(({ theme }) => ({
|
|
2453
2545
|
"&:focus": {
|
|
2454
2546
|
outline: "1px solid transparent"
|
|
2455
2547
|
},
|
|
@@ -2467,7 +2559,7 @@ var StyledTransitionContainer = (0, import_styles14.styled)("ul")(({ theme }) =>
|
|
|
2467
2559
|
overflowY: "auto",
|
|
2468
2560
|
backgroundColor: theme.palette.background.paper
|
|
2469
2561
|
}));
|
|
2470
|
-
var StyledDropdownArrow = (0,
|
|
2562
|
+
var StyledDropdownArrow = (0, import_styles15.styled)("div")(() => ({
|
|
2471
2563
|
height: "24px",
|
|
2472
2564
|
width: "24px",
|
|
2473
2565
|
"& > svg": {
|
|
@@ -2476,7 +2568,7 @@ var StyledDropdownArrow = (0, import_styles14.styled)("div")(() => ({
|
|
|
2476
2568
|
}));
|
|
2477
2569
|
|
|
2478
2570
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
2479
|
-
var
|
|
2571
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2480
2572
|
var MultiSelect = ({
|
|
2481
2573
|
options: initialOptions,
|
|
2482
2574
|
placeholder,
|
|
@@ -2747,7 +2839,7 @@ var MultiSelect = ({
|
|
|
2747
2839
|
const handleBlur = (e) => {
|
|
2748
2840
|
if (!open && onBlur) onBlur(e);
|
|
2749
2841
|
};
|
|
2750
|
-
return /* @__PURE__ */ (0,
|
|
2842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2751
2843
|
StyledMultiSelectContainer,
|
|
2752
2844
|
{
|
|
2753
2845
|
tabIndex: -1,
|
|
@@ -2766,8 +2858,8 @@ var MultiSelect = ({
|
|
|
2766
2858
|
},
|
|
2767
2859
|
...getCleanProps(restProps),
|
|
2768
2860
|
children: [
|
|
2769
|
-
/* @__PURE__ */ (0,
|
|
2770
|
-
/* @__PURE__ */ (0,
|
|
2861
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ref: triggerWrapperRef, style: { position: "relative" }, children: [
|
|
2862
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2771
2863
|
StyledSelectionContainer,
|
|
2772
2864
|
{
|
|
2773
2865
|
id: `multi-accounts-dropdown-toggle-button-${inputId}`,
|
|
@@ -2783,8 +2875,8 @@ var MultiSelect = ({
|
|
|
2783
2875
|
"data-multi-select-trigger": true,
|
|
2784
2876
|
"aria-haspopup": "tree",
|
|
2785
2877
|
children: [
|
|
2786
|
-
/* @__PURE__ */ (0,
|
|
2787
|
-
/* @__PURE__ */ (0,
|
|
2878
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
|
|
2879
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StyledDropdownArrow, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2788
2880
|
import_KeyboardArrowDown.default,
|
|
2789
2881
|
{
|
|
2790
2882
|
sx: {
|
|
@@ -2793,11 +2885,11 @@ var MultiSelect = ({
|
|
|
2793
2885
|
}
|
|
2794
2886
|
}
|
|
2795
2887
|
) }),
|
|
2796
|
-
/* @__PURE__ */ (0,
|
|
2888
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { name: inputId, type: "hidden", required, "aria-required": required })
|
|
2797
2889
|
]
|
|
2798
2890
|
}
|
|
2799
2891
|
),
|
|
2800
|
-
/* @__PURE__ */ (0,
|
|
2892
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2801
2893
|
StyledSelectionContainerOutline,
|
|
2802
2894
|
{
|
|
2803
2895
|
"data-lose-focus": currentOptionIndex > -1,
|
|
@@ -2806,7 +2898,7 @@ var MultiSelect = ({
|
|
|
2806
2898
|
}
|
|
2807
2899
|
)
|
|
2808
2900
|
] }),
|
|
2809
|
-
/* @__PURE__ */ (0,
|
|
2901
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2810
2902
|
import_Popper.default,
|
|
2811
2903
|
{
|
|
2812
2904
|
open,
|
|
@@ -2818,7 +2910,7 @@ var MultiSelect = ({
|
|
|
2818
2910
|
{ name: "preventOverflow", enabled: true },
|
|
2819
2911
|
{ name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
|
|
2820
2912
|
],
|
|
2821
|
-
children: /* @__PURE__ */ (0,
|
|
2913
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StyledPopperInner, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Collapse.default, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2822
2914
|
StyledTransitionContainer,
|
|
2823
2915
|
{
|
|
2824
2916
|
role: "tree",
|
|
@@ -2851,9 +2943,9 @@ MultiSelect.displayName = "ToolkitMultiSelect";
|
|
|
2851
2943
|
|
|
2852
2944
|
// src/components/OtpInput/OtpInput.tsx
|
|
2853
2945
|
var import_react10 = require("react");
|
|
2854
|
-
var
|
|
2946
|
+
var import_Box6 = __toESM(require("@mui/material/Box"));
|
|
2855
2947
|
var import_OutlinedInput = __toESM(require("@mui/material/OutlinedInput"));
|
|
2856
|
-
var
|
|
2948
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2857
2949
|
var OTP_LENGTH = 6;
|
|
2858
2950
|
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2859
2951
|
const inputRefs = (0, import_react10.useRef)([]);
|
|
@@ -2886,7 +2978,7 @@ var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
|
2886
2978
|
},
|
|
2887
2979
|
[onChange]
|
|
2888
2980
|
);
|
|
2889
|
-
return /* @__PURE__ */ (0,
|
|
2981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Box6.default, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2890
2982
|
import_OutlinedInput.default,
|
|
2891
2983
|
{
|
|
2892
2984
|
inputRef: (el) => {
|
|
@@ -3073,21 +3165,21 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
3073
3165
|
}
|
|
3074
3166
|
|
|
3075
3167
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
3076
|
-
var import_styles15 = require("@mui/material/styles");
|
|
3077
3168
|
var import_styles16 = require("@mui/material/styles");
|
|
3169
|
+
var import_styles17 = require("@mui/material/styles");
|
|
3078
3170
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
3079
|
-
var StyledPageSpinnerRoot = (0,
|
|
3171
|
+
var StyledPageSpinnerRoot = (0, import_styles16.styled)("div")(() => ({
|
|
3080
3172
|
position: "relative"
|
|
3081
3173
|
}));
|
|
3082
|
-
var StyledOverlay = (0,
|
|
3174
|
+
var StyledOverlay = (0, import_styles16.styled)("div", {
|
|
3083
3175
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3084
3176
|
})(({ theme, $darkBg = false }) => ({
|
|
3085
3177
|
position: "fixed",
|
|
3086
3178
|
inset: 0,
|
|
3087
3179
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
3088
|
-
backgroundColor: $darkBg ? (0,
|
|
3180
|
+
backgroundColor: $darkBg ? (0, import_styles17.alpha)(theme.tokens.colors.textPrimary, 0.9) : (0, import_styles17.alpha)(theme.palette.common.white, 0.9)
|
|
3089
3181
|
}));
|
|
3090
|
-
var StyledSpinnerCentre = (0,
|
|
3182
|
+
var StyledSpinnerCentre = (0, import_styles16.styled)("div")(() => ({
|
|
3091
3183
|
position: "fixed",
|
|
3092
3184
|
top: "50%",
|
|
3093
3185
|
left: "50%",
|
|
@@ -3098,7 +3190,7 @@ var StyledSpinnerCentre = (0, import_styles15.styled)("div")(() => ({
|
|
|
3098
3190
|
alignItems: "center",
|
|
3099
3191
|
gap: "16px"
|
|
3100
3192
|
}));
|
|
3101
|
-
var StyledSpinnerMessage = (0,
|
|
3193
|
+
var StyledSpinnerMessage = (0, import_styles16.styled)("p", {
|
|
3102
3194
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3103
3195
|
})(({ theme, $darkBg = false }) => ({
|
|
3104
3196
|
margin: 0,
|
|
@@ -3109,7 +3201,7 @@ var StyledSpinnerMessage = (0, import_styles15.styled)("p", {
|
|
|
3109
3201
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
3110
3202
|
textAlign: "center"
|
|
3111
3203
|
}));
|
|
3112
|
-
var StyledScreenReaderOnly2 = (0,
|
|
3204
|
+
var StyledScreenReaderOnly2 = (0, import_styles16.styled)("span")(() => ({
|
|
3113
3205
|
position: "absolute",
|
|
3114
3206
|
width: "1px",
|
|
3115
3207
|
height: "1px",
|
|
@@ -3122,7 +3214,7 @@ var StyledScreenReaderOnly2 = (0, import_styles15.styled)("span")(() => ({
|
|
|
3122
3214
|
}));
|
|
3123
3215
|
|
|
3124
3216
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
3125
|
-
var
|
|
3217
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3126
3218
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
3127
3219
|
var PageSpinner = import_react11.default.forwardRef(
|
|
3128
3220
|
function PageSpinner2({
|
|
@@ -3156,7 +3248,7 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3156
3248
|
backgroundScrollTether(false);
|
|
3157
3249
|
};
|
|
3158
3250
|
}, [message, rootNode, messageTone]);
|
|
3159
|
-
return /* @__PURE__ */ (0,
|
|
3251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Portal.default, { container: rootNode, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3160
3252
|
StyledPageSpinnerRoot,
|
|
3161
3253
|
{
|
|
3162
3254
|
"data-component-id": "PageSpinner",
|
|
@@ -3164,9 +3256,9 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3164
3256
|
ref: mergedRef,
|
|
3165
3257
|
...getCleanProps(restProps),
|
|
3166
3258
|
children: [
|
|
3167
|
-
/* @__PURE__ */ (0,
|
|
3168
|
-
/* @__PURE__ */ (0,
|
|
3169
|
-
/* @__PURE__ */ (0,
|
|
3259
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
3260
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(StyledSpinnerCentre, { children: [
|
|
3261
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3170
3262
|
import_CircularProgress2.default,
|
|
3171
3263
|
{
|
|
3172
3264
|
size: 60,
|
|
@@ -3174,8 +3266,8 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3174
3266
|
"aria-hidden": "true"
|
|
3175
3267
|
}
|
|
3176
3268
|
),
|
|
3177
|
-
customMessageLayout ?? /* @__PURE__ */ (0,
|
|
3178
|
-
srText && /* @__PURE__ */ (0,
|
|
3269
|
+
customMessageLayout ?? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
3270
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledScreenReaderOnly2, { children: srText })
|
|
3179
3271
|
] })
|
|
3180
3272
|
]
|
|
3181
3273
|
}
|
|
@@ -3189,7 +3281,7 @@ var import_react12 = __toESM(require("react"));
|
|
|
3189
3281
|
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
3190
3282
|
|
|
3191
3283
|
// src/components/Pagination/Pagination.styles.tsx
|
|
3192
|
-
var
|
|
3284
|
+
var import_styles18 = require("@mui/material/styles");
|
|
3193
3285
|
var import_PaginationItem = __toESM(require("@mui/material/PaginationItem"));
|
|
3194
3286
|
function getColorValue(theme, color) {
|
|
3195
3287
|
switch (color) {
|
|
@@ -3209,58 +3301,58 @@ function getColorValue(theme, color) {
|
|
|
3209
3301
|
return theme.tokens.colors.textPrimary;
|
|
3210
3302
|
}
|
|
3211
3303
|
}
|
|
3212
|
-
var StyledPaginationItem = (0,
|
|
3304
|
+
var StyledPaginationItem = (0, import_styles18.styled)(import_PaginationItem.default, {
|
|
3213
3305
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
3214
3306
|
})(({ theme, $variant, $color }) => {
|
|
3215
3307
|
const colorValue = getColorValue(theme, $color);
|
|
3216
3308
|
if ($variant === "text") {
|
|
3217
3309
|
return {
|
|
3218
3310
|
"&.Mui-selected": {
|
|
3219
|
-
backgroundColor: (0,
|
|
3311
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.08),
|
|
3220
3312
|
color: colorValue,
|
|
3221
3313
|
"&:hover": {
|
|
3222
|
-
backgroundColor: (0,
|
|
3314
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.16)
|
|
3223
3315
|
}
|
|
3224
3316
|
}
|
|
3225
3317
|
};
|
|
3226
3318
|
}
|
|
3227
3319
|
if ($variant === "outlined") {
|
|
3228
3320
|
return {
|
|
3229
|
-
border: `1px solid ${(0,
|
|
3321
|
+
border: `1px solid ${(0, import_styles18.alpha)(colorValue, 0.24)}`,
|
|
3230
3322
|
"&.Mui-selected": {
|
|
3231
|
-
border: `1px solid ${(0,
|
|
3323
|
+
border: `1px solid ${(0, import_styles18.alpha)(colorValue, 0.8)}`,
|
|
3232
3324
|
color: colorValue,
|
|
3233
|
-
backgroundColor: (0,
|
|
3325
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.08),
|
|
3234
3326
|
"&:hover": {
|
|
3235
|
-
backgroundColor: (0,
|
|
3327
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.16)
|
|
3236
3328
|
}
|
|
3237
3329
|
}
|
|
3238
3330
|
};
|
|
3239
3331
|
}
|
|
3240
3332
|
return {
|
|
3241
3333
|
"&.Mui-selected": {
|
|
3242
|
-
backgroundColor: (0,
|
|
3334
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.16),
|
|
3243
3335
|
color: colorValue,
|
|
3244
3336
|
"&:hover": {
|
|
3245
|
-
backgroundColor: (0,
|
|
3337
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.32)
|
|
3246
3338
|
}
|
|
3247
3339
|
},
|
|
3248
3340
|
"&:hover": {
|
|
3249
|
-
backgroundColor: (0,
|
|
3341
|
+
backgroundColor: (0, import_styles18.alpha)(colorValue, 0.08)
|
|
3250
3342
|
}
|
|
3251
3343
|
};
|
|
3252
3344
|
});
|
|
3253
3345
|
|
|
3254
3346
|
// src/components/Pagination/Pagination.tsx
|
|
3255
|
-
var
|
|
3347
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3256
3348
|
var Pagination = import_react12.default.forwardRef(
|
|
3257
3349
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
3258
|
-
return /* @__PURE__ */ (0,
|
|
3350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3259
3351
|
import_Pagination.default,
|
|
3260
3352
|
{
|
|
3261
3353
|
ref,
|
|
3262
3354
|
"data-component-id": "Pagination",
|
|
3263
|
-
renderItem: (item) => /* @__PURE__ */ (0,
|
|
3355
|
+
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3264
3356
|
StyledPaginationItem,
|
|
3265
3357
|
{
|
|
3266
3358
|
$variant: variant,
|
|
@@ -3280,8 +3372,8 @@ Pagination.displayName = "ToolkitPagination";
|
|
|
3280
3372
|
var import_react13 = __toESM(require("react"));
|
|
3281
3373
|
|
|
3282
3374
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
3283
|
-
var
|
|
3284
|
-
var StyledParagraph = (0,
|
|
3375
|
+
var import_styles19 = require("@mui/material/styles");
|
|
3376
|
+
var StyledParagraph = (0, import_styles19.styled)("p", {
|
|
3285
3377
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
3286
3378
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
3287
3379
|
margin: 0,
|
|
@@ -3314,10 +3406,10 @@ var StyledParagraph = (0, import_styles18.styled)("p", {
|
|
|
3314
3406
|
}));
|
|
3315
3407
|
|
|
3316
3408
|
// src/components/Paragraph/Paragraph.tsx
|
|
3317
|
-
var
|
|
3409
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3318
3410
|
var Paragraph = import_react13.default.forwardRef(
|
|
3319
3411
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
3320
|
-
return /* @__PURE__ */ (0,
|
|
3412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3321
3413
|
StyledParagraph,
|
|
3322
3414
|
{
|
|
3323
3415
|
$variant: variant,
|
|
@@ -3340,8 +3432,8 @@ var import_CheckCircle = __toESM(require("@mui/icons-material/CheckCircle"));
|
|
|
3340
3432
|
var import_Cancel = __toESM(require("@mui/icons-material/Cancel"));
|
|
3341
3433
|
|
|
3342
3434
|
// src/components/Password/PasswordRule.styles.tsx
|
|
3343
|
-
var
|
|
3344
|
-
var StyledPasswordRule = (0,
|
|
3435
|
+
var import_styles20 = require("@mui/material/styles");
|
|
3436
|
+
var StyledPasswordRule = (0, import_styles20.styled)("div")(({ theme }) => ({
|
|
3345
3437
|
display: "flex",
|
|
3346
3438
|
alignItems: "center",
|
|
3347
3439
|
gap: theme.tokens.spacing.xs,
|
|
@@ -3353,15 +3445,15 @@ var StyledPasswordRule = (0, import_styles19.styled)("div")(({ theme }) => ({
|
|
|
3353
3445
|
color: theme.tokens.colors.error
|
|
3354
3446
|
}
|
|
3355
3447
|
}));
|
|
3356
|
-
var StyledPasswordRuleIcon = (0,
|
|
3448
|
+
var StyledPasswordRuleIcon = (0, import_styles20.styled)("span")({
|
|
3357
3449
|
display: "inline-flex",
|
|
3358
3450
|
alignItems: "center",
|
|
3359
3451
|
flexShrink: 0
|
|
3360
3452
|
});
|
|
3361
|
-
var StyledPasswordRuleText = (0,
|
|
3453
|
+
var StyledPasswordRuleText = (0, import_styles20.styled)("span")(({ theme }) => ({
|
|
3362
3454
|
fontSize: theme.tokens.typography.fontSizeSm
|
|
3363
3455
|
}));
|
|
3364
|
-
var StyledScreenReaderOnly3 = (0,
|
|
3456
|
+
var StyledScreenReaderOnly3 = (0, import_styles20.styled)("span")({
|
|
3365
3457
|
position: "absolute",
|
|
3366
3458
|
width: 1,
|
|
3367
3459
|
height: 1,
|
|
@@ -3374,24 +3466,24 @@ var StyledScreenReaderOnly3 = (0, import_styles19.styled)("span")({
|
|
|
3374
3466
|
});
|
|
3375
3467
|
|
|
3376
3468
|
// src/components/Password/PasswordRule.tsx
|
|
3377
|
-
var
|
|
3378
|
-
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ (0,
|
|
3469
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3470
|
+
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3379
3471
|
StyledPasswordRule,
|
|
3380
3472
|
{
|
|
3381
3473
|
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
3382
3474
|
"data-testid": `password-rule-${idx}`,
|
|
3383
3475
|
children: [
|
|
3384
|
-
/* @__PURE__ */ (0,
|
|
3385
|
-
/* @__PURE__ */ (0,
|
|
3386
|
-
/* @__PURE__ */ (0,
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_CheckCircle.default, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_Cancel.default, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledPasswordRuleText, { children: rule }),
|
|
3478
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
3387
3479
|
]
|
|
3388
3480
|
}
|
|
3389
3481
|
);
|
|
3390
3482
|
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
3391
3483
|
|
|
3392
3484
|
// src/components/Password/PasswordCriteria.styles.tsx
|
|
3393
|
-
var
|
|
3394
|
-
var StyledPasswordCriteriaContainer = (0,
|
|
3485
|
+
var import_styles21 = require("@mui/material/styles");
|
|
3486
|
+
var StyledPasswordCriteriaContainer = (0, import_styles21.styled)("div")(
|
|
3395
3487
|
({ theme, $show }) => ({
|
|
3396
3488
|
display: $show ? "block" : "none",
|
|
3397
3489
|
position: "absolute",
|
|
@@ -3402,7 +3494,7 @@ var StyledPasswordCriteriaContainer = (0, import_styles20.styled)("div")(
|
|
|
3402
3494
|
marginTop: theme.tokens.spacing.xs
|
|
3403
3495
|
})
|
|
3404
3496
|
);
|
|
3405
|
-
var StyledPasswordRuleTitle = (0,
|
|
3497
|
+
var StyledPasswordRuleTitle = (0, import_styles21.styled)("div")(({ theme }) => ({
|
|
3406
3498
|
color: theme.tokens.colors.textPrimary,
|
|
3407
3499
|
fontSize: theme.tokens.typography.fontSizeSm,
|
|
3408
3500
|
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
@@ -3412,7 +3504,7 @@ var StyledPasswordRuleTitle = (0, import_styles20.styled)("div")(({ theme }) =>
|
|
|
3412
3504
|
}));
|
|
3413
3505
|
|
|
3414
3506
|
// src/components/Password/PasswordCriteria.tsx
|
|
3415
|
-
var
|
|
3507
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3416
3508
|
var PasswordRules = [
|
|
3417
3509
|
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
3418
3510
|
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
@@ -3429,7 +3521,7 @@ var passwordValidator = (value) => ({
|
|
|
3429
3521
|
});
|
|
3430
3522
|
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
3431
3523
|
const validity = passwordValidator(value);
|
|
3432
|
-
return /* @__PURE__ */ (0,
|
|
3524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3433
3525
|
StyledPasswordCriteriaContainer,
|
|
3434
3526
|
{
|
|
3435
3527
|
$show: show,
|
|
@@ -3438,9 +3530,9 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3438
3530
|
"data-testid": "password-criteria",
|
|
3439
3531
|
role: "status",
|
|
3440
3532
|
"aria-live": "polite",
|
|
3441
|
-
children: /* @__PURE__ */ (0,
|
|
3442
|
-
/* @__PURE__ */ (0,
|
|
3443
|
-
PasswordRules.map((item, idx) => /* @__PURE__ */ (0,
|
|
3533
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Card, { compact: true, children: [
|
|
3534
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
3535
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
3444
3536
|
] })
|
|
3445
3537
|
}
|
|
3446
3538
|
);
|
|
@@ -3448,17 +3540,17 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3448
3540
|
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
3449
3541
|
|
|
3450
3542
|
// src/components/Password/Password.styles.tsx
|
|
3451
|
-
var
|
|
3452
|
-
var StyledPasswordRoot = (0,
|
|
3543
|
+
var import_styles22 = require("@mui/material/styles");
|
|
3544
|
+
var StyledPasswordRoot = (0, import_styles22.styled)("div")({
|
|
3453
3545
|
position: "relative"
|
|
3454
3546
|
});
|
|
3455
|
-
var StyledPasswordInputWrapper = (0,
|
|
3547
|
+
var StyledPasswordInputWrapper = (0, import_styles22.styled)("div")({
|
|
3456
3548
|
display: "flex",
|
|
3457
3549
|
position: "relative"
|
|
3458
3550
|
});
|
|
3459
3551
|
|
|
3460
3552
|
// src/components/Password/Password.tsx
|
|
3461
|
-
var
|
|
3553
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3462
3554
|
var Password = import_react14.default.forwardRef(
|
|
3463
3555
|
function Password2({
|
|
3464
3556
|
isInvalid,
|
|
@@ -3490,8 +3582,8 @@ var Password = import_react14.default.forwardRef(
|
|
|
3490
3582
|
};
|
|
3491
3583
|
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
3492
3584
|
const cleanRest = getCleanProps(rest);
|
|
3493
|
-
return /* @__PURE__ */ (0,
|
|
3494
|
-
/* @__PURE__ */ (0,
|
|
3585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
3586
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledPasswordInputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3495
3587
|
TextField,
|
|
3496
3588
|
{
|
|
3497
3589
|
ref,
|
|
@@ -3510,7 +3602,7 @@ var Password = import_react14.default.forwardRef(
|
|
|
3510
3602
|
onChange: handleChange
|
|
3511
3603
|
}
|
|
3512
3604
|
) }),
|
|
3513
|
-
/* @__PURE__ */ (0,
|
|
3605
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
3514
3606
|
] });
|
|
3515
3607
|
}
|
|
3516
3608
|
);
|
|
@@ -3520,7 +3612,7 @@ Password.displayName = "ToolkitPassword";
|
|
|
3520
3612
|
var import_react15 = __toESM(require("react"));
|
|
3521
3613
|
|
|
3522
3614
|
// src/components/Spinner/Spinner.styles.tsx
|
|
3523
|
-
var
|
|
3615
|
+
var import_styles23 = require("@mui/material/styles");
|
|
3524
3616
|
var spinnerSizing = {
|
|
3525
3617
|
xs: 20,
|
|
3526
3618
|
sm: 24,
|
|
@@ -3528,7 +3620,7 @@ var spinnerSizing = {
|
|
|
3528
3620
|
lg: 56,
|
|
3529
3621
|
xl: 72
|
|
3530
3622
|
};
|
|
3531
|
-
var StyledSpinnerContainer = (0,
|
|
3623
|
+
var StyledSpinnerContainer = (0, import_styles23.styled)("div", {
|
|
3532
3624
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
3533
3625
|
})({}, ({ $inline }) => ({
|
|
3534
3626
|
flex: "0 1 100%",
|
|
@@ -3536,7 +3628,7 @@ var StyledSpinnerContainer = (0, import_styles22.styled)("div", {
|
|
|
3536
3628
|
flexDirection: $inline ? "row" : "column",
|
|
3537
3629
|
alignItems: "center"
|
|
3538
3630
|
}));
|
|
3539
|
-
var StyledSpinnerIconContainer = (0,
|
|
3631
|
+
var StyledSpinnerIconContainer = (0, import_styles23.styled)("div", {
|
|
3540
3632
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3541
3633
|
})(({ $size }) => {
|
|
3542
3634
|
const size = spinnerSizing[$size];
|
|
@@ -3546,12 +3638,12 @@ var StyledSpinnerIconContainer = (0, import_styles22.styled)("div", {
|
|
|
3546
3638
|
height: size
|
|
3547
3639
|
};
|
|
3548
3640
|
});
|
|
3549
|
-
var StyledSpinnerBackground = (0,
|
|
3641
|
+
var StyledSpinnerBackground = (0, import_styles23.styled)("div", {
|
|
3550
3642
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3551
3643
|
})(({ theme, $size, $darkBg }) => {
|
|
3552
3644
|
const size = spinnerSizing[$size];
|
|
3553
3645
|
const lineWidth = Math.round(size / 12);
|
|
3554
|
-
const borderColor = $darkBg ? (0,
|
|
3646
|
+
const borderColor = $darkBg ? (0, import_styles23.alpha)(theme.palette.common.white, 0.2) : (0, import_styles23.alpha)(theme.tokens.colors.textPrimary, 0.1);
|
|
3555
3647
|
return {
|
|
3556
3648
|
position: "absolute",
|
|
3557
3649
|
width: size,
|
|
@@ -3560,7 +3652,7 @@ var StyledSpinnerBackground = (0, import_styles22.styled)("div", {
|
|
|
3560
3652
|
border: `${lineWidth}px solid ${borderColor}`
|
|
3561
3653
|
};
|
|
3562
3654
|
});
|
|
3563
|
-
var StyledSpinner = (0,
|
|
3655
|
+
var StyledSpinner = (0, import_styles23.styled)("div", {
|
|
3564
3656
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3565
3657
|
})(({ theme, $size, $darkBg }) => {
|
|
3566
3658
|
const size = spinnerSizing[$size];
|
|
@@ -3583,7 +3675,7 @@ var StyledSpinner = (0, import_styles22.styled)("div", {
|
|
|
3583
3675
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
3584
3676
|
};
|
|
3585
3677
|
});
|
|
3586
|
-
var StyledSpinnerMessage2 = (0,
|
|
3678
|
+
var StyledSpinnerMessage2 = (0, import_styles23.styled)("span", {
|
|
3587
3679
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
3588
3680
|
})(({ theme, $darkBg, $inline }) => ({
|
|
3589
3681
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -3592,7 +3684,7 @@ var StyledSpinnerMessage2 = (0, import_styles22.styled)("span", {
|
|
|
3592
3684
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
3593
3685
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
3594
3686
|
}));
|
|
3595
|
-
var StyledScreenReaderOnly4 = (0,
|
|
3687
|
+
var StyledScreenReaderOnly4 = (0, import_styles23.styled)("span")({
|
|
3596
3688
|
position: "absolute",
|
|
3597
3689
|
width: 1,
|
|
3598
3690
|
height: 1,
|
|
@@ -3605,10 +3697,10 @@ var StyledScreenReaderOnly4 = (0, import_styles22.styled)("span")({
|
|
|
3605
3697
|
});
|
|
3606
3698
|
|
|
3607
3699
|
// src/components/Spinner/Spinner.tsx
|
|
3608
|
-
var
|
|
3700
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3609
3701
|
var Spinner = import_react15.default.forwardRef(
|
|
3610
3702
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
3611
|
-
return /* @__PURE__ */ (0,
|
|
3703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3612
3704
|
StyledSpinnerContainer,
|
|
3613
3705
|
{
|
|
3614
3706
|
ref,
|
|
@@ -3616,12 +3708,12 @@ var Spinner = import_react15.default.forwardRef(
|
|
|
3616
3708
|
"data-component-id": "Spinner",
|
|
3617
3709
|
...getCleanProps(restProps),
|
|
3618
3710
|
children: [
|
|
3619
|
-
/* @__PURE__ */ (0,
|
|
3620
|
-
/* @__PURE__ */ (0,
|
|
3621
|
-
/* @__PURE__ */ (0,
|
|
3711
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
3712
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
3713
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
3622
3714
|
] }),
|
|
3623
|
-
message && /* @__PURE__ */ (0,
|
|
3624
|
-
srText && /* @__PURE__ */ (0,
|
|
3715
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
3716
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledScreenReaderOnly4, { children: srText })
|
|
3625
3717
|
]
|
|
3626
3718
|
}
|
|
3627
3719
|
);
|
|
@@ -3633,14 +3725,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
3633
3725
|
var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"));
|
|
3634
3726
|
|
|
3635
3727
|
// src/components/Toggle/Toggle.styles.tsx
|
|
3636
|
-
var
|
|
3637
|
-
var StyledFieldset = (0,
|
|
3728
|
+
var import_styles24 = require("@mui/material/styles");
|
|
3729
|
+
var StyledFieldset = (0, import_styles24.styled)("fieldset")(({ theme }) => ({
|
|
3638
3730
|
border: "none",
|
|
3639
3731
|
margin: 0,
|
|
3640
3732
|
padding: 0,
|
|
3641
3733
|
minWidth: 0
|
|
3642
3734
|
}));
|
|
3643
|
-
var StyledLegend = (0,
|
|
3735
|
+
var StyledLegend = (0, import_styles24.styled)("legend")(({ theme }) => ({
|
|
3644
3736
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
3645
3737
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
3646
3738
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -3648,7 +3740,7 @@ var StyledLegend = (0, import_styles23.styled)("legend")(({ theme }) => ({
|
|
|
3648
3740
|
marginBottom: theme.spacing(1),
|
|
3649
3741
|
padding: 0
|
|
3650
3742
|
}));
|
|
3651
|
-
var StyledToggleWrapper = (0,
|
|
3743
|
+
var StyledToggleWrapper = (0, import_styles24.styled)("div")(({ theme, size = "medium" }) => ({
|
|
3652
3744
|
display: "flex",
|
|
3653
3745
|
flexDirection: "row",
|
|
3654
3746
|
width: theme.spacing(15),
|
|
@@ -3657,7 +3749,7 @@ var StyledToggleWrapper = (0, import_styles23.styled)("div")(({ theme, size = "m
|
|
|
3657
3749
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
3658
3750
|
borderRadius: theme.tokens.borderRadius.md
|
|
3659
3751
|
}));
|
|
3660
|
-
var StyledSwitch = (0,
|
|
3752
|
+
var StyledSwitch = (0, import_styles24.styled)("label", {
|
|
3661
3753
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
3662
3754
|
})(({ theme, selected, controlType }) => ({
|
|
3663
3755
|
position: "relative",
|
|
@@ -3747,7 +3839,7 @@ var StyledSwitch = (0, import_styles23.styled)("label", {
|
|
|
3747
3839
|
}));
|
|
3748
3840
|
|
|
3749
3841
|
// src/components/Toggle/Toggle.tsx
|
|
3750
|
-
var
|
|
3842
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3751
3843
|
function Toggle({
|
|
3752
3844
|
name,
|
|
3753
3845
|
checked = false,
|
|
@@ -3760,11 +3852,11 @@ function Toggle({
|
|
|
3760
3852
|
...restProps
|
|
3761
3853
|
}) {
|
|
3762
3854
|
const testId = restProps["data-testid"];
|
|
3763
|
-
return /* @__PURE__ */ (0,
|
|
3764
|
-
label && /* @__PURE__ */ (0,
|
|
3765
|
-
description && /* @__PURE__ */ (0,
|
|
3766
|
-
/* @__PURE__ */ (0,
|
|
3767
|
-
/* @__PURE__ */ (0,
|
|
3855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3856
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledLegend, { children: label }),
|
|
3857
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_FormHelperText.default, { children: description }),
|
|
3858
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(StyledToggleWrapper, { size, children: [
|
|
3859
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3768
3860
|
StyledSwitch,
|
|
3769
3861
|
{
|
|
3770
3862
|
htmlFor: `${name}off`,
|
|
@@ -3772,7 +3864,7 @@ function Toggle({
|
|
|
3772
3864
|
controlType: "off",
|
|
3773
3865
|
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3774
3866
|
children: [
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
3867
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3776
3868
|
"input",
|
|
3777
3869
|
{
|
|
3778
3870
|
checked: !checked,
|
|
@@ -3788,7 +3880,7 @@ function Toggle({
|
|
|
3788
3880
|
]
|
|
3789
3881
|
}
|
|
3790
3882
|
),
|
|
3791
|
-
/* @__PURE__ */ (0,
|
|
3883
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
3792
3884
|
StyledSwitch,
|
|
3793
3885
|
{
|
|
3794
3886
|
htmlFor: `${name}on`,
|
|
@@ -3796,7 +3888,7 @@ function Toggle({
|
|
|
3796
3888
|
controlType: "on",
|
|
3797
3889
|
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3798
3890
|
children: [
|
|
3799
|
-
/* @__PURE__ */ (0,
|
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3800
3892
|
"input",
|
|
3801
3893
|
{
|
|
3802
3894
|
checked,
|
|
@@ -3813,197 +3905,320 @@ function Toggle({
|
|
|
3813
3905
|
}
|
|
3814
3906
|
)
|
|
3815
3907
|
] }),
|
|
3816
|
-
error && /* @__PURE__ */ (0,
|
|
3908
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_FormHelperText.default, { error: true, children: error })
|
|
3817
3909
|
] });
|
|
3818
3910
|
}
|
|
3819
3911
|
Toggle.displayName = "ToolkitToggle";
|
|
3820
3912
|
|
|
3821
|
-
// src/components/
|
|
3822
|
-
var
|
|
3823
|
-
var
|
|
3824
|
-
var
|
|
3825
|
-
var
|
|
3826
|
-
|
|
3827
|
-
}));
|
|
3828
|
-
var StyledHeadCell = (0, import_styles24.styled)(import_material11.TableCell)(({ theme }) => ({
|
|
3829
|
-
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
3830
|
-
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
3831
|
-
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
3832
|
-
borderBottomColor: theme.tokens.components.table.borderColor
|
|
3833
|
-
}));
|
|
3834
|
-
function Table(props) {
|
|
3835
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.Table, { ...props });
|
|
3836
|
-
}
|
|
3837
|
-
function TableHead(props) {
|
|
3838
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableHead, { ...props });
|
|
3839
|
-
}
|
|
3840
|
-
function TableBody(props) {
|
|
3841
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableBody, { ...props });
|
|
3842
|
-
}
|
|
3843
|
-
function TableRow(props) {
|
|
3844
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableRow, { ...props });
|
|
3845
|
-
}
|
|
3846
|
-
function TableCell(props) {
|
|
3847
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableCell, { ...props });
|
|
3848
|
-
}
|
|
3849
|
-
function TableHeadCell(props) {
|
|
3850
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
3851
|
-
}
|
|
3852
|
-
function TableContainer(props) {
|
|
3853
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledTableContainer, { ...props });
|
|
3854
|
-
}
|
|
3855
|
-
var TablePagination = import_material11.TablePagination;
|
|
3856
|
-
var TableSortLabel = import_material11.TableSortLabel;
|
|
3857
|
-
Table.displayName = "ToolkitTable";
|
|
3858
|
-
TableHead.displayName = "ToolkitTableHead";
|
|
3859
|
-
TableBody.displayName = "ToolkitTableBody";
|
|
3860
|
-
TableRow.displayName = "ToolkitTableRow";
|
|
3861
|
-
TableCell.displayName = "ToolkitTableCell";
|
|
3862
|
-
TableHeadCell.displayName = "ToolkitTableHeadCell";
|
|
3863
|
-
TableContainer.displayName = "ToolkitTableContainer";
|
|
3913
|
+
// src/components/Toast/Toast.tsx
|
|
3914
|
+
var import_react29 = __toESM(require("react"));
|
|
3915
|
+
var import_Check = __toESM(require("@mui/icons-material/Check"));
|
|
3916
|
+
var import_Close = __toESM(require("@mui/icons-material/Close"));
|
|
3917
|
+
var import_Info = __toESM(require("@mui/icons-material/Info"));
|
|
3918
|
+
var import_Warning = __toESM(require("@mui/icons-material/Warning"));
|
|
3864
3919
|
|
|
3865
3920
|
// src/foundation/H1/H1.tsx
|
|
3866
3921
|
var import_react16 = __toESM(require("react"));
|
|
3867
|
-
var
|
|
3922
|
+
var import_material11 = require("@mui/material");
|
|
3868
3923
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3869
3924
|
var H1 = import_react16.default.forwardRef(
|
|
3870
3925
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
3871
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material11.Typography, { ref, variant: "h1", color, ...props, children });
|
|
3872
3927
|
}
|
|
3873
3928
|
);
|
|
3874
3929
|
H1.displayName = "ToolkitH1";
|
|
3875
3930
|
|
|
3876
3931
|
// src/foundation/H2/H2.tsx
|
|
3877
3932
|
var import_react17 = __toESM(require("react"));
|
|
3878
|
-
var
|
|
3933
|
+
var import_material12 = require("@mui/material");
|
|
3879
3934
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3880
3935
|
var H2 = import_react17.default.forwardRef(
|
|
3881
3936
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
3882
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_material12.Typography, { ref, variant: "h2", color, ...props, children });
|
|
3883
3938
|
}
|
|
3884
3939
|
);
|
|
3885
3940
|
H2.displayName = "ToolkitH2";
|
|
3886
3941
|
|
|
3887
3942
|
// src/foundation/H3/H3.tsx
|
|
3888
3943
|
var import_react18 = __toESM(require("react"));
|
|
3889
|
-
var
|
|
3944
|
+
var import_material13 = require("@mui/material");
|
|
3890
3945
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3891
3946
|
var H3 = import_react18.default.forwardRef(
|
|
3892
3947
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
3893
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material13.Typography, { ref, variant: "h3", color, ...props, children });
|
|
3894
3949
|
}
|
|
3895
3950
|
);
|
|
3896
3951
|
H3.displayName = "ToolkitH3";
|
|
3897
3952
|
|
|
3898
3953
|
// src/foundation/H4/H4.tsx
|
|
3899
3954
|
var import_react19 = __toESM(require("react"));
|
|
3900
|
-
var
|
|
3955
|
+
var import_material14 = require("@mui/material");
|
|
3901
3956
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3902
3957
|
var H4 = import_react19.default.forwardRef(
|
|
3903
3958
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
3904
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material14.Typography, { ref, variant: "h4", color, ...props, children });
|
|
3905
3960
|
}
|
|
3906
3961
|
);
|
|
3907
3962
|
H4.displayName = "ToolkitH4";
|
|
3908
3963
|
|
|
3909
3964
|
// src/foundation/H5/H5.tsx
|
|
3910
3965
|
var import_react20 = __toESM(require("react"));
|
|
3911
|
-
var
|
|
3966
|
+
var import_material15 = require("@mui/material");
|
|
3912
3967
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3913
3968
|
var H5 = import_react20.default.forwardRef(
|
|
3914
3969
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
3915
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material15.Typography, { ref, variant: "h5", color, ...props, children });
|
|
3916
3971
|
}
|
|
3917
3972
|
);
|
|
3918
3973
|
H5.displayName = "ToolkitH5";
|
|
3919
3974
|
|
|
3920
3975
|
// src/foundation/H6/H6.tsx
|
|
3921
3976
|
var import_react21 = __toESM(require("react"));
|
|
3922
|
-
var
|
|
3977
|
+
var import_material16 = require("@mui/material");
|
|
3923
3978
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3924
3979
|
var H6 = import_react21.default.forwardRef(
|
|
3925
3980
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
3926
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material16.Typography, { ref, variant: "h6", color, ...props, children });
|
|
3927
3982
|
}
|
|
3928
3983
|
);
|
|
3929
3984
|
H6.displayName = "ToolkitH6";
|
|
3930
3985
|
|
|
3931
3986
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
3932
3987
|
var import_react22 = __toESM(require("react"));
|
|
3933
|
-
var
|
|
3988
|
+
var import_material17 = require("@mui/material");
|
|
3934
3989
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3935
3990
|
var Subtitle1 = import_react22.default.forwardRef(
|
|
3936
3991
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
3937
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material17.Typography, { ref, variant: "subtitle1", color, ...props, children });
|
|
3938
3993
|
}
|
|
3939
3994
|
);
|
|
3940
3995
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
3941
3996
|
|
|
3942
3997
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
3943
3998
|
var import_react23 = __toESM(require("react"));
|
|
3944
|
-
var
|
|
3999
|
+
var import_material18 = require("@mui/material");
|
|
3945
4000
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3946
4001
|
var Subtitle2 = import_react23.default.forwardRef(
|
|
3947
4002
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
3948
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material18.Typography, { ref, variant: "subtitle2", color, ...props, children });
|
|
3949
4004
|
}
|
|
3950
4005
|
);
|
|
3951
4006
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
3952
4007
|
|
|
3953
4008
|
// src/foundation/Body1/Body1.tsx
|
|
3954
4009
|
var import_react24 = __toESM(require("react"));
|
|
3955
|
-
var
|
|
4010
|
+
var import_material19 = require("@mui/material");
|
|
3956
4011
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3957
4012
|
var Body1 = import_react24.default.forwardRef(
|
|
3958
4013
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
3959
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
4014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_material19.Typography, { ref, variant: "body1", color, ...props, children });
|
|
3960
4015
|
}
|
|
3961
4016
|
);
|
|
3962
4017
|
Body1.displayName = "ToolkitBody1";
|
|
3963
4018
|
|
|
3964
4019
|
// src/foundation/Body2/Body2.tsx
|
|
3965
4020
|
var import_react25 = __toESM(require("react"));
|
|
3966
|
-
var
|
|
4021
|
+
var import_material20 = require("@mui/material");
|
|
3967
4022
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3968
4023
|
var Body2 = import_react25.default.forwardRef(
|
|
3969
4024
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
3970
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material20.Typography, { ref, variant: "body2", color, ...props, children });
|
|
3971
4026
|
}
|
|
3972
4027
|
);
|
|
3973
4028
|
Body2.displayName = "ToolkitBody2";
|
|
3974
4029
|
|
|
3975
4030
|
// src/foundation/Caption/Caption.tsx
|
|
3976
4031
|
var import_react26 = __toESM(require("react"));
|
|
3977
|
-
var
|
|
4032
|
+
var import_material21 = require("@mui/material");
|
|
3978
4033
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3979
4034
|
var Caption = import_react26.default.forwardRef(
|
|
3980
4035
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
3981
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material21.Typography, { ref, variant: "caption", color, ...props, children });
|
|
3982
4037
|
}
|
|
3983
4038
|
);
|
|
3984
4039
|
Caption.displayName = "ToolkitCaption";
|
|
3985
4040
|
|
|
3986
4041
|
// src/foundation/Overline/Overline.tsx
|
|
3987
4042
|
var import_react27 = __toESM(require("react"));
|
|
3988
|
-
var
|
|
4043
|
+
var import_material22 = require("@mui/material");
|
|
3989
4044
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3990
4045
|
var Overline = import_react27.default.forwardRef(
|
|
3991
4046
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
3992
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material22.Typography, { ref, variant: "overline", color, ...props, children });
|
|
3993
4048
|
}
|
|
3994
4049
|
);
|
|
3995
4050
|
Overline.displayName = "ToolkitOverline";
|
|
3996
4051
|
|
|
3997
4052
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
3998
4053
|
var import_react28 = __toESM(require("react"));
|
|
3999
|
-
var
|
|
4054
|
+
var import_material23 = require("@mui/material");
|
|
4000
4055
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4001
4056
|
var TypographyButton = import_react28.default.forwardRef(
|
|
4002
4057
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
4003
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_material23.Typography, { ref, variant: "button", color, ...props, children });
|
|
4004
4059
|
}
|
|
4005
4060
|
);
|
|
4006
4061
|
TypographyButton.displayName = "ToolkitTypographyButton";
|
|
4062
|
+
|
|
4063
|
+
// src/components/Toast/Toast.styles.tsx
|
|
4064
|
+
var import_styles25 = require("@mui/material/styles");
|
|
4065
|
+
var import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
4066
|
+
var StyledToastRoot = (0, import_styles25.styled)("div")(
|
|
4067
|
+
({ theme, ownerState }) => {
|
|
4068
|
+
const bgMap = {
|
|
4069
|
+
success: theme.tokens.colors.success,
|
|
4070
|
+
warning: theme.tokens.colors.warning,
|
|
4071
|
+
error: theme.tokens.colors.error
|
|
4072
|
+
};
|
|
4073
|
+
const colorMap = {
|
|
4074
|
+
success: theme.palette.common.white,
|
|
4075
|
+
warning: theme.tokens.colors.textPrimary,
|
|
4076
|
+
error: theme.palette.common.white
|
|
4077
|
+
};
|
|
4078
|
+
return {
|
|
4079
|
+
position: "fixed",
|
|
4080
|
+
top: 0,
|
|
4081
|
+
left: 0,
|
|
4082
|
+
width: "100%",
|
|
4083
|
+
zIndex: theme.tokens.zIndex.toast,
|
|
4084
|
+
backgroundColor: bgMap[ownerState.variant],
|
|
4085
|
+
color: colorMap[ownerState.variant],
|
|
4086
|
+
WebkitFontSmoothing: "antialiased",
|
|
4087
|
+
boxSizing: "border-box"
|
|
4088
|
+
};
|
|
4089
|
+
}
|
|
4090
|
+
);
|
|
4091
|
+
var StyledToastInner = (0, import_styles25.styled)("div")(({ theme }) => ({
|
|
4092
|
+
display: "flex",
|
|
4093
|
+
alignItems: "center",
|
|
4094
|
+
padding: `${theme.spacing(2.25)} ${theme.spacing(7)} ${theme.spacing(2.25)} ${theme.spacing(1.25)}`,
|
|
4095
|
+
[theme.breakpoints.up("md")]: {
|
|
4096
|
+
maxWidth: 800,
|
|
4097
|
+
padding: `${theme.spacing(2.25)} ${theme.spacing(13.75)}`,
|
|
4098
|
+
margin: "0 auto",
|
|
4099
|
+
justifyContent: "center"
|
|
4100
|
+
}
|
|
4101
|
+
}));
|
|
4102
|
+
var StyledToastIconWrapper = (0, import_styles25.styled)("span")(({ theme }) => ({
|
|
4103
|
+
display: "flex",
|
|
4104
|
+
alignItems: "flex-start",
|
|
4105
|
+
marginRight: theme.spacing(1.25),
|
|
4106
|
+
flexShrink: 0,
|
|
4107
|
+
"& svg": {
|
|
4108
|
+
height: 28,
|
|
4109
|
+
width: 28
|
|
4110
|
+
}
|
|
4111
|
+
}));
|
|
4112
|
+
var StyledToastCloseButton = (0, import_styles25.styled)(import_IconButton.default)(({ theme, ownerState }) => ({
|
|
4113
|
+
position: "absolute",
|
|
4114
|
+
top: theme.spacing(1.25),
|
|
4115
|
+
right: theme.spacing(1.25),
|
|
4116
|
+
color: ownerState.variant === "warning" ? theme.tokens.colors.textPrimary : theme.palette.common.white,
|
|
4117
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
4118
|
+
fontSize: theme.tokens.typography.fontSizeLg,
|
|
4119
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
4120
|
+
"&:hover": {
|
|
4121
|
+
backgroundColor: "rgba(0,0,0,0.08)"
|
|
4122
|
+
}
|
|
4123
|
+
}));
|
|
4124
|
+
|
|
4125
|
+
// src/components/Toast/Toast.tsx
|
|
4126
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4127
|
+
var defaultIconMap = {
|
|
4128
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Check.default, {}),
|
|
4129
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Info.default, {}),
|
|
4130
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Warning.default, {})
|
|
4131
|
+
};
|
|
4132
|
+
var roleMap = {
|
|
4133
|
+
success: void 0,
|
|
4134
|
+
warning: "alert",
|
|
4135
|
+
error: "alert"
|
|
4136
|
+
};
|
|
4137
|
+
var Toast = import_react29.default.forwardRef(
|
|
4138
|
+
({
|
|
4139
|
+
onClose,
|
|
4140
|
+
variant = "success",
|
|
4141
|
+
isVisible = false,
|
|
4142
|
+
icon,
|
|
4143
|
+
message,
|
|
4144
|
+
className,
|
|
4145
|
+
...restProps
|
|
4146
|
+
}, ref) => {
|
|
4147
|
+
if (!isVisible) return null;
|
|
4148
|
+
const ownerState = { variant };
|
|
4149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4150
|
+
StyledToastRoot,
|
|
4151
|
+
{
|
|
4152
|
+
ownerState,
|
|
4153
|
+
ref,
|
|
4154
|
+
className,
|
|
4155
|
+
role: roleMap[variant],
|
|
4156
|
+
...getCleanProps(restProps),
|
|
4157
|
+
children: [
|
|
4158
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(StyledToastInner, { children: [
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(StyledToastIconWrapper, { "aria-hidden": "true", children: icon ?? defaultIconMap[variant] }),
|
|
4160
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Body1, { component: "span", sx: { color: "inherit" }, children: message })
|
|
4161
|
+
] }),
|
|
4162
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4163
|
+
StyledToastCloseButton,
|
|
4164
|
+
{
|
|
4165
|
+
ownerState,
|
|
4166
|
+
onClick: onClose,
|
|
4167
|
+
"aria-label": "Close notification",
|
|
4168
|
+
size: "small",
|
|
4169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Close.default, { fontSize: "small" })
|
|
4170
|
+
}
|
|
4171
|
+
)
|
|
4172
|
+
]
|
|
4173
|
+
}
|
|
4174
|
+
);
|
|
4175
|
+
}
|
|
4176
|
+
);
|
|
4177
|
+
Toast.displayName = "ToolkitToast";
|
|
4178
|
+
|
|
4179
|
+
// src/components/Table/Table.tsx
|
|
4180
|
+
var import_material24 = require("@mui/material");
|
|
4181
|
+
var import_styles26 = require("@mui/material/styles");
|
|
4182
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4183
|
+
var StyledTableContainer = (0, import_styles26.styled)(import_material24.TableContainer)(() => ({
|
|
4184
|
+
overflowX: "auto"
|
|
4185
|
+
}));
|
|
4186
|
+
var StyledHeadCell = (0, import_styles26.styled)(import_material24.TableCell)(({ theme }) => ({
|
|
4187
|
+
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
4188
|
+
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
4189
|
+
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
4190
|
+
borderBottomColor: theme.tokens.components.table.borderColor
|
|
4191
|
+
}));
|
|
4192
|
+
function Table(props) {
|
|
4193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material24.Table, { ...props });
|
|
4194
|
+
}
|
|
4195
|
+
function TableHead(props) {
|
|
4196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material24.TableHead, { ...props });
|
|
4197
|
+
}
|
|
4198
|
+
function TableBody(props) {
|
|
4199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material24.TableBody, { ...props });
|
|
4200
|
+
}
|
|
4201
|
+
function TableRow(props) {
|
|
4202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material24.TableRow, { ...props });
|
|
4203
|
+
}
|
|
4204
|
+
function TableCell(props) {
|
|
4205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material24.TableCell, { ...props });
|
|
4206
|
+
}
|
|
4207
|
+
function TableHeadCell(props) {
|
|
4208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
4209
|
+
}
|
|
4210
|
+
function TableContainer(props) {
|
|
4211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(StyledTableContainer, { ...props });
|
|
4212
|
+
}
|
|
4213
|
+
var TablePagination = import_material24.TablePagination;
|
|
4214
|
+
var TableSortLabel = import_material24.TableSortLabel;
|
|
4215
|
+
Table.displayName = "ToolkitTable";
|
|
4216
|
+
TableHead.displayName = "ToolkitTableHead";
|
|
4217
|
+
TableBody.displayName = "ToolkitTableBody";
|
|
4218
|
+
TableRow.displayName = "ToolkitTableRow";
|
|
4219
|
+
TableCell.displayName = "ToolkitTableCell";
|
|
4220
|
+
TableHeadCell.displayName = "ToolkitTableHeadCell";
|
|
4221
|
+
TableContainer.displayName = "ToolkitTableContainer";
|
|
4007
4222
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4008
4223
|
0 && (module.exports = {
|
|
4009
4224
|
ABNInput,
|
|
@@ -4059,6 +4274,7 @@ TypographyButton.displayName = "ToolkitTypographyButton";
|
|
|
4059
4274
|
PasswordCriteria,
|
|
4060
4275
|
PasswordRule,
|
|
4061
4276
|
PasswordRules,
|
|
4277
|
+
RadioCardGroup,
|
|
4062
4278
|
Spinner,
|
|
4063
4279
|
StandaloneAccordion,
|
|
4064
4280
|
StaticDatePicker,
|
|
@@ -4078,6 +4294,7 @@ TypographyButton.displayName = "ToolkitTypographyButton";
|
|
|
4078
4294
|
TextField,
|
|
4079
4295
|
TimeField,
|
|
4080
4296
|
TimePicker,
|
|
4297
|
+
Toast,
|
|
4081
4298
|
Toggle,
|
|
4082
4299
|
ToggleButton,
|
|
4083
4300
|
ToggleButtonGroup,
|