@rufous/ui 0.1.39 → 0.1.42
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/Buttons/index.cjs +66 -11
- package/dist/Buttons/index.js +2 -1
- package/dist/Buttons/submitButton.cjs +62 -7
- package/dist/Buttons/submitButton.d.cts +3 -1
- package/dist/Buttons/submitButton.d.ts +3 -1
- package/dist/Buttons/submitButton.js +2 -1
- package/dist/Dialogs/BaseDialog.css +37 -0
- package/dist/Dialogs/BaseDialog.js +9 -8
- package/dist/Dialogs/index.css +37 -0
- package/dist/Dialogs/index.js +9 -8
- package/dist/Progress/circularProgress.cjs +60 -0
- package/dist/Progress/circularProgress.d.cts +9 -0
- package/dist/Progress/circularProgress.d.ts +9 -0
- package/dist/Progress/circularProgress.js +6 -0
- package/dist/chunk-FBT3RUOE.js +54 -0
- package/dist/chunk-YRFUVQDN.js +31 -0
- package/dist/icons/index.js +16 -16
- package/dist/main.cjs +74 -19
- package/dist/main.css +37 -0
- package/dist/main.js +18 -17
- package/dist/style.css +37 -0
- package/dist/styles/progress.css +36 -0
- package/dist/styles/progress.d.cts +2 -0
- package/dist/styles/progress.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-3WUD5EX4.js +0 -25
package/dist/Buttons/index.cjs
CHANGED
|
@@ -44,36 +44,91 @@ var AddButton = ({ children, ...props }) => {
|
|
|
44
44
|
var addButton_default = AddButton;
|
|
45
45
|
|
|
46
46
|
// lib/Buttons/submitButton.tsx
|
|
47
|
+
var React3 = __toESM(require("react"), 1);
|
|
48
|
+
|
|
49
|
+
// lib/Progress/circularProgress.tsx
|
|
47
50
|
var React2 = __toESM(require("react"), 1);
|
|
51
|
+
var CircularProgess = ({
|
|
52
|
+
size = 50,
|
|
53
|
+
color = "#a81c08",
|
|
54
|
+
...props
|
|
55
|
+
}) => {
|
|
56
|
+
return /* @__PURE__ */ React2.createElement(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
className: "rufous-loader",
|
|
60
|
+
style: { width: size, height: size },
|
|
61
|
+
...props
|
|
62
|
+
},
|
|
63
|
+
/* @__PURE__ */ React2.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React2.createElement(
|
|
64
|
+
"circle",
|
|
65
|
+
{
|
|
66
|
+
className: "rufous-loader-circle",
|
|
67
|
+
cx: "50",
|
|
68
|
+
cy: "50",
|
|
69
|
+
r: "45",
|
|
70
|
+
stroke: color
|
|
71
|
+
}
|
|
72
|
+
))
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
var circularProgress_default = CircularProgess;
|
|
76
|
+
|
|
77
|
+
// lib/Buttons/submitButton.tsx
|
|
48
78
|
var SubmitButton = ({
|
|
49
79
|
children,
|
|
50
80
|
type = "submit",
|
|
51
81
|
onClick,
|
|
52
|
-
|
|
82
|
+
onDoubleClick,
|
|
83
|
+
isLoading = false,
|
|
53
84
|
bgGradiant = false,
|
|
85
|
+
showLoader = false,
|
|
54
86
|
...props
|
|
55
87
|
}) => {
|
|
88
|
+
const [loading, setLoading] = React3.useState(false);
|
|
89
|
+
const handleClick = async (e) => {
|
|
90
|
+
if (loading) return;
|
|
91
|
+
if (onClick) {
|
|
92
|
+
setLoading(true);
|
|
93
|
+
try {
|
|
94
|
+
await onClick(e);
|
|
95
|
+
} finally {
|
|
96
|
+
setLoading(false);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const handleDoubleClick = async (e) => {
|
|
101
|
+
if (loading) return;
|
|
102
|
+
if (onDoubleClick) {
|
|
103
|
+
setLoading(true);
|
|
104
|
+
try {
|
|
105
|
+
await onDoubleClick(e);
|
|
106
|
+
} finally {
|
|
107
|
+
setLoading(false);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
56
111
|
const buttonProps = {
|
|
57
112
|
...props,
|
|
58
|
-
className: `btn submit-btn ${bgGradiant
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
113
|
+
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
114
|
+
disabled: props.disabled || loading || isLoading,
|
|
115
|
+
...onClick ? {} : { type },
|
|
116
|
+
onClick: handleClick,
|
|
117
|
+
onDoubleClick: handleDoubleClick
|
|
63
118
|
};
|
|
64
|
-
return /* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ React3.createElement("button", { ...buttonProps }, /* @__PURE__ */ React3.createElement("span", null, children), showLoader && (loading || isLoading) && /* @__PURE__ */ React3.createElement("span", { style: { marginLeft: 8 } }, /* @__PURE__ */ React3.createElement(circularProgress_default, { size: 18 })));
|
|
65
120
|
};
|
|
66
121
|
var submitButton_default = SubmitButton;
|
|
67
122
|
|
|
68
123
|
// lib/Buttons/cancelButton.tsx
|
|
69
|
-
var
|
|
70
|
-
var CancelButton = ({ children, ...props }) => /* @__PURE__ */
|
|
124
|
+
var React4 = __toESM(require("react"), 1);
|
|
125
|
+
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React4.createElement("button", { className: "btn cancel-btn", ...props }, children);
|
|
71
126
|
var cancelButton_default = CancelButton;
|
|
72
127
|
|
|
73
128
|
// lib/Buttons/stdButton.tsx
|
|
74
|
-
var
|
|
129
|
+
var React5 = __toESM(require("react"), 1);
|
|
75
130
|
var StandardButton = ({ children, ...props }) => {
|
|
76
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ React5.createElement("button", { className: "btn standard-btn", ...props }, children);
|
|
77
132
|
};
|
|
78
133
|
var stdButton_default = StandardButton;
|
|
79
134
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/Buttons/index.js
CHANGED
|
@@ -10,7 +10,8 @@ import {
|
|
|
10
10
|
} from "../chunk-R3GARAVJ.js";
|
|
11
11
|
import {
|
|
12
12
|
submitButton_default
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-FBT3RUOE.js";
|
|
14
|
+
import "../chunk-YRFUVQDN.js";
|
|
14
15
|
export {
|
|
15
16
|
addButton_default as AddButton,
|
|
16
17
|
cancelButton_default as CancelButton,
|
|
@@ -32,23 +32,78 @@ __export(submitButton_exports, {
|
|
|
32
32
|
default: () => submitButton_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(submitButton_exports);
|
|
35
|
+
var React2 = __toESM(require("react"), 1);
|
|
36
|
+
|
|
37
|
+
// lib/Progress/circularProgress.tsx
|
|
35
38
|
var React = __toESM(require("react"), 1);
|
|
39
|
+
var CircularProgess = ({
|
|
40
|
+
size = 50,
|
|
41
|
+
color = "#a81c08",
|
|
42
|
+
...props
|
|
43
|
+
}) => {
|
|
44
|
+
return /* @__PURE__ */ React.createElement(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: "rufous-loader",
|
|
48
|
+
style: { width: size, height: size },
|
|
49
|
+
...props
|
|
50
|
+
},
|
|
51
|
+
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React.createElement(
|
|
52
|
+
"circle",
|
|
53
|
+
{
|
|
54
|
+
className: "rufous-loader-circle",
|
|
55
|
+
cx: "50",
|
|
56
|
+
cy: "50",
|
|
57
|
+
r: "45",
|
|
58
|
+
stroke: color
|
|
59
|
+
}
|
|
60
|
+
))
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
var circularProgress_default = CircularProgess;
|
|
64
|
+
|
|
65
|
+
// lib/Buttons/submitButton.tsx
|
|
36
66
|
var SubmitButton = ({
|
|
37
67
|
children,
|
|
38
68
|
type = "submit",
|
|
39
69
|
onClick,
|
|
40
|
-
|
|
70
|
+
onDoubleClick,
|
|
71
|
+
isLoading = false,
|
|
41
72
|
bgGradiant = false,
|
|
73
|
+
showLoader = false,
|
|
42
74
|
...props
|
|
43
75
|
}) => {
|
|
76
|
+
const [loading, setLoading] = React2.useState(false);
|
|
77
|
+
const handleClick = async (e) => {
|
|
78
|
+
if (loading) return;
|
|
79
|
+
if (onClick) {
|
|
80
|
+
setLoading(true);
|
|
81
|
+
try {
|
|
82
|
+
await onClick(e);
|
|
83
|
+
} finally {
|
|
84
|
+
setLoading(false);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const handleDoubleClick = async (e) => {
|
|
89
|
+
if (loading) return;
|
|
90
|
+
if (onDoubleClick) {
|
|
91
|
+
setLoading(true);
|
|
92
|
+
try {
|
|
93
|
+
await onDoubleClick(e);
|
|
94
|
+
} finally {
|
|
95
|
+
setLoading(false);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
44
99
|
const buttonProps = {
|
|
45
100
|
...props,
|
|
46
|
-
className: `btn submit-btn ${bgGradiant
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
101
|
+
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
102
|
+
disabled: props.disabled || loading || isLoading,
|
|
103
|
+
...onClick ? {} : { type },
|
|
104
|
+
onClick: handleClick,
|
|
105
|
+
onDoubleClick: handleDoubleClick
|
|
51
106
|
};
|
|
52
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ React2.createElement("button", { ...buttonProps }, /* @__PURE__ */ React2.createElement("span", null, children), showLoader && (loading || isLoading) && /* @__PURE__ */ React2.createElement("span", { style: { marginLeft: 8 } }, /* @__PURE__ */ React2.createElement(circularProgress_default, { size: 18 })));
|
|
53
108
|
};
|
|
54
109
|
var submitButton_default = SubmitButton;
|
|
@@ -5,7 +5,9 @@ interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
5
5
|
type?: "button" | "submit" | "reset";
|
|
6
6
|
bgGradiant?: boolean;
|
|
7
7
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
8
|
-
|
|
8
|
+
onDoubleClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
showLoader?: boolean;
|
|
9
11
|
}
|
|
10
12
|
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
11
13
|
|
|
@@ -5,7 +5,9 @@ interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
5
5
|
type?: "button" | "submit" | "reset";
|
|
6
6
|
bgGradiant?: boolean;
|
|
7
7
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
8
|
-
|
|
8
|
+
onDoubleClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
showLoader?: boolean;
|
|
9
11
|
}
|
|
10
12
|
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
11
13
|
|
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* lib/styles/progress.css */
|
|
210
|
+
.rufous-loader {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: inline-block;
|
|
213
|
+
}
|
|
214
|
+
.rufous-loader svg {
|
|
215
|
+
transform: rotate(-45deg);
|
|
216
|
+
}
|
|
217
|
+
.rufous-loader-circle {
|
|
218
|
+
fill: none;
|
|
219
|
+
stroke-width: 9;
|
|
220
|
+
stroke-linecap: round;
|
|
221
|
+
stroke-dasharray: 283;
|
|
222
|
+
stroke-dashoffset: 280;
|
|
223
|
+
transform-origin: 50% 50%;
|
|
224
|
+
animation: rufous-rotate 1.3s linear infinite, rufous-dash 1.3s ease-in-out infinite;
|
|
225
|
+
}
|
|
226
|
+
@keyframes rufous-rotate {
|
|
227
|
+
100% {
|
|
228
|
+
transform: rotate(360deg);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@keyframes rufous-dash {
|
|
232
|
+
0% {
|
|
233
|
+
stroke-dasharray: 1, 283;
|
|
234
|
+
stroke-dashoffset: 0;
|
|
235
|
+
}
|
|
236
|
+
50% {
|
|
237
|
+
stroke-dasharray: 180, 283;
|
|
238
|
+
stroke-dashoffset: -70;
|
|
239
|
+
}
|
|
240
|
+
100% {
|
|
241
|
+
stroke-dasharray: 1, 283;
|
|
242
|
+
stroke-dashoffset: -260;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
209
246
|
/* lib/style.css */
|
|
210
247
|
.theme-rufous .act-icon svg {
|
|
211
248
|
color: #a81c08 !important;
|
|
@@ -2,11 +2,9 @@ import {
|
|
|
2
2
|
BaseDialog_default
|
|
3
3
|
} from "../chunk-CPLUOEPG.js";
|
|
4
4
|
import "../chunk-IR7ZKMED.js";
|
|
5
|
-
import "../chunk-DXJ745NZ.js";
|
|
6
5
|
import "../chunk-BH53P2UM.js";
|
|
7
6
|
import "../chunk-XPRBPIS5.js";
|
|
8
7
|
import "../chunk-QJPQC544.js";
|
|
9
|
-
import "../chunk-CSKTBLQQ.js";
|
|
10
8
|
import "../chunk-ZDVP4SUD.js";
|
|
11
9
|
import "../chunk-5BB3H3YO.js";
|
|
12
10
|
import "../chunk-ITZTTNM2.js";
|
|
@@ -14,7 +12,7 @@ import "../chunk-WWAHNTUH.js";
|
|
|
14
12
|
import "../chunk-6KIFTMUN.js";
|
|
15
13
|
import "../chunk-ZJAV3FEQ.js";
|
|
16
14
|
import "../chunk-NMMC4ATV.js";
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-DXJ745NZ.js";
|
|
18
16
|
import "../chunk-ZJYLZ6I6.js";
|
|
19
17
|
import "../chunk-RNA4TTYR.js";
|
|
20
18
|
import "../chunk-WG3Q6GZN.js";
|
|
@@ -22,7 +20,7 @@ import "../chunk-RJ43D3XB.js";
|
|
|
22
20
|
import "../chunk-DE73YGRW.js";
|
|
23
21
|
import "../chunk-DMP72IAP.js";
|
|
24
22
|
import "../chunk-QZFGQ5JM.js";
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-CSKTBLQQ.js";
|
|
26
24
|
import "../chunk-BYJP2WNC.js";
|
|
27
25
|
import "../chunk-GYLL3HRD.js";
|
|
28
26
|
import "../chunk-WZTZFC36.js";
|
|
@@ -30,14 +28,14 @@ import "../chunk-QA2AYT4A.js";
|
|
|
30
28
|
import "../chunk-WHGVO3HV.js";
|
|
31
29
|
import "../chunk-FOUXNPQA.js";
|
|
32
30
|
import "../chunk-C7B23GTE.js";
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-XCLXQOLP.js";
|
|
34
32
|
import "../chunk-NSW6ZGZF.js";
|
|
35
33
|
import "../chunk-KYJ3475B.js";
|
|
36
34
|
import "../chunk-UTYIBUY2.js";
|
|
37
35
|
import "../chunk-N4EJKMJK.js";
|
|
38
36
|
import "../chunk-MKK7M3BH.js";
|
|
39
37
|
import "../chunk-GESVGIAP.js";
|
|
40
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-QIEQRNBE.js";
|
|
41
39
|
import "../chunk-N26C33E6.js";
|
|
42
40
|
import "../chunk-QONKYAQ5.js";
|
|
43
41
|
import "../chunk-H372BAXA.js";
|
|
@@ -45,7 +43,7 @@ import "../chunk-FSRABKKC.js";
|
|
|
45
43
|
import "../chunk-ZAYWFYP4.js";
|
|
46
44
|
import "../chunk-5UEJAVFK.js";
|
|
47
45
|
import "../chunk-WZAU77G7.js";
|
|
48
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-7WNPZ4B7.js";
|
|
49
47
|
import "../chunk-WXXJX3FF.js";
|
|
50
48
|
import "../chunk-6FEUS4CQ.js";
|
|
51
49
|
import "../chunk-PPNZC5ZQ.js";
|
|
@@ -53,15 +51,18 @@ import "../chunk-JI5XMLWT.js";
|
|
|
53
51
|
import "../chunk-WXANSSXF.js";
|
|
54
52
|
import "../chunk-XPJVVKOU.js";
|
|
55
53
|
import "../chunk-GL43GPEM.js";
|
|
54
|
+
import "../chunk-IOEQAR2M.js";
|
|
56
55
|
import "../chunk-BCGCLMKA.js";
|
|
57
56
|
import "../chunk-2FHTGYR4.js";
|
|
58
57
|
import "../chunk-AH6RCYDL.js";
|
|
59
58
|
import "../chunk-3IBCGGN3.js";
|
|
59
|
+
import "../chunk-MNPAE2ZF.js";
|
|
60
60
|
import "../chunk-QPGJCRBS.js";
|
|
61
61
|
import "../chunk-U7SARO5B.js";
|
|
62
62
|
import "../chunk-BMMDUQDJ.js";
|
|
63
63
|
import "../chunk-R3GARAVJ.js";
|
|
64
|
-
import "../chunk-
|
|
64
|
+
import "../chunk-FBT3RUOE.js";
|
|
65
|
+
import "../chunk-YRFUVQDN.js";
|
|
65
66
|
export {
|
|
66
67
|
BaseDialog_default as default
|
|
67
68
|
};
|
package/dist/Dialogs/index.css
CHANGED
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* lib/styles/progress.css */
|
|
210
|
+
.rufous-loader {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: inline-block;
|
|
213
|
+
}
|
|
214
|
+
.rufous-loader svg {
|
|
215
|
+
transform: rotate(-45deg);
|
|
216
|
+
}
|
|
217
|
+
.rufous-loader-circle {
|
|
218
|
+
fill: none;
|
|
219
|
+
stroke-width: 9;
|
|
220
|
+
stroke-linecap: round;
|
|
221
|
+
stroke-dasharray: 283;
|
|
222
|
+
stroke-dashoffset: 280;
|
|
223
|
+
transform-origin: 50% 50%;
|
|
224
|
+
animation: rufous-rotate 1.3s linear infinite, rufous-dash 1.3s ease-in-out infinite;
|
|
225
|
+
}
|
|
226
|
+
@keyframes rufous-rotate {
|
|
227
|
+
100% {
|
|
228
|
+
transform: rotate(360deg);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@keyframes rufous-dash {
|
|
232
|
+
0% {
|
|
233
|
+
stroke-dasharray: 1, 283;
|
|
234
|
+
stroke-dashoffset: 0;
|
|
235
|
+
}
|
|
236
|
+
50% {
|
|
237
|
+
stroke-dasharray: 180, 283;
|
|
238
|
+
stroke-dashoffset: -70;
|
|
239
|
+
}
|
|
240
|
+
100% {
|
|
241
|
+
stroke-dasharray: 1, 283;
|
|
242
|
+
stroke-dashoffset: -260;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
209
246
|
/* lib/style.css */
|
|
210
247
|
.theme-rufous .act-icon svg {
|
|
211
248
|
color: #a81c08 !important;
|
package/dist/Dialogs/index.js
CHANGED
|
@@ -2,11 +2,9 @@ import {
|
|
|
2
2
|
BaseDialog_default
|
|
3
3
|
} from "../chunk-CPLUOEPG.js";
|
|
4
4
|
import "../chunk-IR7ZKMED.js";
|
|
5
|
-
import "../chunk-DXJ745NZ.js";
|
|
6
5
|
import "../chunk-BH53P2UM.js";
|
|
7
6
|
import "../chunk-XPRBPIS5.js";
|
|
8
7
|
import "../chunk-QJPQC544.js";
|
|
9
|
-
import "../chunk-CSKTBLQQ.js";
|
|
10
8
|
import "../chunk-ZDVP4SUD.js";
|
|
11
9
|
import "../chunk-5BB3H3YO.js";
|
|
12
10
|
import "../chunk-ITZTTNM2.js";
|
|
@@ -14,7 +12,7 @@ import "../chunk-WWAHNTUH.js";
|
|
|
14
12
|
import "../chunk-6KIFTMUN.js";
|
|
15
13
|
import "../chunk-ZJAV3FEQ.js";
|
|
16
14
|
import "../chunk-NMMC4ATV.js";
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-DXJ745NZ.js";
|
|
18
16
|
import "../chunk-ZJYLZ6I6.js";
|
|
19
17
|
import "../chunk-RNA4TTYR.js";
|
|
20
18
|
import "../chunk-WG3Q6GZN.js";
|
|
@@ -22,7 +20,7 @@ import "../chunk-RJ43D3XB.js";
|
|
|
22
20
|
import "../chunk-DE73YGRW.js";
|
|
23
21
|
import "../chunk-DMP72IAP.js";
|
|
24
22
|
import "../chunk-QZFGQ5JM.js";
|
|
25
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-CSKTBLQQ.js";
|
|
26
24
|
import "../chunk-BYJP2WNC.js";
|
|
27
25
|
import "../chunk-GYLL3HRD.js";
|
|
28
26
|
import "../chunk-WZTZFC36.js";
|
|
@@ -30,14 +28,14 @@ import "../chunk-QA2AYT4A.js";
|
|
|
30
28
|
import "../chunk-WHGVO3HV.js";
|
|
31
29
|
import "../chunk-FOUXNPQA.js";
|
|
32
30
|
import "../chunk-C7B23GTE.js";
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-XCLXQOLP.js";
|
|
34
32
|
import "../chunk-NSW6ZGZF.js";
|
|
35
33
|
import "../chunk-KYJ3475B.js";
|
|
36
34
|
import "../chunk-UTYIBUY2.js";
|
|
37
35
|
import "../chunk-N4EJKMJK.js";
|
|
38
36
|
import "../chunk-MKK7M3BH.js";
|
|
39
37
|
import "../chunk-GESVGIAP.js";
|
|
40
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-QIEQRNBE.js";
|
|
41
39
|
import "../chunk-N26C33E6.js";
|
|
42
40
|
import "../chunk-QONKYAQ5.js";
|
|
43
41
|
import "../chunk-H372BAXA.js";
|
|
@@ -45,7 +43,7 @@ import "../chunk-FSRABKKC.js";
|
|
|
45
43
|
import "../chunk-ZAYWFYP4.js";
|
|
46
44
|
import "../chunk-5UEJAVFK.js";
|
|
47
45
|
import "../chunk-WZAU77G7.js";
|
|
48
|
-
import "../chunk-
|
|
46
|
+
import "../chunk-7WNPZ4B7.js";
|
|
49
47
|
import "../chunk-WXXJX3FF.js";
|
|
50
48
|
import "../chunk-6FEUS4CQ.js";
|
|
51
49
|
import "../chunk-PPNZC5ZQ.js";
|
|
@@ -53,15 +51,18 @@ import "../chunk-JI5XMLWT.js";
|
|
|
53
51
|
import "../chunk-WXANSSXF.js";
|
|
54
52
|
import "../chunk-XPJVVKOU.js";
|
|
55
53
|
import "../chunk-GL43GPEM.js";
|
|
54
|
+
import "../chunk-IOEQAR2M.js";
|
|
56
55
|
import "../chunk-BCGCLMKA.js";
|
|
57
56
|
import "../chunk-2FHTGYR4.js";
|
|
58
57
|
import "../chunk-AH6RCYDL.js";
|
|
59
58
|
import "../chunk-3IBCGGN3.js";
|
|
59
|
+
import "../chunk-MNPAE2ZF.js";
|
|
60
60
|
import "../chunk-QPGJCRBS.js";
|
|
61
61
|
import "../chunk-U7SARO5B.js";
|
|
62
62
|
import "../chunk-BMMDUQDJ.js";
|
|
63
63
|
import "../chunk-R3GARAVJ.js";
|
|
64
|
-
import "../chunk-
|
|
64
|
+
import "../chunk-FBT3RUOE.js";
|
|
65
|
+
import "../chunk-YRFUVQDN.js";
|
|
65
66
|
export {
|
|
66
67
|
BaseDialog_default as BaseDialog
|
|
67
68
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// lib/Progress/circularProgress.tsx
|
|
30
|
+
var circularProgress_exports = {};
|
|
31
|
+
__export(circularProgress_exports, {
|
|
32
|
+
default: () => circularProgress_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(circularProgress_exports);
|
|
35
|
+
var React = __toESM(require("react"), 1);
|
|
36
|
+
var CircularProgess = ({
|
|
37
|
+
size = 50,
|
|
38
|
+
color = "#a81c08",
|
|
39
|
+
...props
|
|
40
|
+
}) => {
|
|
41
|
+
return /* @__PURE__ */ React.createElement(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: "rufous-loader",
|
|
45
|
+
style: { width: size, height: size },
|
|
46
|
+
...props
|
|
47
|
+
},
|
|
48
|
+
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React.createElement(
|
|
49
|
+
"circle",
|
|
50
|
+
{
|
|
51
|
+
className: "rufous-loader-circle",
|
|
52
|
+
cx: "50",
|
|
53
|
+
cy: "50",
|
|
54
|
+
r: "45",
|
|
55
|
+
stroke: color
|
|
56
|
+
}
|
|
57
|
+
))
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
var circularProgress_default = CircularProgess;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CircularProgessProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CircularProgess: React.FC<CircularProgessProps>;
|
|
8
|
+
|
|
9
|
+
export { type CircularProgessProps, CircularProgess as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CircularProgessProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CircularProgess: React.FC<CircularProgessProps>;
|
|
8
|
+
|
|
9
|
+
export { type CircularProgessProps, CircularProgess as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
circularProgress_default
|
|
3
|
+
} from "./chunk-YRFUVQDN.js";
|
|
4
|
+
|
|
5
|
+
// lib/Buttons/submitButton.tsx
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
var SubmitButton = ({
|
|
8
|
+
children,
|
|
9
|
+
type = "submit",
|
|
10
|
+
onClick,
|
|
11
|
+
onDoubleClick,
|
|
12
|
+
isLoading = false,
|
|
13
|
+
bgGradiant = false,
|
|
14
|
+
showLoader = false,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
const [loading, setLoading] = React.useState(false);
|
|
18
|
+
const handleClick = async (e) => {
|
|
19
|
+
if (loading) return;
|
|
20
|
+
if (onClick) {
|
|
21
|
+
setLoading(true);
|
|
22
|
+
try {
|
|
23
|
+
await onClick(e);
|
|
24
|
+
} finally {
|
|
25
|
+
setLoading(false);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const handleDoubleClick = async (e) => {
|
|
30
|
+
if (loading) return;
|
|
31
|
+
if (onDoubleClick) {
|
|
32
|
+
setLoading(true);
|
|
33
|
+
try {
|
|
34
|
+
await onDoubleClick(e);
|
|
35
|
+
} finally {
|
|
36
|
+
setLoading(false);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const buttonProps = {
|
|
41
|
+
...props,
|
|
42
|
+
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
43
|
+
disabled: props.disabled || loading || isLoading,
|
|
44
|
+
...onClick ? {} : { type },
|
|
45
|
+
onClick: handleClick,
|
|
46
|
+
onDoubleClick: handleDoubleClick
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ React.createElement("button", { ...buttonProps }, /* @__PURE__ */ React.createElement("span", null, children), showLoader && (loading || isLoading) && /* @__PURE__ */ React.createElement("span", { style: { marginLeft: 8 } }, /* @__PURE__ */ React.createElement(circularProgress_default, { size: 18 })));
|
|
49
|
+
};
|
|
50
|
+
var submitButton_default = SubmitButton;
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
submitButton_default
|
|
54
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// lib/Progress/circularProgress.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
var CircularProgess = ({
|
|
4
|
+
size = 50,
|
|
5
|
+
color = "#a81c08",
|
|
6
|
+
...props
|
|
7
|
+
}) => {
|
|
8
|
+
return /* @__PURE__ */ React.createElement(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: "rufous-loader",
|
|
12
|
+
style: { width: size, height: size },
|
|
13
|
+
...props
|
|
14
|
+
},
|
|
15
|
+
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React.createElement(
|
|
16
|
+
"circle",
|
|
17
|
+
{
|
|
18
|
+
className: "rufous-loader-circle",
|
|
19
|
+
cx: "50",
|
|
20
|
+
cy: "50",
|
|
21
|
+
r: "45",
|
|
22
|
+
stroke: color
|
|
23
|
+
}
|
|
24
|
+
))
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
var circularProgress_default = CircularProgess;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
circularProgress_default
|
|
31
|
+
};
|
package/dist/icons/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-IR7ZKMED.js";
|
|
2
|
-
import {
|
|
3
|
-
uploadIcon_default
|
|
4
|
-
} from "../chunk-DXJ745NZ.js";
|
|
5
2
|
import {
|
|
6
3
|
userAssignIcon_default
|
|
7
4
|
} from "../chunk-BH53P2UM.js";
|
|
@@ -11,9 +8,6 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
workItemIcon_default
|
|
13
10
|
} from "../chunk-QJPQC544.js";
|
|
14
|
-
import {
|
|
15
|
-
sidebarIcon_default
|
|
16
|
-
} from "../chunk-CSKTBLQQ.js";
|
|
17
11
|
import {
|
|
18
12
|
subscribeIcon_default
|
|
19
13
|
} from "../chunk-ZDVP4SUD.js";
|
|
@@ -36,8 +30,8 @@ import {
|
|
|
36
30
|
unsubscribeIcon_default
|
|
37
31
|
} from "../chunk-NMMC4ATV.js";
|
|
38
32
|
import {
|
|
39
|
-
|
|
40
|
-
} from "../chunk-
|
|
33
|
+
uploadIcon_default
|
|
34
|
+
} from "../chunk-DXJ745NZ.js";
|
|
41
35
|
import {
|
|
42
36
|
questionTypeSingleIcon_default
|
|
43
37
|
} from "../chunk-ZJYLZ6I6.js";
|
|
@@ -60,8 +54,8 @@ import {
|
|
|
60
54
|
rufousLauncherBird_default
|
|
61
55
|
} from "../chunk-QZFGQ5JM.js";
|
|
62
56
|
import {
|
|
63
|
-
|
|
64
|
-
} from "../chunk-
|
|
57
|
+
sidebarIcon_default
|
|
58
|
+
} from "../chunk-CSKTBLQQ.js";
|
|
65
59
|
import {
|
|
66
60
|
projectIcon_default
|
|
67
61
|
} from "../chunk-BYJP2WNC.js";
|
|
@@ -84,8 +78,8 @@ import {
|
|
|
84
78
|
questionTypeDescriptiveIcon_default
|
|
85
79
|
} from "../chunk-C7B23GTE.js";
|
|
86
80
|
import {
|
|
87
|
-
|
|
88
|
-
} from "../chunk-
|
|
81
|
+
questionTypeMultipleIcon_default
|
|
82
|
+
} from "../chunk-XCLXQOLP.js";
|
|
89
83
|
import {
|
|
90
84
|
industryIcon_default
|
|
91
85
|
} from "../chunk-NSW6ZGZF.js";
|
|
@@ -105,8 +99,8 @@ import {
|
|
|
105
99
|
nineDotMenuIcon_default
|
|
106
100
|
} from "../chunk-GESVGIAP.js";
|
|
107
101
|
import {
|
|
108
|
-
|
|
109
|
-
} from "../chunk-
|
|
102
|
+
notificationIcon_default
|
|
103
|
+
} from "../chunk-QIEQRNBE.js";
|
|
110
104
|
import {
|
|
111
105
|
downloadPdfIcon_default
|
|
112
106
|
} from "../chunk-N26C33E6.js";
|
|
@@ -129,8 +123,8 @@ import {
|
|
|
129
123
|
hierarchyIcon_default
|
|
130
124
|
} from "../chunk-WZAU77G7.js";
|
|
131
125
|
import {
|
|
132
|
-
|
|
133
|
-
} from "../chunk-
|
|
126
|
+
inactiveGroupIcon_default
|
|
127
|
+
} from "../chunk-7WNPZ4B7.js";
|
|
134
128
|
import {
|
|
135
129
|
closeIcon_default
|
|
136
130
|
} from "../chunk-WXXJX3FF.js";
|
|
@@ -152,12 +146,18 @@ import {
|
|
|
152
146
|
import {
|
|
153
147
|
dollarIcon_default
|
|
154
148
|
} from "../chunk-GL43GPEM.js";
|
|
149
|
+
import {
|
|
150
|
+
downloadIcon_default
|
|
151
|
+
} from "../chunk-IOEQAR2M.js";
|
|
155
152
|
import {
|
|
156
153
|
activateUserIcon_default
|
|
157
154
|
} from "../chunk-AH6RCYDL.js";
|
|
158
155
|
import {
|
|
159
156
|
archivedIcon_default
|
|
160
157
|
} from "../chunk-3IBCGGN3.js";
|
|
158
|
+
import {
|
|
159
|
+
assignGroupIcon_default
|
|
160
|
+
} from "../chunk-MNPAE2ZF.js";
|
|
161
161
|
export {
|
|
162
162
|
activateUserIcon_default as ActivateUserIcon,
|
|
163
163
|
archivedIcon_default as ArchivedIcon,
|
package/dist/main.cjs
CHANGED
|
@@ -1094,41 +1094,96 @@ var AddButton = ({ children, ...props }) => {
|
|
|
1094
1094
|
var addButton_default = AddButton;
|
|
1095
1095
|
|
|
1096
1096
|
// lib/Buttons/submitButton.tsx
|
|
1097
|
+
var React56 = __toESM(require("react"), 1);
|
|
1098
|
+
|
|
1099
|
+
// lib/Progress/circularProgress.tsx
|
|
1097
1100
|
var React55 = __toESM(require("react"), 1);
|
|
1101
|
+
var CircularProgess = ({
|
|
1102
|
+
size = 50,
|
|
1103
|
+
color = "#a81c08",
|
|
1104
|
+
...props
|
|
1105
|
+
}) => {
|
|
1106
|
+
return /* @__PURE__ */ React55.createElement(
|
|
1107
|
+
"div",
|
|
1108
|
+
{
|
|
1109
|
+
className: "rufous-loader",
|
|
1110
|
+
style: { width: size, height: size },
|
|
1111
|
+
...props
|
|
1112
|
+
},
|
|
1113
|
+
/* @__PURE__ */ React55.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React55.createElement(
|
|
1114
|
+
"circle",
|
|
1115
|
+
{
|
|
1116
|
+
className: "rufous-loader-circle",
|
|
1117
|
+
cx: "50",
|
|
1118
|
+
cy: "50",
|
|
1119
|
+
r: "45",
|
|
1120
|
+
stroke: color
|
|
1121
|
+
}
|
|
1122
|
+
))
|
|
1123
|
+
);
|
|
1124
|
+
};
|
|
1125
|
+
var circularProgress_default = CircularProgess;
|
|
1126
|
+
|
|
1127
|
+
// lib/Buttons/submitButton.tsx
|
|
1098
1128
|
var SubmitButton = ({
|
|
1099
1129
|
children,
|
|
1100
1130
|
type = "submit",
|
|
1101
1131
|
onClick,
|
|
1102
|
-
|
|
1132
|
+
onDoubleClick,
|
|
1133
|
+
isLoading = false,
|
|
1103
1134
|
bgGradiant = false,
|
|
1135
|
+
showLoader = false,
|
|
1104
1136
|
...props
|
|
1105
1137
|
}) => {
|
|
1138
|
+
const [loading, setLoading] = React56.useState(false);
|
|
1139
|
+
const handleClick = async (e) => {
|
|
1140
|
+
if (loading) return;
|
|
1141
|
+
if (onClick) {
|
|
1142
|
+
setLoading(true);
|
|
1143
|
+
try {
|
|
1144
|
+
await onClick(e);
|
|
1145
|
+
} finally {
|
|
1146
|
+
setLoading(false);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
const handleDoubleClick = async (e) => {
|
|
1151
|
+
if (loading) return;
|
|
1152
|
+
if (onDoubleClick) {
|
|
1153
|
+
setLoading(true);
|
|
1154
|
+
try {
|
|
1155
|
+
await onDoubleClick(e);
|
|
1156
|
+
} finally {
|
|
1157
|
+
setLoading(false);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1106
1161
|
const buttonProps = {
|
|
1107
1162
|
...props,
|
|
1108
|
-
className: `btn submit-btn ${bgGradiant
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1163
|
+
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
1164
|
+
disabled: props.disabled || loading || isLoading,
|
|
1165
|
+
...onClick ? {} : { type },
|
|
1166
|
+
onClick: handleClick,
|
|
1167
|
+
onDoubleClick: handleDoubleClick
|
|
1113
1168
|
};
|
|
1114
|
-
return /* @__PURE__ */
|
|
1169
|
+
return /* @__PURE__ */ React56.createElement("button", { ...buttonProps }, /* @__PURE__ */ React56.createElement("span", null, children), showLoader && (loading || isLoading) && /* @__PURE__ */ React56.createElement("span", { style: { marginLeft: 8 } }, /* @__PURE__ */ React56.createElement(circularProgress_default, { size: 18 })));
|
|
1115
1170
|
};
|
|
1116
1171
|
var submitButton_default = SubmitButton;
|
|
1117
1172
|
|
|
1118
1173
|
// lib/Buttons/cancelButton.tsx
|
|
1119
|
-
var
|
|
1120
|
-
var CancelButton = ({ children, ...props }) => /* @__PURE__ */
|
|
1174
|
+
var React57 = __toESM(require("react"), 1);
|
|
1175
|
+
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React57.createElement("button", { className: "btn cancel-btn", ...props }, children);
|
|
1121
1176
|
var cancelButton_default = CancelButton;
|
|
1122
1177
|
|
|
1123
1178
|
// lib/Buttons/stdButton.tsx
|
|
1124
|
-
var
|
|
1179
|
+
var React58 = __toESM(require("react"), 1);
|
|
1125
1180
|
var StandardButton = ({ children, ...props }) => {
|
|
1126
|
-
return /* @__PURE__ */
|
|
1181
|
+
return /* @__PURE__ */ React58.createElement("button", { className: "btn standard-btn", ...props }, children);
|
|
1127
1182
|
};
|
|
1128
1183
|
var stdButton_default = StandardButton;
|
|
1129
1184
|
|
|
1130
1185
|
// lib/Dialogs/BaseDialog.tsx
|
|
1131
|
-
var
|
|
1186
|
+
var React59 = __toESM(require("react"), 1);
|
|
1132
1187
|
var import_react13 = require("react");
|
|
1133
1188
|
var BaseDialog = ({
|
|
1134
1189
|
open = false,
|
|
@@ -1158,7 +1213,7 @@ var BaseDialog = ({
|
|
|
1158
1213
|
const { theme } = useRufousTheme();
|
|
1159
1214
|
const successBtnRef = (0, import_react13.useRef)(null);
|
|
1160
1215
|
if (!open) return null;
|
|
1161
|
-
const renderButtons = () => /* @__PURE__ */
|
|
1216
|
+
const renderButtons = () => /* @__PURE__ */ React59.createElement("div", { className: "dialog-footer", style: { justifyContent: buttonAlign } }, showCancelButton && /* @__PURE__ */ React59.createElement(
|
|
1162
1217
|
"button",
|
|
1163
1218
|
{
|
|
1164
1219
|
className: "btn-cancel",
|
|
@@ -1166,7 +1221,7 @@ var BaseDialog = ({
|
|
|
1166
1221
|
disabled: isLoading
|
|
1167
1222
|
},
|
|
1168
1223
|
cancelText
|
|
1169
|
-
), onConfirm && /* @__PURE__ */
|
|
1224
|
+
), onConfirm && /* @__PURE__ */ React59.createElement(
|
|
1170
1225
|
"button",
|
|
1171
1226
|
{
|
|
1172
1227
|
ref: successBtnRef,
|
|
@@ -1178,9 +1233,9 @@ var BaseDialog = ({
|
|
|
1178
1233
|
if (successBtnRef.current) successBtnRef.current.disabled = false;
|
|
1179
1234
|
}
|
|
1180
1235
|
},
|
|
1181
|
-
loading ? /* @__PURE__ */
|
|
1236
|
+
loading ? /* @__PURE__ */ React59.createElement("span", { className: "spinner" }) : /* @__PURE__ */ React59.createElement("span", null, confirmText)
|
|
1182
1237
|
));
|
|
1183
|
-
return /* @__PURE__ */
|
|
1238
|
+
return /* @__PURE__ */ React59.createElement("div", { className: `dialog-overlay ${fullScreen ? "fullscreen" : ""}` }, /* @__PURE__ */ React59.createElement(
|
|
1184
1239
|
"div",
|
|
1185
1240
|
{
|
|
1186
1241
|
className: `dialog-container ${className || ""}`,
|
|
@@ -1190,9 +1245,9 @@ var BaseDialog = ({
|
|
|
1190
1245
|
width: fullWidth ? "100%" : "auto"
|
|
1191
1246
|
}
|
|
1192
1247
|
},
|
|
1193
|
-
/* @__PURE__ */
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ React59.createElement("div", { className: "dialog-title" }, /* @__PURE__ */ React59.createElement("h2", null, formatTitle ? title?.charAt(0).toUpperCase() + title?.slice(1).toLowerCase() : title), showCloseButton && /* @__PURE__ */ React59.createElement("button", { className: "btn-close", onClick: onClose }, /* @__PURE__ */ React59.createElement(closeIcon_default, { color: theme?.customStyles?.iconColor || "#707070" }))),
|
|
1249
|
+
/* @__PURE__ */ React59.createElement("div", { className: "dialog-divider" }),
|
|
1250
|
+
/* @__PURE__ */ React59.createElement(
|
|
1196
1251
|
"div",
|
|
1197
1252
|
{
|
|
1198
1253
|
className: "dialog-body",
|
package/dist/main.css
CHANGED
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* lib/styles/progress.css */
|
|
210
|
+
.rufous-loader {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: inline-block;
|
|
213
|
+
}
|
|
214
|
+
.rufous-loader svg {
|
|
215
|
+
transform: rotate(-45deg);
|
|
216
|
+
}
|
|
217
|
+
.rufous-loader-circle {
|
|
218
|
+
fill: none;
|
|
219
|
+
stroke-width: 9;
|
|
220
|
+
stroke-linecap: round;
|
|
221
|
+
stroke-dasharray: 283;
|
|
222
|
+
stroke-dashoffset: 280;
|
|
223
|
+
transform-origin: 50% 50%;
|
|
224
|
+
animation: rufous-rotate 1.3s linear infinite, rufous-dash 1.3s ease-in-out infinite;
|
|
225
|
+
}
|
|
226
|
+
@keyframes rufous-rotate {
|
|
227
|
+
100% {
|
|
228
|
+
transform: rotate(360deg);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@keyframes rufous-dash {
|
|
232
|
+
0% {
|
|
233
|
+
stroke-dasharray: 1, 283;
|
|
234
|
+
stroke-dashoffset: 0;
|
|
235
|
+
}
|
|
236
|
+
50% {
|
|
237
|
+
stroke-dasharray: 180, 283;
|
|
238
|
+
stroke-dashoffset: -70;
|
|
239
|
+
}
|
|
240
|
+
100% {
|
|
241
|
+
stroke-dasharray: 1, 283;
|
|
242
|
+
stroke-dashoffset: -260;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
209
246
|
/* lib/style.css */
|
|
210
247
|
.theme-rufous .act-icon svg {
|
|
211
248
|
color: #a81c08 !important;
|
package/dist/main.js
CHANGED
|
@@ -2,9 +2,6 @@ import {
|
|
|
2
2
|
BaseDialog_default
|
|
3
3
|
} from "./chunk-CPLUOEPG.js";
|
|
4
4
|
import "./chunk-IR7ZKMED.js";
|
|
5
|
-
import {
|
|
6
|
-
uploadIcon_default
|
|
7
|
-
} from "./chunk-DXJ745NZ.js";
|
|
8
5
|
import {
|
|
9
6
|
userAssignIcon_default
|
|
10
7
|
} from "./chunk-BH53P2UM.js";
|
|
@@ -14,9 +11,6 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
workItemIcon_default
|
|
16
13
|
} from "./chunk-QJPQC544.js";
|
|
17
|
-
import {
|
|
18
|
-
sidebarIcon_default
|
|
19
|
-
} from "./chunk-CSKTBLQQ.js";
|
|
20
14
|
import {
|
|
21
15
|
subscribeIcon_default
|
|
22
16
|
} from "./chunk-ZDVP4SUD.js";
|
|
@@ -39,8 +33,8 @@ import {
|
|
|
39
33
|
unsubscribeIcon_default
|
|
40
34
|
} from "./chunk-NMMC4ATV.js";
|
|
41
35
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
36
|
+
uploadIcon_default
|
|
37
|
+
} from "./chunk-DXJ745NZ.js";
|
|
44
38
|
import {
|
|
45
39
|
questionTypeSingleIcon_default
|
|
46
40
|
} from "./chunk-ZJYLZ6I6.js";
|
|
@@ -63,8 +57,8 @@ import {
|
|
|
63
57
|
rufousLauncherBird_default
|
|
64
58
|
} from "./chunk-QZFGQ5JM.js";
|
|
65
59
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
60
|
+
sidebarIcon_default
|
|
61
|
+
} from "./chunk-CSKTBLQQ.js";
|
|
68
62
|
import {
|
|
69
63
|
projectIcon_default
|
|
70
64
|
} from "./chunk-BYJP2WNC.js";
|
|
@@ -87,8 +81,8 @@ import {
|
|
|
87
81
|
questionTypeDescriptiveIcon_default
|
|
88
82
|
} from "./chunk-C7B23GTE.js";
|
|
89
83
|
import {
|
|
90
|
-
|
|
91
|
-
} from "./chunk-
|
|
84
|
+
questionTypeMultipleIcon_default
|
|
85
|
+
} from "./chunk-XCLXQOLP.js";
|
|
92
86
|
import {
|
|
93
87
|
industryIcon_default
|
|
94
88
|
} from "./chunk-NSW6ZGZF.js";
|
|
@@ -108,8 +102,8 @@ import {
|
|
|
108
102
|
nineDotMenuIcon_default
|
|
109
103
|
} from "./chunk-GESVGIAP.js";
|
|
110
104
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
105
|
+
notificationIcon_default
|
|
106
|
+
} from "./chunk-QIEQRNBE.js";
|
|
113
107
|
import {
|
|
114
108
|
downloadPdfIcon_default
|
|
115
109
|
} from "./chunk-N26C33E6.js";
|
|
@@ -132,8 +126,8 @@ import {
|
|
|
132
126
|
hierarchyIcon_default
|
|
133
127
|
} from "./chunk-WZAU77G7.js";
|
|
134
128
|
import {
|
|
135
|
-
|
|
136
|
-
} from "./chunk-
|
|
129
|
+
inactiveGroupIcon_default
|
|
130
|
+
} from "./chunk-7WNPZ4B7.js";
|
|
137
131
|
import {
|
|
138
132
|
closeIcon_default
|
|
139
133
|
} from "./chunk-WXXJX3FF.js";
|
|
@@ -155,6 +149,9 @@ import {
|
|
|
155
149
|
import {
|
|
156
150
|
dollarIcon_default
|
|
157
151
|
} from "./chunk-GL43GPEM.js";
|
|
152
|
+
import {
|
|
153
|
+
downloadIcon_default
|
|
154
|
+
} from "./chunk-IOEQAR2M.js";
|
|
158
155
|
import {
|
|
159
156
|
RufousThemeProvider,
|
|
160
157
|
useRufousTheme
|
|
@@ -168,6 +165,9 @@ import {
|
|
|
168
165
|
import {
|
|
169
166
|
archivedIcon_default
|
|
170
167
|
} from "./chunk-3IBCGGN3.js";
|
|
168
|
+
import {
|
|
169
|
+
assignGroupIcon_default
|
|
170
|
+
} from "./chunk-MNPAE2ZF.js";
|
|
171
171
|
import "./chunk-QPGJCRBS.js";
|
|
172
172
|
import {
|
|
173
173
|
addButton_default
|
|
@@ -180,7 +180,8 @@ import {
|
|
|
180
180
|
} from "./chunk-R3GARAVJ.js";
|
|
181
181
|
import {
|
|
182
182
|
submitButton_default
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-FBT3RUOE.js";
|
|
184
|
+
import "./chunk-YRFUVQDN.js";
|
|
184
185
|
export {
|
|
185
186
|
APP_THEMES,
|
|
186
187
|
activateUserIcon_default as ActivateUserIcon,
|
package/dist/style.css
CHANGED
|
@@ -206,6 +206,43 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* lib/styles/progress.css */
|
|
210
|
+
.rufous-loader {
|
|
211
|
+
position: relative;
|
|
212
|
+
display: inline-block;
|
|
213
|
+
}
|
|
214
|
+
.rufous-loader svg {
|
|
215
|
+
transform: rotate(-45deg);
|
|
216
|
+
}
|
|
217
|
+
.rufous-loader-circle {
|
|
218
|
+
fill: none;
|
|
219
|
+
stroke-width: 9;
|
|
220
|
+
stroke-linecap: round;
|
|
221
|
+
stroke-dasharray: 283;
|
|
222
|
+
stroke-dashoffset: 280;
|
|
223
|
+
transform-origin: 50% 50%;
|
|
224
|
+
animation: rufous-rotate 1.3s linear infinite, rufous-dash 1.3s ease-in-out infinite;
|
|
225
|
+
}
|
|
226
|
+
@keyframes rufous-rotate {
|
|
227
|
+
100% {
|
|
228
|
+
transform: rotate(360deg);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@keyframes rufous-dash {
|
|
232
|
+
0% {
|
|
233
|
+
stroke-dasharray: 1, 283;
|
|
234
|
+
stroke-dashoffset: 0;
|
|
235
|
+
}
|
|
236
|
+
50% {
|
|
237
|
+
stroke-dasharray: 180, 283;
|
|
238
|
+
stroke-dashoffset: -70;
|
|
239
|
+
}
|
|
240
|
+
100% {
|
|
241
|
+
stroke-dasharray: 1, 283;
|
|
242
|
+
stroke-dashoffset: -260;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
209
246
|
/* lib/style.css */
|
|
210
247
|
.theme-rufous .act-icon svg {
|
|
211
248
|
color: #a81c08 !important;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* lib/styles/progress.css */
|
|
2
|
+
.rufous-loader {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
}
|
|
6
|
+
.rufous-loader svg {
|
|
7
|
+
transform: rotate(-45deg);
|
|
8
|
+
}
|
|
9
|
+
.rufous-loader-circle {
|
|
10
|
+
fill: none;
|
|
11
|
+
stroke-width: 9;
|
|
12
|
+
stroke-linecap: round;
|
|
13
|
+
stroke-dasharray: 283;
|
|
14
|
+
stroke-dashoffset: 280;
|
|
15
|
+
transform-origin: 50% 50%;
|
|
16
|
+
animation: rufous-rotate 1.3s linear infinite, rufous-dash 1.3s ease-in-out infinite;
|
|
17
|
+
}
|
|
18
|
+
@keyframes rufous-rotate {
|
|
19
|
+
100% {
|
|
20
|
+
transform: rotate(360deg);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@keyframes rufous-dash {
|
|
24
|
+
0% {
|
|
25
|
+
stroke-dasharray: 1, 283;
|
|
26
|
+
stroke-dashoffset: 0;
|
|
27
|
+
}
|
|
28
|
+
50% {
|
|
29
|
+
stroke-dasharray: 180, 283;
|
|
30
|
+
stroke-dashoffset: -70;
|
|
31
|
+
}
|
|
32
|
+
100% {
|
|
33
|
+
stroke-dasharray: 1, 283;
|
|
34
|
+
stroke-dashoffset: -260;
|
|
35
|
+
}
|
|
36
|
+
}
|
package/package.json
CHANGED
package/dist/chunk-3WUD5EX4.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// lib/Buttons/submitButton.tsx
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
var SubmitButton = ({
|
|
4
|
-
children,
|
|
5
|
-
type = "submit",
|
|
6
|
-
onClick,
|
|
7
|
-
loading = false,
|
|
8
|
-
bgGradiant = false,
|
|
9
|
-
...props
|
|
10
|
-
}) => {
|
|
11
|
-
const buttonProps = {
|
|
12
|
-
...props,
|
|
13
|
-
className: `btn submit-btn ${bgGradiant && "submit-btn-gradiant"} ${props.className ?? ""}`,
|
|
14
|
-
onClick,
|
|
15
|
-
disabled: props.disabled || loading,
|
|
16
|
-
...onClick ? {} : { type }
|
|
17
|
-
// only set type when no onClick
|
|
18
|
-
};
|
|
19
|
-
return /* @__PURE__ */ React.createElement("button", { ...buttonProps }, loading ? "Loading..." : children);
|
|
20
|
-
};
|
|
21
|
-
var submitButton_default = SubmitButton;
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
submitButton_default
|
|
25
|
-
};
|