@wso2/oxygen-ui 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ import ListingTableBody from './ListingTableBody';
7
7
  import ListingTableFooter from './ListingTableFooter';
8
8
  import ListingTableRow from './ListingTableRow';
9
9
  import ListingTableCell from './ListingTableCell';
10
+ import ListingTableDataGrid from './ListingTableDataGrid';
10
11
  import { ListingTableCellIcon, ListingTableRowActions, ListingTableEmptyState, ListingTableToolbar, ListingTableSortLabel, ListingTableDensityControl } from '../shared';
11
12
  import { ListingTableProvider } from '../ListingTableProvider';
12
13
  export interface ListingTableProps extends MuiTableProps {
@@ -49,6 +50,7 @@ interface ListingTableComponent {
49
50
  Toolbar: typeof ListingTableToolbar;
50
51
  SortLabel: typeof ListingTableSortLabel;
51
52
  DensityControl: typeof ListingTableDensityControl;
53
+ DataGrid: typeof ListingTableDataGrid;
52
54
  }
53
55
  declare const ListingTableCompound: ListingTableComponent;
54
56
  export default ListingTableCompound;
@@ -0,0 +1,47 @@
1
+ import { ReactElement } from 'react';
2
+ import { DataGridProps } from '@mui/x-data-grid';
3
+ import { ListingTableDensity } from '../shared/types';
4
+ export interface ListingTableDataGridProps extends Omit<DataGridProps, 'density'> {
5
+ /**
6
+ * Density control - affects row padding.
7
+ * Maps directly to DataGrid density values.
8
+ * Falls back to the parent ListingTable.Provider density if not provided.
9
+ * @default 'standard'
10
+ */
11
+ density?: ListingTableDensity;
12
+ }
13
+ /**
14
+ * A `ListingTable` variant that renders an MUI DataGrid instead of a traditional HTML table.
15
+ * Useful when built-in column sorting, filtering, virtual scrolling, or advanced row selection
16
+ * are needed without manual wiring.
17
+ *
18
+ * Supports two display variants controlled via `ListingTable.Provider`:
19
+ * - **`data-grid`** (default): standard grid rows separated by dividers
20
+ * - **`data-grid-card`**: each row is rendered as a floating card with rounded corners and acrylic background
21
+ *
22
+ * Integrates with `ListingTable.Provider` context:
23
+ * - `density` is read from context when not explicitly provided
24
+ * - `loading` is read from context when not explicitly provided
25
+ * - `variant` is driven by the parent `ListingTable.Provider` — use `'data-grid-card'` for card rows
26
+ *
27
+ * @example Table variant (default)
28
+ * ```tsx
29
+ * <ListingTable.Provider density="compact" loading={isFetching}>
30
+ * <ListingTable.Container>
31
+ * <ListingTable.Toolbar showSearch />
32
+ * <ListingTable.DataGrid rows={rows} columns={columns} autoHeight />
33
+ * </ListingTable.Container>
34
+ * </ListingTable.Provider>
35
+ * ```
36
+ *
37
+ * @example Card variant
38
+ * ```tsx
39
+ * <ListingTable.Provider variant="data-grid-card">
40
+ * <ListingTable.Container disablePaper>
41
+ * <ListingTable.DataGrid rows={rows} columns={columns} autoHeight />
42
+ * </ListingTable.Container>
43
+ * </ListingTable.Provider>
44
+ * ```
45
+ */
46
+ export declare function ListingTableDataGrid({ density: densityProp, loading: loadingProp, getRowSpacing: getRowSpacingProp, filterModel: filterModelProp, sx, ...props }: ListingTableDataGridProps): ReactElement;
47
+ export default ListingTableDataGrid;
@@ -19,3 +19,6 @@ export type { ListingTableRowProps } from './ListingTableRow';
19
19
  export { default as ListingTableCell } from './ListingTableCell';
20
20
  export { ListingTableCell as Cell } from './ListingTableCell';
21
21
  export type { ListingTableCellProps } from './ListingTableCell';
22
+ export { default as ListingTableDataGrid } from './ListingTableDataGrid';
23
+ export { ListingTableDataGrid as DataGrid } from './ListingTableDataGrid';
24
+ export type { ListingTableDataGridProps } from './ListingTableDataGrid';
@@ -7,6 +7,7 @@ export type { ListingTableBodyProps } from './ListingTable';
7
7
  export type { ListingTableFooterProps } from './ListingTable';
8
8
  export type { ListingTableRowProps } from './ListingTable';
9
9
  export type { ListingTableCellProps } from './ListingTable';
10
+ export type { ListingTableDataGridProps } from './ListingTable';
10
11
  export { ListingTableContext, useListingTable, useListingTableRequired } from './context';
11
12
  export type { ListingTableContextValue, ListingTableSortDirection } from './context';
12
13
  export { ListingTableProvider } from './ListingTableProvider';
@@ -1,5 +1,5 @@
1
1
  export type ListingTableDensity = 'compact' | 'standard' | 'comfortable';
2
- export type ListingTableVariant = 'table' | 'card';
2
+ export type ListingTableVariant = 'table' | 'card' | 'data-grid' | 'data-grid-card';
3
3
  export declare const densityStyles: Record<ListingTableDensity, {
4
4
  padding: string;
5
5
  }>;
@@ -51,4 +51,4 @@ export { AppShell } from './AppShell';
51
51
  export type { AppShellProps } from './AppShell';
52
52
  export { default as ListingTable } from './ListingTable';
53
53
  export { useListingTable, useListingTableRequired, ListingTableContext, ListingTableProvider, } from './ListingTable';
54
- export type { ListingTableProps, ListingTableContainerProps, ListingTableHeadProps, ListingTableBodyProps, ListingTableFooterProps, ListingTableRowProps, ListingTableCellProps, ListingTableDensity, ListingTableVariant, ListingTableToolbarProps, ListingTableEmptyStateProps, ListingTableDensityControlProps, ListingTableSortLabelProps, ListingSortDirection, ListingTableRowActionsProps, ListingTableCellIconProps, ListingTableContextValue, ListingTableSortDirection, ListingTableProviderProps, } from './ListingTable';
54
+ export type { ListingTableProps, ListingTableContainerProps, ListingTableHeadProps, ListingTableBodyProps, ListingTableFooterProps, ListingTableRowProps, ListingTableCellProps, ListingTableDensity, ListingTableVariant, ListingTableToolbarProps, ListingTableEmptyStateProps, ListingTableDensityControlProps, ListingTableSortLabelProps, ListingSortDirection, ListingTableRowActionsProps, ListingTableCellIconProps, ListingTableContextValue, ListingTableSortDirection, ListingTableProviderProps, ListingTableDataGridProps, } from './ListingTable';
package/dist/index.js CHANGED
@@ -130,7 +130,7 @@ var __objRest = (source, exclude) => {
130
130
  // package.json
131
131
  var package_default = {
132
132
  name: "@wso2/oxygen-ui",
133
- version: "0.7.0",
133
+ version: "0.8.1",
134
134
  description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
135
135
  type: "module",
136
136
  main: "./dist/index.js",
@@ -2423,7 +2423,14 @@ var PageContentInner = styled7(Box3, {
2423
2423
  slot: "Inner",
2424
2424
  shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "centered" && prop !== "fullWidth" && prop !== "noPadding"
2425
2425
  })(({ theme, maxWidth = "1400px", centered = true, fullWidth = false, noPadding = false }) => __spreadValues(__spreadValues(__spreadValues({
2426
- width: "100%"
2426
+ // Use fit-content so the inner container expands to accommodate children that have a
2427
+ // min-width (e.g. responsive data tables). minWidth: 100% ensures it still fills the
2428
+ // parent when the content is narrower, preserving the normal full-width layout.
2429
+ // Together these mean: width = max(100% of scroll-parent, intrinsic min-content).
2430
+ // When content exceeds the viewport, PageContentRoot (overflow:auto) shows a horizontal
2431
+ // scrollbar for the entire content area rather than only the inner table element.
2432
+ width: "fit-content",
2433
+ minWidth: "100%"
2427
2434
  }, !fullWidth && { maxWidth }), centered && { marginLeft: "auto", marginRight: "auto" }), !noPadding && { padding: theme.spacing(8) }));
2428
2435
  var PageContent = (_a) => {
2429
2436
  var _b = _a, {
@@ -5814,7 +5821,7 @@ var AppShell = (_a) => {
5814
5821
  slots.navbar && /* @__PURE__ */ jsx91(layouts_default.Navbar, { children: slots.navbar }),
5815
5822
  /* @__PURE__ */ jsxs31(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
5816
5823
  slots.sidebar && /* @__PURE__ */ jsx91(layouts_default.Sidebar, { children: slots.sidebar }),
5817
- /* @__PURE__ */ jsxs31(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column" }, children: [
5824
+ /* @__PURE__ */ jsxs31(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
5818
5825
  /* @__PURE__ */ jsx91(Box35, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
5819
5826
  slots.footer
5820
5827
  ] })
@@ -5831,7 +5838,7 @@ AppShell.displayName = "AppShell";
5831
5838
 
5832
5839
  // src/components/ListingTable/ListingTable/ListingTable.tsx
5833
5840
  import MuiTable from "@mui/material/Table";
5834
- import { styled as styled66 } from "@mui/material/styles";
5841
+ import { styled as styled67 } from "@mui/material/styles";
5835
5842
 
5836
5843
  // src/components/ListingTable/shared/types.ts
5837
5844
  var densityStyles = {
@@ -5994,13 +6001,10 @@ function ListingTableCell(_a) {
5994
6001
  }
5995
6002
  var ListingTableCell_default = ListingTableCell;
5996
6003
 
5997
- // src/components/ListingTable/shared/ListingTableToolbar.tsx
5998
- import { useState as useState7, useCallback as useCallback2 } from "react";
5999
- import Box36 from "@mui/material/Box";
6000
- import TextField3 from "@mui/material/TextField";
6001
- import InputAdornment3 from "@mui/material/InputAdornment";
6002
- import IconButton7 from "@mui/material/IconButton";
6003
- import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
6004
+ // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
6005
+ import { useCallback as useCallback2 } from "react";
6006
+ import { DataGrid } from "@mui/x-data-grid";
6007
+ import { styled as styled65, alpha as alpha2 } from "@mui/material/styles";
6004
6008
 
6005
6009
  // src/components/ListingTable/context.ts
6006
6010
  import * as React32 from "react";
@@ -6019,8 +6023,179 @@ var useListingTableRequired = () => {
6019
6023
  return context;
6020
6024
  };
6021
6025
 
6026
+ // src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
6027
+ import { jsx as jsx98 } from "react/jsx-runtime";
6028
+ var StyledDataGrid = styled65(DataGrid)(({ theme }) => ({
6029
+ // Remove outer border for seamless integration within ListingTable.Container
6030
+ border: "none",
6031
+ // Ensure the grid fills its container
6032
+ width: "100%",
6033
+ // Pin row divider color to theme.palette.divider — matches MUI TableCell default border
6034
+ "--DataGrid-rowBorderColor": theme.palette.divider,
6035
+ // Column headers: match ListingTableHead — grey[50] light / rgba dark background + bottom divider
6036
+ "& .MuiDataGrid-columnHeaders": __spreadValues(__spreadValues({
6037
+ borderBottom: `1px solid ${theme.palette.divider}`
6038
+ }, theme.applyStyles("light", {
6039
+ backgroundColor: theme.palette.grey[50]
6040
+ })), theme.applyStyles("dark", {
6041
+ backgroundColor: "rgba(255, 255, 255, 0.04)"
6042
+ })),
6043
+ "& .MuiDataGrid-columnHeaderTitle": {
6044
+ fontWeight: 600
6045
+ },
6046
+ // Only the checkbox header column needs this — sortable/menu columns manage their own layout
6047
+ "& .MuiDataGrid-columnHeaderCheckbox .MuiDataGrid-columnHeaderDraggableContainer": {
6048
+ width: "unset",
6049
+ height: "unset"
6050
+ },
6051
+ // DataGrid v8 uses CSS :hover on rows (Mui-hovered JS class was removed)
6052
+ "& .MuiDataGrid-row:hover": {
6053
+ backgroundColor: theme.palette.action.hover
6054
+ },
6055
+ // Selected row — match MUI Table Mui-selected appearance
6056
+ "& .MuiDataGrid-row.Mui-selected": {
6057
+ backgroundColor: theme.palette.action.selected,
6058
+ "&:hover": {
6059
+ backgroundColor: alpha2(
6060
+ theme.palette.primary.main,
6061
+ theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity
6062
+ )
6063
+ }
6064
+ },
6065
+ // Remove default cell focus outline, rely on theme focus ring
6066
+ "& .MuiDataGrid-cell": {
6067
+ display: "flex",
6068
+ alignItems: "center"
6069
+ },
6070
+ "& .MuiDataGrid-cell:focus, & .MuiDataGrid-cell:focus-within": {
6071
+ outline: "none"
6072
+ },
6073
+ "& .MuiDataGrid-columnHeader:focus, & .MuiDataGrid-columnHeader:focus-within": {
6074
+ outline: "none"
6075
+ }
6076
+ }));
6077
+ function ListingTableDataGrid(_a) {
6078
+ var _b = _a, {
6079
+ density: densityProp,
6080
+ loading: loadingProp,
6081
+ getRowSpacing: getRowSpacingProp,
6082
+ filterModel: filterModelProp,
6083
+ sx
6084
+ } = _b, props = __objRest(_b, [
6085
+ "density",
6086
+ "loading",
6087
+ "getRowSpacing",
6088
+ "filterModel",
6089
+ "sx"
6090
+ ]);
6091
+ var _a2, _b2, _c, _d;
6092
+ const context = useListingTable();
6093
+ const density = (_a2 = densityProp != null ? densityProp : context == null ? void 0 : context.density) != null ? _a2 : "standard";
6094
+ const loading = loadingProp !== void 0 ? loadingProp : (_b2 = context == null ? void 0 : context.loading) != null ? _b2 : false;
6095
+ const variant = (context == null ? void 0 : context.variant) === "data-grid-card" ? "card" : "table";
6096
+ const searchValue = (_c = context == null ? void 0 : context.searchValue) != null ? _c : "";
6097
+ const filterModel = filterModelProp != null ? filterModelProp : {
6098
+ items: [],
6099
+ quickFilterValues: searchValue ? [searchValue] : []
6100
+ };
6101
+ const defaultCardRowSpacing = useCallback2(
6102
+ (params) => ({ top: params.isFirstVisible ? 0 : 12, bottom: 0 }),
6103
+ []
6104
+ );
6105
+ const cardSx = (muiTheme) => {
6106
+ var _a3, _b3, _c2, _d2;
6107
+ return {
6108
+ // Header: transparent background, no bottom divider, secondary-coloured labels — same as card table header
6109
+ "& .MuiDataGrid-columnHeaders": {
6110
+ backgroundColor: "transparent",
6111
+ borderBottom: "none",
6112
+ paddingBottom: "8px"
6113
+ },
6114
+ // Hide column resize handle/separator icon between headers
6115
+ "& .MuiDataGrid-columnSeparator": {
6116
+ visibility: "hidden"
6117
+ },
6118
+ // Remove borders from individual column header cells (MuiDataGrid-withBorderColor adds these)
6119
+ "& .MuiDataGrid-columnHeader": {
6120
+ border: "none"
6121
+ },
6122
+ // MuiDataGrid-withBorderColor is applied to headers and cells; zero out the CSS var
6123
+ // and the border shorthand so nothing leaks through in any DataGrid version
6124
+ "& .MuiDataGrid-withBorderColor": {
6125
+ "--DataGrid-rowBorderColor": "transparent",
6126
+ borderColor: "transparent",
6127
+ border: "none"
6128
+ },
6129
+ "& .MuiDataGrid-columnHeaderTitle": {
6130
+ color: (muiTheme.vars || muiTheme).palette.text.secondary,
6131
+ fontWeight: 600
6132
+ },
6133
+ // Card row: acrylic background + blur + rounded corners, no border
6134
+ "& .MuiDataGrid-row": {
6135
+ borderRadius: "8px",
6136
+ border: "none",
6137
+ backgroundColor: (_b3 = (_a3 = muiTheme.vars) == null ? void 0 : _a3.palette.background.acrylic) != null ? _b3 : (muiTheme.vars || muiTheme).palette.background.paper,
6138
+ backdropFilter: (_c2 = muiTheme.blur) == null ? void 0 : _c2.light,
6139
+ WebkitBackdropFilter: (_d2 = muiTheme.blur) == null ? void 0 : _d2.light,
6140
+ "&:hover": {
6141
+ backgroundColor: (muiTheme.vars || muiTheme).palette.action.hover
6142
+ },
6143
+ "&.Mui-selected": {
6144
+ border: "none",
6145
+ backgroundColor: (muiTheme.vars || muiTheme).palette.action.selected,
6146
+ "&:hover": {
6147
+ backgroundColor: alpha2(
6148
+ muiTheme.palette.primary.main,
6149
+ muiTheme.palette.action.selectedOpacity + muiTheme.palette.action.hoverOpacity
6150
+ )
6151
+ }
6152
+ }
6153
+ },
6154
+ // Remove ALL internal cell dividers and ensure vertical centering
6155
+ "& .MuiDataGrid-cell": {
6156
+ border: "none",
6157
+ display: "flex",
6158
+ alignItems: "center"
6159
+ },
6160
+ // Remove vertical column separator lines inside card rows
6161
+ "& .MuiDataGrid-cell--withRightBorder": {
6162
+ borderRight: "none"
6163
+ },
6164
+ // Footer spaced away from the last card row
6165
+ "& .MuiDataGrid-footerContainer": {
6166
+ borderTop: `1px solid ${(muiTheme.vars || muiTheme).palette.divider}`,
6167
+ marginTop: "12px"
6168
+ }
6169
+ };
6170
+ };
6171
+ const resolvedDensity = (_d = densityProp != null ? densityProp : context == null ? void 0 : context.density) != null ? _d : "standard";
6172
+ const { padding: cellPadding } = densityStyles[resolvedDensity];
6173
+ const densitySx = {
6174
+ "& .MuiDataGrid-columnHeader": { padding: cellPadding },
6175
+ "& .MuiDataGrid-cell": { padding: cellPadding }
6176
+ };
6177
+ const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
6178
+ return /* @__PURE__ */ jsx98(
6179
+ StyledDataGrid,
6180
+ __spreadValues({
6181
+ density,
6182
+ loading,
6183
+ filterModel,
6184
+ getRowSpacing: variant === "card" ? getRowSpacingProp != null ? getRowSpacingProp : defaultCardRowSpacing : getRowSpacingProp,
6185
+ sx: mergedSx
6186
+ }, props)
6187
+ );
6188
+ }
6189
+ var ListingTableDataGrid_default = ListingTableDataGrid;
6190
+
6022
6191
  // src/components/ListingTable/shared/ListingTableToolbar.tsx
6023
- import { Fragment as Fragment15, jsx as jsx98, jsxs as jsxs32 } from "react/jsx-runtime";
6192
+ import { useState as useState7, useCallback as useCallback3 } from "react";
6193
+ import Box36 from "@mui/material/Box";
6194
+ import TextField3 from "@mui/material/TextField";
6195
+ import InputAdornment3 from "@mui/material/InputAdornment";
6196
+ import IconButton7 from "@mui/material/IconButton";
6197
+ import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
6198
+ import { Fragment as Fragment15, jsx as jsx99, jsxs as jsxs32 } from "react/jsx-runtime";
6024
6199
  function ListingTableToolbar({
6025
6200
  showSearch = false,
6026
6201
  searchSlot,
@@ -6040,7 +6215,7 @@ function ListingTableToolbar({
6040
6215
  const isControlled = isControlledByProp || isControlledByContext;
6041
6216
  const searchValue = isControlledByProp ? controlledSearchValue : isControlledByContext ? tableContext.searchValue : internalSearchValue;
6042
6217
  const effectiveOnSearchChange = onSearchChange != null ? onSearchChange : tableContext == null ? void 0 : tableContext.onSearchChange;
6043
- const handleSearchChange = useCallback2(
6218
+ const handleSearchChange = useCallback3(
6044
6219
  (event) => {
6045
6220
  const newValue = event.target.value;
6046
6221
  if (!isControlled) {
@@ -6050,7 +6225,7 @@ function ListingTableToolbar({
6050
6225
  },
6051
6226
  [isControlled, effectiveOnSearchChange]
6052
6227
  );
6053
- const handleClearSearch = useCallback2(() => {
6228
+ const handleClearSearch = useCallback3(() => {
6054
6229
  if (!isControlled) {
6055
6230
  setInternalSearchValue("");
6056
6231
  }
@@ -6061,7 +6236,7 @@ function ListingTableToolbar({
6061
6236
  return searchSlot;
6062
6237
  }
6063
6238
  if (showSearch) {
6064
- return /* @__PURE__ */ jsx98(
6239
+ return /* @__PURE__ */ jsx99(
6065
6240
  TextField3,
6066
6241
  {
6067
6242
  size: "small",
@@ -6073,8 +6248,8 @@ function ListingTableToolbar({
6073
6248
  maxWidth: searchMaxWidth
6074
6249
  },
6075
6250
  InputProps: {
6076
- startAdornment: /* @__PURE__ */ jsx98(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx98(Search3, { size: 18 }) }),
6077
- endAdornment: searchValue ? /* @__PURE__ */ jsx98(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx98(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", children: /* @__PURE__ */ jsx98(X4, { size: 16 }) }) }) : null
6251
+ startAdornment: /* @__PURE__ */ jsx99(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx99(Search3, { size: 18 }) }),
6252
+ endAdornment: searchValue ? /* @__PURE__ */ jsx99(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx99(IconButton7, { size: "small", onClick: handleClearSearch, edge: "end", children: /* @__PURE__ */ jsx99(X4, { size: 16 }) }) }) : null
6078
6253
  }
6079
6254
  }
6080
6255
  );
@@ -6096,8 +6271,8 @@ function ListingTableToolbar({
6096
6271
  renderSearch(),
6097
6272
  children,
6098
6273
  actions && /* @__PURE__ */ jsxs32(Fragment15, { children: [
6099
- /* @__PURE__ */ jsx98(Box36, { sx: { flex: 1 } }),
6100
- /* @__PURE__ */ jsx98(Box36, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
6274
+ /* @__PURE__ */ jsx99(Box36, { sx: { flex: 1 } }),
6275
+ /* @__PURE__ */ jsx99(Box36, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
6101
6276
  ] })
6102
6277
  ]
6103
6278
  }
@@ -6108,7 +6283,7 @@ var ListingTableToolbar_default = ListingTableToolbar;
6108
6283
  // src/components/ListingTable/shared/ListingTableEmptyState.tsx
6109
6284
  import Box37 from "@mui/material/Box";
6110
6285
  import Typography19 from "@mui/material/Typography";
6111
- import { jsx as jsx99, jsxs as jsxs33 } from "react/jsx-runtime";
6286
+ import { jsx as jsx100, jsxs as jsxs33 } from "react/jsx-runtime";
6112
6287
  function ListingTableEmptyState({
6113
6288
  title = "No data available",
6114
6289
  description,
@@ -6130,7 +6305,7 @@ function ListingTableEmptyState({
6130
6305
  textAlign: "center"
6131
6306
  }, sx),
6132
6307
  children: [
6133
- illustration && /* @__PURE__ */ jsx99(
6308
+ illustration && /* @__PURE__ */ jsx100(
6134
6309
  Box37,
6135
6310
  {
6136
6311
  sx: {
@@ -6144,9 +6319,9 @@ function ListingTableEmptyState({
6144
6319
  children: illustration
6145
6320
  }
6146
6321
  ),
6147
- /* @__PURE__ */ jsx99(Typography19, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
6148
- description && /* @__PURE__ */ jsx99(Typography19, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
6149
- action && /* @__PURE__ */ jsx99(Box37, { children: action })
6322
+ /* @__PURE__ */ jsx100(Typography19, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
6323
+ description && /* @__PURE__ */ jsx100(Typography19, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
6324
+ action && /* @__PURE__ */ jsx100(Box37, { children: action })
6150
6325
  ]
6151
6326
  }
6152
6327
  );
@@ -6154,16 +6329,16 @@ function ListingTableEmptyState({
6154
6329
  var ListingTableEmptyState_default = ListingTableEmptyState;
6155
6330
 
6156
6331
  // src/components/ListingTable/shared/ListingTableDensityControl.tsx
6157
- import { useCallback as useCallback3 } from "react";
6332
+ import { useCallback as useCallback4 } from "react";
6158
6333
  import ToggleButton from "@mui/material/ToggleButton";
6159
6334
  import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
6160
6335
  import Tooltip6 from "@mui/material/Tooltip";
6161
6336
  import { AlignJustify, Menu as Menu3, List as List4 } from "@wso2/oxygen-ui-icons-react";
6162
- import { jsx as jsx100 } from "react/jsx-runtime";
6337
+ import { jsx as jsx101 } from "react/jsx-runtime";
6163
6338
  var densityOptions = [
6164
- { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx100(AlignJustify, { size: 18 }) },
6165
- { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx100(Menu3, { size: 18 }) },
6166
- { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx100(List4, { size: 18 }) }
6339
+ { value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx101(AlignJustify, { size: 18 }) },
6340
+ { value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx101(Menu3, { size: 18 }) },
6341
+ { value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx101(List4, { size: 18 }) }
6167
6342
  ];
6168
6343
  function ListingTableDensityControl({
6169
6344
  value: valueProp,
@@ -6175,7 +6350,7 @@ function ListingTableDensityControl({
6175
6350
  const tableContext = useListingTable();
6176
6351
  const value = (_a = valueProp != null ? valueProp : tableContext == null ? void 0 : tableContext.density) != null ? _a : "standard";
6177
6352
  const effectiveOnChange = onChangeProp != null ? onChangeProp : tableContext == null ? void 0 : tableContext.onDensityChange;
6178
- const handleChange = useCallback3(
6353
+ const handleChange = useCallback4(
6179
6354
  (_event, newDensity) => {
6180
6355
  if (newDensity !== null) {
6181
6356
  effectiveOnChange == null ? void 0 : effectiveOnChange(newDensity);
@@ -6183,16 +6358,16 @@ function ListingTableDensityControl({
6183
6358
  },
6184
6359
  [effectiveOnChange]
6185
6360
  );
6186
- return /* @__PURE__ */ jsx100(ToggleButtonGroup, { value, exclusive: true, onChange: handleChange, size, sx, children: densityOptions.map((option) => /* @__PURE__ */ jsx100(ToggleButton, { value: option.value, children: /* @__PURE__ */ jsx100(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx100("span", { style: { display: "flex", alignItems: "center" }, children: option.icon }) }) }, option.value)) });
6361
+ return /* @__PURE__ */ jsx101(ToggleButtonGroup, { value, exclusive: true, onChange: handleChange, size, sx, children: densityOptions.map((option) => /* @__PURE__ */ jsx101(ToggleButton, { value: option.value, children: /* @__PURE__ */ jsx101(Tooltip6, { title: option.label, children: /* @__PURE__ */ jsx101("span", { style: { display: "flex", alignItems: "center" }, children: option.icon }) }) }, option.value)) });
6187
6362
  }
6188
6363
  var ListingTableDensityControl_default = ListingTableDensityControl;
6189
6364
 
6190
6365
  // src/components/ListingTable/shared/ListingTableSortLabel.tsx
6191
- import { useCallback as useCallback4 } from "react";
6366
+ import { useCallback as useCallback5 } from "react";
6192
6367
  import MuiTableSortLabel from "@mui/material/TableSortLabel";
6193
- import { styled as styled65 } from "@mui/material/styles";
6194
- import { jsx as jsx101 } from "react/jsx-runtime";
6195
- var StyledTableSortLabel = styled65(MuiTableSortLabel)(({ theme }) => ({
6368
+ import { styled as styled66 } from "@mui/material/styles";
6369
+ import { jsx as jsx102 } from "react/jsx-runtime";
6370
+ var StyledTableSortLabel = styled66(MuiTableSortLabel)(({ theme }) => ({
6196
6371
  color: "inherit !important",
6197
6372
  "&.Mui-active": {
6198
6373
  color: "inherit !important",
@@ -6222,7 +6397,7 @@ function ListingTableSortLabel(_a) {
6222
6397
  const isActiveFromContext = field !== void 0 && (tableContext == null ? void 0 : tableContext.sortField) === field;
6223
6398
  const active = activeProp != null ? activeProp : isActiveFromContext;
6224
6399
  const direction = (_a2 = directionProp != null ? directionProp : isActiveFromContext ? tableContext == null ? void 0 : tableContext.sortDirection : void 0) != null ? _a2 : "asc";
6225
- const handleClick = useCallback4(
6400
+ const handleClick = useCallback5(
6226
6401
  (event) => {
6227
6402
  if (onClickProp) {
6228
6403
  onClickProp(event);
@@ -6235,13 +6410,13 @@ function ListingTableSortLabel(_a) {
6235
6410
  },
6236
6411
  [onClickProp, field, tableContext, active, direction]
6237
6412
  );
6238
- return /* @__PURE__ */ jsx101(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
6413
+ return /* @__PURE__ */ jsx102(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
6239
6414
  }
6240
6415
  var ListingTableSortLabel_default = ListingTableSortLabel;
6241
6416
 
6242
6417
  // src/components/ListingTable/shared/ListingTableRowActions.tsx
6243
6418
  import Box38 from "@mui/material/Box";
6244
- import { jsx as jsx102 } from "react/jsx-runtime";
6419
+ import { jsx as jsx103 } from "react/jsx-runtime";
6245
6420
  var alignmentMap = {
6246
6421
  left: "flex-start",
6247
6422
  center: "center",
@@ -6253,7 +6428,7 @@ function ListingTableRowActions({
6253
6428
  align = "right",
6254
6429
  sx
6255
6430
  }) {
6256
- return /* @__PURE__ */ jsx102(
6431
+ return /* @__PURE__ */ jsx103(
6257
6432
  Box38,
6258
6433
  {
6259
6434
  className: "table-row-actions",
@@ -6265,8 +6440,8 @@ function ListingTableRowActions({
6265
6440
  }, visibility === "hover" && {
6266
6441
  opacity: 0,
6267
6442
  transition: "opacity 0.2s ease-in-out",
6268
- // Support both TableView rows and ListView items
6269
- ".MuiTableRow-root:hover &, .list-view-item:hover &": {
6443
+ // Support both TableView rows, DataGrid rows, and ListView items
6444
+ ".MuiTableRow-root:hover &, .MuiDataGrid-row:hover &, .list-view-item:hover &": {
6270
6445
  opacity: 1
6271
6446
  }
6272
6447
  }), sx),
@@ -6279,7 +6454,7 @@ var ListingTableRowActions_default = ListingTableRowActions;
6279
6454
  // src/components/ListingTable/shared/ListingTableCellIcon.tsx
6280
6455
  import Box39 from "@mui/material/Box";
6281
6456
  import Typography20 from "@mui/material/Typography";
6282
- import { Fragment as Fragment16, jsx as jsx103, jsxs as jsxs34 } from "react/jsx-runtime";
6457
+ import { Fragment as Fragment16, jsx as jsx104, jsxs as jsxs34 } from "react/jsx-runtime";
6283
6458
  function ListingTableCellIcon({
6284
6459
  icon,
6285
6460
  primary,
@@ -6288,7 +6463,7 @@ function ListingTableCellIcon({
6288
6463
  iconSx,
6289
6464
  sx
6290
6465
  }) {
6291
- const iconElement = /* @__PURE__ */ jsx103(
6466
+ const iconElement = /* @__PURE__ */ jsx104(
6292
6467
  Box39,
6293
6468
  {
6294
6469
  sx: __spreadValues({
@@ -6302,7 +6477,7 @@ function ListingTableCellIcon({
6302
6477
  }
6303
6478
  );
6304
6479
  const textContent = /* @__PURE__ */ jsxs34(Box39, { sx: { minWidth: 0, flex: 1 }, children: [
6305
- /* @__PURE__ */ jsx103(
6480
+ /* @__PURE__ */ jsx104(
6306
6481
  Typography20,
6307
6482
  {
6308
6483
  variant: "body2",
@@ -6316,7 +6491,7 @@ function ListingTableCellIcon({
6316
6491
  children: primary
6317
6492
  }
6318
6493
  ),
6319
- secondary && /* @__PURE__ */ jsx103(
6494
+ secondary && /* @__PURE__ */ jsx104(
6320
6495
  Typography20,
6321
6496
  {
6322
6497
  variant: "caption",
@@ -6331,7 +6506,7 @@ function ListingTableCellIcon({
6331
6506
  }
6332
6507
  )
6333
6508
  ] });
6334
- return /* @__PURE__ */ jsx103(
6509
+ return /* @__PURE__ */ jsx104(
6335
6510
  Box39,
6336
6511
  {
6337
6512
  sx: __spreadValues({
@@ -6354,7 +6529,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
6354
6529
 
6355
6530
  // src/components/ListingTable/ListingTableProvider.tsx
6356
6531
  import { useMemo as useMemo7 } from "react";
6357
- import { jsx as jsx104 } from "react/jsx-runtime";
6532
+ import { jsx as jsx105 } from "react/jsx-runtime";
6358
6533
  function ListingTableProvider({
6359
6534
  children,
6360
6535
  // Search
@@ -6457,12 +6632,12 @@ function ListingTableProvider({
6457
6632
  loading
6458
6633
  ]
6459
6634
  );
6460
- return /* @__PURE__ */ jsx104(ListingTableContext.Provider, { value: contextValue, children });
6635
+ return /* @__PURE__ */ jsx105(ListingTableContext.Provider, { value: contextValue, children });
6461
6636
  }
6462
6637
 
6463
6638
  // src/components/ListingTable/ListingTable/ListingTable.tsx
6464
- import { jsx as jsx105 } from "react/jsx-runtime";
6465
- var StyledTable = styled66(MuiTable, {
6639
+ import { jsx as jsx106 } from "react/jsx-runtime";
6640
+ var StyledTable = styled67(MuiTable, {
6466
6641
  shouldForwardProp: (prop) => {
6467
6642
  const excludedProps = ["variant", "density", "striped", "bordered"];
6468
6643
  return !excludedProps.some((excluded) => excluded === prop);
@@ -6515,7 +6690,7 @@ function ListingTable(_a) {
6515
6690
  "children",
6516
6691
  "sx"
6517
6692
  ]);
6518
- return /* @__PURE__ */ jsx105(
6693
+ return /* @__PURE__ */ jsx106(
6519
6694
  StyledTable,
6520
6695
  __spreadProps(__spreadValues({
6521
6696
  variant,
@@ -6541,14 +6716,15 @@ var ListingTableCompound = Object.assign(ListingTable, {
6541
6716
  EmptyState: ListingTableEmptyState_default,
6542
6717
  Toolbar: ListingTableToolbar_default,
6543
6718
  SortLabel: ListingTableSortLabel_default,
6544
- DensityControl: ListingTableDensityControl_default
6719
+ DensityControl: ListingTableDensityControl_default,
6720
+ DataGrid: ListingTableDataGrid_default
6545
6721
  });
6546
6722
  var ListingTable_default = ListingTableCompound;
6547
6723
 
6548
6724
  // src/animations/ParticleBackground/ParticleBackground.tsx
6549
6725
  import { useEffect as useEffect5, useRef } from "react";
6550
6726
  import { useColorScheme as useColorScheme3 } from "@mui/material/styles";
6551
- import { jsx as jsx106 } from "react/jsx-runtime";
6727
+ import { jsx as jsx107 } from "react/jsx-runtime";
6552
6728
  var ParticleBackground = ({
6553
6729
  opacity = 0.5,
6554
6730
  baseDensity = 0.12,
@@ -6695,8 +6871,8 @@ var ParticleBackground = ({
6695
6871
  const dy = a.y - b.y;
6696
6872
  const dist = Math.hypot(dx, dy);
6697
6873
  if (dist < linkDist * DPR) {
6698
- const alpha2 = linkAlpha * (1 - dist / (linkDist * DPR));
6699
- context.globalAlpha = alpha2;
6874
+ const alpha3 = linkAlpha * (1 - dist / (linkDist * DPR));
6875
+ context.globalAlpha = alpha3;
6700
6876
  context.beginPath();
6701
6877
  context.moveTo(a.x, a.y);
6702
6878
  context.lineTo(b.x, b.y);
@@ -6733,7 +6909,7 @@ var ParticleBackground = ({
6733
6909
  cancelAnimationFrame(animationFrameId);
6734
6910
  };
6735
6911
  }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
6736
- return /* @__PURE__ */ jsx106(
6912
+ return /* @__PURE__ */ jsx107(
6737
6913
  "canvas",
6738
6914
  {
6739
6915
  ref: canvasRef,
@@ -6819,7 +6995,7 @@ var useNotifications = (options = {}) => {
6819
6995
  // src/index.ts
6820
6996
  export * from "@mui/material";
6821
6997
  import * as colors from "@mui/material/colors";
6822
- import * as DataGrid from "@mui/x-data-grid";
6998
+ import * as DataGrid2 from "@mui/x-data-grid";
6823
6999
  import * as DatePickers from "@mui/x-date-pickers";
6824
7000
  import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
6825
7001
  import * as TreeView from "@mui/x-tree-view";
@@ -6836,7 +7012,7 @@ export {
6836
7012
  ColorSchemeToggle,
6837
7013
  ColorSchemeToggle_default as ColorSchemeToggleDefault,
6838
7014
  ComplexSelect_default as ComplexSelect,
6839
- DataGrid,
7015
+ DataGrid2 as DataGrid,
6840
7016
  DatePickers,
6841
7017
  Footer,
6842
7018
  Form,