@rufous/ui 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +485 -158
- package/dist/{Buttons/Button.cjs → chunk-LI4N7JWK.js} +11 -14
- package/dist/esm-5T53WHPT.js +27362 -0
- package/dist/main.cjs +36982 -762
- package/dist/main.css +13256 -193
- package/dist/main.d.cts +1526 -15
- package/dist/main.d.ts +1526 -15
- package/dist/main.js +8039 -45
- package/package.json +14 -3
- 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.js +0 -0
- package/dist/Buttons/Button.d.ts +0 -10
- package/dist/Buttons/Button.js +0 -6
- package/dist/CheckBoxes/CheckBox.cjs +0 -62
- package/dist/CheckBoxes/CheckBox.d.cjs +0 -17
- package/dist/CheckBoxes/CheckBox.d.cts +0 -15
- package/dist/CheckBoxes/CheckBox.d.d.cts +0 -15
- package/dist/CheckBoxes/CheckBox.d.d.ts +0 -15
- package/dist/CheckBoxes/CheckBox.d.js +0 -0
- package/dist/CheckBoxes/CheckBox.d.ts +0 -15
- package/dist/CheckBoxes/CheckBox.js +0 -6
- package/dist/Contexts/rufousThemeProvider.cjs +0 -177
- package/dist/Contexts/rufousThemeProvider.d.cts +0 -8
- package/dist/Contexts/rufousThemeProvider.d.ts +0 -8
- package/dist/Contexts/rufousThemeProvider.js +0 -9
- package/dist/TextFields/FloatingInput.cjs +0 -65
- package/dist/TextFields/FloatingInput.d.cjs +0 -17
- package/dist/TextFields/FloatingInput.d.cts +0 -23
- package/dist/TextFields/FloatingInput.d.d.cts +0 -23
- package/dist/TextFields/FloatingInput.d.d.ts +0 -23
- package/dist/TextFields/FloatingInput.d.js +0 -0
- package/dist/TextFields/FloatingInput.d.ts +0 -23
- package/dist/TextFields/FloatingInput.js +0 -6
- package/dist/chunk-2FHTGYR4.js +0 -83
- package/dist/chunk-3IBCGGN3.js +0 -48
- package/dist/chunk-6FEUS4CQ.js +0 -41
- package/dist/chunk-73G3VTVS.js +0 -48
- package/dist/chunk-ASP3DBRX.js +0 -9
- package/dist/chunk-AWA5Y5LH.js +0 -32
- package/dist/chunk-BCGCLMKA.js +0 -71
- package/dist/chunk-D7SFBVJY.js +0 -155
- package/dist/chunk-H372BAXA.js +0 -42
- package/dist/chunk-PULIGWAP.js +0 -62
- package/dist/chunk-QJPQC544.js +0 -29
- package/dist/chunk-QKDJLUKZ.js +0 -29
- package/dist/chunk-QZFGQ5JM.js +0 -157
- package/dist/chunk-WZAU77G7.js +0 -55
- package/dist/chunk-ZZ37BKUK.js +0 -0
- package/dist/icons/archivedIcon.cjs +0 -77
- package/dist/icons/archivedIcon.d.cts +0 -8
- package/dist/icons/archivedIcon.d.ts +0 -8
- package/dist/icons/archivedIcon.js +0 -6
- package/dist/icons/copyIcon.cjs +0 -70
- package/dist/icons/copyIcon.d.cts +0 -8
- package/dist/icons/copyIcon.d.ts +0 -8
- package/dist/icons/copyIcon.js +0 -6
- package/dist/icons/editIcon.cjs +0 -71
- package/dist/icons/editIcon.d.cts +0 -8
- package/dist/icons/editIcon.d.ts +0 -8
- package/dist/icons/editIcon.js +0 -6
- package/dist/icons/helpOutlinedIcon.cjs +0 -91
- package/dist/icons/helpOutlinedIcon.d.cts +0 -8
- package/dist/icons/helpOutlinedIcon.d.ts +0 -8
- package/dist/icons/helpOutlinedIcon.js +0 -6
- package/dist/icons/hierarchyIcon.cjs +0 -84
- package/dist/icons/hierarchyIcon.d.cts +0 -8
- package/dist/icons/hierarchyIcon.d.ts +0 -8
- package/dist/icons/hierarchyIcon.js +0 -6
- package/dist/icons/index.cjs +0 -664
- package/dist/icons/index.d.cts +0 -10
- package/dist/icons/index.d.ts +0 -10
- package/dist/icons/index.js +0 -39
- package/dist/icons/nineDotMenuIcon.cjs +0 -184
- package/dist/icons/nineDotMenuIcon.d.cts +0 -8
- package/dist/icons/nineDotMenuIcon.d.ts +0 -8
- package/dist/icons/nineDotMenuIcon.js +0 -6
- package/dist/icons/rufousLauncherBird.cjs +0 -186
- package/dist/icons/rufousLauncherBird.d.cts +0 -8
- package/dist/icons/rufousLauncherBird.d.ts +0 -8
- package/dist/icons/rufousLauncherBird.js +0 -6
- package/dist/icons/unArchivedIcon.cjs +0 -77
- package/dist/icons/unArchivedIcon.d.cts +0 -8
- package/dist/icons/unArchivedIcon.d.ts +0 -8
- package/dist/icons/unArchivedIcon.js +0 -6
- package/dist/icons/workItemIcon.cjs +0 -58
- package/dist/icons/workItemIcon.d.cts +0 -8
- package/dist/icons/workItemIcon.d.ts +0 -8
- package/dist/icons/workItemIcon.js +0 -6
- package/dist/style.css +0 -246
- package/dist/style.d.cts +0 -2
- package/dist/style.d.ts +0 -2
- package/dist/utils/constants.cjs +0 -106
- package/dist/utils/constants.d.cts +0 -80
- package/dist/utils/constants.d.ts +0 -80
- package/dist/utils/constants.js +0 -6
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rufous/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"description": "Experimental: A lightweight React UI component library (Beta)",
|
|
6
7
|
"style": "./dist/style.css",
|
|
7
8
|
"files": [
|
|
8
9
|
"dist"
|
|
@@ -22,16 +23,26 @@
|
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
25
|
"dev": "vite",
|
|
25
|
-
"build": "
|
|
26
|
+
"build": "NODE_OPTIONS='--max-old-space-size=4096' tsup",
|
|
26
27
|
"build:dev": "npm version patch --no-git-tag-version && npm run build",
|
|
28
|
+
"build:staging": "vite build --config vite.app.config.ts",
|
|
27
29
|
"prebuild": "rm -rf dist",
|
|
28
30
|
"lint": "eslint .",
|
|
29
31
|
"preview": "vite preview",
|
|
30
32
|
"build:types": "tsc -p tsconfig.json"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
35
|
+
"@types/crypto-js": "^4.2.2",
|
|
36
|
+
"axios": "^1.13.5",
|
|
37
|
+
"country-state-city": "^3.2.1",
|
|
38
|
+
"crypto-js": "^4.2.0",
|
|
39
|
+
"jodit-react": "^5.3.21",
|
|
40
|
+
"lucide-react": "^0.575.0",
|
|
41
|
+
"motion": "^12.34.3",
|
|
33
42
|
"react": "^18.0.0 || ^19.0.0",
|
|
34
43
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
44
|
+
"react-router-dom": "^7.13.1",
|
|
45
|
+
"react-secure-storage": "^1.3.2",
|
|
35
46
|
"rufous-ui": "^0.4.6",
|
|
36
47
|
"vite": "^6.3.5",
|
|
37
48
|
"vite-tsconfig-paths": "^5.1.4"
|
|
@@ -56,4 +67,4 @@
|
|
|
56
67
|
"react": "^18.0.0 || ^19.0.0",
|
|
57
68
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
58
69
|
}
|
|
59
|
-
}
|
|
70
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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/Buttons/Button.d.ts
|
|
16
|
-
var Button_d_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(Button_d_exports);
|
package/dist/Buttons/Button.d.js
DELETED
|
File without changes
|
package/dist/Buttons/Button.d.ts
DELETED
package/dist/Buttons/Button.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
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/CheckBoxes/CheckBox.jsx
|
|
30
|
-
var CheckBox_exports = {};
|
|
31
|
-
__export(CheckBox_exports, {
|
|
32
|
-
Checkbox: () => Checkbox
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CheckBox_exports);
|
|
35
|
-
var import_react = __toESM(require("react"), 1);
|
|
36
|
-
var Checkbox = ({
|
|
37
|
-
id,
|
|
38
|
-
label,
|
|
39
|
-
checked,
|
|
40
|
-
onChange,
|
|
41
|
-
disabled = false,
|
|
42
|
-
className = "",
|
|
43
|
-
style
|
|
44
|
-
}) => {
|
|
45
|
-
const handleChange = (e) => {
|
|
46
|
-
onChange(e.target.checked);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "checkbox-wrapper-13" }, /* @__PURE__ */ import_react.default.createElement("label", { className: `${className}`, style }, /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
"input",
|
|
50
|
-
{
|
|
51
|
-
id,
|
|
52
|
-
type: "checkbox",
|
|
53
|
-
checked,
|
|
54
|
-
onChange: handleChange,
|
|
55
|
-
disabled
|
|
56
|
-
}
|
|
57
|
-
), label && /* @__PURE__ */ import_react.default.createElement("span", { className: "checkbox-label" }, label)));
|
|
58
|
-
};
|
|
59
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
60
|
-
0 && (module.exports = {
|
|
61
|
-
Checkbox
|
|
62
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
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/CheckBoxes/CheckBox.d.ts
|
|
16
|
-
var CheckBox_d_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(CheckBox_d_exports);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CheckboxProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (checked: boolean) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
14
|
-
|
|
15
|
-
export { Checkbox, type CheckboxProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CheckboxProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (checked: boolean) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
14
|
-
|
|
15
|
-
export { Checkbox, type CheckboxProps };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CheckboxProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (checked: boolean) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
14
|
-
|
|
15
|
-
export { Checkbox, type CheckboxProps };
|
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CheckboxProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: (checked: boolean) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const Checkbox: React.FC<CheckboxProps>;
|
|
14
|
-
|
|
15
|
-
export { Checkbox, type CheckboxProps };
|
|
@@ -1,177 +0,0 @@
|
|
|
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/Contexts/rufousThemeProvider.tsx
|
|
30
|
-
var rufousThemeProvider_exports = {};
|
|
31
|
-
__export(rufousThemeProvider_exports, {
|
|
32
|
-
RufousThemeProvider: () => RufousThemeProvider,
|
|
33
|
-
useRufousTheme: () => useRufousTheme
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(rufousThemeProvider_exports);
|
|
36
|
-
var import_react = __toESM(require("react"), 1);
|
|
37
|
-
|
|
38
|
-
// lib/utils/constants.ts
|
|
39
|
-
var APP_THEMES = {
|
|
40
|
-
default: {
|
|
41
|
-
name: "Default",
|
|
42
|
-
primaryColor: "#707070",
|
|
43
|
-
secondaryColor: "#e0e0e0",
|
|
44
|
-
backgroundColor: "#f5f5f5",
|
|
45
|
-
surfaceColor: "#ffffff",
|
|
46
|
-
iconColor: "#707070",
|
|
47
|
-
textColor: "#2d2d2d",
|
|
48
|
-
textSecondaryColor: "#6f6f6f",
|
|
49
|
-
borderColor: "#dcdcdc",
|
|
50
|
-
hoverColor: "#d4d4d4",
|
|
51
|
-
activeColor: "#5a5a5a",
|
|
52
|
-
button: {
|
|
53
|
-
background: "#707070",
|
|
54
|
-
text: "#ffffff",
|
|
55
|
-
hoverBackground: "#5f5f5f",
|
|
56
|
-
disabledBackground: "#cfcfcf"
|
|
57
|
-
},
|
|
58
|
-
input: {
|
|
59
|
-
background: "#ffffff",
|
|
60
|
-
text: "#2d2d2d",
|
|
61
|
-
border: "#ccc",
|
|
62
|
-
placeholder: "#999",
|
|
63
|
-
focusBorder: "#707070"
|
|
64
|
-
},
|
|
65
|
-
card: {
|
|
66
|
-
background: "#ffffff",
|
|
67
|
-
shadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
68
|
-
},
|
|
69
|
-
sidebar: {
|
|
70
|
-
background: "#e8e8e8",
|
|
71
|
-
text: "#2d2d2d",
|
|
72
|
-
hover: "#dcdcdc"
|
|
73
|
-
},
|
|
74
|
-
success: "#4CAF50",
|
|
75
|
-
warning: "#FFC107",
|
|
76
|
-
error: "#F44336"
|
|
77
|
-
},
|
|
78
|
-
rufous: {
|
|
79
|
-
name: "Rufous",
|
|
80
|
-
primaryColor: "#a81c08",
|
|
81
|
-
secondaryColor: "#f7d4cc",
|
|
82
|
-
backgroundColor: "#fff8f7",
|
|
83
|
-
surfaceColor: "#fff",
|
|
84
|
-
iconColor: "#a81c08",
|
|
85
|
-
textColor: "#2d2d2d",
|
|
86
|
-
textSecondaryColor: "#6f6f6f",
|
|
87
|
-
borderColor: "#e5e5e5",
|
|
88
|
-
hoverColor: "#f3c2b9",
|
|
89
|
-
activeColor: "#c01708",
|
|
90
|
-
button: {
|
|
91
|
-
background: "#a81c08",
|
|
92
|
-
text: "#ffffff",
|
|
93
|
-
hoverBackground: "#8f1907",
|
|
94
|
-
disabledBackground: "#f4cccc"
|
|
95
|
-
},
|
|
96
|
-
input: {
|
|
97
|
-
background: "#ffffff",
|
|
98
|
-
text: "#2d2d2d",
|
|
99
|
-
border: "#ccc",
|
|
100
|
-
placeholder: "#999",
|
|
101
|
-
focusBorder: "#a81c08"
|
|
102
|
-
},
|
|
103
|
-
card: {
|
|
104
|
-
background: "#ffffff",
|
|
105
|
-
shadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
106
|
-
},
|
|
107
|
-
sidebar: {
|
|
108
|
-
background: "#fff0ed",
|
|
109
|
-
text: "#2d2d2d",
|
|
110
|
-
hover: "#f5e0dc"
|
|
111
|
-
},
|
|
112
|
-
success: "#4CAF50",
|
|
113
|
-
warning: "#FFC107",
|
|
114
|
-
error: "#F44336"
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// lib/Contexts/rufousThemeProvider.tsx
|
|
119
|
-
var RufousThemeContext = (0, import_react.createContext)(null);
|
|
120
|
-
var RufousThemeProvider = ({ children }) => {
|
|
121
|
-
const [committedThemeKey, setCommittedThemeKey] = (0, import_react.useState)("default");
|
|
122
|
-
const [previewThemeKey, setPreviewThemeKey] = (0, import_react.useState)("default");
|
|
123
|
-
const [settings, setSettings] = (0, import_react.useState)(null);
|
|
124
|
-
const getGeneralSettings = async () => {
|
|
125
|
-
try {
|
|
126
|
-
const theme = localStorage.getItem("theme") || "default";
|
|
127
|
-
setCommittedThemeKey(theme);
|
|
128
|
-
setPreviewThemeKey(theme);
|
|
129
|
-
} catch (err) {
|
|
130
|
-
console.error("Error fetching general settings:", err);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
(0, import_react.useEffect)(() => {
|
|
134
|
-
getGeneralSettings();
|
|
135
|
-
}, []);
|
|
136
|
-
const fullTheme = (0, import_react.useMemo)(() => {
|
|
137
|
-
return {
|
|
138
|
-
themeKey: previewThemeKey || settings.theme,
|
|
139
|
-
customStyles: APP_THEMES[previewThemeKey || settings.theme]
|
|
140
|
-
};
|
|
141
|
-
}, [previewThemeKey, settings]);
|
|
142
|
-
const previewTheme = (key) => setPreviewThemeKey(key);
|
|
143
|
-
const saveTheme = (inputKey) => {
|
|
144
|
-
const key = inputKey || previewThemeKey || settings.theme;
|
|
145
|
-
localStorage.setItem("theme", key);
|
|
146
|
-
setCommittedThemeKey(key);
|
|
147
|
-
};
|
|
148
|
-
const cancelTheme = () => setPreviewThemeKey(committedThemeKey);
|
|
149
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
-
RufousThemeContext.Provider,
|
|
151
|
-
{
|
|
152
|
-
value: {
|
|
153
|
-
theme: fullTheme,
|
|
154
|
-
previewTheme,
|
|
155
|
-
saveTheme,
|
|
156
|
-
cancelTheme,
|
|
157
|
-
currentThemeKey: previewThemeKey,
|
|
158
|
-
committedThemeKey,
|
|
159
|
-
settings,
|
|
160
|
-
updateSettings: (v) => setSettings(v)
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
164
|
-
"div",
|
|
165
|
-
{
|
|
166
|
-
className: `theme-${previewThemeKey || committedThemeKey || "default"}`
|
|
167
|
-
},
|
|
168
|
-
children
|
|
169
|
-
)
|
|
170
|
-
);
|
|
171
|
-
};
|
|
172
|
-
var useRufousTheme = () => (0, import_react.useContext)(RufousThemeContext);
|
|
173
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
174
|
-
0 && (module.exports = {
|
|
175
|
-
RufousThemeProvider,
|
|
176
|
-
useRufousTheme
|
|
177
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
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);
|
|
@@ -1,23 +0,0 @@
|
|
|
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 };
|
|
@@ -1,23 +0,0 @@
|
|
|
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 };
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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 };
|