@octoguide/mui-ui-toolkit 0.7.4 → 0.7.6

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.mjs CHANGED
@@ -1256,11 +1256,77 @@ function Button({ loading, disabled, children, ...props }) {
1256
1256
  }
1257
1257
  Button.displayName = "ToolkitButton";
1258
1258
 
1259
+ // src/components/ConfirmDialog/ConfirmDialog.tsx
1260
+ import Dialog from "@mui/material/Dialog";
1261
+ import DialogContent from "@mui/material/DialogContent";
1262
+ import DialogActions from "@mui/material/DialogActions";
1263
+ import MuiButton2 from "@mui/material/Button";
1264
+
1265
+ // src/components/ConfirmDialog/ConfirmDialog.styles.tsx
1266
+ import { styled as styled3 } from "@mui/material/styles";
1267
+ import DialogTitle from "@mui/material/DialogTitle";
1268
+ import DialogContentText from "@mui/material/DialogContentText";
1269
+ var StyledDialogTitle = styled3(DialogTitle, {
1270
+ shouldForwardProp: (prop) => prop !== "$darkBg"
1271
+ })(({ theme, $darkBg }) => ({
1272
+ color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary
1273
+ }));
1274
+ var StyledDialogContentText = styled3(DialogContentText, {
1275
+ shouldForwardProp: (prop) => prop !== "$darkBg"
1276
+ })(({ theme, $darkBg }) => ({
1277
+ color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textSecondary
1278
+ }));
1279
+
1280
+ // src/components/ConfirmDialog/ConfirmDialog.tsx
1281
+ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
1282
+ function ConfirmDialog({
1283
+ open,
1284
+ title,
1285
+ description,
1286
+ confirmLabel = "Confirm",
1287
+ cancelLabel = "Cancel",
1288
+ severity,
1289
+ loading = false,
1290
+ onConfirm,
1291
+ onClose,
1292
+ isOnDarkBg = false
1293
+ }) {
1294
+ const confirmColor = severity === "danger" ? "error" : severity === "warning" ? "warning" : "primary";
1295
+ return /* @__PURE__ */ jsxs2(
1296
+ Dialog,
1297
+ {
1298
+ open,
1299
+ onClose: loading ? void 0 : onClose,
1300
+ "data-component-id": "ConfirmDialog",
1301
+ maxWidth: "xs",
1302
+ fullWidth: true,
1303
+ children: [
1304
+ /* @__PURE__ */ jsx5(StyledDialogTitle, { $darkBg: isOnDarkBg, children: title }),
1305
+ description && /* @__PURE__ */ jsx5(DialogContent, { children: /* @__PURE__ */ jsx5(StyledDialogContentText, { $darkBg: isOnDarkBg, children: description }) }),
1306
+ /* @__PURE__ */ jsxs2(DialogActions, { sx: { px: 3, pb: 2, gap: 1 }, children: [
1307
+ /* @__PURE__ */ jsx5(MuiButton2, { variant: "text", onClick: onClose, disabled: loading, children: cancelLabel }),
1308
+ /* @__PURE__ */ jsx5(
1309
+ Button,
1310
+ {
1311
+ variant: "contained",
1312
+ color: confirmColor,
1313
+ loading,
1314
+ onClick: onConfirm,
1315
+ children: confirmLabel
1316
+ }
1317
+ )
1318
+ ] })
1319
+ ]
1320
+ }
1321
+ );
1322
+ }
1323
+ ConfirmDialog.displayName = "ToolkitConfirmDialog";
1324
+
1259
1325
  // src/components/Chip/Chip.tsx
1260
1326
  import { Chip as MuiChip, SvgIcon as SvgIcon2 } from "@mui/material";
