amp-workflow-ui 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +40 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -447,6 +447,22 @@ function WorkflowRequestCard({
|
|
|
447
447
|
),
|
|
448
448
|
arrow: true,
|
|
449
449
|
placement: "top",
|
|
450
|
+
componentsProps: {
|
|
451
|
+
tooltip: {
|
|
452
|
+
sx: {
|
|
453
|
+
backgroundColor: "#fff",
|
|
454
|
+
color: "#000",
|
|
455
|
+
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
|
|
456
|
+
borderRadius: "6px",
|
|
457
|
+
p: 1
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
arrow: {
|
|
461
|
+
sx: {
|
|
462
|
+
color: "#fff"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
450
466
|
children: /* @__PURE__ */ jsxs(
|
|
451
467
|
Typography,
|
|
452
468
|
{
|
|
@@ -1400,6 +1416,12 @@ var SearchBox = ({
|
|
|
1400
1416
|
placeholder: placeHolderTitle,
|
|
1401
1417
|
autoComplete: "off",
|
|
1402
1418
|
className: "custom-search",
|
|
1419
|
+
sx: {
|
|
1420
|
+
"& .MuiOutlinedInput-root": {
|
|
1421
|
+
height: "38px",
|
|
1422
|
+
borderRadius: "20px"
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1403
1425
|
InputProps: {
|
|
1404
1426
|
startAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx("span", { className: "icon-search-normal-1" }) }),
|
|
1405
1427
|
endAdornment: searchText ? /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
@@ -1642,8 +1664,8 @@ function FilterButton({ onClick }) {
|
|
|
1642
1664
|
variant: "contained",
|
|
1643
1665
|
startIcon: /* @__PURE__ */ jsx(FilterAlt, { sx: { fontSize: "18px" } }),
|
|
1644
1666
|
sx: {
|
|
1645
|
-
backgroundColor: "#f4f0ef",
|
|
1646
|
-
color: "#666",
|
|
1667
|
+
backgroundColor: "#f4f0ef !important",
|
|
1668
|
+
color: "#666 !important",
|
|
1647
1669
|
fontFamily: "Poppins, sans-serif",
|
|
1648
1670
|
fontWeight: 500,
|
|
1649
1671
|
fontSize: "14px",
|
|
@@ -1658,7 +1680,7 @@ function FilterButton({ onClick }) {
|
|
|
1658
1680
|
gap: "8px",
|
|
1659
1681
|
boxShadow: "none",
|
|
1660
1682
|
"&:hover": {
|
|
1661
|
-
backgroundColor: "#ebe7e6",
|
|
1683
|
+
backgroundColor: "#ebe7e6 !important",
|
|
1662
1684
|
boxShadow: "none"
|
|
1663
1685
|
},
|
|
1664
1686
|
"&:active": {
|
|
@@ -1775,7 +1797,7 @@ function ApprovalWorkflow({
|
|
|
1775
1797
|
}, [selectedOption]);
|
|
1776
1798
|
useEffect(() => {
|
|
1777
1799
|
var _a2, _b2;
|
|
1778
|
-
if (debouncedSearchTerm !== tabs[selectedOption].search) {
|
|
1800
|
+
if (debouncedSearchTerm !== tabs[selectedOption].search && ((_a2 = tabs[selectedOption]) == null ? void 0 : _a2.initialized)) {
|
|
1779
1801
|
setTabs((prev) => ({
|
|
1780
1802
|
...prev,
|
|
1781
1803
|
[selectedOption]: {
|
|
@@ -1787,16 +1809,14 @@ function ApprovalWorkflow({
|
|
|
1787
1809
|
// Clear data on new search
|
|
1788
1810
|
}
|
|
1789
1811
|
}));
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
);
|
|
1797
|
-
}
|
|
1812
|
+
fetchData(
|
|
1813
|
+
selectedOption,
|
|
1814
|
+
1,
|
|
1815
|
+
debouncedSearchTerm,
|
|
1816
|
+
(_b2 = tabs[selectedOption]) == null ? void 0 : _b2.filters
|
|
1817
|
+
);
|
|
1798
1818
|
}
|
|
1799
|
-
}, [debouncedSearchTerm
|
|
1819
|
+
}, [debouncedSearchTerm]);
|
|
1800
1820
|
const handleClearSearch = useCallback(() => {
|
|
1801
1821
|
setSearchText("");
|
|
1802
1822
|
}, []);
|
|
@@ -2081,7 +2101,13 @@ function ApprovalWorkflow({
|
|
|
2081
2101
|
children: /* @__PURE__ */ jsxs(
|
|
2082
2102
|
Box$1,
|
|
2083
2103
|
{
|
|
2084
|
-
sx: {
|
|
2104
|
+
sx: {
|
|
2105
|
+
width: "1141px",
|
|
2106
|
+
maxWidth: "1141px",
|
|
2107
|
+
minWidth: "1141px",
|
|
2108
|
+
height: "100%",
|
|
2109
|
+
overflow: "hidden !important"
|
|
2110
|
+
},
|
|
2085
2111
|
children: [
|
|
2086
2112
|
/* @__PURE__ */ jsxs(
|
|
2087
2113
|
Box$1,
|