@rufous/ui 0.0.1
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/README.md +69 -0
- package/dist/Buttons/Button.cjs +42 -0
- package/dist/Buttons/Button.d.cjs +17 -0
- package/dist/Buttons/Button.d.cts +10 -0
- package/dist/Buttons/Button.d.d.cts +10 -0
- package/dist/Buttons/Button.d.d.ts +10 -0
- package/dist/Buttons/Button.d.js +0 -0
- package/dist/Buttons/Button.d.ts +10 -0
- package/dist/Buttons/Button.js +6 -0
- package/dist/CheckBoxes/CheckBox.cjs +62 -0
- package/dist/CheckBoxes/CheckBox.d.cjs +17 -0
- package/dist/CheckBoxes/CheckBox.d.cts +15 -0
- package/dist/CheckBoxes/CheckBox.d.d.cts +15 -0
- package/dist/CheckBoxes/CheckBox.d.d.ts +15 -0
- package/dist/CheckBoxes/CheckBox.d.js +0 -0
- package/dist/CheckBoxes/CheckBox.d.ts +15 -0
- package/dist/CheckBoxes/CheckBox.js +6 -0
- package/dist/Contexts/rufousThemeProvider.cjs +177 -0
- package/dist/Contexts/rufousThemeProvider.d.cjs +17 -0
- package/dist/Contexts/rufousThemeProvider.d.cts +28 -0
- package/dist/Contexts/rufousThemeProvider.d.d.cts +28 -0
- package/dist/Contexts/rufousThemeProvider.d.d.ts +28 -0
- package/dist/Contexts/rufousThemeProvider.d.js +0 -0
- package/dist/Contexts/rufousThemeProvider.d.ts +28 -0
- package/dist/Contexts/rufousThemeProvider.js +9 -0
- package/dist/TextFields/FloatingInput.cjs +65 -0
- package/dist/TextFields/FloatingInput.d.cjs +17 -0
- package/dist/TextFields/FloatingInput.d.cts +23 -0
- package/dist/TextFields/FloatingInput.d.d.cts +23 -0
- package/dist/TextFields/FloatingInput.d.d.ts +23 -0
- package/dist/TextFields/FloatingInput.d.js +0 -0
- package/dist/TextFields/FloatingInput.d.ts +23 -0
- package/dist/TextFields/FloatingInput.js +6 -0
- package/dist/chunk-2FHTGYR4.js +83 -0
- package/dist/chunk-3IBCGGN3.js +48 -0
- package/dist/chunk-5VDW4EZK.js +71 -0
- package/dist/chunk-6FEUS4CQ.js +41 -0
- package/dist/chunk-73G3VTVS.js +48 -0
- package/dist/chunk-ASP3DBRX.js +9 -0
- package/dist/chunk-AWA5Y5LH.js +32 -0
- package/dist/chunk-D7SFBVJY.js +155 -0
- package/dist/chunk-H372BAXA.js +42 -0
- package/dist/chunk-PULIGWAP.js +62 -0
- package/dist/chunk-QJPQC544.js +29 -0
- package/dist/chunk-QKDJLUKZ.js +29 -0
- package/dist/chunk-QZFGQ5JM.js +157 -0
- package/dist/chunk-WZAU77G7.js +55 -0
- package/dist/chunk-ZZ37BKUK.js +0 -0
- package/dist/icons/archivedIcon.cjs +77 -0
- package/dist/icons/archivedIcon.d.cts +8 -0
- package/dist/icons/archivedIcon.d.ts +8 -0
- package/dist/icons/archivedIcon.js +6 -0
- package/dist/icons/copyIcon.cjs +70 -0
- package/dist/icons/copyIcon.d.cts +8 -0
- package/dist/icons/copyIcon.d.ts +8 -0
- package/dist/icons/copyIcon.js +6 -0
- package/dist/icons/editIcon.cjs +71 -0
- package/dist/icons/editIcon.d.cts +8 -0
- package/dist/icons/editIcon.d.ts +8 -0
- package/dist/icons/editIcon.js +6 -0
- package/dist/icons/helpOutlinedIcon.cjs +91 -0
- package/dist/icons/helpOutlinedIcon.d.cts +8 -0
- package/dist/icons/helpOutlinedIcon.d.ts +8 -0
- package/dist/icons/helpOutlinedIcon.js +6 -0
- package/dist/icons/hierarchyIcon.cjs +84 -0
- package/dist/icons/hierarchyIcon.d.cts +8 -0
- package/dist/icons/hierarchyIcon.d.ts +8 -0
- package/dist/icons/hierarchyIcon.js +6 -0
- package/dist/icons/index.cjs +664 -0
- package/dist/icons/index.d.cts +10 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.js +39 -0
- package/dist/icons/nineDotMenuIcon.cjs +184 -0
- package/dist/icons/nineDotMenuIcon.d.cts +8 -0
- package/dist/icons/nineDotMenuIcon.d.ts +8 -0
- package/dist/icons/nineDotMenuIcon.js +6 -0
- package/dist/icons/rufousLauncherBird.cjs +186 -0
- package/dist/icons/rufousLauncherBird.d.cts +8 -0
- package/dist/icons/rufousLauncherBird.d.ts +8 -0
- package/dist/icons/rufousLauncherBird.js +6 -0
- package/dist/icons/unArchivedIcon.cjs +77 -0
- package/dist/icons/unArchivedIcon.d.cts +8 -0
- package/dist/icons/unArchivedIcon.d.ts +8 -0
- package/dist/icons/unArchivedIcon.js +6 -0
- package/dist/icons/workItemIcon.cjs +58 -0
- package/dist/icons/workItemIcon.d.cts +8 -0
- package/dist/icons/workItemIcon.d.ts +8 -0
- package/dist/icons/workItemIcon.js +6 -0
- package/dist/main.cjs +874 -0
- package/dist/main.css +244 -0
- package/dist/main.d.cts +15 -0
- package/dist/main.d.ts +15 -0
- package/dist/main.js +61 -0
- package/dist/style.css +244 -0
- package/dist/style.d.cts +2 -0
- package/dist/style.d.ts +2 -0
- package/dist/utils/constants.cjs +106 -0
- package/dist/utils/constants.d.cts +80 -0
- package/dist/utils/constants.d.ts +80 -0
- package/dist/utils/constants.js +6 -0
- package/package.json +58 -0
|
@@ -0,0 +1,65 @@
|
|
|
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/TextFields/FloatingInput.jsx
|
|
30
|
+
var FloatingInput_exports = {};
|
|
31
|
+
__export(FloatingInput_exports, {
|
|
32
|
+
FloatingInput: () => FloatingInput
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(FloatingInput_exports);
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
|
+
var FloatingInput = ({
|
|
37
|
+
label,
|
|
38
|
+
name,
|
|
39
|
+
id,
|
|
40
|
+
type = "text",
|
|
41
|
+
value,
|
|
42
|
+
onChange,
|
|
43
|
+
required = false,
|
|
44
|
+
placeholder,
|
|
45
|
+
className = "",
|
|
46
|
+
...props
|
|
47
|
+
}) => {
|
|
48
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `form__group field ${className}`, ...props }, /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
+
"input",
|
|
50
|
+
{
|
|
51
|
+
type,
|
|
52
|
+
className: "form__field",
|
|
53
|
+
placeholder: placeholder || label,
|
|
54
|
+
name,
|
|
55
|
+
id: id || name,
|
|
56
|
+
value,
|
|
57
|
+
onChange,
|
|
58
|
+
required
|
|
59
|
+
}
|
|
60
|
+
), /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: id || name, className: "form__label" }, label));
|
|
61
|
+
};
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
FloatingInput
|
|
65
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// lib/TextFields/FloatingInput.d.ts
|
|
16
|
+
var FloatingInput_d_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(FloatingInput_d_exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingInputProps
|
|
4
|
+
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** Label text shown above the input */
|
|
6
|
+
label: string;
|
|
7
|
+
|
|
8
|
+
/** Name attribute for the input (used for forms) */
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
+
id?: string;
|
|
13
|
+
|
|
14
|
+
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
|
|
17
|
+
/** Optional class name to apply to the outer wrapper */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
+
|
|
23
|
+
export { FloatingInput, type FloatingInputProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingInputProps
|
|
4
|
+
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** Label text shown above the input */
|
|
6
|
+
label: string;
|
|
7
|
+
|
|
8
|
+
/** Name attribute for the input (used for forms) */
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
+
id?: string;
|
|
13
|
+
|
|
14
|
+
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
|
|
17
|
+
/** Optional class name to apply to the outer wrapper */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
+
|
|
23
|
+
export { FloatingInput, type FloatingInputProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingInputProps
|
|
4
|
+
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** Label text shown above the input */
|
|
6
|
+
label: string;
|
|
7
|
+
|
|
8
|
+
/** Name attribute for the input (used for forms) */
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
+
id?: string;
|
|
13
|
+
|
|
14
|
+
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
|
|
17
|
+
/** Optional class name to apply to the outer wrapper */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
+
|
|
23
|
+
export { FloatingInput, type FloatingInputProps };
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FloatingInputProps
|
|
4
|
+
extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** Label text shown above the input */
|
|
6
|
+
label: string;
|
|
7
|
+
|
|
8
|
+
/** Name attribute for the input (used for forms) */
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
/** ID for the input and label (defaults to `name` if not provided) */
|
|
12
|
+
id?: string;
|
|
13
|
+
|
|
14
|
+
/** Placeholder text (defaults to label if not provided) */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
|
|
17
|
+
/** Optional class name to apply to the outer wrapper */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const FloatingInput: React.FC<FloatingInputProps>;
|
|
22
|
+
|
|
23
|
+
export { FloatingInput, type FloatingInputProps };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// lib/utils/constants.ts
|
|
2
|
+
var APP_THEMES = {
|
|
3
|
+
default: {
|
|
4
|
+
name: "Default",
|
|
5
|
+
primaryColor: "#707070",
|
|
6
|
+
secondaryColor: "#e0e0e0",
|
|
7
|
+
backgroundColor: "#f5f5f5",
|
|
8
|
+
surfaceColor: "#ffffff",
|
|
9
|
+
iconColor: "#707070",
|
|
10
|
+
textColor: "#2d2d2d",
|
|
11
|
+
textSecondaryColor: "#6f6f6f",
|
|
12
|
+
borderColor: "#dcdcdc",
|
|
13
|
+
hoverColor: "#d4d4d4",
|
|
14
|
+
activeColor: "#5a5a5a",
|
|
15
|
+
button: {
|
|
16
|
+
background: "#707070",
|
|
17
|
+
text: "#ffffff",
|
|
18
|
+
hoverBackground: "#5f5f5f",
|
|
19
|
+
disabledBackground: "#cfcfcf"
|
|
20
|
+
},
|
|
21
|
+
input: {
|
|
22
|
+
background: "#ffffff",
|
|
23
|
+
text: "#2d2d2d",
|
|
24
|
+
border: "#ccc",
|
|
25
|
+
placeholder: "#999",
|
|
26
|
+
focusBorder: "#707070"
|
|
27
|
+
},
|
|
28
|
+
card: {
|
|
29
|
+
background: "#ffffff",
|
|
30
|
+
shadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
31
|
+
},
|
|
32
|
+
sidebar: {
|
|
33
|
+
background: "#e8e8e8",
|
|
34
|
+
text: "#2d2d2d",
|
|
35
|
+
hover: "#dcdcdc"
|
|
36
|
+
},
|
|
37
|
+
success: "#4CAF50",
|
|
38
|
+
warning: "#FFC107",
|
|
39
|
+
error: "#F44336"
|
|
40
|
+
},
|
|
41
|
+
rufous: {
|
|
42
|
+
name: "Rufous",
|
|
43
|
+
primaryColor: "#a81c08",
|
|
44
|
+
secondaryColor: "#f7d4cc",
|
|
45
|
+
backgroundColor: "#fff8f7",
|
|
46
|
+
surfaceColor: "#fff",
|
|
47
|
+
iconColor: "#a81c08",
|
|
48
|
+
textColor: "#2d2d2d",
|
|
49
|
+
textSecondaryColor: "#6f6f6f",
|
|
50
|
+
borderColor: "#e5e5e5",
|
|
51
|
+
hoverColor: "#f3c2b9",
|
|
52
|
+
activeColor: "#c01708",
|
|
53
|
+
button: {
|
|
54
|
+
background: "#a81c08",
|
|
55
|
+
text: "#ffffff",
|
|
56
|
+
hoverBackground: "#8f1907",
|
|
57
|
+
disabledBackground: "#f4cccc"
|
|
58
|
+
},
|
|
59
|
+
input: {
|
|
60
|
+
background: "#ffffff",
|
|
61
|
+
text: "#2d2d2d",
|
|
62
|
+
border: "#ccc",
|
|
63
|
+
placeholder: "#999",
|
|
64
|
+
focusBorder: "#a81c08"
|
|
65
|
+
},
|
|
66
|
+
card: {
|
|
67
|
+
background: "#ffffff",
|
|
68
|
+
shadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
69
|
+
},
|
|
70
|
+
sidebar: {
|
|
71
|
+
background: "#fff0ed",
|
|
72
|
+
text: "#2d2d2d",
|
|
73
|
+
hover: "#f5e0dc"
|
|
74
|
+
},
|
|
75
|
+
success: "#4CAF50",
|
|
76
|
+
warning: "#FFC107",
|
|
77
|
+
error: "#F44336"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
APP_THEMES
|
|
83
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// lib/icons/archivedIcon.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var ArchivedIcon = ({ color = "#3a3a3a", ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "24",
|
|
9
|
+
height: "23.8",
|
|
10
|
+
viewBox: "0 0 24 23.8",
|
|
11
|
+
...props
|
|
12
|
+
},
|
|
13
|
+
/* @__PURE__ */ React.createElement("g", { transform: "translate(-8 -8.4)" }, /* @__PURE__ */ React.createElement("g", { transform: "translate(8 8.4)" }, /* @__PURE__ */ React.createElement(
|
|
14
|
+
"g",
|
|
15
|
+
{
|
|
16
|
+
transform: "translate(2.5 5.8)",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: color,
|
|
19
|
+
strokeWidth: "1.8"
|
|
20
|
+
},
|
|
21
|
+
/* @__PURE__ */ React.createElement("rect", { width: "19", height: "18", stroke: "none" }),
|
|
22
|
+
/* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "17.2", height: "16.2", fill: "none" })
|
|
23
|
+
), /* @__PURE__ */ React.createElement("g", { fill: "none", stroke: color, strokeWidth: "1.8" }, /* @__PURE__ */ React.createElement("rect", { width: "24", height: "7.5", stroke: "none" }), /* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "22.2", height: "5.7", fill: "none" }))), /* @__PURE__ */ React.createElement("g", { transform: "translate(15.938 17.774)" }, /* @__PURE__ */ React.createElement(
|
|
24
|
+
"line",
|
|
25
|
+
{
|
|
26
|
+
y2: "10",
|
|
27
|
+
transform: "translate(4.344)",
|
|
28
|
+
fill: "none",
|
|
29
|
+
stroke: color,
|
|
30
|
+
strokeWidth: "1.8"
|
|
31
|
+
}
|
|
32
|
+
), /* @__PURE__ */ React.createElement(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M1268.938-687.062l4.5,3.75,4.188-3.75",
|
|
36
|
+
transform: "translate(-1268.938 693.5)",
|
|
37
|
+
fill: "none",
|
|
38
|
+
stroke: color,
|
|
39
|
+
strokeWidth: "1.8"
|
|
40
|
+
}
|
|
41
|
+
)))
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
var archivedIcon_default = ArchivedIcon;
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
archivedIcon_default
|
|
48
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
APP_THEMES
|
|
3
|
+
} from "./chunk-2FHTGYR4.js";
|
|
4
|
+
|
|
5
|
+
// lib/Contexts/rufousThemeProvider.jsx
|
|
6
|
+
import React, {
|
|
7
|
+
createContext,
|
|
8
|
+
useContext,
|
|
9
|
+
useEffect,
|
|
10
|
+
useMemo,
|
|
11
|
+
useState
|
|
12
|
+
} from "react";
|
|
13
|
+
var RufousThemeContext = createContext(null);
|
|
14
|
+
var RufousThemeProvider = ({ children }) => {
|
|
15
|
+
const [committedThemeKey, setCommittedThemeKey] = useState("default");
|
|
16
|
+
const [previewThemeKey, setPreviewThemeKey] = useState("default");
|
|
17
|
+
const [settings, setSettings] = useState(null);
|
|
18
|
+
const getGeneralSettings = async () => {
|
|
19
|
+
try {
|
|
20
|
+
const theme = localStorage.getItem("theme") || "default";
|
|
21
|
+
setCommittedThemeKey(theme);
|
|
22
|
+
setPreviewThemeKey(theme);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
console.error("Error fetching general settings:", err);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
getGeneralSettings();
|
|
29
|
+
}, []);
|
|
30
|
+
const fullTheme = useMemo(() => {
|
|
31
|
+
return {
|
|
32
|
+
themeKey: previewThemeKey || settings.theme,
|
|
33
|
+
customStyles: APP_THEMES[previewThemeKey || settings.theme]
|
|
34
|
+
};
|
|
35
|
+
}, [previewThemeKey, settings]);
|
|
36
|
+
const previewTheme = (key) => setPreviewThemeKey(key);
|
|
37
|
+
const saveTheme = (inputKey) => {
|
|
38
|
+
const key = previewThemeKey || settings.theme || inputKey;
|
|
39
|
+
localStorage.setItem("theme", key);
|
|
40
|
+
setCommittedThemeKey(key);
|
|
41
|
+
};
|
|
42
|
+
const cancelTheme = () => setPreviewThemeKey(committedThemeKey);
|
|
43
|
+
return /* @__PURE__ */ React.createElement(
|
|
44
|
+
RufousThemeContext.Provider,
|
|
45
|
+
{
|
|
46
|
+
value: {
|
|
47
|
+
theme: fullTheme,
|
|
48
|
+
previewTheme,
|
|
49
|
+
saveTheme,
|
|
50
|
+
cancelTheme,
|
|
51
|
+
currentThemeKey: previewThemeKey,
|
|
52
|
+
committedThemeKey,
|
|
53
|
+
settings,
|
|
54
|
+
updateSettings: (v) => setSettings(v)
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
/* @__PURE__ */ React.createElement(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: `theme-${previewThemeKey || committedThemeKey || "default"}`
|
|
61
|
+
},
|
|
62
|
+
children
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
var useRufousTheme = () => useContext(RufousThemeContext);
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
RufousThemeProvider,
|
|
70
|
+
useRufousTheme
|
|
71
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// lib/icons/copyIcon.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var CopyIcon = ({ color = "#3a3a3a", ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "24",
|
|
9
|
+
height: "24",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
...props
|
|
12
|
+
},
|
|
13
|
+
/* @__PURE__ */ React.createElement("g", { transform: "translate(0 -7)" }, /* @__PURE__ */ React.createElement(
|
|
14
|
+
"g",
|
|
15
|
+
{
|
|
16
|
+
transform: "translate(18 31) rotate(180)",
|
|
17
|
+
fill: "#fff",
|
|
18
|
+
stroke: color,
|
|
19
|
+
strokeWidth: "1.8",
|
|
20
|
+
strokeDasharray: "40 28"
|
|
21
|
+
},
|
|
22
|
+
/* @__PURE__ */ React.createElement("rect", { width: "18", height: "18", stroke: "none" }),
|
|
23
|
+
/* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "16.2", height: "16.2", fill: "none" })
|
|
24
|
+
), /* @__PURE__ */ React.createElement(
|
|
25
|
+
"g",
|
|
26
|
+
{
|
|
27
|
+
transform: "translate(6 7)",
|
|
28
|
+
fill: "#fff",
|
|
29
|
+
stroke: color,
|
|
30
|
+
strokeWidth: "1.8"
|
|
31
|
+
},
|
|
32
|
+
/* @__PURE__ */ React.createElement("rect", { width: "18", height: "18", stroke: "none" }),
|
|
33
|
+
/* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "16.2", height: "16.2", fill: "none" })
|
|
34
|
+
))
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
var copyIcon_default = CopyIcon;
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
copyIcon_default
|
|
41
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// lib/icons/unArchivedIcon.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var UnArchivedIcon = ({ ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "24",
|
|
9
|
+
height: "23.8",
|
|
10
|
+
viewBox: "0 0 24 23.8",
|
|
11
|
+
...props
|
|
12
|
+
},
|
|
13
|
+
/* @__PURE__ */ React.createElement("g", { transform: "translate(-8 -8.4)" }, /* @__PURE__ */ React.createElement("g", { transform: "translate(8 8.4)" }, /* @__PURE__ */ React.createElement(
|
|
14
|
+
"g",
|
|
15
|
+
{
|
|
16
|
+
transform: "translate(2.5 5.8)",
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: "#3a3a3a",
|
|
19
|
+
strokeWidth: "1.8"
|
|
20
|
+
},
|
|
21
|
+
/* @__PURE__ */ React.createElement("rect", { width: "19", height: "18", stroke: "none" }),
|
|
22
|
+
/* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "17.2", height: "16.2", fill: "none" })
|
|
23
|
+
), /* @__PURE__ */ React.createElement("g", { fill: "none", stroke: "#3a3a3a", strokeWidth: "1.8" }, /* @__PURE__ */ React.createElement("rect", { width: "24", height: "7.5", stroke: "none" }), /* @__PURE__ */ React.createElement("rect", { x: "0.9", y: "0.9", width: "22.2", height: "5.7", fill: "none" }))), /* @__PURE__ */ React.createElement("g", { transform: "translate(15.938 18.774)" }, /* @__PURE__ */ React.createElement(
|
|
24
|
+
"line",
|
|
25
|
+
{
|
|
26
|
+
y1: "10",
|
|
27
|
+
transform: "translate(4.344 0.187)",
|
|
28
|
+
fill: "none",
|
|
29
|
+
stroke: "#3a3a3a",
|
|
30
|
+
strokeWidth: "1.8"
|
|
31
|
+
}
|
|
32
|
+
), /* @__PURE__ */ React.createElement(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M1268.938-683.312l4.5-3.75,4.188,3.75",
|
|
36
|
+
transform: "translate(-1268.938 687.063)",
|
|
37
|
+
fill: "none",
|
|
38
|
+
stroke: "#3a3a3a",
|
|
39
|
+
strokeWidth: "1.8"
|
|
40
|
+
}
|
|
41
|
+
)))
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
var unArchivedIcon_default = UnArchivedIcon;
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
unArchivedIcon_default
|
|
48
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
FloatingInput
|
|
32
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
// lib/icons/nineDotMenuIcon.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
var NineDotMenuIcon = ({ color = "#707070", ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "40",
|
|
9
|
+
height: "40",
|
|
10
|
+
viewBox: "0 0 40 40",
|
|
11
|
+
...props
|
|
12
|
+
},
|
|
13
|
+
/* @__PURE__ */ React.createElement(
|
|
14
|
+
"g",
|
|
15
|
+
{
|
|
16
|
+
id: "Group_24483",
|
|
17
|
+
"data-name": "Group 24483",
|
|
18
|
+
transform: "translate(-1600 -24)"
|
|
19
|
+
},
|
|
20
|
+
/* @__PURE__ */ React.createElement(
|
|
21
|
+
"circle",
|
|
22
|
+
{
|
|
23
|
+
id: "Ellipse_32",
|
|
24
|
+
"data-name": "Ellipse 32",
|
|
25
|
+
cx: "20",
|
|
26
|
+
cy: "20",
|
|
27
|
+
r: "20",
|
|
28
|
+
transform: "translate(1600 24)",
|
|
29
|
+
fill: "none"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ React.createElement(
|
|
33
|
+
"g",
|
|
34
|
+
{
|
|
35
|
+
id: "Group_24484",
|
|
36
|
+
"data-name": "Group 24484",
|
|
37
|
+
transform: "translate(2581 -2711)"
|
|
38
|
+
},
|
|
39
|
+
/* @__PURE__ */ React.createElement(
|
|
40
|
+
"rect",
|
|
41
|
+
{
|
|
42
|
+
id: "Rectangle_17638",
|
|
43
|
+
"data-name": "Rectangle 17638",
|
|
44
|
+
width: "7",
|
|
45
|
+
height: "7",
|
|
46
|
+
rx: "1",
|
|
47
|
+
transform: "translate(-973 2743)",
|
|
48
|
+
fill: color
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ React.createElement(
|
|
52
|
+
"rect",
|
|
53
|
+
{
|
|
54
|
+
id: "Rectangle_17639",
|
|
55
|
+
"data-name": "Rectangle 17639",
|
|
56
|
+
width: "7",
|
|
57
|
+
height: "7",
|
|
58
|
+
rx: "1",
|
|
59
|
+
transform: "translate(-964 2743)",
|
|
60
|
+
fill: color
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ React.createElement(
|
|
64
|
+
"rect",
|
|
65
|
+
{
|
|
66
|
+
id: "Rectangle_17640",
|
|
67
|
+
"data-name": "Rectangle 17640",
|
|
68
|
+
width: "7",
|
|
69
|
+
height: "7",
|
|
70
|
+
rx: "1",
|
|
71
|
+
transform: "translate(-955 2743)",
|
|
72
|
+
fill: color
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ React.createElement(
|
|
76
|
+
"rect",
|
|
77
|
+
{
|
|
78
|
+
id: "Rectangle_17641",
|
|
79
|
+
"data-name": "Rectangle 17641",
|
|
80
|
+
width: "7",
|
|
81
|
+
height: "7",
|
|
82
|
+
rx: "1",
|
|
83
|
+
transform: "translate(-973 2752)",
|
|
84
|
+
fill: color
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ React.createElement(
|
|
88
|
+
"rect",
|
|
89
|
+
{
|
|
90
|
+
id: "Rectangle_17642",
|
|
91
|
+
"data-name": "Rectangle 17642",
|
|
92
|
+
width: "7",
|
|
93
|
+
height: "7",
|
|
94
|
+
rx: "1",
|
|
95
|
+
transform: "translate(-964 2752)",
|
|
96
|
+
fill: color
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ React.createElement(
|
|
100
|
+
"rect",
|
|
101
|
+
{
|
|
102
|
+
id: "Rectangle_17643",
|
|
103
|
+
"data-name": "Rectangle 17643",
|
|
104
|
+
width: "7",
|
|
105
|
+
height: "7",
|
|
106
|
+
rx: "1",
|
|
107
|
+
transform: "translate(-955 2752)",
|
|
108
|
+
fill: color
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ React.createElement(
|
|
112
|
+
"rect",
|
|
113
|
+
{
|
|
114
|
+
id: "Rectangle_17644",
|
|
115
|
+
"data-name": "Rectangle 17644",
|
|
116
|
+
width: "7",
|
|
117
|
+
height: "7",
|
|
118
|
+
rx: "1",
|
|
119
|
+
transform: "translate(-973 2761)",
|
|
120
|
+
fill: color
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ React.createElement(
|
|
124
|
+
"rect",
|
|
125
|
+
{
|
|
126
|
+
id: "Rectangle_17645",
|
|
127
|
+
"data-name": "Rectangle 17645",
|
|
128
|
+
width: "7",
|
|
129
|
+
height: "7",
|
|
130
|
+
rx: "1",
|
|
131
|
+
transform: "translate(-964 2761)",
|
|
132
|
+
fill: color
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ React.createElement(
|
|
136
|
+
"rect",
|
|
137
|
+
{
|
|
138
|
+
id: "Rectangle_17646",
|
|
139
|
+
"data-name": "Rectangle 17646",
|
|
140
|
+
width: "7",
|
|
141
|
+
height: "7",
|
|
142
|
+
rx: "1",
|
|
143
|
+
transform: "translate(-955 2761)",
|
|
144
|
+
fill: color
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
)
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
var nineDotMenuIcon_default = NineDotMenuIcon;
|
|
152
|
+
|
|
153
|
+
export {
|
|
154
|
+
nineDotMenuIcon_default
|
|
155
|
+
};
|