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