dirk-cfx-react 1.1.75 → 1.1.77
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/components/index.cjs +1 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +5 -0
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +5 -0
- package/dist/providers/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6145,6 +6145,7 @@ function ThemeOverrideSection({
|
|
|
6145
6145
|
{
|
|
6146
6146
|
label: locale("UseCustomPalette") || "Use custom palette",
|
|
6147
6147
|
size: "md",
|
|
6148
|
+
mt: "xs",
|
|
6148
6149
|
checked: useCustom,
|
|
6149
6150
|
onChange: (e) => set("primaryColor", e.currentTarget.checked ? "custom" : "dirk"),
|
|
6150
6151
|
styles: {
|
|
@@ -6573,6 +6574,11 @@ function DirkProvider({ children, overideResourceName, themeOverride }) {
|
|
|
6573
6574
|
}, []);
|
|
6574
6575
|
useNuiEvent("UPDATE_DIRK_LIB_SETTINGS", (data) => {
|
|
6575
6576
|
if (!data || typeof data !== "object") return;
|
|
6577
|
+
const carriesOverrideFlag = Object.prototype.hasOwnProperty.call(data, "themeOverride");
|
|
6578
|
+
if (carriesOverrideFlag) {
|
|
6579
|
+
useSettings.setState(data);
|
|
6580
|
+
return;
|
|
6581
|
+
}
|
|
6576
6582
|
const current = useSettings.getState();
|
|
6577
6583
|
if (current.themeOverride) {
|
|
6578
6584
|
const { primaryColor: _pc, primaryShade: _ps, customTheme: _ct, ...rest } = data;
|