@wso2/oxygen-ui 0.15.0 → 0.16.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/.claude/skills/oxygen-layout/SKILL.md +46 -2
- package/dist/components/Header/HeaderToggle.d.ts +2 -2
- package/dist/components/ListingTable/ListingTable/ListingTableBody.d.ts +14 -2
- package/dist/components/RelativeTime/RelativeTime.d.ts +61 -0
- package/dist/components/RelativeTime/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +642 -528
- package/dist/index.js.map +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -205,6 +205,25 @@ var init_OxygenThemeBase = __esm({
|
|
|
205
205
|
})
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
|
+
MuiBreadcrumbs: {
|
|
209
|
+
styleOverrides: {
|
|
210
|
+
// Only the current (last) level is highlighted; parent levels are muted.
|
|
211
|
+
li: ({ theme }) => __spreadValues({
|
|
212
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
213
|
+
"&:last-child": {
|
|
214
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
215
|
+
fontWeight: theme.typography.fontWeightBold
|
|
216
|
+
}
|
|
217
|
+
}, theme.applyStyles("dark", {
|
|
218
|
+
"&:not(:last-child)": {
|
|
219
|
+
opacity: 0.7
|
|
220
|
+
}
|
|
221
|
+
})),
|
|
222
|
+
separator: ({ theme }) => ({
|
|
223
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
224
|
+
})
|
|
225
|
+
}
|
|
226
|
+
},
|
|
208
227
|
MuiCssBaseline: {
|
|
209
228
|
styleOverrides: {
|
|
210
229
|
// Honor the user's OS-level reduced-motion preference (WCAG 2.3.3):
|
|
@@ -472,7 +491,7 @@ var init_createOxygenTheme = __esm({
|
|
|
472
491
|
// package.json
|
|
473
492
|
var package_default = {
|
|
474
493
|
name: "@wso2/oxygen-ui",
|
|
475
|
-
version: "0.
|
|
494
|
+
version: "0.16.0",
|
|
476
495
|
description: "WSO2 Oxygen UI | Design System - Powered with Material-UI component library with TypeScript support",
|
|
477
496
|
type: "module",
|
|
478
497
|
main: "./dist/index.js",
|
|
@@ -3258,9 +3277,62 @@ PageTitle.Link = PageTitleLink_default;
|
|
|
3258
3277
|
PageTitle.displayName = "PageTitle";
|
|
3259
3278
|
var PageTitle_default = PageTitle;
|
|
3260
3279
|
|
|
3280
|
+
// src/components/RelativeTime/RelativeTime.tsx
|
|
3281
|
+
import Box6 from "@mui/material/Box";
|
|
3282
|
+
import Tooltip2 from "@mui/material/Tooltip";
|
|
3283
|
+
import Typography5 from "@mui/material/Typography";
|
|
3284
|
+
import { Clock } from "@wso2/oxygen-ui-icons-react";
|
|
3285
|
+
import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3286
|
+
var SIZES = {
|
|
3287
|
+
small: { variant: "caption", iconSize: 14, gap: 0.5 },
|
|
3288
|
+
medium: { variant: "body2", iconSize: 16, gap: 0.75 }
|
|
3289
|
+
};
|
|
3290
|
+
var RelativeTime = ({
|
|
3291
|
+
time,
|
|
3292
|
+
action,
|
|
3293
|
+
dateTime,
|
|
3294
|
+
tooltip,
|
|
3295
|
+
icon,
|
|
3296
|
+
hideIcon = false,
|
|
3297
|
+
size = "medium",
|
|
3298
|
+
sx
|
|
3299
|
+
}) => {
|
|
3300
|
+
const { variant, iconSize, gap } = SIZES[size];
|
|
3301
|
+
const content = /* @__PURE__ */ jsxs7(
|
|
3302
|
+
Box6,
|
|
3303
|
+
{
|
|
3304
|
+
sx: [
|
|
3305
|
+
{
|
|
3306
|
+
display: "inline-flex",
|
|
3307
|
+
alignItems: "center",
|
|
3308
|
+
gap,
|
|
3309
|
+
color: "text.secondary"
|
|
3310
|
+
},
|
|
3311
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
3312
|
+
],
|
|
3313
|
+
children: [
|
|
3314
|
+
!hideIcon && /* @__PURE__ */ jsx22(Box6, { "aria-hidden": "true", sx: { display: "inline-flex", flexShrink: 0 }, children: icon != null ? icon : /* @__PURE__ */ jsx22(Clock, { size: iconSize }) }),
|
|
3315
|
+
/* @__PURE__ */ jsxs7(Typography5, { variant, component: "span", color: "inherit", children: [
|
|
3316
|
+
action && /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
3317
|
+
action,
|
|
3318
|
+
" "
|
|
3319
|
+
] }),
|
|
3320
|
+
/* @__PURE__ */ jsx22("time", { dateTime, children: time })
|
|
3321
|
+
] })
|
|
3322
|
+
]
|
|
3323
|
+
}
|
|
3324
|
+
);
|
|
3325
|
+
if (!tooltip) {
|
|
3326
|
+
return content;
|
|
3327
|
+
}
|
|
3328
|
+
return /* @__PURE__ */ jsx22(Tooltip2, { title: tooltip, describeChild: true, children: /* @__PURE__ */ jsx22(Box6, { component: "span", tabIndex: 0, sx: { display: "inline-flex" }, children: content }) });
|
|
3329
|
+
};
|
|
3330
|
+
RelativeTime.displayName = "RelativeTime";
|
|
3331
|
+
var RelativeTime_default = RelativeTime;
|
|
3332
|
+
|
|
3261
3333
|
// src/components/StatCard/StatCard.tsx
|
|
3262
|
-
import { Card, CardContent, Box as
|
|
3263
|
-
import { jsx as
|
|
3334
|
+
import { Card, CardContent, Box as Box7, Typography as Typography6 } from "@mui/material";
|
|
3335
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3264
3336
|
var StatCard = (_a) => {
|
|
3265
3337
|
var _b = _a, {
|
|
3266
3338
|
value,
|
|
@@ -3273,18 +3345,18 @@ var StatCard = (_a) => {
|
|
|
3273
3345
|
"icon",
|
|
3274
3346
|
"iconColor"
|
|
3275
3347
|
]);
|
|
3276
|
-
return /* @__PURE__ */
|
|
3277
|
-
icon && /* @__PURE__ */
|
|
3278
|
-
|
|
3348
|
+
return /* @__PURE__ */ jsx23(Card, __spreadProps(__spreadValues({ variant: "outlined" }, props), { children: /* @__PURE__ */ jsx23(CardContent, { children: /* @__PURE__ */ jsxs8(Box7, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
3349
|
+
icon && /* @__PURE__ */ jsx23(
|
|
3350
|
+
Box7,
|
|
3279
3351
|
{
|
|
3280
3352
|
"aria-hidden": "true",
|
|
3281
3353
|
sx: { color: (theme) => theme.palette[iconColor].main, display: "flex", alignItems: "center" },
|
|
3282
3354
|
children: icon
|
|
3283
3355
|
}
|
|
3284
3356
|
),
|
|
3285
|
-
/* @__PURE__ */
|
|
3286
|
-
/* @__PURE__ */
|
|
3287
|
-
/* @__PURE__ */
|
|
3357
|
+
/* @__PURE__ */ jsxs8(Box7, { children: [
|
|
3358
|
+
/* @__PURE__ */ jsx23(Typography6, { variant: "h5", children: value }),
|
|
3359
|
+
/* @__PURE__ */ jsx23(Typography6, { variant: "body2", color: "text.secondary", children: label })
|
|
3288
3360
|
] })
|
|
3289
3361
|
] }) }) }));
|
|
3290
3362
|
};
|
|
@@ -3295,7 +3367,7 @@ var StatCard_default = StatCard;
|
|
|
3295
3367
|
import { useId as useId3 } from "react";
|
|
3296
3368
|
import { Select, MenuItem as MenuItem2, FormControl, InputLabel } from "@mui/material";
|
|
3297
3369
|
import { visuallyHidden as visuallyHidden2 } from "@mui/utils";
|
|
3298
|
-
import { jsx as
|
|
3370
|
+
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3299
3371
|
function ThemeSelect({
|
|
3300
3372
|
size = "small",
|
|
3301
3373
|
showLabel = false,
|
|
@@ -3308,23 +3380,23 @@ function ThemeSelect({
|
|
|
3308
3380
|
const handleChange = (event) => {
|
|
3309
3381
|
setTheme(event.target.value);
|
|
3310
3382
|
};
|
|
3311
|
-
return /* @__PURE__ */
|
|
3312
|
-
/* @__PURE__ */
|
|
3313
|
-
/* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsxs9(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
|
|
3384
|
+
/* @__PURE__ */ jsx24(InputLabel, { id: labelId, sx: showLabel ? void 0 : visuallyHidden2, children: label }),
|
|
3385
|
+
/* @__PURE__ */ jsx24(
|
|
3314
3386
|
Select,
|
|
3315
3387
|
{
|
|
3316
3388
|
labelId,
|
|
3317
3389
|
value: currentTheme,
|
|
3318
3390
|
onChange: handleChange,
|
|
3319
3391
|
label,
|
|
3320
|
-
children: themes.map((themeOption) => /* @__PURE__ */
|
|
3392
|
+
children: themes.map((themeOption) => /* @__PURE__ */ jsx24(MenuItem2, { value: themeOption.key, children: themeOption.label }, themeOption.key))
|
|
3321
3393
|
}
|
|
3322
3394
|
)
|
|
3323
3395
|
] });
|
|
3324
3396
|
}
|
|
3325
3397
|
|
|
3326
3398
|
// src/components/ThemeSwitcher/ThemeSwitcher.tsx
|
|
3327
|
-
import { Fragment as
|
|
3399
|
+
import { Fragment as Fragment3, jsx as jsx25 } from "react/jsx-runtime";
|
|
3328
3400
|
function ThemeSwitcher({
|
|
3329
3401
|
children,
|
|
3330
3402
|
size,
|
|
@@ -3335,9 +3407,9 @@ function ThemeSwitcher({
|
|
|
3335
3407
|
}) {
|
|
3336
3408
|
const themeSwitcherContext = useThemeSwitcher();
|
|
3337
3409
|
if (children) {
|
|
3338
|
-
return /* @__PURE__ */
|
|
3410
|
+
return /* @__PURE__ */ jsx25(Fragment3, { children: children(themeSwitcherContext) });
|
|
3339
3411
|
}
|
|
3340
|
-
return /* @__PURE__ */
|
|
3412
|
+
return /* @__PURE__ */ jsx25(
|
|
3341
3413
|
ThemeSelect,
|
|
3342
3414
|
{
|
|
3343
3415
|
size,
|
|
@@ -3353,10 +3425,10 @@ function ThemeSwitcher({
|
|
|
3353
3425
|
import * as React7 from "react";
|
|
3354
3426
|
import TextField2 from "@mui/material/TextField";
|
|
3355
3427
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
3356
|
-
import
|
|
3428
|
+
import Box8 from "@mui/material/Box";
|
|
3357
3429
|
import IconButton2 from "@mui/material/IconButton";
|
|
3358
3430
|
import Popover from "@mui/material/Popover";
|
|
3359
|
-
import
|
|
3431
|
+
import Typography7 from "@mui/material/Typography";
|
|
3360
3432
|
import Divider from "@mui/material/Divider";
|
|
3361
3433
|
import Button2 from "@mui/material/Button";
|
|
3362
3434
|
import Stack from "@mui/material/Stack";
|
|
@@ -3371,7 +3443,7 @@ import * as React6 from "react";
|
|
|
3371
3443
|
import TextField from "@mui/material/TextField";
|
|
3372
3444
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
3373
3445
|
import { Search } from "@wso2/oxygen-ui-icons-react";
|
|
3374
|
-
import { jsx as
|
|
3446
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3375
3447
|
var hasMeaningfulAriaValue = (value) => typeof value === "string" && value.trim().length > 0;
|
|
3376
3448
|
var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
|
|
3377
3449
|
var _b = _a, {
|
|
@@ -3396,7 +3468,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3396
3468
|
const hasAccessibleName = hasMeaningfulLabel || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-label"]) || hasMeaningfulAriaValue(htmlInputSlotProps == null ? void 0 : htmlInputSlotProps["aria-labelledby"]);
|
|
3397
3469
|
const shouldInjectPlaceholderLabel = !hasAccessibleName && hasMeaningfulAriaValue(placeholder);
|
|
3398
3470
|
const htmlInput = shouldInjectPlaceholderLabel || (slotProps == null ? void 0 : slotProps.htmlInput) || hasMeaningfulAriaValue(ariaLabel) || hasMeaningfulAriaValue(ariaLabelledBy) ? __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, slotProps == null ? void 0 : slotProps.htmlInput), hasMeaningfulAriaValue(ariaLabelledBy) ? { "aria-labelledby": ariaLabelledBy } : null), hasMeaningfulAriaValue(ariaLabel) ? { "aria-label": ariaLabel } : null), shouldInjectPlaceholderLabel ? { "aria-label": placeholder } : null) : void 0;
|
|
3399
|
-
return /* @__PURE__ */
|
|
3471
|
+
return /* @__PURE__ */ jsx26(
|
|
3400
3472
|
TextField,
|
|
3401
3473
|
__spreadProps(__spreadValues({}, props), {
|
|
3402
3474
|
ref,
|
|
@@ -3406,7 +3478,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3406
3478
|
size: "small",
|
|
3407
3479
|
slotProps: __spreadProps(__spreadValues(__spreadValues({}, slotProps), htmlInput ? { htmlInput } : null), {
|
|
3408
3480
|
input: __spreadProps(__spreadValues({}, slotProps == null ? void 0 : slotProps.input), {
|
|
3409
|
-
startAdornment: /* @__PURE__ */
|
|
3481
|
+
startAdornment: /* @__PURE__ */ jsx26(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx26(Search, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3410
3482
|
endAdornment
|
|
3411
3483
|
})
|
|
3412
3484
|
}),
|
|
@@ -3423,7 +3495,7 @@ var SearchBarBase = React6.forwardRef(function SearchBarBase2(_a, ref) {
|
|
|
3423
3495
|
});
|
|
3424
3496
|
|
|
3425
3497
|
// src/components/SearchBar/SearchBarWithAdvancedFilter.tsx
|
|
3426
|
-
import { Fragment as
|
|
3498
|
+
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3427
3499
|
function SearchBarWithAdvancedFilter(_a) {
|
|
3428
3500
|
var _b = _a, {
|
|
3429
3501
|
value,
|
|
@@ -3476,17 +3548,17 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3476
3548
|
handleClose();
|
|
3477
3549
|
};
|
|
3478
3550
|
const popoverId = open ? "advanced-search-popover" : void 0;
|
|
3479
|
-
return /* @__PURE__ */
|
|
3480
|
-
/* @__PURE__ */
|
|
3551
|
+
return /* @__PURE__ */ jsxs10(Fragment4, { children: [
|
|
3552
|
+
/* @__PURE__ */ jsx27(
|
|
3481
3553
|
SearchBarBase,
|
|
3482
3554
|
__spreadProps(__spreadValues({}, props), {
|
|
3483
3555
|
value,
|
|
3484
3556
|
onChange: handleInputChange,
|
|
3485
3557
|
placeholder,
|
|
3486
3558
|
sx,
|
|
3487
|
-
endAdornment: /* @__PURE__ */
|
|
3488
|
-
/* @__PURE__ */
|
|
3489
|
-
/* @__PURE__ */
|
|
3559
|
+
endAdornment: /* @__PURE__ */ jsx27(InputAdornment2, { position: "end", sx: { m: 0 }, children: /* @__PURE__ */ jsxs10(Box8, { sx: { display: "flex", alignItems: "center", height: "100%" }, children: [
|
|
3560
|
+
/* @__PURE__ */ jsx27(Divider, { orientation: "vertical", flexItem: true, sx: { mx: 0.5 } }),
|
|
3561
|
+
/* @__PURE__ */ jsx27(
|
|
3490
3562
|
IconButton2,
|
|
3491
3563
|
{
|
|
3492
3564
|
"aria-describedby": popoverId,
|
|
@@ -3494,13 +3566,13 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3494
3566
|
onClick: handleOpen,
|
|
3495
3567
|
size: "small",
|
|
3496
3568
|
sx: { mx: 0.5 },
|
|
3497
|
-
children: /* @__PURE__ */
|
|
3569
|
+
children: /* @__PURE__ */ jsx27(ListFilter, { fontSize: "tiny" })
|
|
3498
3570
|
}
|
|
3499
3571
|
)
|
|
3500
3572
|
] }) })
|
|
3501
3573
|
})
|
|
3502
3574
|
),
|
|
3503
|
-
/* @__PURE__ */
|
|
3575
|
+
/* @__PURE__ */ jsxs10(
|
|
3504
3576
|
Popover,
|
|
3505
3577
|
{
|
|
3506
3578
|
id: popoverId,
|
|
@@ -3517,45 +3589,45 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3517
3589
|
}
|
|
3518
3590
|
},
|
|
3519
3591
|
children: [
|
|
3520
|
-
/* @__PURE__ */
|
|
3521
|
-
/* @__PURE__ */
|
|
3522
|
-
/* @__PURE__ */
|
|
3523
|
-
/* @__PURE__ */
|
|
3524
|
-
/* @__PURE__ */
|
|
3592
|
+
/* @__PURE__ */ jsx27(Typography7, { variant: "subtitle2", sx: { fontWeight: 600 }, children: "Advanced search" }),
|
|
3593
|
+
/* @__PURE__ */ jsx27(Divider, { sx: { my: 1 } }),
|
|
3594
|
+
/* @__PURE__ */ jsxs10(Stack, { spacing: 2, marginTop: 2, children: [
|
|
3595
|
+
/* @__PURE__ */ jsxs10(FormControl2, { fullWidth: true, size: "small", children: [
|
|
3596
|
+
/* @__PURE__ */ jsxs10(InputLabel2, { id: "adv-filter-attribute-label", children: [
|
|
3525
3597
|
"Filter attribute",
|
|
3526
3598
|
" ",
|
|
3527
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ jsx27(Box8, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3528
3600
|
] }),
|
|
3529
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ jsx27(
|
|
3530
3602
|
Select2,
|
|
3531
3603
|
{
|
|
3532
3604
|
labelId: "adv-filter-attribute-label",
|
|
3533
3605
|
value: advancedFilter.attribute,
|
|
3534
3606
|
label: "Filter attribute *",
|
|
3535
3607
|
onChange: handleAttrChange,
|
|
3536
|
-
children: attributeOptions.map((opt) => /* @__PURE__ */
|
|
3608
|
+
children: attributeOptions.map((opt) => /* @__PURE__ */ jsx27(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
|
|
3537
3609
|
}
|
|
3538
3610
|
)
|
|
3539
3611
|
] }),
|
|
3540
|
-
/* @__PURE__ */
|
|
3541
|
-
/* @__PURE__ */
|
|
3542
|
-
/* @__PURE__ */
|
|
3612
|
+
/* @__PURE__ */ jsxs10(Box8, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 2 }, children: [
|
|
3613
|
+
/* @__PURE__ */ jsxs10(FormControl2, { fullWidth: true, size: "small", children: [
|
|
3614
|
+
/* @__PURE__ */ jsxs10(InputLabel2, { id: "adv-filter-condition-label", children: [
|
|
3543
3615
|
"Filter condition",
|
|
3544
3616
|
" ",
|
|
3545
|
-
/* @__PURE__ */
|
|
3617
|
+
/* @__PURE__ */ jsx27(Box8, { component: "span", sx: { color: "error.main" }, children: "*" })
|
|
3546
3618
|
] }),
|
|
3547
|
-
/* @__PURE__ */
|
|
3619
|
+
/* @__PURE__ */ jsx27(
|
|
3548
3620
|
Select2,
|
|
3549
3621
|
{
|
|
3550
3622
|
labelId: "adv-filter-condition-label",
|
|
3551
3623
|
value: advancedFilter.condition,
|
|
3552
3624
|
label: "Filter condition *",
|
|
3553
3625
|
onChange: handleCondChange,
|
|
3554
|
-
children: conditionOptions.map((opt) => /* @__PURE__ */
|
|
3626
|
+
children: conditionOptions.map((opt) => /* @__PURE__ */ jsx27(MenuItem3, { value: opt.value, children: opt.label }, opt.value))
|
|
3555
3627
|
}
|
|
3556
3628
|
)
|
|
3557
3629
|
] }),
|
|
3558
|
-
/* @__PURE__ */
|
|
3630
|
+
/* @__PURE__ */ jsx27(
|
|
3559
3631
|
TextField2,
|
|
3560
3632
|
{
|
|
3561
3633
|
size: "small",
|
|
@@ -3567,7 +3639,7 @@ function SearchBarWithAdvancedFilter(_a) {
|
|
|
3567
3639
|
}
|
|
3568
3640
|
)
|
|
3569
3641
|
] }),
|
|
3570
|
-
/* @__PURE__ */
|
|
3642
|
+
/* @__PURE__ */ jsx27(Box8, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx27(
|
|
3571
3643
|
Button2,
|
|
3572
3644
|
{
|
|
3573
3645
|
variant: "contained",
|
|
@@ -3587,10 +3659,10 @@ var SearchBarWithAdvancedFilter_default = SearchBarWithAdvancedFilter;
|
|
|
3587
3659
|
|
|
3588
3660
|
// src/components/SearchBar/SearchBar.tsx
|
|
3589
3661
|
import * as React8 from "react";
|
|
3590
|
-
import { jsx as
|
|
3662
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3591
3663
|
var SearchBar = React8.forwardRef(function SearchBar2(_a, ref) {
|
|
3592
3664
|
var _b = _a, { placeholder = "Search" } = _b, props = __objRest(_b, ["placeholder"]);
|
|
3593
|
-
return /* @__PURE__ */
|
|
3665
|
+
return /* @__PURE__ */ jsx28(
|
|
3594
3666
|
SearchBarBase,
|
|
3595
3667
|
__spreadProps(__spreadValues({}, props), {
|
|
3596
3668
|
ref,
|
|
@@ -3604,7 +3676,7 @@ var SearchBar_default = SearchBar;
|
|
|
3604
3676
|
import * as React12 from "react";
|
|
3605
3677
|
import AppBar from "@mui/material/AppBar";
|
|
3606
3678
|
import Toolbar from "@mui/material/Toolbar";
|
|
3607
|
-
import
|
|
3679
|
+
import Box13 from "@mui/material/Box";
|
|
3608
3680
|
import { styled as styled22 } from "@mui/material/styles";
|
|
3609
3681
|
|
|
3610
3682
|
// src/components/Header/context.ts
|
|
@@ -3621,24 +3693,24 @@ var useHeader = () => {
|
|
|
3621
3693
|
// src/components/Header/HeaderToggle.tsx
|
|
3622
3694
|
import * as React11 from "react";
|
|
3623
3695
|
import IconButton3 from "@mui/material/IconButton";
|
|
3624
|
-
import
|
|
3696
|
+
import Tooltip3 from "@mui/material/Tooltip";
|
|
3625
3697
|
import { styled as styled16 } from "@mui/material/styles";
|
|
3626
|
-
import { Menu as Menu2
|
|
3698
|
+
import { Menu as Menu2 } from "@wso2/oxygen-ui-icons-react";
|
|
3627
3699
|
|
|
3628
3700
|
// src/components/AppShell/context.tsx
|
|
3629
3701
|
import * as React10 from "react";
|
|
3630
|
-
import { jsx as
|
|
3702
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3631
3703
|
var AppShellContext = React10.createContext(void 0);
|
|
3632
3704
|
var AppShellProvider = ({
|
|
3633
3705
|
children,
|
|
3634
3706
|
value
|
|
3635
3707
|
}) => {
|
|
3636
|
-
return /* @__PURE__ */
|
|
3708
|
+
return /* @__PURE__ */ jsx29(AppShellContext.Provider, { value, children });
|
|
3637
3709
|
};
|
|
3638
3710
|
AppShellProvider.displayName = "AppShellProvider";
|
|
3639
3711
|
|
|
3640
3712
|
// src/components/Header/HeaderToggle.tsx
|
|
3641
|
-
import { jsx as
|
|
3713
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3642
3714
|
var HeaderToggleRoot = styled16(IconButton3, {
|
|
3643
3715
|
name: "MuiHeader",
|
|
3644
3716
|
slot: "Toggle"
|
|
@@ -3659,7 +3731,7 @@ var HeaderToggle = ({
|
|
|
3659
3731
|
const collapsed = (_a = collapsedProp != null ? collapsedProp : appShellContext == null ? void 0 : appShellContext.state.sidebarCollapsed) != null ? _a : false;
|
|
3660
3732
|
const onToggle = (_b = onToggleProp != null ? onToggleProp : appShellContext == null ? void 0 : appShellContext.actions.toggleSidebar) != null ? _b : (() => {
|
|
3661
3733
|
});
|
|
3662
|
-
return /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ jsx30(Tooltip3, { title: collapsed ? expandLabel : collapseLabel, children: /* @__PURE__ */ jsx30(
|
|
3663
3735
|
HeaderToggleRoot,
|
|
3664
3736
|
{
|
|
3665
3737
|
onClick: onToggle,
|
|
@@ -3667,21 +3739,21 @@ var HeaderToggle = ({
|
|
|
3667
3739
|
sx,
|
|
3668
3740
|
"aria-label": collapsed ? expandLabel : collapseLabel,
|
|
3669
3741
|
"aria-expanded": !collapsed,
|
|
3670
|
-
children: /* @__PURE__ */
|
|
3742
|
+
children: /* @__PURE__ */ jsx30("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: collapsed ? expandIcon || /* @__PURE__ */ jsx30(Menu2, { size: 20 }) : collapseIcon || /* @__PURE__ */ jsx30(Menu2, { size: 20 }) })
|
|
3671
3743
|
}
|
|
3672
3744
|
) });
|
|
3673
3745
|
};
|
|
3674
3746
|
|
|
3675
3747
|
// src/components/Header/HeaderBrand.tsx
|
|
3676
|
-
import
|
|
3748
|
+
import Box10 from "@mui/material/Box";
|
|
3677
3749
|
import ButtonBase from "@mui/material/ButtonBase";
|
|
3678
3750
|
import { styled as styled19 } from "@mui/material/styles";
|
|
3679
3751
|
|
|
3680
3752
|
// src/components/Header/HeaderBrandLogo.tsx
|
|
3681
|
-
import
|
|
3753
|
+
import Box9 from "@mui/material/Box";
|
|
3682
3754
|
import { styled as styled17 } from "@mui/material/styles";
|
|
3683
|
-
import { jsx as
|
|
3684
|
-
var HeaderBrandLogoRoot = styled17(
|
|
3755
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3756
|
+
var HeaderBrandLogoRoot = styled17(Box9, {
|
|
3685
3757
|
name: "MuiHeader",
|
|
3686
3758
|
slot: "BrandLogo"
|
|
3687
3759
|
})({
|
|
@@ -3692,15 +3764,15 @@ var HeaderBrandLogo = ({
|
|
|
3692
3764
|
children,
|
|
3693
3765
|
sx
|
|
3694
3766
|
}) => {
|
|
3695
|
-
return /* @__PURE__ */
|
|
3767
|
+
return /* @__PURE__ */ jsx31(HeaderBrandLogoRoot, { sx, children });
|
|
3696
3768
|
};
|
|
3697
3769
|
HeaderBrandLogo.displayName = "HeaderBrandLogo";
|
|
3698
3770
|
|
|
3699
3771
|
// src/components/Header/HeaderBrandTitle.tsx
|
|
3700
|
-
import
|
|
3772
|
+
import Typography8 from "@mui/material/Typography";
|
|
3701
3773
|
import { styled as styled18 } from "@mui/material/styles";
|
|
3702
|
-
import { jsx as
|
|
3703
|
-
var HeaderBrandTitleRoot = styled18(
|
|
3774
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3775
|
+
var HeaderBrandTitleRoot = styled18(Typography8, {
|
|
3704
3776
|
name: "MuiHeader",
|
|
3705
3777
|
slot: "BrandTitle"
|
|
3706
3778
|
})(({ theme }) => ({
|
|
@@ -3717,13 +3789,13 @@ var HeaderBrandTitle = ({
|
|
|
3717
3789
|
children,
|
|
3718
3790
|
sx
|
|
3719
3791
|
}) => {
|
|
3720
|
-
return /* @__PURE__ */
|
|
3792
|
+
return /* @__PURE__ */ jsx32(HeaderBrandTitleRoot, { variant: "h6", component: "div", sx, children });
|
|
3721
3793
|
};
|
|
3722
3794
|
HeaderBrandTitle.displayName = "HeaderBrandTitle";
|
|
3723
3795
|
|
|
3724
3796
|
// src/components/Header/HeaderBrand.tsx
|
|
3725
|
-
import { jsx as
|
|
3726
|
-
var HeaderBrandRoot = styled19(
|
|
3797
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3798
|
+
var HeaderBrandRoot = styled19(Box10, {
|
|
3727
3799
|
name: "MuiHeader",
|
|
3728
3800
|
slot: "Brand",
|
|
3729
3801
|
shouldForwardProp: (prop) => prop !== "clickable"
|
|
@@ -3749,18 +3821,18 @@ var HeaderBrand = ({
|
|
|
3749
3821
|
sx
|
|
3750
3822
|
}) => {
|
|
3751
3823
|
if (onClick) {
|
|
3752
|
-
return /* @__PURE__ */
|
|
3824
|
+
return /* @__PURE__ */ jsx33(HeaderBrandButtonRoot, { onClick, "aria-label": ariaLabel, sx, children });
|
|
3753
3825
|
}
|
|
3754
|
-
return /* @__PURE__ */
|
|
3826
|
+
return /* @__PURE__ */ jsx33(HeaderBrandRoot, { clickable: false, sx, children });
|
|
3755
3827
|
};
|
|
3756
3828
|
HeaderBrand.displayName = "HeaderBrand";
|
|
3757
3829
|
|
|
3758
3830
|
// src/components/Header/HeaderSwitchers.tsx
|
|
3759
|
-
import
|
|
3831
|
+
import Box11 from "@mui/material/Box";
|
|
3760
3832
|
import Divider2 from "@mui/material/Divider";
|
|
3761
3833
|
import { styled as styled20 } from "@mui/material/styles";
|
|
3762
|
-
import { jsx as
|
|
3763
|
-
var HeaderSwitchersRoot = styled20(
|
|
3834
|
+
import { jsx as jsx34, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3835
|
+
var HeaderSwitchersRoot = styled20(Box11, {
|
|
3764
3836
|
name: "MuiHeader",
|
|
3765
3837
|
slot: "Switchers"
|
|
3766
3838
|
})(({ theme }) => ({
|
|
@@ -3788,17 +3860,17 @@ var HeaderSwitchers = ({
|
|
|
3788
3860
|
if (minimal) {
|
|
3789
3861
|
return null;
|
|
3790
3862
|
}
|
|
3791
|
-
return /* @__PURE__ */
|
|
3792
|
-
showDivider && /* @__PURE__ */
|
|
3863
|
+
return /* @__PURE__ */ jsxs11(HeaderSwitchersRoot, { sx, children: [
|
|
3864
|
+
showDivider && /* @__PURE__ */ jsx34(HeaderSwitchersDivider, { orientation: "vertical", flexItem: true }),
|
|
3793
3865
|
children
|
|
3794
3866
|
] });
|
|
3795
3867
|
};
|
|
3796
3868
|
|
|
3797
3869
|
// src/components/Header/HeaderActions.tsx
|
|
3798
|
-
import
|
|
3870
|
+
import Box12 from "@mui/material/Box";
|
|
3799
3871
|
import { styled as styled21 } from "@mui/material/styles";
|
|
3800
|
-
import { jsx as
|
|
3801
|
-
var HeaderActionsRoot = styled21(
|
|
3872
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3873
|
+
var HeaderActionsRoot = styled21(Box12, {
|
|
3802
3874
|
name: "MuiHeader",
|
|
3803
3875
|
slot: "Actions"
|
|
3804
3876
|
})(({ theme }) => ({
|
|
@@ -3810,11 +3882,11 @@ var HeaderActions = ({
|
|
|
3810
3882
|
children,
|
|
3811
3883
|
sx
|
|
3812
3884
|
}) => {
|
|
3813
|
-
return /* @__PURE__ */
|
|
3885
|
+
return /* @__PURE__ */ jsx35(HeaderActionsRoot, { sx, children });
|
|
3814
3886
|
};
|
|
3815
3887
|
|
|
3816
3888
|
// src/components/Header/Header.tsx
|
|
3817
|
-
import { jsx as
|
|
3889
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3818
3890
|
var HeaderRootStyled = styled22(AppBar, {
|
|
3819
3891
|
name: "MuiHeader",
|
|
3820
3892
|
slot: "Root"
|
|
@@ -3835,7 +3907,7 @@ var HeaderToolbar = styled22(Toolbar, {
|
|
|
3835
3907
|
paddingRight: theme.spacing(2)
|
|
3836
3908
|
}
|
|
3837
3909
|
}));
|
|
3838
|
-
var HeaderSpacerStyled = styled22(
|
|
3910
|
+
var HeaderSpacerStyled = styled22(Box13, {
|
|
3839
3911
|
name: "MuiHeader",
|
|
3840
3912
|
slot: "Spacer"
|
|
3841
3913
|
})({
|
|
@@ -3847,9 +3919,9 @@ var Header = ({
|
|
|
3847
3919
|
sx
|
|
3848
3920
|
}) => {
|
|
3849
3921
|
const contextValue = React12.useMemo(() => ({ minimal }), [minimal]);
|
|
3850
|
-
return /* @__PURE__ */
|
|
3922
|
+
return /* @__PURE__ */ jsx36(HeaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx36(HeaderRootStyled, { position: "static", color: "default", elevation: 0, sx, children: /* @__PURE__ */ jsx36(HeaderToolbar, { children }) }) });
|
|
3851
3923
|
};
|
|
3852
|
-
var HeaderSpacer = ({ sx }) => /* @__PURE__ */
|
|
3924
|
+
var HeaderSpacer = ({ sx }) => /* @__PURE__ */ jsx36(HeaderSpacerStyled, { sx });
|
|
3853
3925
|
Header.Toggle = HeaderToggle;
|
|
3854
3926
|
Header.Brand = HeaderBrand;
|
|
3855
3927
|
Header.BrandLogo = HeaderBrandLogo;
|
|
@@ -3881,10 +3953,10 @@ AppSwitcherFooterContext.displayName = "AppSwitcher.FooterContext";
|
|
|
3881
3953
|
// src/components/AppSwitcher/AppSwitcherTrigger.tsx
|
|
3882
3954
|
import * as React14 from "react";
|
|
3883
3955
|
import IconButton4 from "@mui/material/IconButton";
|
|
3884
|
-
import
|
|
3956
|
+
import Tooltip4 from "@mui/material/Tooltip";
|
|
3885
3957
|
import { styled as styled23 } from "@mui/material/styles";
|
|
3886
3958
|
import { Grip } from "@wso2/oxygen-ui-icons-react";
|
|
3887
|
-
import { jsx as
|
|
3959
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3888
3960
|
var DEFAULT_LABEL = "Switch Platforms";
|
|
3889
3961
|
var AppSwitcherTriggerRoot = styled23(IconButton4, {
|
|
3890
3962
|
name: "MuiAppSwitcher",
|
|
@@ -3906,7 +3978,7 @@ var AppSwitcherTrigger = React14.forwardRef(
|
|
|
3906
3978
|
const { open, popoverId, handleOpen } = useAppSwitcher();
|
|
3907
3979
|
const resolvedLabel = label.trim().length > 0 ? label : DEFAULT_LABEL;
|
|
3908
3980
|
const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : resolvedLabel;
|
|
3909
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ jsx37(Tooltip4, { title: resolvedLabel, children: /* @__PURE__ */ jsx37(
|
|
3910
3982
|
AppSwitcherTriggerRoot,
|
|
3911
3983
|
__spreadProps(__spreadValues({}, props), {
|
|
3912
3984
|
ref,
|
|
@@ -3918,7 +3990,7 @@ var AppSwitcherTrigger = React14.forwardRef(
|
|
|
3918
3990
|
"aria-controls": open ? popoverId : void 0,
|
|
3919
3991
|
"aria-haspopup": "true",
|
|
3920
3992
|
"aria-expanded": open,
|
|
3921
|
-
children: /* @__PURE__ */
|
|
3993
|
+
children: /* @__PURE__ */ jsx37("span", { "aria-hidden": "true", style: { display: "inline-flex" }, children: icon || /* @__PURE__ */ jsx37(Grip, { size: 24 }) })
|
|
3922
3994
|
})
|
|
3923
3995
|
) });
|
|
3924
3996
|
}
|
|
@@ -3927,19 +3999,19 @@ AppSwitcherTrigger.displayName = "AppSwitcher.Trigger";
|
|
|
3927
3999
|
|
|
3928
4000
|
// src/components/AppSwitcher/AppSwitcherSection.tsx
|
|
3929
4001
|
import * as React16 from "react";
|
|
3930
|
-
import
|
|
4002
|
+
import Box15 from "@mui/material/Box";
|
|
3931
4003
|
import Skeleton from "@mui/material/Skeleton";
|
|
3932
|
-
import
|
|
4004
|
+
import Typography10 from "@mui/material/Typography";
|
|
3933
4005
|
import { styled as styled25 } from "@mui/material/styles";
|
|
3934
4006
|
|
|
3935
4007
|
// src/components/AppSwitcher/AppSwitcherApp.tsx
|
|
3936
4008
|
import * as React15 from "react";
|
|
3937
|
-
import
|
|
4009
|
+
import Box14 from "@mui/material/Box";
|
|
3938
4010
|
import Card2 from "@mui/material/Card";
|
|
3939
4011
|
import ButtonBase2 from "@mui/material/ButtonBase";
|
|
3940
4012
|
import CircularProgress from "@mui/material/CircularProgress";
|
|
3941
|
-
import
|
|
3942
|
-
import
|
|
4013
|
+
import Tooltip5 from "@mui/material/Tooltip";
|
|
4014
|
+
import Typography9 from "@mui/material/Typography";
|
|
3943
4015
|
import { styled as styled24 } from "@mui/material/styles";
|
|
3944
4016
|
|
|
3945
4017
|
// src/components/AppSwitcher/brand.ts
|
|
@@ -3969,7 +4041,7 @@ var isSafeAppUrl = (url) => {
|
|
|
3969
4041
|
|
|
3970
4042
|
// src/components/AppSwitcher/AppSwitcherApp.tsx
|
|
3971
4043
|
import { WSO2 } from "@wso2/oxygen-ui-icons-react";
|
|
3972
|
-
import { jsx as
|
|
4044
|
+
import { jsx as jsx38, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3973
4045
|
var DEFAULT_UNAVAILABLE_LABEL = "Coming soon";
|
|
3974
4046
|
var APP_CARD_HEIGHT = {
|
|
3975
4047
|
platform: 13,
|
|
@@ -4047,7 +4119,7 @@ var AppSwitcherAppRoot = styled24(Card2, {
|
|
|
4047
4119
|
}
|
|
4048
4120
|
});
|
|
4049
4121
|
});
|
|
4050
|
-
var AppSwitcherAppIcon = styled24(
|
|
4122
|
+
var AppSwitcherAppIcon = styled24(Box14, {
|
|
4051
4123
|
name: "MuiAppSwitcher",
|
|
4052
4124
|
slot: "AppIcon",
|
|
4053
4125
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4075,7 +4147,7 @@ var AppSwitcherAppIcon = styled24(Box13, {
|
|
|
4075
4147
|
}
|
|
4076
4148
|
});
|
|
4077
4149
|
});
|
|
4078
|
-
var AppSwitcherAppName = styled24(
|
|
4150
|
+
var AppSwitcherAppName = styled24(Typography9, {
|
|
4079
4151
|
name: "MuiAppSwitcher",
|
|
4080
4152
|
slot: "AppName",
|
|
4081
4153
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -4158,7 +4230,7 @@ var AppSwitcherApp = React15.forwardRef(
|
|
|
4158
4230
|
event.preventDefault();
|
|
4159
4231
|
}
|
|
4160
4232
|
};
|
|
4161
|
-
const card = /* @__PURE__ */
|
|
4233
|
+
const card = /* @__PURE__ */ jsxs12(
|
|
4162
4234
|
AppSwitcherAppRoot,
|
|
4163
4235
|
__spreadProps(__spreadValues({}, anchorProps), {
|
|
4164
4236
|
ref,
|
|
@@ -4171,28 +4243,28 @@ var AppSwitcherApp = React15.forwardRef(
|
|
|
4171
4243
|
"aria-busy": busy ? "true" : void 0,
|
|
4172
4244
|
"aria-current": current ? "page" : void 0,
|
|
4173
4245
|
children: [
|
|
4174
|
-
/* @__PURE__ */
|
|
4246
|
+
/* @__PURE__ */ jsx38(AppSwitcherAppIcon, { ownerState, "aria-hidden": "true", children: busy ? (
|
|
4175
4247
|
// Same size as the mark, so the card does not reflow.
|
|
4176
|
-
/* @__PURE__ */
|
|
4177
|
-
) : icon != null ? icon : /* @__PURE__ */
|
|
4178
|
-
/* @__PURE__ */
|
|
4248
|
+
/* @__PURE__ */ jsx38(CircularProgress, { color: "inherit", size: markSize, thickness: 5 })
|
|
4249
|
+
) : icon != null ? icon : /* @__PURE__ */ jsx38(WSO2, { size: markSize }) }),
|
|
4250
|
+
/* @__PURE__ */ jsx38(AppSwitcherAppName, { ownerState, children: name })
|
|
4179
4251
|
]
|
|
4180
4252
|
})
|
|
4181
4253
|
);
|
|
4182
|
-
return tooltip ? /* @__PURE__ */
|
|
4254
|
+
return tooltip ? /* @__PURE__ */ jsx38(Tooltip5, { title: tooltip, describeChild: true, children: card }) : card;
|
|
4183
4255
|
}
|
|
4184
4256
|
);
|
|
4185
4257
|
AppSwitcherApp.displayName = "AppSwitcher.App";
|
|
4186
4258
|
|
|
4187
4259
|
// src/components/AppSwitcher/AppSwitcherSection.tsx
|
|
4188
|
-
import { jsx as
|
|
4189
|
-
var AppSwitcherSectionRoot = styled25(
|
|
4260
|
+
import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4261
|
+
var AppSwitcherSectionRoot = styled25(Box15, {
|
|
4190
4262
|
name: "MuiAppSwitcher",
|
|
4191
4263
|
slot: "Section"
|
|
4192
4264
|
})(({ theme }) => ({
|
|
4193
4265
|
padding: theme.spacing(2)
|
|
4194
4266
|
}));
|
|
4195
|
-
var AppSwitcherSectionLabel = styled25(
|
|
4267
|
+
var AppSwitcherSectionLabel = styled25(Typography10, {
|
|
4196
4268
|
name: "MuiAppSwitcher",
|
|
4197
4269
|
slot: "SectionLabel"
|
|
4198
4270
|
})(({ theme }) => ({
|
|
@@ -4237,7 +4309,7 @@ var AppSwitcherAppSkeleton = styled25(Skeleton, {
|
|
|
4237
4309
|
var renderAppItems = (items, { missingUrlIsUnavailable }) => items.map((_a, index) => {
|
|
4238
4310
|
var _b = _a, { key, url } = _b, item = __objRest(_b, ["key", "url"]);
|
|
4239
4311
|
var _a2, _b2;
|
|
4240
|
-
return /* @__PURE__ */
|
|
4312
|
+
return /* @__PURE__ */ jsx39(
|
|
4241
4313
|
AppSwitcherApp,
|
|
4242
4314
|
__spreadProps(__spreadValues({}, item), {
|
|
4243
4315
|
url: url === void 0 && missingUrlIsUnavailable ? null : url
|
|
@@ -4307,7 +4379,7 @@ var AppSwitcherSection = ({
|
|
|
4307
4379
|
event.preventDefault();
|
|
4308
4380
|
cards[nextIndex].focus();
|
|
4309
4381
|
};
|
|
4310
|
-
const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */
|
|
4382
|
+
const content = loading ? Array.from({ length: loadingCount != null ? loadingCount : columns }, (_, index) => /* @__PURE__ */ jsx39(
|
|
4311
4383
|
AppSwitcherAppSkeleton,
|
|
4312
4384
|
{
|
|
4313
4385
|
ownerState: { tone },
|
|
@@ -4317,9 +4389,9 @@ var AppSwitcherSection = ({
|
|
|
4317
4389
|
},
|
|
4318
4390
|
index
|
|
4319
4391
|
)) : children != null ? children : apps && renderAppItems(apps, { missingUrlIsUnavailable: true });
|
|
4320
|
-
return /* @__PURE__ */
|
|
4321
|
-
label && /* @__PURE__ */
|
|
4322
|
-
/* @__PURE__ */
|
|
4392
|
+
return /* @__PURE__ */ jsxs13(AppSwitcherSectionRoot, { children: [
|
|
4393
|
+
label && /* @__PURE__ */ jsx39(AppSwitcherSectionLabel, { id: labelId, children: label }),
|
|
4394
|
+
/* @__PURE__ */ jsx39(
|
|
4323
4395
|
AppSwitcherSectionGrid,
|
|
4324
4396
|
{
|
|
4325
4397
|
ref: gridRef,
|
|
@@ -4330,7 +4402,7 @@ var AppSwitcherSection = ({
|
|
|
4330
4402
|
onKeyDown: handleKeyDown,
|
|
4331
4403
|
children: React16.Children.map(
|
|
4332
4404
|
content,
|
|
4333
|
-
(child) => React16.isValidElement(child) ? /* @__PURE__ */
|
|
4405
|
+
(child) => React16.isValidElement(child) ? /* @__PURE__ */ jsx39("li", { children: child }) : child
|
|
4334
4406
|
)
|
|
4335
4407
|
}
|
|
4336
4408
|
)
|
|
@@ -4340,10 +4412,10 @@ AppSwitcherSection.displayName = "AppSwitcher.Section";
|
|
|
4340
4412
|
|
|
4341
4413
|
// src/components/AppSwitcher/AppSwitcherFooter.tsx
|
|
4342
4414
|
import * as React17 from "react";
|
|
4343
|
-
import
|
|
4415
|
+
import Box16 from "@mui/material/Box";
|
|
4344
4416
|
import { alpha, styled as styled26 } from "@mui/material/styles";
|
|
4345
|
-
import { jsx as
|
|
4346
|
-
var AppSwitcherFooterRoot = styled26(
|
|
4417
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4418
|
+
var AppSwitcherFooterRoot = styled26(Box16, {
|
|
4347
4419
|
name: "MuiAppSwitcher",
|
|
4348
4420
|
slot: "Footer"
|
|
4349
4421
|
})(({ theme }) => ({
|
|
@@ -4365,7 +4437,7 @@ var AppSwitcherFooter = ({
|
|
|
4365
4437
|
if (!loading && React17.Children.toArray(cards).length === 0) {
|
|
4366
4438
|
return null;
|
|
4367
4439
|
}
|
|
4368
|
-
return /* @__PURE__ */
|
|
4440
|
+
return /* @__PURE__ */ jsx40(AppSwitcherFooterRoot, { children: /* @__PURE__ */ jsx40(AppSwitcherFooterContext.Provider, { value: true, children: /* @__PURE__ */ jsx40(
|
|
4369
4441
|
AppSwitcherSection,
|
|
4370
4442
|
{
|
|
4371
4443
|
label,
|
|
@@ -4379,7 +4451,7 @@ var AppSwitcherFooter = ({
|
|
|
4379
4451
|
AppSwitcherFooter.displayName = "AppSwitcher.Footer";
|
|
4380
4452
|
|
|
4381
4453
|
// src/components/AppSwitcher/AppSwitcher.tsx
|
|
4382
|
-
import { jsx as
|
|
4454
|
+
import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4383
4455
|
var AppSwitcherRoot = styled27(Popover2, {
|
|
4384
4456
|
name: "MuiAppSwitcher",
|
|
4385
4457
|
slot: "Root",
|
|
@@ -4431,9 +4503,9 @@ var AppSwitcher = ({
|
|
|
4431
4503
|
(child) => React18.isValidElement(child) && child.type === AppSwitcherTrigger
|
|
4432
4504
|
);
|
|
4433
4505
|
const popoverChildren = childrenArray.filter((child) => child !== triggerChild);
|
|
4434
|
-
return /* @__PURE__ */
|
|
4506
|
+
return /* @__PURE__ */ jsxs14(AppSwitcherContext.Provider, { value: contextValue, children: [
|
|
4435
4507
|
triggerChild,
|
|
4436
|
-
/* @__PURE__ */
|
|
4508
|
+
/* @__PURE__ */ jsx41(
|
|
4437
4509
|
AppSwitcherRoot,
|
|
4438
4510
|
{
|
|
4439
4511
|
id: popoverId,
|
|
@@ -4458,7 +4530,7 @@ AppSwitcher.displayName = "AppSwitcher";
|
|
|
4458
4530
|
|
|
4459
4531
|
// src/components/Sidebar/Sidebar.tsx
|
|
4460
4532
|
import * as React26 from "react";
|
|
4461
|
-
import
|
|
4533
|
+
import Box22 from "@mui/material/Box";
|
|
4462
4534
|
import { styled as styled40 } from "@mui/material/styles";
|
|
4463
4535
|
|
|
4464
4536
|
// src/components/Sidebar/context.ts
|
|
@@ -4474,11 +4546,11 @@ var useSidebar = () => {
|
|
|
4474
4546
|
|
|
4475
4547
|
// src/components/Sidebar/SidebarNav.tsx
|
|
4476
4548
|
import * as React20 from "react";
|
|
4477
|
-
import
|
|
4549
|
+
import Box17 from "@mui/material/Box";
|
|
4478
4550
|
import Divider3 from "@mui/material/Divider";
|
|
4479
4551
|
import { styled as styled28 } from "@mui/material/styles";
|
|
4480
|
-
import { jsx as
|
|
4481
|
-
var SidebarNavRoot = styled28(
|
|
4552
|
+
import { jsx as jsx42, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4553
|
+
var SidebarNavRoot = styled28(Box17, {
|
|
4482
4554
|
name: "MuiSidebar",
|
|
4483
4555
|
slot: "Nav"
|
|
4484
4556
|
})(({ theme }) => ({
|
|
@@ -4514,23 +4586,23 @@ var SidebarNav = ({
|
|
|
4514
4586
|
}) => {
|
|
4515
4587
|
const { collapsed } = useSidebar();
|
|
4516
4588
|
const childArray = React20.Children.toArray(children);
|
|
4517
|
-
return /* @__PURE__ */
|
|
4518
|
-
index > 0 && showDividers && !collapsed && /* @__PURE__ */
|
|
4589
|
+
return /* @__PURE__ */ jsx42(SidebarNavRoot, { component: "nav", sx, children: childArray.map((child, index) => /* @__PURE__ */ jsxs15(React20.Fragment, { children: [
|
|
4590
|
+
index > 0 && showDividers && !collapsed && /* @__PURE__ */ jsx42(SidebarNavDivider, {}),
|
|
4519
4591
|
child
|
|
4520
4592
|
] }, index)) });
|
|
4521
4593
|
};
|
|
4522
4594
|
|
|
4523
4595
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
4524
4596
|
import * as React21 from "react";
|
|
4525
|
-
import
|
|
4597
|
+
import Box18 from "@mui/material/Box";
|
|
4526
4598
|
import List from "@mui/material/List";
|
|
4527
4599
|
import { styled as styled30 } from "@mui/material/styles";
|
|
4528
4600
|
|
|
4529
4601
|
// src/components/Sidebar/SidebarCategoryLabel.tsx
|
|
4530
|
-
import
|
|
4602
|
+
import Typography11 from "@mui/material/Typography";
|
|
4531
4603
|
import { styled as styled29 } from "@mui/material/styles";
|
|
4532
|
-
import { jsx as
|
|
4533
|
-
var SidebarCategoryLabelRoot = styled29(
|
|
4604
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4605
|
+
var SidebarCategoryLabelRoot = styled29(Typography11, {
|
|
4534
4606
|
name: "MuiSidebar",
|
|
4535
4607
|
slot: "CategoryLabel",
|
|
4536
4608
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -4555,13 +4627,13 @@ var SidebarCategoryLabelRoot = styled29(Typography10, {
|
|
|
4555
4627
|
}));
|
|
4556
4628
|
var SidebarCategoryLabel = ({ children, sx }) => {
|
|
4557
4629
|
const { collapsed } = useSidebar();
|
|
4558
|
-
return /* @__PURE__ */
|
|
4630
|
+
return /* @__PURE__ */ jsx43(SidebarCategoryLabelRoot, { variant: "caption", collapsed, sx, children });
|
|
4559
4631
|
};
|
|
4560
4632
|
SidebarCategoryLabel.displayName = "SidebarCategoryLabel";
|
|
4561
4633
|
|
|
4562
4634
|
// src/components/Sidebar/SidebarCategory.tsx
|
|
4563
|
-
import { jsx as
|
|
4564
|
-
var SidebarCategoryRoot = styled30(
|
|
4635
|
+
import { jsx as jsx44, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4636
|
+
var SidebarCategoryRoot = styled30(Box18, {
|
|
4565
4637
|
name: "MuiSidebar",
|
|
4566
4638
|
slot: "Category"
|
|
4567
4639
|
})(({ theme }) => ({
|
|
@@ -4590,16 +4662,16 @@ var SidebarCategory = ({
|
|
|
4590
4662
|
sx
|
|
4591
4663
|
}) => {
|
|
4592
4664
|
const { labelChild, otherChildren } = separateChildren(children);
|
|
4593
|
-
return /* @__PURE__ */
|
|
4665
|
+
return /* @__PURE__ */ jsxs16(SidebarCategoryRoot, { sx, children: [
|
|
4594
4666
|
labelChild,
|
|
4595
|
-
/* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ jsx44(List, { disablePadding: true, children: otherChildren })
|
|
4596
4668
|
] });
|
|
4597
4669
|
};
|
|
4598
4670
|
SidebarCategory.displayName = "SidebarCategory";
|
|
4599
4671
|
|
|
4600
4672
|
// src/components/Sidebar/SidebarItem.tsx
|
|
4601
4673
|
import * as React24 from "react";
|
|
4602
|
-
import
|
|
4674
|
+
import Box19 from "@mui/material/Box";
|
|
4603
4675
|
import List2 from "@mui/material/List";
|
|
4604
4676
|
import ListItem from "@mui/material/ListItem";
|
|
4605
4677
|
import ListItemButton from "@mui/material/ListItemButton";
|
|
@@ -4608,14 +4680,14 @@ import ListItemText2 from "@mui/material/ListItemText";
|
|
|
4608
4680
|
import MenuItem4 from "@mui/material/MenuItem";
|
|
4609
4681
|
import MenuList from "@mui/material/MenuList";
|
|
4610
4682
|
import Collapse from "@mui/material/Collapse";
|
|
4611
|
-
import
|
|
4683
|
+
import Tooltip6 from "@mui/material/Tooltip";
|
|
4612
4684
|
import Popover3 from "@mui/material/Popover";
|
|
4613
4685
|
import { styled as styled34 } from "@mui/material/styles";
|
|
4614
4686
|
import { ChevronDown as ChevronDown2, ChevronUp } from "@wso2/oxygen-ui-icons-react";
|
|
4615
4687
|
|
|
4616
4688
|
// src/components/Sidebar/SidebarItemContext.tsx
|
|
4617
4689
|
import * as React22 from "react";
|
|
4618
|
-
import { jsx as
|
|
4690
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4619
4691
|
var SidebarItemContext = React22.createContext(null);
|
|
4620
4692
|
var useSidebarItemContext = () => {
|
|
4621
4693
|
const context = React22.useContext(SidebarItemContext);
|
|
@@ -4627,14 +4699,14 @@ var useSidebarItemContext = () => {
|
|
|
4627
4699
|
return context;
|
|
4628
4700
|
};
|
|
4629
4701
|
var SidebarItemProvider = ({ value, children }) => {
|
|
4630
|
-
return /* @__PURE__ */
|
|
4702
|
+
return /* @__PURE__ */ jsx45(SidebarItemContext.Provider, { value, children });
|
|
4631
4703
|
};
|
|
4632
4704
|
|
|
4633
4705
|
// src/components/Sidebar/SidebarItemIcon.tsx
|
|
4634
4706
|
import * as React23 from "react";
|
|
4635
4707
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
4636
4708
|
import { styled as styled31 } from "@mui/material/styles";
|
|
4637
|
-
import { jsx as
|
|
4709
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4638
4710
|
var SidebarItemIconRoot = styled31(ListItemIcon, {
|
|
4639
4711
|
name: "MuiSidebar",
|
|
4640
4712
|
slot: "ItemIcon",
|
|
@@ -4655,7 +4727,7 @@ var SidebarItemIcon = ({
|
|
|
4655
4727
|
const iconWithSize = React23.isValidElement(children) ? React23.cloneElement(children, __spreadProps(__spreadValues({}, children.props), {
|
|
4656
4728
|
size: (_a = children.props.size) != null ? _a : 20
|
|
4657
4729
|
})) : children;
|
|
4658
|
-
return /* @__PURE__ */
|
|
4730
|
+
return /* @__PURE__ */ jsx46(
|
|
4659
4731
|
SidebarItemIconRoot,
|
|
4660
4732
|
{
|
|
4661
4733
|
ownerState: { collapsed, isActive },
|
|
@@ -4669,7 +4741,7 @@ SidebarItemIcon.displayName = "SidebarItemIcon";
|
|
|
4669
4741
|
// src/components/Sidebar/SidebarItemLabel.tsx
|
|
4670
4742
|
import ListItemText from "@mui/material/ListItemText";
|
|
4671
4743
|
import { styled as styled32 } from "@mui/material/styles";
|
|
4672
|
-
import { jsx as
|
|
4744
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4673
4745
|
var SidebarItemLabelRoot = styled32(ListItemText, {
|
|
4674
4746
|
name: "MuiSidebar",
|
|
4675
4747
|
slot: "ItemLabel",
|
|
@@ -4695,14 +4767,14 @@ var SidebarItemLabel = ({
|
|
|
4695
4767
|
}) => {
|
|
4696
4768
|
const { collapsed } = useSidebar();
|
|
4697
4769
|
const { isActive } = useSidebarItemContext();
|
|
4698
|
-
return /* @__PURE__ */
|
|
4770
|
+
return /* @__PURE__ */ jsx47(SidebarItemLabelRoot, { primary: children, ownerState: { isActive, collapsed }, sx });
|
|
4699
4771
|
};
|
|
4700
4772
|
SidebarItemLabel.displayName = "SidebarItemLabel";
|
|
4701
4773
|
|
|
4702
4774
|
// src/components/Sidebar/SidebarItemBadge.tsx
|
|
4703
4775
|
import Chip from "@mui/material/Chip";
|
|
4704
4776
|
import { styled as styled33 } from "@mui/material/styles";
|
|
4705
|
-
import { jsx as
|
|
4777
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
4706
4778
|
var SidebarItemBadgeRoot = styled33(Chip, {
|
|
4707
4779
|
name: "MuiSidebar",
|
|
4708
4780
|
slot: "ItemBadge"
|
|
@@ -4720,12 +4792,12 @@ var SidebarItemBadge = ({
|
|
|
4720
4792
|
if (collapsed) {
|
|
4721
4793
|
return null;
|
|
4722
4794
|
}
|
|
4723
|
-
return /* @__PURE__ */
|
|
4795
|
+
return /* @__PURE__ */ jsx48(SidebarItemBadgeRoot, { label: children, size: "small", color, sx });
|
|
4724
4796
|
};
|
|
4725
4797
|
SidebarItemBadge.displayName = "SidebarItemBadge";
|
|
4726
4798
|
|
|
4727
4799
|
// src/components/Sidebar/SidebarItem.tsx
|
|
4728
|
-
import { Fragment as
|
|
4800
|
+
import { Fragment as Fragment6, jsx as jsx49, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4729
4801
|
var SidebarItemRoot = styled34(ListItem, {
|
|
4730
4802
|
name: "MuiSidebar",
|
|
4731
4803
|
slot: "Item"
|
|
@@ -4757,7 +4829,7 @@ var SidebarItemButton = styled34(ListItemButton, {
|
|
|
4757
4829
|
}
|
|
4758
4830
|
}
|
|
4759
4831
|
}));
|
|
4760
|
-
var SidebarItemChevron = styled34(
|
|
4832
|
+
var SidebarItemChevron = styled34(Box19, {
|
|
4761
4833
|
name: "MuiSidebar",
|
|
4762
4834
|
slot: "ItemChevron"
|
|
4763
4835
|
})({
|
|
@@ -4937,7 +5009,7 @@ var SidebarItem = ({
|
|
|
4937
5009
|
const tooltipLabel = getTooltipLabel(children);
|
|
4938
5010
|
const ownerState = { collapsed, depth };
|
|
4939
5011
|
const shouldShowSelected = isActive && !hasNestedItems || collapsed && hasActiveChild;
|
|
4940
|
-
const buttonContent = /* @__PURE__ */
|
|
5012
|
+
const buttonContent = /* @__PURE__ */ jsx49(
|
|
4941
5013
|
SidebarItemButton,
|
|
4942
5014
|
{
|
|
4943
5015
|
selected: shouldShowSelected,
|
|
@@ -4948,21 +5020,21 @@ var SidebarItem = ({
|
|
|
4948
5020
|
"aria-expanded": hasNestedItems ? collapsed ? popoverOpen : isExpanded : void 0,
|
|
4949
5021
|
"aria-haspopup": collapsed && hasNestedItems ? "menu" : void 0,
|
|
4950
5022
|
"aria-controls": popoverOpen ? popoverId : void 0,
|
|
4951
|
-
children: /* @__PURE__ */
|
|
5023
|
+
children: /* @__PURE__ */ jsxs17(SidebarItemProvider, { value: contextValue, children: [
|
|
4952
5024
|
composableChildren,
|
|
4953
|
-
!collapsed && hasNestedItems && /* @__PURE__ */
|
|
4954
|
-
!collapsed && !hasNestedItems && /* @__PURE__ */
|
|
5025
|
+
!collapsed && hasNestedItems && /* @__PURE__ */ jsx49(SidebarItemChevron, { "aria-hidden": "true", children: isExpanded ? /* @__PURE__ */ jsx49(ChevronUp, { size: 16 }) : /* @__PURE__ */ jsx49(ChevronDown2, { size: 16 }) }),
|
|
5026
|
+
!collapsed && !hasNestedItems && /* @__PURE__ */ jsx49(Box19, { sx: { ml: "auto", width: 16, pl: 1 } })
|
|
4955
5027
|
] })
|
|
4956
5028
|
}
|
|
4957
5029
|
);
|
|
4958
|
-
const wrappedContent = link ? /* @__PURE__ */
|
|
5030
|
+
const wrappedContent = link ? /* @__PURE__ */ jsx49(Fragment6, { children: React24.cloneElement(link, {}, buttonContent) }) : buttonContent;
|
|
4959
5031
|
const collapsedWithNested = collapsed && hasNestedItems;
|
|
4960
5032
|
const handlePopoverItemClick = (itemId) => {
|
|
4961
5033
|
onSelect == null ? void 0 : onSelect(itemId);
|
|
4962
5034
|
closePopover();
|
|
4963
5035
|
};
|
|
4964
|
-
return /* @__PURE__ */
|
|
4965
|
-
/* @__PURE__ */
|
|
5036
|
+
return /* @__PURE__ */ jsxs17(Fragment6, { children: [
|
|
5037
|
+
/* @__PURE__ */ jsx49(
|
|
4966
5038
|
SidebarItemRoot,
|
|
4967
5039
|
{
|
|
4968
5040
|
disablePadding: true,
|
|
@@ -4970,11 +5042,11 @@ var SidebarItem = ({
|
|
|
4970
5042
|
onMouseLeave: handleMouseLeave,
|
|
4971
5043
|
children: collapsed ? (
|
|
4972
5044
|
// When collapsed: show tooltip only for items without nested children
|
|
4973
|
-
collapsedWithNested ? wrappedContent : /* @__PURE__ */
|
|
5045
|
+
collapsedWithNested ? wrappedContent : /* @__PURE__ */ jsx49(Tooltip6, { title: tooltipLabel, placement: "right", arrow: true, children: wrappedContent })
|
|
4974
5046
|
) : wrappedContent
|
|
4975
5047
|
}
|
|
4976
5048
|
),
|
|
4977
|
-
collapsedWithNested && /* @__PURE__ */
|
|
5049
|
+
collapsedWithNested && /* @__PURE__ */ jsx49(
|
|
4978
5050
|
SidebarItemPopover,
|
|
4979
5051
|
{
|
|
4980
5052
|
open: popoverOpen,
|
|
@@ -4991,7 +5063,7 @@ var SidebarItem = ({
|
|
|
4991
5063
|
onMouseLeave: handleMouseLeave
|
|
4992
5064
|
}
|
|
4993
5065
|
},
|
|
4994
|
-
children: /* @__PURE__ */
|
|
5066
|
+
children: /* @__PURE__ */ jsx49(
|
|
4995
5067
|
SidebarItemPopoverList,
|
|
4996
5068
|
{
|
|
4997
5069
|
id: popoverId,
|
|
@@ -5002,14 +5074,14 @@ var SidebarItem = ({
|
|
|
5002
5074
|
const childProps = child.props;
|
|
5003
5075
|
const { icon, label } = extractItemContent(childProps.children);
|
|
5004
5076
|
const isItemActive = activeItem === childProps.id;
|
|
5005
|
-
return /* @__PURE__ */
|
|
5077
|
+
return /* @__PURE__ */ jsxs17(
|
|
5006
5078
|
SidebarItemPopoverButton,
|
|
5007
5079
|
{
|
|
5008
5080
|
selected: isItemActive,
|
|
5009
5081
|
onClick: () => handlePopoverItemClick(childProps.id),
|
|
5010
5082
|
children: [
|
|
5011
|
-
icon && /* @__PURE__ */
|
|
5012
|
-
/* @__PURE__ */
|
|
5083
|
+
icon && /* @__PURE__ */ jsx49(ListItemIcon2, { sx: { minWidth: "auto" }, children: icon }),
|
|
5084
|
+
/* @__PURE__ */ jsx49(ListItemText2, { primary: label })
|
|
5013
5085
|
]
|
|
5014
5086
|
},
|
|
5015
5087
|
childProps.id || index
|
|
@@ -5021,7 +5093,7 @@ var SidebarItem = ({
|
|
|
5021
5093
|
)
|
|
5022
5094
|
}
|
|
5023
5095
|
),
|
|
5024
|
-
hasNestedItems && !collapsed && /* @__PURE__ */
|
|
5096
|
+
hasNestedItems && !collapsed && /* @__PURE__ */ jsx49(Collapse, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ jsx49(List2, { disablePadding: true, children: nestedItems.map((child, index) => {
|
|
5025
5097
|
if (React24.isValidElement(child)) {
|
|
5026
5098
|
return React24.cloneElement(child, {
|
|
5027
5099
|
key: child.key || index,
|
|
@@ -5035,11 +5107,11 @@ var SidebarItem = ({
|
|
|
5035
5107
|
SidebarItem.displayName = "SidebarItem";
|
|
5036
5108
|
|
|
5037
5109
|
// src/components/Sidebar/SidebarFooter.tsx
|
|
5038
|
-
import
|
|
5110
|
+
import Box20 from "@mui/material/Box";
|
|
5039
5111
|
import Divider4 from "@mui/material/Divider";
|
|
5040
5112
|
import { styled as styled35 } from "@mui/material/styles";
|
|
5041
|
-
import { Fragment as
|
|
5042
|
-
var SidebarFooterRoot = styled35(
|
|
5113
|
+
import { Fragment as Fragment7, jsx as jsx50, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5114
|
+
var SidebarFooterRoot = styled35(Box20, {
|
|
5043
5115
|
name: "MuiSidebar",
|
|
5044
5116
|
slot: "Footer"
|
|
5045
5117
|
})(({ theme }) => ({
|
|
@@ -5051,24 +5123,24 @@ var SidebarFooter = ({
|
|
|
5051
5123
|
showDivider = true,
|
|
5052
5124
|
sx
|
|
5053
5125
|
}) => {
|
|
5054
|
-
return /* @__PURE__ */
|
|
5055
|
-
showDivider && /* @__PURE__ */
|
|
5056
|
-
/* @__PURE__ */
|
|
5126
|
+
return /* @__PURE__ */ jsxs18(Fragment7, { children: [
|
|
5127
|
+
showDivider && /* @__PURE__ */ jsx50(Divider4, {}),
|
|
5128
|
+
/* @__PURE__ */ jsx50(SidebarFooterRoot, { sx, children })
|
|
5057
5129
|
] });
|
|
5058
5130
|
};
|
|
5059
5131
|
|
|
5060
5132
|
// src/components/Sidebar/SidebarUser.tsx
|
|
5061
5133
|
import * as React25 from "react";
|
|
5062
|
-
import
|
|
5134
|
+
import Box21 from "@mui/material/Box";
|
|
5063
5135
|
import ListItemButton2 from "@mui/material/ListItemButton";
|
|
5064
|
-
import
|
|
5136
|
+
import Tooltip7 from "@mui/material/Tooltip";
|
|
5065
5137
|
import Divider5 from "@mui/material/Divider";
|
|
5066
5138
|
import { styled as styled39 } from "@mui/material/styles";
|
|
5067
5139
|
|
|
5068
5140
|
// src/components/Sidebar/SidebarUserAvatar.tsx
|
|
5069
5141
|
import Avatar2 from "@mui/material/Avatar";
|
|
5070
5142
|
import { styled as styled36 } from "@mui/material/styles";
|
|
5071
|
-
import { jsx as
|
|
5143
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5072
5144
|
var SidebarUserAvatarRoot = styled36(Avatar2, {
|
|
5073
5145
|
name: "MuiSidebar",
|
|
5074
5146
|
slot: "UserAvatar"
|
|
@@ -5085,15 +5157,15 @@ var SidebarUserAvatar = ({
|
|
|
5085
5157
|
alt,
|
|
5086
5158
|
sx
|
|
5087
5159
|
}) => {
|
|
5088
|
-
return /* @__PURE__ */
|
|
5160
|
+
return /* @__PURE__ */ jsx51(SidebarUserAvatarRoot, { src, alt, sx, children });
|
|
5089
5161
|
};
|
|
5090
5162
|
SidebarUserAvatar.displayName = "SidebarUserAvatar";
|
|
5091
5163
|
|
|
5092
5164
|
// src/components/Sidebar/SidebarUserName.tsx
|
|
5093
|
-
import
|
|
5165
|
+
import Typography12 from "@mui/material/Typography";
|
|
5094
5166
|
import { styled as styled37 } from "@mui/material/styles";
|
|
5095
|
-
import { jsx as
|
|
5096
|
-
var SidebarUserNameRoot = styled37(
|
|
5167
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
5168
|
+
var SidebarUserNameRoot = styled37(Typography12, {
|
|
5097
5169
|
name: "MuiSidebar",
|
|
5098
5170
|
slot: "UserName"
|
|
5099
5171
|
})({
|
|
@@ -5110,15 +5182,15 @@ var SidebarUserName = ({
|
|
|
5110
5182
|
if (collapsed) {
|
|
5111
5183
|
return null;
|
|
5112
5184
|
}
|
|
5113
|
-
return /* @__PURE__ */
|
|
5185
|
+
return /* @__PURE__ */ jsx52(SidebarUserNameRoot, { variant: "body2", sx, children });
|
|
5114
5186
|
};
|
|
5115
5187
|
SidebarUserName.displayName = "SidebarUserName";
|
|
5116
5188
|
|
|
5117
5189
|
// src/components/Sidebar/SidebarUserEmail.tsx
|
|
5118
|
-
import
|
|
5190
|
+
import Typography13 from "@mui/material/Typography";
|
|
5119
5191
|
import { styled as styled38 } from "@mui/material/styles";
|
|
5120
|
-
import { jsx as
|
|
5121
|
-
var SidebarUserEmailRoot = styled38(
|
|
5192
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5193
|
+
var SidebarUserEmailRoot = styled38(Typography13, {
|
|
5122
5194
|
name: "MuiSidebar",
|
|
5123
5195
|
slot: "UserEmail"
|
|
5124
5196
|
})(({ theme }) => ({
|
|
@@ -5136,13 +5208,13 @@ var SidebarUserEmail = ({
|
|
|
5136
5208
|
if (collapsed) {
|
|
5137
5209
|
return null;
|
|
5138
5210
|
}
|
|
5139
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */ jsx53(SidebarUserEmailRoot, { variant: "caption", sx, children });
|
|
5140
5212
|
};
|
|
5141
5213
|
SidebarUserEmail.displayName = "SidebarUserEmail";
|
|
5142
5214
|
|
|
5143
5215
|
// src/components/Sidebar/SidebarUser.tsx
|
|
5144
|
-
import { Fragment as
|
|
5145
|
-
var SidebarUserRoot = styled39(
|
|
5216
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5217
|
+
var SidebarUserRoot = styled39(Box21, {
|
|
5146
5218
|
name: "MuiSidebar",
|
|
5147
5219
|
slot: "User"
|
|
5148
5220
|
})(({ theme }) => ({
|
|
@@ -5165,7 +5237,7 @@ var SidebarUserButton = styled39(ListItemButton2, {
|
|
|
5165
5237
|
duration: ownerState.collapsed ? theme.transitions.duration.leavingScreen : theme.transitions.duration.enteringScreen
|
|
5166
5238
|
})
|
|
5167
5239
|
}));
|
|
5168
|
-
var SidebarUserTextContainer = styled39(
|
|
5240
|
+
var SidebarUserTextContainer = styled39(Box21, {
|
|
5169
5241
|
name: "MuiSidebar",
|
|
5170
5242
|
slot: "UserTextContainer",
|
|
5171
5243
|
shouldForwardProp: (prop) => prop !== "collapsed"
|
|
@@ -5220,22 +5292,22 @@ var SidebarUser = ({
|
|
|
5220
5292
|
const { avatarChild, textChildren } = separateChildren3(children);
|
|
5221
5293
|
const tooltipText = getTooltipText(children);
|
|
5222
5294
|
const ownerState = { collapsed };
|
|
5223
|
-
const content = /* @__PURE__ */
|
|
5295
|
+
const content = /* @__PURE__ */ jsxs19(SidebarUserButton, { onClick, ownerState, children: [
|
|
5224
5296
|
avatarChild,
|
|
5225
|
-
/* @__PURE__ */
|
|
5297
|
+
/* @__PURE__ */ jsx54(SidebarUserTextContainer, { collapsed, children: textChildren })
|
|
5226
5298
|
] });
|
|
5227
|
-
return /* @__PURE__ */
|
|
5228
|
-
showDivider && /* @__PURE__ */
|
|
5229
|
-
/* @__PURE__ */
|
|
5299
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
5300
|
+
showDivider && /* @__PURE__ */ jsx54(Divider5, {}),
|
|
5301
|
+
/* @__PURE__ */ jsx54(SidebarUserRoot, { sx, children: collapsed ? /* @__PURE__ */ jsx54(Tooltip7, { title: tooltipText, placement: "right", arrow: true, children: content }) : content })
|
|
5230
5302
|
] });
|
|
5231
5303
|
};
|
|
5232
5304
|
SidebarUser.displayName = "SidebarUser";
|
|
5233
5305
|
|
|
5234
5306
|
// src/components/Sidebar/Sidebar.tsx
|
|
5235
|
-
import { jsx as
|
|
5307
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
5236
5308
|
var SIDEBAR_WIDTH = 250;
|
|
5237
5309
|
var COLLAPSED_SIDEBAR_WIDTH = 64;
|
|
5238
|
-
var SidebarRootStyled = styled40(
|
|
5310
|
+
var SidebarRootStyled = styled40(Box22, {
|
|
5239
5311
|
name: "MuiSidebar",
|
|
5240
5312
|
slot: "Root",
|
|
5241
5313
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5295,7 +5367,7 @@ var Sidebar = ({
|
|
|
5295
5367
|
[collapsed, activeItem, expandedMenus, onSelect, onToggleExpand]
|
|
5296
5368
|
);
|
|
5297
5369
|
const ownerState = { collapsed, width, collapsedWidth };
|
|
5298
|
-
return /* @__PURE__ */
|
|
5370
|
+
return /* @__PURE__ */ jsx55(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx55(SidebarRootStyled, { component: "aside", ownerState, sx, children }) });
|
|
5299
5371
|
};
|
|
5300
5372
|
Sidebar.Nav = SidebarNav;
|
|
5301
5373
|
Sidebar.Category = SidebarCategory;
|
|
@@ -5313,7 +5385,7 @@ Sidebar.displayName = "Sidebar";
|
|
|
5313
5385
|
|
|
5314
5386
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
5315
5387
|
import * as React32 from "react";
|
|
5316
|
-
import
|
|
5388
|
+
import Box31 from "@mui/material/Box";
|
|
5317
5389
|
import Drawer from "@mui/material/Drawer";
|
|
5318
5390
|
import { styled as styled56 } from "@mui/material/styles";
|
|
5319
5391
|
import { visuallyHidden as visuallyHidden3 } from "@mui/utils";
|
|
@@ -5333,10 +5405,10 @@ var useNotificationPanel = () => {
|
|
|
5333
5405
|
|
|
5334
5406
|
// src/components/NotificationPanel/NotificationHeader.tsx
|
|
5335
5407
|
import * as React28 from "react";
|
|
5336
|
-
import
|
|
5408
|
+
import Box23 from "@mui/material/Box";
|
|
5337
5409
|
import { styled as styled41 } from "@mui/material/styles";
|
|
5338
|
-
import { jsx as
|
|
5339
|
-
var NotificationHeaderRoot = styled41(
|
|
5410
|
+
import { jsx as jsx56, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5411
|
+
var NotificationHeaderRoot = styled41(Box23, {
|
|
5340
5412
|
name: "MuiNotificationPanel",
|
|
5341
5413
|
slot: "Header"
|
|
5342
5414
|
})(({ theme }) => ({
|
|
@@ -5346,7 +5418,7 @@ var NotificationHeaderRoot = styled41(Box22, {
|
|
|
5346
5418
|
padding: theme.spacing(2),
|
|
5347
5419
|
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
5348
5420
|
}));
|
|
5349
|
-
var NotificationHeaderContent = styled41(
|
|
5421
|
+
var NotificationHeaderContent = styled41(Box23, {
|
|
5350
5422
|
name: "MuiNotificationPanel",
|
|
5351
5423
|
slot: "HeaderContent"
|
|
5352
5424
|
})(({ theme }) => ({
|
|
@@ -5377,18 +5449,18 @@ var NotificationHeader = ({
|
|
|
5377
5449
|
sx
|
|
5378
5450
|
}) => {
|
|
5379
5451
|
const { leftChildren, closeChild } = separateChildren4(children);
|
|
5380
|
-
return /* @__PURE__ */
|
|
5381
|
-
/* @__PURE__ */
|
|
5452
|
+
return /* @__PURE__ */ jsxs20(NotificationHeaderRoot, { sx, children: [
|
|
5453
|
+
/* @__PURE__ */ jsx56(NotificationHeaderContent, { children: leftChildren }),
|
|
5382
5454
|
closeChild
|
|
5383
5455
|
] });
|
|
5384
5456
|
};
|
|
5385
5457
|
NotificationHeader.displayName = "NotificationHeader";
|
|
5386
5458
|
|
|
5387
5459
|
// src/components/NotificationPanel/NotificationHeaderIcon.tsx
|
|
5388
|
-
import
|
|
5460
|
+
import Box24 from "@mui/material/Box";
|
|
5389
5461
|
import { styled as styled42 } from "@mui/material/styles";
|
|
5390
|
-
import { jsx as
|
|
5391
|
-
var NotificationHeaderIconRoot = styled42(
|
|
5462
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
5463
|
+
var NotificationHeaderIconRoot = styled42(Box24, {
|
|
5392
5464
|
name: "MuiNotificationPanel",
|
|
5393
5465
|
slot: "HeaderIcon"
|
|
5394
5466
|
})({
|
|
@@ -5399,15 +5471,15 @@ var NotificationHeaderIcon = ({
|
|
|
5399
5471
|
children,
|
|
5400
5472
|
sx
|
|
5401
5473
|
}) => {
|
|
5402
|
-
return /* @__PURE__ */
|
|
5474
|
+
return /* @__PURE__ */ jsx57(NotificationHeaderIconRoot, { sx, children });
|
|
5403
5475
|
};
|
|
5404
5476
|
NotificationHeaderIcon.displayName = "NotificationHeaderIcon";
|
|
5405
5477
|
|
|
5406
5478
|
// src/components/NotificationPanel/NotificationHeaderTitle.tsx
|
|
5407
|
-
import
|
|
5479
|
+
import Typography14 from "@mui/material/Typography";
|
|
5408
5480
|
import { styled as styled43 } from "@mui/material/styles";
|
|
5409
|
-
import { jsx as
|
|
5410
|
-
var NotificationHeaderTitleRoot = styled43(
|
|
5481
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5482
|
+
var NotificationHeaderTitleRoot = styled43(Typography14, {
|
|
5411
5483
|
name: "MuiNotificationPanel",
|
|
5412
5484
|
slot: "HeaderTitle"
|
|
5413
5485
|
})({
|
|
@@ -5417,14 +5489,14 @@ var NotificationHeaderTitle = ({
|
|
|
5417
5489
|
children,
|
|
5418
5490
|
sx
|
|
5419
5491
|
}) => {
|
|
5420
|
-
return /* @__PURE__ */
|
|
5492
|
+
return /* @__PURE__ */ jsx58(NotificationHeaderTitleRoot, { variant: "h6", sx, children });
|
|
5421
5493
|
};
|
|
5422
5494
|
NotificationHeaderTitle.displayName = "NotificationHeaderTitle";
|
|
5423
5495
|
|
|
5424
5496
|
// src/components/NotificationPanel/NotificationHeaderBadge.tsx
|
|
5425
5497
|
import Chip2 from "@mui/material/Chip";
|
|
5426
5498
|
import { styled as styled44 } from "@mui/material/styles";
|
|
5427
|
-
import { jsx as
|
|
5499
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
5428
5500
|
var NotificationHeaderBadgeRoot = styled44(Chip2, {
|
|
5429
5501
|
name: "MuiNotificationPanel",
|
|
5430
5502
|
slot: "HeaderBadge"
|
|
@@ -5440,7 +5512,7 @@ var NotificationHeaderBadge = ({
|
|
|
5440
5512
|
if (!children || children === 0 || children === "0") {
|
|
5441
5513
|
return null;
|
|
5442
5514
|
}
|
|
5443
|
-
return /* @__PURE__ */
|
|
5515
|
+
return /* @__PURE__ */ jsx59(NotificationHeaderBadgeRoot, { label: children, size: "small", color, sx });
|
|
5444
5516
|
};
|
|
5445
5517
|
NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
5446
5518
|
|
|
@@ -5448,7 +5520,7 @@ NotificationHeaderBadge.displayName = "NotificationHeaderBadge";
|
|
|
5448
5520
|
import IconButton5 from "@mui/material/IconButton";
|
|
5449
5521
|
import { styled as styled45 } from "@mui/material/styles";
|
|
5450
5522
|
import { X as X2 } from "@wso2/oxygen-ui-icons-react";
|
|
5451
|
-
import { jsx as
|
|
5523
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
5452
5524
|
var NotificationHeaderCloseRoot = styled45(IconButton5, {
|
|
5453
5525
|
name: "MuiNotificationPanel",
|
|
5454
5526
|
slot: "HeaderClose"
|
|
@@ -5466,27 +5538,27 @@ var NotificationHeaderClose = ({
|
|
|
5466
5538
|
onClose == null ? void 0 : onClose();
|
|
5467
5539
|
}
|
|
5468
5540
|
};
|
|
5469
|
-
return /* @__PURE__ */
|
|
5541
|
+
return /* @__PURE__ */ jsx60(
|
|
5470
5542
|
NotificationHeaderCloseRoot,
|
|
5471
5543
|
{
|
|
5472
5544
|
onClick: handleClick,
|
|
5473
5545
|
size: "small",
|
|
5474
5546
|
sx,
|
|
5475
5547
|
"aria-label": "Close notifications",
|
|
5476
|
-
children: children || /* @__PURE__ */
|
|
5548
|
+
children: children || /* @__PURE__ */ jsx60(X2, { size: 20, "aria-hidden": "true" })
|
|
5477
5549
|
}
|
|
5478
5550
|
);
|
|
5479
5551
|
};
|
|
5480
5552
|
NotificationHeaderClose.displayName = "NotificationHeaderClose";
|
|
5481
5553
|
|
|
5482
5554
|
// src/components/NotificationPanel/NotificationTabs.tsx
|
|
5483
|
-
import
|
|
5555
|
+
import Box25 from "@mui/material/Box";
|
|
5484
5556
|
import Tabs from "@mui/material/Tabs";
|
|
5485
5557
|
import Tab from "@mui/material/Tab";
|
|
5486
5558
|
import Chip3 from "@mui/material/Chip";
|
|
5487
5559
|
import { styled as styled46 } from "@mui/material/styles";
|
|
5488
|
-
import { jsx as
|
|
5489
|
-
var NotificationTabsRoot = styled46(
|
|
5560
|
+
import { jsx as jsx61, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5561
|
+
var NotificationTabsRoot = styled46(Box25, {
|
|
5490
5562
|
name: "MuiNotificationPanel",
|
|
5491
5563
|
slot: "Tabs"
|
|
5492
5564
|
})(({ theme }) => ({
|
|
@@ -5503,7 +5575,7 @@ var NotificationTabsInner = styled46(Tabs, {
|
|
|
5503
5575
|
fontWeight: 500
|
|
5504
5576
|
}
|
|
5505
5577
|
});
|
|
5506
|
-
var NotificationTabLabel = styled46(
|
|
5578
|
+
var NotificationTabLabel = styled46(Box25, {
|
|
5507
5579
|
name: "MuiNotificationPanel",
|
|
5508
5580
|
slot: "TabLabel"
|
|
5509
5581
|
})(({ theme }) => ({
|
|
@@ -5524,18 +5596,18 @@ var NotificationTabs = ({
|
|
|
5524
5596
|
onChange,
|
|
5525
5597
|
sx
|
|
5526
5598
|
}) => {
|
|
5527
|
-
return /* @__PURE__ */
|
|
5599
|
+
return /* @__PURE__ */ jsx61(NotificationTabsRoot, { sx, children: /* @__PURE__ */ jsx61(
|
|
5528
5600
|
NotificationTabsInner,
|
|
5529
5601
|
{
|
|
5530
5602
|
value,
|
|
5531
5603
|
onChange: (_, newValue) => onChange(newValue),
|
|
5532
5604
|
variant: "fullWidth",
|
|
5533
|
-
children: tabs.map((tab, index) => /* @__PURE__ */
|
|
5605
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ jsx61(
|
|
5534
5606
|
Tab,
|
|
5535
5607
|
{
|
|
5536
|
-
label: /* @__PURE__ */
|
|
5608
|
+
label: /* @__PURE__ */ jsxs21(NotificationTabLabel, { children: [
|
|
5537
5609
|
tab.label,
|
|
5538
|
-
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */
|
|
5610
|
+
tab.count !== void 0 && tab.count > 0 && /* @__PURE__ */ jsx61(
|
|
5539
5611
|
NotificationTabCount,
|
|
5540
5612
|
{
|
|
5541
5613
|
label: tab.count,
|
|
@@ -5553,12 +5625,12 @@ var NotificationTabs = ({
|
|
|
5553
5625
|
};
|
|
5554
5626
|
|
|
5555
5627
|
// src/components/NotificationPanel/NotificationActions.tsx
|
|
5556
|
-
import
|
|
5628
|
+
import Box26 from "@mui/material/Box";
|
|
5557
5629
|
import Button3 from "@mui/material/Button";
|
|
5558
5630
|
import { styled as styled47 } from "@mui/material/styles";
|
|
5559
5631
|
import { CheckCheck, Trash2 } from "@wso2/oxygen-ui-icons-react";
|
|
5560
|
-
import { jsx as
|
|
5561
|
-
var NotificationActionsRoot = styled47(
|
|
5632
|
+
import { jsx as jsx62, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5633
|
+
var NotificationActionsRoot = styled47(Box26, {
|
|
5562
5634
|
name: "MuiNotificationPanel",
|
|
5563
5635
|
slot: "Actions"
|
|
5564
5636
|
})(({ theme }) => ({
|
|
@@ -5583,21 +5655,21 @@ var NotificationActions = ({
|
|
|
5583
5655
|
onClearAll,
|
|
5584
5656
|
sx
|
|
5585
5657
|
}) => {
|
|
5586
|
-
return /* @__PURE__ */
|
|
5587
|
-
hasUnread && onMarkAllRead && /* @__PURE__ */
|
|
5658
|
+
return /* @__PURE__ */ jsxs22(NotificationActionsRoot, { sx, children: [
|
|
5659
|
+
hasUnread && onMarkAllRead && /* @__PURE__ */ jsx62(
|
|
5588
5660
|
NotificationActionButton,
|
|
5589
5661
|
{
|
|
5590
5662
|
size: "small",
|
|
5591
|
-
startIcon: /* @__PURE__ */
|
|
5663
|
+
startIcon: /* @__PURE__ */ jsx62(CheckCheck, { size: 14 }),
|
|
5592
5664
|
onClick: onMarkAllRead,
|
|
5593
5665
|
children: "Mark all read"
|
|
5594
5666
|
}
|
|
5595
5667
|
),
|
|
5596
|
-
onClearAll && /* @__PURE__ */
|
|
5668
|
+
onClearAll && /* @__PURE__ */ jsx62(
|
|
5597
5669
|
NotificationActionButton,
|
|
5598
5670
|
{
|
|
5599
5671
|
size: "small",
|
|
5600
|
-
startIcon: /* @__PURE__ */
|
|
5672
|
+
startIcon: /* @__PURE__ */ jsx62(Trash2, { size: 14 }),
|
|
5601
5673
|
onClick: onClearAll,
|
|
5602
5674
|
color: "error",
|
|
5603
5675
|
children: "Clear all"
|
|
@@ -5608,12 +5680,12 @@ var NotificationActions = ({
|
|
|
5608
5680
|
|
|
5609
5681
|
// src/components/NotificationPanel/NotificationList.tsx
|
|
5610
5682
|
import * as React29 from "react";
|
|
5611
|
-
import
|
|
5683
|
+
import Box27 from "@mui/material/Box";
|
|
5612
5684
|
import List3 from "@mui/material/List";
|
|
5613
5685
|
import Divider6 from "@mui/material/Divider";
|
|
5614
5686
|
import { styled as styled48 } from "@mui/material/styles";
|
|
5615
|
-
import { jsx as
|
|
5616
|
-
var NotificationListRoot = styled48(
|
|
5687
|
+
import { jsx as jsx63, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5688
|
+
var NotificationListRoot = styled48(Box27, {
|
|
5617
5689
|
name: "MuiNotificationPanel",
|
|
5618
5690
|
slot: "List"
|
|
5619
5691
|
})({
|
|
@@ -5626,15 +5698,15 @@ var NotificationList = ({
|
|
|
5626
5698
|
sx
|
|
5627
5699
|
}) => {
|
|
5628
5700
|
const childArray = React29.Children.toArray(children);
|
|
5629
|
-
return /* @__PURE__ */
|
|
5701
|
+
return /* @__PURE__ */ jsx63(NotificationListRoot, { sx, children: /* @__PURE__ */ jsx63(List3, { disablePadding: true, children: childArray.map((child, index) => /* @__PURE__ */ jsxs23(React29.Fragment, { children: [
|
|
5630
5702
|
child,
|
|
5631
|
-
showDividers && index < childArray.length - 1 && /* @__PURE__ */
|
|
5703
|
+
showDividers && index < childArray.length - 1 && /* @__PURE__ */ jsx63(Divider6, {})
|
|
5632
5704
|
] }, index)) }) });
|
|
5633
5705
|
};
|
|
5634
5706
|
|
|
5635
5707
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
5636
5708
|
import * as React31 from "react";
|
|
5637
|
-
import
|
|
5709
|
+
import Box28 from "@mui/material/Box";
|
|
5638
5710
|
import ListItem2 from "@mui/material/ListItem";
|
|
5639
5711
|
import ListItemButton3 from "@mui/material/ListItemButton";
|
|
5640
5712
|
import ListItemText3 from "@mui/material/ListItemText";
|
|
@@ -5680,7 +5752,7 @@ var getNotificationTypeProps = (type) => {
|
|
|
5680
5752
|
|
|
5681
5753
|
// src/components/NotificationPanel/NotificationItemContext.tsx
|
|
5682
5754
|
import * as React30 from "react";
|
|
5683
|
-
import { jsx as
|
|
5755
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
5684
5756
|
var NotificationItemContext = React30.createContext(null);
|
|
5685
5757
|
var useNotificationItemContext = () => {
|
|
5686
5758
|
const context = React30.useContext(NotificationItemContext);
|
|
@@ -5692,11 +5764,11 @@ var useNotificationItemContext = () => {
|
|
|
5692
5764
|
return context;
|
|
5693
5765
|
};
|
|
5694
5766
|
var NotificationItemProvider = ({ value, children }) => {
|
|
5695
|
-
return /* @__PURE__ */
|
|
5767
|
+
return /* @__PURE__ */ jsx64(NotificationItemContext.Provider, { value, children });
|
|
5696
5768
|
};
|
|
5697
5769
|
|
|
5698
5770
|
// src/components/NotificationPanel/NotificationItem.tsx
|
|
5699
|
-
import { jsx as
|
|
5771
|
+
import { jsx as jsx65, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5700
5772
|
var NotificationItemRoot = styled49(ListItem2, {
|
|
5701
5773
|
name: "MuiNotificationPanel",
|
|
5702
5774
|
slot: "Item",
|
|
@@ -5722,7 +5794,7 @@ var NotificationItemDismiss = styled49(IconButton6, {
|
|
|
5722
5794
|
opacity: 1
|
|
5723
5795
|
}
|
|
5724
5796
|
});
|
|
5725
|
-
var NotificationItemFooter = styled49(
|
|
5797
|
+
var NotificationItemFooter = styled49(Box28, {
|
|
5726
5798
|
name: "MuiNotificationPanel",
|
|
5727
5799
|
slot: "ItemFooter"
|
|
5728
5800
|
})(({ theme }) => ({
|
|
@@ -5789,12 +5861,12 @@ var NotificationItem = ({
|
|
|
5789
5861
|
onAction == null ? void 0 : onAction();
|
|
5790
5862
|
};
|
|
5791
5863
|
const ownerState = { read };
|
|
5792
|
-
return /* @__PURE__ */
|
|
5864
|
+
return /* @__PURE__ */ jsx65(NotificationItemProvider, { value: contextValue, children: /* @__PURE__ */ jsx65(
|
|
5793
5865
|
NotificationItemRoot,
|
|
5794
5866
|
{
|
|
5795
5867
|
disablePadding: true,
|
|
5796
5868
|
ownerState,
|
|
5797
|
-
secondaryAction: onDismiss && /* @__PURE__ */
|
|
5869
|
+
secondaryAction: onDismiss && /* @__PURE__ */ jsx65(
|
|
5798
5870
|
NotificationItemDismiss,
|
|
5799
5871
|
{
|
|
5800
5872
|
size: "small",
|
|
@@ -5803,19 +5875,19 @@ var NotificationItem = ({
|
|
|
5803
5875
|
e.stopPropagation();
|
|
5804
5876
|
onDismiss(id);
|
|
5805
5877
|
},
|
|
5806
|
-
children: /* @__PURE__ */
|
|
5878
|
+
children: /* @__PURE__ */ jsx65(X3, { size: 16, "aria-hidden": "true" })
|
|
5807
5879
|
}
|
|
5808
5880
|
),
|
|
5809
5881
|
sx,
|
|
5810
|
-
children: /* @__PURE__ */
|
|
5882
|
+
children: /* @__PURE__ */ jsxs24(NotificationItemButton, { onClick: handleClick, children: [
|
|
5811
5883
|
avatarChild,
|
|
5812
|
-
/* @__PURE__ */
|
|
5884
|
+
/* @__PURE__ */ jsx65(
|
|
5813
5885
|
ListItemText3,
|
|
5814
5886
|
{
|
|
5815
5887
|
primary: titleChild,
|
|
5816
|
-
secondary: /* @__PURE__ */
|
|
5888
|
+
secondary: /* @__PURE__ */ jsxs24(Box28, { component: "span", children: [
|
|
5817
5889
|
messageChild,
|
|
5818
|
-
/* @__PURE__ */
|
|
5890
|
+
/* @__PURE__ */ jsxs24(NotificationItemFooter, { children: [
|
|
5819
5891
|
timestampChild,
|
|
5820
5892
|
actionChild
|
|
5821
5893
|
] })
|
|
@@ -5832,7 +5904,7 @@ NotificationItem.displayName = "NotificationItem";
|
|
|
5832
5904
|
import ListItemAvatar from "@mui/material/ListItemAvatar";
|
|
5833
5905
|
import Avatar3 from "@mui/material/Avatar";
|
|
5834
5906
|
import { styled as styled50 } from "@mui/material/styles";
|
|
5835
|
-
import { jsx as
|
|
5907
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5836
5908
|
var NotificationItemAvatarStyled = styled50(Avatar3, {
|
|
5837
5909
|
name: "MuiNotificationPanel",
|
|
5838
5910
|
slot: "ItemAvatar",
|
|
@@ -5856,16 +5928,16 @@ var NotificationItemAvatar = ({
|
|
|
5856
5928
|
color: typeProps.color,
|
|
5857
5929
|
hasChildren: !!children
|
|
5858
5930
|
};
|
|
5859
|
-
return /* @__PURE__ */
|
|
5931
|
+
return /* @__PURE__ */ jsx66(ListItemAvatar, { children: /* @__PURE__ */ jsx66(NotificationItemAvatarStyled, { ownerState, sx, children: children || /* @__PURE__ */ jsx66(Icon, { size: 20 }) }) });
|
|
5860
5932
|
};
|
|
5861
5933
|
NotificationItemAvatar.displayName = "NotificationItemAvatar";
|
|
5862
5934
|
|
|
5863
5935
|
// src/components/NotificationPanel/NotificationItemTitle.tsx
|
|
5864
|
-
import
|
|
5865
|
-
import
|
|
5936
|
+
import Box29 from "@mui/material/Box";
|
|
5937
|
+
import Typography15 from "@mui/material/Typography";
|
|
5866
5938
|
import { styled as styled51 } from "@mui/material/styles";
|
|
5867
|
-
import { jsx as
|
|
5868
|
-
var NotificationItemTitleRoot = styled51(
|
|
5939
|
+
import { jsx as jsx67, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5940
|
+
var NotificationItemTitleRoot = styled51(Box29, {
|
|
5869
5941
|
name: "MuiNotificationPanel",
|
|
5870
5942
|
slot: "ItemTitle"
|
|
5871
5943
|
})(({ theme }) => ({
|
|
@@ -5873,7 +5945,7 @@ var NotificationItemTitleRoot = styled51(Box28, {
|
|
|
5873
5945
|
alignItems: "center",
|
|
5874
5946
|
gap: theme.spacing(1)
|
|
5875
5947
|
}));
|
|
5876
|
-
var NotificationItemTitleText = styled51(
|
|
5948
|
+
var NotificationItemTitleText = styled51(Typography15, {
|
|
5877
5949
|
name: "MuiNotificationPanel",
|
|
5878
5950
|
slot: "ItemTitleText",
|
|
5879
5951
|
shouldForwardProp: (prop) => prop !== "ownerState"
|
|
@@ -5881,7 +5953,7 @@ var NotificationItemTitleText = styled51(Typography14, {
|
|
|
5881
5953
|
fontWeight: ownerState.read ? 400 : 600,
|
|
5882
5954
|
flex: 1
|
|
5883
5955
|
}));
|
|
5884
|
-
var NotificationItemUnreadDot = styled51(
|
|
5956
|
+
var NotificationItemUnreadDot = styled51(Box29, {
|
|
5885
5957
|
name: "MuiNotificationPanel",
|
|
5886
5958
|
slot: "ItemUnreadDot"
|
|
5887
5959
|
})(({ theme }) => ({
|
|
@@ -5897,18 +5969,18 @@ var NotificationItemTitle = ({
|
|
|
5897
5969
|
sx
|
|
5898
5970
|
}) => {
|
|
5899
5971
|
const { read } = useNotificationItemContext();
|
|
5900
|
-
return /* @__PURE__ */
|
|
5901
|
-
/* @__PURE__ */
|
|
5902
|
-
showUnreadIndicator && !read && /* @__PURE__ */
|
|
5972
|
+
return /* @__PURE__ */ jsxs25(NotificationItemTitleRoot, { sx, children: [
|
|
5973
|
+
/* @__PURE__ */ jsx67(NotificationItemTitleText, { variant: "body2", ownerState: { read }, children }),
|
|
5974
|
+
showUnreadIndicator && !read && /* @__PURE__ */ jsx67(NotificationItemUnreadDot, {})
|
|
5903
5975
|
] });
|
|
5904
5976
|
};
|
|
5905
5977
|
NotificationItemTitle.displayName = "NotificationItemTitle";
|
|
5906
5978
|
|
|
5907
5979
|
// src/components/NotificationPanel/NotificationItemMessage.tsx
|
|
5908
|
-
import
|
|
5980
|
+
import Typography16 from "@mui/material/Typography";
|
|
5909
5981
|
import { styled as styled52 } from "@mui/material/styles";
|
|
5910
|
-
import { jsx as
|
|
5911
|
-
var NotificationItemMessageRoot = styled52(
|
|
5982
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5983
|
+
var NotificationItemMessageRoot = styled52(Typography16, {
|
|
5912
5984
|
name: "MuiNotificationPanel",
|
|
5913
5985
|
slot: "ItemMessage"
|
|
5914
5986
|
})(({ theme }) => ({
|
|
@@ -5920,15 +5992,15 @@ var NotificationItemMessage = ({
|
|
|
5920
5992
|
children,
|
|
5921
5993
|
sx
|
|
5922
5994
|
}) => {
|
|
5923
|
-
return /* @__PURE__ */
|
|
5995
|
+
return /* @__PURE__ */ jsx68(NotificationItemMessageRoot, { component: "span", variant: "caption", sx, children });
|
|
5924
5996
|
};
|
|
5925
5997
|
NotificationItemMessage.displayName = "NotificationItemMessage";
|
|
5926
5998
|
|
|
5927
5999
|
// src/components/NotificationPanel/NotificationItemTimestamp.tsx
|
|
5928
|
-
import
|
|
6000
|
+
import Typography17 from "@mui/material/Typography";
|
|
5929
6001
|
import { styled as styled53 } from "@mui/material/styles";
|
|
5930
|
-
import { jsx as
|
|
5931
|
-
var NotificationItemTimestampRoot = styled53(
|
|
6002
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
6003
|
+
var NotificationItemTimestampRoot = styled53(Typography17, {
|
|
5932
6004
|
name: "MuiNotificationPanel",
|
|
5933
6005
|
slot: "ItemTimestamp"
|
|
5934
6006
|
})(({ theme }) => ({
|
|
@@ -5939,14 +6011,14 @@ var NotificationItemTimestamp = ({
|
|
|
5939
6011
|
children,
|
|
5940
6012
|
sx
|
|
5941
6013
|
}) => {
|
|
5942
|
-
return /* @__PURE__ */
|
|
6014
|
+
return /* @__PURE__ */ jsx69(NotificationItemTimestampRoot, { component: "span", variant: "caption", sx, children });
|
|
5943
6015
|
};
|
|
5944
6016
|
NotificationItemTimestamp.displayName = "NotificationItemTimestamp";
|
|
5945
6017
|
|
|
5946
6018
|
// src/components/NotificationPanel/NotificationItemAction.tsx
|
|
5947
6019
|
import Chip4 from "@mui/material/Chip";
|
|
5948
6020
|
import { styled as styled54 } from "@mui/material/styles";
|
|
5949
|
-
import { jsx as
|
|
6021
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
5950
6022
|
var NotificationItemActionRoot = styled54(Chip4, {
|
|
5951
6023
|
name: "MuiNotificationPanel",
|
|
5952
6024
|
slot: "ItemAction"
|
|
@@ -5969,7 +6041,7 @@ var NotificationItemAction = ({
|
|
|
5969
6041
|
onAction == null ? void 0 : onAction();
|
|
5970
6042
|
}
|
|
5971
6043
|
};
|
|
5972
|
-
return /* @__PURE__ */
|
|
6044
|
+
return /* @__PURE__ */ jsx70(
|
|
5973
6045
|
NotificationItemActionRoot,
|
|
5974
6046
|
{
|
|
5975
6047
|
label: children,
|
|
@@ -5983,12 +6055,12 @@ var NotificationItemAction = ({
|
|
|
5983
6055
|
NotificationItemAction.displayName = "NotificationItemAction";
|
|
5984
6056
|
|
|
5985
6057
|
// src/components/NotificationPanel/NotificationEmptyState.tsx
|
|
5986
|
-
import
|
|
5987
|
-
import
|
|
6058
|
+
import Box30 from "@mui/material/Box";
|
|
6059
|
+
import Typography18 from "@mui/material/Typography";
|
|
5988
6060
|
import { styled as styled55 } from "@mui/material/styles";
|
|
5989
6061
|
import { BellOff } from "@wso2/oxygen-ui-icons-react";
|
|
5990
|
-
import { jsx as
|
|
5991
|
-
var NotificationEmptyStateRoot = styled55(
|
|
6062
|
+
import { jsx as jsx71, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6063
|
+
var NotificationEmptyStateRoot = styled55(Box30, {
|
|
5992
6064
|
name: "MuiNotificationPanel",
|
|
5993
6065
|
slot: "EmptyState"
|
|
5994
6066
|
})(({ theme }) => ({
|
|
@@ -6002,7 +6074,7 @@ var NotificationEmptyStateRoot = styled55(Box29, {
|
|
|
6002
6074
|
paddingRight: theme.spacing(3),
|
|
6003
6075
|
textAlign: "center"
|
|
6004
6076
|
}));
|
|
6005
|
-
var NotificationEmptyStateMessage = styled55(
|
|
6077
|
+
var NotificationEmptyStateMessage = styled55(Typography18, {
|
|
6006
6078
|
name: "MuiNotificationPanel",
|
|
6007
6079
|
slot: "EmptyStateMessage"
|
|
6008
6080
|
})(({ theme }) => ({
|
|
@@ -6013,14 +6085,14 @@ var NotificationEmptyState = ({
|
|
|
6013
6085
|
icon,
|
|
6014
6086
|
sx
|
|
6015
6087
|
}) => {
|
|
6016
|
-
return /* @__PURE__ */
|
|
6017
|
-
icon || /* @__PURE__ */
|
|
6018
|
-
/* @__PURE__ */
|
|
6088
|
+
return /* @__PURE__ */ jsxs26(NotificationEmptyStateRoot, { sx, children: [
|
|
6089
|
+
icon || /* @__PURE__ */ jsx71(BellOff, { size: 48, style: { opacity: 0.3, marginBottom: 16 } }),
|
|
6090
|
+
/* @__PURE__ */ jsx71(NotificationEmptyStateMessage, { variant: "body2", children: message })
|
|
6019
6091
|
] });
|
|
6020
6092
|
};
|
|
6021
6093
|
|
|
6022
6094
|
// src/components/NotificationPanel/NotificationPanel.tsx
|
|
6023
|
-
import { jsx as
|
|
6095
|
+
import { jsx as jsx72, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6024
6096
|
var NotificationPanelRoot = styled56(Drawer, {
|
|
6025
6097
|
name: "MuiNotificationPanel",
|
|
6026
6098
|
slot: "Root",
|
|
@@ -6093,7 +6165,7 @@ var NotificationPanel = ({
|
|
|
6093
6165
|
[onClose, open, publishLiveAnnouncement]
|
|
6094
6166
|
);
|
|
6095
6167
|
const ownerState = { width };
|
|
6096
|
-
return /* @__PURE__ */
|
|
6168
|
+
return /* @__PURE__ */ jsx72(NotificationPanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs27(
|
|
6097
6169
|
NotificationPanelRoot,
|
|
6098
6170
|
{
|
|
6099
6171
|
anchor,
|
|
@@ -6108,8 +6180,8 @@ var NotificationPanel = ({
|
|
|
6108
6180
|
}
|
|
6109
6181
|
},
|
|
6110
6182
|
children: [
|
|
6111
|
-
/* @__PURE__ */
|
|
6112
|
-
|
|
6183
|
+
/* @__PURE__ */ jsx72(
|
|
6184
|
+
Box31,
|
|
6113
6185
|
{
|
|
6114
6186
|
component: "div",
|
|
6115
6187
|
role: "status",
|
|
@@ -6145,29 +6217,29 @@ NotificationPanel.displayName = "NotificationPanel";
|
|
|
6145
6217
|
|
|
6146
6218
|
// src/components/Footer/Footer.tsx
|
|
6147
6219
|
import * as React33 from "react";
|
|
6148
|
-
import
|
|
6220
|
+
import Box32 from "@mui/material/Box";
|
|
6149
6221
|
import { styled as styled60 } from "@mui/material/styles";
|
|
6150
6222
|
|
|
6151
6223
|
// src/components/Footer/FooterCopyright.tsx
|
|
6152
|
-
import
|
|
6224
|
+
import Typography19 from "@mui/material/Typography";
|
|
6153
6225
|
import { styled as styled57 } from "@mui/material/styles";
|
|
6154
|
-
import { jsx as
|
|
6155
|
-
var StyledCopyrightText = styled57(
|
|
6226
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
6227
|
+
var StyledCopyrightText = styled57(Typography19, {
|
|
6156
6228
|
name: "MuiFooter",
|
|
6157
6229
|
slot: "CopyrightText"
|
|
6158
6230
|
})(({ theme }) => ({
|
|
6159
6231
|
color: (theme.vars || theme).palette.text.secondary
|
|
6160
6232
|
}));
|
|
6161
6233
|
var FooterCopyright = ({ children }) => {
|
|
6162
|
-
return /* @__PURE__ */
|
|
6234
|
+
return /* @__PURE__ */ jsx73(StyledCopyrightText, { variant: "caption", children });
|
|
6163
6235
|
};
|
|
6164
6236
|
FooterCopyright.displayName = "Footer.Copyright";
|
|
6165
6237
|
|
|
6166
6238
|
// src/components/Footer/FooterVersion.tsx
|
|
6167
|
-
import
|
|
6239
|
+
import Typography20 from "@mui/material/Typography";
|
|
6168
6240
|
import { styled as styled58 } from "@mui/material/styles";
|
|
6169
|
-
import { jsx as
|
|
6170
|
-
var StyledVersion = styled58(
|
|
6241
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
6242
|
+
var StyledVersion = styled58(Typography20, {
|
|
6171
6243
|
name: "MuiFooter",
|
|
6172
6244
|
slot: "Version"
|
|
6173
6245
|
})(({ theme }) => ({
|
|
@@ -6178,14 +6250,14 @@ var StyledVersion = styled58(Typography19, {
|
|
|
6178
6250
|
fontSize: 11
|
|
6179
6251
|
}));
|
|
6180
6252
|
var FooterVersion = ({ children }) => {
|
|
6181
|
-
return /* @__PURE__ */
|
|
6253
|
+
return /* @__PURE__ */ jsx74(StyledVersion, { variant: "caption", children });
|
|
6182
6254
|
};
|
|
6183
6255
|
FooterVersion.displayName = "Footer.Version";
|
|
6184
6256
|
|
|
6185
6257
|
// src/components/Footer/FooterLink.tsx
|
|
6186
6258
|
import Link2 from "@mui/material/Link";
|
|
6187
6259
|
import { styled as styled59 } from "@mui/material/styles";
|
|
6188
|
-
import { jsx as
|
|
6260
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
6189
6261
|
var StyledLink = styled59(Link2, {
|
|
6190
6262
|
name: "MuiFooter",
|
|
6191
6263
|
slot: "Link"
|
|
@@ -6198,15 +6270,15 @@ var StyledLink = styled59(Link2, {
|
|
|
6198
6270
|
}));
|
|
6199
6271
|
var FooterLink = (_a) => {
|
|
6200
6272
|
var _b = _a, { children, href } = _b, props = __objRest(_b, ["children", "href"]);
|
|
6201
|
-
return /* @__PURE__ */
|
|
6273
|
+
return /* @__PURE__ */ jsx75(StyledLink, __spreadProps(__spreadValues({ href, underline: "hover" }, props), { children }));
|
|
6202
6274
|
};
|
|
6203
6275
|
FooterLink.displayName = "Footer.Link";
|
|
6204
6276
|
|
|
6205
6277
|
// src/components/Footer/FooterDivider.tsx
|
|
6206
6278
|
import Divider7 from "@mui/material/Divider";
|
|
6207
|
-
import { jsx as
|
|
6279
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
6208
6280
|
var FooterDivider = () => {
|
|
6209
|
-
return /* @__PURE__ */
|
|
6281
|
+
return /* @__PURE__ */ jsx76(
|
|
6210
6282
|
Divider7,
|
|
6211
6283
|
{
|
|
6212
6284
|
orientation: "vertical",
|
|
@@ -6218,8 +6290,8 @@ var FooterDivider = () => {
|
|
|
6218
6290
|
FooterDivider.displayName = "Footer.Divider";
|
|
6219
6291
|
|
|
6220
6292
|
// src/components/Footer/Footer.tsx
|
|
6221
|
-
import { jsx as
|
|
6222
|
-
var FooterRoot = styled60(
|
|
6293
|
+
import { jsx as jsx77, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6294
|
+
var FooterRoot = styled60(Box32, {
|
|
6223
6295
|
name: "MuiFooter",
|
|
6224
6296
|
slot: "Root"
|
|
6225
6297
|
})(({ theme }) => ({
|
|
@@ -6232,7 +6304,7 @@ var FooterRoot = styled60(Box31, {
|
|
|
6232
6304
|
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
6233
6305
|
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
6234
6306
|
}));
|
|
6235
|
-
var FooterContent = styled60(
|
|
6307
|
+
var FooterContent = styled60(Box32, {
|
|
6236
6308
|
name: "MuiFooter",
|
|
6237
6309
|
slot: "Content"
|
|
6238
6310
|
})(({ theme }) => ({
|
|
@@ -6246,7 +6318,7 @@ var FooterContent = styled60(Box31, {
|
|
|
6246
6318
|
alignItems: "center"
|
|
6247
6319
|
}
|
|
6248
6320
|
}));
|
|
6249
|
-
var FooterLeft = styled60(
|
|
6321
|
+
var FooterLeft = styled60(Box32, {
|
|
6250
6322
|
name: "MuiFooter",
|
|
6251
6323
|
slot: "Left"
|
|
6252
6324
|
})(({ theme }) => ({
|
|
@@ -6255,7 +6327,7 @@ var FooterLeft = styled60(Box31, {
|
|
|
6255
6327
|
gap: theme.spacing(2),
|
|
6256
6328
|
flexWrap: "wrap"
|
|
6257
6329
|
}));
|
|
6258
|
-
var FooterRight = styled60(
|
|
6330
|
+
var FooterRight = styled60(Box32, {
|
|
6259
6331
|
name: "MuiFooter",
|
|
6260
6332
|
slot: "Right"
|
|
6261
6333
|
})(({ theme }) => ({
|
|
@@ -6277,9 +6349,9 @@ var Footer = ({ children, sx }) => {
|
|
|
6277
6349
|
}
|
|
6278
6350
|
}
|
|
6279
6351
|
});
|
|
6280
|
-
return /* @__PURE__ */
|
|
6281
|
-
leftChildren.length > 0 && /* @__PURE__ */
|
|
6282
|
-
rightChildren.length > 0 && /* @__PURE__ */
|
|
6352
|
+
return /* @__PURE__ */ jsx77(FooterRoot, { component: "footer", sx, children: /* @__PURE__ */ jsxs28(FooterContent, { children: [
|
|
6353
|
+
leftChildren.length > 0 && /* @__PURE__ */ jsx77(FooterLeft, { children: leftChildren }),
|
|
6354
|
+
rightChildren.length > 0 && /* @__PURE__ */ jsx77(FooterRight, { children: rightChildren })
|
|
6283
6355
|
] }) });
|
|
6284
6356
|
};
|
|
6285
6357
|
Footer.Copyright = FooterCopyright;
|
|
@@ -6306,7 +6378,7 @@ UserMenuContext.displayName = "UserMenu.Context";
|
|
|
6306
6378
|
|
|
6307
6379
|
// src/components/UserMenu/UserMenuTrigger.tsx
|
|
6308
6380
|
import * as React35 from "react";
|
|
6309
|
-
import
|
|
6381
|
+
import Tooltip8 from "@mui/material/Tooltip";
|
|
6310
6382
|
import IconButton7 from "@mui/material/IconButton";
|
|
6311
6383
|
import Avatar4 from "@mui/material/Avatar";
|
|
6312
6384
|
import { styled as styled61 } from "@mui/material/styles";
|
|
@@ -6331,7 +6403,7 @@ function getUserMenuAvatarProps(name, avatar) {
|
|
|
6331
6403
|
}
|
|
6332
6404
|
|
|
6333
6405
|
// src/components/UserMenu/UserMenuTrigger.tsx
|
|
6334
|
-
import { jsx as
|
|
6406
|
+
import { jsx as jsx78, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6335
6407
|
var StyledTrigger = styled61(IconButton7, {
|
|
6336
6408
|
name: "MuiUserMenu",
|
|
6337
6409
|
slot: "Trigger",
|
|
@@ -6373,7 +6445,7 @@ var UserMenuTrigger = React35.forwardRef(
|
|
|
6373
6445
|
const avatarProps = getUserMenuAvatarProps(name, avatar);
|
|
6374
6446
|
const defaultAriaLabel = showName ? name : "Account";
|
|
6375
6447
|
const resolvedAriaLabel = typeof ariaLabel === "string" && ariaLabel.trim().length > 0 ? ariaLabel : defaultAriaLabel;
|
|
6376
|
-
return /* @__PURE__ */
|
|
6448
|
+
return /* @__PURE__ */ jsx78(Tooltip8, { title: "Account", children: /* @__PURE__ */ jsxs29(
|
|
6377
6449
|
StyledTrigger,
|
|
6378
6450
|
__spreadProps(__spreadValues({}, props), {
|
|
6379
6451
|
ref,
|
|
@@ -6388,8 +6460,8 @@ var UserMenuTrigger = React35.forwardRef(
|
|
|
6388
6460
|
"aria-haspopup": "true",
|
|
6389
6461
|
"aria-expanded": open ? "true" : void 0,
|
|
6390
6462
|
children: [
|
|
6391
|
-
/* @__PURE__ */
|
|
6392
|
-
showName && /* @__PURE__ */
|
|
6463
|
+
/* @__PURE__ */ jsx78(StyledAvatar2, { src: avatarProps.src, alt: name, children: avatarProps.children }),
|
|
6464
|
+
showName && /* @__PURE__ */ jsx78(StyledNameText, { children: name })
|
|
6393
6465
|
]
|
|
6394
6466
|
})
|
|
6395
6467
|
) });
|
|
@@ -6399,20 +6471,20 @@ UserMenuTrigger.displayName = "UserMenu.Trigger";
|
|
|
6399
6471
|
|
|
6400
6472
|
// src/components/UserMenu/UserMenuHeader.tsx
|
|
6401
6473
|
import Divider8 from "@mui/material/Divider";
|
|
6402
|
-
import
|
|
6474
|
+
import Box33 from "@mui/material/Box";
|
|
6403
6475
|
import Avatar5 from "@mui/material/Avatar";
|
|
6404
|
-
import
|
|
6476
|
+
import Typography21 from "@mui/material/Typography";
|
|
6405
6477
|
import Chip5 from "@mui/material/Chip";
|
|
6406
6478
|
import { styled as styled62 } from "@mui/material/styles";
|
|
6407
|
-
import { Fragment as
|
|
6408
|
-
var StyledHeaderBox = styled62(
|
|
6479
|
+
import { Fragment as Fragment10, jsx as jsx79, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6480
|
+
var StyledHeaderBox = styled62(Box33, {
|
|
6409
6481
|
name: "MuiUserMenu",
|
|
6410
6482
|
slot: "HeaderBox"
|
|
6411
6483
|
})(({ theme }) => ({
|
|
6412
6484
|
padding: theme.spacing(2),
|
|
6413
6485
|
paddingBottom: theme.spacing(1.5)
|
|
6414
6486
|
}));
|
|
6415
|
-
var StyledHeaderContent = styled62(
|
|
6487
|
+
var StyledHeaderContent = styled62(Box33, {
|
|
6416
6488
|
name: "MuiUserMenu",
|
|
6417
6489
|
slot: "HeaderContent"
|
|
6418
6490
|
})(({ theme }) => ({
|
|
@@ -6431,7 +6503,7 @@ var StyledHeaderAvatar = styled62(Avatar5, {
|
|
|
6431
6503
|
fontSize: 16,
|
|
6432
6504
|
fontWeight: 600
|
|
6433
6505
|
}));
|
|
6434
|
-
var StyledUserInfo = styled62(
|
|
6506
|
+
var StyledUserInfo = styled62(Box33, {
|
|
6435
6507
|
name: "MuiUserMenu",
|
|
6436
6508
|
slot: "UserInfo"
|
|
6437
6509
|
})(({ theme }) => ({
|
|
@@ -6441,7 +6513,7 @@ var StyledUserInfo = styled62(Box32, {
|
|
|
6441
6513
|
flex: 1,
|
|
6442
6514
|
minWidth: 0
|
|
6443
6515
|
}));
|
|
6444
|
-
var StyledNameRow = styled62(
|
|
6516
|
+
var StyledNameRow = styled62(Box33, {
|
|
6445
6517
|
name: "MuiUserMenu",
|
|
6446
6518
|
slot: "NameRow"
|
|
6447
6519
|
})(({ theme }) => ({
|
|
@@ -6449,7 +6521,7 @@ var StyledNameRow = styled62(Box32, {
|
|
|
6449
6521
|
alignItems: "center",
|
|
6450
6522
|
gap: theme.spacing(1)
|
|
6451
6523
|
}));
|
|
6452
|
-
var StyledName = styled62(
|
|
6524
|
+
var StyledName = styled62(Typography21, {
|
|
6453
6525
|
name: "MuiUserMenu",
|
|
6454
6526
|
slot: "Name"
|
|
6455
6527
|
})({
|
|
@@ -6466,7 +6538,7 @@ var StyledRoleChip = styled62(Chip5, {
|
|
|
6466
6538
|
fontSize: 11,
|
|
6467
6539
|
fontWeight: 600
|
|
6468
6540
|
});
|
|
6469
|
-
var StyledEmail = styled62(
|
|
6541
|
+
var StyledEmail = styled62(Typography21, {
|
|
6470
6542
|
name: "MuiUserMenu",
|
|
6471
6543
|
slot: "Email"
|
|
6472
6544
|
})(({ theme }) => ({
|
|
@@ -6478,13 +6550,13 @@ var StyledEmail = styled62(Typography20, {
|
|
|
6478
6550
|
}));
|
|
6479
6551
|
var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
6480
6552
|
const avatarProps = getUserMenuAvatarProps(name, avatar);
|
|
6481
|
-
return /* @__PURE__ */
|
|
6482
|
-
/* @__PURE__ */
|
|
6483
|
-
/* @__PURE__ */
|
|
6484
|
-
/* @__PURE__ */
|
|
6485
|
-
/* @__PURE__ */
|
|
6486
|
-
/* @__PURE__ */
|
|
6487
|
-
role && /* @__PURE__ */
|
|
6553
|
+
return /* @__PURE__ */ jsxs30(Fragment10, { children: [
|
|
6554
|
+
/* @__PURE__ */ jsx79(StyledHeaderBox, { children: /* @__PURE__ */ jsxs30(StyledHeaderContent, { children: [
|
|
6555
|
+
/* @__PURE__ */ jsx79(StyledHeaderAvatar, { src: avatarProps.src, alt: name, children: avatarProps.children }),
|
|
6556
|
+
/* @__PURE__ */ jsxs30(StyledUserInfo, { children: [
|
|
6557
|
+
/* @__PURE__ */ jsxs30(StyledNameRow, { children: [
|
|
6558
|
+
/* @__PURE__ */ jsx79(StyledName, { variant: "subtitle2", children: name }),
|
|
6559
|
+
role && /* @__PURE__ */ jsx79(
|
|
6488
6560
|
StyledRoleChip,
|
|
6489
6561
|
{
|
|
6490
6562
|
label: role,
|
|
@@ -6493,10 +6565,10 @@ var UserMenuHeader = ({ name, email, avatar, role }) => {
|
|
|
6493
6565
|
}
|
|
6494
6566
|
)
|
|
6495
6567
|
] }),
|
|
6496
|
-
/* @__PURE__ */
|
|
6568
|
+
/* @__PURE__ */ jsx79(StyledEmail, { variant: "caption", children: email })
|
|
6497
6569
|
] })
|
|
6498
6570
|
] }) }),
|
|
6499
|
-
/* @__PURE__ */
|
|
6571
|
+
/* @__PURE__ */ jsx79(Divider8, {})
|
|
6500
6572
|
] });
|
|
6501
6573
|
};
|
|
6502
6574
|
UserMenuHeader.displayName = "UserMenu.Header";
|
|
@@ -6506,11 +6578,11 @@ import * as React36 from "react";
|
|
|
6506
6578
|
import MenuItem5 from "@mui/material/MenuItem";
|
|
6507
6579
|
import ListItemIcon3 from "@mui/material/ListItemIcon";
|
|
6508
6580
|
import ListItemText4 from "@mui/material/ListItemText";
|
|
6509
|
-
import
|
|
6581
|
+
import Box34 from "@mui/material/Box";
|
|
6510
6582
|
import Chip6 from "@mui/material/Chip";
|
|
6511
6583
|
import { styled as styled63 } from "@mui/material/styles";
|
|
6512
6584
|
import { ChevronRight as ChevronRight2 } from "@wso2/oxygen-ui-icons-react";
|
|
6513
|
-
import { jsx as
|
|
6585
|
+
import { jsx as jsx80, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6514
6586
|
var StyledMenuItem2 = styled63(MenuItem5, {
|
|
6515
6587
|
name: "MuiUserMenu",
|
|
6516
6588
|
slot: "MenuItem"
|
|
@@ -6538,13 +6610,13 @@ var UserMenuItem = ({
|
|
|
6538
6610
|
handleClose();
|
|
6539
6611
|
onClick == null ? void 0 : onClick();
|
|
6540
6612
|
};
|
|
6541
|
-
return /* @__PURE__ */
|
|
6542
|
-
icon && /* @__PURE__ */
|
|
6613
|
+
return /* @__PURE__ */ jsxs31(StyledMenuItem2, { onClick: handleClick, children: [
|
|
6614
|
+
icon && /* @__PURE__ */ jsx80(ListItemIcon3, { children: React36.isValidElement(icon) ? React36.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
6543
6615
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
6544
6616
|
})) : icon }),
|
|
6545
|
-
/* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
6547
|
-
badge && /* @__PURE__ */
|
|
6617
|
+
/* @__PURE__ */ jsx80(ListItemText4, { primary: label }),
|
|
6618
|
+
/* @__PURE__ */ jsxs31(Box34, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
6619
|
+
badge && /* @__PURE__ */ jsx80(
|
|
6548
6620
|
StyledBillingChip,
|
|
6549
6621
|
{
|
|
6550
6622
|
label: badge,
|
|
@@ -6552,7 +6624,7 @@ var UserMenuItem = ({
|
|
|
6552
6624
|
variant: "outlined"
|
|
6553
6625
|
}
|
|
6554
6626
|
),
|
|
6555
|
-
/* @__PURE__ */
|
|
6627
|
+
/* @__PURE__ */ jsx80(ChevronRight2, { size: 16, style: { color: "var(--mui-palette-text-secondary)" } })
|
|
6556
6628
|
] })
|
|
6557
6629
|
] });
|
|
6558
6630
|
};
|
|
@@ -6564,7 +6636,7 @@ import MenuItem6 from "@mui/material/MenuItem";
|
|
|
6564
6636
|
import ListItemIcon4 from "@mui/material/ListItemIcon";
|
|
6565
6637
|
import ListItemText5 from "@mui/material/ListItemText";
|
|
6566
6638
|
import { styled as styled64 } from "@mui/material/styles";
|
|
6567
|
-
import { jsx as
|
|
6639
|
+
import { jsx as jsx81, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6568
6640
|
var StyledLogoutItem = styled64(MenuItem6, {
|
|
6569
6641
|
name: "MuiUserMenu",
|
|
6570
6642
|
slot: "LogoutItem"
|
|
@@ -6583,23 +6655,23 @@ var UserMenuLogout = ({
|
|
|
6583
6655
|
handleClose();
|
|
6584
6656
|
onClick == null ? void 0 : onClick();
|
|
6585
6657
|
};
|
|
6586
|
-
return /* @__PURE__ */
|
|
6587
|
-
icon && /* @__PURE__ */
|
|
6658
|
+
return /* @__PURE__ */ jsxs32(StyledLogoutItem, { onClick: handleClick, children: [
|
|
6659
|
+
icon && /* @__PURE__ */ jsx81(ListItemIcon4, { children: React37.isValidElement(icon) ? React37.cloneElement(icon, __spreadProps(__spreadValues({}, icon.props), {
|
|
6588
6660
|
size: (_a = icon.props.size) != null ? _a : 18
|
|
6589
6661
|
})) : icon }),
|
|
6590
|
-
/* @__PURE__ */
|
|
6662
|
+
/* @__PURE__ */ jsx81(ListItemText5, { primary: label })
|
|
6591
6663
|
] });
|
|
6592
6664
|
};
|
|
6593
6665
|
UserMenuLogout.displayName = "UserMenu.Logout";
|
|
6594
6666
|
|
|
6595
6667
|
// src/components/UserMenu/UserMenuDivider.tsx
|
|
6596
6668
|
import Divider9 from "@mui/material/Divider";
|
|
6597
|
-
import { jsx as
|
|
6598
|
-
var UserMenuDivider = () => /* @__PURE__ */
|
|
6669
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
6670
|
+
var UserMenuDivider = () => /* @__PURE__ */ jsx82(Divider9, {});
|
|
6599
6671
|
UserMenuDivider.displayName = "UserMenu.Divider";
|
|
6600
6672
|
|
|
6601
6673
|
// src/components/UserMenu/UserMenu.tsx
|
|
6602
|
-
import { jsx as
|
|
6674
|
+
import { jsx as jsx83, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6603
6675
|
var UserMenu = ({ children }) => {
|
|
6604
6676
|
const [anchorEl, setAnchorEl] = React38.useState(null);
|
|
6605
6677
|
const open = Boolean(anchorEl);
|
|
@@ -6616,9 +6688,9 @@ var UserMenu = ({ children }) => {
|
|
|
6616
6688
|
const menuChildren = childrenArray.filter(
|
|
6617
6689
|
(child) => React38.isValidElement(child) && child.type !== UserMenuTrigger
|
|
6618
6690
|
);
|
|
6619
|
-
return /* @__PURE__ */
|
|
6691
|
+
return /* @__PURE__ */ jsxs33(UserMenuContext.Provider, { value: { open, anchorEl, handleOpen, handleClose }, children: [
|
|
6620
6692
|
triggerChild,
|
|
6621
|
-
/* @__PURE__ */
|
|
6693
|
+
/* @__PURE__ */ jsx83(
|
|
6622
6694
|
Menu3,
|
|
6623
6695
|
{
|
|
6624
6696
|
id: "user-menu",
|
|
@@ -6653,9 +6725,9 @@ import Alert from "@mui/material/Alert";
|
|
|
6653
6725
|
import AlertTitle from "@mui/material/AlertTitle";
|
|
6654
6726
|
import Collapse2 from "@mui/material/Collapse";
|
|
6655
6727
|
import Button4 from "@mui/material/Button";
|
|
6656
|
-
import
|
|
6728
|
+
import Box35 from "@mui/material/Box";
|
|
6657
6729
|
import { styled as styled65 } from "@mui/material/styles";
|
|
6658
|
-
import { jsx as
|
|
6730
|
+
import { jsx as jsx84, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6659
6731
|
var NotificationBannerAlert = styled65(Alert, {
|
|
6660
6732
|
name: "MuiNotificationBanner",
|
|
6661
6733
|
slot: "Root"
|
|
@@ -6684,7 +6756,7 @@ var NotificationBannerAlert = styled65(Alert, {
|
|
|
6684
6756
|
}
|
|
6685
6757
|
}
|
|
6686
6758
|
})));
|
|
6687
|
-
var NotificationBannerContent = styled65(
|
|
6759
|
+
var NotificationBannerContent = styled65(Box35, {
|
|
6688
6760
|
name: "MuiNotificationBanner",
|
|
6689
6761
|
slot: "Content"
|
|
6690
6762
|
})({
|
|
@@ -6722,14 +6794,14 @@ var NotificationBanner = ({
|
|
|
6722
6794
|
setIsVisible(false);
|
|
6723
6795
|
onDismiss == null ? void 0 : onDismiss();
|
|
6724
6796
|
};
|
|
6725
|
-
return /* @__PURE__ */
|
|
6797
|
+
return /* @__PURE__ */ jsx84(Collapse2, { in: isVisible, children: /* @__PURE__ */ jsx84(
|
|
6726
6798
|
NotificationBannerAlert,
|
|
6727
6799
|
{
|
|
6728
6800
|
severity,
|
|
6729
6801
|
variant: "filled",
|
|
6730
6802
|
onClose: handleDismiss,
|
|
6731
6803
|
sx,
|
|
6732
|
-
action: actionLabel && onAction ? /* @__PURE__ */
|
|
6804
|
+
action: actionLabel && onAction ? /* @__PURE__ */ jsx84(
|
|
6733
6805
|
NotificationBannerAction,
|
|
6734
6806
|
{
|
|
6735
6807
|
color: "inherit",
|
|
@@ -6738,18 +6810,18 @@ var NotificationBanner = ({
|
|
|
6738
6810
|
children: actionLabel
|
|
6739
6811
|
}
|
|
6740
6812
|
) : void 0,
|
|
6741
|
-
children: /* @__PURE__ */
|
|
6742
|
-
title && /* @__PURE__ */
|
|
6743
|
-
/* @__PURE__ */
|
|
6813
|
+
children: /* @__PURE__ */ jsxs34(NotificationBannerContent, { children: [
|
|
6814
|
+
title && /* @__PURE__ */ jsx84(AlertTitle, { sx: { mb: 0 }, children: title }),
|
|
6815
|
+
/* @__PURE__ */ jsx84(Box35, { component: "span", children: message })
|
|
6744
6816
|
] })
|
|
6745
6817
|
}
|
|
6746
6818
|
) });
|
|
6747
6819
|
};
|
|
6748
6820
|
|
|
6749
6821
|
// src/components/Form/CardButton.tsx
|
|
6750
|
-
import { Card as Card3, ButtonBase as ButtonBase3, Box as
|
|
6822
|
+
import { Card as Card3, ButtonBase as ButtonBase3, Box as Box36, styled as styled66 } from "@mui/material";
|
|
6751
6823
|
import { CardHeader, CardContent as CardContent2, CardActions, CardMedia } from "@mui/material";
|
|
6752
|
-
import { jsx as
|
|
6824
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6753
6825
|
var StyledCardButton = styled66(Card3, {
|
|
6754
6826
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "disabled"
|
|
6755
6827
|
})(({ theme, selected, disabled, alignItems = "flex-start" }) => ({
|
|
@@ -6778,7 +6850,7 @@ var StyledCardButton = styled66(Card3, {
|
|
|
6778
6850
|
}));
|
|
6779
6851
|
var CardButton = (props) => {
|
|
6780
6852
|
const _a = props, { disabled, selected, alignItems = "flex-start" } = _a, rest = __objRest(_a, ["disabled", "selected", "alignItems"]);
|
|
6781
|
-
return /* @__PURE__ */
|
|
6853
|
+
return /* @__PURE__ */ jsx85(
|
|
6782
6854
|
StyledCardButton,
|
|
6783
6855
|
__spreadValues({
|
|
6784
6856
|
alignItems,
|
|
@@ -6788,36 +6860,36 @@ var CardButton = (props) => {
|
|
|
6788
6860
|
}, rest)
|
|
6789
6861
|
);
|
|
6790
6862
|
};
|
|
6791
|
-
var DisappearingCardButtonContent = (props) => /* @__PURE__ */
|
|
6863
|
+
var DisappearingCardButtonContent = (props) => /* @__PURE__ */ jsx85(Box36, __spreadValues({ className: "creation-flow-card-actions" }, props));
|
|
6792
6864
|
|
|
6793
6865
|
// src/components/Form/Stack.tsx
|
|
6794
6866
|
import { Stack as OxygenStack } from "@mui/material";
|
|
6795
|
-
import { jsx as
|
|
6867
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
6796
6868
|
var Stack2 = (props) => {
|
|
6797
|
-
return /* @__PURE__ */
|
|
6869
|
+
return /* @__PURE__ */ jsx86(OxygenStack, __spreadValues({ spacing: 2 }, props));
|
|
6798
6870
|
};
|
|
6799
6871
|
|
|
6800
6872
|
// src/components/Form/Typography.tsx
|
|
6801
|
-
import { Typography as
|
|
6802
|
-
import { jsx as
|
|
6873
|
+
import { Typography as Typography22 } from "@mui/material";
|
|
6874
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
6803
6875
|
var Header2 = (props) => {
|
|
6804
6876
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
6805
|
-
return /* @__PURE__ */
|
|
6877
|
+
return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "h4", children }));
|
|
6806
6878
|
};
|
|
6807
6879
|
var Subheader = (props) => {
|
|
6808
6880
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
6809
|
-
return /* @__PURE__ */
|
|
6881
|
+
return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "h5", children }));
|
|
6810
6882
|
};
|
|
6811
6883
|
var Body = (props) => {
|
|
6812
6884
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
6813
|
-
return /* @__PURE__ */
|
|
6885
|
+
return /* @__PURE__ */ jsx87(Typography22, __spreadProps(__spreadValues({}, rest), { variant: "body2", children }));
|
|
6814
6886
|
};
|
|
6815
6887
|
|
|
6816
6888
|
// src/components/Form/Section.tsx
|
|
6817
6889
|
import { Card as Card4, CardContent as CardContent3, Stack as Stack3 } from "@mui/material";
|
|
6818
|
-
import { jsx as
|
|
6890
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6819
6891
|
var Section = ({ children }) => {
|
|
6820
|
-
return /* @__PURE__ */
|
|
6892
|
+
return /* @__PURE__ */ jsx88(Card4, { children: /* @__PURE__ */ jsx88(CardContent3, { children: /* @__PURE__ */ jsx88(Stack3, { direction: "column", spacing: 2, children }) }) });
|
|
6821
6893
|
};
|
|
6822
6894
|
|
|
6823
6895
|
// src/components/Form/Wizard.tsx
|
|
@@ -6831,25 +6903,25 @@ import {
|
|
|
6831
6903
|
} from "@mui/material";
|
|
6832
6904
|
import { styled as styled67 } from "@mui/material/styles";
|
|
6833
6905
|
import { useMemo as useMemo7 } from "react";
|
|
6834
|
-
import { jsx as
|
|
6906
|
+
import { jsx as jsx89, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6835
6907
|
var StyledWizardActionsStack = styled67(Stack2)(() => ({
|
|
6836
6908
|
justifyContent: "space-between",
|
|
6837
6909
|
flexGrow: 1
|
|
6838
6910
|
}));
|
|
6839
6911
|
function Wizard({ steps, activeStep, actions }) {
|
|
6840
6912
|
const step = useMemo7(() => activeStep < steps.length ? steps[activeStep] : null, [steps, activeStep]);
|
|
6841
|
-
return /* @__PURE__ */
|
|
6842
|
-
/* @__PURE__ */
|
|
6843
|
-
/* @__PURE__ */
|
|
6844
|
-
/* @__PURE__ */
|
|
6845
|
-
/* @__PURE__ */
|
|
6913
|
+
return /* @__PURE__ */ jsx89(Card5, { children: /* @__PURE__ */ jsx89(CardContent4, { children: /* @__PURE__ */ jsxs35(Stack2, { children: [
|
|
6914
|
+
/* @__PURE__ */ jsx89(Stepper, { activeStep, children: steps.map((step2) => /* @__PURE__ */ jsx89(Step, { children: /* @__PURE__ */ jsx89(StepLabel, { children: step2.label }) }, step2.label)) }),
|
|
6915
|
+
/* @__PURE__ */ jsx89(Divider10, {}),
|
|
6916
|
+
/* @__PURE__ */ jsx89(Stack2, { direction: "row", children: step == null ? void 0 : step.component }),
|
|
6917
|
+
/* @__PURE__ */ jsx89(StyledWizardActionsStack, { direction: "row", children: actions })
|
|
6846
6918
|
] }) }) });
|
|
6847
6919
|
}
|
|
6848
6920
|
|
|
6849
6921
|
// src/components/Form/ElementWrapper.tsx
|
|
6850
6922
|
import { FormControl as FormControl3, FormLabel } from "@mui/material";
|
|
6851
6923
|
import React40 from "react";
|
|
6852
|
-
import { jsx as
|
|
6924
|
+
import { jsx as jsx90, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6853
6925
|
var ElementWrapper = (props) => {
|
|
6854
6926
|
const { label, name, children } = props;
|
|
6855
6927
|
const labelId = `${name}-label`;
|
|
@@ -6860,8 +6932,8 @@ var ElementWrapper = (props) => {
|
|
|
6860
6932
|
}
|
|
6861
6933
|
return child;
|
|
6862
6934
|
});
|
|
6863
|
-
return /* @__PURE__ */
|
|
6864
|
-
/* @__PURE__ */
|
|
6935
|
+
return /* @__PURE__ */ jsxs36(FormControl3, { fullWidth: true, children: [
|
|
6936
|
+
/* @__PURE__ */ jsx90(FormLabel, { id: labelId, htmlFor: name, children: label }),
|
|
6865
6937
|
enhancedChildren
|
|
6866
6938
|
] });
|
|
6867
6939
|
};
|
|
@@ -6886,15 +6958,15 @@ var Form = {
|
|
|
6886
6958
|
|
|
6887
6959
|
// src/components/AppShell/AppShell.tsx
|
|
6888
6960
|
import * as React42 from "react";
|
|
6889
|
-
import
|
|
6961
|
+
import Box41 from "@mui/material/Box";
|
|
6890
6962
|
|
|
6891
6963
|
// src/layouts/Layout.tsx
|
|
6892
|
-
import
|
|
6893
|
-
import { jsx as
|
|
6964
|
+
import Box37 from "@mui/material/Box";
|
|
6965
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
6894
6966
|
function Layout(_a) {
|
|
6895
6967
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6896
|
-
return /* @__PURE__ */
|
|
6897
|
-
|
|
6968
|
+
return /* @__PURE__ */ jsx91(
|
|
6969
|
+
Box37,
|
|
6898
6970
|
__spreadProps(__spreadValues({
|
|
6899
6971
|
sx: __spreadValues({
|
|
6900
6972
|
display: "flex",
|
|
@@ -6909,12 +6981,12 @@ Layout.displayName = "Layout";
|
|
|
6909
6981
|
var Layout_default = Layout;
|
|
6910
6982
|
|
|
6911
6983
|
// src/layouts/LayoutSidebar.tsx
|
|
6912
|
-
import
|
|
6913
|
-
import { jsx as
|
|
6984
|
+
import Box38 from "@mui/material/Box";
|
|
6985
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
6914
6986
|
function LayoutSidebar(_a) {
|
|
6915
6987
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6916
|
-
return /* @__PURE__ */
|
|
6917
|
-
|
|
6988
|
+
return /* @__PURE__ */ jsx92(
|
|
6989
|
+
Box38,
|
|
6918
6990
|
__spreadProps(__spreadValues({
|
|
6919
6991
|
sx: __spreadValues({
|
|
6920
6992
|
display: "flex",
|
|
@@ -6936,12 +7008,12 @@ LayoutNavbar.displayName = "Layout.Navbar";
|
|
|
6936
7008
|
var LayoutNavbar_default = LayoutNavbar;
|
|
6937
7009
|
|
|
6938
7010
|
// src/layouts/LayoutContent.tsx
|
|
6939
|
-
import
|
|
6940
|
-
import { jsx as
|
|
7011
|
+
import Box39 from "@mui/material/Box";
|
|
7012
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
6941
7013
|
function LayoutContent(_a) {
|
|
6942
7014
|
var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
|
|
6943
|
-
return /* @__PURE__ */
|
|
6944
|
-
|
|
7015
|
+
return /* @__PURE__ */ jsx93(
|
|
7016
|
+
Box39,
|
|
6945
7017
|
__spreadProps(__spreadValues({
|
|
6946
7018
|
component: "main",
|
|
6947
7019
|
sx: {
|
|
@@ -6959,12 +7031,12 @@ LayoutContent.displayName = "Layout.Content";
|
|
|
6959
7031
|
var LayoutContent_default = LayoutContent;
|
|
6960
7032
|
|
|
6961
7033
|
// src/layouts/LayoutHeader.tsx
|
|
6962
|
-
import
|
|
6963
|
-
import { jsx as
|
|
7034
|
+
import Box40 from "@mui/material/Box";
|
|
7035
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
6964
7036
|
function LayoutHeader(_a) {
|
|
6965
7037
|
var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
|
|
6966
|
-
return /* @__PURE__ */
|
|
6967
|
-
|
|
7038
|
+
return /* @__PURE__ */ jsx94(
|
|
7039
|
+
Box40,
|
|
6968
7040
|
__spreadProps(__spreadValues({
|
|
6969
7041
|
sx: __spreadValues({
|
|
6970
7042
|
display: "flex"
|
|
@@ -6987,37 +7059,37 @@ var Layout2 = Object.assign(Layout_default, {
|
|
|
6987
7059
|
var layouts_default = Layout2;
|
|
6988
7060
|
|
|
6989
7061
|
// src/components/AppShell/AppShellNavbar.tsx
|
|
6990
|
-
import { Fragment as
|
|
7062
|
+
import { Fragment as Fragment11, jsx as jsx95 } from "react/jsx-runtime";
|
|
6991
7063
|
var AppShellNavbar = ({ children }) => {
|
|
6992
|
-
return /* @__PURE__ */
|
|
7064
|
+
return /* @__PURE__ */ jsx95(Fragment11, { children });
|
|
6993
7065
|
};
|
|
6994
7066
|
AppShellNavbar.displayName = "AppShellNavbar";
|
|
6995
7067
|
|
|
6996
7068
|
// src/components/AppShell/AppShellSidebar.tsx
|
|
6997
|
-
import { Fragment as
|
|
7069
|
+
import { Fragment as Fragment12, jsx as jsx96 } from "react/jsx-runtime";
|
|
6998
7070
|
var AppShellSidebar = ({ children }) => {
|
|
6999
|
-
return /* @__PURE__ */
|
|
7071
|
+
return /* @__PURE__ */ jsx96(Fragment12, { children });
|
|
7000
7072
|
};
|
|
7001
7073
|
AppShellSidebar.displayName = "AppShellSidebar";
|
|
7002
7074
|
|
|
7003
7075
|
// src/components/AppShell/AppShellMain.tsx
|
|
7004
|
-
import { Fragment as
|
|
7076
|
+
import { Fragment as Fragment13, jsx as jsx97 } from "react/jsx-runtime";
|
|
7005
7077
|
var AppShellMain = ({ children }) => {
|
|
7006
|
-
return /* @__PURE__ */
|
|
7078
|
+
return /* @__PURE__ */ jsx97(Fragment13, { children });
|
|
7007
7079
|
};
|
|
7008
7080
|
AppShellMain.displayName = "AppShellMain";
|
|
7009
7081
|
|
|
7010
7082
|
// src/components/AppShell/AppShellFooter.tsx
|
|
7011
|
-
import { Fragment as
|
|
7083
|
+
import { Fragment as Fragment14, jsx as jsx98 } from "react/jsx-runtime";
|
|
7012
7084
|
var AppShellFooter = ({ children }) => {
|
|
7013
|
-
return /* @__PURE__ */
|
|
7085
|
+
return /* @__PURE__ */ jsx98(Fragment14, { children });
|
|
7014
7086
|
};
|
|
7015
7087
|
AppShellFooter.displayName = "AppShellFooter";
|
|
7016
7088
|
|
|
7017
7089
|
// src/components/AppShell/AppShellNotificationPanel.tsx
|
|
7018
|
-
import { Fragment as
|
|
7090
|
+
import { Fragment as Fragment15, jsx as jsx99 } from "react/jsx-runtime";
|
|
7019
7091
|
var AppShellNotificationPanel = ({ children }) => {
|
|
7020
|
-
return /* @__PURE__ */
|
|
7092
|
+
return /* @__PURE__ */ jsx99(Fragment15, { children });
|
|
7021
7093
|
};
|
|
7022
7094
|
AppShellNotificationPanel.displayName = "AppShellNotificationPanel";
|
|
7023
7095
|
|
|
@@ -7121,7 +7193,7 @@ var useAppShell = (options) => {
|
|
|
7121
7193
|
};
|
|
7122
7194
|
|
|
7123
7195
|
// src/components/AppShell/AppShell.tsx
|
|
7124
|
-
import { jsx as
|
|
7196
|
+
import { jsx as jsx100, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7125
7197
|
var SLOT_DISPLAY_NAMES = {
|
|
7126
7198
|
Navbar: "AppShellNavbar",
|
|
7127
7199
|
Sidebar: "AppShellSidebar",
|
|
@@ -7171,12 +7243,12 @@ var AppShell = (_a) => {
|
|
|
7171
7243
|
var _b = _a, { children, sx } = _b, shellOptions = __objRest(_b, ["children", "sx"]);
|
|
7172
7244
|
const shell = useAppShell(shellOptions);
|
|
7173
7245
|
const slots = extractSlots(children);
|
|
7174
|
-
return /* @__PURE__ */
|
|
7175
|
-
slots.navbar && /* @__PURE__ */
|
|
7176
|
-
/* @__PURE__ */
|
|
7177
|
-
slots.sidebar && /* @__PURE__ */
|
|
7178
|
-
/* @__PURE__ */
|
|
7179
|
-
/* @__PURE__ */
|
|
7246
|
+
return /* @__PURE__ */ jsx100(AppShellContext.Provider, { value: shell, children: /* @__PURE__ */ jsxs37(layouts_default, { sx: __spreadValues({ height: "100vh", flexDirection: "column" }, sx), children: [
|
|
7247
|
+
slots.navbar && /* @__PURE__ */ jsx100(layouts_default.Navbar, { children: slots.navbar }),
|
|
7248
|
+
/* @__PURE__ */ jsxs37(layouts_default, { sx: { flex: 1, overflow: "hidden" }, children: [
|
|
7249
|
+
slots.sidebar && /* @__PURE__ */ jsx100(layouts_default.Sidebar, { children: slots.sidebar }),
|
|
7250
|
+
/* @__PURE__ */ jsxs37(layouts_default.Content, { sx: { flex: 1, display: "flex", flexDirection: "column", overflow: "auto" }, children: [
|
|
7251
|
+
/* @__PURE__ */ jsx100(Box41, { sx: { flex: 1, overflow: "auto", display: "flex" }, children: slots.main }),
|
|
7180
7252
|
slots.footer
|
|
7181
7253
|
] })
|
|
7182
7254
|
] }),
|
|
@@ -7204,7 +7276,7 @@ var densityStyles = {
|
|
|
7204
7276
|
// src/components/ListingTable/ListingTable/ListingTableContainer.tsx
|
|
7205
7277
|
import MuiTableContainer from "@mui/material/TableContainer";
|
|
7206
7278
|
import Paper from "@mui/material/Paper";
|
|
7207
|
-
import { jsx as
|
|
7279
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
7208
7280
|
function ListingTableContainer(_a) {
|
|
7209
7281
|
var _b = _a, {
|
|
7210
7282
|
elevation = 1,
|
|
@@ -7216,16 +7288,16 @@ function ListingTableContainer(_a) {
|
|
|
7216
7288
|
"children"
|
|
7217
7289
|
]);
|
|
7218
7290
|
if (disablePaper) {
|
|
7219
|
-
return /* @__PURE__ */
|
|
7291
|
+
return /* @__PURE__ */ jsx101(MuiTableContainer, __spreadProps(__spreadValues({ sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
7220
7292
|
}
|
|
7221
|
-
return /* @__PURE__ */
|
|
7293
|
+
return /* @__PURE__ */ jsx101(MuiTableContainer, __spreadProps(__spreadValues({ component: Paper, elevation, sx: __spreadValues({ width: "100%" }, props.sx) }, props), { children }));
|
|
7222
7294
|
}
|
|
7223
7295
|
var ListingTableContainer_default = ListingTableContainer;
|
|
7224
7296
|
|
|
7225
7297
|
// src/components/ListingTable/ListingTable/ListingTableHead.tsx
|
|
7226
7298
|
import MuiTableHead from "@mui/material/TableHead";
|
|
7227
7299
|
import { styled as styled68 } from "@mui/material/styles";
|
|
7228
|
-
import { jsx as
|
|
7300
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
7229
7301
|
var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
|
|
7230
7302
|
"& .MuiTableCell-head": __spreadValues(__spreadValues({
|
|
7231
7303
|
fontWeight: 600
|
|
@@ -7237,33 +7309,141 @@ var StyledTableHead = styled68(MuiTableHead)(({ theme }) => ({
|
|
|
7237
7309
|
}));
|
|
7238
7310
|
function ListingTableHead(_a) {
|
|
7239
7311
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
7240
|
-
return /* @__PURE__ */
|
|
7312
|
+
return /* @__PURE__ */ jsx102(StyledTableHead, __spreadProps(__spreadValues({}, props), { children }));
|
|
7241
7313
|
}
|
|
7242
7314
|
var ListingTableHead_default = ListingTableHead;
|
|
7243
7315
|
|
|
7244
7316
|
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
7317
|
+
import { Children as Children15, Fragment as Fragment16, isValidElement as isValidElement15 } from "react";
|
|
7245
7318
|
import MuiTableBody from "@mui/material/TableBody";
|
|
7246
|
-
import
|
|
7319
|
+
import MuiTableRow from "@mui/material/TableRow";
|
|
7320
|
+
import MuiTableCell from "@mui/material/TableCell";
|
|
7321
|
+
import Box43 from "@mui/material/Box";
|
|
7322
|
+
import { Search as Search2 } from "@wso2/oxygen-ui-icons-react";
|
|
7323
|
+
|
|
7324
|
+
// src/components/ListingTable/context.ts
|
|
7325
|
+
import * as React43 from "react";
|
|
7326
|
+
var ListingTableContext = React43.createContext(null);
|
|
7327
|
+
ListingTableContext.displayName = "ListingTableContext";
|
|
7328
|
+
var useListingTable = () => {
|
|
7329
|
+
return React43.useContext(ListingTableContext);
|
|
7330
|
+
};
|
|
7331
|
+
var useListingTableRequired = () => {
|
|
7332
|
+
const context = React43.useContext(ListingTableContext);
|
|
7333
|
+
if (!context) {
|
|
7334
|
+
throw new Error(
|
|
7335
|
+
"useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
|
|
7336
|
+
);
|
|
7337
|
+
}
|
|
7338
|
+
return context;
|
|
7339
|
+
};
|
|
7340
|
+
|
|
7341
|
+
// src/components/ListingTable/shared/ListingTableEmptyState.tsx
|
|
7342
|
+
import Box42 from "@mui/material/Box";
|
|
7343
|
+
import Typography23 from "@mui/material/Typography";
|
|
7344
|
+
import { jsx as jsx103, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7345
|
+
function ListingTableEmptyState({
|
|
7346
|
+
title = "No data available",
|
|
7347
|
+
description,
|
|
7348
|
+
illustration,
|
|
7349
|
+
action,
|
|
7350
|
+
minHeight = 300,
|
|
7351
|
+
sx
|
|
7352
|
+
}) {
|
|
7353
|
+
return /* @__PURE__ */ jsxs38(
|
|
7354
|
+
Box42,
|
|
7355
|
+
{
|
|
7356
|
+
sx: __spreadValues({
|
|
7357
|
+
display: "flex",
|
|
7358
|
+
flexDirection: "column",
|
|
7359
|
+
alignItems: "center",
|
|
7360
|
+
justifyContent: "center",
|
|
7361
|
+
minHeight: typeof minHeight === "number" ? `${minHeight}px` : minHeight,
|
|
7362
|
+
p: 4,
|
|
7363
|
+
textAlign: "center"
|
|
7364
|
+
}, sx),
|
|
7365
|
+
children: [
|
|
7366
|
+
illustration && /* @__PURE__ */ jsx103(
|
|
7367
|
+
Box42,
|
|
7368
|
+
{
|
|
7369
|
+
sx: {
|
|
7370
|
+
mb: 2,
|
|
7371
|
+
color: "text.secondary",
|
|
7372
|
+
"& svg": {
|
|
7373
|
+
width: 64,
|
|
7374
|
+
height: 64
|
|
7375
|
+
}
|
|
7376
|
+
},
|
|
7377
|
+
children: illustration
|
|
7378
|
+
}
|
|
7379
|
+
),
|
|
7380
|
+
/* @__PURE__ */ jsx103(Typography23, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
|
|
7381
|
+
description && /* @__PURE__ */ jsx103(Typography23, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
|
|
7382
|
+
action && /* @__PURE__ */ jsx103(Box42, { children: action })
|
|
7383
|
+
]
|
|
7384
|
+
}
|
|
7385
|
+
);
|
|
7386
|
+
}
|
|
7387
|
+
var ListingTableEmptyState_default = ListingTableEmptyState;
|
|
7388
|
+
|
|
7389
|
+
// src/components/ListingTable/ListingTable/ListingTableBody.tsx
|
|
7390
|
+
import { jsx as jsx104 } from "react/jsx-runtime";
|
|
7391
|
+
function hasContent(node) {
|
|
7392
|
+
return Children15.toArray(node).some(
|
|
7393
|
+
(child) => isValidElement15(child) && child.type === Fragment16 ? hasContent(child.props.children) : true
|
|
7394
|
+
);
|
|
7395
|
+
}
|
|
7247
7396
|
function ListingTableBody(_a) {
|
|
7248
|
-
var _b = _a, {
|
|
7249
|
-
|
|
7397
|
+
var _b = _a, {
|
|
7398
|
+
children,
|
|
7399
|
+
searchValue,
|
|
7400
|
+
loading,
|
|
7401
|
+
noSearchResultsText = "No results found",
|
|
7402
|
+
noSearchResultsDescription = "Try a different keyword",
|
|
7403
|
+
noSearchResultsIcon = /* @__PURE__ */ jsx104(Search2, {}),
|
|
7404
|
+
emptyStateColSpan = 1e3
|
|
7405
|
+
} = _b, props = __objRest(_b, [
|
|
7406
|
+
"children",
|
|
7407
|
+
"searchValue",
|
|
7408
|
+
"loading",
|
|
7409
|
+
"noSearchResultsText",
|
|
7410
|
+
"noSearchResultsDescription",
|
|
7411
|
+
"noSearchResultsIcon",
|
|
7412
|
+
"emptyStateColSpan"
|
|
7413
|
+
]);
|
|
7414
|
+
var _a2, _b2;
|
|
7415
|
+
const context = useListingTable();
|
|
7416
|
+
const isSearching = Boolean((_a2 = searchValue != null ? searchValue : context == null ? void 0 : context.searchValue) == null ? void 0 : _a2.trim());
|
|
7417
|
+
const isLoading = (_b2 = loading != null ? loading : context == null ? void 0 : context.loading) != null ? _b2 : false;
|
|
7418
|
+
const hasRows = hasContent(children);
|
|
7419
|
+
if (isSearching && !isLoading && !hasRows) {
|
|
7420
|
+
return /* @__PURE__ */ jsx104(MuiTableBody, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsx104(MuiTableRow, { children: /* @__PURE__ */ jsx104(MuiTableCell, { colSpan: emptyStateColSpan, sx: { border: 0 }, children: /* @__PURE__ */ jsx104(Box43, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ jsx104(
|
|
7421
|
+
ListingTableEmptyState,
|
|
7422
|
+
{
|
|
7423
|
+
title: noSearchResultsText,
|
|
7424
|
+
description: noSearchResultsDescription,
|
|
7425
|
+
illustration: noSearchResultsIcon
|
|
7426
|
+
}
|
|
7427
|
+
) }) }) }) }));
|
|
7428
|
+
}
|
|
7429
|
+
return /* @__PURE__ */ jsx104(MuiTableBody, __spreadProps(__spreadValues({}, props), { children }));
|
|
7250
7430
|
}
|
|
7251
7431
|
var ListingTableBody_default = ListingTableBody;
|
|
7252
7432
|
|
|
7253
7433
|
// src/components/ListingTable/ListingTable/ListingTableFooter.tsx
|
|
7254
7434
|
import MuiTableFooter from "@mui/material/TableFooter";
|
|
7255
|
-
import { jsx as
|
|
7435
|
+
import { jsx as jsx105 } from "react/jsx-runtime";
|
|
7256
7436
|
function ListingTableFooter(_a) {
|
|
7257
7437
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
7258
|
-
return /* @__PURE__ */
|
|
7438
|
+
return /* @__PURE__ */ jsx105(MuiTableFooter, __spreadProps(__spreadValues({}, props), { children }));
|
|
7259
7439
|
}
|
|
7260
7440
|
var ListingTableFooter_default = ListingTableFooter;
|
|
7261
7441
|
|
|
7262
7442
|
// src/components/ListingTable/ListingTable/ListingTableRow.tsx
|
|
7263
|
-
import
|
|
7443
|
+
import MuiTableRow2 from "@mui/material/TableRow";
|
|
7264
7444
|
import { styled as styled69, alpha as alpha2 } from "@mui/material/styles";
|
|
7265
|
-
import { jsx as
|
|
7266
|
-
var StyledTableRow = styled69(
|
|
7445
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
7446
|
+
var StyledTableRow = styled69(MuiTableRow2, {
|
|
7267
7447
|
shouldForwardProp: (prop) => !["clickable", "variant"].includes(prop)
|
|
7268
7448
|
})(({ theme: muiTheme, clickable, variant = "table" }) => {
|
|
7269
7449
|
const theme = muiTheme;
|
|
@@ -7321,15 +7501,15 @@ function ListingTableRow(_a) {
|
|
|
7321
7501
|
"variant",
|
|
7322
7502
|
"children"
|
|
7323
7503
|
]);
|
|
7324
|
-
return /* @__PURE__ */
|
|
7504
|
+
return /* @__PURE__ */ jsx106(StyledTableRow, __spreadProps(__spreadValues({ clickable, variant }, props), { children }));
|
|
7325
7505
|
}
|
|
7326
7506
|
var ListingTableRow_default = ListingTableRow;
|
|
7327
7507
|
|
|
7328
7508
|
// src/components/ListingTable/ListingTable/ListingTableCell.tsx
|
|
7329
|
-
import
|
|
7509
|
+
import MuiTableCell2 from "@mui/material/TableCell";
|
|
7330
7510
|
import { styled as styled70 } from "@mui/material/styles";
|
|
7331
|
-
import { jsx as
|
|
7332
|
-
var StyledTableCell = styled70(
|
|
7511
|
+
import { jsx as jsx107 } from "react/jsx-runtime";
|
|
7512
|
+
var StyledTableCell = styled70(MuiTableCell2, {
|
|
7333
7513
|
shouldForwardProp: (prop) => {
|
|
7334
7514
|
const excludedProps = ["truncate", "maxWidth"];
|
|
7335
7515
|
return !excludedProps.some((excluded) => excluded === prop);
|
|
@@ -7351,7 +7531,7 @@ function ListingTableCell(_a) {
|
|
|
7351
7531
|
"maxWidth",
|
|
7352
7532
|
"children"
|
|
7353
7533
|
]);
|
|
7354
|
-
return /* @__PURE__ */
|
|
7534
|
+
return /* @__PURE__ */ jsx107(StyledTableCell, __spreadProps(__spreadValues({ truncate, maxWidth }, props), { children }));
|
|
7355
7535
|
}
|
|
7356
7536
|
var ListingTableCell_default = ListingTableCell;
|
|
7357
7537
|
|
|
@@ -7359,26 +7539,7 @@ var ListingTableCell_default = ListingTableCell;
|
|
|
7359
7539
|
import { useCallback as useCallback5 } from "react";
|
|
7360
7540
|
import { DataGrid } from "@mui/x-data-grid";
|
|
7361
7541
|
import { styled as styled71, alpha as alpha3 } from "@mui/material/styles";
|
|
7362
|
-
|
|
7363
|
-
// src/components/ListingTable/context.ts
|
|
7364
|
-
import * as React43 from "react";
|
|
7365
|
-
var ListingTableContext = React43.createContext(null);
|
|
7366
|
-
ListingTableContext.displayName = "ListingTableContext";
|
|
7367
|
-
var useListingTable = () => {
|
|
7368
|
-
return React43.useContext(ListingTableContext);
|
|
7369
|
-
};
|
|
7370
|
-
var useListingTableRequired = () => {
|
|
7371
|
-
const context = React43.useContext(ListingTableContext);
|
|
7372
|
-
if (!context) {
|
|
7373
|
-
throw new Error(
|
|
7374
|
-
"useListingTableRequired must be used within a ListingTable.Provider. Use useListingTable() for optional context access."
|
|
7375
|
-
);
|
|
7376
|
-
}
|
|
7377
|
-
return context;
|
|
7378
|
-
};
|
|
7379
|
-
|
|
7380
|
-
// src/components/ListingTable/ListingTable/ListingTableDataGrid.tsx
|
|
7381
|
-
import { jsx as jsx106 } from "react/jsx-runtime";
|
|
7542
|
+
import { jsx as jsx108 } from "react/jsx-runtime";
|
|
7382
7543
|
var StyledDataGrid = styled71(DataGrid)(({ theme }) => ({
|
|
7383
7544
|
// Remove outer border for seamless integration within ListingTable.Container
|
|
7384
7545
|
border: "none",
|
|
@@ -7536,7 +7697,7 @@ function ListingTableDataGrid(_a) {
|
|
|
7536
7697
|
"& .MuiDataGrid-cell": { padding: cellPadding }
|
|
7537
7698
|
};
|
|
7538
7699
|
const mergedSx = variant === "card" ? [cardSx, densitySx, ...Array.isArray(sx) ? sx : [sx]] : [densitySx, ...Array.isArray(sx) ? sx : [sx]];
|
|
7539
|
-
return /* @__PURE__ */
|
|
7700
|
+
return /* @__PURE__ */ jsx108(
|
|
7540
7701
|
StyledDataGrid,
|
|
7541
7702
|
__spreadValues({
|
|
7542
7703
|
density,
|
|
@@ -7552,12 +7713,12 @@ var ListingTableDataGrid_default = ListingTableDataGrid;
|
|
|
7552
7713
|
|
|
7553
7714
|
// src/components/ListingTable/shared/ListingTableToolbar.tsx
|
|
7554
7715
|
import { useState as useState10, useCallback as useCallback6 } from "react";
|
|
7555
|
-
import
|
|
7716
|
+
import Box44 from "@mui/material/Box";
|
|
7556
7717
|
import TextField3 from "@mui/material/TextField";
|
|
7557
7718
|
import InputAdornment3 from "@mui/material/InputAdornment";
|
|
7558
7719
|
import IconButton8 from "@mui/material/IconButton";
|
|
7559
|
-
import { Search as
|
|
7560
|
-
import { Fragment as
|
|
7720
|
+
import { Search as Search3, X as X4 } from "@wso2/oxygen-ui-icons-react";
|
|
7721
|
+
import { Fragment as Fragment17, jsx as jsx109, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7561
7722
|
function ListingTableToolbar({
|
|
7562
7723
|
showSearch = false,
|
|
7563
7724
|
searchSlot,
|
|
@@ -7598,7 +7759,7 @@ function ListingTableToolbar({
|
|
|
7598
7759
|
return searchSlot;
|
|
7599
7760
|
}
|
|
7600
7761
|
if (showSearch) {
|
|
7601
|
-
return /* @__PURE__ */
|
|
7762
|
+
return /* @__PURE__ */ jsx109(
|
|
7602
7763
|
TextField3,
|
|
7603
7764
|
{
|
|
7604
7765
|
size: "small",
|
|
@@ -7614,8 +7775,8 @@ function ListingTableToolbar({
|
|
|
7614
7775
|
"aria-label": searchPlaceholder || "Search"
|
|
7615
7776
|
},
|
|
7616
7777
|
input: {
|
|
7617
|
-
startAdornment: /* @__PURE__ */
|
|
7618
|
-
endAdornment: searchValue ? /* @__PURE__ */
|
|
7778
|
+
startAdornment: /* @__PURE__ */ jsx109(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx109(Search3, { size: 18, "aria-hidden": "true" }) }),
|
|
7779
|
+
endAdornment: searchValue ? /* @__PURE__ */ jsx109(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx109(IconButton8, { size: "small", onClick: handleClearSearch, edge: "end", "aria-label": "Clear search", children: /* @__PURE__ */ jsx109(X4, { size: 16, "aria-hidden": "true" }) }) }) : null
|
|
7619
7780
|
}
|
|
7620
7781
|
}
|
|
7621
7782
|
}
|
|
@@ -7623,8 +7784,8 @@ function ListingTableToolbar({
|
|
|
7623
7784
|
}
|
|
7624
7785
|
return null;
|
|
7625
7786
|
};
|
|
7626
|
-
return /* @__PURE__ */
|
|
7627
|
-
|
|
7787
|
+
return /* @__PURE__ */ jsxs39(
|
|
7788
|
+
Box44,
|
|
7628
7789
|
{
|
|
7629
7790
|
role: "toolbar",
|
|
7630
7791
|
"aria-label": "Table toolbar",
|
|
@@ -7639,9 +7800,9 @@ function ListingTableToolbar({
|
|
|
7639
7800
|
children: [
|
|
7640
7801
|
renderSearch(),
|
|
7641
7802
|
children,
|
|
7642
|
-
actions && /* @__PURE__ */
|
|
7643
|
-
/* @__PURE__ */
|
|
7644
|
-
/* @__PURE__ */
|
|
7803
|
+
actions && /* @__PURE__ */ jsxs39(Fragment17, { children: [
|
|
7804
|
+
/* @__PURE__ */ jsx109(Box44, { sx: { flex: 1 } }),
|
|
7805
|
+
/* @__PURE__ */ jsx109(Box44, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: actions })
|
|
7645
7806
|
] })
|
|
7646
7807
|
]
|
|
7647
7808
|
}
|
|
@@ -7649,65 +7810,17 @@ function ListingTableToolbar({
|
|
|
7649
7810
|
}
|
|
7650
7811
|
var ListingTableToolbar_default = ListingTableToolbar;
|
|
7651
7812
|
|
|
7652
|
-
// src/components/ListingTable/shared/ListingTableEmptyState.tsx
|
|
7653
|
-
import Box42 from "@mui/material/Box";
|
|
7654
|
-
import Typography22 from "@mui/material/Typography";
|
|
7655
|
-
import { jsx as jsx108, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7656
|
-
function ListingTableEmptyState({
|
|
7657
|
-
title = "No data available",
|
|
7658
|
-
description,
|
|
7659
|
-
illustration,
|
|
7660
|
-
action,
|
|
7661
|
-
minHeight = 300,
|
|
7662
|
-
sx
|
|
7663
|
-
}) {
|
|
7664
|
-
return /* @__PURE__ */ jsxs38(
|
|
7665
|
-
Box42,
|
|
7666
|
-
{
|
|
7667
|
-
sx: __spreadValues({
|
|
7668
|
-
display: "flex",
|
|
7669
|
-
flexDirection: "column",
|
|
7670
|
-
alignItems: "center",
|
|
7671
|
-
justifyContent: "center",
|
|
7672
|
-
minHeight: typeof minHeight === "number" ? `${minHeight}px` : minHeight,
|
|
7673
|
-
p: 4,
|
|
7674
|
-
textAlign: "center"
|
|
7675
|
-
}, sx),
|
|
7676
|
-
children: [
|
|
7677
|
-
illustration && /* @__PURE__ */ jsx108(
|
|
7678
|
-
Box42,
|
|
7679
|
-
{
|
|
7680
|
-
sx: {
|
|
7681
|
-
mb: 2,
|
|
7682
|
-
color: "text.secondary",
|
|
7683
|
-
"& svg": {
|
|
7684
|
-
width: 64,
|
|
7685
|
-
height: 64
|
|
7686
|
-
}
|
|
7687
|
-
},
|
|
7688
|
-
children: illustration
|
|
7689
|
-
}
|
|
7690
|
-
),
|
|
7691
|
-
/* @__PURE__ */ jsx108(Typography22, { variant: "h6", component: "div", sx: { mb: description ? 1 : 0, fontWeight: 500 }, children: title }),
|
|
7692
|
-
description && /* @__PURE__ */ jsx108(Typography22, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0, maxWidth: 400 }, children: description }),
|
|
7693
|
-
action && /* @__PURE__ */ jsx108(Box42, { children: action })
|
|
7694
|
-
]
|
|
7695
|
-
}
|
|
7696
|
-
);
|
|
7697
|
-
}
|
|
7698
|
-
var ListingTableEmptyState_default = ListingTableEmptyState;
|
|
7699
|
-
|
|
7700
7813
|
// src/components/ListingTable/shared/ListingTableDensityControl.tsx
|
|
7701
7814
|
import { useCallback as useCallback7 } from "react";
|
|
7702
7815
|
import ToggleButton from "@mui/material/ToggleButton";
|
|
7703
7816
|
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
|
|
7704
|
-
import
|
|
7817
|
+
import Tooltip9 from "@mui/material/Tooltip";
|
|
7705
7818
|
import { AlignJustify, Menu as Menu4, List as List4 } from "@wso2/oxygen-ui-icons-react";
|
|
7706
|
-
import { jsx as
|
|
7819
|
+
import { jsx as jsx110 } from "react/jsx-runtime";
|
|
7707
7820
|
var densityOptions = [
|
|
7708
|
-
{ value: "compact", label: "Compact", icon: /* @__PURE__ */
|
|
7709
|
-
{ value: "standard", label: "Standard", icon: /* @__PURE__ */
|
|
7710
|
-
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */
|
|
7821
|
+
{ value: "compact", label: "Compact", icon: /* @__PURE__ */ jsx110(AlignJustify, { size: 18 }) },
|
|
7822
|
+
{ value: "standard", label: "Standard", icon: /* @__PURE__ */ jsx110(Menu4, { size: 18 }) },
|
|
7823
|
+
{ value: "comfortable", label: "Comfortable", icon: /* @__PURE__ */ jsx110(List4, { size: 18 }) }
|
|
7711
7824
|
];
|
|
7712
7825
|
function ListingTableDensityControl({
|
|
7713
7826
|
value: valueProp,
|
|
@@ -7727,7 +7840,7 @@ function ListingTableDensityControl({
|
|
|
7727
7840
|
},
|
|
7728
7841
|
[effectiveOnChange]
|
|
7729
7842
|
);
|
|
7730
|
-
return /* @__PURE__ */
|
|
7843
|
+
return /* @__PURE__ */ jsx110(
|
|
7731
7844
|
ToggleButtonGroup,
|
|
7732
7845
|
{
|
|
7733
7846
|
value,
|
|
@@ -7736,7 +7849,7 @@ function ListingTableDensityControl({
|
|
|
7736
7849
|
size,
|
|
7737
7850
|
sx,
|
|
7738
7851
|
"aria-label": "Table density",
|
|
7739
|
-
children: densityOptions.map((option) => /* @__PURE__ */
|
|
7852
|
+
children: densityOptions.map((option) => /* @__PURE__ */ jsx110(ToggleButton, { value: option.value, "aria-label": option.label, children: /* @__PURE__ */ jsx110(Tooltip9, { title: option.label, children: /* @__PURE__ */ jsx110("span", { style: { display: "flex", alignItems: "center" }, "aria-hidden": "true", children: option.icon }) }) }, option.value))
|
|
7740
7853
|
}
|
|
7741
7854
|
);
|
|
7742
7855
|
}
|
|
@@ -7746,7 +7859,7 @@ var ListingTableDensityControl_default = ListingTableDensityControl;
|
|
|
7746
7859
|
import { useCallback as useCallback8 } from "react";
|
|
7747
7860
|
import MuiTableSortLabel from "@mui/material/TableSortLabel";
|
|
7748
7861
|
import { styled as styled72 } from "@mui/material/styles";
|
|
7749
|
-
import { jsx as
|
|
7862
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
|
7750
7863
|
var StyledTableSortLabel = styled72(MuiTableSortLabel)(({ theme }) => ({
|
|
7751
7864
|
color: "inherit !important",
|
|
7752
7865
|
"&.Mui-active": {
|
|
@@ -7790,13 +7903,13 @@ function ListingTableSortLabel(_a) {
|
|
|
7790
7903
|
},
|
|
7791
7904
|
[onClickProp, field, tableContext, active, direction]
|
|
7792
7905
|
);
|
|
7793
|
-
return /* @__PURE__ */
|
|
7906
|
+
return /* @__PURE__ */ jsx111(StyledTableSortLabel, __spreadProps(__spreadValues({ active, direction, onClick: handleClick, hideSortIcon }, props), { children }));
|
|
7794
7907
|
}
|
|
7795
7908
|
var ListingTableSortLabel_default = ListingTableSortLabel;
|
|
7796
7909
|
|
|
7797
7910
|
// src/components/ListingTable/shared/ListingTableRowActions.tsx
|
|
7798
|
-
import
|
|
7799
|
-
import { jsx as
|
|
7911
|
+
import Box45 from "@mui/material/Box";
|
|
7912
|
+
import { jsx as jsx112 } from "react/jsx-runtime";
|
|
7800
7913
|
var alignmentMap = {
|
|
7801
7914
|
left: "flex-start",
|
|
7802
7915
|
center: "center",
|
|
@@ -7808,8 +7921,8 @@ function ListingTableRowActions({
|
|
|
7808
7921
|
align = "right",
|
|
7809
7922
|
sx
|
|
7810
7923
|
}) {
|
|
7811
|
-
return /* @__PURE__ */
|
|
7812
|
-
|
|
7924
|
+
return /* @__PURE__ */ jsx112(
|
|
7925
|
+
Box45,
|
|
7813
7926
|
{
|
|
7814
7927
|
className: "table-row-actions",
|
|
7815
7928
|
sx: __spreadValues(__spreadValues({
|
|
@@ -7832,9 +7945,9 @@ function ListingTableRowActions({
|
|
|
7832
7945
|
var ListingTableRowActions_default = ListingTableRowActions;
|
|
7833
7946
|
|
|
7834
7947
|
// src/components/ListingTable/shared/ListingTableCellIcon.tsx
|
|
7835
|
-
import
|
|
7836
|
-
import
|
|
7837
|
-
import { Fragment as
|
|
7948
|
+
import Box46 from "@mui/material/Box";
|
|
7949
|
+
import Typography24 from "@mui/material/Typography";
|
|
7950
|
+
import { Fragment as Fragment18, jsx as jsx113, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7838
7951
|
function ListingTableCellIcon({
|
|
7839
7952
|
icon,
|
|
7840
7953
|
primary,
|
|
@@ -7843,8 +7956,8 @@ function ListingTableCellIcon({
|
|
|
7843
7956
|
iconSx,
|
|
7844
7957
|
sx
|
|
7845
7958
|
}) {
|
|
7846
|
-
const iconElement = /* @__PURE__ */
|
|
7847
|
-
|
|
7959
|
+
const iconElement = /* @__PURE__ */ jsx113(
|
|
7960
|
+
Box46,
|
|
7848
7961
|
{
|
|
7849
7962
|
sx: __spreadValues({
|
|
7850
7963
|
display: "flex",
|
|
@@ -7856,9 +7969,9 @@ function ListingTableCellIcon({
|
|
|
7856
7969
|
children: icon
|
|
7857
7970
|
}
|
|
7858
7971
|
);
|
|
7859
|
-
const textContent = /* @__PURE__ */
|
|
7860
|
-
/* @__PURE__ */
|
|
7861
|
-
|
|
7972
|
+
const textContent = /* @__PURE__ */ jsxs40(Box46, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
7973
|
+
/* @__PURE__ */ jsx113(
|
|
7974
|
+
Typography24,
|
|
7862
7975
|
{
|
|
7863
7976
|
variant: "body2",
|
|
7864
7977
|
component: "div",
|
|
@@ -7871,8 +7984,8 @@ function ListingTableCellIcon({
|
|
|
7871
7984
|
children: primary
|
|
7872
7985
|
}
|
|
7873
7986
|
),
|
|
7874
|
-
secondary && /* @__PURE__ */
|
|
7875
|
-
|
|
7987
|
+
secondary && /* @__PURE__ */ jsx113(
|
|
7988
|
+
Typography24,
|
|
7876
7989
|
{
|
|
7877
7990
|
variant: "caption",
|
|
7878
7991
|
component: "div",
|
|
@@ -7886,8 +7999,8 @@ function ListingTableCellIcon({
|
|
|
7886
7999
|
}
|
|
7887
8000
|
)
|
|
7888
8001
|
] });
|
|
7889
|
-
return /* @__PURE__ */
|
|
7890
|
-
|
|
8002
|
+
return /* @__PURE__ */ jsx113(
|
|
8003
|
+
Box46,
|
|
7891
8004
|
{
|
|
7892
8005
|
sx: __spreadValues({
|
|
7893
8006
|
display: "flex",
|
|
@@ -7895,10 +8008,10 @@ function ListingTableCellIcon({
|
|
|
7895
8008
|
gap: 1.5,
|
|
7896
8009
|
minWidth: 0
|
|
7897
8010
|
}, sx),
|
|
7898
|
-
children: iconPosition === "left" ? /* @__PURE__ */
|
|
8011
|
+
children: iconPosition === "left" ? /* @__PURE__ */ jsxs40(Fragment18, { children: [
|
|
7899
8012
|
iconElement,
|
|
7900
8013
|
textContent
|
|
7901
|
-
] }) : /* @__PURE__ */
|
|
8014
|
+
] }) : /* @__PURE__ */ jsxs40(Fragment18, { children: [
|
|
7902
8015
|
textContent,
|
|
7903
8016
|
iconElement
|
|
7904
8017
|
] })
|
|
@@ -7909,7 +8022,7 @@ var ListingTableCellIcon_default = ListingTableCellIcon;
|
|
|
7909
8022
|
|
|
7910
8023
|
// src/components/ListingTable/ListingTableProvider.tsx
|
|
7911
8024
|
import { useMemo as useMemo9 } from "react";
|
|
7912
|
-
import { jsx as
|
|
8025
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
|
7913
8026
|
function ListingTableProvider({
|
|
7914
8027
|
children,
|
|
7915
8028
|
// Search
|
|
@@ -8012,11 +8125,11 @@ function ListingTableProvider({
|
|
|
8012
8125
|
loading
|
|
8013
8126
|
]
|
|
8014
8127
|
);
|
|
8015
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ jsx114(ListingTableContext.Provider, { value: contextValue, children });
|
|
8016
8129
|
}
|
|
8017
8130
|
|
|
8018
8131
|
// src/components/ListingTable/ListingTable/ListingTable.tsx
|
|
8019
|
-
import { jsx as
|
|
8132
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
8020
8133
|
var StyledTable = styled73(MuiTable, {
|
|
8021
8134
|
shouldForwardProp: (prop) => {
|
|
8022
8135
|
const excludedProps = ["variant", "density", "striped", "bordered"];
|
|
@@ -8070,7 +8183,7 @@ function ListingTable(_a) {
|
|
|
8070
8183
|
"children",
|
|
8071
8184
|
"sx"
|
|
8072
8185
|
]);
|
|
8073
|
-
return /* @__PURE__ */
|
|
8186
|
+
return /* @__PURE__ */ jsx115(
|
|
8074
8187
|
StyledTable,
|
|
8075
8188
|
__spreadProps(__spreadValues({
|
|
8076
8189
|
variant,
|
|
@@ -8104,7 +8217,7 @@ var ListingTable_default = ListingTableCompound;
|
|
|
8104
8217
|
// src/animations/ParticleBackground/ParticleBackground.tsx
|
|
8105
8218
|
import { useEffect as useEffect8, useRef as useRef4 } from "react";
|
|
8106
8219
|
import { useColorScheme as useColorScheme4 } from "@mui/material/styles";
|
|
8107
|
-
import { jsx as
|
|
8220
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
8108
8221
|
var ParticleBackground = ({
|
|
8109
8222
|
opacity = 0.5,
|
|
8110
8223
|
baseDensity = 0.12,
|
|
@@ -8315,7 +8428,7 @@ var ParticleBackground = ({
|
|
|
8315
8428
|
cancelAnimationFrame(animationFrameId);
|
|
8316
8429
|
};
|
|
8317
8430
|
}, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
|
|
8318
|
-
return /* @__PURE__ */
|
|
8431
|
+
return /* @__PURE__ */ jsx116(
|
|
8319
8432
|
"canvas",
|
|
8320
8433
|
{
|
|
8321
8434
|
ref: canvasRef,
|
|
@@ -8442,6 +8555,7 @@ export {
|
|
|
8442
8555
|
PaleGray_default as PaleGrayTheme,
|
|
8443
8556
|
PaleIndigo_default as PaleIndigoTheme,
|
|
8444
8557
|
ParticleBackground,
|
|
8558
|
+
RelativeTime_default as RelativeTime,
|
|
8445
8559
|
SearchBar_default as SearchBar,
|
|
8446
8560
|
SearchBarWithAdvancedFilter_default as SearchBarWithAdvancedFilter,
|
|
8447
8561
|
Sidebar,
|