sccoreui 2.4.2 → 2.4.4

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.js CHANGED
@@ -1,9 +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
- // import Home from './pages/home';
5
+ const home_1 = tslib_1.__importDefault(require("./pages/home"));
5
6
  require("./App.scss");
6
7
  const App = () => {
7
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", {}) }));
8
+ return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(home_1.default, {}) }) }));
8
9
  };
9
10
  exports.default = App;
@@ -2424,8 +2424,8 @@ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--gray-100);
2424
2424
  border-radius: 2rem;
2425
2425
  }
2426
2426
  .p-button.p-button-icon-only {
2427
- width: 2.25rem;
2428
- padding: 8px;
2427
+ width: auto !important;
2428
+ padding: auto !important;
2429
2429
  }
2430
2430
  .p-button.p-button-icon-only .p-button-icon-left,
2431
2431
  .p-button.p-button-icon-only .p-button-icon-right {
@@ -5949,10 +5949,10 @@ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--gray-100);
5949
5949
  }
5950
5950
  .p-sidebar .p-sidebar-header .p-sidebar-close,
5951
5951
  .p-sidebar .p-sidebar-header .p-sidebar-icon {
5952
- width: 1.6rem;
5953
- height: 1.6rem;
5952
+ width: 2.5rem;
5953
+ height: 2.5rem;
5954
5954
  color: #6c757d;
5955
- border: 1px solid #c6cae0;
5955
+ border: 1px solid var(--gray-200);
5956
5956
  background: #fff;
5957
5957
  border-radius: 50%;
5958
5958
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
@@ -6050,7 +6050,7 @@ box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px var(--gray-100);
6050
6050
  }
6051
6051
 
6052
6052
  .p-breadcrumb {
6053
- background: #ffffff;
6053
+ background: transparent;
6054
6054
  /* border: 1px solid #dee2e6;
6055
6055
  border-radius: 6px; */
6056
6056
  padding: 4px;
@@ -8722,22 +8722,30 @@ input[type="number"]::-webkit-outer-spin-button {
8722
8722
  font-size: 18px;
8723
8723
  }
8724
8724
 
8725
-
8725
+ /* Default button with dual icon */
8726
8726
  .p-button.p-button-dual-icon {
8727
8727
  width: auto;
8728
- padding: 10px 18px;
8729
- font-size: 14px;
8728
+ padding: 8px 14px;
8729
+ }
8730
+
8731
+ .p-button.p-button-icon-only {
8732
+ padding: 8px;
8730
8733
  }
8734
+
8731
8735
  .p-button.p-button-dual-icon.p-button-xs {
8732
8736
  width: auto;
8733
8737
  padding: 6px 14px;
8738
+ font-size: 14px;
8734
8739
  }
8740
+
8735
8741
  .p-button.p-button-icon-only.p-button-xs {
8736
- padding: 8px;
8742
+ padding: 6px;
8737
8743
  }
8744
+
8738
8745
  .p-button.p-button-dual-icon.p-button-sm {
8739
8746
  width: auto;
8740
- padding: 10px 16px ;
8747
+ padding: 10px 16px;
8748
+ font-size: 14px;
8741
8749
  }
8742
8750
  .p-button.p-button-icon-only.p-button-sm {
8743
8751
  padding: 10px;
@@ -8746,7 +8754,8 @@ input[type="number"]::-webkit-outer-spin-button {
8746
8754
 
8747
8755
  .p-button.p-button-dual-icon.p-button-md {
8748
8756
  width: auto;
8749
- padding: 10px 14px;
8757
+ padding: 10px 18px;
8758
+ font-size: 16px;
8750
8759
  }
8751
8760
  .p-button.p-button-icon-only.p-button-md {
8752
8761
  padding: 12px;
@@ -8755,6 +8764,7 @@ input[type="number"]::-webkit-outer-spin-button {
8755
8764
  .p-button.p-button-dual-icon.p-button-lg{
8756
8765
  width: auto;
8757
8766
  padding: 12px 20px;
8767
+ font-size: 16px;
8758
8768
  }
8759
8769
  .p-button.p-button-icon-only.p-button-lg {
8760
8770
  padding: 14px;
@@ -8764,6 +8774,7 @@ input[type="number"]::-webkit-outer-spin-button {
8764
8774
  .p-button.p-button-dual-icon.p-button-xl {
8765
8775
  width: auto;
8766
8776
  padding: 16px 28px;
8777
+ font-size: 18px;
8767
8778
  }
8768
8779
  .p-button.p-button-icon-only.p-button-xl {
8769
8780
  padding: 16px;
@@ -4967,8 +4967,8 @@ input.p-dropdown-label {
4967
4967
  justify-content: center;
4968
4968
  overflow: hidden;
4969
4969
  position: absolute;
4970
- left: -35px;
4971
- top: 18px;
4970
+ left: -55px;
4971
+ top: 10px;
4972
4972
  }
4973
4973
 
4974
4974
  .p-sidebar-full .p-sidebar {
@@ -7,16 +7,18 @@ const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-co
7
7
  const react_1 = require("react");
8
8
  const ProgressSteps = (props) => {
9
9
  const { stepsItems, orientation, activeIndex, withButtons = true, icons, className, style, } = props;
10
- const [currentActive, setCurrentActive] = (0, react_1.useState)(activeIndex || 0);
10
+ const [currentActive, setCurrentActive] = (0, react_1.useState)(!activeIndex ? 0 : activeIndex);
11
11
  const progressRef = (0, react_1.useRef)(null);
12
12
  (0, react_1.useEffect)(() => {
13
13
  if (!orientation || orientation === "horizontal") {
14
14
  progressRef.current.style.width = `${(currentActive / (stepsItems.length - 1)) * 100}%`;
15
+ progressRef.current.style.height = "2px";
15
16
  }
16
17
  else {
17
18
  progressRef.current.style.height = `${(currentActive / (stepsItems.length - 1)) * 100}%`;
19
+ progressRef.current.style.width = "2px";
18
20
  }
19
- }, [currentActive]);
21
+ }, [currentActive, orientation]);
20
22
  const handleNext = () => {
21
23
  if (currentActive > stepsItems.length) {
22
24
  setCurrentActive(stepsItems.length);