sccoreui 5.9.31 → 5.9.33

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/App.scss CHANGED
@@ -1908,6 +1908,25 @@ button[aria-expanded="true"] {
1908
1908
  background-color: var(--gray-100);
1909
1909
  }
1910
1910
 
1911
+ /* ErrorBoundary.module.css */
1912
+ .errorContainer {
1913
+ display: flex;
1914
+ flex-direction: column;
1915
+ align-items: center;
1916
+ justify-content: center;
1917
+ padding: 20px;
1918
+ margin: auto;
1919
+ border-radius: 5px;
1920
+ background-color: var(--red-50);
1921
+ width: 100vw;
1922
+ height: 100vh;
1923
+ text-align: center;
1924
+ }
1925
+
1926
+ .error_description {
1927
+ width: 750px;
1928
+ }
1929
+
1911
1930
  .ag-theme-quartz {
1912
1931
  --ag-active-color: var(--gray-300);
1913
1932
  }
@@ -0,0 +1,53 @@
1
+ <svg width="152" height="120" viewBox="0 0 152 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="76" cy="52" r="52" fill="#A8B2EF"/>
3
+ <g filter="url(#filter0_dd_14081_96769)">
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M77.6 16C66.8273 16 57.2978 21.3233 51.4987 29.4829C49.605 29.0363 47.6301 28.8 45.6 28.8C31.4615 28.8 20 40.2615 20 54.4C20 68.5385 31.4615 80 45.6 80L45.62 80H109.6C121.971 80 132 69.9712 132 57.6C132 45.2288 121.971 35.2 109.6 35.2C108.721 35.2 107.854 35.2506 107.002 35.349C102.098 23.9677 90.7797 16 77.6 16Z" fill="#E2E5FA"/>
5
+ <ellipse cx="45.6" cy="54.3969" rx="25.6" ry="25.6" fill="url(#paint0_linear_14081_96769)"/>
6
+ <circle cx="77.6016" cy="48" r="32" fill="url(#paint1_linear_14081_96769)"/>
7
+ <ellipse cx="109.603" cy="57.6031" rx="22.4" ry="22.4" fill="url(#paint2_linear_14081_96769)"/>
8
+ </g>
9
+ <circle cx="21" cy="19" r="5" fill="#CED4F6"/>
10
+ <circle cx="18" cy="109" r="7" fill="#CED4F6"/>
11
+ <circle cx="145" cy="35" r="7" fill="#CED4F6"/>
12
+ <circle cx="134" cy="8" r="4" fill="#CED4F6"/>
13
+ <g filter="url(#filter1_b_14081_96769)">
14
+ <rect x="52" y="62" width="48" height="48" rx="24" fill="#6941C6" fill-opacity="0.4"/>
15
+ <path d="M85 95L81.5001 91.5M84 85.5C84 90.1944 80.1944 94 75.5 94C70.8056 94 67 90.1944 67 85.5C67 80.8056 70.8056 77 75.5 77C80.1944 77 84 80.8056 84 85.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
16
+ </g>
17
+ <defs>
18
+ <filter id="filter0_dd_14081_96769" x="0" y="16" width="152" height="104" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
19
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
20
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
21
+ <feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect1_dropShadow_14081_96769"/>
22
+ <feOffset dy="8"/>
23
+ <feGaussianBlur stdDeviation="4"/>
24
+ <feColorMatrix type="matrix" values="0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.03 0"/>
25
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_14081_96769"/>
26
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
27
+ <feMorphology radius="4" operator="erode" in="SourceAlpha" result="effect2_dropShadow_14081_96769"/>
28
+ <feOffset dy="20"/>
29
+ <feGaussianBlur stdDeviation="12"/>
30
+ <feColorMatrix type="matrix" values="0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.08 0"/>
31
+ <feBlend mode="normal" in2="effect1_dropShadow_14081_96769" result="effect2_dropShadow_14081_96769"/>
32
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_14081_96769" result="shape"/>
33
+ </filter>
34
+ <filter id="filter1_b_14081_96769" x="44" y="54" width="64" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
35
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
36
+ <feGaussianBlur in="BackgroundImageFix" stdDeviation="4"/>
37
+ <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_14081_96769"/>
38
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_14081_96769" result="shape"/>
39
+ </filter>
40
+ <linearGradient id="paint0_linear_14081_96769" x1="25.9429" y1="37.4826" x2="71.2" y2="79.9968" gradientUnits="userSpaceOnUse">
41
+ <stop stop-color="#E9D7FE"/>
42
+ <stop offset="0.350715" stop-color="white" stop-opacity="0"/>
43
+ </linearGradient>
44
+ <linearGradient id="paint1_linear_14081_96769" x1="53.0301" y1="26.8571" x2="109.602" y2="80" gradientUnits="userSpaceOnUse">
45
+ <stop stop-color="#E9D7FE"/>
46
+ <stop offset="0.350715" stop-color="white" stop-opacity="0"/>
47
+ </linearGradient>
48
+ <linearGradient id="paint2_linear_14081_96769" x1="92.4031" y1="42.8031" x2="132.003" y2="80.0031" gradientUnits="userSpaceOnUse">
49
+ <stop stop-color="#E9D7FE"/>
50
+ <stop offset="0.350715" stop-color="white" stop-opacity="0"/>
51
+ </linearGradient>
52
+ </defs>
53
+ </svg>
@@ -125,6 +125,6 @@ const TableFilter = () => {
125
125
  ? "#243DC6"
126
126
  : "#667085" }) })), (globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length) >= 1 && ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "flex gap-2 align-items-center text-primary-400" }, { children: [`${globalFilters === null || globalFilters === void 0 ? void 0 : globalFilters.filter((each) => each.isActive).length} Selected`, (0, jsx_runtime_1.jsx)("span", Object.assign({ onClick: onresetFilter }, { children: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "x-close", size: 18, color: "#243DC6" }) }))] })))] })), (0, jsx_runtime_1.jsx)(overlaypanel_1.OverlayPanel, Object.assign({ ref: showFilter, onShow: () => setIsOverlayOpened(true), onHide: () => setIsOverlayOpened(false), className: "table-filter-overlay" }, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4" }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-lg font-semibold line-height-3 text-gray-900" }, { children: "Filters" })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "text-sm text-gray-600" }, { children: "Streamline Your Search With Filters" }))] })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "p-4" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "max-h-14rem\toverflow-auto" }, { children: conditionsArray.map((eachCondition, index) => {
127
127
  return ((0, jsx_runtime_1.jsx)("div", { children: renderCondtion(eachCondition, index) }, index));
128
- }) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4 flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "focus:shadow-none", label: "Reset Filter", onClick: onresetFilter }) }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base px-2 font-semibold text-primary-400 flex gap-2 p-1 focus:shadow-none mr-3", label: "Create View", onClick: () => "", text: true, iconPos: "left", icon: (0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "plus", color: "text-primary-400 mr-2" }) }), (0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base font-semibold text-gray-600 p-1 focus:shadow-none text-white w-4rem", label: "Apply", onClick: onApplyFilter, disabled: !allFieldsFilled })] }))] }))] }) }))] }));
128
+ }) })) })), (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: "w-full p-0 m-0" }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "p-4 flex justify-content-between" }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(button_1.Button, { text: true, className: "focus:shadow-none", label: "Reset Filter", onClick: onresetFilter }) }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "flex align-items-center" }, { children: (0, jsx_runtime_1.jsx)(button_1.Button, { className: "text-base font-semibold text-gray-600 p-1 focus:shadow-none text-white w-4rem", label: "Apply", onClick: onApplyFilter, disabled: !allFieldsFilled }) }))] }))] }) }))] }));
129
129
  };
