@octoguide/mui-ui-toolkit 0.8.0 → 0.8.2
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 +86 -77
- package/dist/index.d.ts +86 -77
- package/dist/index.js +278 -234
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +241 -197
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1474,19 +1474,62 @@ function Avatar({ size = "md", ...props }) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
1477
|
+
import { styled as styled7 } from "@mui/material/styles";
|
|
1477
1478
|
import {
|
|
1478
1479
|
ToggleButton as MuiToggleButton,
|
|
1479
1480
|
ToggleButtonGroup as MuiToggleButtonGroup
|
|
1480
1481
|
} from "@mui/material";
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
}
|
|
1482
|
+
var ToggleButtonGroup = styled7(MuiToggleButtonGroup)(({ theme }) => ({
|
|
1483
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
1484
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1485
|
+
backgroundColor: theme.palette.background.paper,
|
|
1486
|
+
padding: theme.spacing(0.5),
|
|
1487
|
+
"& .MuiToggleButtonGroup-grouped": {
|
|
1488
|
+
border: "none",
|
|
1489
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`,
|
|
1490
|
+
"&:not(:first-of-type)": {
|
|
1491
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`,
|
|
1492
|
+
marginLeft: 0
|
|
1493
|
+
},
|
|
1494
|
+
"&:first-of-type": {
|
|
1495
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}));
|
|
1489
1499
|
ToggleButtonGroup.displayName = "ToolkitToggleButtonGroup";
|
|
1500
|
+
var ToggleButton = styled7(MuiToggleButton)(({ theme }) => ({
|
|
1501
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1502
|
+
fontSize: theme.tokens.typography.fontSizeMd,
|
|
1503
|
+
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
1504
|
+
textTransform: "none",
|
|
1505
|
+
color: theme.palette.text.primary,
|
|
1506
|
+
lineHeight: 1.25,
|
|
1507
|
+
// Default (medium): 48px so ToggleButtonGroup total = 48 + 4 + 4 (group padding) = 56px (matches TextField medium)
|
|
1508
|
+
height: "48px",
|
|
1509
|
+
transition: `background-color ${theme.tokens.transitions.durationBase} ease`,
|
|
1510
|
+
"&.MuiToggleButton-sizeSmall": {
|
|
1511
|
+
// 32px so ToggleButtonGroup total = 32 + 4 + 4 = 40px (matches TextField small)
|
|
1512
|
+
height: "32px"
|
|
1513
|
+
},
|
|
1514
|
+
"&.MuiToggleButton-sizeLarge": {
|
|
1515
|
+
// 56px so ToggleButtonGroup total = 56 + 4 + 4 = 64px (matches Toggle large)
|
|
1516
|
+
height: "56px"
|
|
1517
|
+
},
|
|
1518
|
+
"&:hover": {
|
|
1519
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle
|
|
1520
|
+
},
|
|
1521
|
+
"&.Mui-selected": {
|
|
1522
|
+
backgroundColor: theme.tokens.colors.primary,
|
|
1523
|
+
color: theme.tokens.colors.primaryContrast,
|
|
1524
|
+
"&:hover": {
|
|
1525
|
+
backgroundColor: theme.tokens.colors.primaryDark
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
"&.Mui-disabled": {
|
|
1529
|
+
opacity: 0.4
|
|
1530
|
+
}
|
|
1531
|
+
}));
|
|
1532
|
+
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1490
1533
|
|
|
1491
1534
|
// src/components/DatePicker/DatePicker.tsx
|
|
1492
1535
|
import { useState as useState2 } from "react";
|
|
@@ -1546,77 +1589,77 @@ import DialogActions2 from "@mui/material/DialogActions";
|
|
|
1546
1589
|
import Button2 from "@mui/material/Button";
|
|
1547
1590
|
import Box from "@mui/material/Box";
|
|
1548
1591
|
import TextField3 from "@mui/material/TextField";
|
|
1549
|
-
import { styled as
|
|
1550
|
-
import { Fragment, jsx as
|
|
1592
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
1593
|
+
import { Fragment, jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1551
1594
|
function DateLocalizationProvider({ children }) {
|
|
1552
|
-
return /* @__PURE__ */
|
|
1595
|
+
return /* @__PURE__ */ jsx11(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
|
|
1553
1596
|
}
|
|
1554
1597
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1555
1598
|
function DatePicker(props) {
|
|
1556
|
-
return /* @__PURE__ */
|
|
1599
|
+
return /* @__PURE__ */ jsx11(MuiDatePicker, { ...props });
|
|
1557
1600
|
}
|
|
1558
1601
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1559
1602
|
function DesktopDatePicker(props) {
|
|
1560
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDatePicker, { ...props });
|
|
1561
1604
|
}
|
|
1562
1605
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1563
1606
|
function MobileDatePicker(props) {
|
|
1564
|
-
return /* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ jsx11(MuiMobileDatePicker, { ...props });
|
|
1565
1608
|
}
|
|
1566
1609
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1567
1610
|
function DateField(props) {
|
|
1568
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsx11(MuiDateField, { ...props });
|
|
1569
1612
|
}
|
|
1570
1613
|
DateField.displayName = "ToolkitDateField";
|
|
1571
1614
|
function StaticDatePicker(props) {
|
|
1572
|
-
return /* @__PURE__ */
|
|
1615
|
+
return /* @__PURE__ */ jsx11(MuiStaticDatePicker, { ...props });
|
|
1573
1616
|
}
|
|
1574
1617
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1575
1618
|
function TimePicker(props) {
|
|
1576
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ jsx11(MuiTimePicker, { ...props });
|
|
1577
1620
|
}
|
|
1578
1621
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1579
1622
|
function DesktopTimePicker(props) {
|
|
1580
|
-
return /* @__PURE__ */
|
|
1623
|
+
return /* @__PURE__ */ jsx11(MuiDesktopTimePicker, { ...props });
|
|
1581
1624
|
}
|
|
1582
1625
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1583
1626
|
function MobileTimePicker(props) {
|
|
1584
|
-
return /* @__PURE__ */
|
|
1627
|
+
return /* @__PURE__ */ jsx11(MuiMobileTimePicker, { ...props });
|
|
1585
1628
|
}
|
|
1586
1629
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1587
1630
|
function TimeField(props) {
|
|
1588
|
-
return /* @__PURE__ */
|
|
1631
|
+
return /* @__PURE__ */ jsx11(MuiTimeField, { ...props });
|
|
1589
1632
|
}
|
|
1590
1633
|
TimeField.displayName = "ToolkitTimeField";
|
|
1591
1634
|
function StaticTimePicker(props) {
|
|
1592
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ jsx11(MuiStaticTimePicker, { ...props });
|
|
1593
1636
|
}
|
|
1594
1637
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1595
1638
|
function DateTimePicker(props) {
|
|
1596
|
-
return /* @__PURE__ */
|
|
1639
|
+
return /* @__PURE__ */ jsx11(MuiDateTimePicker, { ...props });
|
|
1597
1640
|
}
|
|
1598
1641
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1599
1642
|
function DesktopDateTimePicker(props) {
|
|
1600
|
-
return /* @__PURE__ */
|
|
1643
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDateTimePicker, { ...props });
|
|
1601
1644
|
}
|
|
1602
1645
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1603
1646
|
function MobileDateTimePicker(props) {
|
|
1604
|
-
return /* @__PURE__ */
|
|
1647
|
+
return /* @__PURE__ */ jsx11(MuiMobileDateTimePicker, { ...props });
|
|
1605
1648
|
}
|
|
1606
1649
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1607
1650
|
function DateTimeField(props) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ jsx11(MuiDateTimeField, { ...props });
|
|
1609
1652
|
}
|
|
1610
1653
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1611
1654
|
function StaticDateTimePicker(props) {
|
|
1612
|
-
return /* @__PURE__ */
|
|
1655
|
+
return /* @__PURE__ */ jsx11(MuiStaticDateTimePicker, { ...props });
|
|
1613
1656
|
}
|
|
1614
1657
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1615
1658
|
function DateCalendar(props) {
|
|
1616
|
-
return /* @__PURE__ */
|
|
1659
|
+
return /* @__PURE__ */ jsx11(MuiDateCalendar, { ...props });
|
|
1617
1660
|
}
|
|
1618
1661
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1619
|
-
var RangeRow =
|
|
1662
|
+
var RangeRow = styled8(Box)(({ theme }) => ({
|
|
1620
1663
|
display: "flex",
|
|
1621
1664
|
gap: theme.spacing(2),
|
|
1622
1665
|
alignItems: "center"
|
|
@@ -1640,10 +1683,10 @@ function DateRangePickerInput({
|
|
|
1640
1683
|
setOpen(false);
|
|
1641
1684
|
};
|
|
1642
1685
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1643
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1644
1687
|
/* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx11(DialogContent2, { children: /* @__PURE__ */ jsxs3(RangeRow, { children: [
|
|
1689
|
+
/* @__PURE__ */ jsx11(
|
|
1647
1690
|
MuiDatePicker,
|
|
1648
1691
|
{
|
|
1649
1692
|
label: startLabel,
|
|
@@ -1652,7 +1695,7 @@ function DateRangePickerInput({
|
|
|
1652
1695
|
slotProps: { textField: { fullWidth: true } }
|
|
1653
1696
|
}
|
|
1654
1697
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ jsx11(
|
|
1656
1699
|
MuiDatePicker,
|
|
1657
1700
|
{
|
|
1658
1701
|
label: endLabel,
|
|
@@ -1663,8 +1706,8 @@ function DateRangePickerInput({
|
|
|
1663
1706
|
)
|
|
1664
1707
|
] }) }),
|
|
1665
1708
|
/* @__PURE__ */ jsxs3(DialogActions2, { children: [
|
|
1666
|
-
/* @__PURE__ */
|
|
1667
|
-
/* @__PURE__ */
|
|
1709
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1710
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1668
1711
|
] })
|
|
1669
1712
|
] })
|
|
1670
1713
|
] });
|
|
@@ -1697,10 +1740,10 @@ function DateRangePickerCalendar({
|
|
|
1697
1740
|
}
|
|
1698
1741
|
};
|
|
1699
1742
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1700
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1701
1744
|
/* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, children: [
|
|
1702
1745
|
/* @__PURE__ */ jsxs3(DialogContent2, { sx: { p: 1 }, children: [
|
|
1703
|
-
/* @__PURE__ */
|
|
1746
|
+
/* @__PURE__ */ jsx11(Box, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx11(
|
|
1704
1747
|
TextField3,
|
|
1705
1748
|
{
|
|
1706
1749
|
size: "small",
|
|
@@ -1710,7 +1753,7 @@ function DateRangePickerCalendar({
|
|
|
1710
1753
|
fullWidth: true
|
|
1711
1754
|
}
|
|
1712
1755
|
) }),
|
|
1713
|
-
/* @__PURE__ */
|
|
1756
|
+
/* @__PURE__ */ jsx11(
|
|
1714
1757
|
MuiDateCalendar,
|
|
1715
1758
|
{
|
|
1716
1759
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1719,8 +1762,8 @@ function DateRangePickerCalendar({
|
|
|
1719
1762
|
)
|
|
1720
1763
|
] }),
|
|
1721
1764
|
/* @__PURE__ */ jsxs3(DialogActions2, { children: [
|
|
1722
|
-
/* @__PURE__ */
|
|
1723
|
-
/* @__PURE__ */
|
|
1765
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1766
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1724
1767
|
] })
|
|
1725
1768
|
] })
|
|
1726
1769
|
] });
|
|
@@ -1729,9 +1772,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1729
1772
|
|
|
1730
1773
|
// src/foundation/Grid/Grid.tsx
|
|
1731
1774
|
import { Grid2 as MuiGrid2 } from "@mui/material";
|
|
1732
|
-
import { jsx as
|
|
1775
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1733
1776
|
function Grid({ container, spacing, ...props }) {
|
|
1734
|
-
return /* @__PURE__ */
|
|
1777
|
+
return /* @__PURE__ */ jsx12(
|
|
1735
1778
|
MuiGrid2,
|
|
1736
1779
|
{
|
|
1737
1780
|
container,
|
|
@@ -1746,9 +1789,9 @@ Grid.displayName = "ToolkitGrid";
|
|
|
1746
1789
|
import React4 from "react";
|
|
1747
1790
|
|
|
1748
1791
|
// src/components/IconText/IconText.styles.tsx
|
|
1749
|
-
import { styled as
|
|
1792
|
+
import { styled as styled9 } from "@mui/material/styles";
|
|
1750
1793
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
1751
|
-
var StyledIconTextRoot =
|
|
1794
|
+
var StyledIconTextRoot = styled9("div")(
|
|
1752
1795
|
({ $inheritFontFamily }) => ({
|
|
1753
1796
|
display: "flex",
|
|
1754
1797
|
alignItems: "center",
|
|
@@ -1764,7 +1807,7 @@ var StyledIconTextRoot = styled8("div")(
|
|
|
1764
1807
|
}
|
|
1765
1808
|
})
|
|
1766
1809
|
);
|
|
1767
|
-
var StyledIconTextSymbol =
|
|
1810
|
+
var StyledIconTextSymbol = styled9(SvgIcon4, {
|
|
1768
1811
|
shouldForwardProp: (prop) => prop !== "$position"
|
|
1769
1812
|
})(({ theme, $position }) => ({
|
|
1770
1813
|
flexShrink: 0,
|
|
@@ -1773,7 +1816,7 @@ var StyledIconTextSymbol = styled8(SvgIcon4, {
|
|
|
1773
1816
|
}));
|
|
1774
1817
|
|
|
1775
1818
|
// src/components/IconText/IconText.tsx
|
|
1776
|
-
import { jsx as
|
|
1819
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1777
1820
|
var IconText = React4.forwardRef(
|
|
1778
1821
|
function IconText2({
|
|
1779
1822
|
symbol,
|
|
@@ -1783,14 +1826,14 @@ var IconText = React4.forwardRef(
|
|
|
1783
1826
|
children,
|
|
1784
1827
|
...rest
|
|
1785
1828
|
}, ref) {
|
|
1786
|
-
const icon = /* @__PURE__ */
|
|
1829
|
+
const icon = /* @__PURE__ */ jsx13(
|
|
1787
1830
|
StyledIconTextSymbol,
|
|
1788
1831
|
{
|
|
1789
1832
|
$position: symbolPosition,
|
|
1790
1833
|
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1791
1834
|
"aria-hidden": "true",
|
|
1792
1835
|
...symbolProps,
|
|
1793
|
-
children: symbol.content && /* @__PURE__ */
|
|
1836
|
+
children: symbol.content && /* @__PURE__ */ jsx13("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1794
1837
|
}
|
|
1795
1838
|
);
|
|
1796
1839
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -1815,8 +1858,8 @@ import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
|
1815
1858
|
|
|
1816
1859
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1817
1860
|
import Box2 from "@mui/material/Box";
|
|
1818
|
-
import { styled as
|
|
1819
|
-
var StyledWrapper =
|
|
1861
|
+
import { styled as styled10 } from "@mui/material/styles";
|
|
1862
|
+
var StyledWrapper = styled10("div")(({ theme }) => ({
|
|
1820
1863
|
"& > a, & > div": {
|
|
1821
1864
|
textDecoration: "none",
|
|
1822
1865
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1825,7 +1868,7 @@ var StyledWrapper = styled9("div")(({ theme }) => ({
|
|
|
1825
1868
|
}
|
|
1826
1869
|
}
|
|
1827
1870
|
}));
|
|
1828
|
-
var StyledListItemContainer =
|
|
1871
|
+
var StyledListItemContainer = styled10(Box2)(({ theme }) => ({
|
|
1829
1872
|
width: "100%",
|
|
1830
1873
|
minHeight: "66px",
|
|
1831
1874
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1868,19 +1911,19 @@ var StyledListItemContainer = styled9(Box2)(({ theme }) => ({
|
|
|
1868
1911
|
outlineStyle: "solid"
|
|
1869
1912
|
}
|
|
1870
1913
|
}));
|
|
1871
|
-
var StyledLeftIconWrapper =
|
|
1914
|
+
var StyledLeftIconWrapper = styled10("span")({
|
|
1872
1915
|
display: "flex",
|
|
1873
1916
|
paddingLeft: "4px"
|
|
1874
1917
|
});
|
|
1875
|
-
var StyledRightIconWrapper =
|
|
1918
|
+
var StyledRightIconWrapper = styled10("span")({
|
|
1876
1919
|
display: "flex",
|
|
1877
1920
|
paddingRight: "4px"
|
|
1878
1921
|
});
|
|
1879
|
-
var StyledLabelContainer =
|
|
1922
|
+
var StyledLabelContainer = styled10("div")({
|
|
1880
1923
|
flex: 1,
|
|
1881
1924
|
padding: "12px 8px"
|
|
1882
1925
|
});
|
|
1883
|
-
var StyledLabel =
|
|
1926
|
+
var StyledLabel = styled10("p")(({ theme }) => ({
|
|
1884
1927
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1885
1928
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1886
1929
|
lineHeight: "20px",
|
|
@@ -1888,7 +1931,7 @@ var StyledLabel = styled9("p")(({ theme }) => ({
|
|
|
1888
1931
|
margin: 0,
|
|
1889
1932
|
textDecoration: "none"
|
|
1890
1933
|
}));
|
|
1891
|
-
var StyledCaption =
|
|
1934
|
+
var StyledCaption = styled10("p")(({ theme }) => ({
|
|
1892
1935
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1893
1936
|
color: theme.tokens.colors.textSecondary,
|
|
1894
1937
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -1899,7 +1942,7 @@ var StyledCaption = styled9("p")(({ theme }) => ({
|
|
|
1899
1942
|
}));
|
|
1900
1943
|
|
|
1901
1944
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1902
|
-
import { jsx as
|
|
1945
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1903
1946
|
function InternalLinkItem({
|
|
1904
1947
|
link,
|
|
1905
1948
|
icon,
|
|
@@ -1908,19 +1951,19 @@ function InternalLinkItem({
|
|
|
1908
1951
|
component,
|
|
1909
1952
|
...restProps
|
|
1910
1953
|
}) {
|
|
1911
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ jsx14(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs5(
|
|
1912
1955
|
StyledListItemContainer,
|
|
1913
1956
|
{
|
|
1914
1957
|
component: component ?? "a",
|
|
1915
1958
|
href: link,
|
|
1916
1959
|
...getCleanProps(restProps),
|
|
1917
1960
|
children: [
|
|
1918
|
-
icon && /* @__PURE__ */
|
|
1961
|
+
icon && /* @__PURE__ */ jsx14(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
1919
1962
|
/* @__PURE__ */ jsxs5(StyledLabelContainer, { children: [
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
caption && /* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ jsx14(StyledLabel, { className: "itemLabel", children: label }),
|
|
1964
|
+
caption && /* @__PURE__ */ jsx14(StyledCaption, { children: caption })
|
|
1922
1965
|
] }),
|
|
1923
|
-
/* @__PURE__ */
|
|
1966
|
+
/* @__PURE__ */ jsx14(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx14(ChevronRightIcon, { fontSize: "small" }) })
|
|
1924
1967
|
]
|
|
1925
1968
|
}
|
|
1926
1969
|
) });
|
|
@@ -1934,8 +1977,8 @@ import SvgIcon5 from "@mui/material/SvgIcon";
|
|
|
1934
1977
|
|
|
1935
1978
|
// src/components/Link/Link.styles.tsx
|
|
1936
1979
|
import Box3 from "@mui/material/Box";
|
|
1937
|
-
import { styled as
|
|
1938
|
-
var StyledScreenReaderOnly =
|
|
1980
|
+
import { styled as styled11, alpha as alpha2 } from "@mui/material/styles";
|
|
1981
|
+
var StyledScreenReaderOnly = styled11("span")({
|
|
1939
1982
|
position: "absolute",
|
|
1940
1983
|
width: "1px",
|
|
1941
1984
|
height: "1px",
|
|
@@ -1946,7 +1989,7 @@ var StyledScreenReaderOnly = styled10("span")({
|
|
|
1946
1989
|
whiteSpace: "nowrap",
|
|
1947
1990
|
border: 0
|
|
1948
1991
|
});
|
|
1949
|
-
var StyledIconSpan =
|
|
1992
|
+
var StyledIconSpan = styled11("span", {
|
|
1950
1993
|
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
1951
1994
|
})(({ iconRight }) => ({
|
|
1952
1995
|
display: "inline-flex",
|
|
@@ -1954,7 +1997,7 @@ var StyledIconSpan = styled10("span", {
|
|
|
1954
1997
|
paddingLeft: iconRight ? "4px" : void 0,
|
|
1955
1998
|
paddingRight: iconRight ? void 0 : "4px"
|
|
1956
1999
|
}));
|
|
1957
|
-
var StyledAnchor =
|
|
2000
|
+
var StyledAnchor = styled11(Box3, {
|
|
1958
2001
|
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
1959
2002
|
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
1960
2003
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
@@ -2013,14 +2056,14 @@ var StyledAnchor = styled10(Box3, {
|
|
|
2013
2056
|
});
|
|
2014
2057
|
|
|
2015
2058
|
// src/components/Link/Link.tsx
|
|
2016
|
-
import { jsx as
|
|
2059
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2017
2060
|
var Variant = {
|
|
2018
2061
|
standard: "standard",
|
|
2019
2062
|
external: "external",
|
|
2020
2063
|
file: "file"
|
|
2021
2064
|
};
|
|
2022
2065
|
function DocumentIcon() {
|
|
2023
|
-
return /* @__PURE__ */
|
|
2066
|
+
return /* @__PURE__ */ jsx15(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx15(
|
|
2024
2067
|
"path",
|
|
2025
2068
|
{
|
|
2026
2069
|
fillRule: "evenodd",
|
|
@@ -2069,9 +2112,9 @@ var Link = React5.forwardRef(function Link2({
|
|
|
2069
2112
|
standalonelink: !!standalone,
|
|
2070
2113
|
ref,
|
|
2071
2114
|
children: [
|
|
2072
|
-
Icon && /* @__PURE__ */
|
|
2115
|
+
Icon && /* @__PURE__ */ jsx15(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx15(Icon, { fontSize: "inherit" }) }),
|
|
2073
2116
|
children,
|
|
2074
|
-
variant === Variant.external && /* @__PURE__ */
|
|
2117
|
+
variant === Variant.external && /* @__PURE__ */ jsx15(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
2075
2118
|
]
|
|
2076
2119
|
}
|
|
2077
2120
|
);
|
|
@@ -2083,8 +2126,8 @@ import React6 from "react";
|
|
|
2083
2126
|
|
|
2084
2127
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2085
2128
|
import Box4 from "@mui/material/Box";
|
|
2086
|
-
import { styled as
|
|
2087
|
-
var StyledLogoLink =
|
|
2129
|
+
import { styled as styled12 } from "@mui/material/styles";
|
|
2130
|
+
var StyledLogoLink = styled12(Box4, {
|
|
2088
2131
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2089
2132
|
})(({ theme, isSmall }) => ({
|
|
2090
2133
|
display: "inline-flex",
|
|
@@ -2101,7 +2144,7 @@ var StyledLogoLink = styled11(Box4, {
|
|
|
2101
2144
|
color: theme.tokens.colors.primaryDark
|
|
2102
2145
|
}
|
|
2103
2146
|
}));
|
|
2104
|
-
var StyledLogoSpan =
|
|
2147
|
+
var StyledLogoSpan = styled12("span")(({ theme }) => ({
|
|
2105
2148
|
padding: "0 10px 0 15px",
|
|
2106
2149
|
backgroundColor: theme.tokens.colors.primary,
|
|
2107
2150
|
height: "100%",
|
|
@@ -2119,9 +2162,9 @@ var StyledLogoSpan = styled11("span")(({ theme }) => ({
|
|
|
2119
2162
|
}));
|
|
2120
2163
|
|
|
2121
2164
|
// src/components/LogoLink/LogoLink.tsx
|
|
2122
|
-
import { jsx as
|
|
2165
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2123
2166
|
var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2124
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ jsx16(
|
|
2125
2168
|
StyledLogoLink,
|
|
2126
2169
|
{
|
|
2127
2170
|
component: component ?? "a",
|
|
@@ -2131,7 +2174,7 @@ var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSm
|
|
|
2131
2174
|
"data-component-id": "LogoLink",
|
|
2132
2175
|
...getCleanProps(restProps),
|
|
2133
2176
|
ref,
|
|
2134
|
-
children: /* @__PURE__ */
|
|
2177
|
+
children: /* @__PURE__ */ jsx16(StyledLogoSpan, { children })
|
|
2135
2178
|
}
|
|
2136
2179
|
);
|
|
2137
2180
|
});
|
|
@@ -2269,8 +2312,8 @@ var SELECT_ALL_OPTION = {
|
|
|
2269
2312
|
};
|
|
2270
2313
|
|
|
2271
2314
|
// src/components/MultiSelect/MultiSelect.styles.tsx
|
|
2272
|
-
import { styled as
|
|
2273
|
-
var StyledMultiSelectContainer =
|
|
2315
|
+
import { styled as styled13, alpha as alpha3 } from "@mui/material/styles";
|
|
2316
|
+
var StyledMultiSelectContainer = styled13("div")(({ theme }) => ({
|
|
2274
2317
|
display: "inline-block",
|
|
2275
2318
|
position: "relative",
|
|
2276
2319
|
width: "100%",
|
|
@@ -2279,7 +2322,7 @@ var StyledMultiSelectContainer = styled12("div")(({ theme }) => ({
|
|
|
2279
2322
|
borderRadius: theme.tokens.borderRadius.md,
|
|
2280
2323
|
fontFamily: theme.tokens.typography.fontFamilyBase
|
|
2281
2324
|
}));
|
|
2282
|
-
var StyledSelectionContainerOutline =
|
|
2325
|
+
var StyledSelectionContainerOutline = styled13("div")(
|
|
2283
2326
|
({ theme, isError }) => ({
|
|
2284
2327
|
border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
|
|
2285
2328
|
borderRadius: theme.tokens.borderRadius.md,
|
|
@@ -2292,7 +2335,7 @@ var StyledSelectionContainerOutline = styled12("div")(
|
|
|
2292
2335
|
zIndex: 0
|
|
2293
2336
|
})
|
|
2294
2337
|
);
|
|
2295
|
-
var StyledSelectionContainer =
|
|
2338
|
+
var StyledSelectionContainer = styled13("button")(
|
|
2296
2339
|
({ theme, isError }) => ({
|
|
2297
2340
|
display: "inline-flex",
|
|
2298
2341
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -2329,7 +2372,7 @@ var StyledSelectionContainer = styled12("button")(
|
|
|
2329
2372
|
}
|
|
2330
2373
|
})
|
|
2331
2374
|
);
|
|
2332
|
-
var StyledSelectPlaceholder =
|
|
2375
|
+
var StyledSelectPlaceholder = styled13("span")(({ theme }) => ({
|
|
2333
2376
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2334
2377
|
display: "inline-block",
|
|
2335
2378
|
flexGrow: 1,
|
|
@@ -2337,13 +2380,13 @@ var StyledSelectPlaceholder = styled12("span")(({ theme }) => ({
|
|
|
2337
2380
|
border: "none",
|
|
2338
2381
|
outline: "none"
|
|
2339
2382
|
}));
|
|
2340
|
-
var StyledPopperInner =
|
|
2383
|
+
var StyledPopperInner = styled13("div")(({ theme }) => ({
|
|
2341
2384
|
width: "100%",
|
|
2342
2385
|
overflow: "hidden",
|
|
2343
2386
|
boxSizing: "border-box",
|
|
2344
2387
|
zIndex: theme.zIndex.tooltip
|
|
2345
2388
|
}));
|
|
2346
|
-
var StyledTransitionContainer =
|
|
2389
|
+
var StyledTransitionContainer = styled13("ul")(({ theme }) => ({
|
|
2347
2390
|
"&:focus": {
|
|
2348
2391
|
outline: "1px solid transparent"
|
|
2349
2392
|
},
|
|
@@ -2361,7 +2404,7 @@ var StyledTransitionContainer = styled12("ul")(({ theme }) => ({
|
|
|
2361
2404
|
overflowY: "auto",
|
|
2362
2405
|
backgroundColor: theme.palette.background.paper
|
|
2363
2406
|
}));
|
|
2364
|
-
var StyledDropdownArrow =
|
|
2407
|
+
var StyledDropdownArrow = styled13("div")(() => ({
|
|
2365
2408
|
height: "24px",
|
|
2366
2409
|
width: "24px",
|
|
2367
2410
|
"& > svg": {
|
|
@@ -2370,7 +2413,7 @@ var StyledDropdownArrow = styled12("div")(() => ({
|
|
|
2370
2413
|
}));
|
|
2371
2414
|
|
|
2372
2415
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
2373
|
-
import { jsx as
|
|
2416
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2374
2417
|
var MultiSelect = ({
|
|
2375
2418
|
options: initialOptions,
|
|
2376
2419
|
placeholder,
|
|
@@ -2677,8 +2720,8 @@ var MultiSelect = ({
|
|
|
2677
2720
|
"data-multi-select-trigger": true,
|
|
2678
2721
|
"aria-haspopup": "tree",
|
|
2679
2722
|
children: [
|
|
2680
|
-
/* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2723
|
+
/* @__PURE__ */ jsx17(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
|
|
2724
|
+
/* @__PURE__ */ jsx17(StyledDropdownArrow, { children: /* @__PURE__ */ jsx17(
|
|
2682
2725
|
KeyboardArrowDownIcon,
|
|
2683
2726
|
{
|
|
2684
2727
|
sx: {
|
|
@@ -2687,11 +2730,11 @@ var MultiSelect = ({
|
|
|
2687
2730
|
}
|
|
2688
2731
|
}
|
|
2689
2732
|
) }),
|
|
2690
|
-
/* @__PURE__ */
|
|
2733
|
+
/* @__PURE__ */ jsx17("input", { name: inputId, type: "hidden", required, "aria-required": required })
|
|
2691
2734
|
]
|
|
2692
2735
|
}
|
|
2693
2736
|
),
|
|
2694
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ jsx17(
|
|
2695
2738
|
StyledSelectionContainerOutline,
|
|
2696
2739
|
{
|
|
2697
2740
|
"data-lose-focus": currentOptionIndex > -1,
|
|
@@ -2700,7 +2743,7 @@ var MultiSelect = ({
|
|
|
2700
2743
|
}
|
|
2701
2744
|
)
|
|
2702
2745
|
] }),
|
|
2703
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ jsx17(
|
|
2704
2747
|
Popper,
|
|
2705
2748
|
{
|
|
2706
2749
|
open,
|
|
@@ -2712,7 +2755,7 @@ var MultiSelect = ({
|
|
|
2712
2755
|
{ name: "preventOverflow", enabled: true },
|
|
2713
2756
|
{ name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
|
|
2714
2757
|
],
|
|
2715
|
-
children: /* @__PURE__ */
|
|
2758
|
+
children: /* @__PURE__ */ jsx17(StyledPopperInner, { children: /* @__PURE__ */ jsx17(Collapse, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ jsxs7(
|
|
2716
2759
|
StyledTransitionContainer,
|
|
2717
2760
|
{
|
|
2718
2761
|
role: "tree",
|
|
@@ -2747,7 +2790,7 @@ MultiSelect.displayName = "ToolkitMultiSelect";
|
|
|
2747
2790
|
import { useRef as useRef2, useCallback as useCallback4 } from "react";
|
|
2748
2791
|
import Box5 from "@mui/material/Box";
|
|
2749
2792
|
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
2750
|
-
import { jsx as
|
|
2793
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2751
2794
|
var OTP_LENGTH = 6;
|
|
2752
2795
|
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2753
2796
|
const inputRefs = useRef2([]);
|
|
@@ -2780,7 +2823,7 @@ var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
|
2780
2823
|
},
|
|
2781
2824
|
[onChange]
|
|
2782
2825
|
);
|
|
2783
|
-
return /* @__PURE__ */
|
|
2826
|
+
return /* @__PURE__ */ jsx18(Box5, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ jsx18(
|
|
2784
2827
|
OutlinedInput,
|
|
2785
2828
|
{
|
|
2786
2829
|
inputRef: (el) => {
|
|
@@ -2967,13 +3010,13 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
2967
3010
|
}
|
|
2968
3011
|
|
|
2969
3012
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
2970
|
-
import { styled as
|
|
3013
|
+
import { styled as styled14 } from "@mui/material/styles";
|
|
2971
3014
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
2972
3015
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
2973
|
-
var StyledPageSpinnerRoot =
|
|
3016
|
+
var StyledPageSpinnerRoot = styled14("div")(() => ({
|
|
2974
3017
|
position: "relative"
|
|
2975
3018
|
}));
|
|
2976
|
-
var StyledOverlay =
|
|
3019
|
+
var StyledOverlay = styled14("div", {
|
|
2977
3020
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2978
3021
|
})(({ theme, $darkBg = false }) => ({
|
|
2979
3022
|
position: "fixed",
|
|
@@ -2981,7 +3024,7 @@ var StyledOverlay = styled13("div", {
|
|
|
2981
3024
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
2982
3025
|
backgroundColor: $darkBg ? alpha4(theme.tokens.colors.textPrimary, 0.9) : alpha4(theme.palette.common.white, 0.9)
|
|
2983
3026
|
}));
|
|
2984
|
-
var StyledSpinnerCentre =
|
|
3027
|
+
var StyledSpinnerCentre = styled14("div")(() => ({
|
|
2985
3028
|
position: "fixed",
|
|
2986
3029
|
top: "50%",
|
|
2987
3030
|
left: "50%",
|
|
@@ -2992,7 +3035,7 @@ var StyledSpinnerCentre = styled13("div")(() => ({
|
|
|
2992
3035
|
alignItems: "center",
|
|
2993
3036
|
gap: "16px"
|
|
2994
3037
|
}));
|
|
2995
|
-
var StyledSpinnerMessage =
|
|
3038
|
+
var StyledSpinnerMessage = styled14("p", {
|
|
2996
3039
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2997
3040
|
})(({ theme, $darkBg = false }) => ({
|
|
2998
3041
|
margin: 0,
|
|
@@ -3003,7 +3046,7 @@ var StyledSpinnerMessage = styled13("p", {
|
|
|
3003
3046
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
3004
3047
|
textAlign: "center"
|
|
3005
3048
|
}));
|
|
3006
|
-
var StyledScreenReaderOnly2 =
|
|
3049
|
+
var StyledScreenReaderOnly2 = styled14("span")(() => ({
|
|
3007
3050
|
position: "absolute",
|
|
3008
3051
|
width: "1px",
|
|
3009
3052
|
height: "1px",
|
|
@@ -3016,7 +3059,7 @@ var StyledScreenReaderOnly2 = styled13("span")(() => ({
|
|
|
3016
3059
|
}));
|
|
3017
3060
|
|
|
3018
3061
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
3019
|
-
import { jsx as
|
|
3062
|
+
import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3020
3063
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
3021
3064
|
var PageSpinner = React8.forwardRef(
|
|
3022
3065
|
function PageSpinner2({
|
|
@@ -3050,7 +3093,7 @@ var PageSpinner = React8.forwardRef(
|
|
|
3050
3093
|
backgroundScrollTether(false);
|
|
3051
3094
|
};
|
|
3052
3095
|
}, [message, rootNode, messageTone]);
|
|
3053
|
-
return /* @__PURE__ */
|
|
3096
|
+
return /* @__PURE__ */ jsx19(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs8(
|
|
3054
3097
|
StyledPageSpinnerRoot,
|
|
3055
3098
|
{
|
|
3056
3099
|
"data-component-id": "PageSpinner",
|
|
@@ -3058,9 +3101,9 @@ var PageSpinner = React8.forwardRef(
|
|
|
3058
3101
|
ref: mergedRef,
|
|
3059
3102
|
...getCleanProps(restProps),
|
|
3060
3103
|
children: [
|
|
3061
|
-
/* @__PURE__ */
|
|
3104
|
+
/* @__PURE__ */ jsx19(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
3062
3105
|
/* @__PURE__ */ jsxs8(StyledSpinnerCentre, { children: [
|
|
3063
|
-
/* @__PURE__ */
|
|
3106
|
+
/* @__PURE__ */ jsx19(
|
|
3064
3107
|
CircularProgress3,
|
|
3065
3108
|
{
|
|
3066
3109
|
size: 60,
|
|
@@ -3068,8 +3111,8 @@ var PageSpinner = React8.forwardRef(
|
|
|
3068
3111
|
"aria-hidden": "true"
|
|
3069
3112
|
}
|
|
3070
3113
|
),
|
|
3071
|
-
customMessageLayout ?? /* @__PURE__ */
|
|
3072
|
-
srText && /* @__PURE__ */
|
|
3114
|
+
customMessageLayout ?? /* @__PURE__ */ jsx19(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
3115
|
+
srText && /* @__PURE__ */ jsx19(StyledScreenReaderOnly2, { children: srText })
|
|
3073
3116
|
] })
|
|
3074
3117
|
]
|
|
3075
3118
|
}
|
|
@@ -3083,7 +3126,7 @@ import React9 from "react";
|
|
|
3083
3126
|
import MuiPagination from "@mui/material/Pagination";
|
|
3084
3127
|
|
|
3085
3128
|
// src/components/Pagination/Pagination.styles.tsx
|
|
3086
|
-
import { styled as
|
|
3129
|
+
import { styled as styled15, alpha as alpha5 } from "@mui/material/styles";
|
|
3087
3130
|
import MuiPaginationItem from "@mui/material/PaginationItem";
|
|
3088
3131
|
function getColorValue(theme, color) {
|
|
3089
3132
|
switch (color) {
|
|
@@ -3103,7 +3146,7 @@ function getColorValue(theme, color) {
|
|
|
3103
3146
|
return theme.tokens.colors.textPrimary;
|
|
3104
3147
|
}
|
|
3105
3148
|
}
|
|
3106
|
-
var StyledPaginationItem =
|
|
3149
|
+
var StyledPaginationItem = styled15(MuiPaginationItem, {
|
|
3107
3150
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
3108
3151
|
})(({ theme, $variant, $color }) => {
|
|
3109
3152
|
const colorValue = getColorValue(theme, $color);
|
|
@@ -3146,15 +3189,15 @@ var StyledPaginationItem = styled14(MuiPaginationItem, {
|
|
|
3146
3189
|
});
|
|
3147
3190
|
|
|
3148
3191
|
// src/components/Pagination/Pagination.tsx
|
|
3149
|
-
import { jsx as
|
|
3192
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
3150
3193
|
var Pagination = React9.forwardRef(
|
|
3151
3194
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
3152
|
-
return /* @__PURE__ */
|
|
3195
|
+
return /* @__PURE__ */ jsx20(
|
|
3153
3196
|
MuiPagination,
|
|
3154
3197
|
{
|
|
3155
3198
|
ref,
|
|
3156
3199
|
"data-component-id": "Pagination",
|
|
3157
|
-
renderItem: (item) => /* @__PURE__ */
|
|
3200
|
+
renderItem: (item) => /* @__PURE__ */ jsx20(
|
|
3158
3201
|
StyledPaginationItem,
|
|
3159
3202
|
{
|
|
3160
3203
|
$variant: variant,
|
|
@@ -3174,8 +3217,8 @@ Pagination.displayName = "ToolkitPagination";
|
|
|
3174
3217
|
import React10 from "react";
|
|
3175
3218
|
|
|
3176
3219
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
3177
|
-
import { styled as
|
|
3178
|
-
var StyledParagraph =
|
|
3220
|
+
import { styled as styled16 } from "@mui/material/styles";
|
|
3221
|
+
var StyledParagraph = styled16("p", {
|
|
3179
3222
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
3180
3223
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
3181
3224
|
margin: 0,
|
|
@@ -3208,10 +3251,10 @@ var StyledParagraph = styled15("p", {
|
|
|
3208
3251
|
}));
|
|
3209
3252
|
|
|
3210
3253
|
// src/components/Paragraph/Paragraph.tsx
|
|
3211
|
-
import { jsx as
|
|
3254
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3212
3255
|
var Paragraph = React10.forwardRef(
|
|
3213
3256
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
3214
|
-
return /* @__PURE__ */
|
|
3257
|
+
return /* @__PURE__ */ jsx21(
|
|
3215
3258
|
StyledParagraph,
|
|
3216
3259
|
{
|
|
3217
3260
|
$variant: variant,
|
|
@@ -3234,8 +3277,8 @@ import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
|
|
3234
3277
|
import CancelIcon from "@mui/icons-material/Cancel";
|
|
3235
3278
|
|
|
3236
3279
|
// src/components/Password/PasswordRule.styles.tsx
|
|
3237
|
-
import { styled as
|
|
3238
|
-
var StyledPasswordRule =
|
|
3280
|
+
import { styled as styled17 } from "@mui/material/styles";
|
|
3281
|
+
var StyledPasswordRule = styled17("div")(({ theme }) => ({
|
|
3239
3282
|
display: "flex",
|
|
3240
3283
|
alignItems: "center",
|
|
3241
3284
|
gap: theme.tokens.spacing.xs,
|
|
@@ -3247,15 +3290,15 @@ var StyledPasswordRule = styled16("div")(({ theme }) => ({
|
|
|
3247
3290
|
color: theme.tokens.colors.error
|
|
3248
3291
|
}
|
|
3249
3292
|
}));
|
|
3250
|
-
var StyledPasswordRuleIcon =
|
|
3293
|
+
var StyledPasswordRuleIcon = styled17("span")({
|
|
3251
3294
|
display: "inline-flex",
|
|
3252
3295
|
alignItems: "center",
|
|
3253
3296
|
flexShrink: 0
|
|
3254
3297
|
});
|
|
3255
|
-
var StyledPasswordRuleText =
|
|
3298
|
+
var StyledPasswordRuleText = styled17("span")(({ theme }) => ({
|
|
3256
3299
|
fontSize: theme.tokens.typography.fontSizeSm
|
|
3257
3300
|
}));
|
|
3258
|
-
var StyledScreenReaderOnly3 =
|
|
3301
|
+
var StyledScreenReaderOnly3 = styled17("span")({
|
|
3259
3302
|
position: "absolute",
|
|
3260
3303
|
width: 1,
|
|
3261
3304
|
height: 1,
|
|
@@ -3268,24 +3311,24 @@ var StyledScreenReaderOnly3 = styled16("span")({
|
|
|
3268
3311
|
});
|
|
3269
3312
|
|
|
3270
3313
|
// src/components/Password/PasswordRule.tsx
|
|
3271
|
-
import { jsx as
|
|
3314
|
+
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3272
3315
|
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs9(
|
|
3273
3316
|
StyledPasswordRule,
|
|
3274
3317
|
{
|
|
3275
3318
|
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
3276
3319
|
"data-testid": `password-rule-${idx}`,
|
|
3277
3320
|
children: [
|
|
3278
|
-
/* @__PURE__ */
|
|
3279
|
-
/* @__PURE__ */
|
|
3280
|
-
/* @__PURE__ */
|
|
3321
|
+
/* @__PURE__ */ jsx22(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx22(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx22(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3322
|
+
/* @__PURE__ */ jsx22(StyledPasswordRuleText, { children: rule }),
|
|
3323
|
+
/* @__PURE__ */ jsx22(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
3281
3324
|
]
|
|
3282
3325
|
}
|
|
3283
3326
|
);
|
|
3284
3327
|
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
3285
3328
|
|
|
3286
3329
|
// src/components/Password/PasswordCriteria.styles.tsx
|
|
3287
|
-
import { styled as
|
|
3288
|
-
var StyledPasswordCriteriaContainer =
|
|
3330
|
+
import { styled as styled18 } from "@mui/material/styles";
|
|
3331
|
+
var StyledPasswordCriteriaContainer = styled18("div")(
|
|
3289
3332
|
({ theme, $show }) => ({
|
|
3290
3333
|
display: $show ? "block" : "none",
|
|
3291
3334
|
position: "absolute",
|
|
@@ -3296,7 +3339,7 @@ var StyledPasswordCriteriaContainer = styled17("div")(
|
|
|
3296
3339
|
marginTop: theme.tokens.spacing.xs
|
|
3297
3340
|
})
|
|
3298
3341
|
);
|
|
3299
|
-
var StyledPasswordRuleTitle =
|
|
3342
|
+
var StyledPasswordRuleTitle = styled18("div")(({ theme }) => ({
|
|
3300
3343
|
color: theme.tokens.colors.textPrimary,
|
|
3301
3344
|
fontSize: theme.tokens.typography.fontSizeSm,
|
|
3302
3345
|
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
@@ -3306,7 +3349,7 @@ var StyledPasswordRuleTitle = styled17("div")(({ theme }) => ({
|
|
|
3306
3349
|
}));
|
|
3307
3350
|
|
|
3308
3351
|
// src/components/Password/PasswordCriteria.tsx
|
|
3309
|
-
import { jsx as
|
|
3352
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3310
3353
|
var PasswordRules = [
|
|
3311
3354
|
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
3312
3355
|
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
@@ -3323,7 +3366,7 @@ var passwordValidator = (value) => ({
|
|
|
3323
3366
|
});
|
|
3324
3367
|
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
3325
3368
|
const validity = passwordValidator(value);
|
|
3326
|
-
return /* @__PURE__ */
|
|
3369
|
+
return /* @__PURE__ */ jsx23(
|
|
3327
3370
|
StyledPasswordCriteriaContainer,
|
|
3328
3371
|
{
|
|
3329
3372
|
$show: show,
|
|
@@ -3333,8 +3376,8 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3333
3376
|
role: "status",
|
|
3334
3377
|
"aria-live": "polite",
|
|
3335
3378
|
children: /* @__PURE__ */ jsxs10(Card, { compact: true, children: [
|
|
3336
|
-
/* @__PURE__ */
|
|
3337
|
-
PasswordRules.map((item, idx) => /* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ jsx23(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
3380
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ jsx23(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
3338
3381
|
] })
|
|
3339
3382
|
}
|
|
3340
3383
|
);
|
|
@@ -3342,17 +3385,17 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3342
3385
|
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
3343
3386
|
|
|
3344
3387
|
// src/components/Password/Password.styles.tsx
|
|
3345
|
-
import { styled as
|
|
3346
|
-
var StyledPasswordRoot =
|
|
3388
|
+
import { styled as styled19 } from "@mui/material/styles";
|
|
3389
|
+
var StyledPasswordRoot = styled19("div")({
|
|
3347
3390
|
position: "relative"
|
|
3348
3391
|
});
|
|
3349
|
-
var StyledPasswordInputWrapper =
|
|
3392
|
+
var StyledPasswordInputWrapper = styled19("div")({
|
|
3350
3393
|
display: "flex",
|
|
3351
3394
|
position: "relative"
|
|
3352
3395
|
});
|
|
3353
3396
|
|
|
3354
3397
|
// src/components/Password/Password.tsx
|
|
3355
|
-
import { jsx as
|
|
3398
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3356
3399
|
var Password = React11.forwardRef(
|
|
3357
3400
|
function Password2({
|
|
3358
3401
|
isInvalid,
|
|
@@ -3385,7 +3428,7 @@ var Password = React11.forwardRef(
|
|
|
3385
3428
|
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
3386
3429
|
const cleanRest = getCleanProps(rest);
|
|
3387
3430
|
return /* @__PURE__ */ jsxs11(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
3388
|
-
/* @__PURE__ */
|
|
3431
|
+
/* @__PURE__ */ jsx24(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx24(
|
|
3389
3432
|
TextField,
|
|
3390
3433
|
{
|
|
3391
3434
|
ref,
|
|
@@ -3404,7 +3447,7 @@ var Password = React11.forwardRef(
|
|
|
3404
3447
|
onChange: handleChange
|
|
3405
3448
|
}
|
|
3406
3449
|
) }),
|
|
3407
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ jsx24(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
3408
3451
|
] });
|
|
3409
3452
|
}
|
|
3410
3453
|
);
|
|
@@ -3414,7 +3457,7 @@ Password.displayName = "ToolkitPassword";
|
|
|
3414
3457
|
import React12 from "react";
|
|
3415
3458
|
|
|
3416
3459
|
// src/components/Spinner/Spinner.styles.tsx
|
|
3417
|
-
import { styled as
|
|
3460
|
+
import { styled as styled20, alpha as alpha6 } from "@mui/material/styles";
|
|
3418
3461
|
var spinnerSizing = {
|
|
3419
3462
|
xs: 20,
|
|
3420
3463
|
sm: 24,
|
|
@@ -3422,7 +3465,7 @@ var spinnerSizing = {
|
|
|
3422
3465
|
lg: 56,
|
|
3423
3466
|
xl: 72
|
|
3424
3467
|
};
|
|
3425
|
-
var StyledSpinnerContainer =
|
|
3468
|
+
var StyledSpinnerContainer = styled20("div", {
|
|
3426
3469
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
3427
3470
|
})({}, ({ $inline }) => ({
|
|
3428
3471
|
flex: "0 1 100%",
|
|
@@ -3430,7 +3473,7 @@ var StyledSpinnerContainer = styled19("div", {
|
|
|
3430
3473
|
flexDirection: $inline ? "row" : "column",
|
|
3431
3474
|
alignItems: "center"
|
|
3432
3475
|
}));
|
|
3433
|
-
var StyledSpinnerIconContainer =
|
|
3476
|
+
var StyledSpinnerIconContainer = styled20("div", {
|
|
3434
3477
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3435
3478
|
})(({ $size }) => {
|
|
3436
3479
|
const size = spinnerSizing[$size];
|
|
@@ -3440,7 +3483,7 @@ var StyledSpinnerIconContainer = styled19("div", {
|
|
|
3440
3483
|
height: size
|
|
3441
3484
|
};
|
|
3442
3485
|
});
|
|
3443
|
-
var StyledSpinnerBackground =
|
|
3486
|
+
var StyledSpinnerBackground = styled20("div", {
|
|
3444
3487
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3445
3488
|
})(({ theme, $size, $darkBg }) => {
|
|
3446
3489
|
const size = spinnerSizing[$size];
|
|
@@ -3454,7 +3497,7 @@ var StyledSpinnerBackground = styled19("div", {
|
|
|
3454
3497
|
border: `${lineWidth}px solid ${borderColor}`
|
|
3455
3498
|
};
|
|
3456
3499
|
});
|
|
3457
|
-
var StyledSpinner =
|
|
3500
|
+
var StyledSpinner = styled20("div", {
|
|
3458
3501
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3459
3502
|
})(({ theme, $size, $darkBg }) => {
|
|
3460
3503
|
const size = spinnerSizing[$size];
|
|
@@ -3477,7 +3520,7 @@ var StyledSpinner = styled19("div", {
|
|
|
3477
3520
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
3478
3521
|
};
|
|
3479
3522
|
});
|
|
3480
|
-
var StyledSpinnerMessage2 =
|
|
3523
|
+
var StyledSpinnerMessage2 = styled20("span", {
|
|
3481
3524
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
3482
3525
|
})(({ theme, $darkBg, $inline }) => ({
|
|
3483
3526
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -3486,7 +3529,7 @@ var StyledSpinnerMessage2 = styled19("span", {
|
|
|
3486
3529
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
3487
3530
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
3488
3531
|
}));
|
|
3489
|
-
var StyledScreenReaderOnly4 =
|
|
3532
|
+
var StyledScreenReaderOnly4 = styled20("span")({
|
|
3490
3533
|
position: "absolute",
|
|
3491
3534
|
width: 1,
|
|
3492
3535
|
height: 1,
|
|
@@ -3499,7 +3542,7 @@ var StyledScreenReaderOnly4 = styled19("span")({
|
|
|
3499
3542
|
});
|
|
3500
3543
|
|
|
3501
3544
|
// src/components/Spinner/Spinner.tsx
|
|
3502
|
-
import { jsx as
|
|
3545
|
+
import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3503
3546
|
var Spinner = React12.forwardRef(
|
|
3504
3547
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
3505
3548
|
return /* @__PURE__ */ jsxs12(
|
|
@@ -3511,11 +3554,11 @@ var Spinner = React12.forwardRef(
|
|
|
3511
3554
|
...getCleanProps(restProps),
|
|
3512
3555
|
children: [
|
|
3513
3556
|
/* @__PURE__ */ jsxs12(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
3514
|
-
/* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3557
|
+
/* @__PURE__ */ jsx25(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
3558
|
+
/* @__PURE__ */ jsx25(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
3516
3559
|
] }),
|
|
3517
|
-
message && /* @__PURE__ */
|
|
3518
|
-
srText && /* @__PURE__ */
|
|
3560
|
+
message && /* @__PURE__ */ jsx25(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
3561
|
+
srText && /* @__PURE__ */ jsx25(StyledScreenReaderOnly4, { children: srText })
|
|
3519
3562
|
]
|
|
3520
3563
|
}
|
|
3521
3564
|
);
|
|
@@ -3527,14 +3570,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
3527
3570
|
import FormHelperText from "@mui/material/FormHelperText";
|
|
3528
3571
|
|
|
3529
3572
|
// src/components/Toggle/Toggle.styles.tsx
|
|
3530
|
-
import { styled as
|
|
3531
|
-
var StyledFieldset =
|
|
3573
|
+
import { styled as styled21 } from "@mui/material/styles";
|
|
3574
|
+
var StyledFieldset = styled21("fieldset")(({ theme }) => ({
|
|
3532
3575
|
border: "none",
|
|
3533
3576
|
margin: 0,
|
|
3534
3577
|
padding: 0,
|
|
3535
3578
|
minWidth: 0
|
|
3536
3579
|
}));
|
|
3537
|
-
var StyledLegend =
|
|
3580
|
+
var StyledLegend = styled21("legend")(({ theme }) => ({
|
|
3538
3581
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
3539
3582
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
3540
3583
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -3542,16 +3585,16 @@ var StyledLegend = styled20("legend")(({ theme }) => ({
|
|
|
3542
3585
|
marginBottom: theme.spacing(1),
|
|
3543
3586
|
padding: 0
|
|
3544
3587
|
}));
|
|
3545
|
-
var StyledToggleWrapper =
|
|
3588
|
+
var StyledToggleWrapper = styled21("div")(({ theme, size = "medium" }) => ({
|
|
3546
3589
|
display: "flex",
|
|
3547
3590
|
flexDirection: "row",
|
|
3548
3591
|
width: theme.spacing(15),
|
|
3549
|
-
height: theme.spacing(
|
|
3592
|
+
height: size === "small" ? theme.spacing(5) : size === "large" ? theme.spacing(8) : theme.spacing(7),
|
|
3550
3593
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.paper : theme.palette.common.white,
|
|
3551
3594
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
3552
3595
|
borderRadius: theme.tokens.borderRadius.md
|
|
3553
3596
|
}));
|
|
3554
|
-
var StyledSwitch =
|
|
3597
|
+
var StyledSwitch = styled21("label", {
|
|
3555
3598
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
3556
3599
|
})(({ theme, selected, controlType }) => ({
|
|
3557
3600
|
position: "relative",
|
|
@@ -3641,7 +3684,7 @@ var StyledSwitch = styled20("label", {
|
|
|
3641
3684
|
}));
|
|
3642
3685
|
|
|
3643
3686
|
// src/components/Toggle/Toggle.tsx
|
|
3644
|
-
import { jsx as
|
|
3687
|
+
import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3645
3688
|
function Toggle({
|
|
3646
3689
|
name,
|
|
3647
3690
|
checked = false,
|
|
@@ -3650,13 +3693,14 @@ function Toggle({
|
|
|
3650
3693
|
error,
|
|
3651
3694
|
onChange,
|
|
3652
3695
|
onBlur,
|
|
3696
|
+
size = "medium",
|
|
3653
3697
|
...restProps
|
|
3654
3698
|
}) {
|
|
3655
3699
|
const testId = restProps["data-testid"];
|
|
3656
3700
|
return /* @__PURE__ */ jsxs13(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3657
|
-
label && /* @__PURE__ */
|
|
3658
|
-
description && /* @__PURE__ */
|
|
3659
|
-
/* @__PURE__ */ jsxs13(StyledToggleWrapper, { children: [
|
|
3701
|
+
label && /* @__PURE__ */ jsx26(StyledLegend, { children: label }),
|
|
3702
|
+
description && /* @__PURE__ */ jsx26(FormHelperText, { children: description }),
|
|
3703
|
+
/* @__PURE__ */ jsxs13(StyledToggleWrapper, { size, children: [
|
|
3660
3704
|
/* @__PURE__ */ jsxs13(
|
|
3661
3705
|
StyledSwitch,
|
|
3662
3706
|
{
|
|
@@ -3665,7 +3709,7 @@ function Toggle({
|
|
|
3665
3709
|
controlType: "off",
|
|
3666
3710
|
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3667
3711
|
children: [
|
|
3668
|
-
/* @__PURE__ */
|
|
3712
|
+
/* @__PURE__ */ jsx26(
|
|
3669
3713
|
"input",
|
|
3670
3714
|
{
|
|
3671
3715
|
checked: !checked,
|
|
@@ -3689,7 +3733,7 @@ function Toggle({
|
|
|
3689
3733
|
controlType: "on",
|
|
3690
3734
|
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3691
3735
|
children: [
|
|
3692
|
-
/* @__PURE__ */
|
|
3736
|
+
/* @__PURE__ */ jsx26(
|
|
3693
3737
|
"input",
|
|
3694
3738
|
{
|
|
3695
3739
|
checked,
|
|
@@ -3706,7 +3750,7 @@ function Toggle({
|
|
|
3706
3750
|
}
|
|
3707
3751
|
)
|
|
3708
3752
|
] }),
|
|
3709
|
-
error && /* @__PURE__ */
|
|
3753
|
+
error && /* @__PURE__ */ jsx26(FormHelperText, { error: true, children: error })
|
|
3710
3754
|
] });
|
|
3711
3755
|
}
|
|
3712
3756
|
Toggle.displayName = "ToolkitToggle";
|
|
@@ -3722,37 +3766,37 @@ import {
|
|
|
3722
3766
|
TablePagination as MuiTablePagination,
|
|
3723
3767
|
TableSortLabel as MuiTableSortLabel
|
|
3724
3768
|
} from "@mui/material";
|
|
3725
|
-
import { styled as
|
|
3726
|
-
import { jsx as
|
|
3727
|
-
var StyledTableContainer =
|
|
3769
|
+
import { styled as styled22 } from "@mui/material/styles";
|
|
3770
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3771
|
+
var StyledTableContainer = styled22(MuiTableContainer)(() => ({
|
|
3728
3772
|
overflowX: "auto"
|
|
3729
3773
|
}));
|
|
3730
|
-
var StyledHeadCell =
|
|
3774
|
+
var StyledHeadCell = styled22(MuiTableCell)(({ theme }) => ({
|
|
3731
3775
|
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
3732
3776
|
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
3733
3777
|
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
3734
3778
|
borderBottomColor: theme.tokens.components.table.borderColor
|
|
3735
3779
|
}));
|
|
3736
3780
|
function Table(props) {
|
|
3737
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx27(MuiTable, { ...props });
|
|
3738
3782
|
}
|
|
3739
3783
|
function TableHead(props) {
|
|
3740
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx27(MuiTableHead, { ...props });
|
|
3741
3785
|
}
|
|
3742
3786
|
function TableBody(props) {
|
|
3743
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsx27(MuiTableBody, { ...props });
|
|
3744
3788
|
}
|
|
3745
3789
|
function TableRow(props) {
|
|
3746
|
-
return /* @__PURE__ */
|
|
3790
|
+
return /* @__PURE__ */ jsx27(MuiTableRow, { ...props });
|
|
3747
3791
|
}
|
|
3748
3792
|
function TableCell(props) {
|
|
3749
|
-
return /* @__PURE__ */
|
|
3793
|
+
return /* @__PURE__ */ jsx27(MuiTableCell, { ...props });
|
|
3750
3794
|
}
|
|
3751
3795
|
function TableHeadCell(props) {
|
|
3752
|
-
return /* @__PURE__ */
|
|
3796
|
+
return /* @__PURE__ */ jsx27(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
3753
3797
|
}
|
|
3754
3798
|
function TableContainer(props) {
|
|
3755
|
-
return /* @__PURE__ */
|
|
3799
|
+
return /* @__PURE__ */ jsx27(StyledTableContainer, { ...props });
|
|
3756
3800
|
}
|
|
3757
3801
|
var TablePagination = MuiTablePagination;
|
|
3758
3802
|
var TableSortLabel = MuiTableSortLabel;
|
|
@@ -3767,10 +3811,10 @@ TableContainer.displayName = "ToolkitTableContainer";
|
|
|
3767
3811
|
// src/foundation/H1/H1.tsx
|
|
3768
3812
|
import React13 from "react";
|
|
3769
3813
|
import { Typography } from "@mui/material";
|
|
3770
|
-
import { jsx as
|
|
3814
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3771
3815
|
var H1 = React13.forwardRef(
|
|
3772
3816
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
3773
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx28(Typography, { ref, variant: "h1", color, ...props, children });
|
|
3774
3818
|
}
|
|
3775
3819
|
);
|
|
3776
3820
|
H1.displayName = "ToolkitH1";
|
|
@@ -3778,10 +3822,10 @@ H1.displayName = "ToolkitH1";
|
|
|
3778
3822
|
// src/foundation/H2/H2.tsx
|
|
3779
3823
|
import React14 from "react";
|
|
3780
3824
|
import { Typography as Typography2 } from "@mui/material";
|
|
3781
|
-
import { jsx as
|
|
3825
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3782
3826
|
var H2 = React14.forwardRef(
|
|
3783
3827
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
3784
|
-
return /* @__PURE__ */
|
|
3828
|
+
return /* @__PURE__ */ jsx29(Typography2, { ref, variant: "h2", color, ...props, children });
|
|
3785
3829
|
}
|
|
3786
3830
|
);
|
|
3787
3831
|
H2.displayName = "ToolkitH2";
|
|
@@ -3789,10 +3833,10 @@ H2.displayName = "ToolkitH2";
|
|
|
3789
3833
|
// src/foundation/H3/H3.tsx
|
|
3790
3834
|
import React15 from "react";
|
|
3791
3835
|
import { Typography as Typography3 } from "@mui/material";
|
|
3792
|
-
import { jsx as
|
|
3836
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3793
3837
|
var H3 = React15.forwardRef(
|
|
3794
3838
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
3795
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx30(Typography3, { ref, variant: "h3", color, ...props, children });
|
|
3796
3840
|
}
|
|
3797
3841
|
);
|
|
3798
3842
|
H3.displayName = "ToolkitH3";
|
|
@@ -3800,10 +3844,10 @@ H3.displayName = "ToolkitH3";
|
|
|
3800
3844
|
// src/foundation/H4/H4.tsx
|
|
3801
3845
|
import React16 from "react";
|
|
3802
3846
|
import { Typography as Typography4 } from "@mui/material";
|
|
3803
|
-
import { jsx as
|
|
3847
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3804
3848
|
var H4 = React16.forwardRef(
|
|
3805
3849
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
3806
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ jsx31(Typography4, { ref, variant: "h4", color, ...props, children });
|
|
3807
3851
|
}
|
|
3808
3852
|
);
|
|
3809
3853
|
H4.displayName = "ToolkitH4";
|
|
@@ -3811,10 +3855,10 @@ H4.displayName = "ToolkitH4";
|
|
|
3811
3855
|
// src/foundation/H5/H5.tsx
|
|
3812
3856
|
import React17 from "react";
|
|
3813
3857
|
import { Typography as Typography5 } from "@mui/material";
|
|
3814
|
-
import { jsx as
|
|
3858
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3815
3859
|
var H5 = React17.forwardRef(
|
|
3816
3860
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
3817
|
-
return /* @__PURE__ */
|
|
3861
|
+
return /* @__PURE__ */ jsx32(Typography5, { ref, variant: "h5", color, ...props, children });
|
|
3818
3862
|
}
|
|
3819
3863
|
);
|
|
3820
3864
|
H5.displayName = "ToolkitH5";
|
|
@@ -3822,10 +3866,10 @@ H5.displayName = "ToolkitH5";
|
|
|
3822
3866
|
// src/foundation/H6/H6.tsx
|
|
3823
3867
|
import React18 from "react";
|
|
3824
3868
|
import { Typography as Typography6 } from "@mui/material";
|
|
3825
|
-
import { jsx as
|
|
3869
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3826
3870
|
var H6 = React18.forwardRef(
|
|
3827
3871
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
3828
|
-
return /* @__PURE__ */
|
|
3872
|
+
return /* @__PURE__ */ jsx33(Typography6, { ref, variant: "h6", color, ...props, children });
|
|
3829
3873
|
}
|
|
3830
3874
|
);
|
|
3831
3875
|
H6.displayName = "ToolkitH6";
|
|
@@ -3833,10 +3877,10 @@ H6.displayName = "ToolkitH6";
|
|
|
3833
3877
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
3834
3878
|
import React19 from "react";
|
|
3835
3879
|
import { Typography as Typography7 } from "@mui/material";
|
|
3836
|
-
import { jsx as
|
|
3880
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3837
3881
|
var Subtitle1 = React19.forwardRef(
|
|
3838
3882
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
3839
|
-
return /* @__PURE__ */
|
|
3883
|
+
return /* @__PURE__ */ jsx34(Typography7, { ref, variant: "subtitle1", color, ...props, children });
|
|
3840
3884
|
}
|
|
3841
3885
|
);
|
|
3842
3886
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
@@ -3844,10 +3888,10 @@ Subtitle1.displayName = "ToolkitSubtitle1";
|
|
|
3844
3888
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
3845
3889
|
import React20 from "react";
|
|
3846
3890
|
import { Typography as Typography8 } from "@mui/material";
|
|
3847
|
-
import { jsx as
|
|
3891
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3848
3892
|
var Subtitle2 = React20.forwardRef(
|
|
3849
3893
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
3850
|
-
return /* @__PURE__ */
|
|
3894
|
+
return /* @__PURE__ */ jsx35(Typography8, { ref, variant: "subtitle2", color, ...props, children });
|
|
3851
3895
|
}
|
|
3852
3896
|
);
|
|
3853
3897
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
@@ -3855,10 +3899,10 @@ Subtitle2.displayName = "ToolkitSubtitle2";
|
|
|
3855
3899
|
// src/foundation/Body1/Body1.tsx
|
|
3856
3900
|
import React21 from "react";
|
|
3857
3901
|
import { Typography as Typography9 } from "@mui/material";
|
|
3858
|
-
import { jsx as
|
|
3902
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3859
3903
|
var Body1 = React21.forwardRef(
|
|
3860
3904
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
3861
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsx36(Typography9, { ref, variant: "body1", color, ...props, children });
|
|
3862
3906
|
}
|
|
3863
3907
|
);
|
|
3864
3908
|
Body1.displayName = "ToolkitBody1";
|
|
@@ -3866,10 +3910,10 @@ Body1.displayName = "ToolkitBody1";
|
|
|
3866
3910
|
// src/foundation/Body2/Body2.tsx
|
|
3867
3911
|
import React22 from "react";
|
|
3868
3912
|
import { Typography as Typography10 } from "@mui/material";
|
|
3869
|
-
import { jsx as
|
|
3913
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3870
3914
|
var Body2 = React22.forwardRef(
|
|
3871
3915
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
3872
|
-
return /* @__PURE__ */
|
|
3916
|
+
return /* @__PURE__ */ jsx37(Typography10, { ref, variant: "body2", color, ...props, children });
|
|
3873
3917
|
}
|
|
3874
3918
|
);
|
|
3875
3919
|
Body2.displayName = "ToolkitBody2";
|
|
@@ -3877,10 +3921,10 @@ Body2.displayName = "ToolkitBody2";
|
|
|
3877
3921
|
// src/foundation/Caption/Caption.tsx
|
|
3878
3922
|
import React23 from "react";
|
|
3879
3923
|
import { Typography as Typography11 } from "@mui/material";
|
|
3880
|
-
import { jsx as
|
|
3924
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3881
3925
|
var Caption = React23.forwardRef(
|
|
3882
3926
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
3883
|
-
return /* @__PURE__ */
|
|
3927
|
+
return /* @__PURE__ */ jsx38(Typography11, { ref, variant: "caption", color, ...props, children });
|
|
3884
3928
|
}
|
|
3885
3929
|
);
|
|
3886
3930
|
Caption.displayName = "ToolkitCaption";
|
|
@@ -3888,10 +3932,10 @@ Caption.displayName = "ToolkitCaption";
|
|
|
3888
3932
|
// src/foundation/Overline/Overline.tsx
|
|
3889
3933
|
import React24 from "react";
|
|
3890
3934
|
import { Typography as Typography12 } from "@mui/material";
|
|
3891
|
-
import { jsx as
|
|
3935
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3892
3936
|
var Overline = React24.forwardRef(
|
|
3893
3937
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
3894
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsx39(Typography12, { ref, variant: "overline", color, ...props, children });
|
|
3895
3939
|
}
|
|
3896
3940
|
);
|
|
3897
3941
|
Overline.displayName = "ToolkitOverline";
|
|
@@ -3899,10 +3943,10 @@ Overline.displayName = "ToolkitOverline";
|
|
|
3899
3943
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
3900
3944
|
import React25 from "react";
|
|
3901
3945
|
import { Typography as Typography13 } from "@mui/material";
|
|
3902
|
-
import { jsx as
|
|
3946
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3903
3947
|
var TypographyButton = React25.forwardRef(
|
|
3904
3948
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
3905
|
-
return /* @__PURE__ */
|
|
3949
|
+
return /* @__PURE__ */ jsx40(Typography13, { ref, variant: "button", color, ...props, children });
|
|
3906
3950
|
}
|
|
3907
3951
|
);
|
|
3908
3952
|
TypographyButton.displayName = "ToolkitTypographyButton";
|