@appcorp/app-corp-vista 0.3.18 → 0.3.19

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.
@@ -39,12 +39,12 @@ var solid_1 = require("@heroicons/react/24/solid");
39
39
  var vista_button_v1_1 = require("../vista-button-v1/vista-button-v1");
40
40
  var vista_button_type_1 = require("../../type/vista-button-type");
41
41
  var VistaProgressV2 = function (_a) {
42
- var actions = _a.actions, containerClassName = _a.containerClassName, currentSelected = _a.currentSelected, handleOnChangeTab = _a.handleOnChangeTab, steps = _a.steps;
42
+ var actions = _a.actions, _b = _a.containerClassName, containerClassName = _b === void 0 ? '' : _b, currentSelected = _a.currentSelected, handleOnChangeTab = _a.handleOnChangeTab, steps = _a.steps;
43
43
  var getCurrentStep = (0, react_1.useMemo)(function () { return steps.filter(function (_a) {
44
44
  var name = _a.name;
45
45
  return name === currentSelected;
46
46
  })[0]; }, [currentSelected, steps]);
47
- return (react_1.default.createElement("div", { className: "h-[calc(100vh)] ".concat(containerClassName) },
47
+ return (react_1.default.createElement("div", { className: "h-[calc(100vh-144px)] ".concat(containerClassName) },
48
48
  react_1.default.createElement("nav", { "aria-label": "Progress" },
49
49
  react_1.default.createElement("ol", { role: "list", className: "divide-y divide-gray-300 rounded-md border border-gray-300 md:flex md:divide-y-0" }, steps
50
50
  .filter(function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",
@@ -43,7 +43,7 @@
43
43
  "@react-jvectormap/core": "^1.0.4",
44
44
  "@react-jvectormap/world": "^1.1.2",
45
45
  "@react-pakistan/react-icon-collection": "^3.5.0",
46
- "@react-pakistan/util-functions": "^1.24.50",
46
+ "@react-pakistan/util-functions": "^1.24.53",
47
47
  "@remixicon/react": "^4.6.0",
48
48
  "@storybook/addon-links": "^9",
49
49
  "@storybook/addon-onboarding": "^9",
@@ -11,7 +11,7 @@ export interface VistaProgressV2StepProps {
11
11
  id: string;
12
12
  name: string;
13
13
  order: number;
14
- status: string;
14
+ status: 'complete' | 'current' | 'upcoming';
15
15
  }
16
16
  export interface VistaProgressV2ActionProps {
17
17
  disabled: boolean;