130
130
  exports.default = TableFilter;
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
3
4
  const jsx_runtime_1 = require("react/jsx-runtime");
4
5
  const react_1 = require("react");
6
+ const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
7
+ const button_1 = tslib_1.__importDefault(require("../button/button"));
5
8
  function ErrorBoundary({ children }) {
6
9
  const [hasError, setHasError] = (0, react_1.useState)(false);
7
10
  (0, react_1.useEffect)(() => {
@@ -20,7 +23,7 @@ function ErrorBoundary({ children }) {
20
23
  if (hasError) {
21
24
  console.log(hasError, 'error occured');
22
25
  // Fallback UI for when an error occurs
23
- return (0, jsx_runtime_1.jsx)("div", { children: " Something went wrong please refresh and try" });
26
+ return (0, jsx_runtime_1.jsx)("div", Object.assign({ role: "alert", className: "errorContainer bg-red-50" }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ className: `flex align-items-center justify-content-center border-1 border-red-200 border-round-xl` }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 flex-column align-items-center border-round-lg p-6 error_description" }, { children: [(0, jsx_runtime_1.jsx)("h2", Object.assign({ className: "my-0 text-gray-900" }, { children: "Fail to connect" })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "my-0 text-gray-600" }, { children: "Something went wrong! please refresh the page and try again." })), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex gap-3 mt-6" }, { children: [(0, jsx_runtime_1.jsxs)(button_1.default, Object.assign({ onClick: () => window.location.reload(), outlined: true, className: "flex bg-white focus:border-gray-400 align-items-center gap-3 px-4 py-3" }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "refresh-ccw-02" }), " Refresh"] })), (0, jsx_runtime_1.jsxs)(button_1.default, Object.assign({ className: "flex align-items-center gap-3 px-4 py-3", onClick: () => (window.location.href = window.location.origin) }, { children: [(0, jsx_runtime_1.jsx)(svg_component_1.default, { icon: "arrow-narrow-left", color: "#fff" }), " Go Back"] }))] }))] })) })) }));
24
27
  }
25
28
  return children;
26
29
  }
@@ -22,7 +22,7 @@ const FormulaComponent = (props) => {
22
22
  "addition": '+',
23
23
  "subtraction": '-',
24
24
  "multiplication": '*',
25
- "division": '÷',
25
+ "division": '/',
26
26
  "percentile": '%',
27
27
  "openBracket": "(",
28
28
  "closeBracket": ")",
@@ -1,5 +1,6 @@
1
+ import { ReactNode } from "react";
1
2
  interface icon {
2
- icon?: string;
3
+ icon?: string | ReactNode;
3
4
  color?: string;
4
5
  size?: number;
5
6
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.9.31",
3
+ "version": "5.9.33",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",