@octoguide/mui-ui-toolkit 0.7.6 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +99 -77
- package/dist/index.d.ts +99 -77
- package/dist/index.js +292 -195
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +224 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1474,19 +1474,52 @@ 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
|
+
transition: `background-color ${theme.tokens.transitions.durationBase} ease`,
|
|
1508
|
+
"&:hover": {
|
|
1509
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle
|
|
1510
|
+
},
|
|
1511
|
+
"&.Mui-selected": {
|
|
1512
|
+
backgroundColor: theme.tokens.colors.primary,
|
|
1513
|
+
color: theme.tokens.colors.primaryContrast,
|
|
1514
|
+
"&:hover": {
|
|
1515
|
+
backgroundColor: theme.tokens.colors.primaryDark
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"&.Mui-disabled": {
|
|
1519
|
+
opacity: 0.4
|
|
1520
|
+
}
|
|
1521
|
+
}));
|
|
1522
|
+
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1490
1523
|
|
|
1491
1524
|
// src/components/DatePicker/DatePicker.tsx
|
|
1492
1525
|
import { useState as useState2 } from "react";
|
|
@@ -1546,77 +1579,77 @@ import DialogActions2 from "@mui/material/DialogActions";
|
|
|
1546
1579
|
import Button2 from "@mui/material/Button";
|
|
1547
1580
|
import Box from "@mui/material/Box";
|
|
1548
1581
|
import TextField3 from "@mui/material/TextField";
|
|
1549
|
-
import { styled as
|
|
1550
|
-
import { Fragment, jsx as
|
|
1582
|
+
import { styled as styled8 } from "@mui/material/styles";
|
|
1583
|
+
import { Fragment, jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1551
1584
|
function DateLocalizationProvider({ children }) {
|
|
1552
|
-
return /* @__PURE__ */
|
|
1585
|
+
return /* @__PURE__ */ jsx11(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
|
|
1553
1586
|
}
|
|
1554
1587
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1555
1588
|
function DatePicker(props) {
|
|
1556
|
-
return /* @__PURE__ */
|
|
1589
|
+
return /* @__PURE__ */ jsx11(MuiDatePicker, { ...props });
|
|
1557
1590
|
}
|
|
1558
1591
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1559
1592
|
function DesktopDatePicker(props) {
|
|
1560
|
-
return /* @__PURE__ */
|
|
1593
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDatePicker, { ...props });
|
|
1561
1594
|
}
|
|
1562
1595
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1563
1596
|
function MobileDatePicker(props) {
|
|
1564
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ jsx11(MuiMobileDatePicker, { ...props });
|
|
1565
1598
|
}
|
|
1566
1599
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1567
1600
|
function DateField(props) {
|
|
1568
|
-
return /* @__PURE__ */
|
|
1601
|
+
return /* @__PURE__ */ jsx11(MuiDateField, { ...props });
|
|
1569
1602
|
}
|
|
1570
1603
|
DateField.displayName = "ToolkitDateField";
|
|
1571
1604
|
function StaticDatePicker(props) {
|
|
1572
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ jsx11(MuiStaticDatePicker, { ...props });
|
|
1573
1606
|
}
|
|
1574
1607
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1575
1608
|
function TimePicker(props) {
|
|
1576
|
-
return /* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ jsx11(MuiTimePicker, { ...props });
|
|
1577
1610
|
}
|
|
1578
1611
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1579
1612
|
function DesktopTimePicker(props) {
|
|
1580
|
-
return /* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsx11(MuiDesktopTimePicker, { ...props });
|
|
1581
1614
|
}
|
|
1582
1615
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1583
1616
|
function MobileTimePicker(props) {
|
|
1584
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ jsx11(MuiMobileTimePicker, { ...props });
|
|
1585
1618
|
}
|
|
1586
1619
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1587
1620
|
function TimeField(props) {
|
|
1588
|
-
return /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ jsx11(MuiTimeField, { ...props });
|
|
1589
1622
|
}
|
|
1590
1623
|
TimeField.displayName = "ToolkitTimeField";
|
|
1591
1624
|
function StaticTimePicker(props) {
|
|
1592
|
-
return /* @__PURE__ */
|
|
1625
|
+
return /* @__PURE__ */ jsx11(MuiStaticTimePicker, { ...props });
|
|
1593
1626
|
}
|
|
1594
1627
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1595
1628
|
function DateTimePicker(props) {
|
|
1596
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ jsx11(MuiDateTimePicker, { ...props });
|
|
1597
1630
|
}
|
|
1598
1631
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1599
1632
|
function DesktopDateTimePicker(props) {
|
|
1600
|
-
return /* @__PURE__ */
|
|
1633
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDateTimePicker, { ...props });
|
|
1601
1634
|
}
|
|
1602
1635
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1603
1636
|
function MobileDateTimePicker(props) {
|
|
1604
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ jsx11(MuiMobileDateTimePicker, { ...props });
|
|
1605
1638
|
}
|
|
1606
1639
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1607
1640
|
function DateTimeField(props) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ jsx11(MuiDateTimeField, { ...props });
|
|
1609
1642
|
}
|
|
1610
1643
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1611
1644
|
function StaticDateTimePicker(props) {
|
|
1612
|
-
return /* @__PURE__ */
|
|
1645
|
+
return /* @__PURE__ */ jsx11(MuiStaticDateTimePicker, { ...props });
|
|
1613
1646
|
}
|
|
1614
1647
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1615
1648
|
function DateCalendar(props) {
|
|
1616
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx11(MuiDateCalendar, { ...props });
|
|
1617
1650
|
}
|
|
1618
1651
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1619
|
-
var RangeRow =
|
|
1652
|
+
var RangeRow = styled8(Box)(({ theme }) => ({
|
|
1620
1653
|
display: "flex",
|
|
1621
1654
|
gap: theme.spacing(2),
|
|
1622
1655
|
alignItems: "center"
|
|
@@ -1640,10 +1673,10 @@ function DateRangePickerInput({
|
|
|
1640
1673
|
setOpen(false);
|
|
1641
1674
|
};
|
|
1642
1675
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1643
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1644
1677
|
/* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ jsx11(DialogContent2, { children: /* @__PURE__ */ jsxs3(RangeRow, { children: [
|
|
1679
|
+
/* @__PURE__ */ jsx11(
|
|
1647
1680
|
MuiDatePicker,
|
|
1648
1681
|
{
|
|
1649
1682
|
label: startLabel,
|
|
@@ -1652,7 +1685,7 @@ function DateRangePickerInput({
|
|
|
1652
1685
|
slotProps: { textField: { fullWidth: true } }
|
|
1653
1686
|
}
|
|
1654
1687
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ jsx11(
|
|
1656
1689
|
MuiDatePicker,
|
|
1657
1690
|
{
|
|
1658
1691
|
label: endLabel,
|
|
@@ -1663,8 +1696,8 @@ function DateRangePickerInput({
|
|
|
1663
1696
|
)
|
|
1664
1697
|
] }) }),
|
|
1665
1698
|
/* @__PURE__ */ jsxs3(DialogActions2, { children: [
|
|
1666
|
-
/* @__PURE__ */
|
|
1667
|
-
/* @__PURE__ */
|
|
1699
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1700
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1668
1701
|
] })
|
|
1669
1702
|
] })
|
|
1670
1703
|
] });
|
|
@@ -1697,10 +1730,10 @@ function DateRangePickerCalendar({
|
|
|
1697
1730
|
}
|
|
1698
1731
|
};
|
|
1699
1732
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1700
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1701
1734
|
/* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, children: [
|
|
1702
1735
|
/* @__PURE__ */ jsxs3(DialogContent2, { sx: { p: 1 }, children: [
|
|
1703
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ jsx11(Box, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx11(
|
|
1704
1737
|
TextField3,
|
|
1705
1738
|
{
|
|
1706
1739
|
size: "small",
|
|
@@ -1710,7 +1743,7 @@ function DateRangePickerCalendar({
|
|
|
1710
1743
|
fullWidth: true
|
|
1711
1744
|
}
|
|
1712
1745
|
) }),
|
|
1713
|
-
/* @__PURE__ */
|
|
1746
|
+
/* @__PURE__ */ jsx11(
|
|
1714
1747
|
MuiDateCalendar,
|
|
1715
1748
|
{
|
|
1716
1749
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1719,8 +1752,8 @@ function DateRangePickerCalendar({
|
|
|
1719
1752
|
)
|
|
1720
1753
|
] }),
|
|
1721
1754
|
/* @__PURE__ */ jsxs3(DialogActions2, { children: [
|
|
1722
|
-
/* @__PURE__ */
|
|
1723
|
-
/* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1756
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1724
1757
|
] })
|
|
1725
1758
|
] })
|
|
1726
1759
|
] });
|
|
@@ -1729,9 +1762,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1729
1762
|
|
|
1730
1763
|
// src/foundation/Grid/Grid.tsx
|
|
1731
1764
|
import { Grid2 as MuiGrid2 } from "@mui/material";
|
|
1732
|
-
import { jsx as
|
|
1765
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1733
1766
|
function Grid({ container, spacing, ...props }) {
|
|
1734
|
-
return /* @__PURE__ */
|
|
1767
|
+
return /* @__PURE__ */ jsx12(
|
|
1735
1768
|
MuiGrid2,
|
|
1736
1769
|
{
|
|
1737
1770
|
container,
|
|
@@ -1746,9 +1779,9 @@ Grid.displayName = "ToolkitGrid";
|
|
|
1746
1779
|
import React4 from "react";
|
|
1747
1780
|
|
|
1748
1781
|
// src/components/IconText/IconText.styles.tsx
|
|
1749
|
-
import { styled as
|
|
1782
|
+
import { styled as styled9 } from "@mui/material/styles";
|
|
1750
1783
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
1751
|
-
var StyledIconTextRoot =
|
|
1784
|
+
var StyledIconTextRoot = styled9("div")(
|
|
1752
1785
|
({ $inheritFontFamily }) => ({
|
|
1753
1786
|
display: "flex",
|
|
1754
1787
|
alignItems: "center",
|
|
@@ -1764,7 +1797,7 @@ var StyledIconTextRoot = styled8("div")(
|
|
|
1764
1797
|
}
|
|
1765
1798
|
})
|
|
1766
1799
|
);
|
|
1767
|
-
var StyledIconTextSymbol =
|
|
1800
|
+
var StyledIconTextSymbol = styled9(SvgIcon4, {
|
|
1768
1801
|
shouldForwardProp: (prop) => prop !== "$position"
|
|
1769
1802
|
})(({ theme, $position }) => ({
|
|
1770
1803
|
flexShrink: 0,
|
|
@@ -1773,7 +1806,7 @@ var StyledIconTextSymbol = styled8(SvgIcon4, {
|
|
|
1773
1806
|
}));
|
|
1774
1807
|
|
|
1775
1808
|
// src/components/IconText/IconText.tsx
|
|
1776
|
-
import { jsx as
|
|
1809
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1777
1810
|
var IconText = React4.forwardRef(
|
|
1778
1811
|
function IconText2({
|
|
1779
1812
|
symbol,
|
|
@@ -1783,14 +1816,14 @@ var IconText = React4.forwardRef(
|
|
|
1783
1816
|
children,
|
|
1784
1817
|
...rest
|
|
1785
1818
|
}, ref) {
|
|
1786
|
-
const icon = /* @__PURE__ */
|
|
1819
|
+
const icon = /* @__PURE__ */ jsx13(
|
|
1787
1820
|
StyledIconTextSymbol,
|
|
1788
1821
|
{
|
|
1789
1822
|
$position: symbolPosition,
|
|
1790
1823
|
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1791
1824
|
"aria-hidden": "true",
|
|
1792
1825
|
...symbolProps,
|
|
1793
|
-
children: symbol.content && /* @__PURE__ */
|
|
1826
|
+
children: symbol.content && /* @__PURE__ */ jsx13("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1794
1827
|
}
|
|
1795
1828
|
);
|
|
1796
1829
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -1815,8 +1848,8 @@ import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
|
1815
1848
|
|
|
1816
1849
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1817
1850
|
import Box2 from "@mui/material/Box";
|
|
1818
|
-
import { styled as
|
|
1819
|
-
var StyledWrapper =
|
|
1851
|
+
import { styled as styled10 } from "@mui/material/styles";
|
|
1852
|
+
var StyledWrapper = styled10("div")(({ theme }) => ({
|
|
1820
1853
|
"& > a, & > div": {
|
|
1821
1854
|
textDecoration: "none",
|
|
1822
1855
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1825,7 +1858,7 @@ var StyledWrapper = styled9("div")(({ theme }) => ({
|
|
|
1825
1858
|
}
|
|
1826
1859
|
}
|
|
1827
1860
|
}));
|
|
1828
|
-
var StyledListItemContainer =
|
|
1861
|
+
var StyledListItemContainer = styled10(Box2)(({ theme }) => ({
|
|
1829
1862
|
width: "100%",
|
|
1830
1863
|
minHeight: "66px",
|
|
1831
1864
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1868,19 +1901,19 @@ var StyledListItemContainer = styled9(Box2)(({ theme }) => ({
|
|
|
1868
1901
|
outlineStyle: "solid"
|
|
1869
1902
|
}
|
|
1870
1903
|
}));
|
|
1871
|
-
var StyledLeftIconWrapper =
|
|
1904
|
+
var StyledLeftIconWrapper = styled10("span")({
|
|
1872
1905
|
display: "flex",
|
|
1873
1906
|
paddingLeft: "4px"
|
|
1874
1907
|
});
|
|
1875
|
-
var StyledRightIconWrapper =
|
|
1908
|
+
var StyledRightIconWrapper = styled10("span")({
|
|
1876
1909
|
display: "flex",
|
|
1877
1910
|
paddingRight: "4px"
|
|
1878
1911
|
});
|
|
1879
|
-
var StyledLabelContainer =
|
|
1912
|
+
var StyledLabelContainer = styled10("div")({
|
|
1880
1913
|
flex: 1,
|
|
1881
1914
|
padding: "12px 8px"
|
|
1882
1915
|
});
|
|
1883
|
-
var StyledLabel =
|
|
1916
|
+
var StyledLabel = styled10("p")(({ theme }) => ({
|
|
1884
1917
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1885
1918
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1886
1919
|
lineHeight: "20px",
|
|
@@ -1888,7 +1921,7 @@ var StyledLabel = styled9("p")(({ theme }) => ({
|
|
|
1888
1921
|
margin: 0,
|
|
1889
1922
|
textDecoration: "none"
|
|
1890
1923
|
}));
|
|
1891
|
-
var StyledCaption =
|
|
1924
|
+
var StyledCaption = styled10("p")(({ theme }) => ({
|
|
1892
1925
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1893
1926
|
color: theme.tokens.colors.textSecondary,
|
|
1894
1927
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -1899,7 +1932,7 @@ var StyledCaption = styled9("p")(({ theme }) => ({
|
|
|
1899
1932
|
}));
|
|
1900
1933
|
|
|
1901
1934
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1902
|
-
import { jsx as
|
|
1935
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1903
1936
|
function InternalLinkItem({
|
|
1904
1937
|
link,
|
|
1905
1938
|
icon,
|
|
@@ -1908,19 +1941,19 @@ function InternalLinkItem({
|
|
|
1908
1941
|
component,
|
|
1909
1942
|
...restProps
|
|
1910
1943
|
}) {
|
|
1911
|
-
return /* @__PURE__ */
|
|
1944
|
+
return /* @__PURE__ */ jsx14(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs5(
|
|
1912
1945
|
StyledListItemContainer,
|
|
1913
1946
|
{
|
|
1914
1947
|
component: component ?? "a",
|
|
1915
1948
|
href: link,
|
|
1916
1949
|
...getCleanProps(restProps),
|
|
1917
1950
|
children: [
|
|
1918
|
-
icon && /* @__PURE__ */
|
|
1951
|
+
icon && /* @__PURE__ */ jsx14(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
1919
1952
|
/* @__PURE__ */ jsxs5(StyledLabelContainer, { children: [
|
|
1920
|
-
/* @__PURE__ */
|
|
1921
|
-
caption && /* @__PURE__ */
|
|
1953
|
+
/* @__PURE__ */ jsx14(StyledLabel, { className: "itemLabel", children: label }),
|
|
1954
|
+
caption && /* @__PURE__ */ jsx14(StyledCaption, { children: caption })
|
|
1922
1955
|
] }),
|
|
1923
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx14(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx14(ChevronRightIcon, { fontSize: "small" }) })
|
|
1924
1957
|
]
|
|
1925
1958
|
}
|
|
1926
1959
|
) });
|
|
@@ -1934,8 +1967,8 @@ import SvgIcon5 from "@mui/material/SvgIcon";
|
|
|
1934
1967
|
|
|
1935
1968
|
// src/components/Link/Link.styles.tsx
|
|
1936
1969
|
import Box3 from "@mui/material/Box";
|
|
1937
|
-
import { styled as
|
|
1938
|
-
var StyledScreenReaderOnly =
|
|
1970
|
+
import { styled as styled11, alpha as alpha2 } from "@mui/material/styles";
|
|
1971
|
+
var StyledScreenReaderOnly = styled11("span")({
|
|
1939
1972
|
position: "absolute",
|
|
1940
1973
|
width: "1px",
|
|
1941
1974
|
height: "1px",
|
|
@@ -1946,7 +1979,7 @@ var StyledScreenReaderOnly = styled10("span")({
|
|
|
1946
1979
|
whiteSpace: "nowrap",
|
|
1947
1980
|
border: 0
|
|
1948
1981
|
});
|
|
1949
|
-
var StyledIconSpan =
|
|
1982
|
+
var StyledIconSpan = styled11("span", {
|
|
1950
1983
|
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
1951
1984
|
})(({ iconRight }) => ({
|
|
1952
1985
|
display: "inline-flex",
|
|
@@ -1954,7 +1987,7 @@ var StyledIconSpan = styled10("span", {
|
|
|
1954
1987
|
paddingLeft: iconRight ? "4px" : void 0,
|
|
1955
1988
|
paddingRight: iconRight ? void 0 : "4px"
|
|
1956
1989
|
}));
|
|
1957
|
-
var StyledAnchor =
|
|
1990
|
+
var StyledAnchor = styled11(Box3, {
|
|
1958
1991
|
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
1959
1992
|
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
1960
1993
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
@@ -2013,14 +2046,14 @@ var StyledAnchor = styled10(Box3, {
|
|
|
2013
2046
|
});
|
|
2014
2047
|
|
|
2015
2048
|
// src/components/Link/Link.tsx
|
|
2016
|
-
import { jsx as
|
|
2049
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2017
2050
|
var Variant = {
|
|
2018
2051
|
standard: "standard",
|
|
2019
2052
|
external: "external",
|
|
2020
2053
|
file: "file"
|
|
2021
2054
|
};
|
|
2022
2055
|
function DocumentIcon() {
|
|
2023
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx15(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx15(
|
|
2024
2057
|
"path",
|
|
2025
2058
|
{
|
|
2026
2059
|
fillRule: "evenodd",
|
|
@@ -2069,9 +2102,9 @@ var Link = React5.forwardRef(function Link2({
|
|
|
2069
2102
|
standalonelink: !!standalone,
|
|
2070
2103
|
ref,
|
|
2071
2104
|
children: [
|
|
2072
|
-
Icon && /* @__PURE__ */
|
|
2105
|
+
Icon && /* @__PURE__ */ jsx15(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx15(Icon, { fontSize: "inherit" }) }),
|
|
2073
2106
|
children,
|
|
2074
|
-
variant === Variant.external && /* @__PURE__ */
|
|
2107
|
+
variant === Variant.external && /* @__PURE__ */ jsx15(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
2075
2108
|
]
|
|
2076
2109
|
}
|
|
2077
2110
|
);
|
|
@@ -2083,8 +2116,8 @@ import React6 from "react";
|
|
|
2083
2116
|
|
|
2084
2117
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2085
2118
|
import Box4 from "@mui/material/Box";
|
|
2086
|
-
import { styled as
|
|
2087
|
-
var StyledLogoLink =
|
|
2119
|
+
import { styled as styled12 } from "@mui/material/styles";
|
|
2120
|
+
var StyledLogoLink = styled12(Box4, {
|
|
2088
2121
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2089
2122
|
})(({ theme, isSmall }) => ({
|
|
2090
2123
|
display: "inline-flex",
|
|
@@ -2101,7 +2134,7 @@ var StyledLogoLink = styled11(Box4, {
|
|
|
2101
2134
|
color: theme.tokens.colors.primaryDark
|
|
2102
2135
|
}
|
|
2103
2136
|
}));
|
|
2104
|
-
var StyledLogoSpan =
|
|
2137
|
+
var StyledLogoSpan = styled12("span")(({ theme }) => ({
|
|
2105
2138
|
padding: "0 10px 0 15px",
|
|
2106
2139
|
backgroundColor: theme.tokens.colors.primary,
|
|
2107
2140
|
height: "100%",
|
|
@@ -2119,9 +2152,9 @@ var StyledLogoSpan = styled11("span")(({ theme }) => ({
|
|
|
2119
2152
|
}));
|
|
2120
2153
|
|
|
2121
2154
|
// src/components/LogoLink/LogoLink.tsx
|
|
2122
|
-
import { jsx as
|
|
2155
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2123
2156
|
var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2124
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx16(
|
|
2125
2158
|
StyledLogoLink,
|
|
2126
2159
|
{
|
|
2127
2160
|
component: component ?? "a",
|
|
@@ -2131,7 +2164,7 @@ var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSm
|
|
|
2131
2164
|
"data-component-id": "LogoLink",
|
|
2132
2165
|
...getCleanProps(restProps),
|
|
2133
2166
|
ref,
|
|
2134
|
-
children: /* @__PURE__ */
|
|
2167
|
+
children: /* @__PURE__ */ jsx16(StyledLogoSpan, { children })
|
|
2135
2168
|
}
|
|
2136
2169
|
);
|
|
2137
2170
|
});
|
|
@@ -2269,8 +2302,8 @@ var SELECT_ALL_OPTION = {
|
|
|
2269
2302
|
};
|
|
2270
2303
|
|
|
2271
2304
|
// src/components/MultiSelect/MultiSelect.styles.tsx
|
|
2272
|
-
import { styled as
|
|
2273
|
-
var StyledMultiSelectContainer =
|
|
2305
|
+
import { styled as styled13, alpha as alpha3 } from "@mui/material/styles";
|
|
2306
|
+
var StyledMultiSelectContainer = styled13("div")(({ theme }) => ({
|
|
2274
2307
|
display: "inline-block",
|
|
2275
2308
|
position: "relative",
|
|
2276
2309
|
width: "100%",
|
|
@@ -2279,7 +2312,7 @@ var StyledMultiSelectContainer = styled12("div")(({ theme }) => ({
|
|
|
2279
2312
|
borderRadius: theme.tokens.borderRadius.md,
|
|
2280
2313
|
fontFamily: theme.tokens.typography.fontFamilyBase
|
|
2281
2314
|
}));
|
|
2282
|
-
var StyledSelectionContainerOutline =
|
|
2315
|
+
var StyledSelectionContainerOutline = styled13("div")(
|
|
2283
2316
|
({ theme, isError }) => ({
|
|
2284
2317
|
border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
|
|
2285
2318
|
borderRadius: theme.tokens.borderRadius.md,
|
|
@@ -2292,7 +2325,7 @@ var StyledSelectionContainerOutline = styled12("div")(
|
|
|
2292
2325
|
zIndex: 0
|
|
2293
2326
|
})
|
|
2294
2327
|
);
|
|
2295
|
-
var StyledSelectionContainer =
|
|
2328
|
+
var StyledSelectionContainer = styled13("button")(
|
|
2296
2329
|
({ theme, isError }) => ({
|
|
2297
2330
|
display: "inline-flex",
|
|
2298
2331
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -2329,7 +2362,7 @@ var StyledSelectionContainer = styled12("button")(
|
|
|
2329
2362
|
}
|
|
2330
2363
|
})
|
|
2331
2364
|
);
|
|
2332
|
-
var StyledSelectPlaceholder =
|
|
2365
|
+
var StyledSelectPlaceholder = styled13("span")(({ theme }) => ({
|
|
2333
2366
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2334
2367
|
display: "inline-block",
|
|
2335
2368
|
flexGrow: 1,
|
|
@@ -2337,13 +2370,13 @@ var StyledSelectPlaceholder = styled12("span")(({ theme }) => ({
|
|
|
2337
2370
|
border: "none",
|
|
2338
2371
|
outline: "none"
|
|
2339
2372
|
}));
|
|
2340
|
-
var StyledPopperInner =
|
|
2373
|
+
var StyledPopperInner = styled13("div")(({ theme }) => ({
|
|
2341
2374
|
width: "100%",
|
|
2342
2375
|
overflow: "hidden",
|
|
2343
2376
|
boxSizing: "border-box",
|
|
2344
2377
|
zIndex: theme.zIndex.tooltip
|
|
2345
2378
|
}));
|
|
2346
|
-
var StyledTransitionContainer =
|
|
2379
|
+
var StyledTransitionContainer = styled13("ul")(({ theme }) => ({
|
|
2347
2380
|
"&:focus": {
|
|
2348
2381
|
outline: "1px solid transparent"
|
|
2349
2382
|
},
|
|
@@ -2361,7 +2394,7 @@ var StyledTransitionContainer = styled12("ul")(({ theme }) => ({
|
|
|
2361
2394
|
overflowY: "auto",
|
|
2362
2395
|
backgroundColor: theme.palette.background.paper
|
|
2363
2396
|
}));
|
|
2364
|
-
var StyledDropdownArrow =
|
|
2397
|
+
var StyledDropdownArrow = styled13("div")(() => ({
|
|
2365
2398
|
height: "24px",
|
|
2366
2399
|
width: "24px",
|
|
2367
2400
|
"& > svg": {
|
|
@@ -2370,7 +2403,7 @@ var StyledDropdownArrow = styled12("div")(() => ({
|
|
|
2370
2403
|
}));
|
|
2371
2404
|
|
|
2372
2405
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
2373
|
-
import { jsx as
|
|
2406
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2374
2407
|
var MultiSelect = ({
|
|
2375
2408
|
options: initialOptions,
|
|
2376
2409
|
placeholder,
|
|
@@ -2677,8 +2710,8 @@ var MultiSelect = ({
|
|
|
2677
2710
|
"data-multi-select-trigger": true,
|
|
2678
2711
|
"aria-haspopup": "tree",
|
|
2679
2712
|
children: [
|
|
2680
|
-
/* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ jsx17(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
|
|
2714
|
+
/* @__PURE__ */ jsx17(StyledDropdownArrow, { children: /* @__PURE__ */ jsx17(
|
|
2682
2715
|
KeyboardArrowDownIcon,
|
|
2683
2716
|
{
|
|
2684
2717
|
sx: {
|
|
@@ -2687,11 +2720,11 @@ var MultiSelect = ({
|
|
|
2687
2720
|
}
|
|
2688
2721
|
}
|
|
2689
2722
|
) }),
|
|
2690
|
-
/* @__PURE__ */
|
|
2723
|
+
/* @__PURE__ */ jsx17("input", { name: inputId, type: "hidden", required, "aria-required": required })
|
|
2691
2724
|
]
|
|
2692
2725
|
}
|
|
2693
2726
|
),
|
|
2694
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ jsx17(
|
|
2695
2728
|
StyledSelectionContainerOutline,
|
|
2696
2729
|
{
|
|
2697
2730
|
"data-lose-focus": currentOptionIndex > -1,
|
|
@@ -2700,7 +2733,7 @@ var MultiSelect = ({
|
|
|
2700
2733
|
}
|
|
2701
2734
|
)
|
|
2702
2735
|
] }),
|
|
2703
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ jsx17(
|
|
2704
2737
|
Popper,
|
|
2705
2738
|
{
|
|
2706
2739
|
open,
|
|
@@ -2712,7 +2745,7 @@ var MultiSelect = ({
|
|
|
2712
2745
|
{ name: "preventOverflow", enabled: true },
|
|
2713
2746
|
{ name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
|
|
2714
2747
|
],
|
|
2715
|
-
children: /* @__PURE__ */
|
|
2748
|
+
children: /* @__PURE__ */ jsx17(StyledPopperInner, { children: /* @__PURE__ */ jsx17(Collapse, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ jsxs7(
|
|
2716
2749
|
StyledTransitionContainer,
|
|
2717
2750
|
{
|
|
2718
2751
|
role: "tree",
|
|
@@ -2743,8 +2776,70 @@ var MultiSelect = ({
|
|
|
2743
2776
|
};
|
|
2744
2777
|
MultiSelect.displayName = "ToolkitMultiSelect";
|
|
2745
2778
|
|
|
2779
|
+
// src/components/OtpInput/OtpInput.tsx
|
|
2780
|
+
import { useRef as useRef2, useCallback as useCallback4 } from "react";
|
|
2781
|
+
import Box5 from "@mui/material/Box";
|
|
2782
|
+
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
2783
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2784
|
+
var OTP_LENGTH = 6;
|
|
2785
|
+
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2786
|
+
const inputRefs = useRef2([]);
|
|
2787
|
+
const digits = Array.from({ length: OTP_LENGTH }, (_, i) => value[i] ?? "");
|
|
2788
|
+
const handleChange = useCallback4(
|
|
2789
|
+
(index, char) => {
|
|
2790
|
+
const digit = char.replace(/\D/g, "").slice(-1);
|
|
2791
|
+
const next = digits.map((d, i) => i === index ? digit : d).join("");
|
|
2792
|
+
onChange(next);
|
|
2793
|
+
if (digit && index < OTP_LENGTH - 1) inputRefs.current[index + 1]?.focus();
|
|
2794
|
+
},
|
|
2795
|
+
[digits, onChange]
|
|
2796
|
+
);
|
|
2797
|
+
const handleKeyDown = useCallback4(
|
|
2798
|
+
(index, e) => {
|
|
2799
|
+
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
2800
|
+
inputRefs.current[index - 1]?.focus();
|
|
2801
|
+
}
|
|
2802
|
+
},
|
|
2803
|
+
[digits]
|
|
2804
|
+
);
|
|
2805
|
+
const handlePaste = useCallback4(
|
|
2806
|
+
(e) => {
|
|
2807
|
+
const pasted = e.clipboardData.getData("text").replace(/\D/g, "").slice(0, OTP_LENGTH);
|
|
2808
|
+
if (pasted) {
|
|
2809
|
+
onChange(pasted.padEnd(OTP_LENGTH, "").slice(0, OTP_LENGTH));
|
|
2810
|
+
inputRefs.current[Math.min(pasted.length, OTP_LENGTH - 1)]?.focus();
|
|
2811
|
+
}
|
|
2812
|
+
e.preventDefault();
|
|
2813
|
+
},
|
|
2814
|
+
[onChange]
|
|
2815
|
+
);
|
|
2816
|
+
return /* @__PURE__ */ jsx18(Box5, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ jsx18(
|
|
2817
|
+
OutlinedInput,
|
|
2818
|
+
{
|
|
2819
|
+
inputRef: (el) => {
|
|
2820
|
+
inputRefs.current[i] = el;
|
|
2821
|
+
},
|
|
2822
|
+
value: digit,
|
|
2823
|
+
onChange: (e) => handleChange(i, e.target.value),
|
|
2824
|
+
onKeyDown: (e) => handleKeyDown(i, e),
|
|
2825
|
+
onPaste: handlePaste,
|
|
2826
|
+
placeholder: "-",
|
|
2827
|
+
disabled,
|
|
2828
|
+
inputProps: {
|
|
2829
|
+
maxLength: 1,
|
|
2830
|
+
autoComplete: "one-time-code",
|
|
2831
|
+
style: { textAlign: "center", fontSize: "1.25rem", padding: "12px 0" }
|
|
2832
|
+
},
|
|
2833
|
+
error,
|
|
2834
|
+
sx: { width: 48, "& .MuiOutlinedInput-notchedOutline": { borderRadius: 1.5 } }
|
|
2835
|
+
},
|
|
2836
|
+
i
|
|
2837
|
+
)) });
|
|
2838
|
+
};
|
|
2839
|
+
OtpInput.displayName = "ToolkitOtpInput";
|
|
2840
|
+
|
|
2746
2841
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
2747
|
-
import React8, { useEffect as useEffect3, useRef as
|
|
2842
|
+
import React8, { useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
2748
2843
|
import Portal from "@mui/material/Portal";
|
|
2749
2844
|
import CircularProgress3 from "@mui/material/CircularProgress";
|
|
2750
2845
|
import { useForkRef } from "@mui/material/utils";
|
|
@@ -2905,13 +3000,13 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
2905
3000
|
}
|
|
2906
3001
|
|
|
2907
3002
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
2908
|
-
import { styled as
|
|
3003
|
+
import { styled as styled14 } from "@mui/material/styles";
|
|
2909
3004
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
2910
3005
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
2911
|
-
var StyledPageSpinnerRoot =
|
|
3006
|
+
var StyledPageSpinnerRoot = styled14("div")(() => ({
|
|
2912
3007
|
position: "relative"
|
|
2913
3008
|
}));
|
|
2914
|
-
var StyledOverlay =
|
|
3009
|
+
var StyledOverlay = styled14("div", {
|
|
2915
3010
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2916
3011
|
})(({ theme, $darkBg = false }) => ({
|
|
2917
3012
|
position: "fixed",
|
|
@@ -2919,7 +3014,7 @@ var StyledOverlay = styled13("div", {
|
|
|
2919
3014
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
2920
3015
|
backgroundColor: $darkBg ? alpha4(theme.tokens.colors.textPrimary, 0.9) : alpha4(theme.palette.common.white, 0.9)
|
|
2921
3016
|
}));
|
|
2922
|
-
var StyledSpinnerCentre =
|
|
3017
|
+
var StyledSpinnerCentre = styled14("div")(() => ({
|
|
2923
3018
|
position: "fixed",
|
|
2924
3019
|
top: "50%",
|
|
2925
3020
|
left: "50%",
|
|
@@ -2930,7 +3025,7 @@ var StyledSpinnerCentre = styled13("div")(() => ({
|
|
|
2930
3025
|
alignItems: "center",
|
|
2931
3026
|
gap: "16px"
|
|
2932
3027
|
}));
|
|
2933
|
-
var StyledSpinnerMessage =
|
|
3028
|
+
var StyledSpinnerMessage = styled14("p", {
|
|
2934
3029
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
2935
3030
|
})(({ theme, $darkBg = false }) => ({
|
|
2936
3031
|
margin: 0,
|
|
@@ -2941,7 +3036,7 @@ var StyledSpinnerMessage = styled13("p", {
|
|
|
2941
3036
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
2942
3037
|
textAlign: "center"
|
|
2943
3038
|
}));
|
|
2944
|
-
var StyledScreenReaderOnly2 =
|
|
3039
|
+
var StyledScreenReaderOnly2 = styled14("span")(() => ({
|
|
2945
3040
|
position: "absolute",
|
|
2946
3041
|
width: "1px",
|
|
2947
3042
|
height: "1px",
|
|
@@ -2966,7 +3061,7 @@ var PageSpinner = React8.forwardRef(
|
|
|
2966
3061
|
messageTone = "assertive",
|
|
2967
3062
|
...restProps
|
|
2968
3063
|
}, ref) {
|
|
2969
|
-
const internalRef =
|
|
3064
|
+
const internalRef = useRef3(null);
|
|
2970
3065
|
const mergedRef = useForkRef(ref, internalRef);
|
|
2971
3066
|
useEffect3(() => {
|
|
2972
3067
|
const blockKeyDown = (e) => e.preventDefault();
|
|
@@ -3021,7 +3116,7 @@ import React9 from "react";
|
|
|
3021
3116
|
import MuiPagination from "@mui/material/Pagination";
|
|
3022
3117
|
|
|
3023
3118
|
// src/components/Pagination/Pagination.styles.tsx
|
|
3024
|
-
import { styled as
|
|
3119
|
+
import { styled as styled15, alpha as alpha5 } from "@mui/material/styles";
|
|
3025
3120
|
import MuiPaginationItem from "@mui/material/PaginationItem";
|
|
3026
3121
|
function getColorValue(theme, color) {
|
|
3027
3122
|
switch (color) {
|
|
@@ -3041,7 +3136,7 @@ function getColorValue(theme, color) {
|
|
|
3041
3136
|
return theme.tokens.colors.textPrimary;
|
|
3042
3137
|
}
|
|
3043
3138
|
}
|
|
3044
|
-
var StyledPaginationItem =
|
|
3139
|
+
var StyledPaginationItem = styled15(MuiPaginationItem, {
|
|
3045
3140
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
3046
3141
|
})(({ theme, $variant, $color }) => {
|
|
3047
3142
|
const colorValue = getColorValue(theme, $color);
|
|
@@ -3112,8 +3207,8 @@ Pagination.displayName = "ToolkitPagination";
|
|
|
3112
3207
|
import React10 from "react";
|
|
3113
3208
|
|
|
3114
3209
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
3115
|
-
import { styled as
|
|
3116
|
-
var StyledParagraph =
|
|
3210
|
+
import { styled as styled16 } from "@mui/material/styles";
|
|
3211
|
+
var StyledParagraph = styled16("p", {
|
|
3117
3212
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
3118
3213
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
3119
3214
|
margin: 0,
|
|
@@ -3172,8 +3267,8 @@ import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
|
|
3172
3267
|
import CancelIcon from "@mui/icons-material/Cancel";
|
|
3173
3268
|
|
|
3174
3269
|
// src/components/Password/PasswordRule.styles.tsx
|
|
3175
|
-
import { styled as
|
|
3176
|
-
var StyledPasswordRule =
|
|
3270
|
+
import { styled as styled17 } from "@mui/material/styles";
|
|
3271
|
+
var StyledPasswordRule = styled17("div")(({ theme }) => ({
|
|
3177
3272
|
display: "flex",
|
|
3178
3273
|
alignItems: "center",
|
|
3179
3274
|
gap: theme.tokens.spacing.xs,
|
|
@@ -3185,15 +3280,15 @@ var StyledPasswordRule = styled16("div")(({ theme }) => ({
|
|
|
3185
3280
|
color: theme.tokens.colors.error
|
|
3186
3281
|
}
|
|
3187
3282
|
}));
|
|
3188
|
-
var StyledPasswordRuleIcon =
|
|
3283
|
+
var StyledPasswordRuleIcon = styled17("span")({
|
|
3189
3284
|
display: "inline-flex",
|
|
3190
3285
|
alignItems: "center",
|
|
3191
3286
|
flexShrink: 0
|
|
3192
3287
|
});
|
|
3193
|
-
var StyledPasswordRuleText =
|
|
3288
|
+
var StyledPasswordRuleText = styled17("span")(({ theme }) => ({
|
|
3194
3289
|
fontSize: theme.tokens.typography.fontSizeSm
|
|
3195
3290
|
}));
|
|
3196
|
-
var StyledScreenReaderOnly3 =
|
|
3291
|
+
var StyledScreenReaderOnly3 = styled17("span")({
|
|
3197
3292
|
position: "absolute",
|
|
3198
3293
|
width: 1,
|
|
3199
3294
|
height: 1,
|
|
@@ -3222,8 +3317,8 @@ var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs9(
|
|
|
3222
3317
|
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
3223
3318
|
|
|
3224
3319
|
// src/components/Password/PasswordCriteria.styles.tsx
|
|
3225
|
-
import { styled as
|
|
3226
|
-
var StyledPasswordCriteriaContainer =
|
|
3320
|
+
import { styled as styled18 } from "@mui/material/styles";
|
|
3321
|
+
var StyledPasswordCriteriaContainer = styled18("div")(
|
|
3227
3322
|
({ theme, $show }) => ({
|
|
3228
3323
|
display: $show ? "block" : "none",
|
|
3229
3324
|
position: "absolute",
|
|
@@ -3234,7 +3329,7 @@ var StyledPasswordCriteriaContainer = styled17("div")(
|
|
|
3234
3329
|
marginTop: theme.tokens.spacing.xs
|
|
3235
3330
|
})
|
|
3236
3331
|
);
|
|
3237
|
-
var StyledPasswordRuleTitle =
|
|
3332
|
+
var StyledPasswordRuleTitle = styled18("div")(({ theme }) => ({
|
|
3238
3333
|
color: theme.tokens.colors.textPrimary,
|
|
3239
3334
|
fontSize: theme.tokens.typography.fontSizeSm,
|
|
3240
3335
|
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
@@ -3280,11 +3375,11 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3280
3375
|
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
3281
3376
|
|
|
3282
3377
|
// src/components/Password/Password.styles.tsx
|
|
3283
|
-
import { styled as
|
|
3284
|
-
var StyledPasswordRoot =
|
|
3378
|
+
import { styled as styled19 } from "@mui/material/styles";
|
|
3379
|
+
var StyledPasswordRoot = styled19("div")({
|
|
3285
3380
|
position: "relative"
|
|
3286
3381
|
});
|
|
3287
|
-
var StyledPasswordInputWrapper =
|
|
3382
|
+
var StyledPasswordInputWrapper = styled19("div")({
|
|
3288
3383
|
display: "flex",
|
|
3289
3384
|
position: "relative"
|
|
3290
3385
|
});
|
|
@@ -3352,7 +3447,7 @@ Password.displayName = "ToolkitPassword";
|
|
|
3352
3447
|
import React12 from "react";
|
|
3353
3448
|
|
|
3354
3449
|
// src/components/Spinner/Spinner.styles.tsx
|
|
3355
|
-
import { styled as
|
|
3450
|
+
import { styled as styled20, alpha as alpha6 } from "@mui/material/styles";
|
|
3356
3451
|
var spinnerSizing = {
|
|
3357
3452
|
xs: 20,
|
|
3358
3453
|
sm: 24,
|
|
@@ -3360,7 +3455,7 @@ var spinnerSizing = {
|
|
|
3360
3455
|
lg: 56,
|
|
3361
3456
|
xl: 72
|
|
3362
3457
|
};
|
|
3363
|
-
var StyledSpinnerContainer =
|
|
3458
|
+
var StyledSpinnerContainer = styled20("div", {
|
|
3364
3459
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
3365
3460
|
})({}, ({ $inline }) => ({
|
|
3366
3461
|
flex: "0 1 100%",
|
|
@@ -3368,7 +3463,7 @@ var StyledSpinnerContainer = styled19("div", {
|
|
|
3368
3463
|
flexDirection: $inline ? "row" : "column",
|
|
3369
3464
|
alignItems: "center"
|
|
3370
3465
|
}));
|
|
3371
|
-
var StyledSpinnerIconContainer =
|
|
3466
|
+
var StyledSpinnerIconContainer = styled20("div", {
|
|
3372
3467
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3373
3468
|
})(({ $size }) => {
|
|
3374
3469
|
const size = spinnerSizing[$size];
|
|
@@ -3378,7 +3473,7 @@ var StyledSpinnerIconContainer = styled19("div", {
|
|
|
3378
3473
|
height: size
|
|
3379
3474
|
};
|
|
3380
3475
|
});
|
|
3381
|
-
var StyledSpinnerBackground =
|
|
3476
|
+
var StyledSpinnerBackground = styled20("div", {
|
|
3382
3477
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3383
3478
|
})(({ theme, $size, $darkBg }) => {
|
|
3384
3479
|
const size = spinnerSizing[$size];
|
|
@@ -3392,7 +3487,7 @@ var StyledSpinnerBackground = styled19("div", {
|
|
|
3392
3487
|
border: `${lineWidth}px solid ${borderColor}`
|
|
3393
3488
|
};
|
|
3394
3489
|
});
|
|
3395
|
-
var StyledSpinner =
|
|
3490
|
+
var StyledSpinner = styled20("div", {
|
|
3396
3491
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3397
3492
|
})(({ theme, $size, $darkBg }) => {
|
|
3398
3493
|
const size = spinnerSizing[$size];
|
|
@@ -3415,7 +3510,7 @@ var StyledSpinner = styled19("div", {
|
|
|
3415
3510
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
3416
3511
|
};
|
|
3417
3512
|
});
|
|
3418
|
-
var StyledSpinnerMessage2 =
|
|
3513
|
+
var StyledSpinnerMessage2 = styled20("span", {
|
|
3419
3514
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
3420
3515
|
})(({ theme, $darkBg, $inline }) => ({
|
|
3421
3516
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -3424,7 +3519,7 @@ var StyledSpinnerMessage2 = styled19("span", {
|
|
|
3424
3519
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
3425
3520
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
3426
3521
|
}));
|
|
3427
|
-
var StyledScreenReaderOnly4 =
|
|
3522
|
+
var StyledScreenReaderOnly4 = styled20("span")({
|
|
3428
3523
|
position: "absolute",
|
|
3429
3524
|
width: 1,
|
|
3430
3525
|
height: 1,
|
|
@@ -3465,14 +3560,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
3465
3560
|
import FormHelperText from "@mui/material/FormHelperText";
|
|
3466
3561
|
|
|
3467
3562
|
// src/components/Toggle/Toggle.styles.tsx
|
|
3468
|
-
import { styled as
|
|
3469
|
-
var StyledFieldset =
|
|
3563
|
+
import { styled as styled21 } from "@mui/material/styles";
|
|
3564
|
+
var StyledFieldset = styled21("fieldset")(({ theme }) => ({
|
|
3470
3565
|
border: "none",
|
|
3471
3566
|
margin: 0,
|
|
3472
3567
|
padding: 0,
|
|
3473
3568
|
minWidth: 0
|
|
3474
3569
|
}));
|
|
3475
|
-
var StyledLegend =
|
|
3570
|
+
var StyledLegend = styled21("legend")(({ theme }) => ({
|
|
3476
3571
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
3477
3572
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
3478
3573
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -3480,7 +3575,7 @@ var StyledLegend = styled20("legend")(({ theme }) => ({
|
|
|
3480
3575
|
marginBottom: theme.spacing(1),
|
|
3481
3576
|
padding: 0
|
|
3482
3577
|
}));
|
|
3483
|
-
var StyledToggleWrapper =
|
|
3578
|
+
var StyledToggleWrapper = styled21("div")(({ theme }) => ({
|
|
3484
3579
|
display: "flex",
|
|
3485
3580
|
flexDirection: "row",
|
|
3486
3581
|
width: theme.spacing(15),
|
|
@@ -3489,7 +3584,7 @@ var StyledToggleWrapper = styled20("div")(({ theme }) => ({
|
|
|
3489
3584
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
3490
3585
|
borderRadius: theme.tokens.borderRadius.md
|
|
3491
3586
|
}));
|
|
3492
|
-
var StyledSwitch =
|
|
3587
|
+
var StyledSwitch = styled21("label", {
|
|
3493
3588
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
3494
3589
|
})(({ theme, selected, controlType }) => ({
|
|
3495
3590
|
position: "relative",
|
|
@@ -3660,12 +3755,12 @@ import {
|
|
|
3660
3755
|
TablePagination as MuiTablePagination,
|
|
3661
3756
|
TableSortLabel as MuiTableSortLabel
|
|
3662
3757
|
} from "@mui/material";
|
|
3663
|
-
import { styled as
|
|
3758
|
+
import { styled as styled22 } from "@mui/material/styles";
|
|
3664
3759
|
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3665
|
-
var StyledTableContainer =
|
|
3760
|
+
var StyledTableContainer = styled22(MuiTableContainer)(() => ({
|
|
3666
3761
|
overflowX: "auto"
|
|
3667
3762
|
}));
|
|
3668
|
-
var StyledHeadCell =
|
|
3763
|
+
var StyledHeadCell = styled22(MuiTableCell)(({ theme }) => ({
|
|
3669
3764
|
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
3670
3765
|
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
3671
3766
|
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
@@ -3889,6 +3984,7 @@ export {
|
|
|
3889
3984
|
MobileDateTimePicker,
|
|
3890
3985
|
MobileTimePicker,
|
|
3891
3986
|
MultiSelect,
|
|
3987
|
+
OtpInput,
|
|
3892
3988
|
Overline,
|
|
3893
3989
|
PageSpinner,
|
|
3894
3990
|
Pagination,
|