1261
- import { jsx as jsx5 } from "react/jsx-runtime";
1327
+ import { jsx as jsx6 } from "react/jsx-runtime";
1262
1328
  function CircleXIcon(props) {
1263
- return /* @__PURE__ */ jsx5(SvgIcon2, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5(
1329
+ return /* @__PURE__ */ jsx6(SvgIcon2, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx6(
1264
1330
  "path",
1265
1331
  {
1266
1332
  fill: "currentColor",
@@ -1271,12 +1337,12 @@ function CircleXIcon(props) {
1271
1337
  ) });
1272
1338
  }
1273
1339
  function Chip({ deleteIcon, onDelete, ...props }) {
1274
- return /* @__PURE__ */ jsx5(
1340
+ return /* @__PURE__ */ jsx6(
1275
1341
  MuiChip,
1276
1342
  {
1277
1343
  ...props,
1278
1344
  onDelete,
1279
- deleteIcon: onDelete ? deleteIcon ?? /* @__PURE__ */ jsx5(CircleXIcon, {}) : void 0
1345
+ deleteIcon: onDelete ? deleteIcon ?? /* @__PURE__ */ jsx6(CircleXIcon, {}) : void 0
1280
1346
  }
1281
1347
  );
1282
1348
  }
@@ -1289,9 +1355,9 @@ import {
1289
1355
  CardHeader as MuiCardHeader,
1290
1356
  CardActions as MuiCardActions
1291
1357
  } from "@mui/material";
1292
- import { styled as styled3 } from "@mui/material/styles";
1293
- import { jsx as jsx6 } from "react/jsx-runtime";
1294
- var StyledCard = styled3(MuiCard, {
1358
+ import { styled as styled4 } from "@mui/material/styles";
1359
+ import { jsx as jsx7 } from "react/jsx-runtime";
1360
+ var StyledCard = styled4(MuiCard, {
1295
1361
  shouldForwardProp: (prop) => prop !== "compact"
1296
1362
  })(({ theme, compact }) => ({
1297
1363
  padding: compact ? theme.tokens.components.card.paddingCompact : theme.tokens.components.card.padding,
@@ -1306,7 +1372,7 @@ var StyledCard = styled3(MuiCard, {
1306
1372
  }
1307
1373
  }));
1308
1374
  function Card({ compact, children, ...props }) {
1309
- return /* @__PURE__ */ jsx6(StyledCard, { compact, ...props, children });
1375
+ return /* @__PURE__ */ jsx7(StyledCard, { compact, ...props, children });
1310
1376
  }
1311
1377
  var CardContent = MuiCardContent;
1312
1378
  var CardHeader = MuiCardHeader;
@@ -1319,11 +1385,11 @@ import {
1319
1385
  AlertTitle as MuiAlertTitle,
1320
1386
  SvgIcon as SvgIcon3
1321
1387
  } from "@mui/material";
1322
- import { jsx as jsx7 } from "react/jsx-runtime";
1323
- var InfoIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2", clipRule: "evenodd" }) });
1324
- var SuccessIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0", clipRule: "evenodd" }) });
1325
- var WarningIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2", clipRule: "evenodd" }) });
1326
- var ErrorIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75", clipRule: "evenodd" }) });
1388
+ import { jsx as jsx8 } from "react/jsx-runtime";
1389
+ var InfoIcon = /* @__PURE__ */ jsx8(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2", clipRule: "evenodd" }) });
1390
+ var SuccessIcon = /* @__PURE__ */ jsx8(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0", clipRule: "evenodd" }) });
1391
+ var WarningIcon = /* @__PURE__ */ jsx8(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2", clipRule: "evenodd" }) });
1392
+ var ErrorIcon = /* @__PURE__ */ jsx8(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx8("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75", clipRule: "evenodd" }) });
1327
1393
  var defaultIconMapping = {
1328
1394
  info: InfoIcon,
1329
1395
  success: SuccessIcon,
@@ -1331,10 +1397,10 @@ var defaultIconMapping = {
1331
1397
  error: ErrorIcon
1332
1398
  };
1333
1399
  function Alert({ iconMapping, ...props }) {
1334
- return /* @__PURE__ */ jsx7(MuiAlert, { iconMapping: { ...defaultIconMapping, ...iconMapping }, ...props });
1400
+ return /* @__PURE__ */ jsx8(MuiAlert, { iconMapping: { ...defaultIconMapping, ...iconMapping }, ...props });
1335
1401
  }
1336
1402
  function AlertTitle(props) {
1337
- return /* @__PURE__ */ jsx7(MuiAlertTitle, { ...props });
1403
+ return /* @__PURE__ */ jsx8(MuiAlertTitle, { ...props });
1338
1404
  }
1339
1405
  Alert.displayName = "ToolkitAlert";
1340
1406
  AlertTitle.displayName = "ToolkitAlertTitle";
@@ -1345,10 +1411,10 @@ import {
1345
1411
  AccordionSummary as MuiAccordionSummary,
1346
1412
  AccordionDetails as MuiAccordionDetails
1347
1413
  } from "@mui/material";
1348
- import { styled as styled4 } from "@mui/material/styles";
1414
+ import { styled as styled5 } from "@mui/material/styles";
1349
1415
  import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
1350
- import { jsx as jsx8 } from "react/jsx-runtime";
1351
- var StandaloneAccordion = styled4(MuiAccordion)(({ theme }) => ({
1416
+ import { jsx as jsx9 } from "react/jsx-runtime";
1417
+ var StandaloneAccordion = styled5(MuiAccordion)(({ theme }) => ({
1352
1418
  borderRadius: `${theme.tokens.components.accordion.standaloneRadius} !important`,
1353
1419
  backgroundColor: theme.tokens.components.accordion.standaloneBackground,
1354
1420
  boxShadow: "none",
@@ -1365,13 +1431,13 @@ var StandaloneAccordion = styled4(MuiAccordion)(({ theme }) => ({
1365
1431
  }
1366
1432
  }));
1367
1433
  function Accordion(props) {
1368
- return /* @__PURE__ */ jsx8(MuiAccordion, { ...props });
1434
+ return /* @__PURE__ */ jsx9(MuiAccordion, { ...props });
1369
1435
  }
1370
1436
  function AccordionSummary({ expandIcon, ...props }) {
1371
- return /* @__PURE__ */ jsx8(MuiAccordionSummary, { expandIcon: expandIcon ?? /* @__PURE__ */ jsx8(ExpandMoreIcon, {}), ...props });
1437
+ return /* @__PURE__ */ jsx9(MuiAccordionSummary, { expandIcon: expandIcon ?? /* @__PURE__ */ jsx9(ExpandMoreIcon, {}), ...props });
1372
1438
  }
1373
1439
  function AccordionDetails(props) {
1374
- return /* @__PURE__ */ jsx8(MuiAccordionDetails, { ...props });
1440
+ return /* @__PURE__ */ jsx9(MuiAccordionDetails, { ...props });
1375
1441
  }
1376
1442
  Accordion.displayName = "ToolkitAccordion";
1377
1443
  AccordionSummary.displayName = "ToolkitAccordionSummary";
@@ -1380,9 +1446,9 @@ StandaloneAccordion.displayName = "ToolkitStandaloneAccordion";
1380
1446
 
1381
1447
  // src/components/Avatar/Avatar.tsx
1382
1448
  import MuiAvatar from "@mui/material/Avatar";
1383
- import { styled as styled5 } from "@mui/material/styles";
1449
+ import { styled as styled6 } from "@mui/material/styles";
1384
1450
  import { default as default2 } from "@mui/material/AvatarGroup";
1385
- import { jsx as jsx9 } from "react/jsx-runtime";
1451
+ import { jsx as jsx10 } from "react/jsx-runtime";
1386
1452
  function getDimension(avatar, size) {
1387
1453
  const map = {
1388
1454
  xs: avatar.sizeXs,
@@ -1394,7 +1460,7 @@ function getDimension(avatar, size) {
1394
1460
  };
1395
1461
  return map[size];
1396
1462
  }
1397
- var StyledAvatar = styled5(MuiAvatar, {
1463
+ var StyledAvatar = styled6(MuiAvatar, {
1398
1464
  shouldForwardProp: (prop) => prop !== "size"
1399
1465
  })(({ theme, size = "md" }) => {
1400
1466
  const dimension = getDimension(theme.tokens.components.avatar, size);
@@ -1404,7 +1470,7 @@ var StyledAvatar = styled5(MuiAvatar, {
1404
1470
  };
1405
1471
  });
1406
1472
  function Avatar({ size = "md", ...props }) {
1407
- return /* @__PURE__ */ jsx9(StyledAvatar, { size, ...props });
1473
+ return /* @__PURE__ */ jsx10(StyledAvatar, { size, ...props });
1408
1474
  }
1409
1475
 
1410
1476
  // src/components/ToggleButton/ToggleButton.tsx
@@ -1412,13 +1478,13 @@ import {
1412
1478
  ToggleButton as MuiToggleButton,
1413
1479
  ToggleButtonGroup as MuiToggleButtonGroup
1414
1480
  } from "@mui/material";
1415
- import { jsx as jsx10 } from "react/jsx-runtime";
1481
+ import { jsx as jsx11 } from "react/jsx-runtime";
1416
1482
  function ToggleButton(props) {
1417
- return /* @__PURE__ */ jsx10(MuiToggleButton, { ...props });
1483
+ return /* @__PURE__ */ jsx11(MuiToggleButton, { ...props });
1418
1484
  }
1419
1485
  ToggleButton.displayName = "ToolkitToggleButton";
1420
1486
  function ToggleButtonGroup(props) {
1421
- return /* @__PURE__ */ jsx10(MuiToggleButtonGroup, { ...props });
1487
+ return /* @__PURE__ */ jsx11(MuiToggleButtonGroup, { ...props });
1422
1488
  }
1423
1489
  ToggleButtonGroup.displayName = "ToolkitToggleButtonGroup";
1424
1490
 
@@ -1474,83 +1540,83 @@ import {
1474
1540
  import {
1475
1541
  DateCalendar as MuiDateCalendar
1476
1542
  } from "@mui/x-date-pickers/DateCalendar";
1477
- import Dialog from "@mui/material/Dialog";
1478
- import DialogContent from "@mui/material/DialogContent";
1479
- import DialogActions from "@mui/material/DialogActions";
1543
+ import Dialog2 from "@mui/material/Dialog";
1544
+ import DialogContent2 from "@mui/material/DialogContent";
1545
+ import DialogActions2 from "@mui/material/DialogActions";
1480
1546
  import Button2 from "@mui/material/Button";
1481
1547
  import Box from "@mui/material/Box";
1482
1548
  import TextField3 from "@mui/material/TextField";
1483
- import { styled as styled6 } from "@mui/material/styles";
1484
- import { Fragment, jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
1549
+ import { styled as styled7 } from "@mui/material/styles";
1550
+ import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
1485
1551
  function DateLocalizationProvider({ children }) {
1486
- return /* @__PURE__ */ jsx11(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
1552
+ return /* @__PURE__ */ jsx12(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
1487
1553
  }
1488
1554
  DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
1489
1555
  function DatePicker(props) {
1490
- return /* @__PURE__ */ jsx11(MuiDatePicker, { ...props });
1556
+ return /* @__PURE__ */ jsx12(MuiDatePicker, { ...props });
1491
1557
  }
1492
1558
  DatePicker.displayName = "ToolkitDatePicker";
1493
1559
  function DesktopDatePicker(props) {
1494
- return /* @__PURE__ */ jsx11(MuiDesktopDatePicker, { ...props });
1560
+ return /* @__PURE__ */ jsx12(MuiDesktopDatePicker, { ...props });
1495
1561
  }
1496
1562
  DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
1497
1563
  function MobileDatePicker(props) {
1498
- return /* @__PURE__ */ jsx11(MuiMobileDatePicker, { ...props });
1564
+ return /* @__PURE__ */ jsx12(MuiMobileDatePicker, { ...props });
1499
1565
  }
1500
1566
  MobileDatePicker.displayName = "ToolkitMobileDatePicker";
1501
1567
  function DateField(props) {
1502
- return /* @__PURE__ */ jsx11(MuiDateField, { ...props });
1568
+ return /* @__PURE__ */ jsx12(MuiDateField, { ...props });
1503
1569
  }
1504
1570
  DateField.displayName = "ToolkitDateField";
1505
1571
  function StaticDatePicker(props) {
1506
- return /* @__PURE__ */ jsx11(MuiStaticDatePicker, { ...props });
1572
+ return /* @__PURE__ */ jsx12(MuiStaticDatePicker, { ...props });
1507
1573
  }
1508
1574
  StaticDatePicker.displayName = "ToolkitStaticDatePicker";
1509
1575
  function TimePicker(props) {
1510
- return /* @__PURE__ */ jsx11(MuiTimePicker, { ...props });
1576
+ return /* @__PURE__ */ jsx12(MuiTimePicker, { ...props });
1511
1577
  }
1512
1578
  TimePicker.displayName = "ToolkitTimePicker";
1513
1579
  function DesktopTimePicker(props) {
1514
- return /* @__PURE__ */ jsx11(MuiDesktopTimePicker, { ...props });
1580
+ return /* @__PURE__ */ jsx12(MuiDesktopTimePicker, { ...props });
1515
1581
  }
1516
1582
  DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
1517
1583
  function MobileTimePicker(props) {
1518
- return /* @__PURE__ */ jsx11(MuiMobileTimePicker, { ...props });
1584
+ return /* @__PURE__ */ jsx12(MuiMobileTimePicker, { ...props });
1519
1585
  }
1520
1586
  MobileTimePicker.displayName = "ToolkitMobileTimePicker";
1521
1587
  function TimeField(props) {
1522
- return /* @__PURE__ */ jsx11(MuiTimeField, { ...props });
1588
+ return /* @__PURE__ */ jsx12(MuiTimeField, { ...props });
1523
1589
  }
1524
1590
  TimeField.displayName = "ToolkitTimeField";
1525
1591
  function StaticTimePicker(props) {
1526
- return /* @__PURE__ */ jsx11(MuiStaticTimePicker, { ...props });
1592
+ return /* @__PURE__ */ jsx12(MuiStaticTimePicker, { ...props });
1527
1593
  }
1528
1594
  StaticTimePicker.displayName = "ToolkitStaticTimePicker";
1529
1595
  function DateTimePicker(props) {
1530
- return /* @__PURE__ */ jsx11(MuiDateTimePicker, { ...props });
1596
+ return /* @__PURE__ */ jsx12(MuiDateTimePicker, { ...props });
1531
1597
  }
1532
1598
  DateTimePicker.displayName = "ToolkitDateTimePicker";
1533
1599
  function DesktopDateTimePicker(props) {
1534
- return /* @__PURE__ */ jsx11(MuiDesktopDateTimePicker, { ...props });
1600
+ return /* @__PURE__ */ jsx12(MuiDesktopDateTimePicker, { ...props });
1535
1601
  }
1536
1602
  DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
1537
1603
  function MobileDateTimePicker(props) {
1538
- return /* @__PURE__ */ jsx11(MuiMobileDateTimePicker, { ...props });
1604
+ return /* @__PURE__ */ jsx12(MuiMobileDateTimePicker, { ...props });
1539
1605
  }
1540
1606
  MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
1541
1607
  function DateTimeField(props) {
1542
- return /* @__PURE__ */ jsx11(MuiDateTimeField, { ...props });
1608
+ return /* @__PURE__ */ jsx12(MuiDateTimeField, { ...props });
1543
1609
  }
1544
1610
  DateTimeField.displayName = "ToolkitDateTimeField";
1545
1611
  function StaticDateTimePicker(props) {
1546
- return /* @__PURE__ */ jsx11(MuiStaticDateTimePicker, { ...props });
1612
+ return /* @__PURE__ */ jsx12(MuiStaticDateTimePicker, { ...props });
1547
1613
  }
1548
1614
  StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
1549
1615
  function DateCalendar(props) {
1550
- return /* @__PURE__ */ jsx11(MuiDateCalendar, { ...props });
1616
+ return /* @__PURE__ */ jsx12(MuiDateCalendar, { ...props });
1551
1617
  }
1552
1618
  DateCalendar.displayName = "ToolkitDateCalendar";
1553
- var RangeRow = styled6(Box)(({ theme }) => ({
1619
+ var RangeRow = styled7(Box)(({ theme }) => ({
1554
1620
  display: "flex",
1555
1621
  gap: theme.spacing(2),
1556
1622
  alignItems: "center"
@@ -1573,11 +1639,11 @@ function DateRangePickerInput({
1573
1639
  onChange(draft);
1574
1640
  setOpen(false);
1575
1641
  };
1576
- return /* @__PURE__ */ jsxs2(Fragment, { children: [
1577
- /* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
1578
- /* @__PURE__ */ jsxs2(Dialog, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
1579
- /* @__PURE__ */ jsx11(DialogContent, { children: /* @__PURE__ */ jsxs2(RangeRow, { children: [
1580
- /* @__PURE__ */ jsx11(
1642
+ return /* @__PURE__ */ jsxs3(Fragment, { children: [
1643
+ /* @__PURE__ */ jsx12(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
1644
+ /* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
1645
+ /* @__PURE__ */ jsx12(DialogContent2, { children: /* @__PURE__ */ jsxs3(RangeRow, { children: [
1646
+ /* @__PURE__ */ jsx12(
1581
1647
  MuiDatePicker,
1582
1648
  {
1583
1649
  label: startLabel,
@@ -1586,7 +1652,7 @@ function DateRangePickerInput({
1586
1652
  slotProps: { textField: { fullWidth: true } }
1587
1653
  }
1588
1654
  ),
1589
- /* @__PURE__ */ jsx11(
1655
+ /* @__PURE__ */ jsx12(
1590
1656
  MuiDatePicker,
1591
1657
  {
1592
1658
  label: endLabel,
@@ -1596,9 +1662,9 @@ function DateRangePickerInput({
1596
1662
  }
1597
1663
  )
1598
1664
  ] }) }),
1599
- /* @__PURE__ */ jsxs2(DialogActions, { children: [
1600
- /* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
1601
- /* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
1665
+ /* @__PURE__ */ jsxs3(DialogActions2, { children: [
1666
+ /* @__PURE__ */ jsx12(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
1667
+ /* @__PURE__ */ jsx12(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
1602
1668
  ] })
1603
1669
  ] })
1604
1670
  ] });
@@ -1630,11 +1696,11 @@ function DateRangePickerCalendar({
1630
1696
  setDraft((prev) => ({ ...prev, end: date }));
1631
1697
  }
1632
1698
  };
1633
- return /* @__PURE__ */ jsxs2(Fragment, { children: [
1634
- /* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
1635
- /* @__PURE__ */ jsxs2(Dialog, { open, onClose: handleCancel, children: [
1636
- /* @__PURE__ */ jsxs2(DialogContent, { sx: { p: 1 }, children: [
1637
- /* @__PURE__ */ jsx11(Box, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx11(
1699
+ return /* @__PURE__ */ jsxs3(Fragment, { children: [
1700
+ /* @__PURE__ */ jsx12(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
1701
+ /* @__PURE__ */ jsxs3(Dialog2, { open, onClose: handleCancel, children: [
1702
+ /* @__PURE__ */ jsxs3(DialogContent2, { sx: { p: 1 }, children: [
1703
+ /* @__PURE__ */ jsx12(Box, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx12(
1638
1704
  TextField3,
1639
1705
  {
1640
1706
  size: "small",
@@ -1644,7 +1710,7 @@ function DateRangePickerCalendar({
1644
1710
  fullWidth: true
1645
1711
  }
1646
1712
  ) }),
1647
- /* @__PURE__ */ jsx11(
1713
+ /* @__PURE__ */ jsx12(
1648
1714
  MuiDateCalendar,
1649
1715
  {
1650
1716
  value: selecting === "start" ? draft.start : draft.end,
@@ -1652,9 +1718,9 @@ function DateRangePickerCalendar({
1652
1718
  }
1653
1719
  )
1654
1720
  ] }),
1655
- /* @__PURE__ */ jsxs2(DialogActions, { children: [
1656
- /* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
1657
- /* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
1721
+ /* @__PURE__ */ jsxs3(DialogActions2, { children: [
1722
+ /* @__PURE__ */ jsx12(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
1723
+ /* @__PURE__ */ jsx12(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
1658
1724
  ] })
1659
1725
  ] })
1660
1726
  ] });
@@ -1663,9 +1729,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
1663
1729
 
1664
1730
  // src/foundation/Grid/Grid.tsx
1665
1731
  import { Grid2 as MuiGrid2 } from "@mui/material";
1666
- import { jsx as jsx12 } from "react/jsx-runtime";
1732
+ import { jsx as jsx13 } from "react/jsx-runtime";
1667
1733
  function Grid({ container, spacing, ...props }) {
1668
- return /* @__PURE__ */ jsx12(
1734
+ return /* @__PURE__ */ jsx13(
1669
1735
  MuiGrid2,
1670
1736
  {
1671
1737
  container,
@@ -1680,9 +1746,9 @@ Grid.displayName = "ToolkitGrid";
1680
1746
  import React4 from "react";
1681
1747
 
1682
1748
  // src/components/IconText/IconText.styles.tsx
1683
- import { styled as styled7 } from "@mui/material/styles";
1749
+ import { styled as styled8 } from "@mui/material/styles";
1684
1750
  import { SvgIcon as SvgIcon4 } from "@mui/material";
1685
- var StyledIconTextRoot = styled7("div")(
1751
+ var StyledIconTextRoot = styled8("div")(
1686
1752
  ({ $inheritFontFamily }) => ({
1687
1753
  display: "flex",
1688
1754
  alignItems: "center",
@@ -1698,7 +1764,7 @@ var StyledIconTextRoot = styled7("div")(
1698
1764
  }
1699
1765
  })
1700
1766
  );
1701
- var StyledIconTextSymbol = styled7(SvgIcon4, {
1767
+ var StyledIconTextSymbol = styled8(SvgIcon4, {
1702
1768
  shouldForwardProp: (prop) => prop !== "$position"
1703
1769
  })(({ theme, $position }) => ({
1704
1770
  flexShrink: 0,
@@ -1707,7 +1773,7 @@ var StyledIconTextSymbol = styled7(SvgIcon4, {
1707
1773
  }));
1708
1774
 
1709
1775
  // src/components/IconText/IconText.tsx
1710
- import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
1776
+ import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
1711
1777
  var IconText = React4.forwardRef(
1712
1778
  function IconText2({
1713
1779
  symbol,
@@ -1717,17 +1783,17 @@ var IconText = React4.forwardRef(
1717
1783
  children,
1718
1784
  ...rest
1719
1785
  }, ref) {
1720
- const icon = /* @__PURE__ */ jsx13(
1786
+ const icon = /* @__PURE__ */ jsx14(
1721
1787
  StyledIconTextSymbol,
1722
1788
  {
1723
1789
  $position: symbolPosition,
1724
1790
  viewBox: symbol.viewBox ?? "0 0 24 24",
1725
1791
  "aria-hidden": "true",
1726
1792
  ...symbolProps,
1727
- children: symbol.content && /* @__PURE__ */ jsx13("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
1793
+ children: symbol.content && /* @__PURE__ */ jsx14("g", { dangerouslySetInnerHTML: { __html: symbol.content } })
1728
1794
  }
1729
1795
  );
1730
- return /* @__PURE__ */ jsxs3(
1796
+ return /* @__PURE__ */ jsxs4(
1731
1797
  StyledIconTextRoot,
1732
1798
  {
1733
1799
  ref,
@@ -1749,8 +1815,8 @@ import ChevronRightIcon from "@mui/icons-material/ChevronRight";
1749
1815
 
1750
1816
  // src/components/InternalLinkItem/InternalLinkItem.styles.tsx
1751
1817
  import Box2 from "@mui/material/Box";
1752
- import { styled as styled8 } from "@mui/material/styles";
1753
- var StyledWrapper = styled8("div")(({ theme }) => ({
1818
+ import { styled as styled9 } from "@mui/material/styles";
1819
+ var StyledWrapper = styled9("div")(({ theme }) => ({
1754
1820
  "& > a, & > div": {
1755
1821
  textDecoration: "none",
1756
1822
  color: theme.tokens.colors.textPrimary,
@@ -1759,7 +1825,7 @@ var StyledWrapper = styled8("div")(({ theme }) => ({
1759
1825
  }
1760
1826
  }
1761
1827
  }));
1762
- var StyledListItemContainer = styled8(Box2)(({ theme }) => ({
1828
+ var StyledListItemContainer = styled9(Box2)(({ theme }) => ({
1763
1829
  width: "100%",
1764
1830
  minHeight: "66px",
1765
1831
  borderTop: `1px solid ${theme.tokens.colors.divider}`,
@@ -1802,19 +1868,19 @@ var StyledListItemContainer = styled8(Box2)(({ theme }) => ({
1802
1868
  outlineStyle: "solid"
1803
1869
  }
1804
1870
  }));
1805
- var StyledLeftIconWrapper = styled8("span")({
1871
+ var StyledLeftIconWrapper = styled9("span")({
1806
1872
  display: "flex",
1807
1873
  paddingLeft: "4px"
1808
1874
  });
1809
- var StyledRightIconWrapper = styled8("span")({
1875
+ var StyledRightIconWrapper = styled9("span")({
1810
1876
  display: "flex",
1811
1877
  paddingRight: "4px"
1812
1878
  });
1813
- var StyledLabelContainer = styled8("div")({
1879
+ var StyledLabelContainer = styled9("div")({
1814
1880
  flex: 1,
1815
1881
  padding: "12px 8px"
1816
1882
  });
1817
- var StyledLabel = styled8("p")(({ theme }) => ({
1883
+ var StyledLabel = styled9("p")(({ theme }) => ({
1818
1884
  fontFamily: theme.tokens.typography.fontFamilyBase,
1819
1885
  fontSize: theme.tokens.typography.fontSizeLg,
1820
1886
  lineHeight: "20px",
@@ -1822,7 +1888,7 @@ var StyledLabel = styled8("p")(({ theme }) => ({
1822
1888
  margin: 0,
1823
1889
  textDecoration: "none"
1824
1890
  }));
1825
- var StyledCaption = styled8("p")(({ theme }) => ({
1891
+ var StyledCaption = styled9("p")(({ theme }) => ({
1826
1892
  fontFamily: theme.tokens.typography.fontFamilyBase,
1827
1893
  color: theme.tokens.colors.textSecondary,
1828
1894
  fontSize: theme.tokens.typography.fontSizeLg,
@@ -1833,7 +1899,7 @@ var StyledCaption = styled8("p")(({ theme }) => ({
1833
1899
  }));
1834
1900
 
1835
1901
  // src/components/InternalLinkItem/InternalLinkItem.tsx
1836
- import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
1902
+ import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
1837
1903
  function InternalLinkItem({
1838
1904
  link,
1839
1905
  icon,
@@ -1842,19 +1908,19 @@ function InternalLinkItem({
1842
1908
  component,
1843
1909
  ...restProps
1844
1910
  }) {
1845
- return /* @__PURE__ */ jsx14(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs4(
1911
+ return /* @__PURE__ */ jsx15(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs5(
1846
1912
  StyledListItemContainer,
1847
1913
  {
1848
1914
  component: component ?? "a",
1849
1915
  href: link,
1850
1916
  ...getCleanProps(restProps),
1851
1917
  children: [
1852
- icon && /* @__PURE__ */ jsx14(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
1853
- /* @__PURE__ */ jsxs4(StyledLabelContainer, { children: [
1854
- /* @__PURE__ */ jsx14(StyledLabel, { className: "itemLabel", children: label }),
1855
- caption && /* @__PURE__ */ jsx14(StyledCaption, { children: caption })
1918
+ icon && /* @__PURE__ */ jsx15(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
1919
+ /* @__PURE__ */ jsxs5(StyledLabelContainer, { children: [
1920
+ /* @__PURE__ */ jsx15(StyledLabel, { className: "itemLabel", children: label }),
1921
+ caption && /* @__PURE__ */ jsx15(StyledCaption, { children: caption })
1856
1922
  ] }),
1857
- /* @__PURE__ */ jsx14(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx14(ChevronRightIcon, { fontSize: "small" }) })
1923
+ /* @__PURE__ */ jsx15(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx15(ChevronRightIcon, { fontSize: "small" }) })
1858
1924
  ]
1859
1925
  }
1860
1926
  ) });
@@ -1868,8 +1934,8 @@ import SvgIcon5 from "@mui/material/SvgIcon";
1868
1934
 
1869
1935
  // src/components/Link/Link.styles.tsx
1870
1936
  import Box3 from "@mui/material/Box";
1871
- import { styled as styled9, alpha as alpha2 } from "@mui/material/styles";
1872
- var StyledScreenReaderOnly = styled9("span")({
1937
+ import { styled as styled10, alpha as alpha2 } from "@mui/material/styles";
1938
+ var StyledScreenReaderOnly = styled10("span")({
1873
1939
  position: "absolute",
1874
1940
  width: "1px",
1875
1941
  height: "1px",
@@ -1880,7 +1946,7 @@ var StyledScreenReaderOnly = styled9("span")({
1880
1946
  whiteSpace: "nowrap",
1881
1947
  border: 0
1882
1948
  });
1883
- var StyledIconSpan = styled9("span", {
1949
+ var StyledIconSpan = styled10("span", {
1884
1950
  shouldForwardProp: (prop) => prop !== "iconRight"
1885
1951
  })(({ iconRight }) => ({
1886
1952
  display: "inline-flex",
@@ -1888,7 +1954,7 @@ var StyledIconSpan = styled9("span", {
1888
1954
  paddingLeft: iconRight ? "4px" : void 0,
1889
1955
  paddingRight: iconRight ? void 0 : "4px"
1890
1956
  }));
1891
- var StyledAnchor = styled9(Box3, {
1957
+ var StyledAnchor = styled10(Box3, {
1892
1958
  shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconRight"].includes(prop)
1893
1959
  })(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconRight }) => {
1894
1960
  const resolvedTint = isOnDarkBg ? "white" : tint;
@@ -1947,14 +2013,14 @@ var StyledAnchor = styled9(Box3, {
1947
2013
  });
1948
2014
 
1949
2015
  // src/components/Link/Link.tsx
1950
- import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
2016
+ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
1951
2017
  var Variant = {
1952
2018
  standard: "standard",
1953
2019
  external: "external",
1954
2020
  file: "file"
1955
2021
  };
1956
2022
  function DocumentIcon() {
1957
- return /* @__PURE__ */ jsx15(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx15(
2023
+ return /* @__PURE__ */ jsx16(SvgIcon5, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx16(
1958
2024
  "path",
1959
2025
  {
1960
2026
  fillRule: "evenodd",
@@ -1989,7 +2055,7 @@ var Link = React5.forwardRef(function Link2({
1989
2055
  const target = variant !== Variant.standard ? "_blank" : targetProp;
1990
2056
  const iconRight = variant === Variant.external ? true : !!iconToRight;
1991
2057
  const urlProp = component ? { to: href } : { href };
1992
- return /* @__PURE__ */ jsxs5(
2058
+ return /* @__PURE__ */ jsxs6(
1993
2059
  StyledAnchor,
1994
2060
  {
1995
2061
  component: component ?? "a",
@@ -2003,9 +2069,9 @@ var Link = React5.forwardRef(function Link2({
2003
2069
  standalonelink: !!standalone,
2004
2070
  ref,
2005
2071
  children: [
2006
- Icon && /* @__PURE__ */ jsx15(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx15(Icon, { fontSize: "inherit" }) }),
2072
+ Icon && /* @__PURE__ */ jsx16(StyledIconSpan, { iconRight, children: /* @__PURE__ */ jsx16(Icon, { fontSize: "inherit" }) }),
2007
2073
  children,
2008
- variant === Variant.external && /* @__PURE__ */ jsx15(StyledScreenReaderOnly, { children: ", opens in a new tab" })
2074
+ variant === Variant.external && /* @__PURE__ */ jsx16(StyledScreenReaderOnly, { children: ", opens in a new tab" })
2009
2075
  ]
2010
2076
  }
2011
2077
  );
@@ -2017,8 +2083,8 @@ import React6 from "react";
2017
2083
 
2018
2084
  // src/components/LogoLink/LogoLink.styles.tsx
2019
2085
  import Box4 from "@mui/material/Box";
2020
- import { styled as styled10 } from "@mui/material/styles";
2021
- var StyledLogoLink = styled10(Box4, {
2086
+ import { styled as styled11 } from "@mui/material/styles";
2087
+ var StyledLogoLink = styled11(Box4, {
2022
2088
  shouldForwardProp: (prop) => prop !== "isSmall"
2023
2089
  })(({ theme, isSmall }) => ({
2024
2090
  display: "inline-flex",
@@ -2035,7 +2101,7 @@ var StyledLogoLink = styled10(Box4, {
2035
2101
  color: theme.tokens.colors.primaryDark
2036
2102
  }
2037
2103
  }));
2038
- var StyledLogoSpan = styled10("span")(({ theme }) => ({
2104
+ var StyledLogoSpan = styled11("span")(({ theme }) => ({
2039
2105
  padding: "0 10px 0 15px",
2040
2106
  backgroundColor: theme.tokens.colors.primary,
2041
2107
  height: "100%",
@@ -2053,9 +2119,9 @@ var StyledLogoSpan = styled10("span")(({ theme }) => ({
2053
2119
  }));
2054
2120
 
2055
2121
  // src/components/LogoLink/LogoLink.tsx
2056
- import { jsx as jsx16 } from "react/jsx-runtime";
2122
+ import { jsx as jsx17 } from "react/jsx-runtime";
2057
2123
  var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSmall, title = "Home", component, ...restProps }, ref) {
2058
- return /* @__PURE__ */ jsx16(
2124
+ return /* @__PURE__ */ jsx17(
2059
2125
  StyledLogoLink,
2060
2126
  {
2061
2127
  component: component ?? "a",
@@ -2065,14 +2131,620 @@ var LogoLink = React6.forwardRef(function LogoLink2({ children, href = "/", isSm
2065
2131
  "data-component-id": "LogoLink",
2066
2132
  ...getCleanProps(restProps),
2067
2133
  ref,
2068
- children: /* @__PURE__ */ jsx16(StyledLogoSpan, { children })
2134
+ children: /* @__PURE__ */ jsx17(StyledLogoSpan, { children })
2069
2135
  }
2070
2136
  );
2071
2137
  });
2072
2138
  LogoLink.displayName = "ToolkitLogoLink";
2073
2139
 
2140
+ // src/components/MultiSelect/MultiSelect.tsx
2141
+ import React7, { useRef, useMemo, useState as useState3, useEffect as useEffect2, useCallback as useCallback3, useLayoutEffect } from "react";
2142
+ import Popper from "@mui/material/Popper";
2143
+ import Collapse from "@mui/material/Collapse";
2144
+ import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
2145
+
2146
+ // src/utils/focus.ts
2147
+ var focus = (element, forceFocus) => {
2148
+ if (!element) return;
2149
+ if (forceFocus) element.setAttribute("tabindex", "-1");
2150
+ element.focus();
2151
+ };
2152
+
2153
+ // src/hooks/useClickOutside.ts
2154
+ import { useEffect, useCallback } from "react";
2155
+
2156
+ // src/utils/eventPath.ts
2157
+ var getParents = (node, memo = []) => {
2158
+ const parentNode = node.parentNode;
2159
+ if (!parentNode) return memo;
2160
+ return getParents(parentNode, memo.concat([parentNode]));
2161
+ };
2162
+ var eventPath = (event) => {
2163
+ let path = event.composedPath?.() || event.path;
2164
+ const target = event.target;
2165
+ if (path != null) {
2166
+ path = path.indexOf(window) < 0 ? path.concat([window]) : path;
2167
+ return path;
2168
+ }
2169
+ if (target === window) return [window];
2170
+ return [target].concat(getParents(target)).concat([window]);
2171
+ };
2172
+
2173
+ // src/hooks/useClickOutside.ts
2174
+ function useClickOutside(ref, callback, subscribe = true) {
2175
+ const handleClick = useCallback(
2176
+ (event) => {
2177
+ const target = event.target && event.target.shadowRoot ? eventPath(event)[0] : event.target;
2178
+ if (ref.current && !ref.current.contains(target)) {
2179
+ callback();
2180
+ }
2181
+ },
2182
+ [ref, callback]
2183
+ );
2184
+ useEffect(() => {
2185
+ if (typeof document === "undefined") return;
2186
+ if (subscribe) {
2187
+ document.addEventListener("mousedown", handleClick);
2188
+ document.addEventListener("touchstart", handleClick);
2189
+ } else {
2190
+ document.removeEventListener("mousedown", handleClick);
2191
+ document.removeEventListener("touchstart", handleClick);
2192
+ }
2193
+ }, [subscribe, handleClick]);
2194
+ useEffect(() => {
2195
+ return () => {
2196
+ document.removeEventListener("mousedown", handleClick);
2197
+ document.removeEventListener("touchstart", handleClick);
2198
+ };
2199
+ }, [handleClick]);
2200
+ return { handleClick };
2201
+ }
2202
+ var useClickOutside_default = useClickOutside;
2203
+
2204
+ // src/hooks/useMergeRefs.ts
2205
+ import { useCallback as useCallback2 } from "react";
2206
+ var assignRef = (ref, value) => {
2207
+ if (ref == null) return;
2208
+ if (typeof ref === "function") {
2209
+ ref(value);
2210
+ } else {
2211
+ try {
2212
+ ref.current = value;
2213
+ } catch (error) {
2214
+ throw new Error(`Cannot assign value "${value}" to ref "${ref}"`);
2215
+ }
2216
+ }
2217
+ };
2218
+ var useMergeRefs = (...refs) => {
2219
+ return useCallback2((node) => {
2220
+ for (const ref of refs) {
2221
+ assignRef(ref, node);
2222
+ }
2223
+ }, refs);
2224
+ };
2225
+
2226
+ // src/components/MultiSelect/MultiSelect.utils.ts
2227
+ var scrollToRef = (ref) => {
2228
+ const node = ref.current;
2229
+ if (!node || !node.parentNode) return;
2230
+ const parent = node.parentNode;
2231
+ parent.scrollTop = node.offsetTop - parent.offsetHeight / 2 + node.offsetHeight / 2;
2232
+ };
2233
+ var getInputElement = (node) => {
2234
+ if (!node.ref.current) return null;
2235
+ return node.ref.current.querySelector("input");
2236
+ };
2237
+ var getNextOption = (nextIndex, multiSelectOptions) => {
2238
+ const isEndOfList = nextIndex > multiSelectOptions.length - 1;
2239
+ return multiSelectOptions[isEndOfList ? multiSelectOptions.length - 1 : nextIndex];
2240
+ };
2241
+ var getPreviousOption = (previousIndex, multiSelectOptions) => {
2242
+ const isStartOfList = previousIndex < 0;
2243
+ return multiSelectOptions[isStartOfList ? 0 : previousIndex];
2244
+ };
2245
+ var getPlural = (selection, placeholderLabel) => {
2246
+ return selection.length > 1 ? placeholderLabel.plural : placeholderLabel.singular;
2247
+ };
2248
+ var isInViewPort = (ref, offset = 0) => {
2249
+ if (typeof window === "undefined") return null;
2250
+ const node = ref.current;
2251
+ if (!node) return false;
2252
+ const top = node.getBoundingClientRect().top;
2253
+ return top + offset >= 0 && top - offset <= window.innerHeight;
2254
+ };
2255
+
2256
+ // src/components/MultiSelect/MultiSelect.constants.ts
2257
+ var ENTER_KEY = "Enter";
2258
+ var ARROW_DOWN_KEY = "ArrowDown";
2259
+ var ARROW_UP_KEY = "ArrowUp";
2260
+ var TAB_KEY = "Tab";
2261
+ var SPACE_KEY = " ";
2262
+ var ESCAPE_KEY = "Escape";
2263
+ var HOME_KEY = "Home";
2264
+ var END_KEY = "End";
2265
+ var TRANSITION_TIMEOUT = 250;
2266
+ var SELECT_ALL_OPTION = {
2267
+ value: "Select all",
2268
+ label: "Select all"
2269
+ };
2270
+
2271
+ // src/components/MultiSelect/MultiSelect.styles.tsx
2272
+ import { styled as styled12, alpha as alpha3 } from "@mui/material/styles";
2273
+ var StyledMultiSelectContainer = styled12("div")(({ theme }) => ({
2274
+ display: "inline-block",
2275
+ position: "relative",
2276
+ width: "100%",
2277
+ outline: "none",
2278
+ backgroundColor: theme.palette.background.paper,
2279
+ borderRadius: theme.tokens.borderRadius.md,
2280
+ fontFamily: theme.tokens.typography.fontFamilyBase
2281
+ }));
2282
+ var StyledSelectionContainerOutline = styled12("div")(
2283
+ ({ theme, isError }) => ({
2284
+ border: `1px solid ${isError ? theme.tokens.colors.error : theme.tokens.colors.border}`,
2285
+ borderRadius: theme.tokens.borderRadius.md,
2286
+ position: "absolute",
2287
+ top: 0,
2288
+ bottom: 0,
2289
+ left: 0,
2290
+ right: 0,
2291
+ background: "none",
2292
+ zIndex: 0
2293
+ })
2294
+ );
2295
+ var StyledSelectionContainer = styled12("button")(
2296
+ ({ theme, isError }) => ({
2297
+ display: "inline-flex",
2298
+ backgroundColor: theme.palette.background.paper,
2299
+ color: theme.palette.text.primary,
2300
+ width: "100%",
2301
+ alignItems: "center",
2302
+ flexWrap: "wrap",
2303
+ border: "none",
2304
+ textAlign: "left",
2305
+ cursor: "default",
2306
+ padding: theme.spacing(1.5),
2307
+ position: "relative",
2308
+ zIndex: 1,
2309
+ overflow: "hidden",
2310
+ borderRadius: theme.tokens.borderRadius.md,
2311
+ transition: "background-color 0.2s ease",
2312
+ backgroundClip: "content-box",
2313
+ "&:focus": {
2314
+ outline: "none"
2315
+ },
2316
+ '&:focus:not([data-lose-focus="true"])': {
2317
+ boxShadow: `${alpha3(theme.palette.text.primary, 0.65)} 0 0 0 3px`,
2318
+ outlineColor: "transparent",
2319
+ outlineStyle: "solid",
2320
+ borderColor: theme.palette.text.primary,
2321
+ outlineOffset: "-2px",
2322
+ borderRadius: theme.tokens.borderRadius.md
2323
+ },
2324
+ '&:not(:disabled), &[type="button"]:not(:disabled)': {
2325
+ cursor: "default"
2326
+ },
2327
+ ...isError && {
2328
+ boxShadow: `${alpha3(theme.tokens.colors.error, 0.65)} 0 0 0 3px`
2329
+ }
2330
+ })
2331
+ );
2332
+ var StyledSelectPlaceholder = styled12("span")(({ theme }) => ({
2333
+ fontSize: theme.tokens.typography.fontSizeLg,
2334
+ display: "inline-block",
2335
+ flexGrow: 1,
2336
+ width: "auto",
2337
+ border: "none",
2338
+ outline: "none"
2339
+ }));
2340
+ var StyledPopperInner = styled12("div")(({ theme }) => ({
2341
+ width: "100%",
2342
+ overflow: "hidden",
2343
+ boxSizing: "border-box",
2344
+ zIndex: theme.zIndex.tooltip
2345
+ }));
2346
+ var StyledTransitionContainer = styled12("ul")(({ theme }) => ({
2347
+ "&:focus": {
2348
+ outline: "1px solid transparent"
2349
+ },
2350
+ pointerEvents: "all",
2351
+ width: "100%",
2352
+ padding: 0,
2353
+ listStyle: "none",
2354
+ display: "block",
2355
+ cursor: "default",
2356
+ border: `1px solid ${theme.tokens.colors.border}`,
2357
+ borderRadius: theme.tokens.borderRadius.md,
2358
+ boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.2)",
2359
+ marginTop: theme.spacing(1.25),
2360
+ maxHeight: "218px",
2361
+ overflowY: "auto",
2362
+ backgroundColor: theme.palette.background.paper
2363
+ }));
2364
+ var StyledDropdownArrow = styled12("div")(() => ({
2365
+ height: "24px",
2366
+ width: "24px",
2367
+ "& > svg": {
2368
+ transition: "0.2s linear transform"
2369
+ }
2370
+ }));
2371
+
2372
+ // src/components/MultiSelect/MultiSelect.tsx
2373
+ import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
2374
+ var MultiSelect = ({
2375
+ options: initialOptions,
2376
+ placeholder,
2377
+ preSelectedOptions,
2378
+ renderOption,
2379
+ onChange,
2380
+ label,
2381
+ inputId,
2382
+ hasError,
2383
+ hasDescription,
2384
+ hasSelectAll = true,
2385
+ hasTooltip,
2386
+ required,
2387
+ selectButtonRef: providedRef,
2388
+ onBlur,
2389
+ onFocus,
2390
+ onClick,
2391
+ onKeyUp,
2392
+ onKeyDown,
2393
+ onTouchStart,
2394
+ onTouchEnd,
2395
+ ...restProps
2396
+ }) => {
2397
+ const isPortfolio = placeholder.singular === "portfolio";
2398
+ const portfolioPlaceholder = `No ${placeholder.singular} selected`;
2399
+ const [open, setOpen] = useState3(false);
2400
+ const [selection, setSelection] = useState3([]);
2401
+ const [currentOptionIndex, setCurrentOptionIndex] = useState3(-1);
2402
+ const [isError, setIsError] = useState3(false);
2403
+ const [placeholderLabel, setPlaceholderLabel] = useState3(
2404
+ isPortfolio ? portfolioPlaceholder : `Select ${placeholder.plural}`
2405
+ );
2406
+ const [selectAllChecked, setSelectAllChecked] = useState3(false);
2407
+ const multiSelectContainerRef = useRef(null);
2408
+ const triggerWrapperRef = useRef(null);
2409
+ const internalSelectBtnRef = useRef(null);
2410
+ const selectButtonRef = useMergeRefs(providedRef, internalSelectBtnRef);
2411
+ const listRef = useRef(null);
2412
+ const optionRefsMap = useRef(/* @__PURE__ */ new Map());
2413
+ const multiSelectOptions = useMemo(() => {
2414
+ const rawOptions = [...initialOptions];
2415
+ if (hasSelectAll) rawOptions.unshift(SELECT_ALL_OPTION);
2416
+ const result = rawOptions.map((option, index) => {
2417
+ if (!optionRefsMap.current.has(option.value)) {
2418
+ optionRefsMap.current.set(option.value, React7.createRef());
2419
+ }
2420
+ return {
2421
+ original: option,
2422
+ index,
2423
+ ref: optionRefsMap.current.get(option.value),
2424
+ value: option.value,
2425
+ label: option.value === SELECT_ALL_OPTION.value && hasSelectAll ? `${SELECT_ALL_OPTION.label} ${placeholder.plural}` : option.label
2426
+ };
2427
+ });
2428
+ const currentValues = new Set(result.map((o) => o.value));
2429
+ for (const key of optionRefsMap.current.keys()) {
2430
+ if (!currentValues.has(key)) optionRefsMap.current.delete(key);
2431
+ }
2432
+ return result;
2433
+ }, [initialOptions, hasSelectAll, placeholder.plural]);
2434
+ const initialOptionElements = useMemo(
2435
+ () => hasSelectAll ? multiSelectOptions.slice(1) : [...multiSelectOptions],
2436
+ [multiSelectOptions, hasSelectAll]
2437
+ );
2438
+ const areAllOptionsChecked = useCallback3(() => {
2439
+ return selection.length === initialOptions.length;
2440
+ }, [initialOptions, selection]);
2441
+ useEffect2(() => {
2442
+ setIsError(!!hasError);
2443
+ }, [hasError]);
2444
+ useEffect2(() => {
2445
+ if (open) {
2446
+ setCurrentOptionIndex(0);
2447
+ setTimeout(() => {
2448
+ focus(listRef.current, true);
2449
+ }, TRANSITION_TIMEOUT);
2450
+ }
2451
+ }, [open]);
2452
+ useEffect2(() => {
2453
+ multiSelectOptions.forEach((option) => {
2454
+ const selected = selection.some((select) => option.index === select.index);
2455
+ const input = getInputElement(option);
2456
+ if (input) input.checked = selected;
2457
+ });
2458
+ if (hasSelectAll) {
2459
+ const selectAllInput = getInputElement(multiSelectOptions[0]);
2460
+ if (selectAllInput) selectAllInput.checked = areAllOptionsChecked();
2461
+ }
2462
+ if (!open) {
2463
+ scrollToRef(multiSelectOptions[0].ref);
2464
+ setCurrentOptionIndex(-1);
2465
+ }
2466
+ }, [areAllOptionsChecked, selection, currentOptionIndex, open, hasSelectAll]);
2467
+ useEffect2(() => {
2468
+ const newSelection = [];
2469
+ if (preSelectedOptions && preSelectedOptions.length) {
2470
+ preSelectedOptions.forEach((option) => {
2471
+ const match = multiSelectOptions.find(
2472
+ (multiSelectOption) => multiSelectOption.value === option.value
2473
+ );
2474
+ if (match) newSelection.push(match);
2475
+ });
2476
+ setSelection(newSelection);
2477
+ } else {
2478
+ setSelection([]);
2479
+ }
2480
+ if (hasSelectAll) {
2481
+ setSelectAllChecked(initialOptions.length === newSelection.length);
2482
+ }
2483
+ }, [preSelectedOptions, hasSelectAll]);
2484
+ useEffect2(() => {
2485
+ if (selection.length && selection.length === initialOptions.length) {
2486
+ setPlaceholderLabel(`All ${getPlural(selection, placeholder)} selected`);
2487
+ } else {
2488
+ const placeholderState = selection.length ? `${selection.length} ${getPlural(selection, placeholder)} selected` : isPortfolio ? portfolioPlaceholder : `Select ${placeholder.plural}`;
2489
+ setPlaceholderLabel(placeholderState);
2490
+ }
2491
+ }, [selection, placeholder]);
2492
+ useLayoutEffect(() => {
2493
+ setTimeout(() => {
2494
+ const firstNode = multiSelectOptions[0].ref;
2495
+ const scrollToFirstNode = !isInViewPort(firstNode) && open && currentOptionIndex === 0;
2496
+ if (scrollToFirstNode && firstNode.current) {
2497
+ firstNode.current.scrollIntoView({ behavior: "smooth" });
2498
+ }
2499
+ }, TRANSITION_TIMEOUT);
2500
+ }, [open, currentOptionIndex]);
2501
+ useClickOutside_default(multiSelectContainerRef, () => {
2502
+ if (open) setOpen(false);
2503
+ });
2504
+ const handleClickSelectButton = () => setOpen(!open);
2505
+ const addOrRemoveOptions = (newSelection, option) => {
2506
+ if (selection.some((item) => item.index === option.index)) {
2507
+ const index = newSelection.findIndex((item) => item.index === option.index);
2508
+ if (index > -1) newSelection.splice(index, 1);
2509
+ } else {
2510
+ newSelection.push(option);
2511
+ }
2512
+ return newSelection;
2513
+ };
2514
+ const handleSelectOption = (event, option) => {
2515
+ event.preventDefault();
2516
+ event.stopPropagation();
2517
+ if (option.value !== SELECT_ALL_OPTION.value) {
2518
+ const newSelection = selection.length > 0 ? [...selection] : [];
2519
+ setSelection(addOrRemoveOptions(newSelection, option));
2520
+ setCurrentOptionIndex(option.index);
2521
+ if (hasSelectAll) {
2522
+ setSelectAllChecked(initialOptions.length === newSelection.length);
2523
+ }
2524
+ if (onChange) {
2525
+ onChange(newSelection.map((item) => item.original));
2526
+ }
2527
+ } else if (hasSelectAll) {
2528
+ setSelectAllChecked(!selectAllChecked);
2529
+ handleSelectAll();
2530
+ }
2531
+ };
2532
+ const handleSelectAll = () => {
2533
+ const selectionState = selectAllChecked ? [] : initialOptionElements;
2534
+ setSelection(selectionState);
2535
+ setCurrentOptionIndex(0);
2536
+ if (onChange) {
2537
+ onChange(selectionState.map((item) => item.original));
2538
+ }
2539
+ };
2540
+ const handleTabKey = () => {
2541
+ if (open) {
2542
+ setOpen(false);
2543
+ focus(internalSelectBtnRef.current, false);
2544
+ }
2545
+ };
2546
+ const handleArrowDownKey = (event) => {
2547
+ event.preventDefault();
2548
+ event.stopPropagation();
2549
+ if (!open) setOpen(true);
2550
+ if (currentOptionIndex < 0) {
2551
+ setCurrentOptionIndex(0);
2552
+ scrollToRef(multiSelectOptions[0].ref);
2553
+ } else if (currentOptionIndex < multiSelectOptions.length - 1) {
2554
+ const nextIndex = currentOptionIndex + 1;
2555
+ const nextOption = getNextOption(nextIndex, multiSelectOptions);
2556
+ setCurrentOptionIndex(nextIndex);
2557
+ focus(listRef.current, true);
2558
+ scrollToRef(nextOption.ref);
2559
+ }
2560
+ };
2561
+ const handleArrowUpKey = (event) => {
2562
+ event.preventDefault();
2563
+ event.stopPropagation();
2564
+ if (!open) setOpen(true);
2565
+ if (currentOptionIndex > 0) {
2566
+ const previousIndex = currentOptionIndex - 1;
2567
+ const previousOption = getPreviousOption(previousIndex, multiSelectOptions);
2568
+ setCurrentOptionIndex(previousIndex);
2569
+ focus(listRef.current, true);
2570
+ scrollToRef(previousOption.ref);
2571
+ }
2572
+ };
2573
+ const handleHomeKey = (event) => {
2574
+ event.preventDefault();
2575
+ event.stopPropagation();
2576
+ setCurrentOptionIndex(0);
2577
+ focus(listRef.current, true);
2578
+ scrollToRef(multiSelectOptions[0].ref);
2579
+ };
2580
+ const handleEndKey = (event) => {
2581
+ event.preventDefault();
2582
+ event.stopPropagation();
2583
+ const endIndex = multiSelectOptions.length - 1;
2584
+ setCurrentOptionIndex(endIndex);
2585
+ focus(listRef.current, true);
2586
+ scrollToRef(multiSelectOptions[endIndex].ref);
2587
+ };
2588
+ const handleKeyDown = (event) => {
2589
+ if (onKeyDown) onKeyDown(event);
2590
+ switch (event.key) {
2591
+ case TAB_KEY:
2592
+ handleTabKey();
2593
+ break;
2594
+ case ARROW_DOWN_KEY:
2595
+ handleArrowDownKey(event);
2596
+ break;
2597
+ case ARROW_UP_KEY:
2598
+ handleArrowUpKey(event);
2599
+ break;
2600
+ case HOME_KEY:
2601
+ handleHomeKey(event);
2602
+ break;
2603
+ case END_KEY:
2604
+ handleEndKey(event);
2605
+ break;
2606
+ case ESCAPE_KEY:
2607
+ setOpen(false);
2608
+ focus(internalSelectBtnRef.current, false);
2609
+ break;
2610
+ default:
2611
+ event.preventDefault();
2612
+ event.stopPropagation();
2613
+ break;
2614
+ }
2615
+ };
2616
+ const handleKeyUp = (event) => {
2617
+ if (onKeyUp) onKeyUp(event);
2618
+ switch (event.key) {
2619
+ case SPACE_KEY:
2620
+ case ENTER_KEY:
2621
+ handleEnterOrSpaceKey(event);
2622
+ break;
2623
+ default:
2624
+ break;
2625
+ }
2626
+ };
2627
+ const handleEnterOrSpaceKey = (event) => {
2628
+ event.preventDefault();
2629
+ event.stopPropagation();
2630
+ const currentOption = multiSelectOptions[currentOptionIndex];
2631
+ if (!open) setOpen(true);
2632
+ if (currentOption && event.key) {
2633
+ handleSelectOption(event, currentOption);
2634
+ }
2635
+ };
2636
+ let describedBy = isError ? `${inputId}-error ` : "";
2637
+ describedBy += hasDescription ? `${inputId}-description ` : "";
2638
+ describedBy += hasTooltip ? `${inputId}-tooltip-available` : "";
2639
+ const isChecked = (option) => selection.some((item) => item.index === option.index);
2640
+ const fieldAriaLabel = required ? label : `${label} (Optional)`;
2641
+ const handleBlur = (e) => {
2642
+ if (!open && onBlur) onBlur(e);
2643
+ };
2644
+ return /* @__PURE__ */ jsxs7(
2645
+ StyledMultiSelectContainer,
2646
+ {
2647
+ tabIndex: -1,
2648
+ ref: multiSelectContainerRef,
2649
+ onBlur: handleBlur,
2650
+ onFocus,
2651
+ onTouchStart,
2652
+ onTouchEnd,
2653
+ onKeyDown: handleKeyDown,
2654
+ onKeyUp: handleKeyUp,
2655
+ onClick: (e) => {
2656
+ if (!open) {
2657
+ onClick && onClick(e);
2658
+ focus(internalSelectBtnRef.current, false);
2659
+ }
2660
+ },
2661
+ ...getCleanProps(restProps),
2662
+ children: [
2663
+ /* @__PURE__ */ jsxs7("div", { ref: triggerWrapperRef, style: { position: "relative" }, children: [
2664
+ /* @__PURE__ */ jsxs7(
2665
+ StyledSelectionContainer,
2666
+ {
2667
+ id: `multi-accounts-dropdown-toggle-button-${inputId}`,
2668
+ type: "button",
2669
+ isError,
2670
+ ref: selectButtonRef,
2671
+ onClick: handleClickSelectButton,
2672
+ "data-lose-focus": currentOptionIndex > -1,
2673
+ "data-select-trigger": true,
2674
+ "aria-label": fieldAriaLabel,
2675
+ "aria-describedby": describedBy.trim() || void 0,
2676
+ "aria-expanded": open,
2677
+ "data-multi-select-trigger": true,
2678
+ "aria-haspopup": "tree",
2679
+ children: [
2680
+ /* @__PURE__ */ jsx18(StyledSelectPlaceholder, { id: `${inputId}-selectPlaceholder`, children: placeholderLabel }),
2681
+ /* @__PURE__ */ jsx18(StyledDropdownArrow, { children: /* @__PURE__ */ jsx18(
2682
+ KeyboardArrowDownIcon,
2683
+ {
2684
+ sx: {
2685
+ transition: "0.2s linear transform",
2686
+ transform: open ? "rotateZ(-180deg)" : "rotateZ(0deg)"
2687
+ }
2688
+ }
2689
+ ) }),
2690
+ /* @__PURE__ */ jsx18("input", { name: inputId, type: "hidden", required, "aria-required": required })
2691
+ ]
2692
+ }
2693
+ ),
2694
+ /* @__PURE__ */ jsx18(
2695
+ StyledSelectionContainerOutline,
2696
+ {
2697
+ "data-lose-focus": currentOptionIndex > -1,
2698
+ isError,
2699
+ "aria-hidden": true
2700
+ }
2701
+ )
2702
+ ] }),
2703
+ /* @__PURE__ */ jsx18(
2704
+ Popper,
2705
+ {
2706
+ open,
2707
+ anchorEl: triggerWrapperRef.current,
2708
+ placement: "bottom-start",
2709
+ disablePortal: true,
2710
+ style: { width: "100%", zIndex: 1500 },
2711
+ modifiers: [
2712
+ { name: "preventOverflow", enabled: true },
2713
+ { name: "flip", options: { fallbackPlacements: ["bottom", "top", "bottom"] } }
2714
+ ],
2715
+ children: /* @__PURE__ */ jsx18(StyledPopperInner, { children: /* @__PURE__ */ jsx18(Collapse, { in: open, timeout: TRANSITION_TIMEOUT, children: /* @__PURE__ */ jsxs7(
2716
+ StyledTransitionContainer,
2717
+ {
2718
+ role: "tree",
2719
+ "aria-activedescendant": `${inputId}-option-${currentOptionIndex}`,
2720
+ "data-component-id": `${inputId}-multiSelectPopper`,
2721
+ ref: listRef,
2722
+ tabIndex: -1,
2723
+ onFocus: (e) => e.stopPropagation(),
2724
+ children: [
2725
+ hasSelectAll && renderOption(
2726
+ multiSelectOptions[0],
2727
+ currentOptionIndex,
2728
+ handleSelectOption,
2729
+ selectAllChecked,
2730
+ inputId
2731
+ ),
2732
+ initialOptionElements.map(
2733
+ (option) => renderOption(option, currentOptionIndex, handleSelectOption, isChecked(option), inputId)
2734
+ )
2735
+ ]
2736
+ }
2737
+ ) }) })
2738
+ }
2739
+ )
2740
+ ]
2741
+ }
2742
+ );
2743
+ };
2744
+ MultiSelect.displayName = "ToolkitMultiSelect";
2745
+
2074
2746
  // src/components/PageSpinner/PageSpinner.tsx
2075
- import React7, { useEffect, useRef } from "react";
2747
+ import React8, { useEffect as useEffect3, useRef as useRef2 } from "react";
2076
2748
  import Portal from "@mui/material/Portal";
2077
2749
  import CircularProgress3 from "@mui/material/CircularProgress";
2078
2750
  import { useForkRef } from "@mui/material/utils";
@@ -2233,21 +2905,21 @@ function setA11yMessage(messageText, messageTone, messageRole, clearAfter = 5e3)
2233
2905
  }
2234
2906
 
2235
2907
  // src/components/PageSpinner/PageSpinner.styles.tsx
2236
- import { styled as styled11 } from "@mui/material/styles";
2237
- import { alpha as alpha3 } from "@mui/material/styles";
2908
+ import { styled as styled13 } from "@mui/material/styles";
2909
+ import { alpha as alpha4 } from "@mui/material/styles";
2238
2910
  var PAGE_SPINNER_Z_INDEX = 1400;
2239
- var StyledPageSpinnerRoot = styled11("div")(() => ({
2911
+ var StyledPageSpinnerRoot = styled13("div")(() => ({
2240
2912
  position: "relative"
2241
2913
  }));
2242
- var StyledOverlay = styled11("div", {
2914
+ var StyledOverlay = styled13("div", {
2243
2915
  shouldForwardProp: (prop) => prop !== "$darkBg"
2244
2916
  })(({ theme, $darkBg = false }) => ({
2245
2917
  position: "fixed",
2246
2918
  inset: 0,
2247
2919
  zIndex: PAGE_SPINNER_Z_INDEX,
2248
- backgroundColor: $darkBg ? alpha3(theme.tokens.colors.textPrimary, 0.9) : alpha3(theme.palette.common.white, 0.9)
2920
+ backgroundColor: $darkBg ? alpha4(theme.tokens.colors.textPrimary, 0.9) : alpha4(theme.palette.common.white, 0.9)
2249
2921
  }));
2250
- var StyledSpinnerCentre = styled11("div")(() => ({
2922
+ var StyledSpinnerCentre = styled13("div")(() => ({
2251
2923
  position: "fixed",
2252
2924
  top: "50%",
2253
2925
  left: "50%",
@@ -2258,7 +2930,7 @@ var StyledSpinnerCentre = styled11("div")(() => ({
2258
2930
  alignItems: "center",
2259
2931
  gap: "16px"
2260
2932
  }));
2261
- var StyledSpinnerMessage = styled11("p", {
2933
+ var StyledSpinnerMessage = styled13("p", {
2262
2934
  shouldForwardProp: (prop) => prop !== "$darkBg"
2263
2935
  })(({ theme, $darkBg = false }) => ({
2264
2936
  margin: 0,
@@ -2269,7 +2941,7 @@ var StyledSpinnerMessage = styled11("p", {
2269
2941
  color: $darkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
2270
2942
  textAlign: "center"
2271
2943
  }));
2272
- var StyledScreenReaderOnly2 = styled11("span")(() => ({
2944
+ var StyledScreenReaderOnly2 = styled13("span")(() => ({
2273
2945
  position: "absolute",
2274
2946
  width: "1px",
2275
2947
  height: "1px",
@@ -2282,9 +2954,9 @@ var StyledScreenReaderOnly2 = styled11("span")(() => ({
2282
2954
  }));
2283
2955
 
2284
2956
  // src/components/PageSpinner/PageSpinner.tsx
2285
- import { jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
2957
+ import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
2286
2958
  var ARIA_REANNOUNCE_INTERVAL = 3e4;
2287
- var PageSpinner = React7.forwardRef(
2959
+ var PageSpinner = React8.forwardRef(
2288
2960
  function PageSpinner2({
2289
2961
  message = "Processing, please wait",
2290
2962
  customMessageLayout,
@@ -2294,14 +2966,14 @@ var PageSpinner = React7.forwardRef(
2294
2966
  messageTone = "assertive",
2295
2967
  ...restProps
2296
2968
  }, ref) {
2297
- const internalRef = useRef(null);
2969
+ const internalRef = useRef2(null);
2298
2970
  const mergedRef = useForkRef(ref, internalRef);
2299
- useEffect(() => {
2971
+ useEffect3(() => {
2300
2972
  const blockKeyDown = (e) => e.preventDefault();
2301
2973
  document.addEventListener("keydown", blockKeyDown);
2302
2974
  return () => document.removeEventListener("keydown", blockKeyDown);
2303
2975
  }, [rootNode]);
2304
- useEffect(() => {
2976
+ useEffect3(() => {
2305
2977
  const ariaRole = messageTone === "polite" ? "status" : "alert";
2306
2978
  setA11yMessage(message, messageTone, ariaRole);
2307
2979
  const interval = setInterval(() => {
@@ -2316,7 +2988,7 @@ var PageSpinner = React7.forwardRef(
2316
2988
  backgroundScrollTether(false);
2317
2989
  };
2318
2990
  }, [message, rootNode, messageTone]);
2319
- return /* @__PURE__ */ jsx17(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs6(
2991
+ return /* @__PURE__ */ jsx19(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs8(
2320
2992
  StyledPageSpinnerRoot,
2321
2993
  {
2322
2994
  "data-component-id": "PageSpinner",
@@ -2324,9 +2996,9 @@ var PageSpinner = React7.forwardRef(
2324
2996
  ref: mergedRef,
2325
2997
  ...getCleanProps(restProps),
2326
2998
  children: [
2327
- /* @__PURE__ */ jsx17(StyledOverlay, { $darkBg: isOnDarkBg }),
2328
- /* @__PURE__ */ jsxs6(StyledSpinnerCentre, { children: [
2329
- /* @__PURE__ */ jsx17(
2999
+ /* @__PURE__ */ jsx19(StyledOverlay, { $darkBg: isOnDarkBg }),
3000
+ /* @__PURE__ */ jsxs8(StyledSpinnerCentre, { children: [
3001
+ /* @__PURE__ */ jsx19(
2330
3002
  CircularProgress3,
2331
3003
  {
2332
3004
  size: 60,
@@ -2334,8 +3006,8 @@ var PageSpinner = React7.forwardRef(
2334
3006
  "aria-hidden": "true"
2335
3007
  }
2336
3008
  ),
2337
- customMessageLayout ?? /* @__PURE__ */ jsx17(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
2338
- srText && /* @__PURE__ */ jsx17(StyledScreenReaderOnly2, { children: srText })
3009
+ customMessageLayout ?? /* @__PURE__ */ jsx19(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
3010
+ srText && /* @__PURE__ */ jsx19(StyledScreenReaderOnly2, { children: srText })
2339
3011
  ] })
2340
3012
  ]
2341
3013
  }
@@ -2345,11 +3017,11 @@ var PageSpinner = React7.forwardRef(
2345
3017
  PageSpinner.displayName = "ToolkitPageSpinner";
2346
3018
 
2347
3019
  // src/components/Pagination/Pagination.tsx
2348
- import React8 from "react";
3020
+ import React9 from "react";
2349
3021
  import MuiPagination from "@mui/material/Pagination";
2350
3022
 
2351
3023
  // src/components/Pagination/Pagination.styles.tsx
2352
- import { styled as styled12, alpha as alpha4 } from "@mui/material/styles";
3024
+ import { styled as styled14, alpha as alpha5 } from "@mui/material/styles";
2353
3025
  import MuiPaginationItem from "@mui/material/PaginationItem";
2354
3026
  function getColorValue(theme, color) {
2355
3027
  switch (color) {
@@ -2369,58 +3041,58 @@ function getColorValue(theme, color) {
2369
3041
  return theme.tokens.colors.textPrimary;
2370
3042
  }
2371
3043
  }
2372
- var StyledPaginationItem = styled12(MuiPaginationItem, {
3044
+ var StyledPaginationItem = styled14(MuiPaginationItem, {
2373
3045
  shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$color"
2374
3046
  })(({ theme, $variant, $color }) => {
2375
3047
  const colorValue = getColorValue(theme, $color);
2376
3048
  if ($variant === "text") {
2377
3049
  return {
2378
3050
  "&.Mui-selected": {
2379
- backgroundColor: alpha4(colorValue, 0.08),
3051
+ backgroundColor: alpha5(colorValue, 0.08),
2380
3052
  color: colorValue,
2381
3053
  "&:hover": {
2382
- backgroundColor: alpha4(colorValue, 0.16)
3054
+ backgroundColor: alpha5(colorValue, 0.16)
2383
3055
  }
2384
3056
  }
2385
3057
  };
2386
3058
  }
2387
3059
  if ($variant === "outlined") {
2388
3060
  return {
2389
- border: `1px solid ${alpha4(colorValue, 0.24)}`,
3061
+ border: `1px solid ${alpha5(colorValue, 0.24)}`,
2390
3062
  "&.Mui-selected": {
2391
- border: `1px solid ${alpha4(colorValue, 0.8)}`,
3063
+ border: `1px solid ${alpha5(colorValue, 0.8)}`,
2392
3064
  color: colorValue,
2393
- backgroundColor: alpha4(colorValue, 0.08),
3065
+ backgroundColor: alpha5(colorValue, 0.08),
2394
3066
  "&:hover": {
2395
- backgroundColor: alpha4(colorValue, 0.16)
3067
+ backgroundColor: alpha5(colorValue, 0.16)
2396
3068
  }
2397
3069
  }
2398
3070
  };
2399
3071
  }
2400
3072
  return {
2401
3073
  "&.Mui-selected": {
2402
- backgroundColor: alpha4(colorValue, 0.16),
3074
+ backgroundColor: alpha5(colorValue, 0.16),
2403
3075
  color: colorValue,
2404
3076
  "&:hover": {
2405
- backgroundColor: alpha4(colorValue, 0.32)
3077
+ backgroundColor: alpha5(colorValue, 0.32)
2406
3078
  }
2407
3079
  },
2408
3080
  "&:hover": {
2409
- backgroundColor: alpha4(colorValue, 0.08)
3081
+ backgroundColor: alpha5(colorValue, 0.08)
2410
3082
  }
2411
3083
  };
2412
3084
  });
2413
3085
 
2414
3086
  // src/components/Pagination/Pagination.tsx
2415
- import { jsx as jsx18 } from "react/jsx-runtime";
2416
- var Pagination = React8.forwardRef(
3087
+ import { jsx as jsx20 } from "react/jsx-runtime";
3088
+ var Pagination = React9.forwardRef(
2417
3089
  function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
2418
- return /* @__PURE__ */ jsx18(
3090
+ return /* @__PURE__ */ jsx20(
2419
3091
  MuiPagination,
2420
3092
  {
2421
3093
  ref,
2422
3094
  "data-component-id": "Pagination",
2423
- renderItem: (item) => /* @__PURE__ */ jsx18(
3095
+ renderItem: (item) => /* @__PURE__ */ jsx20(
2424
3096
  StyledPaginationItem,
2425
3097
  {
2426
3098
  $variant: variant,
@@ -2437,11 +3109,11 @@ var Pagination = React8.forwardRef(
2437
3109
  Pagination.displayName = "ToolkitPagination";
2438
3110
 
2439
3111
  // src/components/Paragraph/Paragraph.tsx
2440
- import React9 from "react";
3112
+ import React10 from "react";
2441
3113
 
2442
3114
  // src/components/Paragraph/Paragraph.styles.tsx
2443
- import { styled as styled13 } from "@mui/material/styles";
2444
- var StyledParagraph = styled13("p", {
3115
+ import { styled as styled15 } from "@mui/material/styles";
3116
+ var StyledParagraph = styled15("p", {
2445
3117
  shouldForwardProp: (prop) => prop !== "$variant" && prop !== "$isOnDarkBg"
2446
3118
  })(({ theme, $variant = "regular", $isOnDarkBg = false }) => ({
2447
3119
  margin: 0,
@@ -2474,10 +3146,10 @@ var StyledParagraph = styled13("p", {
2474
3146
  }));
2475
3147
 
2476
3148
  // src/components/Paragraph/Paragraph.tsx
2477
- import { jsx as jsx19 } from "react/jsx-runtime";
2478
- var Paragraph = React9.forwardRef(
3149
+ import { jsx as jsx21 } from "react/jsx-runtime";
3150
+ var Paragraph = React10.forwardRef(
2479
3151
  function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
2480
- return /* @__PURE__ */ jsx19(
3152
+ return /* @__PURE__ */ jsx21(
2481
3153
  StyledParagraph,
2482
3154
  {
2483
3155
  $variant: variant,
@@ -2493,15 +3165,15 @@ var Paragraph = React9.forwardRef(
2493
3165
  Paragraph.displayName = "ToolkitParagraph";
2494
3166
 
2495
3167
  // src/components/Password/Password.tsx
2496
- import React10, { useState as useState3 } from "react";
3168
+ import React11, { useState as useState4 } from "react";
2497
3169
 
2498
3170
  // src/components/Password/PasswordRule.tsx
2499
3171
  import CheckCircleIcon from "@mui/icons-material/CheckCircle";
2500
3172
  import CancelIcon from "@mui/icons-material/Cancel";
2501
3173
 
2502
3174
  // src/components/Password/PasswordRule.styles.tsx
2503
- import { styled as styled14 } from "@mui/material/styles";
2504
- var StyledPasswordRule = styled14("div")(({ theme }) => ({
3175
+ import { styled as styled16 } from "@mui/material/styles";
3176
+ var StyledPasswordRule = styled16("div")(({ theme }) => ({
2505
3177
  display: "flex",
2506
3178
  alignItems: "center",
2507
3179
  gap: theme.tokens.spacing.xs,
@@ -2513,15 +3185,15 @@ var StyledPasswordRule = styled14("div")(({ theme }) => ({
2513
3185
  color: theme.tokens.colors.error
2514
3186
  }
2515
3187
  }));
2516
- var StyledPasswordRuleIcon = styled14("span")({
3188
+ var StyledPasswordRuleIcon = styled16("span")({
2517
3189
  display: "inline-flex",
2518
3190
  alignItems: "center",
2519
3191
  flexShrink: 0
2520
3192
  });
2521
- var StyledPasswordRuleText = styled14("span")(({ theme }) => ({
3193
+ var StyledPasswordRuleText = styled16("span")(({ theme }) => ({
2522
3194
  fontSize: theme.tokens.typography.fontSizeSm
2523
3195
  }));
2524
- var StyledScreenReaderOnly3 = styled14("span")({
3196
+ var StyledScreenReaderOnly3 = styled16("span")({
2525
3197
  position: "absolute",
2526
3198
  width: 1,
2527
3199
  height: 1,
@@ -2534,24 +3206,24 @@ var StyledScreenReaderOnly3 = styled14("span")({
2534
3206
  });
2535
3207
 
2536
3208
  // src/components/Password/PasswordRule.tsx
2537
- import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
2538
- var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs7(
3209
+ import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
3210
+ var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs9(
2539
3211
  StyledPasswordRule,
2540
3212
  {
2541
3213
  className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
2542
3214
  "data-testid": `password-rule-${idx}`,
2543
3215
  children: [
2544
- /* @__PURE__ */ jsx20(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx20(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx20(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
2545
- /* @__PURE__ */ jsx20(StyledPasswordRuleText, { children: rule }),
2546
- /* @__PURE__ */ jsx20(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
3216
+ /* @__PURE__ */ jsx22(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx22(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx22(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
3217
+ /* @__PURE__ */ jsx22(StyledPasswordRuleText, { children: rule }),
3218
+ /* @__PURE__ */ jsx22(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
2547
3219
  ]
2548
3220
  }
2549
3221
  );
2550
3222
  PasswordRule.displayName = "ToolkitPasswordRule";
2551
3223
 
2552
3224
  // src/components/Password/PasswordCriteria.styles.tsx
2553
- import { styled as styled15 } from "@mui/material/styles";
2554
- var StyledPasswordCriteriaContainer = styled15("div")(
3225
+ import { styled as styled17 } from "@mui/material/styles";
3226
+ var StyledPasswordCriteriaContainer = styled17("div")(
2555
3227
  ({ theme, $show }) => ({
2556
3228
  display: $show ? "block" : "none",
2557
3229
  position: "absolute",
@@ -2562,7 +3234,7 @@ var StyledPasswordCriteriaContainer = styled15("div")(
2562
3234
  marginTop: theme.tokens.spacing.xs
2563
3235
  })
2564
3236
  );
2565
- var StyledPasswordRuleTitle = styled15("div")(({ theme }) => ({
3237
+ var StyledPasswordRuleTitle = styled17("div")(({ theme }) => ({
2566
3238
  color: theme.tokens.colors.textPrimary,
2567
3239
  fontSize: theme.tokens.typography.fontSizeSm,
2568
3240
  fontWeight: theme.tokens.typography.fontWeightMedium,
@@ -2572,7 +3244,7 @@ var StyledPasswordRuleTitle = styled15("div")(({ theme }) => ({
2572
3244
  }));
2573
3245
 
2574
3246
  // src/components/Password/PasswordCriteria.tsx
2575
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
3247
+ import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2576
3248
  var PasswordRules = [
2577
3249
  { key: "minLength", rule: "Minimum 8 characters" },
2578
3250
  { key: "lowercase", rule: "At least one lowercase letter" },
@@ -2589,7 +3261,7 @@ var passwordValidator = (value) => ({
2589
3261
  });
2590
3262
  var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
2591
3263
  const validity = passwordValidator(value);
2592
- return /* @__PURE__ */ jsx21(
3264
+ return /* @__PURE__ */ jsx23(
2593
3265
  StyledPasswordCriteriaContainer,
2594
3266
  {
2595
3267
  $show: show,
@@ -2598,9 +3270,9 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
2598
3270
  "data-testid": "password-criteria",
2599
3271
  role: "status",
2600
3272
  "aria-live": "polite",
2601
- children: /* @__PURE__ */ jsxs8(Card, { compact: true, children: [
2602
- /* @__PURE__ */ jsx21(StyledPasswordRuleTitle, { children: "Password must contain:" }),
2603
- PasswordRules.map((item, idx) => /* @__PURE__ */ jsx21(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
3273
+ children: /* @__PURE__ */ jsxs10(Card, { compact: true, children: [
3274
+ /* @__PURE__ */ jsx23(StyledPasswordRuleTitle, { children: "Password must contain:" }),
3275
+ PasswordRules.map((item, idx) => /* @__PURE__ */ jsx23(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
2604
3276
  ] })
2605
3277
  }
2606
3278
  );
@@ -2608,18 +3280,18 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
2608
3280
  PasswordCriteria.displayName = "ToolkitPasswordCriteria";
2609
3281
 
2610
3282
  // src/components/Password/Password.styles.tsx
2611
- import { styled as styled16 } from "@mui/material/styles";
2612
- var StyledPasswordRoot = styled16("div")({
3283
+ import { styled as styled18 } from "@mui/material/styles";
3284
+ var StyledPasswordRoot = styled18("div")({
2613
3285
  position: "relative"
2614
3286
  });
2615
- var StyledPasswordInputWrapper = styled16("div")({
3287
+ var StyledPasswordInputWrapper = styled18("div")({
2616
3288
  display: "flex",
2617
3289
  position: "relative"
2618
3290
  });
2619
3291
 
2620
3292
  // src/components/Password/Password.tsx
2621
- import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2622
- var Password = React10.forwardRef(
3293
+ import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
3294
+ var Password = React11.forwardRef(
2623
3295
  function Password2({
2624
3296
  isInvalid,
2625
3297
  value: initialValue,
@@ -2632,8 +3304,8 @@ var Password = React10.forwardRef(
2632
3304
  id,
2633
3305
  ...rest
2634
3306
  }, ref) {
2635
- const [value, setValue] = useState3(initialValue ?? "");
2636
- const [showCriteria, setShowCriteria] = useState3(false);
3307
+ const [value, setValue] = useState4(initialValue ?? "");
3308
+ const [showCriteria, setShowCriteria] = useState4(false);
2637
3309
  const handleFocus = () => {
2638
3310
  setShowCriteria(true);
2639
3311
  };
@@ -2650,8 +3322,8 @@ var Password = React10.forwardRef(
2650
3322
  };
2651
3323
  const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
2652
3324
  const cleanRest = getCleanProps(rest);
2653
- return /* @__PURE__ */ jsxs9(StyledPasswordRoot, { className, ...cleanRest, children: [
2654
- /* @__PURE__ */ jsx22(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx22(
3325
+ return /* @__PURE__ */ jsxs11(StyledPasswordRoot, { className, ...cleanRest, children: [
3326
+ /* @__PURE__ */ jsx24(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx24(
2655
3327
  TextField,
2656
3328
  {
2657
3329
  ref,
@@ -2670,17 +3342,17 @@ var Password = React10.forwardRef(
2670
3342
  onChange: handleChange
2671
3343
  }
2672
3344
  ) }),
2673
- /* @__PURE__ */ jsx22(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
3345
+ /* @__PURE__ */ jsx24(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
2674
3346
  ] });
2675
3347
  }
2676
3348
  );
2677
3349
  Password.displayName = "ToolkitPassword";
2678
3350
 
2679
3351
  // src/components/Spinner/Spinner.tsx
2680
- import React11 from "react";
3352
+ import React12 from "react";
2681
3353
 
2682
3354
  // src/components/Spinner/Spinner.styles.tsx
2683
- import { styled as styled17, alpha as alpha5 } from "@mui/material/styles";
3355
+ import { styled as styled19, alpha as alpha6 } from "@mui/material/styles";
2684
3356
  var spinnerSizing = {
2685
3357
  xs: 20,
2686
3358
  sm: 24,
@@ -2688,7 +3360,7 @@ var spinnerSizing = {
2688
3360
  lg: 56,
2689
3361
  xl: 72
2690
3362
  };
2691
- var StyledSpinnerContainer = styled17("div", {
3363
+ var StyledSpinnerContainer = styled19("div", {
2692
3364
  shouldForwardProp: (prop) => prop !== "$inline"
2693
3365
  })({}, ({ $inline }) => ({
2694
3366
  flex: "0 1 100%",
@@ -2696,7 +3368,7 @@ var StyledSpinnerContainer = styled17("div", {
2696
3368
  flexDirection: $inline ? "row" : "column",
2697
3369
  alignItems: "center"
2698
3370
  }));
2699
- var StyledSpinnerIconContainer = styled17("div", {
3371
+ var StyledSpinnerIconContainer = styled19("div", {
2700
3372
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2701
3373
  })(({ $size }) => {
2702
3374
  const size = spinnerSizing[$size];
@@ -2706,12 +3378,12 @@ var StyledSpinnerIconContainer = styled17("div", {
2706
3378
  height: size
2707
3379
  };
2708
3380
  });
2709
- var StyledSpinnerBackground = styled17("div", {
3381
+ var StyledSpinnerBackground = styled19("div", {
2710
3382
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2711
3383
  })(({ theme, $size, $darkBg }) => {
2712
3384
  const size = spinnerSizing[$size];
2713
3385
  const lineWidth = Math.round(size / 12);
2714
- const borderColor = $darkBg ? alpha5(theme.palette.common.white, 0.2) : alpha5(theme.tokens.colors.textPrimary, 0.1);
3386
+ const borderColor = $darkBg ? alpha6(theme.palette.common.white, 0.2) : alpha6(theme.tokens.colors.textPrimary, 0.1);
2715
3387
  return {
2716
3388
  position: "absolute",
2717
3389
  width: size,
@@ -2720,7 +3392,7 @@ var StyledSpinnerBackground = styled17("div", {
2720
3392
  border: `${lineWidth}px solid ${borderColor}`
2721
3393
  };
2722
3394
  });
2723
- var StyledSpinner = styled17("div", {
3395
+ var StyledSpinner = styled19("div", {
2724
3396
  shouldForwardProp: (prop) => prop !== "$size" && prop !== "$darkBg"
2725
3397
  })(({ theme, $size, $darkBg }) => {
2726
3398
  const size = spinnerSizing[$size];
@@ -2743,7 +3415,7 @@ var StyledSpinner = styled17("div", {
2743
3415
  animation: `toolkit-spin ${animationSpeed} infinite linear`
2744
3416
  };
2745
3417
  });
2746
- var StyledSpinnerMessage2 = styled17("span", {
3418
+ var StyledSpinnerMessage2 = styled19("span", {
2747
3419
  shouldForwardProp: (prop) => prop !== "$darkBg" && prop !== "$inline"
2748
3420
  })(({ theme, $darkBg, $inline }) => ({
2749
3421
  fontFamily: theme.tokens.typography.fontFamilyBase,
@@ -2752,7 +3424,7 @@ var StyledSpinnerMessage2 = styled17("span", {
2752
3424
  marginTop: $inline ? 0 : theme.spacing(1),
2753
3425
  marginLeft: $inline ? theme.spacing(1) : 0
2754
3426
  }));
2755
- var StyledScreenReaderOnly4 = styled17("span")({
3427
+ var StyledScreenReaderOnly4 = styled19("span")({
2756
3428
  position: "absolute",
2757
3429
  width: 1,
2758
3430
  height: 1,
@@ -2765,10 +3437,10 @@ var StyledScreenReaderOnly4 = styled17("span")({
2765
3437
  });
2766
3438
 
2767
3439
  // src/components/Spinner/Spinner.tsx
2768
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2769
- var Spinner = React11.forwardRef(
3440
+ import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
3441
+ var Spinner = React12.forwardRef(
2770
3442
  function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
2771
- return /* @__PURE__ */ jsxs10(
3443
+ return /* @__PURE__ */ jsxs12(
2772
3444
  StyledSpinnerContainer,
2773
3445
  {
2774
3446
  ref,
@@ -2776,12 +3448,12 @@ var Spinner = React11.forwardRef(
2776
3448
  "data-component-id": "Spinner",
2777
3449
  ...getCleanProps(restProps),
2778
3450
  children: [
2779
- /* @__PURE__ */ jsxs10(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
2780
- /* @__PURE__ */ jsx23(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
2781
- /* @__PURE__ */ jsx23(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
3451
+ /* @__PURE__ */ jsxs12(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
3452
+ /* @__PURE__ */ jsx25(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
3453
+ /* @__PURE__ */ jsx25(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
2782
3454
  ] }),
2783
- message && /* @__PURE__ */ jsx23(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
2784
- srText && /* @__PURE__ */ jsx23(StyledScreenReaderOnly4, { children: srText })
3455
+ message && /* @__PURE__ */ jsx25(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
3456
+ srText && /* @__PURE__ */ jsx25(StyledScreenReaderOnly4, { children: srText })
2785
3457
  ]
2786
3458
  }
2787
3459
  );
@@ -2793,14 +3465,14 @@ Spinner.displayName = "ToolkitSpinner";
2793
3465
  import FormHelperText from "@mui/material/FormHelperText";
2794
3466
 
2795
3467
  // src/components/Toggle/Toggle.styles.tsx
2796
- import { styled as styled18 } from "@mui/material/styles";
2797
- var StyledFieldset = styled18("fieldset")(({ theme }) => ({
3468
+ import { styled as styled20 } from "@mui/material/styles";
3469
+ var StyledFieldset = styled20("fieldset")(({ theme }) => ({
2798
3470
  border: "none",
2799
3471
  margin: 0,
2800
3472
  padding: 0,
2801
3473
  minWidth: 0
2802
3474
  }));
2803
- var StyledLegend = styled18("legend")(({ theme }) => ({
3475
+ var StyledLegend = styled20("legend")(({ theme }) => ({
2804
3476
  fontFamily: theme.tokens.typography.fontFamilyBase,
2805
3477
  fontSize: theme.tokens.typography.fontSizeLg,
2806
3478
  fontWeight: theme.tokens.typography.fontWeightRegular,
@@ -2808,7 +3480,7 @@ var StyledLegend = styled18("legend")(({ theme }) => ({
2808
3480
  marginBottom: theme.spacing(1),
2809
3481
  padding: 0
2810
3482
  }));
2811
- var StyledToggleWrapper = styled18("div")(({ theme }) => ({
3483
+ var StyledToggleWrapper = styled20("div")(({ theme }) => ({
2812
3484
  display: "flex",
2813
3485
  flexDirection: "row",
2814
3486
  width: theme.spacing(15),
@@ -2817,7 +3489,7 @@ var StyledToggleWrapper = styled18("div")(({ theme }) => ({
2817
3489
  border: `1px solid ${theme.tokens.colors.border}`,
2818
3490
  borderRadius: theme.tokens.borderRadius.md
2819
3491
  }));
2820
- var StyledSwitch = styled18("label", {
3492
+ var StyledSwitch = styled20("label", {
2821
3493
  shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
2822
3494
  })(({ theme, selected, controlType }) => ({
2823
3495
  position: "relative",
@@ -2907,7 +3579,7 @@ var StyledSwitch = styled18("label", {
2907
3579
  }));
2908
3580
 
2909
3581
  // src/components/Toggle/Toggle.tsx
2910
- import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
3582
+ import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
2911
3583
  function Toggle({
2912
3584
  name,
2913
3585
  checked = false,
@@ -2918,18 +3590,20 @@ function Toggle({
2918
3590
  onBlur,
2919
3591
  ...restProps
2920
3592
  }) {
2921
- return /* @__PURE__ */ jsxs11(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
2922
- label && /* @__PURE__ */ jsx24(StyledLegend, { children: label }),
2923
- description && /* @__PURE__ */ jsx24(FormHelperText, { children: description }),
2924
- /* @__PURE__ */ jsxs11(StyledToggleWrapper, { children: [
2925
- /* @__PURE__ */ jsxs11(
3593
+ const testId = restProps["data-testid"];
3594
+ return /* @__PURE__ */ jsxs13(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
3595
+ label && /* @__PURE__ */ jsx26(StyledLegend, { children: label }),
3596
+ description && /* @__PURE__ */ jsx26(FormHelperText, { children: description }),
3597
+ /* @__PURE__ */ jsxs13(StyledToggleWrapper, { children: [
3598
+ /* @__PURE__ */ jsxs13(
2926
3599
  StyledSwitch,
2927
3600
  {
2928
3601
  htmlFor: `${name}off`,
2929
3602
  selected: !checked,
2930
3603
  controlType: "off",
3604
+ "data-testid": testId ? `${testId}-off` : void 0,
2931
3605
  children: [
2932
- /* @__PURE__ */ jsx24(
3606
+ /* @__PURE__ */ jsx26(
2933
3607
  "input",
2934
3608
  {
2935
3609
  checked: !checked,
@@ -2945,14 +3619,15 @@ function Toggle({
2945
3619
  ]
2946
3620
  }
2947
3621
  ),
2948
- /* @__PURE__ */ jsxs11(
3622
+ /* @__PURE__ */ jsxs13(
2949
3623
  StyledSwitch,
2950
3624
  {
2951
3625
  htmlFor: `${name}on`,
2952
3626
  selected: checked,
2953
3627
  controlType: "on",
3628
+ "data-testid": testId ? `${testId}-on` : void 0,
2954
3629
  children: [
2955
- /* @__PURE__ */ jsx24(
3630
+ /* @__PURE__ */ jsx26(
2956
3631
  "input",
2957
3632
  {
2958
3633
  checked,
@@ -2969,7 +3644,7 @@ function Toggle({
2969
3644
  }
2970
3645
  )
2971
3646
  ] }),
2972
- error && /* @__PURE__ */ jsx24(FormHelperText, { error: true, children: error })
3647
+ error && /* @__PURE__ */ jsx26(FormHelperText, { error: true, children: error })
2973
3648
  ] });
2974
3649
  }
2975
3650
  Toggle.displayName = "ToolkitToggle";
@@ -2985,37 +3660,37 @@ import {
2985
3660
  TablePagination as MuiTablePagination,
2986
3661
  TableSortLabel as MuiTableSortLabel
2987
3662
  } from "@mui/material";
2988
- import { styled as styled19 } from "@mui/material/styles";
2989
- import { jsx as jsx25 } from "react/jsx-runtime";
2990
- var StyledTableContainer = styled19(MuiTableContainer)(() => ({
3663
+ import { styled as styled21 } from "@mui/material/styles";
3664
+ import { jsx as jsx27 } from "react/jsx-runtime";
3665
+ var StyledTableContainer = styled21(MuiTableContainer)(() => ({
2991
3666
  overflowX: "auto"
2992
3667
  }));
2993
- var StyledHeadCell = styled19(MuiTableCell)(({ theme }) => ({
3668
+ var StyledHeadCell = styled21(MuiTableCell)(({ theme }) => ({
2994
3669
  fontWeight: theme.tokens.components.table.headerFontWeight,
2995
3670
  backgroundColor: theme.tokens.components.table.headerBackground,
2996
3671
  borderBottomWidth: theme.tokens.components.table.borderWidth,
2997
3672
  borderBottomColor: theme.tokens.components.table.borderColor
2998
3673
  }));
2999
3674
  function Table(props) {
3000
- return /* @__PURE__ */ jsx25(MuiTable, { ...props });
3675
+ return /* @__PURE__ */ jsx27(MuiTable, { ...props });
3001
3676
  }
3002
3677
  function TableHead(props) {
3003
- return /* @__PURE__ */ jsx25(MuiTableHead, { ...props });
3678
+ return /* @__PURE__ */ jsx27(MuiTableHead, { ...props });
3004
3679
  }
3005
3680
  function TableBody(props) {
3006
- return /* @__PURE__ */ jsx25(MuiTableBody, { ...props });
3681
+ return /* @__PURE__ */ jsx27(MuiTableBody, { ...props });
3007
3682
  }
3008
3683
  function TableRow(props) {
3009
- return /* @__PURE__ */ jsx25(MuiTableRow, { ...props });
3684
+ return /* @__PURE__ */ jsx27(MuiTableRow, { ...props });
3010
3685
  }
3011
3686
  function TableCell(props) {
3012
- return /* @__PURE__ */ jsx25(MuiTableCell, { ...props });
3687
+ return /* @__PURE__ */ jsx27(MuiTableCell, { ...props });
3013
3688
  }
3014
3689
  function TableHeadCell(props) {
3015
- return /* @__PURE__ */ jsx25(StyledHeadCell, { component: "th", scope: "col", ...props });
3690
+ return /* @__PURE__ */ jsx27(StyledHeadCell, { component: "th", scope: "col", ...props });
3016
3691
  }
3017
3692
  function TableContainer(props) {
3018
- return /* @__PURE__ */ jsx25(StyledTableContainer, { ...props });
3693
+ return /* @__PURE__ */ jsx27(StyledTableContainer, { ...props });
3019
3694
  }
3020
3695
  var TablePagination = MuiTablePagination;
3021
3696
  var TableSortLabel = MuiTableSortLabel;
@@ -3028,144 +3703,144 @@ TableHeadCell.displayName = "ToolkitTableHeadCell";
3028
3703
  TableContainer.displayName = "ToolkitTableContainer";
3029
3704
 
3030
3705
  // src/foundation/H1/H1.tsx
3031
- import React12 from "react";
3706
+ import React13 from "react";
3032
3707
  import { Typography } from "@mui/material";
3033
- import { jsx as jsx26 } from "react/jsx-runtime";
3034
- var H1 = React12.forwardRef(
3708
+ import { jsx as jsx28 } from "react/jsx-runtime";
3709
+ var H1 = React13.forwardRef(
3035
3710
  function H12({ color = "text.primary", children, ...props }, ref) {
3036
- return /* @__PURE__ */ jsx26(Typography, { ref, variant: "h1", color, ...props, children });
3711
+ return /* @__PURE__ */ jsx28(Typography, { ref, variant: "h1", color, ...props, children });
3037
3712
  }
3038
3713
  );
3039
3714
  H1.displayName = "ToolkitH1";
3040
3715
 
3041
3716
  // src/foundation/H2/H2.tsx
3042
- import React13 from "react";
3717
+ import React14 from "react";
3043
3718
  import { Typography as Typography2 } from "@mui/material";
3044
- import { jsx as jsx27 } from "react/jsx-runtime";
3045
- var H2 = React13.forwardRef(
3719
+ import { jsx as jsx29 } from "react/jsx-runtime";
3720
+ var H2 = React14.forwardRef(
3046
3721
  function H22({ color = "text.primary", children, ...props }, ref) {
3047
- return /* @__PURE__ */ jsx27(Typography2, { ref, variant: "h2", color, ...props, children });
3722
+ return /* @__PURE__ */ jsx29(Typography2, { ref, variant: "h2", color, ...props, children });
3048
3723
  }
3049
3724
  );
3050
3725
  H2.displayName = "ToolkitH2";
3051
3726
 
3052
3727
  // src/foundation/H3/H3.tsx
3053
- import React14 from "react";
3728
+ import React15 from "react";
3054
3729
  import { Typography as Typography3 } from "@mui/material";
3055
- import { jsx as jsx28 } from "react/jsx-runtime";
3056
- var H3 = React14.forwardRef(
3730
+ import { jsx as jsx30 } from "react/jsx-runtime";
3731
+ var H3 = React15.forwardRef(
3057
3732
  function H32({ color = "text.primary", children, ...props }, ref) {
3058
- return /* @__PURE__ */ jsx28(Typography3, { ref, variant: "h3", color, ...props, children });
3733
+ return /* @__PURE__ */ jsx30(Typography3, { ref, variant: "h3", color, ...props, children });
3059
3734
  }
3060
3735
  );
3061
3736
  H3.displayName = "ToolkitH3";
3062
3737
 
3063
3738
  // src/foundation/H4/H4.tsx
3064
- import React15 from "react";
3739
+ import React16 from "react";
3065
3740
  import { Typography as Typography4 } from "@mui/material";
3066
- import { jsx as jsx29 } from "react/jsx-runtime";
3067
- var H4 = React15.forwardRef(
3741
+ import { jsx as jsx31 } from "react/jsx-runtime";
3742
+ var H4 = React16.forwardRef(
3068
3743
  function H42({ color = "text.primary", children, ...props }, ref) {
3069
- return /* @__PURE__ */ jsx29(Typography4, { ref, variant: "h4", color, ...props, children });
3744
+ return /* @__PURE__ */ jsx31(Typography4, { ref, variant: "h4", color, ...props, children });
3070
3745
  }
3071
3746
  );
3072
3747
  H4.displayName = "ToolkitH4";
3073
3748
 
3074
3749
  // src/foundation/H5/H5.tsx
3075
- import React16 from "react";
3750
+ import React17 from "react";
3076
3751
  import { Typography as Typography5 } from "@mui/material";
3077
- import { jsx as jsx30 } from "react/jsx-runtime";
3078
- var H5 = React16.forwardRef(
3752
+ import { jsx as jsx32 } from "react/jsx-runtime";
3753
+ var H5 = React17.forwardRef(
3079
3754
  function H52({ color = "text.primary", children, ...props }, ref) {
3080
- return /* @__PURE__ */ jsx30(Typography5, { ref, variant: "h5", color, ...props, children });
3755
+ return /* @__PURE__ */ jsx32(Typography5, { ref, variant: "h5", color, ...props, children });
3081
3756
  }
3082
3757
  );
3083
3758
  H5.displayName = "ToolkitH5";
3084
3759
 
3085
3760
  // src/foundation/H6/H6.tsx
3086
- import React17 from "react";
3761
+ import React18 from "react";
3087
3762
  import { Typography as Typography6 } from "@mui/material";
3088
- import { jsx as jsx31 } from "react/jsx-runtime";
3089
- var H6 = React17.forwardRef(
3763
+ import { jsx as jsx33 } from "react/jsx-runtime";
3764
+ var H6 = React18.forwardRef(
3090
3765
  function H62({ color = "text.primary", children, ...props }, ref) {
3091
- return /* @__PURE__ */ jsx31(Typography6, { ref, variant: "h6", color, ...props, children });
3766
+ return /* @__PURE__ */ jsx33(Typography6, { ref, variant: "h6", color, ...props, children });
3092
3767
  }
3093
3768
  );
3094
3769
  H6.displayName = "ToolkitH6";
3095
3770
 
3096
3771
  // src/foundation/Subtitle1/Subtitle1.tsx
3097
- import React18 from "react";
3772
+ import React19 from "react";
3098
3773
  import { Typography as Typography7 } from "@mui/material";
3099
- import { jsx as jsx32 } from "react/jsx-runtime";
3100
- var Subtitle1 = React18.forwardRef(
3774
+ import { jsx as jsx34 } from "react/jsx-runtime";
3775
+ var Subtitle1 = React19.forwardRef(
3101
3776
  function Subtitle12({ color = "text.primary", children, ...props }, ref) {
3102
- return /* @__PURE__ */ jsx32(Typography7, { ref, variant: "subtitle1", color, ...props, children });
3777
+ return /* @__PURE__ */ jsx34(Typography7, { ref, variant: "subtitle1", color, ...props, children });
3103
3778
  }
3104
3779
  );
3105
3780
  Subtitle1.displayName = "ToolkitSubtitle1";
3106
3781
 
3107
3782
  // src/foundation/Subtitle2/Subtitle2.tsx
3108
- import React19 from "react";
3783
+ import React20 from "react";
3109
3784
  import { Typography as Typography8 } from "@mui/material";
3110
- import { jsx as jsx33 } from "react/jsx-runtime";
3111
- var Subtitle2 = React19.forwardRef(
3785
+ import { jsx as jsx35 } from "react/jsx-runtime";
3786
+ var Subtitle2 = React20.forwardRef(
3112
3787
  function Subtitle22({ color = "text.primary", children, ...props }, ref) {
3113
- return /* @__PURE__ */ jsx33(Typography8, { ref, variant: "subtitle2", color, ...props, children });
3788
+ return /* @__PURE__ */ jsx35(Typography8, { ref, variant: "subtitle2", color, ...props, children });
3114
3789
  }
3115
3790
  );
3116
3791
  Subtitle2.displayName = "ToolkitSubtitle2";
3117
3792
 
3118
3793
  // src/foundation/Body1/Body1.tsx
3119
- import React20 from "react";
3794
+ import React21 from "react";
3120
3795
  import { Typography as Typography9 } from "@mui/material";
3121
- import { jsx as jsx34 } from "react/jsx-runtime";
3122
- var Body1 = React20.forwardRef(
3796
+ import { jsx as jsx36 } from "react/jsx-runtime";
3797
+ var Body1 = React21.forwardRef(
3123
3798
  function Body12({ color = "text.primary", children, ...props }, ref) {
3124
- return /* @__PURE__ */ jsx34(Typography9, { ref, variant: "body1", color, ...props, children });
3799
+ return /* @__PURE__ */ jsx36(Typography9, { ref, variant: "body1", color, ...props, children });
3125
3800
  }
3126
3801
  );
3127
3802
  Body1.displayName = "ToolkitBody1";
3128
3803
 
3129
3804
  // src/foundation/Body2/Body2.tsx
3130
- import React21 from "react";
3805
+ import React22 from "react";
3131
3806
  import { Typography as Typography10 } from "@mui/material";
3132
- import { jsx as jsx35 } from "react/jsx-runtime";
3133
- var Body2 = React21.forwardRef(
3807
+ import { jsx as jsx37 } from "react/jsx-runtime";
3808
+ var Body2 = React22.forwardRef(
3134
3809
  function Body22({ color = "text.primary", children, ...props }, ref) {
3135
- return /* @__PURE__ */ jsx35(Typography10, { ref, variant: "body2", color, ...props, children });
3810
+ return /* @__PURE__ */ jsx37(Typography10, { ref, variant: "body2", color, ...props, children });
3136
3811
  }
3137
3812
  );
3138
3813
  Body2.displayName = "ToolkitBody2";
3139
3814
 
3140
3815
  // src/foundation/Caption/Caption.tsx
3141
- import React22 from "react";
3816
+ import React23 from "react";
3142
3817
  import { Typography as Typography11 } from "@mui/material";
3143
- import { jsx as jsx36 } from "react/jsx-runtime";
3144
- var Caption = React22.forwardRef(
3818
+ import { jsx as jsx38 } from "react/jsx-runtime";
3819
+ var Caption = React23.forwardRef(
3145
3820
  function Caption2({ color = "text.primary", children, ...props }, ref) {
3146
- return /* @__PURE__ */ jsx36(Typography11, { ref, variant: "caption", color, ...props, children });
3821
+ return /* @__PURE__ */ jsx38(Typography11, { ref, variant: "caption", color, ...props, children });
3147
3822
  }
3148
3823
  );
3149
3824
  Caption.displayName = "ToolkitCaption";
3150
3825
 
3151
3826
  // src/foundation/Overline/Overline.tsx
3152
- import React23 from "react";
3827
+ import React24 from "react";
3153
3828
  import { Typography as Typography12 } from "@mui/material";
3154
- import { jsx as jsx37 } from "react/jsx-runtime";
3155
- var Overline = React23.forwardRef(
3829
+ import { jsx as jsx39 } from "react/jsx-runtime";
3830
+ var Overline = React24.forwardRef(
3156
3831
  function Overline2({ color = "text.primary", children, ...props }, ref) {
3157
- return /* @__PURE__ */ jsx37(Typography12, { ref, variant: "overline", color, ...props, children });
3832
+ return /* @__PURE__ */ jsx39(Typography12, { ref, variant: "overline", color, ...props, children });
3158
3833
  }
3159
3834
  );
3160
3835
  Overline.displayName = "ToolkitOverline";
3161
3836
 
3162
3837
  // src/foundation/TypographyButton/TypographyButton.tsx
3163
- import React24 from "react";
3838
+ import React25 from "react";
3164
3839
  import { Typography as Typography13 } from "@mui/material";
3165
- import { jsx as jsx38 } from "react/jsx-runtime";
3166
- var TypographyButton = React24.forwardRef(
3840
+ import { jsx as jsx40 } from "react/jsx-runtime";
3841
+ var TypographyButton = React25.forwardRef(
3167
3842
  function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
3168
- return /* @__PURE__ */ jsx38(Typography13, { ref, variant: "button", color, ...props, children });
3843
+ return /* @__PURE__ */ jsx40(Typography13, { ref, variant: "button", color, ...props, children });
3169
3844
  }
3170
3845
  );
3171
3846
  TypographyButton.displayName = "ToolkitTypographyButton";
@@ -3187,6 +3862,7 @@ export {
3187
3862
  CardContent,
3188
3863
  CardHeader,
3189
3864
  Chip,
3865
+ ConfirmDialog,
3190
3866
  DateCalendar,
3191
3867
  DateField,
3192
3868
  DateLocalizationProvider,
@@ -3212,6 +3888,7 @@ export {
3212
3888
  MobileDatePicker,
3213
3889
  MobileDateTimePicker,
3214
3890
  MobileTimePicker,
3891
+ MultiSelect,
3215
3892
  Overline,
3216
3893
  PageSpinner,
3217
3894
  Pagination,