@rufous/ui 0.1.63 → 0.2.0-beta.0
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/addButton.js +1 -0
- package/dist/Buttons/cancelButton.js +1 -0
- package/dist/Buttons/index.cjs +2 -2
- package/dist/Buttons/index.js +3 -2
- package/dist/Buttons/stdButton.js +1 -0
- package/dist/Buttons/submitButton.cjs +2 -2
- package/dist/Buttons/submitButton.js +3 -2
- package/dist/CheckBoxes/CheckBox.cjs +1 -1
- package/dist/CheckBoxes/CheckBox.js +4 -25
- package/dist/Contexts/rufousThemeProvider.cjs +81 -101
- package/dist/Contexts/rufousThemeProvider.js +3 -2
- package/dist/DataGrid/DataGrid.cjs +418 -0
- package/dist/DataGrid/DataGrid.d.cts +8 -0
- package/dist/DataGrid/DataGrid.d.ts +8 -0
- package/dist/DataGrid/DataGrid.js +9 -0
- package/dist/DataGrid/index.cjs +418 -0
- package/dist/DataGrid/index.d.cts +3 -0
- package/dist/DataGrid/index.d.ts +3 -0
- package/dist/DataGrid/index.js +8 -0
- package/dist/{TextFields/FloatingInput.d.cjs → DataGrid/types.cjs} +3 -3
- package/dist/DataGrid/types.d.cts +31 -0
- package/dist/DataGrid/types.d.ts +31 -0
- package/dist/Dialogs/BaseDialog.cjs +18 -10
- package/dist/Dialogs/BaseDialog.css +8247 -162
- package/dist/Dialogs/BaseDialog.d.cts +1 -0
- package/dist/Dialogs/BaseDialog.d.ts +1 -0
- package/dist/Dialogs/BaseDialog.js +39 -32
- package/dist/Dialogs/index.cjs +18 -10
- package/dist/Dialogs/index.css +8247 -162
- package/dist/Dialogs/index.js +39 -32
- package/dist/Editors/RichTextEditor.cjs +29477 -0
- package/dist/Editors/RichTextEditor.css +7179 -0
- package/dist/Editors/RichTextEditor.d.cts +57 -0
- package/dist/Editors/RichTextEditor.d.ts +57 -0
- package/dist/Editors/RichTextEditor.js +9 -0
- package/dist/Editors/index.cjs +29477 -0
- package/dist/Editors/index.css +7179 -0
- package/dist/Editors/index.d.cts +2 -0
- package/dist/Editors/index.d.ts +2 -0
- package/dist/Editors/index.js +8 -0
- package/dist/Progress/circularProgress.cjs +2 -2
- package/dist/Progress/circularProgress.d.cts +3 -3
- package/dist/Progress/circularProgress.d.ts +3 -3
- package/dist/Progress/circularProgress.js +2 -1
- package/dist/TextFields/AddressLookup.cjs +390 -0
- package/dist/TextFields/AddressLookup.d.cts +49 -0
- package/dist/TextFields/AddressLookup.d.ts +49 -0
- package/dist/TextFields/AddressLookup.js +304 -0
- package/dist/TextFields/FloatingInput.cjs +6 -4
- package/dist/TextFields/FloatingInput.d.cts +13 -19
- package/dist/TextFields/FloatingInput.d.ts +13 -19
- package/dist/TextFields/FloatingInput.js +4 -28
- package/dist/chunk-66HHM7VI.js +468 -0
- package/dist/chunk-7KRG7VNW.js +0 -0
- package/dist/{chunk-YRFUVQDN.js → chunk-CTBYVXFP.js} +2 -2
- package/dist/chunk-GJGRMMAQ.js +0 -0
- package/dist/chunk-J6E3UO2W.js +402 -0
- package/dist/chunk-LI4N7JWK.js +39 -0
- package/dist/chunk-QGXXOQJF.js +61 -0
- package/dist/{chunk-AQXTOTWY.js → chunk-TYTZEAV5.js} +19 -11
- package/dist/chunk-UPCMMCPQ.js +34 -0
- package/dist/chunk-WNZLBFLQ.js +73 -0
- package/dist/chunk-X357WQOT.js +29 -0
- package/dist/{chunk-7YKG3WYS.js → chunk-YRLN3TBF.js} +1 -1
- package/dist/esm-5T53WHPT.js +27362 -0
- package/dist/icons/activateUserIcon.js +1 -0
- package/dist/icons/archivedIcon.js +1 -0
- package/dist/icons/assignGroupIcon.js +1 -0
- package/dist/icons/closeIcon.js +1 -0
- package/dist/icons/copyIcon.js +1 -0
- package/dist/icons/difficultyAllIcon.js +1 -0
- package/dist/icons/difficultyEasyIcon.js +1 -0
- package/dist/icons/difficultyHardIcon.js +1 -0
- package/dist/icons/difficultyMediumIcon.js +1 -0
- package/dist/icons/dollarIcon.js +1 -0
- package/dist/icons/downloadIcon.js +1 -0
- package/dist/icons/downloadPdfIcon.js +1 -0
- package/dist/icons/editChatIcon.js +1 -0
- package/dist/icons/editIcon.js +1 -0
- package/dist/icons/engagementIcon.js +1 -0
- package/dist/icons/functionIcon.js +1 -0
- package/dist/icons/helpOutlinedIcon.js +1 -0
- package/dist/icons/hierarchyIcon.js +1 -0
- package/dist/icons/inactiveGroupIcon.js +1 -0
- package/dist/icons/index.js +64 -63
- package/dist/icons/industryIcon.js +1 -0
- package/dist/icons/invoiceIcon.js +1 -0
- package/dist/icons/locationPinIcon.js +1 -0
- package/dist/icons/logsIcon.js +1 -0
- package/dist/icons/minExperienceIcon.js +1 -0
- package/dist/icons/nineDotMenuIcon.js +1 -0
- package/dist/icons/notificationIcon.js +1 -0
- package/dist/icons/projectIcon.js +1 -0
- package/dist/icons/qualificationsIcon.js +1 -0
- package/dist/icons/questionStatusAllIcon.js +1 -0
- package/dist/icons/questionStatusPrivateIcon.js +1 -0
- package/dist/icons/questionStatusPublicIcon.js +1 -0
- package/dist/icons/questionTypeAllIcon.js +1 -0
- package/dist/icons/questionTypeCodingIcon.js +1 -0
- package/dist/icons/questionTypeDescriptiveIcon.js +1 -0
- package/dist/icons/questionTypeMultipleIcon.js +1 -0
- package/dist/icons/questionTypeSingleIcon.js +1 -0
- package/dist/icons/refreshIcon.js +1 -0
- package/dist/icons/resendInviteIcon.js +1 -0
- package/dist/icons/rolesIcon.js +1 -0
- package/dist/icons/rufousAiIcon.js +1 -0
- package/dist/icons/rufousBirdIcon.js +1 -0
- package/dist/icons/rufousLauncherBird.js +1 -0
- package/dist/icons/sidebarIcon.js +1 -0
- package/dist/icons/softSkillsIcon.js +1 -0
- package/dist/icons/subscribeIcon.js +1 -0
- package/dist/icons/suspendUserIcon.js +1 -0
- package/dist/icons/technicalSkillsIcon.js +1 -0
- package/dist/icons/tickIcon.js +1 -0
- package/dist/icons/timerIcon.js +1 -0
- package/dist/icons/trashIcon.js +1 -0
- package/dist/icons/unArchivedIcon.js +1 -0
- package/dist/icons/unsubscribeIcon.js +1 -0
- package/dist/icons/uploadIcon.js +1 -0
- package/dist/icons/userAssignIcon.js +1 -0
- package/dist/icons/viewIcon.js +1 -0
- package/dist/icons/workItemIcon.js +1 -0
- package/dist/main.cjs +30097 -223
- package/dist/main.css +8247 -162
- package/dist/main.d.cts +6 -0
- package/dist/main.d.ts +6 -0
- package/dist/main.js +89 -67
- package/dist/style.css +1068 -163
- package/dist/styles/button.css +82 -110
- package/dist/styles/checkbox.css +60 -0
- package/dist/styles/checkbox.d.cts +2 -0
- package/dist/styles/checkbox.d.ts +2 -0
- package/dist/styles/datagrid.css +531 -0
- package/dist/styles/datagrid.d.cts +2 -0
- package/dist/styles/datagrid.d.ts +2 -0
- package/dist/styles/dialog.css +78 -51
- package/dist/styles/editor.css +211 -0
- package/dist/styles/editor.d.cts +2 -0
- package/dist/styles/editor.d.ts +2 -0
- package/dist/utils/constants.cjs +47 -69
- package/dist/utils/constants.d.cts +34 -56
- package/dist/utils/constants.d.ts +34 -56
- package/dist/utils/constants.js +2 -1
- package/package.json +13 -2
- package/dist/TextFields/FloatingInput.d.d.cts +0 -23
- package/dist/TextFields/FloatingInput.d.d.ts +0 -23
- package/dist/chunk-2FHTGYR4.js +0 -83
- package/dist/chunk-BCGCLMKA.js +0 -71
- /package/dist/{TextFields/FloatingInput.d.js → DataGrid/types.js} +0 -0
package/dist/chunk-2FHTGYR4.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/chunk-BCGCLMKA.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
APP_THEMES
|
|
3
|
-
} from "./chunk-2FHTGYR4.js";
|
|
4
|
-
|
|
5
|
-
// lib/Contexts/rufousThemeProvider.tsx
|
|
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 = inputKey || previewThemeKey || settings.theme;
|
|
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
|
-
};
|
|
File without changes
|