@bwp-web/components 1.9.7 → 1.10.0

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.cjs CHANGED
@@ -160,8 +160,8 @@ var require_randomColor = __commonJS({
160
160
  return "hsl(" + hsl[0] + ", " + hsl[1] + "%, " + hsl[2] + "%)";
161
161
  case "hsla":
162
162
  var hslColor = HSVtoHSL(hsv);
163
- var alpha5 = options.alpha || Math.random();
164
- return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " + alpha5 + ")";
163
+ var alpha6 = options.alpha || Math.random();
164
+ return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " + alpha6 + ")";
165
165
  case "rgbArray":
166
166
  return HSVtoRGB(hsv);
167
167
  case "rgb":
@@ -169,8 +169,8 @@ var require_randomColor = __commonJS({
169
169
  return "rgb(" + rgb.join(", ") + ")";
170
170
  case "rgba":
171
171
  var rgbColor = HSVtoRGB(hsv);
172
- var alpha5 = options.alpha || Math.random();
173
- return "rgba(" + rgbColor.join(", ") + ", " + alpha5 + ")";
172
+ var alpha6 = options.alpha || Math.random();
173
+ return "rgba(" + rgbColor.join(", ") + ", " + alpha6 + ")";
174
174
  default:
175
175
  return HSVtoHex(hsv);
176
176
  }
@@ -410,6 +410,7 @@ __export(index_exports, {
410
410
  BiampBannerIcon: () => BiampBannerIcon,
411
411
  BiampBuildAppContent: () => BiampBuildAppContent,
412
412
  BiampBuildAppContentItem: () => BiampBuildAppContentItem,
413
+ BiampCheckboxListPopover: () => BiampCheckboxListPopover,
413
414
  BiampEndUserAppContent: () => BiampEndUserAppContent,
414
415
  BiampEndUserAppContentItem: () => BiampEndUserAppContentItem,
415
416
  BiampGlobalSearch: () => BiampGlobalSearch,
@@ -422,6 +423,12 @@ __export(index_exports, {
422
423
  BiampHeaderSearch: () => BiampHeaderSearch,
423
424
  BiampHeaderTitle: () => BiampHeaderTitle,
424
425
  BiampLayout: () => BiampLayout,
426
+ BiampListPopover: () => BiampListPopover,
427
+ BiampListPopoverItem: () => BiampListPopoverItem,
428
+ BiampListPopoverScrollArea: () => BiampListPopoverScrollArea,
429
+ BiampNotificationPopover: () => BiampNotificationPopover,
430
+ BiampNotificationPopoverBody: () => BiampNotificationPopoverBody,
431
+ BiampNotificationPopoverHeader: () => BiampNotificationPopoverHeader,
425
432
  BiampSidebar: () => BiampSidebar,
426
433
  BiampSidebarComponent: () => BiampSidebarComponent,
427
434
  BiampSidebarIcon: () => BiampSidebarIcon,
@@ -1475,7 +1482,7 @@ function BiampHeaderButton({
1475
1482
  }
1476
1483
  );
1477
1484
  }
1478
- var POPOVER_MAX_WIDTH = 350;
1485
+ var APP_POPOVER_MAX_WIDTH = 350;
1479
1486
  function BiampAppPopover({
1480
1487
  children,
1481
1488
  open,
@@ -1487,7 +1494,7 @@ function BiampAppPopover({
1487
1494
  {
1488
1495
  open,
1489
1496
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
1490
- transformOrigin: { vertical: -8, horizontal: POPOVER_MAX_WIDTH - 4 },
1497
+ transformOrigin: { vertical: -4, horizontal: APP_POPOVER_MAX_WIDTH },
1491
1498
  sx: { ...sx },
1492
1499
  slotProps: {
1493
1500
  paper: {
@@ -1498,7 +1505,7 @@ function BiampAppPopover({
1498
1505
  outlineStyle: "solid",
1499
1506
  outlineColor: ({ palette }) => palette.divider,
1500
1507
  boxShadow: ({ palette }) => `0px 4px 50px 0px ${(0, import_material5.alpha)(palette.grey[900], 0.1)}`,
1501
- maxWidth: POPOVER_MAX_WIDTH,
1508
+ maxWidth: APP_POPOVER_MAX_WIDTH,
1502
1509
  width: "100%",
1503
1510
  p: 2,
1504
1511
  display: "flex",
@@ -1779,8 +1786,215 @@ function BiampHeaderProfile({
1779
1786
  );
1780
1787
  }
1781
1788
 
1789
+ // src/BiampNotificationPopover/BiampNotificationPopover.tsx
1790
+ var import_material6 = require("@mui/material");
1791
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1792
+ var NOTIFICATION_POPOVER_MAX_WIDTH = 420;
1793
+ function BiampNotificationPopover({
1794
+ children,
1795
+ open,
1796
+ sx,
1797
+ ...props
1798
+ }) {
1799
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1800
+ import_material6.Popover,
1801
+ {
1802
+ open,
1803
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
1804
+ transformOrigin: {
1805
+ vertical: -4,
1806
+ horizontal: NOTIFICATION_POPOVER_MAX_WIDTH
1807
+ },
1808
+ sx: { ...sx },
1809
+ slotProps: {
1810
+ paper: {
1811
+ sx: {
1812
+ borderRadius: "12px",
1813
+ backgroundImage: "none",
1814
+ outlineWidth: "0.6px",
1815
+ outlineStyle: "solid",
1816
+ outlineColor: ({ palette }) => palette.divider,
1817
+ boxShadow: ({ palette }) => `0px 4px 50px 0px ${(0, import_material6.alpha)(palette.grey[900], 0.1)}`,
1818
+ maxWidth: NOTIFICATION_POPOVER_MAX_WIDTH,
1819
+ maxHeight: "650px",
1820
+ width: "100%",
1821
+ display: "flex",
1822
+ flexDirection: "column",
1823
+ overflow: "hidden"
1824
+ }
1825
+ }
1826
+ },
1827
+ ...props,
1828
+ children
1829
+ }
1830
+ );
1831
+ }
1832
+ function BiampNotificationPopoverHeader({
1833
+ sx,
1834
+ ...props
1835
+ }) {
1836
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1837
+ import_material6.Stack,
1838
+ {
1839
+ direction: "row",
1840
+ alignItems: "center",
1841
+ justifyContent: "space-between",
1842
+ sx: {
1843
+ flexShrink: 0,
1844
+ gap: 2,
1845
+ px: 2,
1846
+ pt: 2,
1847
+ ...sx
1848
+ },
1849
+ ...props
1850
+ }
1851
+ );
1852
+ }
1853
+ function BiampNotificationPopoverBody({
1854
+ sx,
1855
+ ...props
1856
+ }) {
1857
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1858
+ import_material6.Box,
1859
+ {
1860
+ sx: {
1861
+ flex: 1,
1862
+ minHeight: 0,
1863
+ overflowY: "auto",
1864
+ overscrollBehavior: "none",
1865
+ px: 2,
1866
+ pb: 2,
1867
+ ...sx
1868
+ },
1869
+ ...props
1870
+ }
1871
+ );
1872
+ }
1873
+
1874
+ // src/BiampListPopover/BiampListPopover.tsx
1875
+ var import_material7 = require("@mui/material");
1876
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1877
+ function BiampListPopover({
1878
+ children,
1879
+ slotProps,
1880
+ ...props
1881
+ }) {
1882
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1883
+ import_material7.Popover,
1884
+ {
1885
+ slotProps: {
1886
+ ...slotProps,
1887
+ paper: {
1888
+ sx: ({ palette }) => ({
1889
+ borderRadius: "6px",
1890
+ backgroundImage: "none",
1891
+ border: `0.6px solid ${palette.dividers.secondary}`,
1892
+ boxShadow: `0px 1px 1px 0px ${(0, import_material7.alpha)(palette.common.black, 0.05)}`,
1893
+ minWidth: "150px"
1894
+ }),
1895
+ ...slotProps?.paper ?? {}
1896
+ }
1897
+ },
1898
+ ...props,
1899
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.List, { dense: true, disablePadding: true, children })
1900
+ }
1901
+ );
1902
+ }
1903
+ var listItemSx = {
1904
+ py: 0,
1905
+ pr: 1.5,
1906
+ pl: 0,
1907
+ alignItems: "center",
1908
+ cursor: "pointer",
1909
+ "&:hover": {
1910
+ backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
1911
+ }
1912
+ };
1913
+ function BiampListPopoverItem({
1914
+ sx,
1915
+ ...props
1916
+ }) {
1917
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1918
+ import_material7.ListItem,
1919
+ {
1920
+ dense: true,
1921
+ sx: [listItemSx, ...Array.isArray(sx) ? sx : [sx]],
1922
+ ...props
1923
+ }
1924
+ );
1925
+ }
1926
+ function BiampListPopoverScrollArea({
1927
+ maxHeight = 340,
1928
+ sx,
1929
+ ...props
1930
+ }) {
1931
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1932
+ import_material7.Box,
1933
+ {
1934
+ sx: { maxHeight, overflow: "auto", overscrollBehavior: "none", ...sx },
1935
+ ...props
1936
+ }
1937
+ );
1938
+ }
1939
+
1940
+ // src/BiampCheckboxListPopover/BiampCheckboxListPopover.tsx
1941
+ var import_material8 = require("@mui/material");
1942
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1943
+ function resolveAria(label, ariaLabel) {
1944
+ if (ariaLabel) return ariaLabel;
1945
+ return typeof label === "string" ? label : void 0;
1946
+ }
1947
+ function BiampCheckboxListPopover({
1948
+ items,
1949
+ onToggleItem,
1950
+ showSelectAll = true,
1951
+ selectAllLabel = "Show all",
1952
+ onToggleAll,
1953
+ maxHeight,
1954
+ ...popoverProps
1955
+ }) {
1956
+ const allChecked = items.length > 0 && items.every((item) => item.checked);
1957
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BiampListPopover, { ...popoverProps, children: [
1958
+ showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1959
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BiampListPopoverItem, { onClick: () => onToggleAll?.(!allChecked), children: [
1960
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1961
+ import_material8.Checkbox,
1962
+ {
1963
+ checked: allChecked,
1964
+ slotProps: { input: { "aria-label": selectAllLabel } }
1965
+ }
1966
+ ),
1967
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Typography, { variant: "caption", fontWeight: 600, children: selectAllLabel })
1968
+ ] }),
1969
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Divider, {})
1970
+ ] }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BiampListPopoverScrollArea, { maxHeight, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1972
+ BiampListPopoverItem,
1973
+ {
1974
+ onClick: () => onToggleItem(item.id),
1975
+ children: [
1976
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1977
+ import_material8.Checkbox,
1978
+ {
1979
+ checked: item.checked,
1980
+ sx: { py: 1 },
1981
+ slotProps: {
1982
+ input: {
1983
+ "aria-label": resolveAria(item.label, item.ariaLabel)
1984
+ }
1985
+ }
1986
+ }
1987
+ ),
1988
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Typography, { variant: "caption", children: item.label })
1989
+ ]
1990
+ },
1991
+ item.id
1992
+ )) })
1993
+ ] });
1994
+ }
1995
+
1782
1996
  // src/BiampTable/BiampTable.tsx
