sccoreui 2.3.7 → 2.3.8
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 +68 -0
- package/dist/components/progress-steps/progress-steps.js +1 -22
- package/dist/pages/home.js +1 -1
- package/dist/pages/progress-steps/progress-steps.js +24 -0
- package/dist/types/components/progress-steps/progress-steps.d.ts +2 -4
- package/dist/types/pages/progress-steps/progress-steps.d.ts +2 -0
- package/package.json +1 -1
package/dist/App.scss
CHANGED
|
@@ -60,3 +60,71 @@ h3 {
|
|
|
60
60
|
font-weight: var(--fw-400);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
// ============= custom progress steps =============== //
|
|
64
|
+
|
|
65
|
+
.progress-container {
|
|
66
|
+
isolation: isolate;
|
|
67
|
+
|
|
68
|
+
&::before {
|
|
69
|
+
content: "";
|
|
70
|
+
background-color: var(--gray-200);
|
|
71
|
+
position: absolute;
|
|
72
|
+
z-index: -1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.horizontal::before {
|
|
76
|
+
height: 2px;
|
|
77
|
+
width: 100%;
|
|
78
|
+
top: 13%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.vertical::before {
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 2px;
|
|
84
|
+
left: 11px;
|
|
85
|
+
top: 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.progressbar {
|
|
90
|
+
z-index: -1;
|
|
91
|
+
transition: all 0.6s ease;
|
|
92
|
+
|
|
93
|
+
&.horizontal {
|
|
94
|
+
left: 0;
|
|
95
|
+
top: 13%;
|
|
96
|
+
height: 2px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.vertical {
|
|
100
|
+
width: 2px;
|
|
101
|
+
left: 11px;
|
|
102
|
+
top: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.progress-step-item {
|
|
107
|
+
&.horizontal {
|
|
108
|
+
// transform: translateX(10%);
|
|
109
|
+
|
|
110
|
+
&:nth-of-type(1) {
|
|
111
|
+
transform: translateX(-50%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:last-child {
|
|
115
|
+
transform: translateX(50%);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.vertical {
|
|
120
|
+
transform: translateY(50%);
|
|
121
|
+
|
|
122
|
+
&:nth-of-type(1) {
|
|
123
|
+
transform: translateY(-5%);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:last-child {
|
|
127
|
+
transform: translateY(100%);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProgressSteps = void 0;
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
5
|
const button_1 = require("primereact/button");
|
|
7
6
|
const svg_component_1 = tslib_1.__importDefault(require("../../directives/svg-component"));
|
|
8
|
-
require("./progress-steps.scss");
|
|
9
7
|
const react_1 = require("react");
|
|
10
8
|
const ProgressSteps = (props) => {
|
|
11
9
|
const { stepsItems, orientation, activeIndex, withButtons = true, icons, className, style, } = props;
|
|
@@ -62,23 +60,4 @@ const ProgressSteps = (props) => {
|
|
|
62
60
|
? ""
|
|
63
61
|
: " flex-column align-self-center"} gap-2 mt-5` }, { children: [(0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: currentActive === 0, onClick: handlePrev }, { children: "Prev" })), (0, jsx_runtime_1.jsx)(button_1.Button, Object.assign({ disabled: currentActive === stepsItems.length - 1, onClick: handleNext }, { children: "Next" }))] })))] }));
|
|
64
62
|
};
|
|
65
|
-
exports.
|
|
66
|
-
const ProgressStepsComponent = () => {
|
|
67
|
-
const itemTemplate = (label, description) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-semibold" }, { children: label })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal" }, { children: description }))] }));
|
|
68
|
-
const items = [
|
|
69
|
-
{
|
|
70
|
-
id: "1",
|
|
71
|
-
template: itemTemplate("Your Details", "Provide Your Details"),
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: "2",
|
|
75
|
-
template: itemTemplate("Company details", "A few details of your company"),
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
id: "3",
|
|
79
|
-
template: itemTemplate("Invite your team", "Start collaborating"),
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-center justify-content-between gap-5 h-30rem" }, { children: [(0, jsx_runtime_1.jsx)(exports.ProgressSteps, { stepsItems: items }), (0, jsx_runtime_1.jsx)(exports.ProgressSteps, { stepsItems: items, orientation: "vertical" })] })));
|
|
83
|
-
};
|
|
84
|
-
exports.default = ProgressStepsComponent;
|
|
63
|
+
exports.default = ProgressSteps;
|
package/dist/pages/home.js
CHANGED
|
@@ -22,7 +22,7 @@ const tooltip_1 = tslib_1.__importDefault(require("./tooltip/tooltip"));
|
|
|
22
22
|
const loader_indicator_1 = tslib_1.__importDefault(require("./loader-indicator/loader-indicator"));
|
|
23
23
|
const pagination_1 = tslib_1.__importDefault(require("../pages/paginator/pagination"));
|
|
24
24
|
const shadows_1 = tslib_1.__importDefault(require("../pages/shadows/shadows"));
|
|
25
|
-
const progress_steps_1 = tslib_1.__importDefault(require("../
|
|
25
|
+
const progress_steps_1 = tslib_1.__importDefault(require("../pages/progress-steps/progress-steps"));
|
|
26
26
|
const tabs_1 = tslib_1.__importDefault(require("./tabs/tabs"));
|
|
27
27
|
const breadcrumb_1 = tslib_1.__importDefault(require("./breadcrumb/breadcrumb"));
|
|
28
28
|
const button_1 = tslib_1.__importDefault(require("./button/button"));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const progress_steps_1 = tslib_1.__importDefault(require("../../components/progress-steps/progress-steps"));
|
|
6
|
+
const ProgressStepsComponent = () => {
|
|
7
|
+
const itemTemplate = (label, description) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-700 font-semibold" }, { children: label })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-gray-600 font-normal" }, { children: description }))] }));
|
|
8
|
+
const items = [
|
|
9
|
+
{
|
|
10
|
+
id: "1",
|
|
11
|
+
template: itemTemplate("Your Details", "Provide Your Details"),
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "2",
|
|
15
|
+
template: itemTemplate("Company details", "A few details of your company"),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: "3",
|
|
19
|
+
template: itemTemplate("Invite your team", "Start collaborating"),
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column align-items-center justify-content-between gap-5 h-30rem" }, { children: [(0, jsx_runtime_1.jsx)(progress_steps_1.default, { stepsItems: items }), (0, jsx_runtime_1.jsx)(progress_steps_1.default, { stepsItems: items, orientation: "vertical" })] })));
|
|
23
|
+
};
|
|
24
|
+
exports.default = ProgressStepsComponent;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "./progress-steps.scss";
|
|
2
1
|
import { StepsItemProps } from "../../pages/types/type";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default ProgressStepsComponent;
|
|
2
|
+
declare const ProgressSteps: (props: StepsItemProps) => JSX.Element;
|
|
3
|
+
export default ProgressSteps;
|