@wso2/oxygen-ui 0.8.1 → 0.8.3
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.
|
@@ -43,5 +43,5 @@ export interface ListingTableDataGridProps extends Omit<DataGridProps, 'density'
|
|
|
43
43
|
* </ListingTable.Provider>
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
export declare function ListingTableDataGrid({ density: densityProp, loading: loadingProp, getRowSpacing: getRowSpacingProp, filterModel: filterModelProp, sx, ...props }: ListingTableDataGridProps): ReactElement;
|
|
46
|
+
export declare function ListingTableDataGrid({ density: densityProp, loading: loadingProp, getRowSpacing: getRowSpacingProp, getRowHeight: getRowHeightProp, filterModel: filterModelProp, sx, ...props }: ListingTableDataGridProps): ReactElement;
|
|
47
47
|
export default ListingTableDataGrid;
|
|
@@ -8,11 +8,11 @@ export interface ListingTableCellIconProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Primary text content
|
|
10
10
|
*/
|
|
11
|
-
primary:
|
|
11
|
+
primary: ReactNode;
|
|
12
12
|
/**
|
|
13
13
|
* Secondary text content (optional)
|
|
14
14
|
*/
|
|
15
|
-
secondary?:
|
|
15
|
+
secondary?: ReactNode;
|
|
16
16
|
/**
|
|
17
17
|
* Icon position relative to text
|
|
18
18
|
* @default 'left'
|
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.8.
|
|
133
|
+
version: "0.8.3",
|
|
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",
|
|
@@ -498,8 +498,9 @@ var AcrylicBaseTheme = extendTheme2(OxygenThemeBase_default, {
|
|
|
498
498
|
},
|
|
499
499
|
background: {
|
|
500
500
|
default: "#f5f5f5",
|
|
501
|
-
paper: "#
|
|
502
|
-
acrylic: "#
|
|
501
|
+
paper: "#ffffffc5",
|
|
502
|
+
acrylic: "#ffffff40"
|
|
503
|
+
// More transparent version for Paper and Card components
|
|
503
504
|
},
|
|
504
505
|
text: {
|
|
505
506
|
primary: "#40404B",
|
|
@@ -519,8 +520,8 @@ var AcrylicBaseTheme = extendTheme2(OxygenThemeBase_default, {
|
|
|
519
520
|
},
|
|
520
521
|
background: {
|
|
521
522
|
default: "#000000",
|
|
522
|
-
paper: "#
|
|
523
|
-
acrylic: "#
|
|
523
|
+
paper: "#000000c5",
|
|
524
|
+
acrylic: "#00000040"
|
|
524
525
|
// More transparent version for Paper and Card components
|
|
525
526
|
},
|
|
526
527
|
text: {
|
|
@@ -661,8 +662,20 @@ var AcrylicBaseTheme = extendTheme2(OxygenThemeBase_default, {
|
|
|
661
662
|
MuiPopover: {
|
|
662
663
|
styleOverrides: {
|
|
663
664
|
paper: ({ theme }) => ({
|
|
664
|
-
|
|
665
|
-
|
|
665
|
+
backgroundColor: theme.vars.palette.background.paper,
|
|
666
|
+
WebkitBackdropFilter: theme.blur.medium,
|
|
667
|
+
backdropFilter: theme.blur.medium,
|
|
668
|
+
backgroundImage: "none"
|
|
669
|
+
})
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
MuiAutocomplete: {
|
|
673
|
+
styleOverrides: {
|
|
674
|
+
paper: ({ theme }) => ({
|
|
675
|
+
backgroundColor: theme.vars.palette.background.paper,
|
|
676
|
+
WebkitBackdropFilter: theme.blur.medium,
|
|
677
|
+
backdropFilter: theme.blur.medium,
|
|
678
|
+
backgroundImage: "none"
|
|
666
679
|
})
|
|
667
680
|
}
|
|
668
681
|
},
|
|
@@ -2423,14 +2436,7 @@ var PageContentInner = styled7(Box3, {
|
|
|
2423
2436
|
slot: "Inner",
|
|
2424
2437
|
shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "centered" && prop !== "fullWidth" && prop !== "noPadding"
|
|
2425
2438
|
})(({ theme, maxWidth = "1400px", centered = true, fullWidth = false, noPadding = false }) => __spreadValues(__spreadValues(__spreadValues({
|
|
2426
|
-
|
|
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%"
|
|
2439
|
+
width: "100%"
|
|
2434
2440
|
}, !fullWidth && { maxWidth }), centered && { marginLeft: "auto", marginRight: "auto" }), !noPadding && { padding: theme.spacing(8) }));
|
|
2435
2441
|
var PageContent = (_a) => {
|
|
2436
2442
|
var _b = _a, {
|
|
@@ -3240,11 +3246,10 @@ var HeaderToolbar = styled21(Toolbar, {
|
|
|
3240
3246
|
slot: "Toolbar"
|
|
3241
3247
|
})(({ theme }) => ({
|
|
3242
3248
|
gap: theme.spacing(1),
|
|
3243
|
-
minHeight:
|
|
3244
|
-
paddingLeft: theme.spacing(
|
|
3245
|
-
paddingRight: theme.spacing(
|
|
3249
|
+
minHeight: 64,
|
|
3250
|
+
paddingLeft: theme.spacing(2),
|
|
3251
|
+
paddingRight: theme.spacing(2),
|
|
3246
3252
|
[theme.breakpoints.up("sm")]: {
|
|
3247
|
-
minHeight: 64,
|
|
3248
3253
|
paddingLeft: theme.spacing(2),
|
|
3249
3254
|
paddingRight: theme.spacing(2)
|
|
3250
3255
|
}
|
|
@@ -5682,6 +5687,7 @@ var useAppShell = (options) => {
|
|
|
5682
5687
|
sidebarCollapsedWidth = 64
|
|
5683
5688
|
} = options || {};
|
|
5684
5689
|
const isMobile = useMediaQuery2((theme) => theme.breakpoints.down("md"));
|
|
5690
|
+
const isCreateMode = options !== void 0;
|
|
5685
5691
|
const [state, setState] = React30.useState({
|
|
5686
5692
|
sidebarCollapsed: initialCollapsed,
|
|
5687
5693
|
notificationPanelOpen: false,
|
|
@@ -5691,10 +5697,10 @@ var useAppShell = (options) => {
|
|
|
5691
5697
|
sidebarCollapsedWidth
|
|
5692
5698
|
});
|
|
5693
5699
|
React30.useEffect(() => {
|
|
5694
|
-
if (
|
|
5700
|
+
if (isCreateMode && collapseOnMobile && isMobile) {
|
|
5695
5701
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: true }));
|
|
5696
5702
|
}
|
|
5697
|
-
}, [
|
|
5703
|
+
}, [isCreateMode, collapseOnMobile, isMobile]);
|
|
5698
5704
|
const toggleSidebar = React30.useCallback(() => {
|
|
5699
5705
|
setState((prev) => __spreadProps(__spreadValues({}, prev), { sidebarCollapsed: !prev.sidebarCollapsed }));
|
|
5700
5706
|
}, []);
|
|
@@ -6079,12 +6085,14 @@ function ListingTableDataGrid(_a) {
|
|
|
6079
6085
|
density: densityProp,
|
|
6080
6086
|
loading: loadingProp,
|
|
6081
6087
|
getRowSpacing: getRowSpacingProp,
|
|
6088
|
+
getRowHeight: getRowHeightProp,
|
|
6082
6089
|
filterModel: filterModelProp,
|
|
6083
6090
|
sx
|
|
6084
6091
|
} = _b, props = __objRest(_b, [
|
|
6085
6092
|
"density",
|
|
6086
6093
|
"loading",
|
|
6087
6094
|
"getRowSpacing",
|
|
6095
|
+
"getRowHeight",
|
|
6088
6096
|
"filterModel",
|
|
6089
6097
|
"sx"
|
|
6090
6098
|
]);
|
|
@@ -6182,6 +6190,7 @@ function ListingTableDataGrid(_a) {
|
|
|
6182
6190
|
loading,
|
|
6183
6191
|
filterModel,
|
|
6184
6192
|
getRowSpacing: variant === "card" ? getRowSpacingProp != null ? getRowSpacingProp : defaultCardRowSpacing : getRowSpacingProp,
|
|
6193
|
+
getRowHeight: variant === "card" ? getRowHeightProp != null ? getRowHeightProp : (() => "auto") : getRowHeightProp,
|
|
6185
6194
|
sx: mergedSx
|
|
6186
6195
|
}, props)
|
|
6187
6196
|
);
|