1783
- var import_material10 = require("@mui/material");
1997
+ var import_material13 = require("@mui/material");
1784
1998
  var import_assets8 = require("@bwp-web/assets");
1785
1999
  var import_react_table2 = require("@tanstack/react-table");
1786
2000
  var import_react9 = require("react");
@@ -1789,9 +2003,9 @@ var import_react9 = require("react");
1789
2003
  var import_assets5 = require("@bwp-web/assets");
1790
2004
 
1791
2005
  // src/BiampTable/BiampTableStatusMessage.tsx
1792
- var import_material6 = require("@mui/material");
2006
+ var import_material9 = require("@mui/material");
1793
2007
  var import_react6 = require("react");
1794
- var import_jsx_runtime6 = require("react/jsx-runtime");
2008
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1795
2009
  function BiampTableStatusMessage({
1796
2010
  icon,
1797
2011
  title,
@@ -1799,25 +2013,25 @@ function BiampTableStatusMessage({
1799
2013
  children,
1800
2014
  ...stackProps
1801
2015
  }) {
1802
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_material6.Stack, { alignItems: "center", gap: 1.5, ...stackProps, children: [
2016
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material9.Stack, { alignItems: "center", gap: 1.5, ...stackProps, children: [
1803
2017
  (0, import_react6.cloneElement)(icon, {
1804
2018
  "aria-hidden": true,
1805
2019
  sx: { width: 56, height: 56, ...icon.props.sx }
1806
2020
  }),
1807
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.Typography, { variant: "h2", children: title }),
1808
- description && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.Typography, { variant: "body1", children: description }),
2021
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.Typography, { variant: "h2", children: title }),
2022
+ description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.Typography, { variant: "body1", children: description }),
1809
2023
  children
1810
2024
  ] });
1811
2025
  }
1812
2026
 
1813
2027
  // src/BiampTable/BiampTableEmptyState.tsx
1814
- var import_jsx_runtime7 = require("react/jsx-runtime");
2028
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1815
2029
  function BiampTableEmptyState({
1816
- icon = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_assets5.NoResultsIcon, {}),
2030
+ icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_assets5.NoResultsIcon, {}),
1817
2031
  title = "Nothing to show",
1818
2032
  ...rest
1819
2033
  }) {
1820
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2034
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1821
2035
  BiampTableStatusMessage,
1822
2036
  {
1823
2037
  role: "status",
@@ -1830,25 +2044,25 @@ function BiampTableEmptyState({
1830
2044
 
1831
2045
  // src/BiampTable/BiampTableErrorState.tsx
1832
2046
  var import_assets6 = require("@bwp-web/assets");
1833
- var import_jsx_runtime8 = require("react/jsx-runtime");
2047
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1834
2048
  function BiampTableErrorState({
1835
- icon = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_assets6.ServiceNotReachableIcon, {}),
2049
+ icon = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_assets6.ServiceNotReachableIcon, {}),
1836
2050
  title = "Failed to load",
1837
2051
  ...rest
1838
2052
  }) {
1839
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BiampTableStatusMessage, { role: "alert", icon, title, ...rest });
2053
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BiampTableStatusMessage, { role: "alert", icon, title, ...rest });
1840
2054
  }
1841
2055
 
1842
2056
  // src/BiampTable/BiampTableRow.tsx
1843
- var import_material9 = require("@mui/material");
2057
+ var import_material12 = require("@mui/material");
1844
2058
  var import_assets7 = require("@bwp-web/assets");
1845
2059
  var import_react_table = require("@tanstack/react-table");
1846
2060
  var import_react8 = __toESM(require("react"), 1);
1847
2061
 
1848
2062
  // src/BiampTable/BiampTableTruncatedCell.tsx
1849
- var import_material7 = require("@mui/material");
2063
+ var import_material10 = require("@mui/material");
1850
2064
  var import_react7 = require("react");
