@wavelengthusaf/components 2.3.3 → 2.3.5
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/README.md +15 -4
- package/dist/cjs/index.cjs +83 -27
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +6 -4
- package/dist/components/modals/WavelengthDropdown.d.ts +1 -1
- package/dist/components/modals/WavelengthDropdown.d.ts.map +1 -1
- package/dist/components/modals/WavelengthPopUpMenu.d.ts +3 -2
- package/dist/components/modals/WavelengthPopUpMenu.d.ts.map +1 -1
- package/dist/components/search/WavelengthSearch.d.ts +2 -1
- package/dist/components/search/WavelengthSearch.d.ts.map +1 -1
- package/dist/esm/index.d.ts +6 -4
- package/dist/esm/index.js +93 -37
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -14,17 +14,28 @@ npm install @wavelengthusaf/components
|
|
|
14
14
|
|
|
15
15
|
## Release Notes
|
|
16
16
|
|
|
17
|
+
### 2.3.5
|
|
18
|
+
|
|
19
|
+
- Updated WavelengthDropdown by adding default values to some of the props
|
|
20
|
+
- Fixed bugs related to WavelengthSearchbar, no longer 2 closing icons for some configurations
|
|
21
|
+
- Updated WavelengthPopupMenu , each list item can have a hover color for text, also fixed underlining of link type issue
|
|
22
|
+
- Standard Snackbar is not aligned properly, the Snackbars with icons are also aligned properly
|
|
23
|
+
|
|
24
|
+
### 2.3.4
|
|
25
|
+
|
|
26
|
+
- Update watch command for devs, and updated vite configuration
|
|
27
|
+
|
|
17
28
|
### 2.3.1 - 2.3.3
|
|
18
29
|
|
|
19
30
|
- Fixed a bug relating to exports not working.
|
|
20
31
|
|
|
21
|
-
### 2.3.0
|
|
32
|
+
### 2.3.0
|
|
22
33
|
|
|
23
|
-
- Added `DefaultPagination` component to package for numbered pagination navigation, and modified PagePagination for testbed.
|
|
34
|
+
- Added `DefaultPagination` component to package for numbered pagination navigation, and modified PagePagination for testbed.
|
|
24
35
|
|
|
25
|
-
### 2.2.5
|
|
36
|
+
### 2.2.5
|
|
26
37
|
|
|
27
|
-
- Readded `DefaultIcon` component to package.
|
|
38
|
+
- Readded `DefaultIcon` component to package.
|
|
28
39
|
|
|
29
40
|
### 2.2.2 - 2.2.4
|
|
30
41
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -2996,6 +2996,7 @@ var _ListItem = require('@mui/material/ListItem'); var _ListItem2 = _interopRequ
|
|
|
2996
2996
|
var _Popper = require('@mui/material/Popper'); var _Popper2 = _interopRequireDefault(_Popper);
|
|
2997
2997
|
var _Autocomplete = require('@mui/material/Autocomplete'); var _Autocomplete2 = _interopRequireDefault(_Autocomplete);
|
|
2998
2998
|
var _ListItemText = require('@mui/material/ListItemText'); var _ListItemText2 = _interopRequireDefault(_ListItemText);
|
|
2999
|
+
var _styledcomponents = require('styled-components'); var _styledcomponents2 = _interopRequireDefault(_styledcomponents);
|
|
2999
3000
|
|
|
3000
3001
|
|
|
3001
3002
|
var CustomPopper = (props) => {
|
|
@@ -3035,6 +3036,12 @@ var CustomPopper = (props) => {
|
|
|
3035
3036
|
}
|
|
3036
3037
|
);
|
|
3037
3038
|
};
|
|
3039
|
+
var AutocompleteCustomEndAdornment = _styledcomponents2.default.call(void 0, "div")({
|
|
3040
|
+
position: "absolute",
|
|
3041
|
+
right: "12px",
|
|
3042
|
+
top: "50%",
|
|
3043
|
+
transform: "translate(0, -50%)"
|
|
3044
|
+
});
|
|
3038
3045
|
function WavelengthSearch({
|
|
3039
3046
|
id,
|
|
3040
3047
|
mode,
|
|
@@ -3055,7 +3062,8 @@ function WavelengthSearch({
|
|
|
3055
3062
|
textColor,
|
|
3056
3063
|
fontSize,
|
|
3057
3064
|
backgroundColor: backgroundColor2,
|
|
3058
|
-
iconPos = "end"
|
|
3065
|
+
iconPos = "end",
|
|
3066
|
+
clearIconMarginRight
|
|
3059
3067
|
}) {
|
|
3060
3068
|
const palette2 = getPalette();
|
|
3061
3069
|
borderColor2 = borderColor2 ? borderColor2 : "#2D3140";
|
|
@@ -3083,7 +3091,12 @@ function WavelengthSearch({
|
|
|
3083
3091
|
return returnVal;
|
|
3084
3092
|
},
|
|
3085
3093
|
options,
|
|
3086
|
-
sx: {
|
|
3094
|
+
sx: {
|
|
3095
|
+
width: width2,
|
|
3096
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3097
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "45px"
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3087
3100
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3088
3101
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3089
3102
|
_TextField2.default,
|
|
@@ -3095,7 +3108,7 @@ function WavelengthSearch({
|
|
|
3095
3108
|
...params.InputProps,
|
|
3096
3109
|
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3097
3110
|
type: "search",
|
|
3098
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3111
|
+
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _IconButton2.default, { sx: { color: "white" }, children }) })
|
|
3099
3112
|
},
|
|
3100
3113
|
sx: {
|
|
3101
3114
|
"& .MuiInputBase-root": {
|
|
@@ -3148,7 +3161,12 @@ function WavelengthSearch({
|
|
|
3148
3161
|
return returnVal;
|
|
3149
3162
|
},
|
|
3150
3163
|
options,
|
|
3151
|
-
sx: {
|
|
3164
|
+
sx: {
|
|
3165
|
+
width: width2,
|
|
3166
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3167
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3168
|
+
}
|
|
3169
|
+
},
|
|
3152
3170
|
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
3153
3171
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3154
3172
|
_TextField2.default,
|
|
@@ -3160,6 +3178,7 @@ function WavelengthSearch({
|
|
|
3160
3178
|
...params.InputProps,
|
|
3161
3179
|
style: { borderRadius: borderRadius2, color: textColor, backgroundColor: backgroundColor2, height: height2, fontSize },
|
|
3162
3180
|
type: "search",
|
|
3181
|
+
endAdornment: null,
|
|
3163
3182
|
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Icon2.default, { sx: { color: textColor, paddingRight: "0px" }, children }) })
|
|
3164
3183
|
},
|
|
3165
3184
|
sx: {
|
|
@@ -3213,7 +3232,12 @@ function WavelengthSearch({
|
|
|
3213
3232
|
return returnVal;
|
|
3214
3233
|
},
|
|
3215
3234
|
options,
|
|
3216
|
-
sx: {
|
|
3235
|
+
sx: {
|
|
3236
|
+
width: width2,
|
|
3237
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3238
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "50px"
|
|
3239
|
+
}
|
|
3240
|
+
},
|
|
3217
3241
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3218
3242
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3219
3243
|
_TextField2.default,
|
|
@@ -3233,7 +3257,7 @@ function WavelengthSearch({
|
|
|
3233
3257
|
...params.InputProps,
|
|
3234
3258
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3235
3259
|
type: "search",
|
|
3236
|
-
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3260
|
+
endAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteCustomEndAdornment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3237
3261
|
_IconButton2.default,
|
|
3238
3262
|
{
|
|
3239
3263
|
sx: { color: textColor },
|
|
@@ -3295,7 +3319,12 @@ function WavelengthSearch({
|
|
|
3295
3319
|
return returnVal;
|
|
3296
3320
|
},
|
|
3297
3321
|
options,
|
|
3298
|
-
sx: {
|
|
3322
|
+
sx: {
|
|
3323
|
+
width: width2,
|
|
3324
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3325
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3326
|
+
}
|
|
3327
|
+
},
|
|
3299
3328
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3300
3329
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3301
3330
|
_TextField2.default,
|
|
@@ -3315,6 +3344,7 @@ function WavelengthSearch({
|
|
|
3315
3344
|
...params.InputProps,
|
|
3316
3345
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3317
3346
|
type: "search",
|
|
3347
|
+
endAdornment: null,
|
|
3318
3348
|
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _InputAdornment2.default, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3319
3349
|
_IconButton2.default,
|
|
3320
3350
|
{
|
|
@@ -3380,7 +3410,12 @@ function WavelengthSearch({
|
|
|
3380
3410
|
return returnVal;
|
|
3381
3411
|
},
|
|
3382
3412
|
options,
|
|
3383
|
-
sx: {
|
|
3413
|
+
sx: {
|
|
3414
|
+
width: width2,
|
|
3415
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3416
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3417
|
+
}
|
|
3418
|
+
},
|
|
3384
3419
|
renderOption: (props, results) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: results.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: results.title, secondary: results.subtitle })),
|
|
3385
3420
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3386
3421
|
_TextField2.default,
|
|
@@ -3397,6 +3432,9 @@ function WavelengthSearch({
|
|
|
3397
3432
|
"& .MuiInputBase-root": {
|
|
3398
3433
|
height: height2
|
|
3399
3434
|
},
|
|
3435
|
+
"& .MuiAutocomplete-endAdornment": {
|
|
3436
|
+
display: "none"
|
|
3437
|
+
},
|
|
3400
3438
|
"&.MuiTextField-root": {
|
|
3401
3439
|
"& label": { color: `${textColor}` },
|
|
3402
3440
|
"& label.Mui-focused": {
|
|
@@ -3444,7 +3482,12 @@ function WavelengthSearch({
|
|
|
3444
3482
|
return returnVal;
|
|
3445
3483
|
},
|
|
3446
3484
|
options,
|
|
3447
|
-
sx: {
|
|
3485
|
+
sx: {
|
|
3486
|
+
width: width2,
|
|
3487
|
+
"&.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root": {
|
|
3488
|
+
paddingRight: clearIconMarginRight ? clearIconMarginRight : "15px"
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3448
3491
|
renderOption: (props, options2) => /* @__PURE__ */ _react.createElement.call(void 0, _ListItem2.default, { ...props, key: options2.id }, /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ListItemText2.default, { primary: options2.title, secondary: options2.subtitle })),
|
|
3449
3492
|
renderInput: (params) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3450
3493
|
_TextField2.default,
|
|
@@ -3462,6 +3505,7 @@ function WavelengthSearch({
|
|
|
3462
3505
|
size,
|
|
3463
3506
|
InputProps: {
|
|
3464
3507
|
...params.InputProps,
|
|
3508
|
+
endAdornment: null,
|
|
3465
3509
|
style: { borderRadius: borderRadius2, color: textColor, fontSize },
|
|
3466
3510
|
type: "search"
|
|
3467
3511
|
},
|
|
@@ -4434,7 +4478,7 @@ var _MenuItem = require('@mui/material/MenuItem'); var _MenuItem2 = _interopRequ
|
|
|
4434
4478
|
|
|
4435
4479
|
var _Slide = require('@mui/material/Slide'); var _Slide2 = _interopRequireDefault(_Slide);
|
|
4436
4480
|
|
|
4437
|
-
|
|
4481
|
+
|
|
4438
4482
|
|
|
4439
4483
|
|
|
4440
4484
|
|
|
@@ -4445,18 +4489,17 @@ var emailStyle = {
|
|
|
4445
4489
|
marginTop: 8,
|
|
4446
4490
|
marginBottom: 8
|
|
4447
4491
|
};
|
|
4448
|
-
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2,
|
|
4449
|
-
const
|
|
4450
|
-
const Links = _styledcomponents2.default.call(void 0, NavLink)`
|
|
4492
|
+
function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, menuDirection = "top", color: color2, id, border: border2 }) {
|
|
4493
|
+
const Links = _styledcomponents2.default.a`
|
|
4451
4494
|
color: inherit;
|
|
4452
|
-
|
|
4495
|
+
text-decoration: none;
|
|
4453
4496
|
|
|
4454
4497
|
&:hover,
|
|
4455
4498
|
&:focus {
|
|
4456
|
-
color: ${
|
|
4499
|
+
color: ${({ hoverColor }) => hoverColor || "inherit"};
|
|
4457
4500
|
}
|
|
4458
4501
|
&:active {
|
|
4459
|
-
color: ${
|
|
4502
|
+
color: ${({ hoverColor }) => hoverColor || "inherit"};
|
|
4460
4503
|
}
|
|
4461
4504
|
`;
|
|
4462
4505
|
const [anchorEl, setAnchorEl] = React.default.useState(null);
|
|
@@ -4482,7 +4525,12 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4482
4525
|
{
|
|
4483
4526
|
id,
|
|
4484
4527
|
open,
|
|
4485
|
-
sx: {
|
|
4528
|
+
sx: {
|
|
4529
|
+
width: width2,
|
|
4530
|
+
"& .MuiPaper-root": {
|
|
4531
|
+
border: border2
|
|
4532
|
+
}
|
|
4533
|
+
},
|
|
4486
4534
|
onClose: handleClose,
|
|
4487
4535
|
anchorEl,
|
|
4488
4536
|
TransitionComponent: _Slide2.default,
|
|
@@ -4494,7 +4542,7 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4494
4542
|
if (items.itemType === "header") {
|
|
4495
4543
|
if (items.link) {
|
|
4496
4544
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4497
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "
|
|
4545
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { style: { fontWeight: "bold" }, children: items.label }) }) }),
|
|
4498
4546
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4499
4547
|
] }, index);
|
|
4500
4548
|
} else {
|
|
@@ -4505,13 +4553,13 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4505
4553
|
}
|
|
4506
4554
|
} else if (items.itemType === "link") {
|
|
4507
4555
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4508
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4556
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }, index) }),
|
|
4509
4557
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4510
4558
|
] }, index);
|
|
4511
4559
|
} else {
|
|
4512
4560
|
if (items.link) {
|
|
4513
4561
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _Box2.default, { children: [
|
|
4514
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "
|
|
4562
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "a", { style: { textDecoration: "none", color: "inherit" }, href: items.link, children: items.label }) }),
|
|
4515
4563
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Divider2.default, {})
|
|
4516
4564
|
] }, index);
|
|
4517
4565
|
} else {
|
|
@@ -4531,18 +4579,18 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4531
4579
|
} else if (items.end === void 0 || items.end === false || items.end === null) {
|
|
4532
4580
|
if (items.itemType === "header") {
|
|
4533
4581
|
if (items.link) {
|
|
4534
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
4582
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: items.hoverColor, children: items.label }) }, index);
|
|
4535
4583
|
} else {
|
|
4536
4584
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
4537
4585
|
}
|
|
4538
4586
|
} else if (items.itemType === "link") {
|
|
4539
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
4587
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { style: { textDecoration: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.link, hoverColor: "", children: items.label }) }, index);
|
|
4540
4588
|
} else {
|
|
4541
4589
|
if (items.link) {
|
|
4542
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { children: items.label }, index);
|
|
4590
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _MenuItem2.default, { href: items.link, children: items.label }, index);
|
|
4543
4591
|
} else {
|
|
4544
4592
|
if (items.email) {
|
|
4545
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4593
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: emailStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Links, { href: items.email, hoverColor: items.hoverColor || "blue", children: items.label }) }, index);
|
|
4546
4594
|
} else {
|
|
4547
4595
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { style: customStyle, children: items.label }, index);
|
|
4548
4596
|
}
|
|
@@ -4562,7 +4610,15 @@ function WavelengthPopUpMenu({ menuItems, customIcon = false, width: width2, men
|
|
|
4562
4610
|
|
|
4563
4611
|
var _Grow = require('@mui/material/Grow'); var _Grow2 = _interopRequireDefault(_Grow);
|
|
4564
4612
|
|
|
4565
|
-
function WavelengthDropdown({
|
|
4613
|
+
function WavelengthDropdown({
|
|
4614
|
+
id,
|
|
4615
|
+
options,
|
|
4616
|
+
buttonSx,
|
|
4617
|
+
width: width2 = "190px",
|
|
4618
|
+
buttonText,
|
|
4619
|
+
menuSx = { backgroundColor: "#FCFAF8", borderColor: "blue", width: "190px", boxShadow: "none" },
|
|
4620
|
+
palette: palette2
|
|
4621
|
+
}) {
|
|
4566
4622
|
const [anchorEl, setAnchorEl] = React.default.useState(null);
|
|
4567
4623
|
const open = Boolean(anchorEl);
|
|
4568
4624
|
const handleClick = (event) => {
|
|
@@ -4753,8 +4809,8 @@ function WavelengthStandardSnackbar({ type, show, icon, horryAlign, vertyAlign,
|
|
|
4753
4809
|
width: width2
|
|
4754
4810
|
},
|
|
4755
4811
|
children: [
|
|
4756
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: {
|
|
4757
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: sIcon }),
|
|
4812
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { style: { gridColumnStart: 2, gridColumnEnd: 5, textAlign: "center", display: "flex", flexDirection: "row", justifyContent: "center", alignItems: "center" }, id: "snackbar", children: [
|
|
4813
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { marginTop: "5px" }, children: sIcon }),
|
|
4758
4814
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { fontSize: "1rem", marginLeft: "10px" }, children: message ? message : "Insert Message Here" })
|
|
4759
4815
|
] }),
|
|
4760
4816
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { gridColumnStart: 6 }, onClick: handleClose, children: closeIcon })
|