@octoguide/mui-ui-toolkit 0.8.0 → 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 +83 -76
- package/dist/index.d.ts +83 -76
- package/dist/index.js +266 -233
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +228 -195
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1572,16 +1572,49 @@ function Avatar({ size = "md", ...props }) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
|
|
1574
1574
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
1575
|
+
var import_styles8 = require("@mui/material/styles");
|
|
1575
1576
|
var import_material8 = require("@mui/material");
|
|
1576
|
-
var
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
}
|
|
1577
|
+
var ToggleButtonGroup = (0, import_styles8.styled)(import_material8.ToggleButtonGroup)(({ theme }) => ({
|
|
1578
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
1579
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1580
|
+
backgroundColor: theme.palette.background.paper,
|
|
1581
|
+
padding: theme.spacing(0.5),
|
|
1582
|
+
"& .MuiToggleButtonGroup-grouped": {
|
|
1583
|
+
border: "none",
|
|
1584
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`,
|
|
1585
|
+
"&:not(:first-of-type)": {
|
|
1586
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`,
|
|
1587
|
+
marginLeft: 0
|
|
1588
|
+
},
|
|
1589
|
+
"&:first-of-type": {
|
|
1590
|
+
borderRadius: `calc(${theme.tokens.borderRadius.md} - 2px)`
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
}));
|
|
1584
1594
|
ToggleButtonGroup.displayName = "ToolkitToggleButtonGroup";
|
|
1595
|
+
var ToggleButton = (0, import_styles8.styled)(import_material8.ToggleButton)(({ theme }) => ({
|
|
1596
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1597
|
+
fontSize: theme.tokens.typography.fontSizeMd,
|
|
1598
|
+
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
1599
|
+
textTransform: "none",
|
|
1600
|
+
color: theme.palette.text.primary,
|
|
1601
|
+
lineHeight: 1.25,
|
|
1602
|
+
transition: `background-color ${theme.tokens.transitions.durationBase} ease`,
|
|
1603
|
+
"&:hover": {
|
|
1604
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle
|
|
1605
|
+
},
|
|
1606
|
+
"&.Mui-selected": {
|
|
1607
|
+
backgroundColor: theme.tokens.colors.primary,
|
|
1608
|
+
color: theme.tokens.colors.primaryContrast,
|
|
1609
|
+
"&:hover": {
|
|
1610
|
+
backgroundColor: theme.tokens.colors.primaryDark
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
"&.Mui-disabled": {
|
|
1614
|
+
opacity: 0.4
|
|
1615
|
+
}
|
|
1616
|
+
}));
|
|
1617
|
+
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1585
1618
|
|
|
1586
1619
|
// src/components/DatePicker/DatePicker.tsx
|
|
1587
1620
|
var import_react3 = require("react");
|
|
@@ -1609,77 +1642,77 @@ var import_DialogActions2 = __toESM(require("@mui/material/DialogActions"));
|
|
|
1609
1642
|
var import_Button4 = __toESM(require("@mui/material/Button"));
|
|
1610
1643
|
var import_Box = __toESM(require("@mui/material/Box"));
|
|
1611
1644
|
var import_TextField3 = __toESM(require("@mui/material/TextField"));
|
|
1612
|
-
var
|
|
1613
|
-
var
|
|
1645
|
+
var import_styles9 = require("@mui/material/styles");
|
|
1646
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1614
1647
|
function DateLocalizationProvider({ children }) {
|
|
1615
|
-
return /* @__PURE__ */ (0,
|
|
1648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDayjs.AdapterDayjs, children });
|
|
1616
1649
|
}
|
|
1617
1650
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1618
1651
|
function DatePicker(props) {
|
|
1619
|
-
return /* @__PURE__ */ (0,
|
|
1652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DatePicker.DatePicker, { ...props });
|
|
1620
1653
|
}
|
|
1621
1654
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1622
1655
|
function DesktopDatePicker(props) {
|
|
1623
|
-
return /* @__PURE__ */ (0,
|
|
1656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DesktopDatePicker.DesktopDatePicker, { ...props });
|
|
1624
1657
|
}
|
|
1625
1658
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1626
1659
|
function MobileDatePicker(props) {
|
|
1627
|
-
return /* @__PURE__ */ (0,
|
|
1660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_MobileDatePicker.MobileDatePicker, { ...props });
|
|
1628
1661
|
}
|
|
1629
1662
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1630
1663
|
function DateField(props) {
|
|
1631
|
-
return /* @__PURE__ */ (0,
|
|
1664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DateField.DateField, { ...props });
|
|
1632
1665
|
}
|
|
1633
1666
|
DateField.displayName = "ToolkitDateField";
|
|
1634
1667
|
function StaticDatePicker(props) {
|
|
1635
|
-
return /* @__PURE__ */ (0,
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_StaticDatePicker.StaticDatePicker, { ...props });
|
|
1636
1669
|
}
|
|
1637
1670
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1638
1671
|
function TimePicker(props) {
|
|
1639
|
-
return /* @__PURE__ */ (0,
|
|
1672
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_TimePicker.TimePicker, { ...props });
|
|
1640
1673
|
}
|
|
1641
1674
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1642
1675
|
function DesktopTimePicker(props) {
|
|
1643
|
-
return /* @__PURE__ */ (0,
|
|
1676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DesktopTimePicker.DesktopTimePicker, { ...props });
|
|
1644
1677
|
}
|
|
1645
1678
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1646
1679
|
function MobileTimePicker(props) {
|
|
1647
|
-
return /* @__PURE__ */ (0,
|
|
1680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_MobileTimePicker.MobileTimePicker, { ...props });
|
|
1648
1681
|
}
|
|
1649
1682
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1650
1683
|
function TimeField(props) {
|
|
1651
|
-
return /* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_TimeField.TimeField, { ...props });
|
|
1652
1685
|
}
|
|
1653
1686
|
TimeField.displayName = "ToolkitTimeField";
|
|
1654
1687
|
function StaticTimePicker(props) {
|
|
1655
|
-
return /* @__PURE__ */ (0,
|
|
1688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_StaticTimePicker.StaticTimePicker, { ...props });
|
|
1656
1689
|
}
|
|
1657
1690
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1658
1691
|
function DateTimePicker(props) {
|
|
1659
|
-
return /* @__PURE__ */ (0,
|
|
1692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DateTimePicker.DateTimePicker, { ...props });
|
|
1660
1693
|
}
|
|
1661
1694
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1662
1695
|
function DesktopDateTimePicker(props) {
|
|
1663
|
-
return /* @__PURE__ */ (0,
|
|
1696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DesktopDateTimePicker.DesktopDateTimePicker, { ...props });
|
|
1664
1697
|
}
|
|
1665
1698
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1666
1699
|
function MobileDateTimePicker(props) {
|
|
1667
|
-
return /* @__PURE__ */ (0,
|
|
1700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_MobileDateTimePicker.MobileDateTimePicker, { ...props });
|
|
1668
1701
|
}
|
|
1669
1702
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1670
1703
|
function DateTimeField(props) {
|
|
1671
|
-
return /* @__PURE__ */ (0,
|
|
1704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DateTimeField.DateTimeField, { ...props });
|
|
1672
1705
|
}
|
|
1673
1706
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1674
1707
|
function StaticDateTimePicker(props) {
|
|
1675
|
-
return /* @__PURE__ */ (0,
|
|
1708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_StaticDateTimePicker.StaticDateTimePicker, { ...props });
|
|
1676
1709
|
}
|
|
1677
1710
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1678
1711
|
function DateCalendar(props) {
|
|
1679
|
-
return /* @__PURE__ */ (0,
|
|
1712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DateCalendar.DateCalendar, { ...props });
|
|
1680
1713
|
}
|
|
1681
1714
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1682
|
-
var RangeRow = (0,
|
|
1715
|
+
var RangeRow = (0, import_styles9.styled)(import_Box.default)(({ theme }) => ({
|
|
1683
1716
|
display: "flex",
|
|
1684
1717
|
gap: theme.spacing(2),
|
|
1685
1718
|
alignItems: "center"
|
|
@@ -1702,11 +1735,11 @@ function DateRangePickerInput({
|
|
|
1702
1735
|
onChange(draft);
|
|
1703
1736
|
setOpen(false);
|
|
1704
1737
|
};
|
|
1705
|
-
return /* @__PURE__ */ (0,
|
|
1706
|
-
/* @__PURE__ */ (0,
|
|
1707
|
-
/* @__PURE__ */ (0,
|
|
1708
|
-
/* @__PURE__ */ (0,
|
|
1709
|
-
/* @__PURE__ */ (0,
|
|
1738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
1739
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1740
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_Dialog2.default, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1741
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DialogContent2.default, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(RangeRow, { children: [
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1710
1743
|
import_DatePicker.DatePicker,
|
|
1711
1744
|
{
|
|
1712
1745
|
label: startLabel,
|
|
@@ -1715,7 +1748,7 @@ function DateRangePickerInput({
|
|
|
1715
1748
|
slotProps: { textField: { fullWidth: true } }
|
|
1716
1749
|
}
|
|
1717
1750
|
),
|
|
1718
|
-
/* @__PURE__ */ (0,
|
|
1751
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1719
1752
|
import_DatePicker.DatePicker,
|
|
1720
1753
|
{
|
|
1721
1754
|
label: endLabel,
|
|
@@ -1725,9 +1758,9 @@ function DateRangePickerInput({
|
|
|
1725
1758
|
}
|
|
1726
1759
|
)
|
|
1727
1760
|
] }) }),
|
|
1728
|
-
/* @__PURE__ */ (0,
|
|
1729
|
-
/* @__PURE__ */ (0,
|
|
1730
|
-
/* @__PURE__ */ (0,
|
|
1761
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_DialogActions2.default, { children: [
|
|
1762
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1763
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1731
1764
|
] })
|
|
1732
1765
|
] })
|
|
1733
1766
|
] });
|
|
@@ -1759,11 +1792,11 @@ function DateRangePickerCalendar({
|
|
|
1759
1792
|
setDraft((prev) => ({ ...prev, end: date }));
|
|
1760
1793
|
}
|
|
1761
1794
|
};
|
|
1762
|
-
return /* @__PURE__ */ (0,
|
|
1763
|
-
/* @__PURE__ */ (0,
|
|
1764
|
-
/* @__PURE__ */ (0,
|
|
1765
|
-
/* @__PURE__ */ (0,
|
|
1766
|
-
/* @__PURE__ */ (0,
|
|
1795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
1796
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1797
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_Dialog2.default, { open, onClose: handleCancel, children: [
|
|
1798
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_DialogContent2.default, { sx: { p: 1 }, children: [
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Box.default, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1767
1800
|
import_TextField3.default,
|
|
1768
1801
|
{
|
|
1769
1802
|
size: "small",
|
|
@@ -1773,7 +1806,7 @@ function DateRangePickerCalendar({
|
|
|
1773
1806
|
fullWidth: true
|
|
1774
1807
|
}
|
|
1775
1808
|
) }),
|
|
1776
|
-
/* @__PURE__ */ (0,
|
|
1809
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1777
1810
|
import_DateCalendar.DateCalendar,
|
|
1778
1811
|
{
|
|
1779
1812
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1781,9 +1814,9 @@ function DateRangePickerCalendar({
|
|
|
1781
1814
|
}
|
|
1782
1815
|
)
|
|
1783
1816
|
] }),
|
|
1784
|
-
/* @__PURE__ */ (0,
|
|
1785
|
-
/* @__PURE__ */ (0,
|
|
1786
|
-
/* @__PURE__ */ (0,
|
|
1817
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_DialogActions2.default, { children: [
|
|
1818
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1819
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Button4.default, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1787
1820
|
] })
|
|
1788
1821
|
] })
|
|
1789
1822
|
] });
|
|
@@ -1792,9 +1825,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1792
1825
|
|
|
1793
1826
|
// src/foundation/Grid/Grid.tsx
|
|
1794
1827
|
var import_material9 = require("@mui/material");
|
|
1795
|
-
var
|
|
1828
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1796
1829
|
function Grid({ container, spacing, ...props }) {
|
|
1797
|
-
return /* @__PURE__ */ (0,
|
|
1830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1798
1831
|
import_material9.Grid2,
|
|
1799
1832
|
{
|
|
1800
1833
|
container,
|
|
@@ -1809,9 +1842,9 @@ Grid.displayName = "ToolkitGrid";
|
|
|
1809
1842
|
var import_react4 = __toESM(require("react"));
|
|
1810
1843
|
|
|
1811
1844
|
// src/components/IconText/IconText.styles.tsx
|
|
1812
|
-
var
|
|
1845
|
+
var import_styles10 = require("@mui/material/styles");
|
|
1813
1846
|
var import_material10 = require("@mui/material");
|
|
1814
|
-
var StyledIconTextRoot = (0,
|
|
1847
|
+
var StyledIconTextRoot = (0, import_styles10.styled)("div")(
|
|
1815
1848
|
({ $inheritFontFamily }) => ({
|
|
1816
1849
|
display: "flex",
|
|
1817
1850
|
alignItems: "center",
|
|
@@ -1827,7 +1860,7 @@ var StyledIconTextRoot = (0, import_styles9.styled)("div")(
|
|
|
1827
1860
|
}
|
|
1828
1861
|
})
|
|
1829
1862
|
);
|
|
1830
|
-
var StyledIconTextSymbol = (0,
|
|
1863
|
+
var StyledIconTextSymbol = (0, import_styles10.styled)(import_material10.SvgIcon, {
|
|
1831
1864
|
shouldForwardProp: (prop) => prop !== "$position"
|
|
1832
1865
|
})(({ theme, $position }) => ({
|
|
1833
1866
|
flexShrink: 0,
|
|
@@ -1836,7 +1869,7 @@ var StyledIconTextSymbol = (0, import_styles9.styled)(import_material10.SvgIcon,
|
|
|
1836
1869
|
}));
|
|
1837
1870
|
|
|
1838
1871
|
// src/components/IconText/IconText.tsx
|
|
1839
|
-
var
|
|
1872
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1840
1873
|
var IconText = import_react4.default.forwardRef(
|
|
1841
1874
|
function IconText2({
|
|
1842
1875
|
symbol,
|
|
@@ -1846,17 +1879,17 @@ var IconText = import_react4.default.forwardRef(
|
|
|
1846
1879
|
children,
|
|
1847
1880
|
...rest
|
|
1848
1881
|
}, ref) {
|
|
1849
|
-
const icon = /* @__PURE__ */ (0,
|
|
1882
|
+
const icon = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1850
1883
|
StyledIconTextSymbol,
|
|
1851
1884
|
{
|
|
1852
1885
|
$position: symbolPosition,
|
|
1853
1886
|
viewBox: symbol.viewBox ?? "0 0 24 24",
|
|
1854
1887
|
"aria-hidden": "true",
|
|
1855
1888
|
...symbolProps,
|
|
1856
|
-
children: symbol.content && /* @__PURE__ */ (0,
|
|
1889
|
+
children: symbol.content && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
|
|
1857
1890
|
}
|
|
1858
1891
|
);
|
|
1859
|
-
return /* @__PURE__ */ (0,
|
|
1892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1860
1893
|
StyledIconTextRoot,
|
|
1861
1894
|
{
|
|
1862
1895
|
ref,
|
|
@@ -1878,8 +1911,8 @@ var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"));
|
|
|
1878
1911
|
|
|
1879
1912
|
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1880
1913
|
var import_Box2 = __toESM(require("@mui/material/Box"));
|
|
1881
|
-
var
|
|
1882
|
-
var StyledWrapper = (0,
|
|
1914
|
+
var import_styles11 = require("@mui/material/styles");
|
|
1915
|
+
var StyledWrapper = (0, import_styles11.styled)("div")(({ theme }) => ({
|
|
1883
1916
|
"& > a, & > div": {
|
|
1884
1917
|
textDecoration: "none",
|
|
1885
1918
|
color: theme.tokens.colors.textPrimary,
|
|
@@ -1888,7 +1921,7 @@ var StyledWrapper = (0, import_styles10.styled)("div")(({ theme }) => ({
|
|
|
1888
1921
|
}
|
|
1889
1922
|
}
|
|
1890
1923
|
}));
|
|
1891
|
-
var StyledListItemContainer = (0,
|
|
1924
|
+
var StyledListItemContainer = (0, import_styles11.styled)(import_Box2.default)(({ theme }) => ({
|
|
1892
1925
|
width: "100%",
|
|
1893
1926
|
minHeight: "66px",
|
|
1894
1927
|
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
@@ -1931,19 +1964,19 @@ var StyledListItemContainer = (0, import_styles10.styled)(import_Box2.default)((
|
|
|
1931
1964
|
outlineStyle: "solid"
|
|
1932
1965
|
}
|
|
1933
1966
|
}));
|
|
1934
|
-
var StyledLeftIconWrapper = (0,
|
|
1967
|
+
var StyledLeftIconWrapper = (0, import_styles11.styled)("span")({
|
|
1935
1968
|
display: "flex",
|
|
1936
1969
|
paddingLeft: "4px"
|
|
1937
1970
|
});
|
|
1938
|
-
var StyledRightIconWrapper = (0,
|
|
1971
|
+
var StyledRightIconWrapper = (0, import_styles11.styled)("span")({
|
|
1939
1972
|
display: "flex",
|
|
1940
1973
|
paddingRight: "4px"
|
|
1941
1974
|
});
|
|
1942
|
-
var StyledLabelContainer = (0,
|
|
1975
|
+
var StyledLabelContainer = (0, import_styles11.styled)("div")({
|
|
1943
1976
|
flex: 1,
|
|
1944
1977
|
padding: "12px 8px"
|
|
1945
1978
|
});
|
|
1946
|
-
var StyledLabel = (0,
|
|
1979
|
+
var StyledLabel = (0, import_styles11.styled)("p")(({ theme }) => ({
|
|
1947
1980
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1948
1981
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1949
1982
|
lineHeight: "20px",
|
|
@@ -1951,7 +1984,7 @@ var StyledLabel = (0, import_styles10.styled)("p")(({ theme }) => ({
|
|
|
1951
1984
|
margin: 0,
|
|
1952
1985
|
textDecoration: "none"
|
|
1953
1986
|
}));
|
|
1954
|
-
var StyledCaption = (0,
|
|
1987
|
+
var StyledCaption = (0, import_styles11.styled)("p")(({ theme }) => ({
|
|
1955
1988
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1956
1989
|
color: theme.tokens.colors.textSecondary,
|
|
1957
1990
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
@@ -1962,7 +1995,7 @@ var StyledCaption = (0, import_styles10.styled)("p")(({ theme }) => ({
|
|
|
1962
1995
|
}));
|
|
1963
1996
|
|
|
1964
1997
|
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1965
|
-
var
|
|
1998
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1966
1999
|
function InternalLinkItem({
|
|
1967
2000
|
link,
|
|
1968
2001
|
icon,
|
|
@@ -1971,19 +2004,19 @@ function InternalLinkItem({
|
|
|
1971
2004
|
component,
|
|
1972
2005
|
...restProps
|
|
1973
2006
|
}) {
|
|
1974
|
-
return /* @__PURE__ */ (0,
|
|
2007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1975
2008
|
StyledListItemContainer,
|
|
1976
2009
|
{
|
|
1977
2010
|
component: component ?? "a",
|
|
1978
2011
|
href: link,
|
|
1979
2012
|
...getCleanProps(restProps),
|
|
1980
2013
|
children: [
|
|
1981
|
-
icon && /* @__PURE__ */ (0,
|
|
1982
|
-
/* @__PURE__ */ (0,
|
|
1983
|
-
/* @__PURE__ */ (0,
|
|
1984
|
-
caption && /* @__PURE__ */ (0,
|
|
2014
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(StyledLabelContainer, { children: [
|
|
2016
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledLabel, { className: "itemLabel", children: label }),
|
|
2017
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledCaption, { children: caption })
|
|
1985
2018
|
] }),
|
|
1986
|
-
/* @__PURE__ */ (0,
|
|
2019
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_ChevronRight.default, { fontSize: "small" }) })
|
|
1987
2020
|
]
|
|
1988
2021
|
}
|
|
1989
2022
|
) });
|
|
@@ -1997,8 +2030,8 @@ var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"));
|
|
|
1997
2030
|
|
|
1998
2031
|
// src/components/Link/Link.styles.tsx
|
|
1999
2032
|
var import_Box3 = __toESM(require("@mui/material/Box"));
|
|
2000
|
-
var
|
|
2001
|
-
var StyledScreenReaderOnly = (0,
|
|
2033
|
+
var import_styles12 = require("@mui/material/styles");
|
|
2034
|
+
var StyledScreenReaderOnly = (0, import_styles12.styled)("span")({
|
|
2002
2035
|
position: "absolute",
|
|
2003
2036
|
width: "1px",
|
|
2004
2037
|
height: "1px",
|
|
@@ -2009,7 +2042,7 @@ var StyledScreenReaderOnly = (0, import_styles11.styled)("span")({
|
|
|
2009
2042
|
whiteSpace: "nowrap",
|
|
2010
2043
|
border: 0
|
|
2011
2044
|
});
|
|
2012
|
-
var StyledIconSpan = (0,
|
|
2045
|
+
var StyledIconSpan = (0, import_styles12.styled)("span", {
|
|
2013
2046
|
shouldForwardProp: (prop) => prop !== "iconRight"
|
|
2014
2047
|
})(({ iconRight }) => ({
|
|
2015
2048
|
display: "inline-flex",
|
|
@@ -2017,7 +2050,7 @@ var StyledIconSpan = (0, import_styles11.styled)("span", {
|
|
|
2017
2050
|
paddingLeft: iconRight ? "4px" : void 0,
|
|
2018
2051
|
paddingRight: iconRight ? void 0 : "4px"
|
|
2019
2052
|
}));
|
|
2020
|
-
var StyledAnchor = (0,
|
|
2053
|
+
var StyledAnchor = (0, import_styles12.styled)(import_Box3.default, {
|
|
2021
2054
|
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
|
|
2022
2055
|
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
|
|
2023
2056
|
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
@@ -2059,12 +2092,12 @@ var StyledAnchor = (0, import_styles11.styled)(import_Box3.default, {
|
|
|
2059
2092
|
textDecoration: "underline",
|
|
2060
2093
|
color: baseColor,
|
|
2061
2094
|
outline: "none",
|
|
2062
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
2095
|
+
boxShadow: `0 0 0 3px ${(0, import_styles12.alpha)(baseColor, 0.35)}`,
|
|
2063
2096
|
"& svg": { color: baseColor }
|
|
2064
2097
|
},
|
|
2065
2098
|
"&:active": {
|
|
2066
2099
|
color: hoverColor,
|
|
2067
|
-
boxShadow: `0 0 0 3px ${(0,
|
|
2100
|
+
boxShadow: `0 0 0 3px ${(0, import_styles12.alpha)(isOnDarkBg ? baseColor : hoverColor, 0.65)}`,
|
|
2068
2101
|
textDecoration: "none",
|
|
2069
2102
|
"& svg": { color: hoverColor }
|
|
2070
2103
|
},
|
|
@@ -2076,14 +2109,14 @@ var StyledAnchor = (0, import_styles11.styled)(import_Box3.default, {
|
|
|
2076
2109
|
});
|
|
2077
2110
|
|
|
2078
2111
|
// src/components/Link/Link.tsx
|
|
2079
|
-
var
|
|
2112
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2080
2113
|
var Variant = {
|
|
2081
2114
|
standard: "standard",
|
|
2082
2115
|
external: "external",
|
|
2083
2116
|
file: "file"
|
|
2084
2117
|
};
|
|
2085
2118
|
function DocumentIcon() {
|
|
2086
|
-
return /* @__PURE__ */ (0,
|
|
2119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_SvgIcon.default, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2087
2120
|
"path",
|
|
2088
2121
|
{
|
|
2089
2122
|
fillRule: "evenodd",
|
|
@@ -2118,7 +2151,7 @@ var Link = import_react5.default.forwardRef(function Link2({
|
|
|
2118
2151
|
const target = variant !== Variant.standard ? "_blank" : targetProp;
|
|
2119
2152
|
const iconRight = variant === Variant.external ? true : !!iconToRight;
|
|
2120
2153
|
const urlProp = component ? { to: href } : { href };
|
|
2121
|
-
return /* @__PURE__ */ (0,
|
|
2154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2122
2155
|
StyledAnchor,
|
|
2123
2156
|
{
|
|
2124
2157
|
component: component ?? "a",
|
|
@@ -2132,9 +2165,9 @@ var Link = import_react5.default.forwardRef(function Link2({
|
|
|
2132
2165
|
standalonelink: !!standalone,
|
|
2133
2166
|
ref,
|
|
2134
2167
|
children: [
|
|
2135
|
-
Icon && /* @__PURE__ */ (0,
|
|
2168
|
+
Icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledIconSpan, { iconRight, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { fontSize: "inherit" }) }),
|
|
2136
2169
|
children,
|
|
2137
|
-
variant === Variant.external && /* @__PURE__ */ (0,
|
|
2170
|
+
variant === Variant.external && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
2138
2171
|
]
|
|
2139
2172
|
}
|
|
2140
2173
|
);
|
|
@@ -2146,8 +2179,8 @@ var import_react6 = __toESM(require("react"));
|
|
|
2146
2179
|
|
|
2147
2180
|
// src/components/LogoLink/LogoLink.styles.tsx
|
|
2148
2181
|
var import_Box4 = __toESM(require("@mui/material/Box"));
|
|
2149
|
-
var
|
|
2150
|
-
var StyledLogoLink = (0,
|
|
2182
|
+
var import_styles13 = require("@mui/material/styles");
|
|
2183
|
+
var StyledLogoLink = (0, import_styles13.styled)(import_Box4.default, {
|
|
2151
2184
|
shouldForwardProp: (prop) => prop !== "isSmall"
|
|
2152
2185
|
})(({ theme, isSmall }) => ({
|
|
2153
2186
|
display: "inline-flex",
|
|
@@ -2164,7 +2197,7 @@ var StyledLogoLink = (0, import_styles12.styled)(import_Box4.default, {
|
|
|
2164
2197
|
color: theme.tokens.colors.primaryDark
|
|
2165
2198
|
}
|
|
2166
2199
|
}));
|
|
2167
|
-
var StyledLogoSpan = (0,
|
|
2200
|
+
var StyledLogoSpan = (0, import_styles13.styled)("span")(({ theme }) => ({
|
|
2168
2201
|
padding: "0 10px 0 15px",
|
|
2169
2202
|
backgroundColor: theme.tokens.colors.primary,
|
|
2170
2203
|
height: "100%",
|
|
@@ -2182,9 +2215,9 @@ var StyledLogoSpan = (0, import_styles12.styled)("span")(({ theme }) => ({
|
|
|
2182
2215
|
}));
|
|
2183
2216
|
|
|
2184
2217
|
// src/components/LogoLink/LogoLink.tsx
|
|
2185
|
-
var
|
|
2218
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2186
2219
|
var LogoLink = import_react6.default.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
|
|
2187
|
-
return /* @__PURE__ */ (0,
|
|
2220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2188
2221
|
StyledLogoLink,
|
|
2189
2222
|
{
|
|
2190
2223
|
component: component ?? "a",
|
|
@@ -2194,7 +2227,7 @@ var LogoLink = import_react6.default.forwardRef(function LogoLink2({ children, h
|
|
|
2194
2227
|
"data-component-id": "LogoLink",
|
|
2195
2228
|
...getCleanProps(restProps),
|
|
2196
2229
|
ref,
|
|
2197
|
-
children: /* @__PURE__ */ (0,
|
|
2230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledLogoSpan, { children })
|
|
2198
2231
|
}
|
|
2199
2232
|
);
|
|
2200
2233
|
});
|
|
@@ -2332,8 +2365,8 @@ var SELECT_ALL_OPTION = {
|
|
|
2332
2365
|
};
|
|
2333
2366
|
|
|
2334
2367
|
// src/components/MultiSelect/MultiSelect.styles.tsx
|
|
2335
|
-
var
|
|
2336
|
-
var StyledMultiSelectContainer = (0,
|
|
2368
|
+
var import_styles14 = require("@mui/material/styles");
|
|
2369
|
+
var StyledMultiSelectContainer = (0, import_styles14.styled)("div")(({ theme }) => ({
|
|
2337
2370
|
display: "inline-block",
|
|
2338
2371
|
position: "relative",
|
|
2339
2372
|
width: "100%",
|
|
@@ -2342,7 +2375,7 @@ var StyledMultiSelectContainer = (0, import_styles13.styled)("div")(({ theme })
|
|
|
2342
2375
|
borderRadius: theme.tokens.borderRadius.md,
|
|
2343
2376
|
fontFamily: theme.tokens.typography.fontFamilyBase
|
|
2344
2377
|
}));
|
|
2345
|
-
var StyledSelectionContainerOutline = (0,
|
|
2378
|
+
var StyledSelectionContainerOutline = (0, import_styles14.styled)("div")(
|
|
2346
2379
|
({ theme, isError }) => ({
|
|
2347
2380
|
border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
|
|
2348
2381
|
borderRadius: theme.tokens.borderRadius.md,
|
|
@@ -2355,7 +2388,7 @@ var StyledSelectionContainerOutline = (0, import_styles13.styled)("div")(
|
|
|
2355
2388
|
zIndex: 0
|
|
2356
2389
|
})
|
|
2357
2390
|
);
|
|
2358
|
-
var StyledSelectionContainer = (0,
|
|
2391
|
+
var StyledSelectionContainer = (0, import_styles14.styled)("button")(
|
|
2359
2392
|
({ theme, isError }) => ({
|
|
2360
2393
|
display: "inline-flex",
|
|
2361
2394
|
backgroundColor: theme.palette.background.paper,
|
|
@@ -2377,7 +2410,7 @@ var StyledSelectionContainer = (0, import_styles13.styled)("button")(
|
|
|
2377
2410
|
outline: "none"
|
|
2378
2411
|
},
|
|
2379
2412
|
'&:focus:not([data-lose-focus="true"])': {
|
|
2380
|
-
boxShadow: `${(0,
|
|
2413
|
+
boxShadow: `${(0, import_styles14.alpha)(theme.palette.text.primary, 0.65)} 0 0 0 3px`,
|
|
2381
2414
|
outlineColor: "transparent",
|
|
2382
2415
|
outlineStyle: "solid",
|
|
2383
2416
|
borderColor: theme.palette.text.primary,
|
|
@@ -2388,11 +2421,11 @@ var StyledSelectionContainer = (0, import_styles13.styled)("button")(
|
|
|
2388
2421
|
cursor: "default"
|
|
2389
2422
|
},
|
|
2390
2423
|
...isError && {
|
|
2391
|
-
boxShadow: `${(0,
|
|
2424
|
+
boxShadow: `${(0, import_styles14.alpha)(theme.tokens.colors.error, 0.65)} 0 0 0 3px`
|
|
2392
2425
|
}
|
|
2393
2426
|
})
|
|
2394
2427
|
);
|
|
2395
|
-
var StyledSelectPlaceholder = (0,
|
|
2428
|
+
var StyledSelectPlaceholder = (0, import_styles14.styled)("span")(({ theme }) => ({
|
|
2396
2429
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2397
2430
|
display: "inline-block",
|
|
2398
2431
|
flexGrow: 1,
|
|
@@ -2400,13 +2433,13 @@ var StyledSelectPlaceholder = (0, import_styles13.styled)("span")(({ theme }) =>
|
|
|
2400
2433
|
border: "none",
|
|
2401
2434
|
outline: "none"
|
|
2402
2435
|
}));
|
|
2403
|
-
var StyledPopperInner = (0,
|
|
2436
|
+
var StyledPopperInner = (0, import_styles14.styled)("div")(({ theme }) => ({
|
|
2404
2437
|
width: "100%",
|
|
2405
2438
|
overflow: "hidden",
|
|
2406
2439
|
boxSizing: "border-box",
|
|
2407
2440
|
zIndex: theme.zIndex.tooltip
|
|
2408
2441
|
}));
|
|
2409
|
-
var StyledTransitionContainer = (0,
|
|
2442
|
+
var StyledTransitionContainer = (0, import_styles14.styled)("ul")(({ theme }) => ({
|
|
2410
2443
|
"&:focus": {
|
|
2411
2444
|
outline: "1px solid transparent"
|
|
2412
2445
|
},
|
|
@@ -2424,7 +2457,7 @@ var StyledTransitionContainer = (0, import_styles13.styled)("ul")(({ theme }) =>
|
|
|
2424
2457
|
overflowY: "auto",
|
|
2425
2458
|
backgroundColor: theme.palette.background.paper
|
|
2426
2459
|
}));
|
|
2427
|
-
var StyledDropdownArrow = (0,
|
|
2460
|
+
var StyledDropdownArrow = (0, import_styles14.styled)("div")(() => ({
|
|
2428
2461
|
height: "24px",
|
|
2429
2462
|
width: "24px",
|
|
2430
2463
|
"& > svg": {
|
|
@@ -2433,7 +2466,7 @@ var StyledDropdownArrow = (0, import_styles13.styled)("div")(() => ({
|
|
|
2433
2466
|
}));
|
|
2434
2467
|
|
|
2435
2468
|
// src/components/MultiSelect/MultiSelect.tsx
|
|
2436
|
-
var
|
|
2469
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2437
2470
|
var MultiSelect = ({
|
|
2438
2471
|
options: initialOptions,
|
|
2439
2472
|
placeholder,
|
|
@@ -2704,7 +2737,7 @@ var MultiSelect = ({
|
|
|
2704
2737
|
const handleBlur = (e) => {
|
|
2705
2738
|
if (!open && onBlur) onBlur(e);
|
|
2706
2739
|
};
|
|
2707
|
-
return /* @__PURE__ */ (0,
|
|
2740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2708
2741
|
StyledMultiSelectContainer,
|
|
2709
2742
|
{
|
|
2710
2743
|
tabIndex: -1,
|
|
@@ -2723,8 +2756,8 @@ var MultiSelect = ({
|
|
|
2723
2756
|
},
|
|
2724
2757
|
...getCleanProps(restProps),
|
|
2725
2758
|
children: [
|
|
2726
|
-
/* @__PURE__ */ (0,
|
|
2727
|
-
/* @__PURE__ */ (0,
|
|
2759
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { ref: triggerWrapperRef, style: { position: "relative" }, children: [
|
|
2760
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2728
2761
|
StyledSelectionContainer,
|
|
2729
2762
|
{
|
|
2730
2763
|
id: `multi-accounts-dropdown-toggle-button-${inputId}`,
|
|
@@ -2740,8 +2773,8 @@ var MultiSelect = ({
|
|
|
2740
2773
|
"data-multi-select-trigger": true,
|
|
2741
2774
|
"aria-haspopup": "tree",
|
|
2742
2775
|
children: [
|
|
2743
|
-
/* @__PURE__ */ (0,
|
|
2744
|
-
/* @__PURE__ */ (0,
|
|
2776
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
|
|
2777
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledDropdownArrow, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2745
2778
|
import_KeyboardArrowDown.default,
|
|
2746
2779
|
{
|
|
2747
2780
|
sx: {
|
|
@@ -2750,11 +2783,11 @@ var MultiSelect = ({
|
|
|
2750
2783
|
}
|
|
2751
2784
|
}
|
|
2752
2785
|
) }),
|
|
2753
|
-
/* @__PURE__ */ (0,
|
|
2786
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", { name: inputId, type: "hidden", required, "aria-required": required })
|
|
2754
2787
|
]
|
|
2755
2788
|
}
|
|
2756
2789
|
),
|
|
2757
|
-
/* @__PURE__ */ (0,
|
|
2790
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2758
2791
|
StyledSelectionContainerOutline,
|
|
2759
2792
|
{
|
|
2760
2793
|
"data-lose-focus": currentOptionIndex > -1,
|
|
@@ -2763,7 +2796,7 @@ var MultiSelect = ({
|
|
|
2763
2796
|
}
|
|
2764
2797
|
)
|
|
2765
2798
|
] }),
|
|
2766
|
-
/* @__PURE__ */ (0,
|
|
2799
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2767
2800
|
import_Popper.default,
|
|
2768
2801
|
{
|
|
2769
2802
|
open,
|
|
@@ -2775,7 +2808,7 @@ var MultiSelect = ({
|
|
|
2775
2808
|
{ name: "preventOverflow", enabled: true },
|
|
2776
2809
|
{ name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
|
|
2777
2810
|
],
|
|
2778
|
-
children: /* @__PURE__ */ (0,
|
|
2811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledPopperInner, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Collapse.default, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2779
2812
|
StyledTransitionContainer,
|
|
2780
2813
|
{
|
|
2781
2814
|
role: "tree",
|
|
@@ -2810,7 +2843,7 @@ MultiSelect.displayName = "ToolkitMultiSelect";
|
|
|
2810
2843
|
var import_react10 = require("react");
|
|
2811
2844
|
var import_Box5 = __toESM(require("@mui/material/Box"));
|
|
2812
2845
|
var import_OutlinedInput = __toESM(require("@mui/material/OutlinedInput"));
|
|
2813
|
-
var
|
|
2846
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2814
2847
|
var OTP_LENGTH = 6;
|
|
2815
2848
|
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2816
2849
|
const inputRefs = (0, import_react10.useRef)([]);
|
|
@@ -2843,7 +2876,7 @@ var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
|
2843
2876
|
},
|
|
2844
2877
|
[onChange]
|
|
2845
2878
|
);
|
|
2846
|
-
return /* @__PURE__ */ (0,
|
|
2879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Box5.default, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2847
2880
|
import_OutlinedInput.default,
|
|
2848
2881
|
{
|
|
2849
2882
|
inputRef: (el) => {
|
|
@@ -3030,21 +3063,21 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
|
|
|
3030
3063
|
}
|
|
3031
3064
|
|
|
3032
3065
|
// src/components/PageSpinner/PageSpinner.styles.tsx
|
|
3033
|
-
var import_styles14 = require("@mui/material/styles");
|
|
3034
3066
|
var import_styles15 = require("@mui/material/styles");
|
|
3067
|
+
var import_styles16 = require("@mui/material/styles");
|
|
3035
3068
|
var PAGE_SPINNER_Z_INDEX = 1400;
|
|
3036
|
-
var StyledPageSpinnerRoot = (0,
|
|
3069
|
+
var StyledPageSpinnerRoot = (0, import_styles15.styled)("div")(() => ({
|
|
3037
3070
|
position: "relative"
|
|
3038
3071
|
}));
|
|
3039
|
-
var StyledOverlay = (0,
|
|
3072
|
+
var StyledOverlay = (0, import_styles15.styled)("div", {
|
|
3040
3073
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3041
3074
|
})(({ theme, $darkBg = false }) => ({
|
|
3042
3075
|
position: "fixed",
|
|
3043
3076
|
inset: 0,
|
|
3044
3077
|
zIndex: PAGE_SPINNER_Z_INDEX,
|
|
3045
|
-
backgroundColor: $darkBg ? (0,
|
|
3078
|
+
backgroundColor: $darkBg ? (0, import_styles16.alpha)(theme.tokens.colors.textPrimary, 0.9) : (0, import_styles16.alpha)(theme.palette.common.white, 0.9)
|
|
3046
3079
|
}));
|
|
3047
|
-
var StyledSpinnerCentre = (0,
|
|
3080
|
+
var StyledSpinnerCentre = (0, import_styles15.styled)("div")(() => ({
|
|
3048
3081
|
position: "fixed",
|
|
3049
3082
|
top: "50%",
|
|
3050
3083
|
left: "50%",
|
|
@@ -3055,7 +3088,7 @@ var StyledSpinnerCentre = (0, import_styles14.styled)("div")(() => ({
|
|
|
3055
3088
|
alignItems: "center",
|
|
3056
3089
|
gap: "16px"
|
|
3057
3090
|
}));
|
|
3058
|
-
var StyledSpinnerMessage = (0,
|
|
3091
|
+
var StyledSpinnerMessage = (0, import_styles15.styled)("p", {
|
|
3059
3092
|
shouldForwardProp: (prop) => prop !== "$darkBg"
|
|
3060
3093
|
})(({ theme, $darkBg = false }) => ({
|
|
3061
3094
|
margin: 0,
|
|
@@ -3066,7 +3099,7 @@ var StyledSpinnerMessage = (0, import_styles14.styled)("p", {
|
|
|
3066
3099
|
color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
3067
3100
|
textAlign: "center"
|
|
3068
3101
|
}));
|
|
3069
|
-
var StyledScreenReaderOnly2 = (0,
|
|
3102
|
+
var StyledScreenReaderOnly2 = (0, import_styles15.styled)("span")(() => ({
|
|
3070
3103
|
position: "absolute",
|
|
3071
3104
|
width: "1px",
|
|
3072
3105
|
height: "1px",
|
|
@@ -3079,7 +3112,7 @@ var StyledScreenReaderOnly2 = (0, import_styles14.styled)("span")(() => ({
|
|
|
3079
3112
|
}));
|
|
3080
3113
|
|
|
3081
3114
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
3082
|
-
var
|
|
3115
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3083
3116
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
3084
3117
|
var PageSpinner = import_react11.default.forwardRef(
|
|
3085
3118
|
function PageSpinner2({
|
|
@@ -3113,7 +3146,7 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3113
3146
|
backgroundScrollTether(false);
|
|
3114
3147
|
};
|
|
3115
3148
|
}, [message, rootNode, messageTone]);
|
|
3116
|
-
return /* @__PURE__ */ (0,
|
|
3149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_Portal.default, { container: rootNode, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
3117
3150
|
StyledPageSpinnerRoot,
|
|
3118
3151
|
{
|
|
3119
3152
|
"data-component-id": "PageSpinner",
|
|
@@ -3121,9 +3154,9 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3121
3154
|
ref: mergedRef,
|
|
3122
3155
|
...getCleanProps(restProps),
|
|
3123
3156
|
children: [
|
|
3124
|
-
/* @__PURE__ */ (0,
|
|
3125
|
-
/* @__PURE__ */ (0,
|
|
3126
|
-
/* @__PURE__ */ (0,
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(StyledSpinnerCentre, { children: [
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3127
3160
|
import_CircularProgress2.default,
|
|
3128
3161
|
{
|
|
3129
3162
|
size: 60,
|
|
@@ -3131,8 +3164,8 @@ var PageSpinner = import_react11.default.forwardRef(
|
|
|
3131
3164
|
"aria-hidden": "true"
|
|
3132
3165
|
}
|
|
3133
3166
|
),
|
|
3134
|
-
customMessageLayout ?? /* @__PURE__ */ (0,
|
|
3135
|
-
srText && /* @__PURE__ */ (0,
|
|
3167
|
+
customMessageLayout ?? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
3168
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(StyledScreenReaderOnly2, { children: srText })
|
|
3136
3169
|
] })
|
|
3137
3170
|
]
|
|
3138
3171
|
}
|
|
@@ -3146,7 +3179,7 @@ var import_react12 = __toESM(require("react"));
|
|
|
3146
3179
|
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
3147
3180
|
|
|
3148
3181
|
// src/components/Pagination/Pagination.styles.tsx
|
|
3149
|
-
var
|
|
3182
|
+
var import_styles17 = require("@mui/material/styles");
|
|
3150
3183
|
var import_PaginationItem = __toESM(require("@mui/material/PaginationItem"));
|
|
3151
3184
|
function getColorValue(theme, color) {
|
|
3152
3185
|
switch (color) {
|
|
@@ -3166,58 +3199,58 @@ function getColorValue(theme, color) {
|
|
|
3166
3199
|
return theme.tokens.colors.textPrimary;
|
|
3167
3200
|
}
|
|
3168
3201
|
}
|
|
3169
|
-
var StyledPaginationItem = (0,
|
|
3202
|
+
var StyledPaginationItem = (0, import_styles17.styled)(import_PaginationItem.default, {
|
|
3170
3203
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
|
|
3171
3204
|
})(({ theme, $variant, $color }) => {
|
|
3172
3205
|
const colorValue = getColorValue(theme, $color);
|
|
3173
3206
|
if ($variant === "text") {
|
|
3174
3207
|
return {
|
|
3175
3208
|
"&.Mui-selected": {
|
|
3176
|
-
backgroundColor: (0,
|
|
3209
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.08),
|
|
3177
3210
|
color: colorValue,
|
|
3178
3211
|
"&:hover": {
|
|
3179
|
-
backgroundColor: (0,
|
|
3212
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.16)
|
|
3180
3213
|
}
|
|
3181
3214
|
}
|
|
3182
3215
|
};
|
|
3183
3216
|
}
|
|
3184
3217
|
if ($variant === "outlined") {
|
|
3185
3218
|
return {
|
|
3186
|
-
border: `1px solid ${(0,
|
|
3219
|
+
border: `1px solid ${(0, import_styles17.alpha)(colorValue, 0.24)}`,
|
|
3187
3220
|
"&.Mui-selected": {
|
|
3188
|
-
border: `1px solid ${(0,
|
|
3221
|
+
border: `1px solid ${(0, import_styles17.alpha)(colorValue, 0.8)}`,
|
|
3189
3222
|
color: colorValue,
|
|
3190
|
-
backgroundColor: (0,
|
|
3223
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.08),
|
|
3191
3224
|
"&:hover": {
|
|
3192
|
-
backgroundColor: (0,
|
|
3225
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.16)
|
|
3193
3226
|
}
|
|
3194
3227
|
}
|
|
3195
3228
|
};
|
|
3196
3229
|
}
|
|
3197
3230
|
return {
|
|
3198
3231
|
"&.Mui-selected": {
|
|
3199
|
-
backgroundColor: (0,
|
|
3232
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.16),
|
|
3200
3233
|
color: colorValue,
|
|
3201
3234
|
"&:hover": {
|
|
3202
|
-
backgroundColor: (0,
|
|
3235
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.32)
|
|
3203
3236
|
}
|
|
3204
3237
|
},
|
|
3205
3238
|
"&:hover": {
|
|
3206
|
-
backgroundColor: (0,
|
|
3239
|
+
backgroundColor: (0, import_styles17.alpha)(colorValue, 0.08)
|
|
3207
3240
|
}
|
|
3208
3241
|
};
|
|
3209
3242
|
});
|
|
3210
3243
|
|
|
3211
3244
|
// src/components/Pagination/Pagination.tsx
|
|
3212
|
-
var
|
|
3245
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3213
3246
|
var Pagination = import_react12.default.forwardRef(
|
|
3214
3247
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
3215
|
-
return /* @__PURE__ */ (0,
|
|
3248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3216
3249
|
import_Pagination.default,
|
|
3217
3250
|
{
|
|
3218
3251
|
ref,
|
|
3219
3252
|
"data-component-id": "Pagination",
|
|
3220
|
-
renderItem: (item) => /* @__PURE__ */ (0,
|
|
3253
|
+
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3221
3254
|
StyledPaginationItem,
|
|
3222
3255
|
{
|
|
3223
3256
|
$variant: variant,
|
|
@@ -3237,8 +3270,8 @@ Pagination.displayName = "ToolkitPagination";
|
|
|
3237
3270
|
var import_react13 = __toESM(require("react"));
|
|
3238
3271
|
|
|
3239
3272
|
// src/components/Paragraph/Paragraph.styles.tsx
|
|
3240
|
-
var
|
|
3241
|
-
var StyledParagraph = (0,
|
|
3273
|
+
var import_styles18 = require("@mui/material/styles");
|
|
3274
|
+
var StyledParagraph = (0, import_styles18.styled)("p", {
|
|
3242
3275
|
shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
|
|
3243
3276
|
})(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
|
|
3244
3277
|
margin: 0,
|
|
@@ -3271,10 +3304,10 @@ var StyledParagraph = (0, import_styles17.styled)("p", {
|
|
|
3271
3304
|
}));
|
|
3272
3305
|
|
|
3273
3306
|
// src/components/Paragraph/Paragraph.tsx
|
|
3274
|
-
var
|
|
3307
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3275
3308
|
var Paragraph = import_react13.default.forwardRef(
|
|
3276
3309
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
3277
|
-
return /* @__PURE__ */ (0,
|
|
3310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3278
3311
|
StyledParagraph,
|
|
3279
3312
|
{
|
|
3280
3313
|
$variant: variant,
|
|
@@ -3297,8 +3330,8 @@ var import_CheckCircle = __toESM(require("@mui/icons-material/CheckCircle"));
|
|
|
3297
3330
|
var import_Cancel = __toESM(require("@mui/icons-material/Cancel"));
|
|
3298
3331
|
|
|
3299
3332
|
// src/components/Password/PasswordRule.styles.tsx
|
|
3300
|
-
var
|
|
3301
|
-
var StyledPasswordRule = (0,
|
|
3333
|
+
var import_styles19 = require("@mui/material/styles");
|
|
3334
|
+
var StyledPasswordRule = (0, import_styles19.styled)("div")(({ theme }) => ({
|
|
3302
3335
|
display: "flex",
|
|
3303
3336
|
alignItems: "center",
|
|
3304
3337
|
gap: theme.tokens.spacing.xs,
|
|
@@ -3310,15 +3343,15 @@ var StyledPasswordRule = (0, import_styles18.styled)("div")(({ theme }) => ({
|
|
|
3310
3343
|
color: theme.tokens.colors.error
|
|
3311
3344
|
}
|
|
3312
3345
|
}));
|
|
3313
|
-
var StyledPasswordRuleIcon = (0,
|
|
3346
|
+
var StyledPasswordRuleIcon = (0, import_styles19.styled)("span")({
|
|
3314
3347
|
display: "inline-flex",
|
|
3315
3348
|
alignItems: "center",
|
|
3316
3349
|
flexShrink: 0
|
|
3317
3350
|
});
|
|
3318
|
-
var StyledPasswordRuleText = (0,
|
|
3351
|
+
var StyledPasswordRuleText = (0, import_styles19.styled)("span")(({ theme }) => ({
|
|
3319
3352
|
fontSize: theme.tokens.typography.fontSizeSm
|
|
3320
3353
|
}));
|
|
3321
|
-
var StyledScreenReaderOnly3 = (0,
|
|
3354
|
+
var StyledScreenReaderOnly3 = (0, import_styles19.styled)("span")({
|
|
3322
3355
|
position: "absolute",
|
|
3323
3356
|
width: 1,
|
|
3324
3357
|
height: 1,
|
|
@@ -3331,24 +3364,24 @@ var StyledScreenReaderOnly3 = (0, import_styles18.styled)("span")({
|
|
|
3331
3364
|
});
|
|
3332
3365
|
|
|
3333
3366
|
// src/components/Password/PasswordRule.tsx
|
|
3334
|
-
var
|
|
3335
|
-
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ (0,
|
|
3367
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3368
|
+
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
3336
3369
|
StyledPasswordRule,
|
|
3337
3370
|
{
|
|
3338
3371
|
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
3339
3372
|
"data-testid": `password-rule-${idx}`,
|
|
3340
3373
|
children: [
|
|
3341
|
-
/* @__PURE__ */ (0,
|
|
3342
|
-
/* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3374
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_CheckCircle.default, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_Cancel.default, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3375
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledPasswordRuleText, { children: rule }),
|
|
3376
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
3344
3377
|
]
|
|
3345
3378
|
}
|
|
3346
3379
|
);
|
|
3347
3380
|
PasswordRule.displayName = "ToolkitPasswordRule";
|
|
3348
3381
|
|
|
3349
3382
|
// src/components/Password/PasswordCriteria.styles.tsx
|
|
3350
|
-
var
|
|
3351
|
-
var StyledPasswordCriteriaContainer = (0,
|
|
3383
|
+
var import_styles20 = require("@mui/material/styles");
|
|
3384
|
+
var StyledPasswordCriteriaContainer = (0, import_styles20.styled)("div")(
|
|
3352
3385
|
({ theme, $show }) => ({
|
|
3353
3386
|
display: $show ? "block" : "none",
|
|
3354
3387
|
position: "absolute",
|
|
@@ -3359,7 +3392,7 @@ var StyledPasswordCriteriaContainer = (0, import_styles19.styled)("div")(
|
|
|
3359
3392
|
marginTop: theme.tokens.spacing.xs
|
|
3360
3393
|
})
|
|
3361
3394
|
);
|
|
3362
|
-
var StyledPasswordRuleTitle = (0,
|
|
3395
|
+
var StyledPasswordRuleTitle = (0, import_styles20.styled)("div")(({ theme }) => ({
|
|
3363
3396
|
color: theme.tokens.colors.textPrimary,
|
|
3364
3397
|
fontSize: theme.tokens.typography.fontSizeSm,
|
|
3365
3398
|
fontWeight: theme.tokens.typography.fontWeightMedium,
|
|
@@ -3369,7 +3402,7 @@ var StyledPasswordRuleTitle = (0, import_styles19.styled)("div")(({ theme }) =>
|
|
|
3369
3402
|
}));
|
|
3370
3403
|
|
|
3371
3404
|
// src/components/Password/PasswordCriteria.tsx
|
|
3372
|
-
var
|
|
3405
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3373
3406
|
var PasswordRules = [
|
|
3374
3407
|
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
3375
3408
|
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
@@ -3386,7 +3419,7 @@ var passwordValidator = (value) => ({
|
|
|
3386
3419
|
});
|
|
3387
3420
|
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
3388
3421
|
const validity = passwordValidator(value);
|
|
3389
|
-
return /* @__PURE__ */ (0,
|
|
3422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3390
3423
|
StyledPasswordCriteriaContainer,
|
|
3391
3424
|
{
|
|
3392
3425
|
$show: show,
|
|
@@ -3395,9 +3428,9 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3395
3428
|
"data-testid": "password-criteria",
|
|
3396
3429
|
role: "status",
|
|
3397
3430
|
"aria-live": "polite",
|
|
3398
|
-
children: /* @__PURE__ */ (0,
|
|
3399
|
-
/* @__PURE__ */ (0,
|
|
3400
|
-
PasswordRules.map((item, idx) => /* @__PURE__ */ (0,
|
|
3431
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { compact: true, children: [
|
|
3432
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
3433
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
3401
3434
|
] })
|
|
3402
3435
|
}
|
|
3403
3436
|
);
|
|
@@ -3405,17 +3438,17 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3405
3438
|
PasswordCriteria.displayName = "ToolkitPasswordCriteria";
|
|
3406
3439
|
|
|
3407
3440
|
// src/components/Password/Password.styles.tsx
|
|
3408
|
-
var
|
|
3409
|
-
var StyledPasswordRoot = (0,
|
|
3441
|
+
var import_styles21 = require("@mui/material/styles");
|
|
3442
|
+
var StyledPasswordRoot = (0, import_styles21.styled)("div")({
|
|
3410
3443
|
position: "relative"
|
|
3411
3444
|
});
|
|
3412
|
-
var StyledPasswordInputWrapper = (0,
|
|
3445
|
+
var StyledPasswordInputWrapper = (0, import_styles21.styled)("div")({
|
|
3413
3446
|
display: "flex",
|
|
3414
3447
|
position: "relative"
|
|
3415
3448
|
});
|
|
3416
3449
|
|
|
3417
3450
|
// src/components/Password/Password.tsx
|
|
3418
|
-
var
|
|
3451
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3419
3452
|
var Password = import_react14.default.forwardRef(
|
|
3420
3453
|
function Password2({
|
|
3421
3454
|
isInvalid,
|
|
@@ -3447,8 +3480,8 @@ var Password = import_react14.default.forwardRef(
|
|
|
3447
3480
|
};
|
|
3448
3481
|
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
3449
3482
|
const cleanRest = getCleanProps(rest);
|
|
3450
|
-
return /* @__PURE__ */ (0,
|
|
3451
|
-
/* @__PURE__ */ (0,
|
|
3483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
3484
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StyledPasswordInputWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3452
3485
|
TextField,
|
|
3453
3486
|
{
|
|
3454
3487
|
ref,
|
|
@@ -3467,7 +3500,7 @@ var Password = import_react14.default.forwardRef(
|
|
|
3467
3500
|
onChange: handleChange
|
|
3468
3501
|
}
|
|
3469
3502
|
) }),
|
|
3470
|
-
/* @__PURE__ */ (0,
|
|
3503
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
3471
3504
|
] });
|
|
3472
3505
|
}
|
|
3473
3506
|
);
|
|
@@ -3477,7 +3510,7 @@ Password.displayName = "ToolkitPassword";
|
|
|
3477
3510
|
var import_react15 = __toESM(require("react"));
|
|
3478
3511
|
|
|
3479
3512
|
// src/components/Spinner/Spinner.styles.tsx
|
|
3480
|
-
var
|
|
3513
|
+
var import_styles22 = require("@mui/material/styles");
|
|
3481
3514
|
var spinnerSizing = {
|
|
3482
3515
|
xs: 20,
|
|
3483
3516
|
sm: 24,
|
|
@@ -3485,7 +3518,7 @@ var spinnerSizing = {
|
|
|
3485
3518
|
lg: 56,
|
|
3486
3519
|
xl: 72
|
|
3487
3520
|
};
|
|
3488
|
-
var StyledSpinnerContainer = (0,
|
|
3521
|
+
var StyledSpinnerContainer = (0, import_styles22.styled)("div", {
|
|
3489
3522
|
shouldForwardProp: (prop) => prop !== "$inline"
|
|
3490
3523
|
})({}, ({ $inline }) => ({
|
|
3491
3524
|
flex: "0 1 100%",
|
|
@@ -3493,7 +3526,7 @@ var StyledSpinnerContainer = (0, import_styles21.styled)("div", {
|
|
|
3493
3526
|
flexDirection: $inline ? "row" : "column",
|
|
3494
3527
|
alignItems: "center"
|
|
3495
3528
|
}));
|
|
3496
|
-
var StyledSpinnerIconContainer = (0,
|
|
3529
|
+
var StyledSpinnerIconContainer = (0, import_styles22.styled)("div", {
|
|
3497
3530
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3498
3531
|
})(({ $size }) => {
|
|
3499
3532
|
const size = spinnerSizing[$size];
|
|
@@ -3503,12 +3536,12 @@ var StyledSpinnerIconContainer = (0, import_styles21.styled)("div", {
|
|
|
3503
3536
|
height: size
|
|
3504
3537
|
};
|
|
3505
3538
|
});
|
|
3506
|
-
var StyledSpinnerBackground = (0,
|
|
3539
|
+
var StyledSpinnerBackground = (0, import_styles22.styled)("div", {
|
|
3507
3540
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3508
3541
|
})(({ theme, $size, $darkBg }) => {
|
|
3509
3542
|
const size = spinnerSizing[$size];
|
|
3510
3543
|
const lineWidth = Math.round(size / 12);
|
|
3511
|
-
const borderColor = $darkBg ? (0,
|
|
3544
|
+
const borderColor = $darkBg ? (0, import_styles22.alpha)(theme.palette.common.white, 0.2) : (0, import_styles22.alpha)(theme.tokens.colors.textPrimary, 0.1);
|
|
3512
3545
|
return {
|
|
3513
3546
|
position: "absolute",
|
|
3514
3547
|
width: size,
|
|
@@ -3517,7 +3550,7 @@ var StyledSpinnerBackground = (0, import_styles21.styled)("div", {
|
|
|
3517
3550
|
border: `${lineWidth}px solid ${borderColor}`
|
|
3518
3551
|
};
|
|
3519
3552
|
});
|
|
3520
|
-
var StyledSpinner = (0,
|
|
3553
|
+
var StyledSpinner = (0, import_styles22.styled)("div", {
|
|
3521
3554
|
shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
|
|
3522
3555
|
})(({ theme, $size, $darkBg }) => {
|
|
3523
3556
|
const size = spinnerSizing[$size];
|
|
@@ -3540,7 +3573,7 @@ var StyledSpinner = (0, import_styles21.styled)("div", {
|
|
|
3540
3573
|
animation: `toolkit-spin ${animationSpeed} infinite linear`
|
|
3541
3574
|
};
|
|
3542
3575
|
});
|
|
3543
|
-
var StyledSpinnerMessage2 = (0,
|
|
3576
|
+
var StyledSpinnerMessage2 = (0, import_styles22.styled)("span", {
|
|
3544
3577
|
shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
|
|
3545
3578
|
})(({ theme, $darkBg, $inline }) => ({
|
|
3546
3579
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
@@ -3549,7 +3582,7 @@ var StyledSpinnerMessage2 = (0, import_styles21.styled)("span", {
|
|
|
3549
3582
|
marginTop: $inline ? 0 : theme.spacing(1),
|
|
3550
3583
|
marginLeft: $inline ? theme.spacing(1) : 0
|
|
3551
3584
|
}));
|
|
3552
|
-
var StyledScreenReaderOnly4 = (0,
|
|
3585
|
+
var StyledScreenReaderOnly4 = (0, import_styles22.styled)("span")({
|
|
3553
3586
|
position: "absolute",
|
|
3554
3587
|
width: 1,
|
|
3555
3588
|
height: 1,
|
|
@@ -3562,10 +3595,10 @@ var StyledScreenReaderOnly4 = (0, import_styles21.styled)("span")({
|
|
|
3562
3595
|
});
|
|
3563
3596
|
|
|
3564
3597
|
// src/components/Spinner/Spinner.tsx
|
|
3565
|
-
var
|
|
3598
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3566
3599
|
var Spinner = import_react15.default.forwardRef(
|
|
3567
3600
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
3568
|
-
return /* @__PURE__ */ (0,
|
|
3601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3569
3602
|
StyledSpinnerContainer,
|
|
3570
3603
|
{
|
|
3571
3604
|
ref,
|
|
@@ -3573,12 +3606,12 @@ var Spinner = import_react15.default.forwardRef(
|
|
|
3573
3606
|
"data-component-id": "Spinner",
|
|
3574
3607
|
...getCleanProps(restProps),
|
|
3575
3608
|
children: [
|
|
3576
|
-
/* @__PURE__ */ (0,
|
|
3577
|
-
/* @__PURE__ */ (0,
|
|
3578
|
-
/* @__PURE__ */ (0,
|
|
3609
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
3610
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
3611
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
3579
3612
|
] }),
|
|
3580
|
-
message && /* @__PURE__ */ (0,
|
|
3581
|
-
srText && /* @__PURE__ */ (0,
|
|
3613
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
3614
|
+
srText && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(StyledScreenReaderOnly4, { children: srText })
|
|
3582
3615
|
]
|
|
3583
3616
|
}
|
|
3584
3617
|
);
|
|
@@ -3590,14 +3623,14 @@ Spinner.displayName = "ToolkitSpinner";
|
|
|
3590
3623
|
var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"));
|
|
3591
3624
|
|
|
3592
3625
|
// src/components/Toggle/Toggle.styles.tsx
|
|
3593
|
-
var
|
|
3594
|
-
var StyledFieldset = (0,
|
|
3626
|
+
var import_styles23 = require("@mui/material/styles");
|
|
3627
|
+
var StyledFieldset = (0, import_styles23.styled)("fieldset")(({ theme }) => ({
|
|
3595
3628
|
border: "none",
|
|
3596
3629
|
margin: 0,
|
|
3597
3630
|
padding: 0,
|
|
3598
3631
|
minWidth: 0
|
|
3599
3632
|
}));
|
|
3600
|
-
var StyledLegend = (0,
|
|
3633
|
+
var StyledLegend = (0, import_styles23.styled)("legend")(({ theme }) => ({
|
|
3601
3634
|
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
3602
3635
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
3603
3636
|
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
@@ -3605,7 +3638,7 @@ var StyledLegend = (0, import_styles22.styled)("legend")(({ theme }) => ({
|
|
|
3605
3638
|
marginBottom: theme.spacing(1),
|
|
3606
3639
|
padding: 0
|
|
3607
3640
|
}));
|
|
3608
|
-
var StyledToggleWrapper = (0,
|
|
3641
|
+
var StyledToggleWrapper = (0, import_styles23.styled)("div")(({ theme }) => ({
|
|
3609
3642
|
display: "flex",
|
|
3610
3643
|
flexDirection: "row",
|
|
3611
3644
|
width: theme.spacing(15),
|
|
@@ -3614,7 +3647,7 @@ var StyledToggleWrapper = (0, import_styles22.styled)("div")(({ theme }) => ({
|
|
|
3614
3647
|
border: `1px solid ${theme.tokens.colors.border}`,
|
|
3615
3648
|
borderRadius: theme.tokens.borderRadius.md
|
|
3616
3649
|
}));
|
|
3617
|
-
var StyledSwitch = (0,
|
|
3650
|
+
var StyledSwitch = (0, import_styles23.styled)("label", {
|
|
3618
3651
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
3619
3652
|
})(({ theme, selected, controlType }) => ({
|
|
3620
3653
|
position: "relative",
|
|
@@ -3704,7 +3737,7 @@ var StyledSwitch = (0, import_styles22.styled)("label", {
|
|
|
3704
3737
|
}));
|
|
3705
3738
|
|
|
3706
3739
|
// src/components/Toggle/Toggle.tsx
|
|
3707
|
-
var
|
|
3740
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3708
3741
|
function Toggle({
|
|
3709
3742
|
name,
|
|
3710
3743
|
checked = false,
|
|
@@ -3716,11 +3749,11 @@ function Toggle({
|
|
|
3716
3749
|
...restProps
|
|
3717
3750
|
}) {
|
|
3718
3751
|
const testId = restProps["data-testid"];
|
|
3719
|
-
return /* @__PURE__ */ (0,
|
|
3720
|
-
label && /* @__PURE__ */ (0,
|
|
3721
|
-
description && /* @__PURE__ */ (0,
|
|
3722
|
-
/* @__PURE__ */ (0,
|
|
3723
|
-
/* @__PURE__ */ (0,
|
|
3752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3753
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(StyledLegend, { children: label }),
|
|
3754
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_FormHelperText.default, { children: description }),
|
|
3755
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(StyledToggleWrapper, { children: [
|
|
3756
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3724
3757
|
StyledSwitch,
|
|
3725
3758
|
{
|
|
3726
3759
|
htmlFor: `${name}off`,
|
|
@@ -3728,7 +3761,7 @@ function Toggle({
|
|
|
3728
3761
|
controlType: "off",
|
|
3729
3762
|
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3730
3763
|
children: [
|
|
3731
|
-
/* @__PURE__ */ (0,
|
|
3764
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3732
3765
|
"input",
|
|
3733
3766
|
{
|
|
3734
3767
|
checked: !checked,
|
|
@@ -3744,7 +3777,7 @@ function Toggle({
|
|
|
3744
3777
|
]
|
|
3745
3778
|
}
|
|
3746
3779
|
),
|
|
3747
|
-
/* @__PURE__ */ (0,
|
|
3780
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3748
3781
|
StyledSwitch,
|
|
3749
3782
|
{
|
|
3750
3783
|
htmlFor: `${name}on`,
|
|
@@ -3752,7 +3785,7 @@ function Toggle({
|
|
|
3752
3785
|
controlType: "on",
|
|
3753
3786
|
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3754
3787
|
children: [
|
|
3755
|
-
/* @__PURE__ */ (0,
|
|
3788
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3756
3789
|
"input",
|
|
3757
3790
|
{
|
|
3758
3791
|
checked,
|
|
@@ -3769,44 +3802,44 @@ function Toggle({
|
|
|
3769
3802
|
}
|
|
3770
3803
|
)
|
|
3771
3804
|
] }),
|
|
3772
|
-
error && /* @__PURE__ */ (0,
|
|
3805
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_FormHelperText.default, { error: true, children: error })
|
|
3773
3806
|
] });
|
|
3774
3807
|
}
|
|
3775
3808
|
Toggle.displayName = "ToolkitToggle";
|
|
3776
3809
|
|
|
3777
3810
|
// src/components/Table/Table.tsx
|
|
3778
3811
|
var import_material11 = require("@mui/material");
|
|
3779
|
-
var
|
|
3780
|
-
var
|
|
3781
|
-
var StyledTableContainer = (0,
|
|
3812
|
+
var import_styles24 = require("@mui/material/styles");
|
|
3813
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3814
|
+
var StyledTableContainer = (0, import_styles24.styled)(import_material11.TableContainer)(() => ({
|
|
3782
3815
|
overflowX: "auto"
|
|
3783
3816
|
}));
|
|
3784
|
-
var StyledHeadCell = (0,
|
|
3817
|
+
var StyledHeadCell = (0, import_styles24.styled)(import_material11.TableCell)(({ theme }) => ({
|
|
3785
3818
|
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
3786
3819
|
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
3787
3820
|
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
3788
3821
|
borderBottomColor: theme.tokens.components.table.borderColor
|
|
3789
3822
|
}));
|
|
3790
3823
|
function Table(props) {
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
3824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.Table, { ...props });
|
|
3792
3825
|
}
|
|
3793
3826
|
function TableHead(props) {
|
|
3794
|
-
return /* @__PURE__ */ (0,
|
|
3827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableHead, { ...props });
|
|
3795
3828
|
}
|
|
3796
3829
|
function TableBody(props) {
|
|
3797
|
-
return /* @__PURE__ */ (0,
|
|
3830
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableBody, { ...props });
|
|
3798
3831
|
}
|
|
3799
3832
|
function TableRow(props) {
|
|
3800
|
-
return /* @__PURE__ */ (0,
|
|
3833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableRow, { ...props });
|
|
3801
3834
|
}
|
|
3802
3835
|
function TableCell(props) {
|
|
3803
|
-
return /* @__PURE__ */ (0,
|
|
3836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material11.TableCell, { ...props });
|
|
3804
3837
|
}
|
|
3805
3838
|
function TableHeadCell(props) {
|
|
3806
|
-
return /* @__PURE__ */ (0,
|
|
3839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
3807
3840
|
}
|
|
3808
3841
|
function TableContainer(props) {
|
|
3809
|
-
return /* @__PURE__ */ (0,
|
|
3842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledTableContainer, { ...props });
|
|
3810
3843
|
}
|
|
3811
3844
|
var TablePagination = import_material11.TablePagination;
|
|
3812
3845
|
var TableSortLabel = import_material11.TableSortLabel;
|
|
@@ -3821,10 +3854,10 @@ TableContainer.displayName = "ToolkitTableContainer";
|
|
|
3821
3854
|
// src/foundation/H1/H1.tsx
|
|
3822
3855
|
var import_react16 = __toESM(require("react"));
|
|
3823
3856
|
var import_material12 = require("@mui/material");
|
|
3824
|
-
var
|
|
3857
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3825
3858
|
var H1 = import_react16.default.forwardRef(
|
|
3826
3859
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
3827
|
-
return /* @__PURE__ */ (0,
|
|
3860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material12.Typography, { ref, variant: "h1", color, ...props, children });
|
|
3828
3861
|
}
|
|
3829
3862
|
);
|
|
3830
3863
|
H1.displayName = "ToolkitH1";
|
|
@@ -3832,10 +3865,10 @@ H1.displayName = "ToolkitH1";
|
|
|
3832
3865
|
// src/foundation/H2/H2.tsx
|
|
3833
3866
|
var import_react17 = __toESM(require("react"));
|
|
3834
3867
|
var import_material13 = require("@mui/material");
|
|
3835
|
-
var
|
|
3868
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3836
3869
|
var H2 = import_react17.default.forwardRef(
|
|
3837
3870
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
3838
|
-
return /* @__PURE__ */ (0,
|
|
3871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_material13.Typography, { ref, variant: "h2", color, ...props, children });
|
|
3839
3872
|
}
|
|
3840
3873
|
);
|
|
3841
3874
|
H2.displayName = "ToolkitH2";
|
|
@@ -3843,10 +3876,10 @@ H2.displayName = "ToolkitH2";
|
|
|
3843
3876
|
// src/foundation/H3/H3.tsx
|
|
3844
3877
|
var import_react18 = __toESM(require("react"));
|
|
3845
3878
|
var import_material14 = require("@mui/material");
|
|
3846
|
-
var
|
|
3879
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3847
3880
|
var H3 = import_react18.default.forwardRef(
|
|
3848
3881
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
3849
|
-
return /* @__PURE__ */ (0,
|
|
3882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material14.Typography, { ref, variant: "h3", color, ...props, children });
|
|
3850
3883
|
}
|
|
3851
3884
|
);
|
|
3852
3885
|
H3.displayName = "ToolkitH3";
|
|
@@ -3854,10 +3887,10 @@ H3.displayName = "ToolkitH3";
|
|
|
3854
3887
|
// src/foundation/H4/H4.tsx
|
|
3855
3888
|
var import_react19 = __toESM(require("react"));
|
|
3856
3889
|
var import_material15 = require("@mui/material");
|
|
3857
|
-
var
|
|
3890
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3858
3891
|
var H4 = import_react19.default.forwardRef(
|
|
3859
3892
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
3860
|
-
return /* @__PURE__ */ (0,
|
|
3893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material15.Typography, { ref, variant: "h4", color, ...props, children });
|
|
3861
3894
|
}
|
|
3862
3895
|
);
|
|
3863
3896
|
H4.displayName = "ToolkitH4";
|
|
@@ -3865,10 +3898,10 @@ H4.displayName = "ToolkitH4";
|
|
|
3865
3898
|
// src/foundation/H5/H5.tsx
|
|
3866
3899
|
var import_react20 = __toESM(require("react"));
|
|
3867
3900
|
var import_material16 = require("@mui/material");
|
|
3868
|
-
var
|
|
3901
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3869
3902
|
var H5 = import_react20.default.forwardRef(
|
|
3870
3903
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
3871
|
-
return /* @__PURE__ */ (0,
|
|
3904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material16.Typography, { ref, variant: "h5", color, ...props, children });
|
|
3872
3905
|
}
|
|
3873
3906
|
);
|
|
3874
3907
|
H5.displayName = "ToolkitH5";
|
|
@@ -3876,10 +3909,10 @@ H5.displayName = "ToolkitH5";
|
|
|
3876
3909
|
// src/foundation/H6/H6.tsx
|
|
3877
3910
|
var import_react21 = __toESM(require("react"));
|
|
3878
3911
|
var import_material17 = require("@mui/material");
|
|
3879
|
-
var
|
|
3912
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3880
3913
|
var H6 = import_react21.default.forwardRef(
|
|
3881
3914
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
3882
|
-
return /* @__PURE__ */ (0,
|
|
3915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material17.Typography, { ref, variant: "h6", color, ...props, children });
|
|
3883
3916
|
}
|
|
3884
3917
|
);
|
|
3885
3918
|
H6.displayName = "ToolkitH6";
|
|
@@ -3887,10 +3920,10 @@ H6.displayName = "ToolkitH6";
|
|
|
3887
3920
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
3888
3921
|
var import_react22 = __toESM(require("react"));
|
|
3889
3922
|
var import_material18 = require("@mui/material");
|
|
3890
|
-
var
|
|
3923
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3891
3924
|
var Subtitle1 = import_react22.default.forwardRef(
|
|
3892
3925
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
3893
|
-
return /* @__PURE__ */ (0,
|
|
3926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material18.Typography, { ref, variant: "subtitle1", color, ...props, children });
|
|
3894
3927
|
}
|
|
3895
3928
|
);
|
|
3896
3929
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
@@ -3898,10 +3931,10 @@ Subtitle1.displayName = "ToolkitSubtitle1";
|
|
|
3898
3931
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
3899
3932
|
var import_react23 = __toESM(require("react"));
|
|
3900
3933
|
var import_material19 = require("@mui/material");
|
|
3901
|
-
var
|
|
3934
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3902
3935
|
var Subtitle2 = import_react23.default.forwardRef(
|
|
3903
3936
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
3904
|
-
return /* @__PURE__ */ (0,
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material19.Typography, { ref, variant: "subtitle2", color, ...props, children });
|
|
3905
3938
|
}
|
|
3906
3939
|
);
|
|
3907
3940
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
@@ -3909,10 +3942,10 @@ Subtitle2.displayName = "ToolkitSubtitle2";
|
|
|
3909
3942
|
// src/foundation/Body1/Body1.tsx
|
|
3910
3943
|
var import_react24 = __toESM(require("react"));
|
|
3911
3944
|
var import_material20 = require("@mui/material");
|
|
3912
|
-
var
|
|
3945
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3913
3946
|
var Body1 = import_react24.default.forwardRef(
|
|
3914
3947
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
3915
|
-
return /* @__PURE__ */ (0,
|
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_material20.Typography, { ref, variant: "body1", color, ...props, children });
|
|
3916
3949
|
}
|
|
3917
3950
|
);
|
|
3918
3951
|
Body1.displayName = "ToolkitBody1";
|
|
@@ -3920,10 +3953,10 @@ Body1.displayName = "ToolkitBody1";
|
|
|
3920
3953
|
// src/foundation/Body2/Body2.tsx
|
|
3921
3954
|
var import_react25 = __toESM(require("react"));
|
|
3922
3955
|
var import_material21 = require("@mui/material");
|
|
3923
|
-
var
|
|
3956
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3924
3957
|
var Body2 = import_react25.default.forwardRef(
|
|
3925
3958
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
3926
|
-
return /* @__PURE__ */ (0,
|
|
3959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Typography, { ref, variant: "body2", color, ...props, children });
|
|
3927
3960
|
}
|
|
3928
3961
|
);
|
|
3929
3962
|
Body2.displayName = "ToolkitBody2";
|
|
@@ -3931,10 +3964,10 @@ Body2.displayName = "ToolkitBody2";
|
|
|
3931
3964
|
// src/foundation/Caption/Caption.tsx
|
|
3932
3965
|
var import_react26 = __toESM(require("react"));
|
|
3933
3966
|
var import_material22 = require("@mui/material");
|
|
3934
|
-
var
|
|
3967
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3935
3968
|
var Caption = import_react26.default.forwardRef(
|
|
3936
3969
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
3937
|
-
return /* @__PURE__ */ (0,
|
|
3970
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material22.Typography, { ref, variant: "caption", color, ...props, children });
|
|
3938
3971
|
}
|
|
3939
3972
|
);
|
|
3940
3973
|
Caption.displayName = "ToolkitCaption";
|
|
@@ -3942,10 +3975,10 @@ Caption.displayName = "ToolkitCaption";
|
|
|
3942
3975
|
// src/foundation/Overline/Overline.tsx
|
|
3943
3976
|
var import_react27 = __toESM(require("react"));
|
|
3944
3977
|
var import_material23 = require("@mui/material");
|
|
3945
|
-
var
|
|
3978
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3946
3979
|
var Overline = import_react27.default.forwardRef(
|
|
3947
3980
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
3948
|
-
return /* @__PURE__ */ (0,
|
|
3981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material23.Typography, { ref, variant: "overline", color, ...props, children });
|
|
3949
3982
|
}
|
|
3950
3983
|
);
|
|
3951
3984
|
Overline.displayName = "ToolkitOverline";
|
|
@@ -3953,10 +3986,10 @@ Overline.displayName = "ToolkitOverline";
|
|
|
3953
3986
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
3954
3987
|
var import_react28 = __toESM(require("react"));
|
|
3955
3988
|
var import_material24 = require("@mui/material");
|
|
3956
|
-
var
|
|
3989
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3957
3990
|
var TypographyButton = import_react28.default.forwardRef(
|
|
3958
3991
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
3959
|
-
return /* @__PURE__ */ (0,
|
|
3992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_material24.Typography, { ref, variant: "button", color, ...props, children });
|
|
3960
3993
|
}
|
|
3961
3994
|
);
|
|
3962
3995
|
TypographyButton.displayName = "ToolkitTypographyButton";
|