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 CHANGED
@@ -461,6 +461,22 @@ function WorkflowRequestCard({
461
461
  ),
462
462
  arrow: true,
463
463
  placement: "top",
464
+ componentsProps: {
465
+ tooltip: {
466
+ sx: {
467
+ backgroundColor: "#fff",
468
+ color: "#000",
469
+ boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
470
+ borderRadius: "6px",
471
+ p: 1
472
+ }
473
+ },
474
+ arrow: {
475
+ sx: {
476
+ color: "#fff"
477
+ }
478
+ }
479
+ },
464
480
  children: /* @__PURE__ */ jsxRuntime.jsxs(
465
481
  material.Typography,
466
482
  {
@@ -1414,6 +1430,12 @@ var SearchBox = ({
1414
1430
  placeholder: placeHolderTitle,
1415
1431
  autoComplete: "off",
1416
1432
  className: "custom-search",
1433
+ sx: {
1434
+ "& .MuiOutlinedInput-root": {
1435
+ height: "38px",
1436
+ borderRadius: "20px"
1437
+ }
1438
+ },
1417
1439
  InputProps: {
1418
1440
  startAdornment: /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "start", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "icon-search-normal-1" }) }),
1419
1441
  endAdornment: searchText ? /* @__PURE__ */ jsxRuntime.jsx(material.InputAdornment, { position: "end", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -1656,8 +1678,8 @@ function FilterButton({ onClick }) {
1656
1678
  variant: "contained",
1657
1679
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.FilterAlt, { sx: { fontSize: "18px" } }),
1658
1680
  sx: {
1659
- backgroundColor: "#f4f0ef",
1660
- color: "#666",
1681
+ backgroundColor: "#f4f0ef !important",
1682
+ color: "#666 !important",
1661
1683
  fontFamily: "Poppins, sans-serif",
1662
1684
  fontWeight: 500,
1663
1685
  fontSize: "14px",
@@ -1672,7 +1694,7 @@ function FilterButton({ onClick }) {
1672
1694
  gap: "8px",
1673
1695
  boxShadow: "none",
1674
1696
  "&:hover": {
1675
- backgroundColor: "#ebe7e6",
1697
+ backgroundColor: "#ebe7e6 !important",
1676
1698
  boxShadow: "none"
1677
1699
  },
1678
1700
  "&:active": {
@@ -1789,7 +1811,7 @@ function ApprovalWorkflow({
1789
1811
  }, [selectedOption]);
1790
1812
  React7.useEffect(() => {
1791
1813
  var _a2, _b2;
1792
- if (debouncedSearchTerm !== tabs[selectedOption].search) {
1814
+ if (debouncedSearchTerm !== tabs[selectedOption].search && ((_a2 = tabs[selectedOption]) == null ? void 0 : _a2.initialized)) {
1793
1815
  setTabs((prev) => ({
1794
1816
  ...prev,
1795
1817
  [selectedOption]: {
@@ -1801,16 +1823,14 @@ function ApprovalWorkflow({
1801
1823
  // Clear data on new search
1802
1824
  }
1803
1825
  }));
1804
- if ((_a2 = tabs[selectedOption]) == null ? void 0 : _a2.initialized) {
1805
- fetchData(
1806
- selectedOption,
1807
- 1,
1808
- debouncedSearchTerm,
1809
- (_b2 = tabs[selectedOption]) == null ? void 0 : _b2.filters
1810
- );
1811
- }
1826
+ fetchData(
1827
+ selectedOption,
1828
+ 1,
1829
+ debouncedSearchTerm,
1830
+ (_b2 = tabs[selectedOption]) == null ? void 0 : _b2.filters
1831
+ );
1812
1832
  }
1813
- }, [debouncedSearchTerm, selectedOption]);
1833
+ }, [debouncedSearchTerm]);
1814
1834
  const handleClearSearch = React7.useCallback(() => {
1815
1835
  setSearchText("");
1816
1836
  }, []);
@@ -2095,7 +2115,13 @@ function ApprovalWorkflow({
2095
2115
  children: /* @__PURE__ */ jsxRuntime.jsxs(
2096
2116
  system.Box,
2097
2117
  {
2098
- sx: { width: "100%", height: "100%", overflow: "hidden !important" },
2118
+ sx: {
2119
+ width: "1141px",
2120
+ maxWidth: "1141px",
2121
+ minWidth: "1141px",
2122
+ height: "100%",
2123
+ overflow: "hidden !important"
2124
+ },
2099
2125
  children: [
2100
2126
  /* @__PURE__ */ jsxRuntime.jsxs(
2101
2127
  system.Box,