@octoguide/mui-ui-toolkit 0.8.2 → 0.9.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 +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +322 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +306 -215
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1531,6 +1531,96 @@ var ToggleButton = styled7(MuiToggleButton)(({ theme }) => ({
|
|
|
1531
1531
|
}));
|
|
1532
1532
|
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1533
1533
|
|
|
1534
|
+
// src/components/RadioCardGroup/RadioCardGroup.tsx
|
|
1535
|
+
import Box from "@mui/material/Box";
|
|
1536
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
1537
|
+
import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1538
|
+
var Card2 = styled8(Box, {
|
|
1539
|
+
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
1540
|
+
})(({ theme, selected, disabled }) => ({
|
|
1541
|
+
display: "flex",
|
|
1542
|
+
alignItems: "flex-start",
|
|
1543
|
+
gap: theme.spacing(1.5),
|
|
1544
|
+
padding: theme.spacing(1.5),
|
|
1545
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1546
|
+
border: `1px solid ${selected ? theme.tokens.colors.primary : theme.tokens.colors.border}`,
|
|
1547
|
+
backgroundColor: selected ? theme.tokens.colors.backgroundSubtle : "transparent",
|
|
1548
|
+
cursor: disabled ? "not-allowed" : "pointer",
|
|
1549
|
+
opacity: disabled ? 0.5 : 1,
|
|
1550
|
+
transition: `border-color ${theme.tokens.transitions.durationBase} ease, background-color ${theme.tokens.transitions.durationBase} ease`,
|
|
1551
|
+
"&:hover": !disabled && !selected ? {
|
|
1552
|
+
borderColor: theme.tokens.colors.primaryLight,
|
|
1553
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle
|
|
1554
|
+
} : {}
|
|
1555
|
+
}));
|
|
1556
|
+
var RadioDot = styled8(Box, {
|
|
1557
|
+
shouldForwardProp: (prop) => prop !== "selected"
|
|
1558
|
+
})(({ theme, selected }) => ({
|
|
1559
|
+
marginTop: 2,
|
|
1560
|
+
flexShrink: 0,
|
|
1561
|
+
width: 16,
|
|
1562
|
+
height: 16,
|
|
1563
|
+
borderRadius: "50%",
|
|
1564
|
+
border: `2px solid ${selected ? theme.tokens.colors.primary : theme.tokens.colors.border}`,
|
|
1565
|
+
backgroundColor: selected ? theme.tokens.colors.primary : "transparent",
|
|
1566
|
+
transition: `border-color ${theme.tokens.transitions.durationBase} ease, background-color ${theme.tokens.transitions.durationBase} ease`
|
|
1567
|
+
}));
|
|
1568
|
+
var Label = styled8("span")(({ theme }) => ({
|
|
1569
|
+
display: "block",
|
|
1570
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1571
|
+
fontSize: theme.tokens.typography.fontSizeMd,
|
|
1572
|
+
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
1573
|
+
color: theme.tokens.colors.textPrimary,
|
|
1574
|
+
lineHeight: 1.4
|
|
1575
|
+
}));
|
|
1576
|
+
var Description = styled8("span")(({ theme }) => ({
|
|
1577
|
+
display: "block",
|
|
1578
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1579
|
+
fontSize: theme.tokens.typography.fontSizeSm,
|
|
1580
|
+
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
1581
|
+
color: theme.tokens.colors.textSecondary,
|
|
1582
|
+
lineHeight: 1.5,
|
|
1583
|
+
marginTop: 2
|
|
1584
|
+
}));
|
|
1585
|
+
function RadioCardGroup({ value, onChange, options, disabled = false }) {
|
|
1586
|
+
return /* @__PURE__ */ jsx11(
|
|
1587
|
+
Box,
|
|
1588
|
+
{
|
|
1589
|
+
role: "radiogroup",
|
|
1590
|
+
sx: { display: "flex", flexDirection: "column", gap: 1 },
|
|
1591
|
+
children: options.map((option) => {
|
|
1592
|
+
const selected = option.value === value;
|
|
1593
|
+
return /* @__PURE__ */ jsxs3(
|
|
1594
|
+
Card2,
|
|
1595
|
+
{
|
|
1596
|
+
selected,
|
|
1597
|
+
disabled,
|
|
1598
|
+
role: "radio",
|
|
1599
|
+
"aria-checked": selected,
|
|
1600
|
+
tabIndex: disabled ? -1 : 0,
|
|
1601
|
+
onClick: () => !disabled && onChange(option.value),
|
|
1602
|
+
onKeyDown: (e) => {
|
|
1603
|
+
if (!disabled && (e.key === "Enter" || e.key === " ")) {
|
|
1604
|
+
e.preventDefault();
|
|
1605
|
+
onChange(option.value);
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
children: [
|
|
1609
|
+
/* @__PURE__ */ jsx11(RadioDot, { selected }),
|
|
1610
|
+
/* @__PURE__ */ jsxs3(Box, { children: [
|
|
1611
|
+
/* @__PURE__ */ jsx11(Label, { children: option.label }),
|
|
1612
|
+
option.description && /* @__PURE__ */ jsx11(Description, { children: option.description })
|
|
1613
|
+
] })
|
|
1614
|
+
]
|
|
1615
|
+
},
|
|
1616
|
+
option.value
|
|
1617
|
+
);
|
|
1618
|
+
})
|
|
1619
|
+
}
|
|
1620
|
+
);
|
|
1621
|
+
}
|
|
1622
|
+
RadioCardGroup.displayName = "ToolkitRadioCardGroup";
|
|
1623
|
+
|
|
1534
1624
|
// src/components/DatePicker/DatePicker.tsx
|
|
1535
1625
|
import { useState as useState2 } from "react";
|
|
1536
1626
|
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
@@ -1587,79 +1677,79 @@ import Dialog2 from "@mui/material/Dialog";
|
|
|
1587
1677
|
import DialogContent2 from "@mui/material/DialogContent";
|
|
1588
1678
|
import DialogActions2 from "@mui/material/DialogActions";
|
|
1589
1679
|
import Button2 from "@mui/material/Button";
|
|
1590
|
-
import
|
|
1680
|
+
import Box2 from "@mui/material/Box";
|
|
1591
1681
|
import TextField3 from "@mui/material/TextField";
|
|
1592
|
-
import { styled as
|
|
1593
|
-
import { Fragment, jsx as
|
|
1682
|
+
import { styled as styled9 } from "@mui/material/styles";
|
|
1683
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1594
1684
|
function DateLocalizationProvider({ children }) {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1685
|
+
return /* @__PURE__ */ jsx12(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
|
|
1596
1686
|
}
|
|
1597
1687
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1598
1688
|
function DatePicker(props) {
|
|
1599
|
-
return /* @__PURE__ */
|
|
1689
|
+
return /* @__PURE__ */ jsx12(MuiDatePicker, { ...props });
|
|
1600
1690
|
}
|
|
1601
1691
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1602
1692
|
function DesktopDatePicker(props) {
|
|
1603
|
-
return /* @__PURE__ */
|
|
1693
|
+
return /* @__PURE__ */ jsx12(MuiDesktopDatePicker, { ...props });
|
|
1604
1694
|
}
|
|
1605
1695
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1606
1696
|
function MobileDatePicker(props) {
|
|
1607
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ jsx12(MuiMobileDatePicker, { ...props });
|
|
1608
1698
|
}
|
|
1609
1699
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1610
1700
|
function DateField(props) {
|
|
1611
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ jsx12(MuiDateField, { ...props });
|
|
1612
1702
|
}
|
|
1613
1703
|
DateField.displayName = "ToolkitDateField";
|
|
1614
1704
|
function StaticDatePicker(props) {
|
|
1615
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ jsx12(MuiStaticDatePicker, { ...props });
|
|
1616
1706
|
}
|
|
1617
1707
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1618
1708
|
function TimePicker(props) {
|
|
1619
|
-
return /* @__PURE__ */
|
|
1709
|
+
return /* @__PURE__ */ jsx12(MuiTimePicker, { ...props });
|
|
1620
1710
|
}
|
|
1621
1711
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1622
1712
|
function DesktopTimePicker(props) {
|
|
1623
|
-
return /* @__PURE__ */
|
|
1713
|
+
return /* @__PURE__ */ jsx12(MuiDesktopTimePicker, { ...props });
|
|
1624
1714
|
}
|
|
1625
1715
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1626
1716
|
function MobileTimePicker(props) {
|
|
1627
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx12(MuiMobileTimePicker, { ...props });
|
|
1628
1718
|
}
|
|
1629
1719
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1630
1720
|
function TimeField(props) {
|
|
1631
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ jsx12(MuiTimeField, { ...props });
|
|
1632
1722
|
}
|
|
1633
1723
|
TimeField.displayName = "ToolkitTimeField";
|
|
1634
1724
|
function StaticTimePicker(props) {
|
|
1635
|
-
return /* @__PURE__ */
|
|
1725
|
+
return /* @__PURE__ */ jsx12(MuiStaticTimePicker, { ...props });
|
|
1636
1726
|
}
|
|
1637
1727
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1638
1728
|
function DateTimePicker(props) {
|
|
1639
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx12(MuiDateTimePicker, { ...props });
|
|
1640
1730
|
}
|
|
1641
1731
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1642
1732
|
function DesktopDateTimePicker(props) {
|
|
1643
|
-
return /* @__PURE__ */
|
|
1733
|
+
return /* @__PURE__ */ jsx12(MuiDesktopDateTimePicker, { ...props });
|
|
1644
1734
|
}
|
|
1645
1735
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1646
1736
|
function MobileDateTimePicker(props) {
|
|
1647
|
-
return /* @__PURE__ */
|
|
1737
|
+
return /* @__PURE__ */ jsx12(MuiMobileDateTimePicker, { ...props });
|
|
1648
1738
|
}
|
|
1649
1739
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1650
1740
|
function DateTimeField(props) {
|
|
1651
|
-
return /* @__PURE__ */
|
|
1741
|
+
return /* @__PURE__ */ jsx12(MuiDateTimeField, { ...props });
|
|
1652
1742
|
}
|
|
1653
1743
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1654
1744
|
function StaticDateTimePicker(props) {
|
|
1655
|
-
return /* @__PURE__ */
|
|
1745
|
+
return /* @__PURE__ */ jsx12(MuiStaticDateTimePicker, { ...props });
|
|
1656
1746
|
}
|
|
1657
1747
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1658
1748
|
function DateCalendar(props) {
|
|
1659
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ jsx12(MuiDateCalendar, { ...props });
|
|
1660
1750
|
}
|
|
1661
1751
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1662
|
-
var RangeRow =
|
|
1752
|
+
var RangeRow = styled9(Box2)(({ theme }) => ({
|
|
1663
1753
|
display: "flex",
|
|
1664
1754
|
gap: theme.spacing(2),
|
|
1665
1755
|
alignItems: "center"
|
|
@@ -1682,11 +1772,11 @@ function DateRangePickerInput({
|
|
|
1682
1772
|
onChange(draft);
|
|
1683
1773
|
setOpen(false);
|
|
1684
1774
|
};
|
|
1685
|
-
return /* @__PURE__ */
|
|
1686
|
-
/* @__PURE__ */
|
|
1687
|
-
/* @__PURE__ */
|
|
1688
|
-
/* @__PURE__ */
|
|
1689
|
-
/* @__PURE__ */
|
|
1775
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1776
|
+
/* @__PURE__ */ jsx12(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1777
|
+
/* @__PURE__ */ jsxs4(Dialog2, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1778
|
+
/* @__PURE__ */ jsx12(DialogContent2, { children: /* @__PURE__ */ jsxs4(RangeRow, { children: [
|
|
1779
|
+
/* @__PURE__ */ jsx12(
|
|
1690
1780
|
MuiDatePicker,
|
|
1691
1781
|
{
|
|
1692
1782
|
label: startLabel,
|
|
@@ -1695,7 +1785,7 @@ function DateRangePickerInput({
|
|
|
1695
1785
|
slotProps: { textField: { fullWidth: true } }
|
|
1696
1786
|
}
|
|
1697
1787
|
),
|
|
1698
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsx12(
|
|
1699
1789
|
MuiDatePicker,
|
|
1700
1790
|
{
|
|
1701
1791
|
label: endLabel,
|
|
@@ -1705,9 +1795,9 @@ function DateRangePickerInput({
|
|
|
1705
1795
|
}
|
|
1706
1796
|
)
|
|
1707
1797
|
] }) }),
|
|
1708
|
-
/* @__PURE__ */
|
|
1709
|
-
/* @__PURE__ */
|
|
1710
|
-
/* @__PURE__ */
|
|
1798
|
+
/* @__PURE__ */ jsxs4(DialogActions2, { children: [
|
|
1799
|
+
/* @__PURE__ */ jsx12(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1800
|
+
/* @__PURE__ */ jsx12(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1711
1801
|
] })
|
|
1712
1802
|
] })
|
|
1713
1803
|
] });
|
|
@@ -1739,11 +1829,11 @@ function DateRangePickerCalendar({
|
|
|
1739
1829
|
setDraft((prev) => ({ ...prev, end: date }));
|
|
1740
1830
|
}
|
|
1741
1831
|
};
|
|
1742
|
-
return /* @__PURE__ */
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
/* @__PURE__ */
|
|
1745
|
-
/* @__PURE__ */
|
|
1746
|
-
/* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1833
|
+
/* @__PURE__ */ jsx12(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1834
|
+
/* @__PURE__ */ jsxs4(Dialog2, { open, onClose: handleCancel, children: [
|
|
1835
|
+
/* @__PURE__ */ jsxs4(DialogContent2, { sx: { p: 1 }, children: [
|
|
1836
|
+
/* @__PURE__ */ jsx12(Box2, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx12(
|
|
1747
1837
|
TextField3,
|
|
1748
1838
|
{
|
|
1749
1839
|
size: "small",
|
|
@@ -1753,7 +1843,7 @@ function DateRangePickerCalendar({
|
|
|
1753
1843
|
fullWidth: true
|
|
1754
1844
|
}
|
|
1755
1845
|
) }),
|
|
1756
|
-
/* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ jsx12(
|
|
1757
1847
|
MuiDateCalendar,
|
|
1758
1848
|
{
|
|
1759
1849
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1761,9 +1851,9 @@ function DateRangePickerCalendar({
|
|
|
1761
1851
|
}
|
|
1762
1852
|
)
|
|
1763
1853
|
] }),
|
|
1764
|
-
/* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */
|
|
1766
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ jsxs4(DialogActions2, { children: [
|
|
1855
|
+
/* @__PURE__ */ jsx12(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1856
|
+
/* @__PURE__ */ jsx12(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1767
1857
|
] })
|
|
1768
1858
|
] })
|
|
1769
1859
|
] });
|
|
@@ -1772,9 +1862,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1772
1862
|
|
|
1773
1863
|
// src/foundation/Grid/Grid.tsx
|
|
1774
1864
|
import { Grid2 as MuiGrid2 } from "@mui/material";
|
|
1775
|
-
import { jsx as
|
|
1865
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1776
1866
|
function Grid({ container, spacing, ...props }) {
|
|
1777
|
-
return /* @__PURE__ */
|
|
1867
|
+
return /* @__PURE__ */ jsx13(
|
|
1778
1868
|
MuiGrid2,
|
|
1779
1869
|
{
|
|
1780
1870
|
container,
|
|
@@ -1789,9 +1879,9 @@ Grid.displayName = "ToolkitGrid";
|
|
|
1789
1879
|
import React4 from "react";
|
|
1790
1880
|
|
|
1791
1881
|
// src/components/IconText/IconText.styles.tsx
|
|
1792
|
-
import { styled as
|
|
1882
|
+
import { styled as styled10 } from "@mui/material/styles";
|
|
1793
1883
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
1794
|
-
var StyledIconTextRoot =
|
|
1884
|
+
var StyledIconTextRoot = styled10("div")(
|
|
1795
1885
|
({ $inheritFontFamily }) => ({
|
|
1796
1886
|
display: "flex",
|
|
1797
1887
|
alignItems: "center",
|
|
@@ -1807,7 +1897,7 @@ var StyledIconTextRoot = styled9("div")(
|
|
|
1807
1897
|
}
|
|
1808
1898
|
})
|
|
1809
1899
|
);
|
|
1810
|
-
var StyledIconTextSymbol =
|
|
1900
|
+
var StyledIconTextSymbol = styled10(SvgIcon4, {
|
|
1811
1901
|
shouldForwardProp: (prop) => prop !== "$position"
|
|
1812
1902
|
})(({ theme, $position }) => ({
|
|
1813
1903
|
flexShrink: 0,
|
|
@@ -1816,7 +1906,7 @@ var StyledIconTextSymbol = styled9(SvgIcon4, {
|
|
|
1816
1906
|
}));
|
|
1817
1907
|
|
|
1818
1908
|
// src/components/IconText/IconText.tsx
|
|
1819
|
-
import { jsx as
|
|
1909
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1820
1910
|
var IconText = React4.forwardRef(
|
|
1821
1911
|
function IconText2({
|
|
1822
1912
|
symbol,
|
|
@@ -1826,17 +1916,17 @@ var IconText = React4.forwardRef(
|
|
|
1826
1916
|
children,
|
|
1827
1917
|
...rest
|
|
1828
1918
|
}, ref) {
|
|
1829
|
-
const icon = /* @__PURE__ */
|
|
1919
|
+
const icon = /* @__PURE__ */ jsx14(
|
|
1830
1920
|
StyledIconTextSymbol,
|
|
1831
1921
|
{
|
|
1832
1922
|
$position: symbolPosition,
|
|
1833
1923
|
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1834
1924
|
"aria-hidden": "true",
|
|
1835
1925
|
...symbolProps,
|
|
1836
|
-
children: symbol.content && /* @__PURE__ */
|
|
1926
|
+
children: symbol.content && /* @__PURE__ */ jsx14("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1837
1927
|
}
|
|
1838
1928
|
);
|
|
1839
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsxs5(
|
|
1840
1930
|
StyledIconTextRoot,
|
|
1841
1931
|
{
|
|
1842
1932
|
ref,
|
|
@@ -1857,9 +1947,9 @@ IconText.displayName = "ToolkitIconText";
|
|
|
1857
1947
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
1858
1948
|
|
|
1859
1949
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1860
|
-
import
|
|
1861
|
-
import { styled as
|
|
1862
|
-
var StyledWrapper =
|
|
1950
|
+
import Box3 from "@mui/material/Box";
|
|
1951
|
+
import { styled as styled11 } from "@mui/material/styles";
|
|
1952
|
+
var StyledWrapper = styled11("div")(({ theme }) => ({
|
|
1863
1953
|
"& > a, & > div": {
|
|
1864
1954
|
textDecoration: "none",
|
|
1865
1955
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1868,7 +1958,7 @@ var StyledWrapper = styled10("div")(({ theme }) => ({
|
|
|
1868
1958
|
}
|
|
1869
1959
|
}
|
|
1870
1960
|
}));
|
|
1871
|
-
var StyledListItemContainer =
|
|
1961
|
+
var StyledListItemContainer = styled11(Box3)(({ theme }) => ({
|
|
1872
1962
|
width: "100%",
|
|
1873
1963
|
minHeight: "66px",
|
|
1874
1964
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1911,19 +2001,19 @@ var StyledListItemContainer = styled10(Box2)(({ theme }) => ({
|
|
|
1911
2001
|
outlineStyle: "solid"
|
|
1912
2002
|
}
|
|
1913
2003
|
}));
|
|
1914
|
-
var StyledLeftIconWrapper =
|
|
2004
|
+
var StyledLeftIconWrapper = styled11("span")({
|
|
1915
2005
|
display: "flex",
|
|
1916
2006
|
paddingLeft: "4px"
|
|
1917
2007
|
});
|
|
1918
|
-
var StyledRightIconWrapper =
|
|
2008
|
+
var StyledRightIconWrapper = styled11("span")({
|
|
1919
2009
|
display: "flex",
|
|
1920
2010
|
paddingRight: "4px"
|
|
1921
2011
|
});
|
|
1922
|
-
var StyledLabelContainer =
|
|
2012
|
+
var StyledLabelContainer = styled11("div")({
|
|
1923
2013
|
flex: 1,
|
|
1924
2014
|
padding: "12px 8px"
|
|
1925
2015
|
});
|
|
1926
|
-
var StyledLabel =
|
|
2016
|
+
var StyledLabel = styled11("p")(({ theme }) => ({
|
|
1927
2017
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1928
2018
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1929
2019
|
lineHeight: "20px",
|
|
@@ -1931,7 +2021,7 @@ var StyledLabel = styled10("p")(({ theme }) => ({
|
|
|
1931
2021
|
margin: 0,
|
|
1932
2022
|
textDecoration: "none"
|
|
1933
2023
|
}));
|
|
1934
|
-
var StyledCaption =
|
|
2024
|
+
var StyledCaption = styled11("p")(({ theme }) => ({
|
|
1935
2025
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1936
2026
|
color: theme.tokens.colors.textSecondary,
|
|
1937
2027
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -1942,7 +2032,7 @@ var StyledCaption = styled10("p")(({ theme }) => ({
|
|
|
1942
2032
|
}));
|
|
1943
2033
|
|
|
1944
2034
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1945
|
-
import { jsx as
|
|
2035
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1946
2036
|
function InternalLinkItem({
|
|
1947
2037
|
link,
|
|
1948
2038
|
icon,
|
|
@@ -1951,19 +2041,19 @@ function InternalLinkItem({
|
|
|
1951
2041
|
component,
|
|
1952
2042
|
...restProps
|
|
1953
2043
|
}) {
|
|
1954
|
-
return /* @__PURE__ */
|
|
2044
|
+
return /* @__PURE__ */ jsx15(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs6(
|
|
1955
2045
|
StyledListItemContainer,
|
|
1956
2046
|
{
|
|
1957
2047
|
component: component ?? "a",
|
|
1958
2048
|
href: link,
|
|
1959
2049
|
...getCleanProps(restProps),
|
|
1960
2050
|
children: [
|
|
1961
|
-
icon && /* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
caption && /* @__PURE__ */
|
|
2051
|
+
icon && /* @__PURE__ */ jsx15(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
2052
|
+
/* @__PURE__ */ jsxs6(StyledLabelContainer, { children: [
|
|
2053
|
+
/* @__PURE__ */ jsx15(StyledLabel, { className: "itemLabel", children: label }),
|
|
2054
|
+
caption && /* @__PURE__ */ jsx15(StyledCaption, { children: caption })
|
|
1965
2055
|
] }),
|
|
1966
|
-
/* @__PURE__ */
|
|
2056
|
+
/* @__PURE__ */ jsx15(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx15(ChevronRightIcon, { fontSize: "small" }) })
|
|
1967
2057
|
]
|
|
1968
2058
|
}
|
|
1969
2059
|
) });
|
|
@@ -1976,9 +2066,9 @@ import OpenInNewIcon from "@mui/icons-material/OpenInNew";
|
|
|
1976
2066
|
import SvgIcon5 from "@mui/material/SvgIcon";
|
|
1977
2067
|
|
|
1978
2068
|
// src/components/Link/Link.styles.tsx
|
|
1979
|
-
import
|
|
1980
|
-
import { styled as
|
|
1981
|
-
var StyledScreenReaderOnly =
|
|
2069
|
+
import Box4 from "@mui/material/Box";
|
|
2070
|
+
import { styled as styled12, alpha as alpha2 } from "@mui/material/styles";
|
|
2071
|
+
var StyledScreenReaderOnly = styled12("span")({
|
|
1982
2072
|
position: "absolute",
|
|
1983
2073
|
width: "1px",
|
|
1984
2074
|
height: "1px",
|
|
@@ -1989,7 +2079,7 @@ var StyledScreenReaderOnly = styled11("span")({
|
|
|
1989
2079
|
whiteSpace: "nowrap",
|
|
1990
2080
|
border: 0
|
|
1991
2081
|
});
|
|
1992
|
-
var StyledIconSpan =
|
|
2082
|
+
var StyledIconSpan = styled12("span", {
|
|
1993
2083
|
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
1994
2084
|
})(({ iconRight }) => ({
|
|
1995
2085
|
display: "inline-flex",
|
|
@@ -1997,7 +2087,7 @@ var StyledIconSpan = styled11("span", {
|
|
|
1997
2087
|
paddingLeft: iconRight ? "4px" : void 0,
|
|
1998
2088
|
paddingRight: iconRight ? void 0 : "4px"
|
|
1999
2089
|
}));
|
|
2000
|
-
var StyledAnchor =
|
|
2090
|
+
var StyledAnchor = styled12(Box4, {
|
|
2001
2091
|
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
2002
2092
|
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
2003
2093
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
@@ -2056,14 +2146,14 @@ var StyledAnchor = styled11(Box3, {
|
|
|
2056
2146
|
});
|
|
2057
2147
|
|
|
2058
2148
|
// src/components/Link/Link.tsx
|
|
2059
|
-
import { jsx as
|
|
2149
|
+
import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2060
2150
|
var Variant = {
|
|
2061
2151
|
standard: "standard",
|
|
2062
2152
|
external: "external",
|
|
2063
2153
|
file: "file"
|
|
2064
2154
|
};
|
|
2065
2155
|
function DocumentIcon() {
|
|
2066
|
-
return /* @__PURE__ */
|
|
2156
|
+
return /* @__PURE__ */ jsx16(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx16(
|
|
2067
2157
|
"path",
|
|
2068
2158
|
{
|
|
2069
2159
|
fillRule: "evenodd",
|
|
@@ -2098,7 +2188,7 @@ var Link = React5.forwardRef(function Link2({
|
|
|
2098
2188
|
const target = variant !== Variant.standard ? "_blank" : targetProp;
|
|
2099
2189
|
const iconRight = variant === Variant.external ? true : !!iconToRight;
|
|
2100
2190
|
const urlProp = component ? { to: href } : { href };
|
|
2101
|
-
return /* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsxs7(
|
|
2102
2192
|
StyledAnchor,
|
|
2103
2193
|
{
|
|
2104
2194
|
component: component ?? "a",
|
|
@@ -2112,9 +2202,9 @@ var Link = React5.forwardRef(function Link2({
|
|
|
2112
2202
|
standalonelink: !!standalone,
|
|
2113
2203
|
ref,
|
|
2114
2204
|
children: [
|
|
2115
|
-
Icon && /* @__PURE__ */
|
|
2205
|
+
Icon && /* @__PURE__ */ jsx16(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx16(Icon, { fontSize: "inherit" }) }),
|
|
2116
2206
|
children,
|
|
2117
|
-
variant === Variant.external && /* @__PURE__ */
|
|
2207
|
+
variant === Variant.external && /* @__PURE__ */ jsx16(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
2118
2208
|
]
|
|
2119
2209
|
}
|
|
2120
2210
|
);
|
|
@@ -2125,9 +2215,9 @@ Link.displayName = "ToolkitLink";
|
|
|
2125
2215
|
import React6 from "react";
|
|
2126
2216
|
|
|
2127
2217
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2128
|
-
import
|
|
2129
|
-
import { styled as
|
|
2130
|
-
var StyledLogoLink =
|
|
2218
|
+
import Box5 from "@mui/material/Box";
|
|
2219
|
+
import { styled as styled13 } from "@mui/material/styles";
|
|
2220
|
+
var StyledLogoLink = styled13(Box5, {
|
|
2131
2221
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2132
2222
|
})(({ theme, isSmall }) => ({
|
|
2133
2223
|
display: "inline-flex",
|
|
@@ -2144,7 +2234,7 @@ var StyledLogoLink = styled12(Box4, {
|
|
|
2144
2234
|
color: theme.tokens.colors.primaryDark
|
|
2145
2235
|
}
|
|
2146
2236
|
}));
|
|
2147
|
-
var StyledLogoSpan =
|
|
2237
|
+
var StyledLogoSpan = styled13("span")(({ theme }) => ({
|
|
2148
2238
|
padding: "0 10px 0 15px",
|
|
2149
2239
|
backgroundColor: theme.tokens.colors.primary,
|
|
2150
2240
|
height: "100%",
|
|
@@ -2162,9 +2252,9 @@ var StyledLogoSpan = styled12("span")(({ theme }) => ({
|
|
|
2162
2252
|
}));
|
|
2163
2253
|
|
|
2164
2254
|
// src/components/LogoLink/LogoLink.tsx
|
|
2165
|
-
import { jsx as
|
|
2255
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2166
2256
|
var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2167
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ jsx17(
|
|
2168
2258
|
StyledLogoLink,
|
|
2169
2259
|
{
|
|
2170
2260
|
component: component ?? "a",
|
|
@@ -2174,7 +2264,7 @@ var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSm
|
|
|
2174
2264
|
"data-component-id": "LogoLink",
|
|
2175
2265
|
...getCleanProps(restProps),
|
|
2176
2266
|
ref,
|
|
2177
|
-
children: /* @__PURE__ */
|
|
2267
|
+
children: /* @__PURE__ */ jsx17(StyledLogoSpan, { children })
|
|
2178
2268
|
}
|
|
2179
2269
|
);
|
|
2180
2270
|
});
|
|
@@ -2312,8 +2402,8 @@ var SELECT_ALL_OPTION = {
|
|
|
2312
2402
|
};
|
|
2313
2403
|
|
|
2314
2404
|
// src/components/MultiSelect/MultiSelect.styles.tsx
|
|
2315
|
-
import { styled as
|
|
2316
|
-
var StyledMultiSelectContainer =
|
|
2405
|
+
import { styled as styled14, alpha as alpha3 } from "@mui/material/styles";
|
|
2406
|
+
var StyledMultiSelectContainer = styled14("div")(({ theme }) => ({
|
|
2317
2407
|
display: "inline-block",
|
|
2318
2408
|
position: "relative",
|
|
2319
2409
|
width: "100%",
|
|
@@ -2322,7 +2412,7 @@ var StyledMultiSelectContainer = styled13("div")(({ theme }) => ({
|
|
|
2322
2412
|
borderRadius: theme.tokens.borderRadius.md,
|
|
2323
2413
|
fontFamily: theme.tokens.typography.fontFamilyBase
|
|
2324
2414
|
}));
|
|
2325
|
-
var StyledSelectionContainerOutline =
|
|
2415
|
+
var StyledSelectionContainerOutline = styled14("div")(
|
|
2326
2416
|
({ theme, isError }) => ({
|
|
2327
2417
|
border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
|
|
2328
2418
|
borderRadius: theme.tokens.borderRadius.md,
|
|
@@ -2335,7 +2425,7 @@ var StyledSelectionContainerOutline = styled13("div")(
|
|
|
2335
2425
|
zIndex: 0
|
|
2336
2426
|
})
|
|
2337
2427
|
);
|
|
2338
|
-
var StyledSelectionContainer =
|
|
2428
|
+
var StyledSelectionContainer = styled14("button")(
|
|
2339
2429
|
({ theme, isError }) => ({
|
|
2340
2430
|
display: "inline-flex",
|
|
2341
2431
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -2372,7 +2462,7 @@ var StyledSelectionContainer = styled13("button")(
|
|
|
2372
2462
|
}
|
|
2373
2463
|
})
|
|
2374
2464
|
);
|
|
2375
|
-
var StyledSelectPlaceholder =
|
|
2465
|
+
var StyledSelectPlaceholder = styled14("span")(({ theme }) => ({
|
|
2376
2466
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2377
2467
|
display: "inline-block",
|
|
2378
2468
|
flexGrow: 1,
|
|
@@ -2380,13 +2470,13 @@ var StyledSelectPlaceholder = styled13("span")(({ theme }) => ({
|
|
|
2380
2470
|
border: "none",
|
|
2381
2471
|
outline: "none"
|
|
2382
2472
|
}));
|
|
2383
|
-
var StyledPopperInner =
|
|
2473
|
+
var StyledPopperInner = styled14("div")(({ theme }) => ({
|
|
2384
2474
|
width: "100%",
|
|
2385
2475
|
overflow: "hidden",
|
|
2386
2476
|
boxSizing: "border-box",
|
|
2387
2477
|
zIndex: theme.zIndex.tooltip
|
|
2388
2478
|
}));
|
|
2389
|
-
var StyledTransitionContainer =
|
|
2479
|
+
var StyledTransitionContainer = styled14("ul")(({ theme }) => ({
|
|
2390
2480
|
"&:focus": {
|
|
2391
2481
|
outline: "1px solid transparent"
|
|
2392
2482
|
},
|
|
@@ -2404,7 +2494,7 @@ var StyledTransitionContainer = styled13("ul")(({ theme }) => ({
|
|
|
2404
2494
|
overflowY: "auto",
|
|
2405
2495
|
backgroundColor: theme.palette.background.paper
|
|
2406
2496
|
}));
|
|
2407
|
-
var StyledDropdownArrow =
|
|
2497
|
+
var StyledDropdownArrow = styled14("div")(() => ({
|
|
2408
2498
|
height: "24px",
|
|
2409
2499
|
width: "24px",
|
|
2410
2500
|
"& > svg": {
|
|
@@ -2413,7 +2503,7 @@ var StyledDropdownArrow = styled13("div")(() => ({
|
|
|
2413
2503
|
}));
|
|
2414
2504
|
|
|
2415
2505
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
2416
|
-
import { jsx as
|
|
2506
|
+
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2417
2507
|
var MultiSelect = ({
|
|
2418
2508
|
options: initialOptions,
|
|
2419
2509
|
placeholder,
|
|
@@ -2684,7 +2774,7 @@ var MultiSelect = ({
|
|
|
2684
2774
|
const handleBlur = (e) => {
|
|
2685
2775
|
if (!open && onBlur) onBlur(e);
|
|
2686
2776
|
};
|
|
2687
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsxs8(
|
|
2688
2778
|
StyledMultiSelectContainer,
|
|
2689
2779
|
{
|
|
2690
2780
|
tabIndex: -1,
|
|
@@ -2703,8 +2793,8 @@ var MultiSelect = ({
|
|
|
2703
2793
|
},
|
|
2704
2794
|
...getCleanProps(restProps),
|
|
2705
2795
|
children: [
|
|
2706
|
-
/* @__PURE__ */
|
|
2707
|
-
/* @__PURE__ */
|
|
2796
|
+
/* @__PURE__ */ jsxs8("div", { ref: triggerWrapperRef, style: { position: "relative" }, children: [
|
|
2797
|
+
/* @__PURE__ */ jsxs8(
|
|
2708
2798
|
StyledSelectionContainer,
|
|
2709
2799
|
{
|
|
2710
2800
|
id: `multi-accounts-dropdown-toggle-button-${inputId}`,
|
|
@@ -2720,8 +2810,8 @@ var MultiSelect = ({
|
|
|
2720
2810
|
"data-multi-select-trigger": true,
|
|
2721
2811
|
"aria-haspopup": "tree",
|
|
2722
2812
|
children: [
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
/* @__PURE__ */
|
|
2813
|
+
/* @__PURE__ */ jsx18(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
|
|
2814
|
+
/* @__PURE__ */ jsx18(StyledDropdownArrow, { children: /* @__PURE__ */ jsx18(
|
|
2725
2815
|
KeyboardArrowDownIcon,
|
|
2726
2816
|
{
|
|
2727
2817
|
sx: {
|
|
@@ -2730,11 +2820,11 @@ var MultiSelect = ({
|
|
|
2730
2820
|
}
|
|
2731
2821
|
}
|
|
2732
2822
|
) }),
|
|
2733
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ jsx18("input", { name: inputId, type: "hidden", required, "aria-required": required })
|
|
2734
2824
|
]
|
|
2735
2825
|
}
|
|
2736
2826
|
),
|
|
2737
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ jsx18(
|
|
2738
2828
|
StyledSelectionContainerOutline,
|
|
2739
2829
|
{
|
|
2740
2830
|
"data-lose-focus": currentOptionIndex > -1,
|
|
@@ -2743,7 +2833,7 @@ var MultiSelect = ({
|
|
|
2743
2833
|
}
|
|
2744
2834
|
)
|
|
2745
2835
|
] }),
|
|
2746
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ jsx18(
|
|
2747
2837
|
Popper,
|
|
2748
2838
|
{
|
|
2749
2839
|
open,
|
|
@@ -2755,7 +2845,7 @@ var MultiSelect = ({
|
|
|
2755
2845
|
{ name: "preventOverflow", enabled: true },
|
|
2756
2846
|
{ name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
|
|
2757
2847
|
],
|
|
2758
|
-
children: /* @__PURE__ */
|
|
2848
|
+
children: /* @__PURE__ */ jsx18(StyledPopperInner, { children: /* @__PURE__ */ jsx18(Collapse, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ jsxs8(
|
|
2759
2849
|
StyledTransitionContainer,
|
|
2760
2850
|
{
|
|
2761
2851
|
role: "tree",
|
|
@@ -2788,9 +2878,9 @@ MultiSelect.displayName = "ToolkitMultiSelect";
|
|
|
2788
2878
|
|
|
2789
2879
|
// src/components/OtpInput/OtpInput.tsx
|
|
2790
2880
|
import { useRef as useRef2, useCallback as useCallback4 } from "react";
|
|
2791
|
-
import
|
|
2881
|
+
import Box6 from "@mui/material/Box";
|
|
2792
2882
|
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
2793
|
-
import { jsx as
|
|
2883
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2794
2884
|
var OTP_LENGTH = 6;
|
|
2795
2885
|
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2796
2886
|
const inputRefs = useRef2([]);
|
|
@@ -2823,7 +2913,7 @@ var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
|
2823
2913
|
},
|
|
2824
2914
|
[onChange]
|
|
2825
2915
|
);
|
|
2826
|
-
return /* @__PURE__ */
|
|
2916
|
+
return /* @__PURE__ */ jsx19(Box6, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ jsx19(
|
|
2827
2917
|
OutlinedInput,
|
|
2828
2918
|
{
|
|
2829
2919
|
inputRef: (el) => {
|
|
@@ -3010,13 +3100,13 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
3010
3100
|
}
|
|
3011
3101
|
|
|
3012
3102
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
3013
|
-
import { styled as
|
|
3103
|
+
import { styled as styled15 } from "@mui/material/styles";
|
|
3014
3104
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
3015
3105
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
3016
|
-
var StyledPageSpinnerRoot =
|
|
3106
|
+
var StyledPageSpinnerRoot = styled15("div")(() => ({
|
|
3017
3107
|
position: "relative"
|
|
3018
3108
|
}));
|
|
3019
|
-
var StyledOverlay =
|
|
3109
|
+
var StyledOverlay = styled15("div", {
|
|
3020
3110
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3021
3111
|
})(({ theme, $darkBg = false }) => ({
|
|
3022
3112
|
position: "fixed",
|
|
@@ -3024,7 +3114,7 @@ var StyledOverlay = styled14("div", {
|
|
|
3024
3114
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
3025
3115
|
backgroundColor: $darkBg ? alpha4(theme.tokens.colors.textPrimary, 0.9) : alpha4(theme.palette.common.white, 0.9)
|
|
3026
3116
|
}));
|
|
3027
|
-
var StyledSpinnerCentre =
|
|
3117
|
+
var StyledSpinnerCentre = styled15("div")(() => ({
|
|
3028
3118
|
position: "fixed",
|
|
3029
3119
|
top: "50%",
|
|
3030
3120
|
left: "50%",
|
|
@@ -3035,7 +3125,7 @@ var StyledSpinnerCentre = styled14("div")(() => ({
|
|
|
3035
3125
|
alignItems: "center",
|
|
3036
3126
|
gap: "16px"
|
|
3037
3127
|
}));
|
|
3038
|
-
var StyledSpinnerMessage =
|
|
3128
|
+
var StyledSpinnerMessage = styled15("p", {
|
|
3039
3129
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3040
3130
|
})(({ theme, $darkBg = false }) => ({
|
|
3041
3131
|
margin: 0,
|
|
@@ -3046,7 +3136,7 @@ var StyledSpinnerMessage = styled14("p", {
|
|
|
3046
3136
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
3047
3137
|
textAlign: "center"
|
|
3048
3138
|
}));
|
|
3049
|
-
var StyledScreenReaderOnly2 =
|
|
3139
|
+
var StyledScreenReaderOnly2 = styled15("span")(() => ({
|
|
3050
3140
|
position: "absolute",
|
|
3051
3141
|
width: "1px",
|
|
3052
3142
|
height: "1px",
|
|
@@ -3059,7 +3149,7 @@ var StyledScreenReaderOnly2 = styled14("span")(() => ({
|
|
|
3059
3149
|
}));
|
|
3060
3150
|
|
|
3061
3151
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
3062
|
-
import { jsx as
|
|
3152
|
+
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3063
3153
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
3064
3154
|
var PageSpinner = React8.forwardRef(
|
|
3065
3155
|
function PageSpinner2({
|
|
@@ -3093,7 +3183,7 @@ var PageSpinner = React8.forwardRef(
|
|
|
3093
3183
|
backgroundScrollTether(false);
|
|
3094
3184
|
};
|
|
3095
3185
|
}, [message, rootNode, messageTone]);
|
|
3096
|
-
return /* @__PURE__ */
|
|
3186
|
+
return /* @__PURE__ */ jsx20(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs9(
|
|
3097
3187
|
StyledPageSpinnerRoot,
|
|
3098
3188
|
{
|
|
3099
3189
|
"data-component-id": "PageSpinner",
|
|
@@ -3101,9 +3191,9 @@ var PageSpinner = React8.forwardRef(
|
|
|
3101
3191
|
ref: mergedRef,
|
|
3102
3192
|
...getCleanProps(restProps),
|
|
3103
3193
|
children: [
|
|
3104
|
-
/* @__PURE__ */
|
|
3105
|
-
/* @__PURE__ */
|
|
3106
|
-
/* @__PURE__ */
|
|
3194
|
+
/* @__PURE__ */ jsx20(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
3195
|
+
/* @__PURE__ */ jsxs9(StyledSpinnerCentre, { children: [
|
|
3196
|
+
/* @__PURE__ */ jsx20(
|
|
3107
3197
|
CircularProgress3,
|
|
3108
3198
|
{
|
|
3109
3199
|
size: 60,
|
|
@@ -3111,8 +3201,8 @@ var PageSpinner = React8.forwardRef(
|
|
|
3111
3201
|
"aria-hidden": "true"
|
|
3112
3202
|
}
|
|
3113
3203
|
),
|
|
3114
|
-
customMessageLayout ?? /* @__PURE__ */
|
|
3115
|
-
srText && /* @__PURE__ */
|
|
3204
|
+
customMessageLayout ?? /* @__PURE__ */ jsx20(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
3205
|
+
srText && /* @__PURE__ */ jsx20(StyledScreenReaderOnly2, { children: srText })
|
|
3116
3206
|
] })
|
|
3117
3207
|
]
|
|
3118
3208
|
}
|
|
@@ -3126,7 +3216,7 @@ import React9 from "react";
|
|
|
3126
3216
|
import MuiPagination from "@mui/material/Pagination";
|
|
3127
3217
|
|
|
3128
3218
|
// src/components/Pagination/Pagination.styles.tsx
|
|
3129
|
-
import { styled as
|
|
3219
|
+
import { styled as styled16, alpha as alpha5 } from "@mui/material/styles";
|
|
3130
3220
|
import MuiPaginationItem from "@mui/material/PaginationItem";
|
|
3131
3221
|
function getColorValue(theme, color) {
|
|
3132
3222
|
switch (color) {
|
|
@@ -3146,7 +3236,7 @@ function getColorValue(theme, color) {
|
|
|
3146
3236
|
return theme.tokens.colors.textPrimary;
|
|
3147
3237
|
}
|
|
3148
3238
|
}
|
|
3149
|
-
var StyledPaginationItem =
|
|
3239
|
+
var StyledPaginationItem = styled16(MuiPaginationItem, {
|
|
3150
3240
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
3151
3241
|
})(({ theme, $variant, $color }) => {
|
|
3152
3242
|
const colorValue = getColorValue(theme, $color);
|
|
@@ -3189,15 +3279,15 @@ var StyledPaginationItem = styled15(MuiPaginationItem, {
|
|
|
3189
3279
|
});
|
|
3190
3280
|
|
|
3191
3281
|
// src/components/Pagination/Pagination.tsx
|
|
3192
|
-
import { jsx as
|
|
3282
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3193
3283
|
var Pagination = React9.forwardRef(
|
|
3194
3284
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
3195
|
-
return /* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsx21(
|
|
3196
3286
|
MuiPagination,
|
|
3197
3287
|
{
|
|
3198
3288
|
ref,
|
|
3199
3289
|
"data-component-id": "Pagination",
|
|
3200
|
-
renderItem: (item) => /* @__PURE__ */
|
|
3290
|
+
renderItem: (item) => /* @__PURE__ */ jsx21(
|
|
3201
3291
|
StyledPaginationItem,
|
|
3202
3292
|
{
|
|
3203
3293
|
$variant: variant,
|
|
@@ -3217,8 +3307,8 @@ Pagination.displayName = "ToolkitPagination";
|
|
|
3217
3307
|
import React10 from "react";
|
|
3218
3308
|
|
|
3219
3309
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
3220
|
-
import { styled as
|
|
3221
|
-
var StyledParagraph =
|
|
3310
|
+
import { styled as styled17 } from "@mui/material/styles";
|
|
3311
|
+
var StyledParagraph = styled17("p", {
|
|
3222
3312
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
3223
3313
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
3224
3314
|
margin: 0,
|
|
@@ -3251,10 +3341,10 @@ var StyledParagraph = styled16("p", {
|
|
|
3251
3341
|
}));
|
|
3252
3342
|
|
|
3253
3343
|
// src/components/Paragraph/Paragraph.tsx
|
|
3254
|
-
import { jsx as
|
|
3344
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
3255
3345
|
var Paragraph = React10.forwardRef(
|
|
3256
3346
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
3257
|
-
return /* @__PURE__ */
|
|
3347
|
+
return /* @__PURE__ */ jsx22(
|
|
3258
3348
|
StyledParagraph,
|
|
3259
3349
|
{
|
|
3260
3350
|
$variant: variant,
|
|
@@ -3277,8 +3367,8 @@ import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
|
|
3277
3367
|
import CancelIcon from "@mui/icons-material/Cancel";
|
|
3278
3368
|
|
|
3279
3369
|
// src/components/Password/PasswordRule.styles.tsx
|
|
3280
|
-
import { styled as
|
|
3281
|
-
var StyledPasswordRule =
|
|
3370
|
+
import { styled as styled18 } from "@mui/material/styles";
|
|
3371
|
+
var StyledPasswordRule = styled18("div")(({ theme }) => ({
|
|
3282
3372
|
display: "flex",
|
|
3283
3373
|
alignItems: "center",
|
|
3284
3374
|
gap: theme.tokens.spacing.xs,
|
|
@@ -3290,15 +3380,15 @@ var StyledPasswordRule = styled17("div")(({ theme }) => ({
|
|
|
3290
3380
|
color: theme.tokens.colors.error
|
|
3291
3381
|
}
|
|
3292
3382
|
}));
|
|
3293
|
-
var StyledPasswordRuleIcon =
|
|
3383
|
+
var StyledPasswordRuleIcon = styled18("span")({
|
|
3294
3384
|
display: "inline-flex",
|
|
3295
3385
|
alignItems: "center",
|
|
3296
3386
|
flexShrink: 0
|
|
3297
3387
|
});
|
|
3298
|
-
var StyledPasswordRuleText =
|
|
3388
|
+
var StyledPasswordRuleText = styled18("span")(({ theme }) => ({
|
|
3299
3389
|
fontSize: theme.tokens.typography.fontSizeSm
|
|
3300
3390
|
}));
|
|
3301
|
-
var StyledScreenReaderOnly3 =
|
|
3391
|
+
var StyledScreenReaderOnly3 = styled18("span")({
|
|
3302
3392
|
position: "absolute",
|
|
3303
3393
|
width: 1,
|
|
3304
3394
|
height: 1,
|
|
@@ -3311,24 +3401,24 @@ var StyledScreenReaderOnly3 = styled17("span")({
|
|
|
3311
3401
|
});
|
|
3312
3402
|
|
|
3313
3403
|
// src/components/Password/PasswordRule.tsx
|
|
3314
|
-
import { jsx as
|
|
3315
|
-
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */
|
|
3404
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3405
|
+
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs10(
|
|
3316
3406
|
StyledPasswordRule,
|
|
3317
3407
|
{
|
|
3318
3408
|
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
3319
3409
|
"data-testid": `password-rule-${idx}`,
|
|
3320
3410
|
children: [
|
|
3321
|
-
/* @__PURE__ */
|
|
3322
|
-
/* @__PURE__ */
|
|
3323
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ jsx23(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx23(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx23(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3412
|
+
/* @__PURE__ */ jsx23(StyledPasswordRuleText, { children: rule }),
|
|
3413
|
+
/* @__PURE__ */ jsx23(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
3324
3414
|
]
|
|
3325
3415
|
}
|
|
3326
3416
|
);
|
|
3327
3417
|
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
3328
3418
|
|
|
3329
3419
|
// src/components/Password/PasswordCriteria.styles.tsx
|
|
3330
|
-
import { styled as
|
|
3331
|
-
var StyledPasswordCriteriaContainer =
|
|
3420
|
+
import { styled as styled19 } from "@mui/material/styles";
|
|
3421
|
+
var StyledPasswordCriteriaContainer = styled19("div")(
|
|
3332
3422
|
({ theme, $show }) => ({
|
|
3333
3423
|
display: $show ? "block" : "none",
|
|
3334
3424
|
position: "absolute",
|
|
@@ -3339,7 +3429,7 @@ var StyledPasswordCriteriaContainer = styled18("div")(
|
|
|
3339
3429
|
marginTop: theme.tokens.spacing.xs
|
|
3340
3430
|
})
|
|
3341
3431
|
);
|
|
3342
|
-
var StyledPasswordRuleTitle =
|
|
3432
|
+
var StyledPasswordRuleTitle = styled19("div")(({ theme }) => ({
|
|
3343
3433
|
color: theme.tokens.colors.textPrimary,
|
|
3344
3434
|
fontSize: theme.tokens.typography.fontSizeSm,
|
|
3345
3435
|
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
@@ -3349,7 +3439,7 @@ var StyledPasswordRuleTitle = styled18("div")(({ theme }) => ({
|
|
|
3349
3439
|
}));
|
|
3350
3440
|
|
|
3351
3441
|
// src/components/Password/PasswordCriteria.tsx
|
|
3352
|
-
import { jsx as
|
|
3442
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3353
3443
|
var PasswordRules = [
|
|
3354
3444
|
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
3355
3445
|
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
@@ -3366,7 +3456,7 @@ var passwordValidator = (value) => ({
|
|
|
3366
3456
|
});
|
|
3367
3457
|
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
3368
3458
|
const validity = passwordValidator(value);
|
|
3369
|
-
return /* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ jsx24(
|
|
3370
3460
|
StyledPasswordCriteriaContainer,
|
|
3371
3461
|
{
|
|
3372
3462
|
$show: show,
|
|
@@ -3375,9 +3465,9 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3375
3465
|
"data-testid": "password-criteria",
|
|
3376
3466
|
role: "status",
|
|
3377
3467
|
"aria-live": "polite",
|
|
3378
|
-
children: /* @__PURE__ */
|
|
3379
|
-
/* @__PURE__ */
|
|
3380
|
-
PasswordRules.map((item, idx) => /* @__PURE__ */
|
|
3468
|
+
children: /* @__PURE__ */ jsxs11(Card, { compact: true, children: [
|
|
3469
|
+
/* @__PURE__ */ jsx24(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
3470
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ jsx24(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
3381
3471
|
] })
|
|
3382
3472
|
}
|
|
3383
3473
|
);
|
|
@@ -3385,17 +3475,17 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3385
3475
|
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
3386
3476
|
|
|
3387
3477
|
// src/components/Password/Password.styles.tsx
|
|
3388
|
-
import { styled as
|
|
3389
|
-
var StyledPasswordRoot =
|
|
3478
|
+
import { styled as styled20 } from "@mui/material/styles";
|
|
3479
|
+
var StyledPasswordRoot = styled20("div")({
|
|
3390
3480
|
position: "relative"
|
|
3391
3481
|
});
|
|
3392
|
-
var StyledPasswordInputWrapper =
|
|
3482
|
+
var StyledPasswordInputWrapper = styled20("div")({
|
|
3393
3483
|
display: "flex",
|
|
3394
3484
|
position: "relative"
|
|
3395
3485
|
});
|
|
3396
3486
|
|
|
3397
3487
|
// src/components/Password/Password.tsx
|
|
3398
|
-
import { jsx as
|
|
3488
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3399
3489
|
var Password = React11.forwardRef(
|
|
3400
3490
|
function Password2({
|
|
3401
3491
|
isInvalid,
|
|
@@ -3427,8 +3517,8 @@ var Password = React11.forwardRef(
|
|
|
3427
3517
|
};
|
|
3428
3518
|
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
3429
3519
|
const cleanRest = getCleanProps(rest);
|
|
3430
|
-
return /* @__PURE__ */
|
|
3431
|
-
/* @__PURE__ */
|
|
3520
|
+
return /* @__PURE__ */ jsxs12(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
3521
|
+
/* @__PURE__ */ jsx25(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx25(
|
|
3432
3522
|
TextField,
|
|
3433
3523
|
{
|
|
3434
3524
|
ref,
|
|
@@ -3447,7 +3537,7 @@ var Password = React11.forwardRef(
|
|
|
3447
3537
|
onChange: handleChange
|
|
3448
3538
|
}
|
|
3449
3539
|
) }),
|
|
3450
|
-
/* @__PURE__ */
|
|
3540
|
+
/* @__PURE__ */ jsx25(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
3451
3541
|
] });
|
|
3452
3542
|
}
|
|
3453
3543
|
);
|
|
@@ -3457,7 +3547,7 @@ Password.displayName = "ToolkitPassword";
|
|
|
3457
3547
|
import React12 from "react";
|
|
3458
3548
|
|
|
3459
3549
|
// src/components/Spinner/Spinner.styles.tsx
|
|
3460
|
-
import { styled as
|
|
3550
|
+
import { styled as styled21, alpha as alpha6 } from "@mui/material/styles";
|
|
3461
3551
|
var spinnerSizing = {
|
|
3462
3552
|
xs: 20,
|
|
3463
3553
|
sm: 24,
|
|
@@ -3465,7 +3555,7 @@ var spinnerSizing = {
|
|
|
3465
3555
|
lg: 56,
|
|
3466
3556
|
xl: 72
|
|
3467
3557
|
};
|
|
3468
|
-
var StyledSpinnerContainer =
|
|
3558
|
+
var StyledSpinnerContainer = styled21("div", {
|
|
3469
3559
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
3470
3560
|
})({}, ({ $inline }) => ({
|
|
3471
3561
|
flex: "0 1 100%",
|
|
@@ -3473,7 +3563,7 @@ var StyledSpinnerContainer = styled20("div", {
|
|
|
3473
3563
|
flexDirection: $inline ? "row" : "column",
|
|
3474
3564
|
alignItems: "center"
|
|
3475
3565
|
}));
|
|
3476
|
-
var StyledSpinnerIconContainer =
|
|
3566
|
+
var StyledSpinnerIconContainer = styled21("div", {
|
|
3477
3567
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3478
3568
|
})(({ $size }) => {
|
|
3479
3569
|
const size = spinnerSizing[$size];
|
|
@@ -3483,7 +3573,7 @@ var StyledSpinnerIconContainer = styled20("div", {
|
|
|
3483
3573
|
height: size
|
|
3484
3574
|
};
|
|
3485
3575
|
});
|
|
3486
|
-
var StyledSpinnerBackground =
|
|
3576
|
+
var StyledSpinnerBackground = styled21("div", {
|
|
3487
3577
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3488
3578
|
})(({ theme, $size, $darkBg }) => {
|
|
3489
3579
|
const size = spinnerSizing[$size];
|
|
@@ -3497,7 +3587,7 @@ var StyledSpinnerBackground = styled20("div", {
|
|
|
3497
3587
|
border: `${lineWidth}px solid ${borderColor}`
|
|
3498
3588
|
};
|
|
3499
3589
|
});
|
|
3500
|
-
var StyledSpinner =
|
|
3590
|
+
var StyledSpinner = styled21("div", {
|
|
3501
3591
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3502
3592
|
})(({ theme, $size, $darkBg }) => {
|
|
3503
3593
|
const size = spinnerSizing[$size];
|
|
@@ -3520,7 +3610,7 @@ var StyledSpinner = styled20("div", {
|
|
|
3520
3610
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
3521
3611
|
};
|
|
3522
3612
|
});
|
|
3523
|
-
var StyledSpinnerMessage2 =
|
|
3613
|
+
var StyledSpinnerMessage2 = styled21("span", {
|
|
3524
3614
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
3525
3615
|
})(({ theme, $darkBg, $inline }) => ({
|
|
3526
3616
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -3529,7 +3619,7 @@ var StyledSpinnerMessage2 = styled20("span", {
|
|
|
3529
3619
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
3530
3620
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
3531
3621
|
}));
|
|
3532
|
-
var StyledScreenReaderOnly4 =
|
|
3622
|
+
var StyledScreenReaderOnly4 = styled21("span")({
|
|
3533
3623
|
position: "absolute",
|
|
3534
3624
|
width: 1,
|
|
3535
3625
|
height: 1,
|
|
@@ -3542,10 +3632,10 @@ var StyledScreenReaderOnly4 = styled20("span")({
|
|
|
3542
3632
|
});
|
|
3543
3633
|
|
|
3544
3634
|
// src/components/Spinner/Spinner.tsx
|
|
3545
|
-
import { jsx as
|
|
3635
|
+
import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3546
3636
|
var Spinner = React12.forwardRef(
|
|
3547
3637
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
3548
|
-
return /* @__PURE__ */
|
|
3638
|
+
return /* @__PURE__ */ jsxs13(
|
|
3549
3639
|
StyledSpinnerContainer,
|
|
3550
3640
|
{
|
|
3551
3641
|
ref,
|
|
@@ -3553,12 +3643,12 @@ var Spinner = React12.forwardRef(
|
|
|
3553
3643
|
"data-component-id": "Spinner",
|
|
3554
3644
|
...getCleanProps(restProps),
|
|
3555
3645
|
children: [
|
|
3556
|
-
/* @__PURE__ */
|
|
3557
|
-
/* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */
|
|
3646
|
+
/* @__PURE__ */ jsxs13(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
3647
|
+
/* @__PURE__ */ jsx26(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
3648
|
+
/* @__PURE__ */ jsx26(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
3559
3649
|
] }),
|
|
3560
|
-
message && /* @__PURE__ */
|
|
3561
|
-
srText && /* @__PURE__ */
|
|
3650
|
+
message && /* @__PURE__ */ jsx26(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
3651
|
+
srText && /* @__PURE__ */ jsx26(StyledScreenReaderOnly4, { children: srText })
|
|
3562
3652
|
]
|
|
3563
3653
|
}
|
|
3564
3654
|
);
|
|
@@ -3570,14 +3660,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
3570
3660
|
import FormHelperText from "@mui/material/FormHelperText";
|
|
3571
3661
|
|
|
3572
3662
|
// src/components/Toggle/Toggle.styles.tsx
|
|
3573
|
-
import { styled as
|
|
3574
|
-
var StyledFieldset =
|
|
3663
|
+
import { styled as styled22 } from "@mui/material/styles";
|
|
3664
|
+
var StyledFieldset = styled22("fieldset")(({ theme }) => ({
|
|
3575
3665
|
border: "none",
|
|
3576
3666
|
margin: 0,
|
|
3577
3667
|
padding: 0,
|
|
3578
3668
|
minWidth: 0
|
|
3579
3669
|
}));
|
|
3580
|
-
var StyledLegend =
|
|
3670
|
+
var StyledLegend = styled22("legend")(({ theme }) => ({
|
|
3581
3671
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
3582
3672
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
3583
3673
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -3585,7 +3675,7 @@ var StyledLegend = styled21("legend")(({ theme }) => ({
|
|
|
3585
3675
|
marginBottom: theme.spacing(1),
|
|
3586
3676
|
padding: 0
|
|
3587
3677
|
}));
|
|
3588
|
-
var StyledToggleWrapper =
|
|
3678
|
+
var StyledToggleWrapper = styled22("div")(({ theme, size = "medium" }) => ({
|
|
3589
3679
|
display: "flex",
|
|
3590
3680
|
flexDirection: "row",
|
|
3591
3681
|
width: theme.spacing(15),
|
|
@@ -3594,7 +3684,7 @@ var StyledToggleWrapper = styled21("div")(({ theme, size = "medium" }) => ({
|
|
|
3594
3684
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
3595
3685
|
borderRadius: theme.tokens.borderRadius.md
|
|
3596
3686
|
}));
|
|
3597
|
-
var StyledSwitch =
|
|
3687
|
+
var StyledSwitch = styled22("label", {
|
|
3598
3688
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
3599
3689
|
})(({ theme, selected, controlType }) => ({
|
|
3600
3690
|
position: "relative",
|
|
@@ -3684,7 +3774,7 @@ var StyledSwitch = styled21("label", {
|
|
|
3684
3774
|
}));
|
|
3685
3775
|
|
|
3686
3776
|
// src/components/Toggle/Toggle.tsx
|
|
3687
|
-
import { jsx as
|
|
3777
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3688
3778
|
function Toggle({
|
|
3689
3779
|
name,
|
|
3690
3780
|
checked = false,
|
|
@@ -3697,11 +3787,11 @@ function Toggle({
|
|
|
3697
3787
|
...restProps
|
|
3698
3788
|
}) {
|
|
3699
3789
|
const testId = restProps["data-testid"];
|
|
3700
|
-
return /* @__PURE__ */
|
|
3701
|
-
label && /* @__PURE__ */
|
|
3702
|
-
description && /* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */
|
|
3704
|
-
/* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ jsxs14(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3791
|
+
label && /* @__PURE__ */ jsx27(StyledLegend, { children: label }),
|
|
3792
|
+
description && /* @__PURE__ */ jsx27(FormHelperText, { children: description }),
|
|
3793
|
+
/* @__PURE__ */ jsxs14(StyledToggleWrapper, { size, children: [
|
|
3794
|
+
/* @__PURE__ */ jsxs14(
|
|
3705
3795
|
StyledSwitch,
|
|
3706
3796
|
{
|
|
3707
3797
|
htmlFor: `${name}off`,
|
|
@@ -3709,7 +3799,7 @@ function Toggle({
|
|
|
3709
3799
|
controlType: "off",
|
|
3710
3800
|
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3711
3801
|
children: [
|
|
3712
|
-
/* @__PURE__ */
|
|
3802
|
+
/* @__PURE__ */ jsx27(
|
|
3713
3803
|
"input",
|
|
3714
3804
|
{
|
|
3715
3805
|
checked: !checked,
|
|
@@ -3725,7 +3815,7 @@ function Toggle({
|
|
|
3725
3815
|
]
|
|
3726
3816
|
}
|
|
3727
3817
|
),
|
|
3728
|
-
/* @__PURE__ */
|
|
3818
|
+
/* @__PURE__ */ jsxs14(
|
|
3729
3819
|
StyledSwitch,
|
|
3730
3820
|
{
|
|
3731
3821
|
htmlFor: `${name}on`,
|
|
@@ -3733,7 +3823,7 @@ function Toggle({
|
|
|
3733
3823
|
controlType: "on",
|
|
3734
3824
|
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3735
3825
|
children: [
|
|
3736
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ jsx27(
|
|
3737
3827
|
"input",
|
|
3738
3828
|
{
|
|
3739
3829
|
checked,
|
|
@@ -3750,7 +3840,7 @@ function Toggle({
|
|
|
3750
3840
|
}
|
|
3751
3841
|
)
|
|
3752
3842
|
] }),
|
|
3753
|
-
error && /* @__PURE__ */
|
|
3843
|
+
error && /* @__PURE__ */ jsx27(FormHelperText, { error: true, children: error })
|
|
3754
3844
|
] });
|
|
3755
3845
|
}
|
|
3756
3846
|
Toggle.displayName = "ToolkitToggle";
|
|
@@ -3766,37 +3856,37 @@ import {
|
|
|
3766
3856
|
TablePagination as MuiTablePagination,
|
|
3767
3857
|
TableSortLabel as MuiTableSortLabel
|
|
3768
3858
|
} from "@mui/material";
|
|
3769
|
-
import { styled as
|
|
3770
|
-
import { jsx as
|
|
3771
|
-
var StyledTableContainer =
|
|
3859
|
+
import { styled as styled23 } from "@mui/material/styles";
|
|
3860
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3861
|
+
var StyledTableContainer = styled23(MuiTableContainer)(() => ({
|
|
3772
3862
|
overflowX: "auto"
|
|
3773
3863
|
}));
|
|
3774
|
-
var StyledHeadCell =
|
|
3864
|
+
var StyledHeadCell = styled23(MuiTableCell)(({ theme }) => ({
|
|
3775
3865
|
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
3776
3866
|
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
3777
3867
|
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
3778
3868
|
borderBottomColor: theme.tokens.components.table.borderColor
|
|
3779
3869
|
}));
|
|
3780
3870
|
function Table(props) {
|
|
3781
|
-
return /* @__PURE__ */
|
|
3871
|
+
return /* @__PURE__ */ jsx28(MuiTable, { ...props });
|
|
3782
3872
|
}
|
|
3783
3873
|
function TableHead(props) {
|
|
3784
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ jsx28(MuiTableHead, { ...props });
|
|
3785
3875
|
}
|
|
3786
3876
|
function TableBody(props) {
|
|
3787
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ jsx28(MuiTableBody, { ...props });
|
|
3788
3878
|
}
|
|
3789
3879
|
function TableRow(props) {
|
|
3790
|
-
return /* @__PURE__ */
|
|
3880
|
+
return /* @__PURE__ */ jsx28(MuiTableRow, { ...props });
|
|
3791
3881
|
}
|
|
3792
3882
|
function TableCell(props) {
|
|
3793
|
-
return /* @__PURE__ */
|
|
3883
|
+
return /* @__PURE__ */ jsx28(MuiTableCell, { ...props });
|
|
3794
3884
|
}
|
|
3795
3885
|
function TableHeadCell(props) {
|
|
3796
|
-
return /* @__PURE__ */
|
|
3886
|
+
return /* @__PURE__ */ jsx28(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
3797
3887
|
}
|
|
3798
3888
|
function TableContainer(props) {
|
|
3799
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ jsx28(StyledTableContainer, { ...props });
|
|
3800
3890
|
}
|
|
3801
3891
|
var TablePagination = MuiTablePagination;
|
|
3802
3892
|
var TableSortLabel = MuiTableSortLabel;
|
|
@@ -3811,10 +3901,10 @@ TableContainer.displayName = "ToolkitTableContainer";
|
|
|
3811
3901
|
// src/foundation/H1/H1.tsx
|
|
3812
3902
|
import React13 from "react";
|
|
3813
3903
|
import { Typography } from "@mui/material";
|
|
3814
|
-
import { jsx as
|
|
3904
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3815
3905
|
var H1 = React13.forwardRef(
|
|
3816
3906
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
3817
|
-
return /* @__PURE__ */
|
|
3907
|
+
return /* @__PURE__ */ jsx29(Typography, { ref, variant: "h1", color, ...props, children });
|
|
3818
3908
|
}
|
|
3819
3909
|
);
|
|
3820
3910
|
H1.displayName = "ToolkitH1";
|
|
@@ -3822,10 +3912,10 @@ H1.displayName = "ToolkitH1";
|
|
|
3822
3912
|
// src/foundation/H2/H2.tsx
|
|
3823
3913
|
import React14 from "react";
|
|
3824
3914
|
import { Typography as Typography2 } from "@mui/material";
|
|
3825
|
-
import { jsx as
|
|
3915
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3826
3916
|
var H2 = React14.forwardRef(
|
|
3827
3917
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
3828
|
-
return /* @__PURE__ */
|
|
3918
|
+
return /* @__PURE__ */ jsx30(Typography2, { ref, variant: "h2", color, ...props, children });
|
|
3829
3919
|
}
|
|
3830
3920
|
);
|
|
3831
3921
|
H2.displayName = "ToolkitH2";
|
|
@@ -3833,10 +3923,10 @@ H2.displayName = "ToolkitH2";
|
|
|
3833
3923
|
// src/foundation/H3/H3.tsx
|
|
3834
3924
|
import React15 from "react";
|
|
3835
3925
|
import { Typography as Typography3 } from "@mui/material";
|
|
3836
|
-
import { jsx as
|
|
3926
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3837
3927
|
var H3 = React15.forwardRef(
|
|
3838
3928
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
3839
|
-
return /* @__PURE__ */
|
|
3929
|
+
return /* @__PURE__ */ jsx31(Typography3, { ref, variant: "h3", color, ...props, children });
|
|
3840
3930
|
}
|
|
3841
3931
|
);
|
|
3842
3932
|
H3.displayName = "ToolkitH3";
|
|
@@ -3844,10 +3934,10 @@ H3.displayName = "ToolkitH3";
|
|
|
3844
3934
|
// src/foundation/H4/H4.tsx
|
|
3845
3935
|
import React16 from "react";
|
|
3846
3936
|
import { Typography as Typography4 } from "@mui/material";
|
|
3847
|
-
import { jsx as
|
|
3937
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3848
3938
|
var H4 = React16.forwardRef(
|
|
3849
3939
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
3850
|
-
return /* @__PURE__ */
|
|
3940
|
+
return /* @__PURE__ */ jsx32(Typography4, { ref, variant: "h4", color, ...props, children });
|
|
3851
3941
|
}
|
|
3852
3942
|
);
|
|
3853
3943
|
H4.displayName = "ToolkitH4";
|
|
@@ -3855,10 +3945,10 @@ H4.displayName = "ToolkitH4";
|
|
|
3855
3945
|
// src/foundation/H5/H5.tsx
|
|
3856
3946
|
import React17 from "react";
|
|
3857
3947
|
import { Typography as Typography5 } from "@mui/material";
|
|
3858
|
-
import { jsx as
|
|
3948
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3859
3949
|
var H5 = React17.forwardRef(
|
|
3860
3950
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
3861
|
-
return /* @__PURE__ */
|
|
3951
|
+
return /* @__PURE__ */ jsx33(Typography5, { ref, variant: "h5", color, ...props, children });
|
|
3862
3952
|
}
|
|
3863
3953
|
);
|
|
3864
3954
|
H5.displayName = "ToolkitH5";
|
|
@@ -3866,10 +3956,10 @@ H5.displayName = "ToolkitH5";
|
|
|
3866
3956
|
// src/foundation/H6/H6.tsx
|
|
3867
3957
|
import React18 from "react";
|
|
3868
3958
|
import { Typography as Typography6 } from "@mui/material";
|
|
3869
|
-
import { jsx as
|
|
3959
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3870
3960
|
var H6 = React18.forwardRef(
|
|
3871
3961
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
3872
|
-
return /* @__PURE__ */
|
|
3962
|
+
return /* @__PURE__ */ jsx34(Typography6, { ref, variant: "h6", color, ...props, children });
|
|
3873
3963
|
}
|
|
3874
3964
|
);
|
|
3875
3965
|
H6.displayName = "ToolkitH6";
|
|
@@ -3877,10 +3967,10 @@ H6.displayName = "ToolkitH6";
|
|
|
3877
3967
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
3878
3968
|
import React19 from "react";
|
|
3879
3969
|
import { Typography as Typography7 } from "@mui/material";
|
|
3880
|
-
import { jsx as
|
|
3970
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3881
3971
|
var Subtitle1 = React19.forwardRef(
|
|
3882
3972
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
3883
|
-
return /* @__PURE__ */
|
|
3973
|
+
return /* @__PURE__ */ jsx35(Typography7, { ref, variant: "subtitle1", color, ...props, children });
|
|
3884
3974
|
}
|
|
3885
3975
|
);
|
|
3886
3976
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
@@ -3888,10 +3978,10 @@ Subtitle1.displayName = "ToolkitSubtitle1";
|
|
|
3888
3978
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
3889
3979
|
import React20 from "react";
|
|
3890
3980
|
import { Typography as Typography8 } from "@mui/material";
|
|
3891
|
-
import { jsx as
|
|
3981
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3892
3982
|
var Subtitle2 = React20.forwardRef(
|
|
3893
3983
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
3894
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsx36(Typography8, { ref, variant: "subtitle2", color, ...props, children });
|
|
3895
3985
|
}
|
|
3896
3986
|
);
|
|
3897
3987
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
@@ -3899,10 +3989,10 @@ Subtitle2.displayName = "ToolkitSubtitle2";
|
|
|
3899
3989
|
// src/foundation/Body1/Body1.tsx
|
|
3900
3990
|
import React21 from "react";
|
|
3901
3991
|
import { Typography as Typography9 } from "@mui/material";
|
|
3902
|
-
import { jsx as
|
|
3992
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3903
3993
|
var Body1 = React21.forwardRef(
|
|
3904
3994
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
3905
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ jsx37(Typography9, { ref, variant: "body1", color, ...props, children });
|
|
3906
3996
|
}
|
|
3907
3997
|
);
|
|
3908
3998
|
Body1.displayName = "ToolkitBody1";
|
|
@@ -3910,10 +4000,10 @@ Body1.displayName = "ToolkitBody1";
|
|
|
3910
4000
|
// src/foundation/Body2/Body2.tsx
|
|
3911
4001
|
import React22 from "react";
|
|
3912
4002
|
import { Typography as Typography10 } from "@mui/material";
|
|
3913
|
-
import { jsx as
|
|
4003
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3914
4004
|
var Body2 = React22.forwardRef(
|
|
3915
4005
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
3916
|
-
return /* @__PURE__ */
|
|
4006
|
+
return /* @__PURE__ */ jsx38(Typography10, { ref, variant: "body2", color, ...props, children });
|
|
3917
4007
|
}
|
|
3918
4008
|
);
|
|
3919
4009
|
Body2.displayName = "ToolkitBody2";
|
|
@@ -3921,10 +4011,10 @@ Body2.displayName = "ToolkitBody2";
|
|
|
3921
4011
|
// src/foundation/Caption/Caption.tsx
|
|
3922
4012
|
import React23 from "react";
|
|
3923
4013
|
import { Typography as Typography11 } from "@mui/material";
|
|
3924
|
-
import { jsx as
|
|
4014
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3925
4015
|
var Caption = React23.forwardRef(
|
|
3926
4016
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
3927
|
-
return /* @__PURE__ */
|
|
4017
|
+
return /* @__PURE__ */ jsx39(Typography11, { ref, variant: "caption", color, ...props, children });
|
|
3928
4018
|
}
|
|
3929
4019
|
);
|
|
3930
4020
|
Caption.displayName = "ToolkitCaption";
|
|
@@ -3932,10 +4022,10 @@ Caption.displayName = "ToolkitCaption";
|
|
|
3932
4022
|
// src/foundation/Overline/Overline.tsx
|
|
3933
4023
|
import React24 from "react";
|
|
3934
4024
|
import { Typography as Typography12 } from "@mui/material";
|
|
3935
|
-
import { jsx as
|
|
4025
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3936
4026
|
var Overline = React24.forwardRef(
|
|
3937
4027
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
3938
|
-
return /* @__PURE__ */
|
|
4028
|
+
return /* @__PURE__ */ jsx40(Typography12, { ref, variant: "overline", color, ...props, children });
|
|
3939
4029
|
}
|
|
3940
4030
|
);
|
|
3941
4031
|
Overline.displayName = "ToolkitOverline";
|
|
@@ -3943,10 +4033,10 @@ Overline.displayName = "ToolkitOverline";
|
|
|
3943
4033
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
3944
4034
|
import React25 from "react";
|
|
3945
4035
|
import { Typography as Typography13 } from "@mui/material";
|
|
3946
|
-
import { jsx as
|
|
4036
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3947
4037
|
var TypographyButton = React25.forwardRef(
|
|
3948
4038
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
3949
|
-
return /* @__PURE__ */
|
|
4039
|
+
return /* @__PURE__ */ jsx41(Typography13, { ref, variant: "button", color, ...props, children });
|
|
3950
4040
|
}
|
|
3951
4041
|
);
|
|
3952
4042
|
TypographyButton.displayName = "ToolkitTypographyButton";
|
|
@@ -4004,6 +4094,7 @@ export {
|
|
|
4004
4094
|
PasswordCriteria,
|
|
4005
4095
|
PasswordRule,
|
|
4006
4096
|
PasswordRules,
|
|
4097
|
+
RadioCardGroup,
|
|
4007
4098
|
Spinner,
|
|
4008
4099
|
StandaloneAccordion,
|
|
4009
4100
|
StaticDatePicker,
|