1851
- var import_jsx_runtime9 = require("react/jsx-runtime");
2065
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1852
2066
  function BiampTableTruncatedCell({
1853
2067
  children
1854
2068
  }) {
@@ -1863,16 +2077,16 @@ function BiampTableTruncatedCell({
1863
2077
  const handleMouseLeave = (0, import_react7.useCallback)(() => {
1864
2078
  setOpen(false);
1865
2079
  }, []);
1866
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1867
- import_material7.Tooltip,
2080
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2081
+ import_material10.Tooltip,
1868
2082
  {
1869
2083
  title: children,
1870
2084
  open,
1871
2085
  arrow: true,
1872
2086
  placement: "top",
1873
2087
  disableInteractive: true,
1874
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1875
- import_material7.Box,
2088
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2089
+ import_material10.Box,
1876
2090
  {
1877
2091
  "data-truncate": true,
1878
2092
  ref: textRef,
@@ -1929,8 +2143,8 @@ function cellSx(sticky, minWidth, zIndex) {
1929
2143
  }
1930
2144
 
1931
2145
  // src/BiampTable/BiampTableExpandGuidelines.tsx
1932
- var import_material8 = require("@mui/material");
1933
- var import_jsx_runtime10 = require("react/jsx-runtime");
2146
+ var import_material11 = require("@mui/material");
2147
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1934
2148
  var guidelineIndent = 28;
1935
2149
  var guidelineCellPaddingLeft = 12;
1936
2150
  var guidelineLineOffsetFromParentText = 4;
@@ -1964,8 +2178,8 @@ function ExpandGuidelines({ row }) {
1964
2178
  const ancestor = getAncestorAtDepth(row, k);
1965
2179
  if (!ancestor || isLastChildOfParent(ancestor)) continue;
1966
2180
  lines.push(
1967
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1968
- import_material8.Box,
2181
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2182
+ import_material11.Box,
1969
2183
  {
1970
2184
  "aria-hidden": true,
1971
2185
  sx: {
@@ -1987,8 +2201,8 @@ function ExpandGuidelines({ row }) {
1987
2201
  const rowIsFirst = isFirstChildOfParent(row);
1988
2202
  const elbowTopOffset = rowIsFirst ? -guidelineFirstChildTopExtension : 0;
1989
2203
  lines.push(
1990
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1991
- import_material8.Box,
2204
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2205
+ import_material11.Box,
1992
2206
  {
1993
2207
  "aria-hidden": true,
1994
2208
  sx: {
@@ -2006,8 +2220,8 @@ function ExpandGuidelines({ row }) {
2006
2220
  );
2007
2221
  if (!rowIsLast) {
2008
2222
  lines.push(
2009
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2010
- import_material8.Box,
2223
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2224
+ import_material11.Box,
2011
2225
  {
2012
2226
  "aria-hidden": true,
2013
2227
  sx: {
@@ -2025,8 +2239,8 @@ function ExpandGuidelines({ row }) {
2025
2239
  );
2026
2240
  }
2027
2241
  lines.push(
2028
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
2029
- import_material8.Box,
2242
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2243
+ import_material11.Box,
2030
2244
  {
2031
2245
  "aria-hidden": true,
2032
2246
  sx: {
@@ -2042,11 +2256,11 @@ function ExpandGuidelines({ row }) {
2042
2256
  "h-elbow"
2043
2257
  )
2044
2258
  );
2045
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: lines });
2259
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, { children: lines });
2046
2260
  }
2047
2261
 
2048
2262
  // src/BiampTable/BiampTableRow.tsx
2049
- var import_jsx_runtime11 = require("react/jsx-runtime");
2263
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2050
2264
  var rowCursorPointerSx = { cursor: "pointer" };
2051
2265
  var selectionCellSx = {
2052
2266
  position: "sticky",
@@ -2069,8 +2283,8 @@ function ExpandToggle({
2069
2283
  rowLabel
2070
2284
  }) {
2071
2285
  if (row.getCanExpand()) {
2072
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2073
- import_material9.IconButton,
2286
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2287
+ import_material12.IconButton,
2074
2288
  {
2075
2289
  variant: "none",
2076
2290
  onClick: (e) => {
@@ -2079,13 +2293,13 @@ function ExpandToggle({
2079
2293
  },
2080
2294
  "aria-label": isExpanded ? `Collapse ${rowLabel}` : `Expand ${rowLabel}`,
2081
2295
  "aria-expanded": isExpanded,
2082
- children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2296
+ children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2083
2297
  import_assets7.ChevronDownIcon,
2084
2298
  {
2085
2299
  variant: "xs",
2086
2300
  sx: { color: ({ palette }) => palette.text.secondary }
2087
2301
  }
2088
- ) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2302
+ ) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2089
2303
  import_assets7.ChevronRightIcon,
2090
2304
  {
2091
2305
  variant: "xs",
@@ -2095,7 +2309,7 @@ function ExpandToggle({
2095
2309
  }
2096
2310
  );
2097
2311
  }
2098
- if (hasExpandableRows) return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Box, { sx: expandPlaceholderSx });
2312
+ if (hasExpandableRows) return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Box, { sx: expandPlaceholderSx });
2099
2313
  return null;
2100
2314
  }
2101
2315
  function renderCellContent({
@@ -2111,18 +2325,18 @@ function renderCellContent({
2111
2325
  const content = (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext());
2112
2326
  if (sticky) return content;
2113
2327
  const truncate = cell.column.columnDef.meta?.truncate ?? true;
2114
- const truncated = truncate ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BiampTableTruncatedCell, { children: content }) : content;
2328
+ const truncated = truncate ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BiampTableTruncatedCell, { children: content }) : content;
2115
2329
  if (!isExpandCell) return truncated;
2116
2330
  if (alwaysExpanded) {
2117
- return row.depth > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Box, { sx: { pl: `${row.depth * 28}px` }, children: truncated }) : truncated;
2331
+ return row.depth > 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Box, { sx: { pl: `${row.depth * 28}px` }, children: truncated }) : truncated;
2118
2332
  }
2119
2333
  const rowLabel = getRowLabel ? getRowLabel(row.original) : `row ${row.index + 1}`;
2120
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2121
- import_material9.Box,
2334
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2335
+ import_material12.Box,
2122
2336
  {
2123
2337
  sx: row.depth > 0 ? { ...expandCellBaseSx, pl: `${row.depth * 12}px` } : expandCellBaseSx,
2124
2338
  children: [
2125
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2339
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2126
2340
  ExpandToggle,
2127
2341
  {
2128
2342
  row,
@@ -2161,8 +2375,8 @@ function BiampTableRowInner({
2161
2375
  onKeyDown: userRowOnKeyDown,
2162
2376
  ...restRowProps
2163
2377
  } = resolvedRow ?? {};
2164
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2165
- import_material9.TableRow,
2378
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2379
+ import_material12.TableRow,
2166
2380
  {
2167
2381
  ...restRowProps,
2168
2382
  hover: clickable,
@@ -2186,16 +2400,16 @@ function BiampTableRowInner({
2186
2400
  userRowOnKeyDown?.(e);
2187
2401
  } : userRowOnKeyDown,
2188
2402
  children: [
2189
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2190
- import_material9.TableCell,
2403
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2404
+ import_material12.TableCell,
2191
2405
  {
2192
2406
  padding: "checkbox",
2193
2407
  sx: mergeSx(
2194
2408
  selectionCellSx,
2195
2409
  customColor ? { backgroundColor: customColor } : void 0
2196
2410
  ),
2197
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2198
- import_material9.Checkbox,
2411
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2412
+ import_material12.Checkbox,
2199
2413
  {
2200
2414
  checked: isSelected,
2201
2415
  disabled: !row.getCanSelect(),
@@ -2219,8 +2433,8 @@ function BiampTableRowInner({
2219
2433
  const showGuidelinesOnCell = isExpandCell && showExpandGuidelines && alwaysExpanded && row.depth > 0;
2220
2434
  const resolvedCell = resolveSlot(cellSlotProps, { cell });
2221
2435
  const { sx: userCellSx, ...restCellProps } = resolvedCell ?? {};
2222
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2223
- import_material9.TableCell,
2436
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2437
+ import_material12.TableCell,
2224
2438
  {
2225
2439
  ...restCellProps,
2226
2440
  "data-sticky": sticky || void 0,
@@ -2232,7 +2446,7 @@ function BiampTableRowInner({
2232
2446
  userCellSx
2233
2447
  ),
2234
2448
  children: [
2235
- showGuidelinesOnCell && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ExpandGuidelines, { row }),
2449
+ showGuidelinesOnCell && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ExpandGuidelines, { row }),
2236
2450
  renderCellContent({
2237
2451
  cell,
2238
2452
  row,
@@ -2261,7 +2475,7 @@ var BiampTableRow = import_react8.default.memo(
2261
2475
  );
2262
2476
 
2263
2477
  // src/BiampTable/BiampTable.tsx
2264
- var import_jsx_runtime12 = require("react/jsx-runtime");
2478
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2265
2479
  var overlaySx = {
2266
2480
  position: "absolute",
2267
2481
  top: 0,
@@ -2322,10 +2536,10 @@ function BiampTable({
2322
2536
  const hasExpandableRows = enableExpanding && rows.some((r) => r.getCanExpand());
2323
2537
  const showError = !!error && !loading;
2324
2538
  const showEmpty = !showError && !loading && rows.length === 0;
2325
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2326
- import_material10.TableContainer,
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2540
+ import_material13.TableContainer,
2327
2541
  {
2328
- component: import_material10.Box,
2542
+ component: import_material13.Box,
2329
2543
  ...boxProps,
2330
2544
  ref: containerRef,
2331
2545
  sx: {
@@ -2336,8 +2550,8 @@ function BiampTable({
2336
2550
  ...sx
2337
2551
  },
2338
2552
  children: [
2339
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2340
- import_material10.Table,
2553
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2554
+ import_material13.Table,
2341
2555
  {
2342
2556
  "aria-busy": showLoading || void 0,
2343
2557
  ...restTableSlotProps,
@@ -2346,14 +2560,14 @@ function BiampTable({
2346
2560
  userTableSx
2347
2561
  ),
2348
2562
  children: [
2349
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.TableHead, { ...restHeadSlotProps, sx: mergeSx(userHeadSx), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2350
- import_material10.TableRow,
2563
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.TableHead, { ...restHeadSlotProps, sx: mergeSx(userHeadSx), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2564
+ import_material13.TableRow,
2351
2565
  {
2352
2566
  ...restHeaderRowSlotProps,
2353
2567
  sx: mergeSx(userHeaderRowSx),
2354
2568
  children: [
2355
- enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.TableCell, { padding: "checkbox", sx: headerSelectionCellSx, children: !hideSelectAll && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2356
- import_material10.Checkbox,
2569
+ enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.TableCell, { padding: "checkbox", sx: headerSelectionCellSx, children: !hideSelectAll && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2570
+ import_material13.Checkbox,
2357
2571
  {
2358
2572
  checked: table.getIsAllPageRowsSelected(),
2359
2573
  indeterminate: table.getIsSomePageRowsSelected(),
@@ -2368,8 +2582,8 @@ function BiampTable({
2368
2582
  header
2369
2583
  });
2370
2584
  const { sx: userHeaderCellSx, ...restHeaderCellProps } = resolvedHeaderCell ?? {};
2371
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2372
- import_material10.TableCell,
2585
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2586
+ import_material13.TableCell,
2373
2587
  {
2374
2588
  ...restHeaderCellProps,
2375
2589
  "data-sticky": sticky || void 0,
@@ -2381,8 +2595,8 @@ function BiampTable({
2381
2595
  cellSx(sticky, header.column.columnDef.meta?.minWidth, 3),
2382
2596
  userHeaderCellSx
2383
2597
  ),
2384
- children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2385
- import_material10.TableSortLabel,
2598
+ children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2599
+ import_material13.TableSortLabel,
2386
2600
  {
2387
2601
  active: !!header.column.getIsSorted(),
2388
2602
  direction: header.column.getIsSorted() || "asc",
@@ -2407,12 +2621,12 @@ function BiampTable({
2407
2621
  },
2408
2622
  headerGroup.id
2409
2623
  )) }),
2410
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2411
- import_material10.TableBody,
2624
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2625
+ import_material13.TableBody,
2412
2626
  {
2413
2627
  ...restBodySlotProps,
2414
2628
  sx: mergeSx({ opacity: showLoading ? 0.3 : 1 }, userBodySx),
2415
- children: !showError && rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2629
+ children: !showError && rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2416
2630
  BiampTableRow,
2417
2631
  {
2418
2632
  row,
@@ -2439,22 +2653,22 @@ function BiampTable({
2439
2653
  ]
2440
2654
  }
2441
2655
  ),
2442
- showError && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.Box, { sx: overlaySx, children: error === true ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BiampTableErrorState, { sx: { pointerEvents: "auto" } }) : error instanceof Error ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2656
+ showError && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Box, { sx: overlaySx, children: error === true ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BiampTableErrorState, { sx: { pointerEvents: "auto" } }) : error instanceof Error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2443
2657
  BiampTableErrorState,
2444
2658
  {
2445
2659
  description: error.message,
2446
2660
  sx: { pointerEvents: "auto" }
2447
2661
  }
2448
2662
  ) : error }),
2449
- showEmpty && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.Box, { sx: overlaySx, children: empty && empty !== true ? empty : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BiampTableEmptyState, { sx: { pointerEvents: "auto" } }) })
2663
+ showEmpty && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Box, { sx: overlaySx, children: empty && empty !== true ? empty : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BiampTableEmptyState, { sx: { pointerEvents: "auto" } }) })
2450
2664
  ]
2451
2665
  }
2452
2666
  );
2453
2667
  }
2454
2668
 
2455
2669
  // src/BiampTable/BiampTableContainer.tsx
2456
- var import_material11 = require("@mui/material");
2457
- var import_jsx_runtime13 = require("react/jsx-runtime");
2670
+ var import_material14 = require("@mui/material");
2671
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2458
2672
  function BiampTableContainer({
2459
2673
  withBorderTop = true,
2460
2674
  withBorderBottom = false,
@@ -2462,8 +2676,8 @@ function BiampTableContainer({
2462
2676
  sx,
2463
2677
  ...props
2464
2678
  }) {
2465
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2466
- import_material11.Stack,
2679
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2680
+ import_material14.Stack,
2467
2681
  {
2468
2682
  direction: "column",
2469
2683
  width: "100%",
@@ -2480,25 +2694,24 @@ function BiampTableContainer({
2480
2694
  }
2481
2695
 
2482
2696
  // src/BiampTable/BiampTableCellActionButton.tsx
2483
- var import_material12 = require("@mui/material");
2484
- var import_jsx_runtime14 = require("react/jsx-runtime");
2697
+ var import_material15 = require("@mui/material");
2698
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2485
2699
  function BiampTableCellActionButton({ label, icon, ...props }) {
2486
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2487
- import_material12.Tooltip,
2700
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2701
+ import_material15.Tooltip,
2488
2702
  {
2489
2703
  title: label,
2490
2704
  placement: "top",
2491
2705
  enterDelay: 500,
2492
2706
  enterNextDelay: 500,
2493
2707
  disableInteractive: true,
2494
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.IconButton, { "aria-label": label, ...props, children: icon }) })
2708
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material15.IconButton, { "aria-label": label, ...props, children: icon }) })
2495
2709
  }
2496
2710
  );
2497
2711
  }
2498
2712
 
2499
2713
  // src/BiampTable/BiampTableColumnVisibility.tsx
2500
- var import_material13 = require("@mui/material");
2501
- var import_jsx_runtime15 = require("react/jsx-runtime");
2714
+ var import_jsx_runtime18 = require("react/jsx-runtime");
2502
2715
  function toVisibilityState(visibility) {
2503
2716
  return visibility;
2504
2717
  }
@@ -2521,16 +2734,6 @@ function getColumnVisibilityDirtyCount(table, defaultVisibility) {
2521
2734
  }
2522
2735
  return count;
2523
2736
  }
2524
- var columnListItemSx = {
2525
- py: 0,
2526
- pr: 1.5,
2527
- pl: 0,
2528
- alignItems: "center",
2529
- cursor: "pointer",
2530
- "&:hover": {
2531
- backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
2532
- }
2533
- };
2534
2737
  function BiampTableColumnVisibility({
2535
2738
  table,
2536
2739
  showAllLabel = "Show all",
@@ -2541,9 +2744,16 @@ function BiampTableColumnVisibility({
2541
2744
  ...popoverProps
2542
2745
  }) {
2543
2746
  const hideableColumns = table.getAllLeafColumns().filter((col) => col.getCanHide());
2544
- const allVisible = hideableColumns.every((col) => col.getIsVisible());
2545
- const toggleAllHideable = () => {
2546
- const next = !allVisible;
2747
+ const items = hideableColumns.map((column) => {
2748
+ const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
2749
+ return {
2750
+ id: column.id,
2751
+ label: columnName,
2752
+ checked: column.getIsVisible(),
2753
+ ariaLabel: `Show ${columnName}`
2754
+ };
2755
+ });
2756
+ const setAllHideable = (next) => {
2547
2757
  table.setColumnVisibility((prev) => {
2548
2758
  const updated = { ...prev };
2549
2759
  for (const col of hideableColumns) {
@@ -2552,71 +2762,19 @@ function BiampTableColumnVisibility({
2552
2762
  return updated;
2553
2763
  });
2554
2764
  };
2555
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2556
- import_material13.Popover,
2765
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2766
+ BiampCheckboxListPopover,
2557
2767
  {
2558
2768
  anchorEl,
2559
2769
  open: Boolean(anchorEl),
2560
2770
  anchorOrigin,
2561
2771
  transformOrigin,
2562
- slotProps: {
2563
- ...slotProps,
2564
- paper: {
2565
- sx: ({ palette }) => ({
2566
- borderRadius: "6px",
2567
- backgroundImage: "none",
2568
- border: `0.6px solid ${palette.dividers.secondary}`,
2569
- boxShadow: `0px 1px 1px 0px ${(0, import_material13.alpha)(palette.common.black, 0.05)}`,
2570
- minWidth: "150px"
2571
- }),
2572
- ...slotProps?.paper ?? {}
2573
- }
2574
- },
2575
- ...popoverProps,
2576
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material13.List, { dense: true, disablePadding: true, children: [
2577
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material13.ListItem, { dense: true, sx: columnListItemSx, onClick: toggleAllHideable, children: [
2578
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2579
- import_material13.Checkbox,
2580
- {
2581
- checked: allVisible,
2582
- slotProps: { input: { "aria-label": `${showAllLabel} columns` } }
2583
- }
2584
- ),
2585
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Typography, { variant: "caption", fontWeight: 600, children: showAllLabel })
2586
- ] }),
2587
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Divider, {}),
2588
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2589
- import_material13.Box,
2590
- {
2591
- sx: { maxHeight: 340, overflow: "auto", overscrollBehavior: "none" },
2592
- children: hideableColumns.map((column) => {
2593
- const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
2594
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2595
- import_material13.ListItem,
2596
- {
2597
- dense: true,
2598
- sx: columnListItemSx,
2599
- onClick: column.getToggleVisibilityHandler(),
2600
- children: [
2601
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2602
- import_material13.Checkbox,
2603
- {
2604
- checked: column.getIsVisible(),
2605
- sx: { py: 1 },
2606
- slotProps: {
2607
- input: { "aria-label": `Show ${columnName}` }
2608
- }
2609
- }
2610
- ),
2611
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Typography, { variant: "caption", children: columnName })
2612
- ]
2613
- },
2614
- column.id
2615
- );
2616
- })
2617
- }
2618
- )
2619
- ] })
2772
+ slotProps,
2773
+ items,
2774
+ onToggleItem: (id) => table.getColumn(id)?.toggleVisibility(),
2775
+ selectAllLabel: showAllLabel,
2776
+ onToggleAll: setAllHideable,
2777
+ ...popoverProps
2620
2778
  }
2621
2779
  );
2622
2780
  }
@@ -2626,8 +2784,8 @@ var import_assets9 = require("@bwp-web/assets");
2626
2784
  var import_react10 = require("react");
2627
2785
 
2628
2786
  // src/BiampTable/BiampTableToolbarActionButton.tsx
2629
- var import_material14 = require("@mui/material");
2630
- var import_jsx_runtime16 = require("react/jsx-runtime");
2787
+ var import_material16 = require("@mui/material");
2788
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2631
2789
  function BiampTableToolbarActionButton({
2632
2790
  label,
2633
2791
  icon,
@@ -2635,13 +2793,13 @@ function BiampTableToolbarActionButton({
2635
2793
  ...props
2636
2794
  }) {
2637
2795
  const showBadge = badgeContent != null && badgeContent !== 0;
2638
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2639
- import_material14.IconButton,
2796
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2797
+ import_material16.IconButton,
2640
2798
  {
2641
2799
  "aria-label": showBadge ? `${label} (${badgeContent})` : label,
2642
2800
  ...props,
2643
- children: showBadge ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2644
- import_material14.Badge,
2801
+ children: showBadge ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2802
+ import_material16.Badge,
2645
2803
  {
2646
2804
  badgeContent,
2647
2805
  color: "info",
@@ -2664,10 +2822,10 @@ function BiampTableToolbarActionButton({
2664
2822
  }
2665
2823
 
2666
2824
  // src/BiampTable/BiampTableToolbarColumnVisibility.tsx
2667
- var import_jsx_runtime17 = require("react/jsx-runtime");
2825
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2668
2826
  function BiampTableToolbarColumnVisibility({
2669
2827
  table,
2670
- icon = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_assets9.ColumnsIcon, { variant: "xs" }),
2828
+ icon = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_assets9.ColumnsIcon, { variant: "xs" }),
2671
2829
  label = "Columns",
2672
2830
  defaultColumnVisibility,
2673
2831
  showAllLabel,
@@ -2676,8 +2834,8 @@ function BiampTableToolbarColumnVisibility({
2676
2834
  const [anchorEl, setAnchorEl] = (0, import_react10.useState)(null);
2677
2835
  const defaults = defaultColumnVisibility ?? getDefaultColumnVisibility(table);
2678
2836
  const dirtyCount = getColumnVisibilityDirtyCount(table, defaults);
2679
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
2680
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2837
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
2838
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2681
2839
  BiampTableToolbarActionButton,
2682
2840
  {
2683
2841
  label,
@@ -2687,7 +2845,7 @@ function BiampTableToolbarColumnVisibility({
2687
2845
  ...actionButtonProps
2688
2846
  }
2689
2847
  ),
2690
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2848
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2691
2849
  BiampTableColumnVisibility,
2692
2850
  {
2693
2851
  table,
@@ -2701,8 +2859,8 @@ function BiampTableToolbarColumnVisibility({
2701
2859
 
2702
2860
  // src/BiampTable/BiampTablePagination.tsx
2703
2861
  var import_react11 = require("react");
2704
- var import_material15 = require("@mui/material");
2705
- var import_jsx_runtime18 = require("react/jsx-runtime");
2862
+ var import_material17 = require("@mui/material");
2863
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2706
2864
  var positionMap = {
2707
2865
  left: "flex-start",
2708
2866
  center: "center",
@@ -2731,8 +2889,8 @@ function BiampTablePagination({
2731
2889
  }
2732
2890
  }, [loading, pageIndex, maxPage, table]);
2733
2891
  if (autoHide && (!stableCount || stableCount <= pageSize)) return null;
2734
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2735
- import_material15.TablePagination,
2892
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2893
+ import_material17.TablePagination,
2736
2894
  {
2737
2895
  component: "div",
2738
2896
  count: stableCount,
@@ -2763,15 +2921,15 @@ function BiampTablePagination({
2763
2921
  }
2764
2922
 
2765
2923
  // src/BiampTable/BiampTableToolbar.tsx
2766
- var import_material16 = require("@mui/material");
2767
- var import_jsx_runtime19 = require("react/jsx-runtime");
2924
+ var import_material18 = require("@mui/material");
2925
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2768
2926
  function BiampTableToolbar({
2769
2927
  children,
2770
2928
  sx,
2771
2929
  ...props
2772
2930
  }) {
2773
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2774
- import_material16.Box,
2931
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2932
+ import_material18.Box,
2775
2933
  {
2776
2934
  role: "toolbar",
2777
2935
  display: "flex",
@@ -2788,14 +2946,14 @@ function BiampTableToolbar({
2788
2946
  }
2789
2947
 
2790
2948
  // src/BiampTable/BiampTableToolbarActions.tsx
2791
- var import_material17 = require("@mui/material");
2792
- var import_jsx_runtime20 = require("react/jsx-runtime");
2949
+ var import_material19 = require("@mui/material");
2950
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2793
2951
  function BiampTableToolbarActions({
2794
2952
  children,
2795
2953
  ...props
2796
2954
  }) {
2797
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2798
- import_material17.Box,
2955
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2956
+ import_material19.Box,
2799
2957
  {
2800
2958
  display: "flex",
2801
2959
  alignItems: "center",
@@ -2809,17 +2967,17 @@ function BiampTableToolbarActions({
2809
2967
  }
2810
2968
 
2811
2969
  // src/BiampTable/BiampTableToolbarExport.tsx
2812
- var import_material18 = require("@mui/material");
2970
+ var import_material20 = require("@mui/material");
2813
2971
  var import_assets10 = require("@bwp-web/assets");
2814
- var import_jsx_runtime21 = require("react/jsx-runtime");
2972
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2815
2973
  function BiampTableToolbarExport({
2816
2974
  onExport,
2817
2975
  loading,
2818
- icon = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_assets10.DownloadIcon, { variant: "xs" }),
2976
+ icon = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets10.DownloadIcon, { variant: "xs" }),
2819
2977
  label = "Export",
2820
2978
  ...props
2821
2979
  }) {
2822
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2980
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2823
2981
  BiampTableToolbarActionButton,
2824
2982
  {
2825
2983
  label,
@@ -2837,8 +2995,8 @@ function BiampTableToolbarExportTextButton({
2837
2995
  label = "Export",
2838
2996
  ...props
2839
2997
  }) {
2840
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2841
- import_material18.Button,
2998
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2999
+ import_material20.Button,
2842
3000
  {
2843
3001
  variant: "outlined",
2844
3002
  size: "small",
@@ -2852,16 +3010,16 @@ function BiampTableToolbarExportTextButton({
2852
3010
  }
2853
3011
 
2854
3012
  // src/BiampTable/BiampTableToolbarFilters.tsx
2855
- var import_material19 = require("@mui/material");
3013
+ var import_material21 = require("@mui/material");
2856
3014
  var import_assets11 = require("@bwp-web/assets");
2857
3015
  var import_react12 = require("react");
2858
- var import_jsx_runtime22 = require("react/jsx-runtime");
3016
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2859
3017
  function BiampTableToolbarFilters({
2860
3018
  activeFilterCount,
2861
3019
  children,
2862
3020
  onReset,
2863
3021
  onApply,
2864
- icon = /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_assets11.FilterIcon, { variant: "xs" }),
3022
+ icon = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_assets11.FilterIcon, { variant: "xs" }),
2865
3023
  title = "Filters",
2866
3024
  resetLabel = "Clear filters",
2867
3025
  applyLabel = "Apply",
@@ -2871,13 +3029,13 @@ function BiampTableToolbarFilters({
2871
3029
  }) {
2872
3030
  const [open, setOpen] = (0, import_react12.useState)(false);
2873
3031
  const titleId = (0, import_react12.useId)();
2874
- const theme = (0, import_material19.useTheme)();
3032
+ const theme = (0, import_material21.useTheme)();
2875
3033
  function handleClose() {
2876
3034
  onApply?.();
2877
3035
  setOpen(false);
2878
3036
  }
2879
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
2880
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3037
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
3038
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2881
3039
  BiampTableToolbarActionButton,
2882
3040
  {
2883
3041
  label: buttonLabel,
@@ -2886,8 +3044,8 @@ function BiampTableToolbarFilters({
2886
3044
  onClick: () => setOpen(true)
2887
3045
  }
2888
3046
  ),
2889
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2890
- import_material19.Drawer,
3047
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3048
+ import_material21.Drawer,
2891
3049
  {
2892
3050
  anchor: "right",
2893
3051
  open,
@@ -2898,17 +3056,17 @@ function BiampTableToolbarFilters({
2898
3056
  sx: { width: { xs: "100%", sm: 480 } },
2899
3057
  ...drawerProps?.PaperProps
2900
3058
  },
2901
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2902
- import_material19.Box,
3059
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3060
+ import_material21.Box,
2903
3061
  {
2904
3062
  height: "100%",
2905
3063
  display: "flex",
2906
3064
  flexDirection: "column",
2907
3065
  justifyContent: "space-between",
2908
3066
  children: [
2909
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_material19.Box, { children: [
2910
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
2911
- import_material19.Box,
3067
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Box, { children: [
3068
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3069
+ import_material21.Box,
2912
3070
  {
2913
3071
  display: "flex",
2914
3072
  justifyContent: "space-between",
@@ -2916,10 +3074,10 @@ function BiampTableToolbarFilters({
2916
3074
  px: 3.5,
2917
3075
  py: 2.5,
2918
3076
  children: [
2919
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_material19.Typography, { id: titleId, variant: "h2", children: [
3077
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Typography, { id: titleId, variant: "h2", children: [
2920
3078
  title,
2921
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2922
- import_material19.Badge,
3079
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3080
+ import_material21.Badge,
2923
3081
  {
2924
3082
  badgeContent: activeFilterCount,
2925
3083
  color: "secondary",
@@ -2934,21 +3092,21 @@ function BiampTableToolbarFilters({
2934
3092
  }
2935
3093
  )
2936
3094
  ] }),
2937
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2938
- import_material19.IconButton,
3095
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3096
+ import_material21.IconButton,
2939
3097
  {
2940
3098
  size: "medium",
2941
3099
  onClick: handleClose,
2942
3100
  "aria-label": closeLabel,
2943
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_assets11.CloseIcon, {})
3101
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_assets11.CloseIcon, {})
2944
3102
  }
2945
3103
  )
2946
3104
  ]
2947
3105
  }
2948
3106
  ),
2949
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_material19.Divider, {}),
2950
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2951
- import_material19.Box,
3107
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material21.Divider, {}),
3108
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3109
+ import_material21.Box,
2952
3110
  {
2953
3111
  role: "group",
2954
3112
  "aria-label": "Filter options",
@@ -2961,9 +3119,9 @@ function BiampTableToolbarFilters({
2961
3119
  }
2962
3120
  )
2963
3121
  ] }),
2964
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_material19.Box, { display: "flex", children: [
2965
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2966
- import_material19.Button,
3122
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Box, { display: "flex", children: [
3123
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3124
+ import_material21.Button,
2967
3125
  {
2968
3126
  variant: "overlay",
2969
3127
  color: "secondary",
@@ -2973,8 +3131,8 @@ function BiampTableToolbarFilters({
2973
3131
  children: resetLabel
2974
3132
  }
2975
3133
  ),
2976
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2977
- import_material19.Button,
3134
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3135
+ import_material21.Button,
2978
3136
  {
2979
3137
  variant: "overlay",
2980
3138
  color: "primary",
@@ -2993,7 +3151,7 @@ function BiampTableToolbarFilters({
2993
3151
  }
2994
3152
 
2995
3153
  // src/BiampTable/BiampTableToolbarSearch.tsx
2996
- var import_material20 = require("@mui/material");
3154
+ var import_material22 = require("@mui/material");
2997
3155
  var import_assets12 = require("@bwp-web/assets");
2998
3156
  var import_react14 = require("react");
2999
3157
 
@@ -3022,7 +3180,7 @@ function useDebouncedCallback(callback, delay = BIAMP_TABLE_DEBOUNCE_DELAY) {
3022
3180
  }
3023
3181
 
3024
3182
  // src/BiampTable/BiampTableToolbarSearch.tsx
3025
- var import_jsx_runtime23 = require("react/jsx-runtime");
3183
+ var import_jsx_runtime26 = require("react/jsx-runtime");
3026
3184
  var searchFieldSx = {
3027
3185
  "& .MuiInputBase-root": {
3028
3186
  height: "36px !important",
@@ -3046,7 +3204,7 @@ function BiampTableToolbarSearch({
3046
3204
  sx,
3047
3205
  ...textFieldProps
3048
3206
  }) {
3049
- const isMobile = (0, import_material20.useMediaQuery)((t) => t.breakpoints.down("md"));
3207
+ const isMobile = (0, import_material22.useMediaQuery)((t) => t.breakpoints.down("md"));
3050
3208
  const [inputValue, setInputValue] = (0, import_react14.useState)(defaultValue);
3051
3209
  const [isExpanded, setIsExpanded] = (0, import_react14.useState)(false);
3052
3210
  const debouncedOnChange = useDebouncedCallback(onChange, debounceDelay);
@@ -3066,8 +3224,8 @@ function BiampTableToolbarSearch({
3066
3224
  setIsExpanded(false);
3067
3225
  }
3068
3226
  };
3069
- const clearButton = inputValue ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3070
- import_material20.InputAdornment,
3227
+ const clearButton = inputValue ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3228
+ import_material22.InputAdornment,
3071
3229
  {
3072
3230
  position: "end",
3073
3231
  sx: {
@@ -3079,20 +3237,20 @@ function BiampTableToolbarSearch({
3079
3237
  height: 16
3080
3238
  }
3081
3239
  },
3082
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3083
- import_material20.IconButton,
3240
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3241
+ import_material22.IconButton,
3084
3242
  {
3085
3243
  size: "small",
3086
3244
  onClick: handleClear,
3087
3245
  "aria-label": clearLabel,
3088
3246
  sx: { mr: 0.5 },
3089
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_assets12.CloseIcon, { variant: "xs" })
3247
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.CloseIcon, { variant: "xs" })
3090
3248
  }
3091
3249
  )
3092
3250
  }
3093
3251
  ) : null;
3094
- const textField = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3095
- import_material20.TextField,
3252
+ const textField = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3253
+ import_material22.TextField,
3096
3254
  {
3097
3255
  name: "search",
3098
3256
  type: "text",
@@ -3100,8 +3258,8 @@ function BiampTableToolbarSearch({
3100
3258
  slotProps: {
3101
3259
  htmlInput: { maxLength, "aria-label": placeholder },
3102
3260
  input: {
3103
- startAdornment: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3104
- import_material20.InputAdornment,
3261
+ startAdornment: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3262
+ import_material22.InputAdornment,
3105
3263
  {
3106
3264
  position: "start",
3107
3265
  sx: {
@@ -3111,7 +3269,7 @@ function BiampTableToolbarSearch({
3111
3269
  height: 16
3112
3270
  }
3113
3271
  },
3114
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_assets12.SearchIcon, { variant: "xs", color: "inherit" })
3272
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.SearchIcon, { variant: "xs", color: "inherit" })
3115
3273
  }
3116
3274
  ),
3117
3275
  endAdornment: clearButton
@@ -3132,10 +3290,10 @@ function BiampTableToolbarSearch({
3132
3290
  }
3133
3291
  );
3134
3292
  if (isMobile && enableMobileView) {
3135
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_material20.Box, { display: "flex", alignItems: "center", width: "100%", pr: 1, gap: 1, children: [
3136
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_assets12.SearchIcon, { sx: { width: 16, height: 16 } }),
3137
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3138
- import_material20.InputBase,
3293
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material22.Box, { display: "flex", alignItems: "center", width: "100%", pr: 1, gap: 1, children: [
3294
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.SearchIcon, { sx: { width: 16, height: 16 } }),
3295
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3296
+ import_material22.InputBase,
3139
3297
  {
3140
3298
  name: "search",
3141
3299
  type: "text",
@@ -3156,14 +3314,14 @@ function BiampTableToolbarSearch({
3156
3314
  ] });
3157
3315
  }
3158
3316
  if (expandable) {
3159
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_material20.Box, { display: "flex", alignItems: "center", minWidth: 28, children: [
3160
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3161
- import_material20.IconButton,
3317
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material22.Box, { display: "flex", alignItems: "center", minWidth: 28, children: [
3318
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3319
+ import_material22.IconButton,
3162
3320
  {
3163
3321
  "aria-label": expandLabel ?? placeholder,
3164
3322
  onClick: () => setIsExpanded(true),
3165
3323
  sx: { display: isExpanded || inputValue ? "none" : "flex" },
3166
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3324
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3167
3325
  import_assets12.SearchIcon,
3168
3326
  {
3169
3327
  variant: "xs",
@@ -3173,8 +3331,8 @@ function BiampTableToolbarSearch({
3173
3331
  )
3174
3332
  }
3175
3333
  ),
3176
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3177
- import_material20.Collapse,
3334
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3335
+ import_material22.Collapse,
3178
3336
  {
3179
3337
  in: isExpanded || !!inputValue,
3180
3338
  orientation: "horizontal",
@@ -3414,12 +3572,12 @@ function downloadCsv(csvContent, filename) {
3414
3572
  }
3415
3573
 
3416
3574
  // src/BiampBanner/BiampBanner.tsx
3417
- var import_material21 = require("@mui/material");
3575
+ var import_material23 = require("@mui/material");
3418
3576
  var import_assets13 = require("@bwp-web/assets");
3419
- var import_jsx_runtime24 = require("react/jsx-runtime");
3577
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3420
3578
  function BiampBanner({ show, children, severity }) {
3421
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_material21.Collapse, { in: show, unmountOnExit: true, component: "aside", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3422
- import_material21.Box,
3579
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Collapse, { in: show, unmountOnExit: true, component: "aside", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3580
+ import_material23.Box,
3423
3581
  {
3424
3582
  bgcolor: ({ palette }) => palette.background[severity],
3425
3583
  display: "flex",
@@ -3437,25 +3595,25 @@ function BiampBanner({ show, children, severity }) {
3437
3595
  ) });
3438
3596
  }
3439
3597
  var iconMapping = {
3440
- error: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets13.ErrorStatusIcon, { color: "error", sx: { width: 14, height: 14 } }),
3441
- warning: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets13.WarningStatusIcon, { color: "warning", sx: { width: 16, height: 14 } }),
3442
- success: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets13.SuccessStatusIcon, { color: "success", sx: { width: 14, height: 14 } }),
3443
- info: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets13.InfoStatusIcon, { color: "info", sx: { width: 14, height: 14 } })
3598
+ error: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.ErrorStatusIcon, { color: "error", sx: { width: 14, height: 14 } }),
3599
+ warning: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.WarningStatusIcon, { color: "warning", sx: { width: 16, height: 14 } }),
3600
+ success: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.SuccessStatusIcon, { color: "success", sx: { width: 14, height: 14 } }),
3601
+ info: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.InfoStatusIcon, { color: "info", sx: { width: 14, height: 14 } })
3444
3602
  };
3445
3603
  function BiampBannerIcon({ severity, children }) {
3446
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: severity ? iconMapping[severity] : children });
3604
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: severity ? iconMapping[severity] : children });
3447
3605
  }
3448
3606
  function BiampBannerContent({ children, ...props }) {
3449
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_material21.Typography, { textAlign: "center", variant: "h3", ...props, children });
3607
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Typography, { textAlign: "center", variant: "h3", ...props, children });
3450
3608
  }
3451
3609
  function BiampBannerActions({ children, ...props }) {
3452
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_material21.Box, { display: "flex", gap: 1, alignItems: "center", ...props, children });
3610
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Box, { display: "flex", gap: 1, alignItems: "center", ...props, children });
3453
3611
  }
3454
3612
 
3455
3613
  // src/BiampSegmentedButton/SegmentedButton.tsx
3456
- var import_material22 = require("@mui/material");
3614
+ var import_material24 = require("@mui/material");
3457
3615
  var import_styles = require("@mui/material/styles");
3458
- var import_jsx_runtime25 = require("react/jsx-runtime");
3616
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3459
3617
  function SegmentedButton({
3460
3618
  children,
3461
3619
  active,
@@ -3463,13 +3621,13 @@ function SegmentedButton({
3463
3621
  sx,
3464
3622
  ...props
3465
3623
  }) {
3466
- const theme = (0, import_material22.useTheme)();
3624
+ const theme = (0, import_material24.useTheme)();
3467
3625
  const isDarkMode = theme.palette.mode === "dark";
3468
3626
  const backgroundColor = active ? isDarkMode ? theme.palette.grey[800] : theme.palette.common.white : "transparent";
3469
3627
  const textColor = active ? theme.palette.text.primary : theme.palette.text.secondary;
3470
3628
  const border = active ? "solid" : void 0;
3471
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3472
- import_material22.Button,
3629
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3630
+ import_material24.Button,
3473
3631
  {
3474
3632
  sx: {
3475
3633
  backgroundColor,
@@ -3492,13 +3650,13 @@ function SegmentedButton({
3492
3650
  }
3493
3651
 
3494
3652
  // src/BiampSegmentedButton/SegmentedButtonGroup.tsx
3495
- var import_material23 = require("@mui/material");
3496
- var import_jsx_runtime26 = require("react/jsx-runtime");
3653
+ var import_material25 = require("@mui/material");
3654
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3497
3655
  function SegmentedButtonGroup({ children, sx, ...props }) {
3498
- const theme = (0, import_material23.useTheme)();
3656
+ const theme = (0, import_material25.useTheme)();
3499
3657
  const isDarkMode = theme.palette.mode === "dark";
3500
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3501
- import_material23.Stack,
3658
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3659
+ import_material25.Stack,
3502
3660
  {
3503
3661
  direction: "row",
3504
3662
  p: 0.5,
@@ -3515,18 +3673,18 @@ function SegmentedButtonGroup({ children, sx, ...props }) {
3515
3673
  }
3516
3674
 
3517
3675
  // src/OrganizationSelector/OrganizationSelector.tsx
3518
- var import_material24 = require("@mui/material");
3676
+ var import_material26 = require("@mui/material");
3519
3677
  var import_react16 = require("react");
3520
3678
  var import_assets14 = require("@bwp-web/assets");
3521
- var import_jsx_runtime27 = require("react/jsx-runtime");
3679
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3522
3680
  function OrganizationSelector({
3523
3681
  loading,
3524
3682
  children,
3525
3683
  sx,
3526
3684
  ...props
3527
3685
  }) {
3528
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3529
- import_material24.Stack,
3686
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3687
+ import_material26.Stack,
3530
3688
  {
3531
3689
  sx: {
3532
3690
  width: "min(370px, calc(100vw - 24px))",
@@ -3535,12 +3693,12 @@ function OrganizationSelector({
3535
3693
  backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[700] : palette.grey[100],
3536
3694
  borderRadius: 3,
3537
3695
  p: 1.5,
3538
- boxShadow: ({ palette }) => `0 4px 24px 0 ${(0, import_material24.alpha)(palette.common.black, 0.15)}`,
3696
+ boxShadow: ({ palette }) => `0 4px 24px 0 ${(0, import_material26.alpha)(palette.common.black, 0.15)}`,
3539
3697
  overflow: "auto",
3540
3698
  ...sx
3541
3699
  },
3542
3700
  ...props,
3543
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material24.CircularProgress, { size: 40, sx: { mx: "auto", my: "auto" } }) : children
3701
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.CircularProgress, { size: 40, sx: { mx: "auto", my: "auto" } }) : children
3544
3702
  }
3545
3703
  );
3546
3704
  }
@@ -3551,14 +3709,14 @@ function OrganizationItemList({
3551
3709
  sx
3552
3710
  }) {
3553
3711
  const items = import_react16.Children.toArray(children).filter(import_react16.isValidElement);
3554
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
3555
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3556
- import_material24.List,
3712
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
3713
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3714
+ import_material26.List,
3557
3715
  {
3558
3716
  disablePadding: true,
3559
3717
  sx: {
3560
3718
  border: 0.6,
3561
- borderColor: ({ palette }) => palette.mode === "dark" ? (0, import_material24.alpha)(palette.common.white, 0.12) : (0, import_material24.alpha)(palette.grey[900], 0.15),
3719
+ borderColor: ({ palette }) => palette.mode === "dark" ? (0, import_material26.alpha)(palette.common.white, 0.12) : (0, import_material26.alpha)(palette.grey[900], 0.15),
3562
3720
  borderRadius: 2,
3563
3721
  ...maxHeight !== void 0 && {
3564
3722
  overflow: "auto",
@@ -3566,19 +3724,19 @@ function OrganizationItemList({
3566
3724
  },
3567
3725
  ...sx
3568
3726
  },
3569
- children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react16.Fragment, { children: [
3727
+ children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react16.Fragment, { children: [
3570
3728
  item,
3571
- i !== items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material24.Divider, {})
3729
+ i !== items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.Divider, {})
3572
3730
  ] }, item.key ?? i))
3573
3731
  }
3574
3732
  ),
3575
- label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material24.Divider, { sx: { py: 1, userSelect: "none" }, children: label })
3733
+ label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.Divider, { sx: { py: 1, userSelect: "none" }, children: label })
3576
3734
  ] });
3577
3735
  }
3578
3736
  function renderText(value, defaults) {
3579
3737
  if (typeof value === "string" || typeof value === "number") {
3580
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3581
- import_material24.Typography,
3738
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3739
+ import_material26.Typography,
3582
3740
  {
3583
3741
  variant: defaults.variant,
3584
3742
  fontWeight: defaults.fontWeight,
@@ -3599,8 +3757,8 @@ function OrganizationItem({
3599
3757
  sx,
3600
3758
  ...props
3601
3759
  }) {
3602
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material24.ListItem, { disablePadding: true, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3603
- import_material24.ListItemButton,
3760
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.ListItem, { disablePadding: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3761
+ import_material26.ListItemButton,
3604
3762
  {
3605
3763
  disabled: isCurrent,
3606
3764
  disableRipple: true,
@@ -3613,8 +3771,8 @@ function OrganizationItem({
3613
3771
  },
3614
3772
  ...props,
3615
3773
  children: [
3616
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3617
- import_material24.Box,
3774
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3775
+ import_material26.Box,
3618
3776
  {
3619
3777
  sx: {
3620
3778
  width: 40,
@@ -3630,8 +3788,8 @@ function OrganizationItem({
3630
3788
  boxShadow: ({ palette }) => `0 0 0 2px ${palette.info.main}`
3631
3789
  }
3632
3790
  },
3633
- children: typeof logo === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3634
- import_material24.Box,
3791
+ children: typeof logo === "string" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3792
+ import_material26.Box,
3635
3793
  {
3636
3794
  component: "img",
3637
3795
  src: logo,
@@ -3640,8 +3798,8 @@ function OrganizationItem({
3640
3798
  ) : logo
3641
3799
  }
3642
3800
  ),
3643
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material24.Stack, { gap: 0.25, sx: { width: "100%", minWidth: 0 }, children: [
3644
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material24.Stack, { direction: "row", justifyContent: "space-between", gap: 1, children: [
3801
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material26.Stack, { gap: 0.25, sx: { width: "100%", minWidth: 0 }, children: [
3802
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material26.Stack, { direction: "row", justifyContent: "space-between", gap: 1, children: [
3645
3803
  renderText(primaryText, {
3646
3804
  variant: "body2",
3647
3805
  fontWeight: 600,
@@ -3654,7 +3812,7 @@ function OrganizationItem({
3654
3812
  color: "text.secondary"
3655
3813
  })
3656
3814
  ] }),
3657
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3815
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3658
3816
  import_assets14.ChevronRightIcon,
3659
3817
  {
3660
3818
  variant: "xs",
@@ -3678,8 +3836,8 @@ function OrganizationSelectorButton({
3678
3836
  sx,
3679
3837
  ...props
3680
3838
  }) {
3681
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3682
- import_material24.ButtonBase,
3839
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3840
+ import_material26.ButtonBase,
3683
3841
  {
3684
3842
  disableRipple: true,
3685
3843
  sx: {
@@ -3694,8 +3852,8 @@ function OrganizationSelectorButton({
3694
3852
  ...props,
3695
3853
  children: [
3696
3854
  icon,
3697
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3698
- import_material24.Typography,
3855
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3856
+ import_material26.Typography,
3699
3857
  {
3700
3858
  variant: "caption",
3701
3859
  fontWeight: 600,
@@ -3704,13 +3862,13 @@ function OrganizationSelectorButton({
3704
3862
  children: name
3705
3863
  }
3706
3864
  ),
3707
- open ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3865
+ open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3708
3866
  import_assets14.ChevronUpIcon,
3709
3867
  {
3710
3868
  variant: "xs",
3711
3869
  sx: { width: 16, height: 16, flexShrink: 0, color: "text.secondary" }
3712
3870
  }
3713
- ) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3871
+ ) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3714
3872
  import_assets14.ChevronDownIcon,
3715
3873
  {
3716
3874
  variant: "xs",
@@ -3728,8 +3886,8 @@ function OrganizationSelectorPopover({
3728
3886
  transformOrigin,
3729
3887
  ...props
3730
3888
  }) {
3731
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3732
- import_material24.Popover,
3889
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3890
+ import_material26.Popover,
3733
3891
  {
3734
3892
  anchorOrigin: anchorOrigin ?? { vertical: "bottom", horizontal: "right" },
3735
3893
  transformOrigin: transformOrigin ?? { vertical: -8, horizontal: "right" },
@@ -3744,16 +3902,16 @@ function OrganizationSelectorPopover({
3744
3902
  }
3745
3903
  },
3746
3904
  ...props,
3747
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(OrganizationSelector, { loading, children })
3905
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OrganizationSelector, { loading, children })
3748
3906
  }
3749
3907
  );
3750
3908
  }
3751
3909
 
3752
3910
  // src/UserInitialsIcon/UserInitialsIcon.tsx
3753
- var import_material25 = require("@mui/material");
3911
+ var import_material27 = require("@mui/material");
3754
3912
  var import_styles2 = require("@mui/material/styles");
3755
3913
  var import_randomcolor = __toESM(require_randomColor(), 1);
3756
- var import_jsx_runtime28 = require("react/jsx-runtime");
3914
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3757
3915
  var DEFAULT_SIZE = 40;
3758
3916
  var DEFAULT_BORDER_RADIUS = 1.5;
3759
3917
  var TEXT_RATIO = 0.4;
@@ -3771,8 +3929,8 @@ function UserInitialsIcon({
3771
3929
  const textColor = (0, import_styles2.darken)((0, import_randomcolor.default)({ luminosity: "dark", seed: id }), 0.3);
3772
3930
  const size = typeof width === "number" ? width : DEFAULT_SIZE;
3773
3931
  const fontSize = size * TEXT_RATIO;
3774
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3775
- import_material25.Box,
3932
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3933
+ import_material27.Box,
3776
3934
  {
3777
3935
  minWidth: width,
3778
3936
  width,
@@ -3785,8 +3943,8 @@ function UserInitialsIcon({
3785
3943
  justifyContent: "center",
3786
3944
  sx: { ...sx },
3787
3945
  ...props,
3788
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3789
- import_material25.Typography,
3946
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3947
+ import_material27.Typography,
3790
3948
  {
3791
3949
  variant: "h3",
3792
3950
  color: textColor,
@@ -3808,9 +3966,9 @@ var getInitials = (name) => {
3808
3966
  };
3809
3967
 
3810
3968
  // src/DynamicSvgIcon/DynamicSvgIcon.tsx
3811
- var import_material26 = require("@mui/material");
3969
+ var import_material28 = require("@mui/material");
3812
3970
  var import_react17 = require("react");
3813
- var import_jsx_runtime29 = require("react/jsx-runtime");
3971
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3814
3972
  var svgCache = /* @__PURE__ */ new Map();
3815
3973
  function clearDynamicSvgIconCache() {
3816
3974
  svgCache.clear();
@@ -3912,8 +4070,8 @@ function DynamicSvgIcon({
3912
4070
  onError
3913
4071
  });
3914
4072
  if (loading) {
3915
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3916
- import_material26.Skeleton,
4073
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4074
+ import_material28.Skeleton,
3917
4075
  {
3918
4076
  variant: skeletonVariant,
3919
4077
  animation: skeletonAnimation,
@@ -3922,8 +4080,8 @@ function DynamicSvgIcon({
3922
4080
  );
3923
4081
  }
3924
4082
  if (error || !svgContent) {
3925
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3926
- import_material26.Box,
4083
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4084
+ import_material28.Box,
3927
4085
  {
3928
4086
  sx: {
3929
4087
  width,
@@ -3942,8 +4100,8 @@ function DynamicSvgIcon({
3942
4100
  }
3943
4101
  );
3944
4102
  }
3945
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3946
- import_material26.SvgIcon,
4103
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4104
+ import_material28.SvgIcon,
3947
4105
  {
3948
4106
  ...svgIconProps,
3949
4107
  ...svgViewBox && { viewBox: svgViewBox },
@@ -3952,7 +4110,7 @@ function DynamicSvgIcon({
3952
4110
  width,
3953
4111
  height
3954
4112
  },
3955
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("g", { dangerouslySetInnerHTML: { __html: svgContent } })
4113
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("g", { dangerouslySetInnerHTML: { __html: svgContent } })
3956
4114
  }
3957
4115
  );
3958
4116
  }
@@ -3968,6 +4126,7 @@ function DynamicSvgIcon({
3968
4126
  BiampBannerIcon,
3969
4127
  BiampBuildAppContent,
3970
4128
  BiampBuildAppContentItem,
4129
+ BiampCheckboxListPopover,
3971
4130
  BiampEndUserAppContent,
3972
4131
  BiampEndUserAppContentItem,
3973
4132
  BiampGlobalSearch,
@@ -3980,6 +4139,12 @@ function DynamicSvgIcon({
3980
4139
  BiampHeaderSearch,
3981
4140
  BiampHeaderTitle,
3982
4141
  BiampLayout,
4142
+ BiampListPopover,
4143
+ BiampListPopoverItem,
4144
+ BiampListPopoverScrollArea,
4145
+ BiampNotificationPopover,
4146
+ BiampNotificationPopoverBody,
4147
+ BiampNotificationPopoverHeader,
3983
4148
  BiampSidebar,
3984
4149
  BiampSidebarComponent,
3985
4150
  BiampSidebarIcon,