@rufous/ui 0.1.17 → 0.1.21
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/{Button.cjs → addButton.cjs} +9 -12
- package/dist/Buttons/addButton.css +68 -0
- package/dist/Buttons/addButton.d.cts +8 -0
- package/dist/Buttons/addButton.d.ts +8 -0
- package/dist/Buttons/addButton.js +7 -0
- package/dist/Buttons/cancelButton.cjs +37 -0
- package/dist/Buttons/cancelButton.css +68 -0
- package/dist/Buttons/cancelButton.d.cts +8 -0
- package/dist/Buttons/cancelButton.d.ts +8 -0
- package/dist/Buttons/cancelButton.js +7 -0
- package/dist/Buttons/index.cjs +75 -0
- package/dist/Buttons/index.css +68 -0
- package/dist/Buttons/index.d.cts +4 -0
- package/dist/Buttons/index.d.ts +4 -0
- package/dist/Buttons/index.js +16 -0
- package/dist/Buttons/submitButton.cjs +53 -0
- package/dist/Buttons/submitButton.css +68 -0
- package/dist/Buttons/submitButton.d.cts +11 -0
- package/dist/Buttons/submitButton.d.ts +11 -0
- package/dist/Buttons/submitButton.js +7 -0
- package/dist/CheckBoxes/CheckBox.js +25 -3
- package/dist/TextFields/FloatingInput.js +28 -3
- package/dist/chunk-54KCNQAW.js +24 -0
- package/dist/chunk-5UEJAVFK.js +10 -0
- package/dist/chunk-7KARALMQ.js +8 -0
- package/dist/chunk-BYJP2WNC.js +18 -0
- package/dist/chunk-FSRABKKC.js +18 -0
- package/dist/chunk-GESVGIAP.js +10 -0
- package/dist/chunk-GL43GPEM.js +18 -0
- package/dist/chunk-MKK7M3BH.js +18 -0
- package/dist/chunk-N65GKZS6.js +10 -0
- package/dist/chunk-NSW6ZGZF.js +19 -0
- package/dist/chunk-QIEQRNBE.js +10 -0
- package/dist/chunk-QPGJCRBS.js +0 -0
- package/dist/chunk-RJ43D3XB.js +18 -0
- package/dist/chunk-ZAYWFYP4.js +18 -0
- package/dist/icons/dollarIcon.cjs +47 -0
- package/dist/icons/dollarIcon.d.cts +8 -0
- package/dist/icons/dollarIcon.d.ts +8 -0
- package/dist/icons/dollarIcon.js +6 -0
- package/dist/icons/engagementIcon.cjs +47 -0
- package/dist/icons/engagementIcon.d.cts +8 -0
- package/dist/icons/engagementIcon.d.ts +8 -0
- package/dist/icons/engagementIcon.js +6 -0
- package/dist/icons/functionIcon.cjs +47 -0
- package/dist/icons/functionIcon.d.cts +8 -0
- package/dist/icons/functionIcon.d.ts +8 -0
- package/dist/icons/functionIcon.js +6 -0
- package/dist/icons/helpOutlinedIcon.cjs +1 -53
- package/dist/icons/helpOutlinedIcon.js +1 -1
- package/dist/icons/index.cjs +123 -200
- package/dist/icons/index.d.cts +7 -0
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.js +61 -33
- package/dist/icons/industryIcon.cjs +48 -0
- package/dist/icons/industryIcon.d.cts +8 -0
- package/dist/icons/industryIcon.d.ts +8 -0
- package/dist/icons/industryIcon.js +6 -0
- package/dist/icons/minExperienceIcon.cjs +47 -0
- package/dist/icons/minExperienceIcon.d.cts +8 -0
- package/dist/icons/minExperienceIcon.d.ts +8 -0
- package/dist/icons/minExperienceIcon.js +6 -0
- package/dist/icons/nineDotMenuIcon.cjs +1 -146
- package/dist/icons/nineDotMenuIcon.js +1 -1
- package/dist/icons/notificationIcon.cjs +1 -1
- package/dist/icons/notificationIcon.js +1 -1
- package/dist/icons/projectIcon.cjs +47 -0
- package/dist/icons/projectIcon.d.cts +8 -0
- package/dist/icons/projectIcon.d.ts +8 -0
- package/dist/icons/projectIcon.js +6 -0
- package/dist/icons/rolesIcon.cjs +47 -0
- package/dist/icons/rolesIcon.d.cts +8 -0
- package/dist/icons/rolesIcon.d.ts +8 -0
- package/dist/icons/rolesIcon.js +6 -0
- package/dist/icons/rufousAiIcon.cjs +37 -0
- package/dist/icons/rufousAiIcon.d.cts +8 -0
- package/dist/icons/rufousAiIcon.d.ts +8 -0
- package/dist/icons/rufousAiIcon.js +7 -0
- package/dist/main.cjs +309 -414
- package/dist/main.css +69 -0
- package/dist/main.d.cts +10 -3
- package/dist/main.d.ts +10 -3
- package/dist/main.js +77 -47
- package/dist/styles/button.css +68 -0
- package/dist/styles/button.d.cts +2 -0
- package/dist/styles/button.d.ts +2 -0
- package/package.json +1 -1
- package/dist/Buttons/Button.d.cjs +0 -17
- package/dist/Buttons/Button.d.cts +0 -10
- package/dist/Buttons/Button.d.d.cts +0 -10
- package/dist/Buttons/Button.d.d.ts +0 -10
- package/dist/Buttons/Button.d.ts +0 -10
- package/dist/Buttons/Button.js +0 -6
- package/dist/chunk-ASP3DBRX.js +0 -9
- package/dist/chunk-AWA5Y5LH.js +0 -32
- package/dist/chunk-D7SFBVJY.js +0 -155
- package/dist/chunk-MWCKUVQG.js +0 -10
- package/dist/chunk-PULIGWAP.js +0 -62
- package/dist/chunk-QKDJLUKZ.js +0 -29
- /package/dist/{Buttons/Button.d.js → chunk-CC7BNJL3.js} +0 -0
- /package/dist/{chunk-WNXUY4B6.js → chunk-QGVJQLGY.js} +0 -0
|
@@ -26,17 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// lib/Buttons/
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
32
|
-
|
|
29
|
+
// lib/Buttons/addButton.tsx
|
|
30
|
+
var addButton_exports = {};
|
|
31
|
+
__export(addButton_exports, {
|
|
32
|
+
default: () => addButton_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
return /* @__PURE__ */
|
|
34
|
+
module.exports = __toCommonJS(addButton_exports);
|
|
35
|
+
var React = __toESM(require("react"), 1);
|
|
36
|
+
var AddButton = ({ children, ...props }) => {
|
|
37
|
+
return /* @__PURE__ */ React.createElement("button", { className: "add-btn", ...props }, "+", children);
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
Button
|
|
42
|
-
});
|
|
39
|
+
var addButton_default = AddButton;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* lib/styles/button.css */
|
|
2
|
+
.cancel-btn {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
min-width: 84px;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
padding: 7px 10px;
|
|
8
|
+
border: 1px solid rgb(164, 27, 6);
|
|
9
|
+
border-radius: 34px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
color: rgb(164, 27, 6);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition:
|
|
14
|
+
background-color 250ms,
|
|
15
|
+
box-shadow 250ms,
|
|
16
|
+
border-color 250ms,
|
|
17
|
+
color 250ms;
|
|
18
|
+
box-shadow:
|
|
19
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
|
|
20
|
+
rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
21
|
+
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
|
|
22
|
+
}
|
|
23
|
+
.cancel-btn:hover {
|
|
24
|
+
box-shadow:
|
|
25
|
+
rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
|
|
26
|
+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
|
|
27
|
+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
|
|
28
|
+
}
|
|
29
|
+
.cancel-btn:disabled {
|
|
30
|
+
background-color: #e0e0e0;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
.submit-btn {
|
|
34
|
+
background-color: #9b1906;
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
min-width: 92px;
|
|
39
|
+
height: 38px;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background-color 250ms ease-in-out;
|
|
44
|
+
}
|
|
45
|
+
.submit-btn:hover {
|
|
46
|
+
background-color: #9b1906;
|
|
47
|
+
}
|
|
48
|
+
.submit-btn:disabled {
|
|
49
|
+
background-color: #e0e0e0;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
.add-btn {
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border: 1px solid #a41b06;
|
|
55
|
+
border-radius: 34px;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
padding: 7px 12px;
|
|
59
|
+
color: #a41b06;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.25s ease-in-out;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
.add-btn:hover {
|
|
66
|
+
background: #a41b06;
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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/Buttons/cancelButton.tsx
|
|
30
|
+
var cancelButton_exports = {};
|
|
31
|
+
__export(cancelButton_exports, {
|
|
32
|
+
default: () => cancelButton_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(cancelButton_exports);
|
|
35
|
+
var React = __toESM(require("react"), 1);
|
|
36
|
+
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React.createElement("button", { className: "cancel-btn", ...props }, children);
|
|
37
|
+
var cancelButton_default = CancelButton;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* lib/styles/button.css */
|
|
2
|
+
.cancel-btn {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
min-width: 84px;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
padding: 7px 10px;
|
|
8
|
+
border: 1px solid rgb(164, 27, 6);
|
|
9
|
+
border-radius: 34px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
color: rgb(164, 27, 6);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition:
|
|
14
|
+
background-color 250ms,
|
|
15
|
+
box-shadow 250ms,
|
|
16
|
+
border-color 250ms,
|
|
17
|
+
color 250ms;
|
|
18
|
+
box-shadow:
|
|
19
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
|
|
20
|
+
rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
21
|
+
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
|
|
22
|
+
}
|
|
23
|
+
.cancel-btn:hover {
|
|
24
|
+
box-shadow:
|
|
25
|
+
rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
|
|
26
|
+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
|
|
27
|
+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
|
|
28
|
+
}
|
|
29
|
+
.cancel-btn:disabled {
|
|
30
|
+
background-color: #e0e0e0;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
.submit-btn {
|
|
34
|
+
background-color: #9b1906;
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
min-width: 92px;
|
|
39
|
+
height: 38px;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background-color 250ms ease-in-out;
|
|
44
|
+
}
|
|
45
|
+
.submit-btn:hover {
|
|
46
|
+
background-color: #9b1906;
|
|
47
|
+
}
|
|
48
|
+
.submit-btn:disabled {
|
|
49
|
+
background-color: #e0e0e0;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
.add-btn {
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border: 1px solid #a41b06;
|
|
55
|
+
border-radius: 34px;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
padding: 7px 12px;
|
|
59
|
+
color: #a41b06;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.25s ease-in-out;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
.add-btn:hover {
|
|
66
|
+
background: #a41b06;
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CancelButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
children: string;
|
|
5
|
+
}
|
|
6
|
+
declare const CancelButton: React.FC<CancelButtonProps>;
|
|
7
|
+
|
|
8
|
+
export { type CancelButtonProps, CancelButton as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CancelButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
children: string;
|
|
5
|
+
}
|
|
6
|
+
declare const CancelButton: React.FC<CancelButtonProps>;
|
|
7
|
+
|
|
8
|
+
export { type CancelButtonProps, CancelButton as default };
|
|
@@ -0,0 +1,75 @@
|
|
|
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/Buttons/index.ts
|
|
30
|
+
var Buttons_exports = {};
|
|
31
|
+
__export(Buttons_exports, {
|
|
32
|
+
AddButton: () => addButton_default,
|
|
33
|
+
CancelButton: () => cancelButton_default,
|
|
34
|
+
SubmitButton: () => submitButton_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(Buttons_exports);
|
|
37
|
+
|
|
38
|
+
// lib/Buttons/addButton.tsx
|
|
39
|
+
var React = __toESM(require("react"), 1);
|
|
40
|
+
var AddButton = ({ children, ...props }) => {
|
|
41
|
+
return /* @__PURE__ */ React.createElement("button", { className: "add-btn", ...props }, "+", children);
|
|
42
|
+
};
|
|
43
|
+
var addButton_default = AddButton;
|
|
44
|
+
|
|
45
|
+
// lib/Buttons/submitButton.tsx
|
|
46
|
+
var React2 = __toESM(require("react"), 1);
|
|
47
|
+
var SubmitButton = ({
|
|
48
|
+
children,
|
|
49
|
+
type = "submit",
|
|
50
|
+
onClick,
|
|
51
|
+
loading = false,
|
|
52
|
+
...props
|
|
53
|
+
}) => {
|
|
54
|
+
const buttonProps = {
|
|
55
|
+
...props,
|
|
56
|
+
className: `submit-btn ${props.className ?? ""}`,
|
|
57
|
+
onClick,
|
|
58
|
+
disabled: props.disabled || loading,
|
|
59
|
+
...onClick ? {} : { type }
|
|
60
|
+
// only set type when no onClick
|
|
61
|
+
};
|
|
62
|
+
return /* @__PURE__ */ React2.createElement("button", { ...buttonProps }, loading ? "Loading..." : children);
|
|
63
|
+
};
|
|
64
|
+
var submitButton_default = SubmitButton;
|
|
65
|
+
|
|
66
|
+
// lib/Buttons/cancelButton.tsx
|
|
67
|
+
var React3 = __toESM(require("react"), 1);
|
|
68
|
+
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React3.createElement("button", { className: "cancel-btn", ...props }, children);
|
|
69
|
+
var cancelButton_default = CancelButton;
|
|
70
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
71
|
+
0 && (module.exports = {
|
|
72
|
+
AddButton,
|
|
73
|
+
CancelButton,
|
|
74
|
+
SubmitButton
|
|
75
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* lib/styles/button.css */
|
|
2
|
+
.cancel-btn {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
min-width: 84px;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
padding: 7px 10px;
|
|
8
|
+
border: 1px solid rgb(164, 27, 6);
|
|
9
|
+
border-radius: 34px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
color: rgb(164, 27, 6);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition:
|
|
14
|
+
background-color 250ms,
|
|
15
|
+
box-shadow 250ms,
|
|
16
|
+
border-color 250ms,
|
|
17
|
+
color 250ms;
|
|
18
|
+
box-shadow:
|
|
19
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
|
|
20
|
+
rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
21
|
+
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
|
|
22
|
+
}
|
|
23
|
+
.cancel-btn:hover {
|
|
24
|
+
box-shadow:
|
|
25
|
+
rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
|
|
26
|
+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
|
|
27
|
+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
|
|
28
|
+
}
|
|
29
|
+
.cancel-btn:disabled {
|
|
30
|
+
background-color: #e0e0e0;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
.submit-btn {
|
|
34
|
+
background-color: #9b1906;
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
min-width: 92px;
|
|
39
|
+
height: 38px;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background-color 250ms ease-in-out;
|
|
44
|
+
}
|
|
45
|
+
.submit-btn:hover {
|
|
46
|
+
background-color: #9b1906;
|
|
47
|
+
}
|
|
48
|
+
.submit-btn:disabled {
|
|
49
|
+
background-color: #e0e0e0;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
.add-btn {
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border: 1px solid #a41b06;
|
|
55
|
+
border-radius: 34px;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
padding: 7px 12px;
|
|
59
|
+
color: #a41b06;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.25s ease-in-out;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
.add-btn:hover {
|
|
66
|
+
background: #a41b06;
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../chunk-QPGJCRBS.js";
|
|
2
|
+
import {
|
|
3
|
+
addButton_default
|
|
4
|
+
} from "../chunk-N65GKZS6.js";
|
|
5
|
+
import {
|
|
6
|
+
cancelButton_default
|
|
7
|
+
} from "../chunk-7KARALMQ.js";
|
|
8
|
+
import {
|
|
9
|
+
submitButton_default
|
|
10
|
+
} from "../chunk-54KCNQAW.js";
|
|
11
|
+
import "../chunk-QGVJQLGY.js";
|
|
12
|
+
export {
|
|
13
|
+
addButton_default as AddButton,
|
|
14
|
+
cancelButton_default as CancelButton,
|
|
15
|
+
submitButton_default as SubmitButton
|
|
16
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
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/Buttons/submitButton.tsx
|
|
30
|
+
var submitButton_exports = {};
|
|
31
|
+
__export(submitButton_exports, {
|
|
32
|
+
default: () => submitButton_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(submitButton_exports);
|
|
35
|
+
var React = __toESM(require("react"), 1);
|
|
36
|
+
var SubmitButton = ({
|
|
37
|
+
children,
|
|
38
|
+
type = "submit",
|
|
39
|
+
onClick,
|
|
40
|
+
loading = false,
|
|
41
|
+
...props
|
|
42
|
+
}) => {
|
|
43
|
+
const buttonProps = {
|
|
44
|
+
...props,
|
|
45
|
+
className: `submit-btn ${props.className ?? ""}`,
|
|
46
|
+
onClick,
|
|
47
|
+
disabled: props.disabled || loading,
|
|
48
|
+
...onClick ? {} : { type }
|
|
49
|
+
// only set type when no onClick
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ React.createElement("button", { ...buttonProps }, loading ? "Loading..." : children);
|
|
52
|
+
};
|
|
53
|
+
var submitButton_default = SubmitButton;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* lib/styles/button.css */
|
|
2
|
+
.cancel-btn {
|
|
3
|
+
text-transform: uppercase;
|
|
4
|
+
min-width: 84px;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
padding: 7px 10px;
|
|
8
|
+
border: 1px solid rgb(164, 27, 6);
|
|
9
|
+
border-radius: 34px;
|
|
10
|
+
background: #fff;
|
|
11
|
+
color: rgb(164, 27, 6);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition:
|
|
14
|
+
background-color 250ms,
|
|
15
|
+
box-shadow 250ms,
|
|
16
|
+
border-color 250ms,
|
|
17
|
+
color 250ms;
|
|
18
|
+
box-shadow:
|
|
19
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
|
|
20
|
+
rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
21
|
+
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
|
|
22
|
+
}
|
|
23
|
+
.cancel-btn:hover {
|
|
24
|
+
box-shadow:
|
|
25
|
+
rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
|
|
26
|
+
rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
|
|
27
|
+
rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;
|
|
28
|
+
}
|
|
29
|
+
.cancel-btn:disabled {
|
|
30
|
+
background-color: #e0e0e0;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
.submit-btn {
|
|
34
|
+
background-color: #9b1906;
|
|
35
|
+
color: #fff;
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
min-width: 92px;
|
|
39
|
+
height: 38px;
|
|
40
|
+
border: none;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
transition: background-color 250ms ease-in-out;
|
|
44
|
+
}
|
|
45
|
+
.submit-btn:hover {
|
|
46
|
+
background-color: #9b1906;
|
|
47
|
+
}
|
|
48
|
+
.submit-btn:disabled {
|
|
49
|
+
background-color: #e0e0e0;
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
.add-btn {
|
|
53
|
+
background: #ffffff;
|
|
54
|
+
border: 1px solid #a41b06;
|
|
55
|
+
border-radius: 34px;
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
padding: 7px 12px;
|
|
59
|
+
color: #a41b06;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.25s ease-in-out;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
.add-btn:hover {
|
|
66
|
+
background: #a41b06;
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
type?: "button" | "submit" | "reset";
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
10
|
+
|
|
11
|
+
export { type SubmitButtonProps, SubmitButton as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
type?: "button" | "submit" | "reset";
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
10
|
+
|
|
11
|
+
export { type SubmitButtonProps, SubmitButton as default };
|
|
@@ -1,6 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// lib/CheckBoxes/CheckBox.jsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var Checkbox = ({
|
|
4
|
+
id,
|
|
5
|
+
label,
|
|
6
|
+
checked,
|
|
7
|
+
onChange,
|
|
8
|
+
disabled = false,
|
|
9
|
+
className = "",
|
|
10
|
+
style
|
|
11
|
+
}) => {
|
|
12
|
+
const handleChange = (e) => {
|
|
13
|
+
onChange(e.target.checked);
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ React.createElement("div", { className: "checkbox-wrapper-13" }, /* @__PURE__ */ React.createElement("label", { className: `${className}`, style }, /* @__PURE__ */ React.createElement(
|
|
16
|
+
"input",
|
|
17
|
+
{
|
|
18
|
+
id,
|
|
19
|
+
type: "checkbox",
|
|
20
|
+
checked,
|
|
21
|
+
onChange: handleChange,
|
|
22
|
+
disabled
|
|
23
|
+
}
|
|
24
|
+
), label && /* @__PURE__ */ React.createElement("span", { className: "checkbox-label" }, label)));
|
|
25
|
+
};
|
|
4
26
|
export {
|
|
5
27
|
Checkbox
|
|
6
28
|
};
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// lib/TextFields/FloatingInput.jsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var FloatingInput = ({
|
|
4
|
+
label,
|
|
5
|
+
name,
|
|
6
|
+
id,
|
|
7
|
+
type = "text",
|
|
8
|
+
value,
|
|
9
|
+
onChange,
|
|
10
|
+
required = false,
|
|
11
|
+
placeholder,
|
|
12
|
+
className = "",
|
|
13
|
+
...props
|
|
14
|
+
}) => {
|
|
15
|
+
return /* @__PURE__ */ React.createElement("div", { className: `form__group field ${className}`, ...props }, /* @__PURE__ */ React.createElement(
|
|
16
|
+
"input",
|
|
17
|
+
{
|
|
18
|
+
type,
|
|
19
|
+
className: "form__field",
|
|
20
|
+
placeholder: placeholder || label,
|
|
21
|
+
name,
|
|
22
|
+
id: id || name,
|
|
23
|
+
value,
|
|
24
|
+
onChange,
|
|
25
|
+
required
|
|
26
|
+
}
|
|
27
|
+
), /* @__PURE__ */ React.createElement("label", { htmlFor: id || name, className: "form__label" }, label));
|
|
28
|
+
};
|
|
4
29
|
export {
|
|
5
30
|
FloatingInput
|
|
6
31
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const buttonProps = {
|
|
11
|
+
...props,
|
|
12
|
+
className: `submit-btn ${props.className ?? ""}`,
|
|
13
|
+
onClick,
|
|
14
|
+
disabled: props.disabled || loading,
|
|
15
|
+
...onClick ? {} : { type }
|
|
16
|
+
// only set type when no onClick
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ React.createElement("button", { ...buttonProps }, loading ? "Loading..." : children);
|
|
19
|
+
};
|
|
20
|
+
var submitButton_default = SubmitButton;
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
submitButton_default
|
|
24
|
+
};
|